import{j as h,y as v,f as o,i as p,b as t,v as u,e as d,h as b,c as a,r}from"./index-DLUb5LSe.js";import{_ as f}from"./TopBar.vue_vue_type_script_setup_true_lang-DNeo4_WD.js";import{_ as x}from"./BottomNav.vue_vue_type_script_setup_true_lang-BcRvF8NM.js";const y={class:"pb-32 min-h-dvh"},g={class:"max-w-md mx-auto px-4 pt-2"},w=["href"],_={class:"text-display mt-1"},k=["href"],C=["href"],E={class:"text-body mt-1"},D=h({__name:"EmergencyView",setup($){const i=v(),s=a(()=>i.brand.contact_phone??""),l=a(()=>s.value.replace(/[^0-9]/g,"")),n=a(()=>i.brand.address??""),c=a(()=>n.value?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n.value)}`:""),m=a(()=>l.value?`https://wa.me/${l.value}?text=${encodeURIComponent("EMERGENCY — I need help with my pet now.")}`:"");return(B,e)=>(r(),o("div",y,[p(f),t("main",g,[e[4]||(e[4]=t("h1",{class:"text-display py-4 text-red-700"},"🚨 Emergency",-1)),e[5]||(e[5]=t("p",{class:"text-meta text-ink-muted -mt-2 mb-4"},"Reach the clinic fast. For life-threatening situations, also call your nearest 24h emergency vet.",-1)),s.value?(r(),o("a",{key:0,href:`tel:${s.value}`,class:"block rounded-card bg-red-600 text-white p-5 shadow-fab active:scale-[0.99]"},[e[0]||(e[0]=t("div",{class:"text-meta uppercase tracking-wider opacity-80"},"Call clinic now",-1)),t("div",_,u(s.value),1)],8,w)):d("",!0),m.value?(r(),o("a",{key:1,href:m.value,target:"_blank",rel:"noopener",class:"mt-3 block rounded-card bg-emerald-600 text-white p-5 shadow-card active:scale-[0.99]"},[...e[1]||(e[1]=[t("div",{class:"text-meta uppercase tracking-wider opacity-80"},"WhatsApp the clinic",-1),t("div",{class:"text-title mt-1"},"Send emergency message",-1)])],8,k)):d("",!0),c.value?(r(),o("a",{key:2,href:c.value,target:"_blank",rel:"noopener",class:"mt-3 block rounded-card bg-surface shadow-card p-5 border border-ink/5 active:scale-[0.99]"},[e[2]||(e[2]=t("div",{class:"text-meta uppercase tracking-wider text-ink-subtle font-bold"},"Directions to clinic",-1)),t("div",E,u(n.value),1),e[3]||(e[3]=t("div",{class:"text-meta text-brand-600 font-semibold mt-2"},"Open in Maps →",-1))],8,C)):d("",!0),e[6]||(e[6]=t("div",{class:"mt-6 rounded-card bg-amber-50 border border-amber-200 p-4 text-meta text-amber-900"},[t("strong",null,"Before you call:"),b(" note your pet's symptoms, when they started, and any medications they're on. The clinic can advise faster with that info. ")],-1))]),p(x)]))}});export{D as default};
//# sourceMappingURL=EmergencyView-B6M5VlJF.js.map
