1import{_ as w}from"./AppStoreDownload.vue_vue_type_script_setup_true_lang-BSI18xT3.js";import{_ as b}from"./index-OKapCzBW.js";import{_ as h}from"./GuestLayout.vue_vue_type_script_setup_true_lang-BoQvocqX.js";import{d as y,u as v,c as d,q as k,a as x,b as p,w as m,e as t,i as e,j as S,t as a,h as l,o as f,k as C,F as $}from"./app-DzcZYVao.js";import"./Primitive-Poicf4yD.js";import"./utils-CBM8p0NG.js";import"./Header.vue_vue_type_script_setup_true_lang-DwIXCor4.js";const A=["content"],L={class:"mx-auto mt-10 max-w-2xl px-6 md:px-0"},M={class:"mb-8 text-center"},N={class:"mb-2 text-4xl font-bold text-white"},V={class:"text-xl text-gray-300"},q={class:"rounded-2xl border border-gray-700 bg-gray-800 p-8 shadow-2xl"},B={class:"text-center"},D={class:"mb-6 text-base leading-relaxed text-gray-300"},P={class:"mb-8 rounded-xl border border-primary-500 bg-primary-500/10 p-4"},U={class:"text-sm text-primary-200"},E=["href"],F={class:"my-6 text-sm text-gray-500"},I={class:"mb-5 text-sm text-gray-400"},Q={key:0,class:"mt-6 rounded-lg bg-gray-900 p-4 text-left"},T={class:"text-xs break-all text-gray-400"},j={class:"text-xs break-all text-gray-400"},W=y({__name:"SetPassword",props:{token:{},email:{},iosAppStoreUrl:{},iosAppStoreQrCode:{},utmSource:{},utmMedium:{},utmCampaign:{}},setup(i){const o=i,{t:s}=v(),u=d(()=>typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),c=d(()=>{const n=new URLSearchParams({token:o.token,email:o.email});return o.utmSource&&n.append("utm_source",o.utmSource),o.utmMedium&&n.append("utm_medium",o.utmMedium),o.utmCampaign&&n.append("utm_campaign",o.utmCampaign),n.toString()}),g=d(()=>`${window.location.origin}/set-password?${c.value}`),_=d(()=>`fytrr://set-password?${c.value}`);return k(()=>{u.value||(window.location.href=_.value)}),(n,r)=>(f(),x($,null,[p(e(S),{title:e(s)("set_password.meta.title")},{default:m(()=>[t("meta",{name:"apple-itunes-app",content:`app-id=6757151695, app-argument=${g.value}`},null,8,A)]),_:1},8,["title"]),p(h,null,{default:m(()=>[t("div",L,[t("div",M,[t("h1",N,a(e(s)("set_password.title")),1),t("p",V,a(e(s)("set_password.subtitle")),1)]),t("div",q,[t("div",B,[t("p",D,a(e(s)("set_password.description")),1),t("div",P,[t("p",U,[t("strong",null,a(e(s)("set_password.tip.label")),1),l(" "+a(u.value?e(s)("set_password.tip.safari"):e(s)("set_password.tip.other")),1)])]),t("a",{href:_.value},[p(e(b),{class:"w-full",size:"lg"},{default:m(()=>[l(a(e(s)("set_password.activate_account")),1)]),_:1})],8,E),t("div",F,a(e(s)("set_password.no_app")),1),t("p",I,a(e(s)("set_password.download_prompt")),1),p(w,{"app-store-url":i.iosAppStoreUrl,"qr-code":i.iosAppStoreQrCode},null,8,["app-store-url","qr-code"])]),n.$page.props.server.isLocal?(f(),x("div",Q,[r[2]||(r[2]=t("p",{class:"mb-2 font-mono text-xs text-gray-500"}," Debug Info: ",-1)),t("p",T,[r[0]||(r[0]=t("strong",null,"Token:",-1)),l(" "+a(i.token.substring(0,20))+"... ",1)]),t("p",j,[r[1]||(r[1]=t("strong",null,"Email:",-1)),l(" "+a(i.email),1)]),r[3]||(r[3]=t("p",{class:"text-xs text-gray-400"},[t("strong",null,"Deep Link:"),l(" fytrr://set-password ")],-1))])):C("",!0)])])]),_:1})],64))}});export{W 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.