1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,963456,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(247167),s=e.i(618566),i=e.i(994814),o=e.i(653145),l=e.i(743004),c=e.i(286536),d=e.i(77705),u=e.i(531278),m=e.i(952571),f=e.i(373375),p=e.i(463059);e.i(7849);var g=e.i(160077),x=e.i(794622),h=e.i(554469),v=e.i(276644),b=e.i(621816),y=e.i(339853),j=e.i(935716),k=e.i(810475),N=e.i(117595),w=e.i(862837),E=e.i(320830),C=e.i(979139),T=e.i(995474);let S="cf-turnstile-script",P=l.z.object({email:l.z.string().min(1,{message:"Email é obrigatório"}).email({message:"Digite um email válido"})}),_=l.z.object({name:l.z.string().min(1,{message:"Nome é obrigatório"}).min(2,{message:"Digite seu nome completo"}),password:l.z.string().min(1,{message:"Senha é obrigatória"}).min(8,{message:"MÃnimo 8 caracteres"}).regex(/[A-Z]/,{message:"Deve conter pelo menos uma letra maiúscula"}).regex(/[0-9]/,{message:"Deve conter pelo menos um número"}).regex(/[!@#$%^&*(),.?":{}|<>._\-+=\[\]\\\/;'`~]/,{message:"Deve conter pelo menos um caractere especial (!@#$%^&*(),.?\":{}|<>._-+=[]\\/;'`~)"}),phone:l.z.string().min(1,{message:"WhatsApp é obrigatório"}).refine(e=>!!e&&(0,x.isValidPhoneNumber)(e),{message:"Número de WhatsApp inválido"}),consent:l.z.literal(!0,{errorMap:()=>({message:"Você deve concordar com os termos e polÃticas de privacidade"})})}),F=l.z.object({name:l.z.string().min(1,{message:"Nome é obrigatório"}).min(2,{message:"Digite seu nome completo"}),phone:l.z.string().min(1,{message:"WhatsApp é obrigatório"}).refine(e=>!!e&&(0,x.isValidPhoneNumber)(e),{message:"Número de WhatsApp inválido"}),email:l.z.string().min(1,{message:"Email é obrigatório"}).email({message:"Email inválido"}),password:l.z.string().min(1,{message:"Senha é obrigatória"}).min(8,{message:"Senha deve ter pelo menos 8 caracteres"}).regex(/[A-Z]/,{message:"Deve conter pelo menos uma letra maiúscula"}).regex(/[0-9]/,{message:"Deve conter pelo menos um número"}).regex(/[!@#$%^&*(),.?":{}|<>._\-+=\[\]\\\/;'`~]/,{message:"Deve conter pelo menos um caractere especial (!@#$%^&*(),.?\":{}|<>._-+=[]\\/;'`~)"}),consent:l.z.literal(!0,{errorMap:()=>({message:"Você deve concordar com os termos e polÃticas de privacidade"})})}),A=({password:e})=>{let{strength:r,label:a,color:n,checks:s}=(e=>{if(!e)return{strength:0,label:"",color:""};let t=0,r={length:e.length>=8,uppercase:/[A-Z]/.test(e),lowercase:/[a-z]/.test(e),number:/[0-9]/.test(e),special:/[!@#$%^&*(),.?":{}|<>._\-+=\[\]\\\/;'`~]/.test(e)};r.length&&(t+=20),r.uppercase&&(t+=20),r.lowercase&&(t+=20),r.number&&(t+=20),r.special&&(t+=20);let a="",n="";return t<=40?(a="Fraca",n="bg-red-500 dark:bg-danger"):t<=60?(a="Média",n="bg-orange-500 dark:bg-warning"):t<=80?(a="Boa",n="bg-yellow-500 dark:bg-warning"):(a="Forte",n="bg-green-500 dark:bg-success"),{strength:t,label:a,color:n,checks:r}})(e);return e?(0,t.jsxs)("div",{className:"space-y-2 mt-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1 h-1.5 bg-gray-200 dark:bg-neutral-surface rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:`h-full transition-all duration-300 ${n}`,style:{width:`${r}%`}})}),a&&(0,t.jsx)("span",{className:"text-xs font-medium text-gray-600 dark:text-muted-foreground min-w-[50px] text-right",children:a})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs",children:[(0,t.jsx)("div",{className:`w-1.5 h-1.5 rounded-full ${s?.length?"bg-green-500 dark:bg-success":"bg-gray-300 dark:bg-neutral-surface"}`}),(0,t.jsx)("span",{className:s?.length?"text-green-700 dark:text-success-foreground":"text-gray-500 dark:text-muted-foreground",children:"MÃnimo 8 caracteres"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs",children:[(0,t.jsx)("div",{className:`w-1.5 h-1.5 rounded-full ${s?.uppercase?"bg-green-500 dark:bg-success":"bg-gray-300 dark:bg-neutral-surface"}`}),(0,t.jsx)("span",{className:s?.uppercase?"text-green-700 dark:text-success-foreground":"text-gray-500 dark:text-muted-foreground",children:"Uma letra maiúscula"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs",children:[(0,t.jsx)("div",{className:`w-1.5 h-1.5 rounded-full ${s?.number?"bg-green-500 dark:bg-success":"bg-gray-300 dark:bg-neutral-surface"}`}),(0,t.jsx)("span",{className:s?.number?"text-green-700 dark:text-success-foreground":"text-gray-500 dark:text-muted-foreground",children:"Um número"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs",children:[(0,t.jsx)("div",{className:`w-1.5 h-1.5 rounded-full ${s?.special?"bg-green-500 dark:bg-success":"bg-gray-300 dark:bg-neutral-surface"}`}),(0,t.jsx)("span",{className:s?.special?"text-green-700 dark:text-success-foreground":"text-gray-500 dark:text-muted-foreground",children:"Um caractere especial"})]})]})]}):null};function O(){let[e,l]=(0,r.useState)(!1),[O,R]=(0,r.useState)(1),[M,L]=(0,r.useState)(!1),[I,z]=(0,r.useState)(0),[D,$]=(0,r.useState)(!1),U=(0,s.useRouter)(),B=(0,k.getApi)(),[V,W]=(0,r.useState)(!1),[K,H]=(0,r.useState)({callbackUrl:"/dashboard",inviteToken:"",offerToken:""}),[q,Z]=(0,r.useState)(null),[X,J]=(0,r.useState)(!1),[G,Q]=(0,r.useState)(null),[Y,ee]=(0,r.useState)(!1),[et,er]=(0,r.useState)(!1),[ea,en]=(0,r.useState)(!1),{register:es,isLoading:ei,error:eo,clearError:el}=(0,j.useAuth)(),{pushStartTrial:ec}=(0,T.useGTM)(),ed=function(){let e=n.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,t=(0,r.useRef)(null),[a,s]=(0,r.useState)(null),i=(0,r.useCallback)(r=>{if(!e)return;if(!r){t.current=null;return}let a=()=>{window.turnstile&&null===t.current&&(t.current=window.turnstile.render(r,{sitekey:e,callback:e=>s(e),"expired-callback":()=>s(null),"error-callback":()=>s(null)}))};if(window.turnstile)return void a();let n=document.getElementById(S);n||((n=document.createElement("script")).id=S,n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,document.head.appendChild(n)),n.addEventListener("load",a,{once:!0})},[e]);return{enabled:!!e,containerRef:i,token:a,reset:(0,r.useCallback)(()=>
1{if(s(null),window.turnstile&&null!==t.current)try{window.turnstile.reset(t.current)}catch{}},[])}}();(0,r.useEffect)(()=>{if(W(!0),window.location.search){let e=new URLSearchParams(window.location.search),t=e.get("callbackUrl")||"/dashboard",r="";if(e.get("inviteToken"))r=e.get("inviteToken");else if(t&&t.includes("/invite/")){let e=t.match(/\/invite\/([a-zA-Z0-9]+)/);e&&e[1]&&(r=e[1])}let a=!r&&e.get("offer")||"";H({callbackUrl:t,inviteToken:r,offerToken:a}),r?em(r):a&&ef(a)}},[]),(0,r.useEffect)(()=>{if(!V)return;let e=()=>{document.querySelectorAll("[data-reveal-delay]").forEach(e=>{e.classList.remove("visible"),setTimeout(()=>{e.classList.add("visible")},parseInt(e.getAttribute("data-reveal-delay")||"0"))})};requestAnimationFrame(()=>{setTimeout(e,10)})},[V,O]);let eu=(0,o.useForm)({resolver:(0,i.zodResolver)(F),defaultValues:{name:"",phone:"",email:"",password:"",consent:!1}}),em=async e=>{if(e){J(!0);try{let t=await B.get(`/organizations/invites/${e}`);if(t.data.success){if(Z(t.data.data),t.data.data.organization?.sso?.enforced){window.location.href=`https://api.socialsell.ai/auth/sso/initiate?inviteToken=${e}`;return}eu.setValue("email",t.data.data.email)}}catch(e){C.default.error("Erro ao verificar convite:",e)}finally{J(!1)}}},ef=async e=>{if(e){ee(!0);try{let t=await B.get(`/billing/offer-info/${e}`);t.data.success&&(Q(t.data.data),t.data.data.email&&eu.setValue("email",t.data.data.email))}catch(e){C.default.error("Erro ao verificar oferta:",e),g.toast.error(e?.response?.data?.message||"Link de oferta inválido ou expirado. O cadastro seguirá normalmente."),H(e=>({...e,offerToken:""}))}finally{ee(!1)}}},ep=async()=>{if(1===O&&(()=>{if(1===O){let{email:e}=eu.getValues();try{P.parse({email:e})}catch(e){return e.errors.forEach(e=>{eu.setError(e.path[0],{message:e.message})}),!1}}else if(2===O){let{name:e,password:t,phone:r,consent:a}=eu.getValues();try{_.parse({name:e,password:t,phone:r,consent:a})}catch(e){return e.errors.forEach(e=>{eu.setError(e.path[0],{message:e.message})}),!1}}return!0})()){if(!q&&!G?.email){en(!0);try{let{email:e}=eu.getValues(),{data:t}=await B.get("/auth/check-email",{params:{email:e}});if(t?.data?.exists){er(!0),eu.setError("email",{message:"Este email já tem uma conta."});return}if(t?.data?.disposable)return void eu.setError("email",{message:"Emails temporários não são permitidos. Use um email permanente."})}catch(e){C.default.warn("Erro ao verificar email (seguindo mesmo assim):",e)}finally{en(!1)}}L(!0),setTimeout(()=>{R(2),z(e=>e+1),L(!1)},150)}},eg=async e=>{let t;if(D)return;$(!0),el();let r={...e};if(ed.enabled){if(!ed.token){$(!1),g.toast.error("Aguarde a verificação de segurança ser concluÃda e tente novamente.");return}r.turnstileToken=ed.token}
1r.name&&""!==r.name.trim()||delete r.name,K.inviteToken&&(r.inviteToken=K.inviteToken),K.offerToken&&G&&(r.offerToken=K.offerToken);let a=N.default.get(w.PARTNER_COOKIE_NAME);a&&(r.partnerRef=a);try{let e=N.default.get("ss_attrib");if(e){let t=JSON.parse(e);r.tracking={clientId:t.client_id,gclid:t.gclid,gbraid:t.gbraid,wbraid:t.wbraid,utmSource:t.utm_source,utmMedium:t.utm_medium,utmCampaign:t.utm_campaign,utmContent:t.utm_content,utmTerm:t.utm_term,utmId:t.utm_id,lpSource:t.lp_source,landingPage:t.landing_page,referrer:t.referrer,firstVisitAt:t.first_visit_at?new Date(t.first_visit_at):new Date}}}catch(e){C.default.warn("Erro ao ler cookies de atribuição",e)}try{t=await es(r)}finally{$(!1)}if(t.success){if(g.toast.success("Conta criada com sucesso!"),t.offerApplied&&g.toast.success("Seu plano personalizado já está ativo!"),ec({transaction_id:t.user?.id||t.user?._id,method:"email"}),t.inviteInfo){g.toast.success(`Voc\xea foi adicionado \xe0 organiza\xe7\xe3o ${t.inviteInfo.organizationName}!`),await new Promise(e=>{let t=()=>{let r=document.cookie.split(";").some(e=>e.trim().startsWith("auth-token=")),a=document.cookie.split(";").some(e=>e.trim().startsWith("made-setup=")),n=document.cookie.split(";").some(e=>e.trim().startsWith("current-organization="));r&&(a||n)?e():setTimeout(t,50)};t()}),U.push("/dashboard");return}U.push("/setup")}else ed.enabled&&ed.reset(),g.toast.error(t.error||"Falha ao criar conta")};if(!V)return(0,t.jsx)("div",{className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-white dark:from-card to-gray-50/30 dark:to-surface/30",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(u.Loader2,{className:"mx-auto h-12 w-12 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-muted-foreground text-sm",children:"Carregando..."})]})});let ex=(()=>{if(q)switch(O){case 1:return{title:"Aceite seu convite",description:`Voc\xea foi convidado para se juntar \xe0 equipe ${q.organization.name}. Complete seu cadastro para acessar a plataforma.`};case 2:return{title:"Complete seu cadastro",description:"Preencha seus dados para finalizar o cadastro e acessar a plataforma"};default:return{title:"Criar Conta",description:"Crie sua conta para começar"}}if(G){let e=G.plan?.name||G.plan?.key;switch(O){case 1:return{title:"Você recebeu uma oferta exclusiva",description:G.trialDays>0?`Crie sua conta e comece agora seu teste gr\xe1tis de ${G.trialDays} dias no plano ${e}.`:`Crie sua conta para ativar o plano ${e}, preparado especialmente para voc\xea.`};case 2:return{title:"Complete seu cadastro",description:"Preencha seus dados para finalizar o cadastro e ativar seu plano"}}}switch(O){case 1:return{title:"Comece agora com 14 dias grátis",description:"Digite seu melhor email e descubra como vender mais através das redes sociais!"};case 2:return{title:"Ãltimo passo antes de conectar seu WhatsApp",description:"Complete seus dados para criar sua conta â leva menos de um minuto"};default:return{title:"Criar Conta",description:"Crie sua conta para começar"}}})();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:`flex flex-col justify-center items-center text-center gap-2 md:gap-3 max-w-lg w-full my-2 md:my-3 transition-all duration-300 ${M?"opacity-50 scale-95":"opacity-100 scale-100"}`,children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1.5 md:gap-2",children:[(0,t.jsxs)("div",{className:"relative scroll-blur-in transition-all duration-500","data-reveal-delay":"0",children:[(0,t.jsx)("img",{className:"w-16 md:w-20 lg:w-24 drop-shadow-sm transition-all duration-500 hover:scale-105",src:"/firecamp.png",alt:""}),(0,t.jsx)("div",{className:"absolute -inset-2 bg-gradient-to-br from-primary-500/5 to-primary/5 rounded-full blur-xl -z-10 transition-all duration-500"})]}),(0,t.jsxs)("div",{className:"space-y-1 md:space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-primary-950 dark:text-foreground font-bold text-lg md:text-xl lg:text-2xl leading-tight px-3 scroll-blur-in transition-all duration-300","data-reveal-delay":"50",children:ex.title}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-muted-foreground font-medium text-xs md:text-sm max-w-lg leading-relaxed px-3 scroll-blur-in transition-all duration-300","data-reveal-delay":"100",children:ex.description})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2.5 md:gap-3 w-full px-3 transition-all duration-300",children:[q&&(0,t.jsx)("div",{className:"mb-2 w-full max-w-lg scroll-blur-in transition-all duration-300","data-reveal-delay":"150",children:(0,t.jsxs)(y.Alert,{className:"bg-blue-50 dark:bg-info-surface border-blue-200 dark:border-info-border flex flex-col gap-1 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,t.jsx)(m.Info,{className:"h-4 w-4 text-blue-600 dar
1k:text-info-foreground flex-shrink-0"}),(0,t.jsx)(y.AlertTitle,{className:"text-blue-800 dark:text-info-foreground text-sm font-semibold m-0 p-0 leading-tight",children:"Convite detectado"})]}),(0,t.jsx)(y.AlertDescription,{className:"text-blue-700 dark:text-info-foreground text-xs text-left px-1",children:(0,t.jsxs)("span",{children:["Você foi convidado por"," ",(0,t.jsx)("strong",{className:"text-blue-800 dark:text-info-foreground font-semibold",children:q.invitedBy.name})," ","para se juntar à "," ",(0,t.jsx)("strong",{className:"text-blue-800 dark:text-info-foreground font-semibold",children:q.organization.name}),"."]})})]})}),G&&!q&&(0,t.jsx)("div",{className:"mb-2 w-full max-w-lg scroll-blur-in transition-all duration-300","data-reveal-delay":"150",children:(0,t.jsxs)(y.Alert,{className:"bg-violet-50 dark:bg-ai-surface border-violet-200 dark:border-ai flex flex-col gap-1 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,t.jsx)(m.Info,{className:"h-4 w-4 text-violet-600 dark:text-ai-identity flex-shrink-0"}),(0,t.jsx)(y.AlertTitle,{className:"text-violet-800 dark:text-ai-identity text-sm font-semibold m-0 p-0 leading-tight",children:"Oferta exclusiva"})]}),(0,t.jsx)(y.AlertDescription,{className:"text-violet-700 dark:text-ai-identity text-xs text-left px-1",children:(0,t.jsxs)("span",{children:["Plano"," ",(0,t.jsx)("strong",{className:"text-violet-800 dark:text-ai-identity font-semibold",children:G.plan?.name||G.plan?.key}),G.plan?.prices?.monthly?(0,t.jsxs)(t.Fragment,{children:[" ","por"," ",(0,t.jsxs)("strong",{className:"text-violet-800 dark:text-ai-identity font-semibold",children:[new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(G.plan.prices.monthly/100),"/mês"]})]}):null,G.trialDays>0?(0,t.jsxs)(t.Fragment,{children:[", com"," ",(0,t.jsxs)("strong",{className:"text-violet-800 dark:text-ai-identity font-semibold",children:[G.trialDays," dias grátis"]})," ","para testar."]}):"."]})})]})}),eo&&(0,t.jsx)("div",{className:"mb-2 w-full max-w-lg scroll-blur-in transition-all duration-300","data-reveal-delay":"150",children:(0,t.jsx)(y.Alert,{variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{className:"text-xs",children:eo})})}),(0,t.jsx)(b.Form,{...eu,children:(0,t.jsxs)("form",{onSubmit:eu.handleSubmit(eg),className:"space-y-3 w-full max-w-lg",children:[1===O&&(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"200",children:(0,t.jsx)(b.FormField,{control:eu.control,name:"email",render:({field:e})=>(0,t.jsxs)(b.FormItem,{className:"space-y-1 w-full transition-all duration-300",children:[(0,t.jsxs)(b.FormLabel,{className:"text-xs font-medium text-gray-700 dark:text-foreground text-left block transition-colors duration-200",children:["Email"," ",(0,t.jsx)("span",{className:"text-red-500 dark:text-danger-foreground transition-opacity duration-200",children:"*"})]}),(0,t.jsx)(b.FormControl,{children:(0,t.jsx)(v.Input,{placeholder:"Digite seu melhor email",type:"email",disabled:!!q||!!G?.email,...e,onChange:t=>{et&&er(!1),e.onChange(t)},onKeyDown:e=>"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),ep())})}),q&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-left",children:"Email do convite não pode ser alterado"}),!q&&G?.email&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-left",children:"Esta oferta é exclusiva para este email"}),(0,t.jsx)(b.FormMessage,{className:"text-xs text-left"}),et&&(0,t.jsx)("p",{className:"text-xs text-left text-gray-600 dark:text-muted-foreground",children:(0,t.jsx)(a.default,{href:`/login?email=${encodeURIComponent(e.value||"")}`,className:"text-primary font-semibold hover:text-primary-700 hover:underline",children:"Entrar com este email â"})})]})})}),2===O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"200",children:(0,t.jsx)(b.FormField,{control:eu.control,name:"name",render:({field:e})=>(0,t.jsxs)(b.FormItem,{className:"space-y-1 w-full transition-all duration-300",children:[(0,t.jsxs)(b.FormLabel,{className:"text-xs font-medium text-gray-700 dark:text-foreground text-left block transition-colors duration-200",children:["Nome completo"," ",(0,t.jsx)("span",{className:"text-red-500 dark:text-danger-foreground transition-opacity duration-200",children:"*"})]}
1),(0,t.jsx)(b.FormControl,{children:(0,t.jsx)(v.Input,{placeholder:"Seu nome completo",...e})}),(0,t.jsx)(b.FormMessage,{className:"text-xs text-left"})]})})}),(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"250",children:(0,t.jsx)(b.FormField,{control:eu.control,name:"phone",render:({field:e})=>(0,t.jsxs)(b.FormItem,{className:"space-y-1 w-full transition-all duration-300",children:[(0,t.jsxs)(b.FormLabel,{className:"text-xs font-medium text-gray-700 dark:text-foreground text-left block transition-colors duration-200",children:["WhatsApp (número de telefone)"," ",(0,t.jsx)("span",{className:"text-red-500 dark:text-danger-foreground transition-opacity duration-200",children:"*"})]}),(0,t.jsx)(b.FormControl,{children:(0,t.jsx)(x.default,{international:!0,defaultCountry:"BR",value:e.value,onChange:e.onChange,className:"phone-input-custom border border-zinc-200 dark:border-border shadow-xs rounded-lg focus-within:border-zinc-400 dark:focus-within:border-border focus-within:ring-3 focus-within:ring-zinc-300 dark:focus-within:ring-ring",placeholder:"Digite o número de telefone"})}),(0,t.jsx)(b.FormMessage,{className:"text-xs text-left"})]})})}),(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"300",children:(0,t.jsx)(b.FormField,{control:eu.control,name:"password",render:({field:r})=>(0,t.jsxs)(b.FormItem,{className:"space-y-1 w-full transition-all duration-300",children:[(0,t.jsxs)(b.FormLabel,{className:"text-xs font-medium text-gray-700 dark:text-foreground text-left block transition-colors duration-200",children:["Senha"," ",(0,t.jsx)("span",{className:"text-red-500 dark:text-danger-foreground transition-opacity duration-200",children:"*"})]}),(0,t.jsx)(b.FormControl,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(v.Input,{placeholder:"MÃnimo 8 caracteres",type:e?"text":"password",className:"pr-10",...r}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-2.5 hover:bg-transparent",onClick:()=>l(!e),children:e?(0,t.jsx)(d.EyeOff,{size:16}):(0,t.jsx)(c.Eye,{size:16})})]})}),(0,t.jsx)(A,{password:r.value}),(0,t.jsx)(b.FormMessage,{className:"text-xs text-left"})]})})}),ed.enabled&&(0,t.jsx)("div",{ref:ed.containerRef,className:"flex justify-center"}),(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"350",children:(0,t.jsx)(b.FormField,{control:eu.control,name:"consent",render:({field:e})=>(0,t.jsxs)(b.FormItem,{className:"flex flex-row items-start transition-all duration-300",children:[(0,t.jsx)(b.FormControl,{children:(0,t.jsx)(E.Checkbox,{checked:e.value,onCheckedChange:e.onChange})}),(0,t.jsxs)("div",{className:"space-y-1 leading-none",children:[(0,t.jsxs)(b.FormLabel,{className:"text-xs text-gray-700 dark:text-foreground gap-1",children:["Concordo com os"," ",(0,t.jsx)(a.default,{href:"/termos-de-uso",className:"text-primary hover:text-primary-700 underline",target:"_blank",children:"Termos de Uso"})," ","e com a"," ",(0,t.jsx)(a.default,{href:"/privacidade",className:"text-primary hover:text-primary-700 underline",target:"_blank",children:"PolÃtica de Privacidade"})]}),(0,t.jsx)(b.FormMessage,{className:"text-xs"})]})]})})})]}),1===O?(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300","data-reveal-delay":"250",children:(0,t.jsx)(h.Button,{type:"button",onClick:ep,className:"w-full mt-2.5 md:mt-3 px-4 md:px-5 py-2 text-sm font-semibold shadow-lg hover:shadow-xl transition-all duration-300 bg-primary hover:bg-primary-700 hover:scale-[1.02] active:scale-[0.98] disabled:opacity-50 disabled:scale-100 h-9",disabled:ei||D||X||Y||ea||M,children:ea?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Loader2,{className:"h-4 w-4 animate-spin"}),"Verificando..."]}):(0,t.jsxs)(t.Fragment,{children:[q?"Continuar":G?"Ativar minha oferta":"Começar gratuitamente",(0,t.jsx)(p.ChevronRight,{className:"ml-2 h-4 w-4"})]})})}):(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 md:gap-3 mt-2.5 md:mt-3 w-full max-w-lg scroll-blur-in transition-all duration-300","data-reveal-delay":"450",children:[(0,t.jsxs)(h.Button,{type:"button",variant:"outline",onClick:()=>{2===O&&(L(!0),setTimeout(()=>{R(1),z(e=>e+1),L(!1)},150))},className:"px-3 md:px-4 py-2 text-sm transition-all duration-300 hover:bg-gray-50 dark:hover:bg-surface hover:border-gray-300 dark:hover:border-border hover:scale-[1.02] active:scale-[0.98] flex-1 w-1/2 disabled:opacity-50 disabled:scale-100",disabled:ei||D||M,children:[(0,t.jsx)(f.ChevronLeft,{className:"h-4 w-4"}),"Voltar"]}),(0,t.jsx)(h.Button,{type:"submit",className:"px-3 md:px-4 py-2 text-sm bg-primary hover:bg-primary-700 transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-[1.02] active:scale-[0.98] flex-1 w-1/2 disabled:opacity-50 disabled:scale-100",disabled:ei||D||X||Y||M,children:ei?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Loader2,{className:"h-4 w-4 animate-spin"}),"Criando..."]}):q?"Criar conta":G?G.trialDays>
10?`Come\xe7ar ${G.trialDays} dias gr\xe1tis`:"Ativar meu plano":"Começar 14 dias grátis"})]})]})}),1===O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative my-2.5 w-full max-w-lg scroll-blur-in transition-all duration-300","data-reveal-delay":"300",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300 dark:border-border"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"px-2 bg-white dark:bg-card text-gray-500 dark:text-muted-foreground",children:"Ou cadastre-se com"})})]}),(0,t.jsx)("div",{className:"scroll-blur-in transition-all duration-300 w-full","data-reveal-delay":"350",children:(0,t.jsxs)(h.Button,{variant:"outline",type:"button",className:"w-full transition-all duration-300 h-8 text-sm hover:bg-gray-50 dark:hover:bg-surface hover:border-gray-300 dark:hover:border-border hover:scale-[1.02] active:scale-[0.98] disabled:opacity-50 disabled:scale-100",onClick:()=>{let e="https://api.socialsell.ai/auth/google";K.inviteToken?e+=`?inviteToken=${K.inviteToken}`:K.offerToken&&G&&(e+=`?offerToken=${K.offerToken}`),window.location.href=e},disabled:ei||D,children:[(0,t.jsxs)("svg",{viewBox:"0 0 48 48",className:"w-4 h-4",children:[(0,t.jsx)("clipPath",{id:"g",children:(0,t.jsx)("path",{d:"M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"})}),(0,t.jsxs)("g",{className:"colors",clipPath:"url(#g)",children:[(0,t.jsx)("path",{fill:"#FBBC05",d:"M0 37V11l17 13z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M0 11l17 13 7-6.1L48 14V0H0z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M0 37l30-23 7.9 1L48 0v48H0z"}),(0,t.jsx)("path",{fill:"#4285F4",d:"M48 48L17 24l-4-3 35-10z"})]})]}),"Cadastrar com Google"]})})]}),(0,t.jsx)("div",{className:"flex justify-center mt-2 md:mt-2.5 scroll-blur-in transition-all duration-300","data-reveal-delay":1===O?"400":"500",children:(0,t.jsxs)("p",{className:"text-xs text-gray-600 dark:text-muted-foreground",children:["Já tem uma conta?"," ",(0,t.jsx)(a.default,{href:K.inviteToken?`/login?inviteToken=${K.inviteToken}`:"/login",className:"text-primary font-semibold hover:text-primary-700 hover:underline transition-all duration-200",children:"Entrar agora"})]})})]})]},I)})}e.s(["default",0,function(){return(0,r.useEffect)(()=>{let e=document.querySelector("[data-logo-delay]");e&&setTimeout(()=>{e.classList.add("visible")},0)},[]),(0,t.jsxs)("div",{className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-white dark:from-card to-gray-50/30 dark:to-surface/30 p-3 md:p-6 relative overflow-auto",children:[(0,t.jsxs)(a.default,{href:"/",className:"fixed top-3 md:top-6 left-3 md:left-6 scroll-blur-in z-10 transition-all duration-300","data-logo-delay":"0",children:[(0,t.jsx)("img",{src:"/logo.svg",alt:"SocialSell",className:"h-5 md:h-7 dark:hidden"}),(0,t.jsx)("img",{src:"/logo-texto-branco.png",alt:"SocialSell",className:"hidden h-5 md:h-7 dark:block"})]}),(0,t.jsx)(O,{})]})}],963456)},339853,e=>{"use strict";var t=e.i(843476);e.i(271645);var r=e.i(225913),a=e.i(157851);let n=(0,r.cva)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...s}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(n({variant:r}),e),...s})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.cn)("text-muted-foreground col-start-2 text-sm [&_p]:leading-relaxed",e),...r})},"AlertTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,a.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...r})}])},320830,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(820783),n=e.i(30030),s=e.i(981140),i=e.i(369340),o=e.i(999682),l=e.i(635804),c=e.i(296626),d=e.i(248425),u="Checkbox",[m,f]=(0,n.createContextScope)(u),[p,g]=m(u),x=r.forwardRef((e,n
1)=>{let{__scopeCheckbox:o,name:l,checked:c,defaultChecked:u,required:m,disabled:f,value:g="on",onCheckedChange:x,form:h,...v}=e,[k,N]=r.useState(null),w=(0,a.useComposedRefs)(n,e=>N(e)),E=r.useRef(!1),C=!k||h||!!k.closest("form"),[T=!1,S]=(0,i.useControllableState)({prop:c,defaultProp:u,onChange:x}),P=r.useRef(T);return r.useEffect(()=>{let e=k?.form;if(e){let t=()=>S(P.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[k,S]),(0,t.jsxs)(p,{scope:o,state:T,disabled:f,children:[(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":y(T)?"mixed":T,"aria-required":m,"data-state":j(T),"data-disabled":f?"":void 0,disabled:f,value:g,...v,ref:w,onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.composeEventHandlers)(e.onClick,e=>{S(e=>!!y(e)||!e),C&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),C&&(0,t.jsx)(b,{control:k,bubbles:!E.current,name:l,value:g,checked:T,required:m,disabled:f,form:h,style:{transform:"translateX(-100%)"},defaultChecked:!y(u)&&u})]})});x.displayName=u;var h="CheckboxIndicator",v=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:n,...s}=e,i=g(h,a);return(0,t.jsx)(c.Presence,{present:n||y(i.state)||!0===i.state,children:(0,t.jsx)(d.Primitive.span,{"data-state":j(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:r,style:{pointerEvents:"none",...e.style}})})});v.displayName=h;var b=e=>{let{control:a,checked:n,bubbles:s=!0,defaultChecked:i,...c}=e,d=r.useRef(null),u=(0,o.usePrevious)(n),m=(0,l.useSize)(a);r.useEffect(()=>{let e=d.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&t){let r=new Event("click",{bubbles:s});e.indeterminate=y(n),t.call(e,!y(n)&&n),e.dispatchEvent(r)}},[u,n,s]);let f=r.useRef(!y(n)&&n);return(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??f.current,...c,tabIndex:-1,ref:d,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return"indeterminate"===e}function j(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var k=e.i(157851);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(x,{"data-slot":"checkbox",className:(0,k.cn)("peer group/checkbox relative inline-flex size-4 shrink-0 items-center justify-center rounded-[5px] border shadow-xs outline-none cursor-pointer","border-input bg-background transition-[background-color,border-color,box-shadow,scale] duration-200 ease-out","enabled:hover:border-primary/70 motion-safe:enabled:active:scale-90 motion-reduce:transition-none","data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground","data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r,children:(0,t.jsx)(v,{forceMount:!0,"data-slot":"checkbox-indicator","aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center text-current",children:(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",className:"size-3","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M3 8.2 6.3 11.3 13 4.7",pathLength:"1",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 [stroke-dasharray:1] [stroke-dashoffset:1] transition-[stroke-dashoffset,opacity] duration-200 ease-out group-data-[state=checked]/checkbox:opacity-100 group-data-[state=checked]/checkbox:[stroke-dashoffset:0] motion-reduce:transition-none"}),(0,t.jsx)("path",{d:"M4 8h8",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:"origin-center scale-50 opacity-0 transition-[scale,opacity] duration-200 ease-out group-data-[state=indeterminate]/checkbox:scale-100 group-data-[state=indeterminate]/checkbox:opacity-100 motion-reduce:transition-none"})]})})})}],320830)},621816,e=>{"use strict";
1var t=e.i(843476),r=e.i(271645),a=e.i(991918),n=e.i(653145),s=e.i(157851),i=e.i(144528);let o=n.FormProvider,l=r.createContext({}),c=()=>{let e=r.useContext(l),t=r.useContext(d),{getFieldState:a}=(0,n.useFormContext)(),s=(0,n.useFormState)({name:e.name}),i=a(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...i}},d=r.createContext({});e.s(["Form",0,o,"FormControl",0,function({...e}){let{error:r,formItemId:n,formDescriptionId:s,formMessageId:i}=c();return(0,t.jsx)(a.Slot,{"data-slot":"form-control",id:n,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...e})},"FormDescription",0,function({className:e,...r}){let{formDescriptionId:a}=c();return(0,t.jsx)("p",{"data-slot":"form-description",id:a,className:(0,s.cn)("text-muted-foreground text-sm",e),...r})},"FormField",0,({...e})=>(0,t.jsx)(l.Provider,{value:{name:e.name},children:(0,t.jsx)(n.Controller,{...e})}),"FormItem",0,function({className:e,...a}){let n=r.useId();return(0,t.jsx)(d.Provider,{value:{id:n},children:(0,t.jsx)("div",{"data-slot":"form-item",className:(0,s.cn)("grid gap-2",e),...a})})},"FormLabel",0,function({className:e,...r}){let{error:a,formItemId:n}=c();return(0,t.jsx)(i.Label,{"data-slot":"form-label","data-error":!!a,className:(0,s.cn)("data-[error=true]:text-destructive",e),htmlFor:n,...r})},"FormMessage",0,function({className:e,...r}){let{error:a,formMessageId:n}=c(),i=a?String(a?.message??""):r.children;return i?(0,t.jsx)("p",{"data-slot":"form-message",id:n,className:(0,s.cn)("text-destructive text-sm",e),...r,children:i}):null}])},276644,e=>{"use strict";var t=e.i(843476);e.i(271645);var r=e.i(157851);e.s(["Input",0,function({className:e,type:a,...n}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("!bg-white text-slate-600 ile:text-foreground placeholder:text-slate-500 selection:bg-primary selection:text-primary-foreground border-border hover:border-border-hover flex h-9 w-full min-w-0 rounded-full border bg-transparent px-3 py-1 text-base shadow-xs shadow-slate-100/50 transition-all outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:!bg-background dark:text-foreground dark:file:text-foreground dark:placeholder:text-muted-foreground dark:shadow-[var(--shadow-color)]","focus-visible:border-border-hover dark:focus-visible:border-ring focus-visible:ring-slate-200/50 dark:focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}])},144528,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(248425),n=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var s=e.i(157851);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(n,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],144528)},862837,e=>{"use strict";e.s(["PARTNER_COOKIE_NAME",0,"partnerRef","PARTNER_REF_PARAM",0,"ref"])},994814,e=>{"use strict";var t=e.i(653145);let r=(e,r,a)=>{if(e&&"reportValidity"in e){let n=(0,t.get)(a,r);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},a=(e,t)=>{for(let a in t.fields){let n=t.fields[a];n&&n.ref&&"reportValidity"in n.ref?r(n.ref,a,e):n&&n.refs&&n.refs.forEach(t=>r(t,a,e))}},n=(e,t)=>{let r=s(t);return e.some(e=>s(e).match(`^${r}\\.\\d+`))};function s(e){return e.replace(/\]|\[/g,"")}e.s(["zodResolver",0,function(e,r,s){return void 0===s&&(s={}),function(i,o,l){try{return Promise.resolve(function(t){try{var n=Promise.resolve(e["sync"===s.mode?"parse":"parseAsync"](i,r)).then(function(e){return l.shouldUseNativeValidation&&a({},l),{errors:{},values:s.raw?Object.assign({},i):e}})}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:((e,r)=>{r.shouldUseNativeValidation&&a(e,r);let s={};for(let a in e){let i=(0,t.get)(r.fields,a),o=Object.assign(e[a]||{},{ref:i&&i.ref});if(n(r.names||Object.keys(e),a)){let e=Object.assign({},(0,t.get)(s,a));(0,t.set)(e,"root",o),(0,t.set)(s,a,e)}else(0,t.set)(s,a,o)}return s})(function(e,r){for(var a={};e.length;){var n=e[0],s=n.code,i=n.message,o=n.path.join(".");if(!a[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];a[o]={message:l.message,type:l.code}}else a[o]={message:i,type:s};
1if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),r){var c=a[o].types,d=c&&c[n.code];a[o]=(0,t.appendErrors)(o,r,a,s,d?[].concat(d,n.message):n.message)}e.shift()}return a}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}],994814)},981140,369340,e=>{"use strict";e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}}],981140);var t=e.i(271645),r=e.i(30207);e.s(["useControllableState",0,function({prop:e,defaultProp:a,onChange:n=()=>{}}){let[s,i]=function({defaultProp:e,onChange:a}){let n=t.useState(e),[s]=n,i=t.useRef(s),o=(0,r.useCallbackRef)(a);return t.useEffect(()=>{i.current!==s&&(o(s),i.current=s)},[s,i,o]),n}({defaultProp:a,onChange:n}),o=void 0!==e,l=o?e:s,c=(0,r.useCallbackRef)(n);return[l,t.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else i(t)},[o,e,i,c])]}],369340)},296626,e=>{"use strict";var t=e.i(271645),r=e.i(820783),a=e.i(934620),n=e=>{var n;let i,o,{present:l,children:c}=e,d=function(e){var r,n;let[i,o]=t.useState(),l=t.useRef({}),c=t.useRef(e),d=t.useRef("none"),[u,m]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>n[e][t]??e,r));return t.useEffect(()=>{let e=s(l.current);d.current="mounted"===u?e:"none"},[u]),(0,a.useLayoutEffect)(()=>{let t=l.current,r=c.current;if(r!==e){let a=d.current,n=s(t);e?m("MOUNT"):"none"===n||t?.display==="none"?m("UNMOUNT"):r&&a!==n?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),(0,a.useLayoutEffect)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let a=s(l.current).includes(r.animationName);if(r.target===i&&a&&(m("ANIMATION_END"),!c.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},a=e=>{e.target===i&&(d.current=s(l.current))};return i.addEventListener("animationstart",a),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}m("ANIMATION_END")},[i,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(l),u="function"==typeof c?c({present:d.isPresent}):t.Children.only(c),m=(0,r.useComposedRefs)(d.ref,(n=u,(o=(i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.ref:(o=(i=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof c||d.isPresent?t.cloneElement(u,{ref:m}):null};function s(e){return e?.animationName||"none"}n.displayName="Presence",e.s(["Presence",0,n])},999682,635804,e=>{"use strict";var t=e.i(271645);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}],999682);var r=e.i(934620);e.s(["useSize",0,function(e){let[a,n]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;n({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),a}],635804)},412012,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",0,t])},373375,e=>{"use strict";var t=e.i(412012);e.s(["ChevronLeft",()=>t.default])},246349,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},463059,e=>{"use strict";var t=e.i(246349);e.s(["ChevronRight",()=>t.default])},77705,e=>{"use strict";let t=(0,e.i(475254).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,t],77705)},286536,e=>{"use strict";let t=(0,e.i(475254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],286536)},522016,(e,t,r)=>{"use strict";
1e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return h},useLinkStatus:function(){return b}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(190809),i=e.r(843476),o=s._(e.r(271645)),l=e.r(195057),c=e.r(8372),d=e.r(818581),u=e.r(718967),m=e.r(405550),f=e.r(388540),p=e.r(91949),g=e.r(573668),x=e.r(509396);function h(t){var r;let a,n,s,[h,b]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:j,as:k,children:N,prefetch:w=null,passHref:E,replace:C,shallow:T,scroll:S,onClick:P,onMouseEnter:_,onTouchStart:F,legacyBehavior:A=!1,onNavigate:O,transitionTypes:R,ref:M,unstable_dynamicOnHover:L,...I}=t;a=N,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let z=o.default.useContext(c.AppRouterContext),D=!1!==w,$=!1===w?"none":!0===w?"full":"auto",U="none"!==$?"auto"===$?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,B="string"==typeof(r=k||j)?r:(0,l.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=o.default.Children.only(a)}let V=A?n&&"object"==typeof n&&n.ref:M,W,K=o.default.useCallback(e=>(null!==z&&(y.current=(0,p.mountLinkInstance)(e,B,z,U,D,b,W)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,B,z,U,b,W]),H={ref:(0,d.useMergedRef)(K,V),onClick(t){A||"function"!=typeof P||P(t),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!z||t.defaultPrevented||function(t,r,a,n,s,i,l,c="none"){if("u">typeof window){let d,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:m}=e.r(699781);o.default.startTransition(()=>{m(r,n?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,a.current,l,c)})}}(t,B,y,C,S,O,R,$)},onMouseEnter(e){A||"function"!=typeof _||_(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),z&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){A||"function"!=typeof F||F(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),z&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,u.isAbsoluteUrl)(B)?H.href=B:A&&!E&&("a"!==n.type||"href"in n.props)||(H.href=(0,m.addBasePath)(B)),s=A?o.default.cloneElement(n,H):(0,i.jsx)("a",{...I,...H,children:a}),(0,i.jsx)(v.Provider,{value:h,children:s})}let v=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let a=e.r(271645);function n(e,t){let r=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,a)),t&&(n.current=s(t,a))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},573668,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let a=e.r(718967),n=e.r(652817);function s(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function s(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,i(e));else t.set(r,i(a));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},195057,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let d=e.search||l&&`?${l}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||i.test(a))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),n=n.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${a}${c}${n}${d}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},718967,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return h},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return y},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return x},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return l},isResSent:function(){return m},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return k}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function m(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&m(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let g="u">typeof performance,x=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class h extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},232189,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,r)=>{"use strict";var a=e.r(232189);function n(){}function s(){}s.resetWarningCache=n,t.exports=function(){function e(e,t,r,n,s,i){if(i!==a){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return r.PropTypes=r,r}},745009,(e,t,r)=>{e.i(247167),t.exports=e.r(865156)()}]);
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.