1import{a as H,d as v,o as u,b as x,r as I,n as k,u as e,e as $,f as q,g as Y,h as G,i as J,c as y,w as s,j as w,_ as K,k as a,t as c,l as i,F as Q,m as W,p as f,q as C,s as B,v as N,x as g}from"./DfMkgiUT.js";import{_ as X,a as Z}from"./ngwX8E-D.js";import{C as ee}from"./Di_x4S5i.js";import{D as te}from"./D97vaVX9.js";import"./C0Gnxcc2.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"02b00fabbe1395f3354278c4bba153e90d8fe508"};var r=new n.Error().stack;r&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[r]="809934a6-4f02-4e09-be4c-7e7115069013",n._sentryDebugIdIdentifier="sentry-dbid-809934a6-4f02-4e09-be4c-7e7115069013")}catch{}})();const ae=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],ne=H("map-pinned",ae),oe=v({__name:"CardDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){const r=n;return(o,h)=>(u(),x("div",{"data-slot":"card-description",class:k(e($)("text-muted-foreground text-sm",r.class))},[I(o.$slots,"default")],2))}}),se=v({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(n){const r=n;return(o,h)=>(u(),x("div",{"data-slot":"alert",class:k(e($)(e(re)({variant:n.variant}),r.class)),role:"alert"},[I(o.$slots,"default")],2))}}),ie=v({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){const r=n;return(o,h)=>(u(),x("div",{"data-slot":"alert-description",class:k(e($)("text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",r.class))},[I(o.$slots,"default")],2))}}),re=q("grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*=size-])]:size-4 group/alert relative w-full",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}}),le={class:"fixed top-[max(0.875rem,env(safe-area-inset-top))] right-[max(0.875rem,env(safe-area-inset-right))] z-30"},ce={class:"sr-only",for:"language-select"},de={class:"relative z-10 flex flex-1 items-center justify-center px-5 pt-[max(5.5rem,calc(env(safe-area-inset-top)+4.25rem))] pb-[max(2.5rem,env(safe-area-inset-bottom))]"},pe={class:"w-full max-w-md","aria-labelledby":"invite-title"},ue={class:"flex flex-col items-center gap-3 text-center"},me=["alt"],fe={class:"mt-1 text-xs font-bold tracking-[0.08em] text-primary uppercase"},he={id:"invite-title",class:"max-w-[18ch] text-balance text-3xl leading-tight font-bold tracking-tight text-card-foreground sm:text-4xl"},ge={class:"m-0 max-w-[36ch] text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg"},_e=["aria-label"],ve=["href"],xe={class:"grid gap-1"},be={id:"install-title",class:"text-base leading-snug font-semibold text-card-foreground"},ye=["aria-label"],we={class:"m-0 text-center text-sm leading-relaxed text-muted-foreground"},D="www.lokimaps.com",S="lokimaps.com",R="/location-sharing/invite",E="open-app",Se="https://apps.apple.com/app/apple-store/id727466441?pt=221067&ct=Lokimaps%20location%20sharing&mt=8",_="/maastokartta-app-icon.png",ze=v({__name:"invite",setup(n){const r=[{code:"en",name:"English"},{code:"es",name:"Español"},{code:"fi",name:"Suomi"},{code:"nb",name:"Norsk bokmål"},{code:"sv",name:"Svenska"}],{t:o,locale:h,setLocale:O}=Y(),L=w(R),A=w(!0),b=w(!1),z=g(()=>o("locationSharingInvite.appName")),d=g(()=>({appShortName:z.value})),P=g(()=>o(b.value?"locationSharingInvite.title.afterOpenAttempt":"locationSharingInvite.title.initial")),U=g(()=>o(b.value?"locationSharingInvite.summary.afterOpenAttempt":"locationSharingInvite.summary.initial",d.value));function j(t){return t===S?D:S}function T(t,l){return t===D||t===S?`https://${j(t)}`:l}function V(t,l){const p=new URL(R,t);return p.searchParams.set(E,"1"),p.hash=l,p.toString()}function F(t){return r.some(l=>l.code===t)}async function M(t){const l=t.target.value;F(l)&&await O(l)}return G(()=>{const t=window.location.hash,l=window.location.hostname,p=V(T(l,window.location.origin),t),m=new URLSearchParams(window.location.search);L.value=p,A.value=t.length>1,b.value=m.has(E)}),J(()=>({title:o("locationSharingInvite.meta.title"),link:[{rel:"icon",href:_},{rel:"apple-touch-icon",href:_}],meta:[{name:"robots",content:"noindex,nofollow"},{name:"theme-color",content:"#fbf7ec",media:"(prefers-color-scheme: light)"},{name:"theme-color",content:"#111a16",media:"(prefers-color-scheme: dark)"},{name:"apple-mobile-web-app-capable",content:"yes"},{property:"og:title",content:o("locationSharingInvite.meta.title")},{property:"og:description",content:o("locationSharingInvite.meta.description",d.value)},{property:"og:image",content:_}]})),(t,l)=>{const p=K;return u(),y(p,null,{default:s(()=>[a("div",le,[a("label",ce,c(t.$t("locationSharingInvite.languageSelector.label")),1),i(e(X),{id:"language-select","model-value":e(h),class:"min-h-9 rounded-full bg-background/85 px-3 pr-9 font-semibold shadow-sm backdrop-blur-xl",onChange:M},{default:s(()=>[(u(),x(Q,null,W(r,m=>i(e(Z),{key:m.code,value:m.code},{default:s(()=>[f(c(m.name),1)]),_:2},1032,["value"])),64))]),_:1},8,["model-value"])]),a("main",de,[a("section",pe,[i(e(C),{class:"border-border/70 bg-card/85 py-0 shadow-2xl shadow-primary/10 backdrop-blur-xl"},{default:s(()=>[i(e(B),{class:"flex flex-col gap-6 px-5 py-8 sm:px-8 sm:py-9"},{default:s(()=>[a("header",ue,[a("img",{class:"size-22 rounded-[22px] shadow-[0_16px_32px_-12px_rgba(27,42,35,0.45)] ring-1 ring-foreground
1/10",src:_,alt:t.$t("locationSharingInvite.appIconAlt",e(d)),width:"96",height:"96"},null,8,me),a("p",fe,c(e(z)),1),a("h1",he,c(e(P)),1),a("p",ge,c(e(U)),1)]),a("div",{class:"flex flex-col gap-2",role:"group","aria-label":t.$t("locationSharingInvite.actionsLabel")},[e(A)?(u(),y(e(N),{key:0,"as-child":"",size:"lg",class:"h-auto min-h-13 w-full rounded-2xl px-6 py-3 text-base font-bold shadow-lg shadow-primary/20"},{default:s(()=>[a("a",{href:e(L)},[i(e(ne),{"data-icon":"inline-start","aria-hidden":"true"}),f(" "+c(t.$t("locationSharingInvite.openButton",e(d))),1)],8,ve)]),_:1})):(u(),y(e(se),{key:1,variant:"destructive",class:"border-destructive/30 bg-destructive/10 px-4 py-3"},{default:s(()=>[i(e(ee),{"aria-hidden":"true"}),i(e(ie),{class:"font-medium text-current"},{default:s(()=>[f(c(t.$t("locationSharingInvite.missingCode")),1)]),_:1})]),_:1}))],8,_e),i(e(C),{size:"sm",class:"bg-muted/55 shadow-none"},{default:s(()=>[i(e(B),{class:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-4 max-[360px]:grid-cols-1"},{default:s(()=>[a("div",xe,[a("h2",be,c(t.$t("locationSharingInvite.install.title")),1),i(e(oe),{class:"leading-relaxed"},{default:s(()=>[f(c(t.$t("locationSharingInvite.install.description",e(d))),1)]),_:1})]),i(e(N),{"as-child":"",variant:"secondary",size:"lg",class:"rounded-full px-4 font-bold max-[360px]:w-full"},{default:s(()=>[a("a",{href:Se,"aria-label":t.$t("locationSharingInvite.install.getButtonAriaLabel",e(d))},[i(e(te),{"data-icon":"inline-start","aria-hidden":"true"}
1),f(" "+c(t.$t("locationSharingInvite.install.getButton")),1)],8,ye)]),_:1})]),_:1})]),_:1}),a("p",we,c(t.$t("locationSharingInvite.footnote",e(d))),1)]),_:1})]),_:1})])])]),_:1})}}});export{ze as default};
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.