1import{I as j,j as t,B as w,s as m,ai as P,af as S,aj as A,ak as N,ag as k,al as v,a8 as E}from"./main-xaUap2mU.js";import{f as b,b as R,r as c,L as T}from"./react-vendor-DgCwdNFP.js";import{A as _,a as C}from"./AuthPageShell-Y1oSFe3S.js";import{C as s}from"./homepage-v5-Dc81dl1t.js";import"./SEO-C7uZkAdC.js";import"./GlassSurface-CE6x4VEt.js";import"./productContent-C-ikQ9F4.js";import"./LiquidGlass-B_s8pDnD.js";import"./mic-BYTmF4IU.js";import"./settings-CXqMN3c4.js";import"./search-RQ8LzVp5.js";import"./zap-7WoFDA-D.js";import"./eye-Bu5GBIpj.js";import"./database-XnE_tLUR.js";import"./wand-2-lq0j7GTP.js";import"./bot-CZpUjlxv.js";import"./panels-top-left-BFmbpElo.js";import"./sliders-horizontal-UrMrrDX7.js";import"./key-round-B9i7yFD-.js";import"./shield-DojVB2Zn.js";import"./graduation-cap-CIkoUs7U.js";import"./link-2-COPyOT6g.js";import"./clock-BU7zYqjz.js";import"./phone-CyVa8Ng-.js";import"./refresh-cw-Daw7i17e.js";import"./plug-Bl0DfWGE.js";import"./brain-CoETK2Tl.js";import"./mail-HpV34R3L.js";import"./workflow-BGJMXDHw.js";import"./heart-2yw18mok.js";import"./fingerprint-DNrfA2wF.js";import"./users-Bg4yi7B9.js";import"./layers-D3gG4q5r.js";import"./palette-BtYjCgWI.js";import"./index-BAe3wXL2.js";import"./proxy-B53YgYAz.js";function xt(){const[n]=b(),p=R(),{t:r}=j(),[o,x]=c.useState(null),u=c.useRef(!1);return c.useEffect(()=>{if(u.current)return;u.current=!0;let l=!1;return(async()=>{var h;try{const f=n.get("token_hash"),d=n.get("type");if(f&&d){const{error:i}=await m.auth.verifyOtp({token_hash:f,type:d});if(i)throw i}let a=(await m.auth.getSession()).data.session;for(let i=0;i<20&&!a;i+=1)await new Promise(g=>setTimeout(g,250)),a=(await m.auth.getSession()).data.session;if(!(a!=null&&a.user))throw new Error("no_session");if(l)return;const e=P(),{redirectTo:y}=await S(a.user.id,{email:(e==null?void 0:e.email)||a.user.email||"",displayName:(e==null?void 0:e.displayName)||((h=a.user.user_metadata)==null?void 0:h.display_name)||null,tempBotId:(e==null?void 0:e.tempBotId)??null,redirectAfterAuth:(e==null?void 0:e.redirectAfterAuth)??null});A(),N(),k(),v(y),l||p(E,{replace:!0})}catch{l||x(r("auth.confirm.failed"))}})(),()=>{l=!0}},[p,n,r]),t.jsx(_,{title:`${r(o?"auth.confirm.failedTitle":"auth.confirm.title")} - ${w}`,description:o||r("auth.confirm.subtitle"),children:t.jsx(C,{children:t.jsx("div",{className:"text-center space-y-5",children:o?t.jsxs(t.Fragment,{children:[t.jsx("h1",{className:"font-extralight",style:{fontSize:"clamp(28px, 4vw, 36px)",lineHeight:"1.15",color:s.textPrimary},children:r("auth.confirm.failedTitle")}),t.jsx("p",{style:{color:s.textSecondary},children:o}),t.jsx(T,{to:"/signin",className:"inline-flex items-center justify-center w-full py-3.5 px-6 bg-[#0d0d0d] text-white font-medium rounded-full hover:bg-black transition-all",children:r("auth.confirm.backToSignIn")})]}):t.jsxs(t.Fragment,{children:[t.jsxs("svg",{className:"w-10 h-10 animate-spin mx-auto",style:{color:s.textPrimary},viewBox:"0 0 24 24",fill:"none",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),t.jsx("h1",{className:"font-extralight",style:{fontSize:"clamp(28px, 4vw, 36px)",lineHeight:"1.15",color:s.textPrimary},children:r("auth.confirm.title")}),t.jsx("p",{style:{color:s.textSecondary},children:r("auth.confirm.subtitle")})]})})})})}export{xt 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.