1"use strict";(self.webpackChunkbuddymarket_app=self.webpackChunkbuddymarket_app||[]).push([[9995],{39995:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var r=a(9950),s=a(28429),n=a(42074),l=a(67818),c=a(34625),i=a(84121),d=a(41225),o=a(75833),m=a(75316),u=a(44414);const x=()=>{const{t:e}=(0,l.Bd)(),t=(0,s.Zp)(),[a]=(0,n.ok)(),[x,g]=(0,r.useState)("loading"),h=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(h.current)return;h.current=!0;const e=a.get("token");e?(async()=>{try{const a=await c.A.verifyMagicLink({token:e});if(await(0,o.WG)(a.data.token),(0,d.gV)(a.data.user),localStorage.setItem("register_data",null),a.data.needsPayment)return localStorage.setItem("selected_plan","mensual"),void t("/payment-failed?user_id=".concat(a.data.user.id),{replace:!0});await(0,i.w4)(t,{replace:!0})}catch(a){g("error")}})():g("error")}),[t,a]),(0,u.jsxs)("div",{className:"flex min-h-screen w-full flex-col items-center justify-center bg-[#FAF7F2] p-6",children:[(0,u.jsx)("img",{src:m.S,alt:"Buddy One",className:"mb-6 h-12 w-12 rounded-2xl"}),"loading"===x&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"mb-4 h-8 w-8 animate-spin rounded-full border-2 border-bm-accent border-t-transparent"}),(0,u.jsx)("p",{className:"text-sm text-gray-600",children:e("auth.magic.verifying")})]}),"error"===x&&(0,u.jsxs)("div",{className:"w-full max-w-sm rounded-3xl bg-white p-6 text-center shadow-xl",children:[(0,u.jsx)("p",{className:"mb-2 text-4xl",children:"\u26a0\ufe0f"}),(0,u.jsx)("h1",{className:"text-lg font-bold text-gray-900",children:e("auth.magic.errorTitle")}),(0,u.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:e("auth.magic.errorBody")}),(0,u.jsx)(n.N_,{to:"/login",className:"mt-5 inline-flex h-11 w-full items-center justify-center rounded-2xl bg-bm-accent font-semibold text-white transition-colors hover:bg-orange-600",children:e("auth.magic.backToLogin")})]})]})}}}]);
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.