1import{j as e,m as x,d as p,L as f}from"./vendor-ui-BH-eljHz.js";import{h as u,i as j,r}from"./vendor-react-Bfcfu4Pq.js";import{s as y}from"./index-BmFvKZFk.js";import"./vendor-i18n-39L2JWar.js";import"./vendor-supabase-DRsbn9L3.js";function v(){const n=u(),[i]=j(),c=r.useRef(!1),[o,t]=r.useState(null);return r.useEffect(()=>{if(c.current)return;c.current=!0,(async()=>{const l=i.get("token");if(!l){t("ì í¨íì§ ìì ì ê·¼ì ëë¤. GEO247ìì ë¤ì ìëí´ì£¼ì¸ì.");return}try{const m=await fetch(` 2/api/geo/handoff`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:l})}),s=await m.json().catch(()=>({}));if(!m.ok||!s.token_hash){t(s.error||"í¸ëì¤í ì²ë¦¬ì ì¤í¨íìµëë¤. ë§í¬ê° ë§ë£ëìì ì ììµëë¤.");return}const{error:h}=await y.auth.verifyOtp({type:"magiclink",token_hash:s.token_hash});if(h){t("ìë ë¡ê·¸ì¸ì ì¤í¨íìµëë¤. ë¤ì ìëí´ì£¼ì¸ì.");return}const a=s.context||{};sessionStorage.setItem("geo247_prefill",JSON.stringify({companyName:a.brand_name||"",topic:a.topic||"",background:a.background||"",keywords:a.keywords||""})),n("/order/domestic",{replace:!0})}catch{t("ì°ê²°ì 문ì ê° ë°ìíìµëë¤. ì ì í ë¤ì ìëí´ì£¼ì¸ì.")}})()},[n,i]),o?e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#0B1220] p-5",children:e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-sm text-center",children:[e.jsx(p,{className:"w-12 h-12 text-[#F87171] mx-auto mb-4"}),e.jsx("h2",{className:"text-lg font-bold text-white mb-2",children:"í¸ëì¤í를 ìë£íì§ ëª»íì´ì"}),e.jsx("p",{className:"text-sm text-[#94A3B8] mb-6",children:o}),e.jsx("a",{href:"https://geo247.ai",className:"inline-block px-5 py-2.5 rounded-lg bg-[#10B981] text-white text-sm font-semibold",children:"GEO247ë¡ ëìê°ê¸°"})]})}):e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#0B1220]",children:e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center px-5",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-center gap-2 text-white",children:[e.jsxs("span",{className:"text-2xl font-extrabold tracking-tight",children:["GEO",e.jsx("span",{className:"text-[#10B981]",children:"247"})]}),e.jsx("span",{className:"text-[#475569]",children:"â"}),e.jsxs("span",{className:"text-2xl font-extrabold tracking-tight",children:["ë´ì¤",e.jsx("span",{className:"text-[#E53935]",children:"247"})]})]}),e.jsx(f,{className:"w-9 h-9 animate-spin text-[#10B981] mx-auto mb-4"}),e.jsx("p",{className:"text-[#94A3B8] text-sm",children:"GEO247ìì ì´ì´ì§ëë¤. ìê³ ì£¼ë¬¸ì를 ì¤ë¹íë ì¤â¦"})]})})}export{v 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.