1import{d as k,ba as v,aX as x,Q as g,Z as D,o as a,l as p,m as t,j as r,W as l,t as I,k as o,n as f,i as P,bf as A,G as R,I as E,X as L,bb as S,bc as T,b9 as B}from"./index-Dfb4ty3x.js";import{_ as O,A as C}from"./AppStore-RdKI4o5i.js";try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="75b115ae-bb69-4df9-8945-9d3314d9be12",n._sentryDebugIdIdentifier="sentry-dbid-75b115ae-bb69-4df9-8945-9d3314d9be12")}catch{}const N="/assets/ewa-mobile-logo-D84CYKg_.png",V={class:"mx-4 flex grow items-center justify-center self-stretch"},j={key:0,class:"p-4 text-center"},G={key:1,class:"m-4 flex flex-col items-center text-center"},M={class:"mb-6 flex flex-row justify-center gap-2"},U=["href"],W=["href"],Y=k({__name:"UiMyEmergencyPlanRedeemInAppPlanView",setup(n){const s=v(),m=x(),i=g(null),c=g(!1),b=()=>{c.value=!1,u()},u=async()=>{const _=s.query.token;if(!_){m.push("/");return}const e=await A().getPlanDeepLink({token:_});if(!e){i.value="The shared link is invalid or expired. Please try again or request a new link.";return}c.value=!0,window.location.href=e};return D(u),(_,e)=>{const d=R,y=E,h=L,w=B;return a(),p("div",V,[i.value?(a(),p("div",j,[t(d,{"gv-type":"",align:"center"},{default:r(()=>[l(I(i.value),1)]),_:1})])):c.value?(a(),p("div",G,[e[4]||(e[4]=o("img",{src:N,alt:"Emergency WA app logo",width:"120",height:"120",class:"mb-6"},null,-1)),t(d,{class:"mb-2",variant:"subtitle-lg",align:"center","dom-element":"h1"},{default:r(()=>e[0]||(e[0]=[l("Opening the Emergency WA app...")])),_:1,__:[0]}),t(d,{class:"mb-4",scheme:"secondary",align:"center"},{default:r(()=>e[1]||(e[1]=[l("If the app doesnât open automatically, you can download it below.")])),_:1,__:[1]}),o("div",M,[o("a",{href:f(S),rel:"noopener noreferrer nofollow",target:"_blank",class:"flex-none"},[t(f(C),{"aria-label":"Download on the App Store"})],8,U),o("a",{href:f(T),rel:"noopener noreferrer nofollow",target:"_blank",class:"flex-none"},e[2]||(e[2]=[o("img",{src:O,alt:"Get it on Google Play",class:"h-10"},null,-1)]),8,W)]),t(h,{variant:"text",scheme:"accent",class:"gap-2",onClick:b},{default:r(()=>[t(y,{name:"refresh"}),e[3]||(e[3]=l(" Try opening app again"))]),_:1,__:[3]})])):(a(),P(w,{key:2,size:"sm",tabindex:"0","aria-label":"Loading"}))])}}});export{Y as default}; 2//# sourceMappingURL=UiMyEmergencyPlanRedeemInAppPlanView-VKhXz5M8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.