PageSourceSearch

https://jornaldebarueri.com.br/assets/LoginPage-DX30TaDy.js

js jornaldebarueri.com.br collected 2026-09-25 03:47:46 UTC 27,189 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-editor-BX0sR0z-.js";import{f as de,r as z}from"./vendor-react-BPk9u-w4.js";import{i as xe,d as me,u as pe,j as he,r as ue,g as ge,h as fe,e as be,m as s,O as ve}from"./index-FZUSOwo2.js";import{u as ye}from"./useAuthFlow-DrfKYzdZ.js";import{u as je,b as we}from"./useTestimonials-BabbqqI3.js";import{A as o}from"./index-P8wGLujW.js";import{z as Ne,L as k,ae as ze,af as C,J as ke}from"./vendor-icons-D7M_7Je-.js";import"./vendor-charts-Cf-ruFca.js";import"./vendor-ui-utils-Bbg69IUi.js";import"./vendor-graph-Df3mHyA7.js";import"./vendor-supabase-UBwEW4nm.js";import"./vendor-sonner-DPZ7yCFm.js";import"./vendor-helmet-C74EPpLp.js";import"./loginActivity-Cb_LWigz.js";import"./buildAuthCallbackUrl-2OiZ4JSe.js";import"./mfaStepUp-Co6_3HmI.js";import"./inviteParams-CQoxTKTX.js";import"./testimonialService-CPAxinoy.js";import"./normalizeUserText-a7mcOw55.js";const He=()=>{var X,H,W,G,K,J;const{openFeedbackModal:_}=xe(),{currentPortal:i}=me(),L=i.iconUrl||"https://api.cattive.com/storage/v1/object/public/portal-assets/cattive/favicon.png",h=i.name||"Cattive",{user:A,isLoading:F}=pe(),I=de(),d=z.useMemo(()=>{const a=(i==null?void 0:i.id)||"cattive",n=m=>we(a,m);return{home:n("/"),termos:n("/legal/termos"),privacidade:n("/legal/privacidade"),cookies:n("/legal/cookies"),suporte:n("/suporte")}},[i==null?void 0:i.id]);z.useEffect(()=>{if(F||!A)return;const a=new URLSearchParams(window.location.search),n=a.get("redirect_to"),m=a.get("state");if(n&&m&&he(n)){window.location.href=n;return}const l=window.location.hostname;if(l.startsWith("auth.")){window.location.href=ue(l);return}const y=ge();if(y==="admin"||y==="business"||y==="console"||y==="myaccount"){let Y=!1;return(async()=>{try{const{data:p}=await fe.auth.mfa.getAuthenticatorAssuranceLevel(),ce=(p==null?void 0:p.nextLevel)==="aal2"&&(p==null?void 0:p.currentLevel)!=="aal2";if(Y||ce)return;I("/",{replace:!0})}catch{}})(),()=>{Y=!0}}},[A,F,I]);const Q=ye({portalId:(i==null?void 0:i.id)||"cattive"}),{view:t,setView:b,isLoading:c,showEmailForm:M,setShowEmailForm:Z,isDev:j,email:E,setEmail:P,preferredOAuth:v,errorMsg:$,emailInputRef:q,otpCode:R,setOtpCode:ee,mfa2faError:u,setMfa2faError:S,trustDevice:g,setTrustDevice:te,recoveryCodeInput:D,setRecoveryCodeInput:O,recoveryLoading:T,handleMagicLink:U,handleForgotSubmit:ie,handle2FASubmit:w,handleRecoveryCodeSubmit:B,handleGoogleLogin:ae,handleAppleLogin:se}=Q,ne=((X=i==null?void 0:i.login)==null?void 0:X.tagline)||"Acesse sua conta para acompanhar o que importa, salvar o que quiser ler depois e participar, com um único login.",oe=z.useMemo(()=>{var n,m;const a=(m=(n=i==null?void 0:i.login)==null?void 0:n.highlights)==null?void 0:m.filter(l=>typeof(l==null?void 0:l.quote)=="string"&&l.quote.trim().length>0).map(l=>({quote:l.quote.trim(),author:(l.author||"").trim()}));return a&&a.length>0?a:void 0},[(H=i==null?void 0:i.login)==null?void 0:H.highlights]),{displayTestimonials:x,currentIndex:f}=je((i==null?void 0:i.id)||"",6e3,oe),N=be(),r=((W=i==null?void 0:i.login)==null?void 0:W.backgroundImageUrl)||null,V=r&&((i==null?void 0:i.darkPortalLogoUrl)||(i==null?void 0:i.darkLogoUrl))||null,re=()=>{switch(t){case"login":return"Bem-vindo de volta";case"register":return"Crie sua conta";case"forgot-password":return"Recuperar senha";case"2fa":return"Só mais um passo";case"2fa-recovery":return"Código de Recuperação";case"magic-link-sent":return"E-mail enviado!"}},le=()=>{switch(t){case"login":return"Insira seus dados para continuar para a sua conta.";case"register":return"Comece rápido. Sem senhas complexas necessárias.";case"forgot-password":return"Enviaremos instruções para redefinir sua senha.";case"2fa":return"Digite o código de 6 dígitos do seu app autenticador.";case"2fa-recovery":return"Insira um dos seus códigos de recuperação para acessar sua conta.";case"magic-link-sent":return null}};return e.jsxs("div",{className:"min-h-[100dvh] flex flex-col md:flex-row relative bg-white sm:bg-transparent font-sans selection:bg-[var(--brand-100,#bfdbfe)]",children:[e.jsxs("div",{className:"hidden md:flex relative w-1/2 flex-col justify-between p-8 lg:p-12 overflow-hidden bg-[#F0F2F5] border-r border-zinc-200/50",children:[r&&e.jsxs("div",{className:"absolute inset-0 z-0","aria-hidden":"true",children:[e.jsx("img",{src:r,alt:"",className:"absolute inset-0 w-full h-full object-cover select-none",draggable:!1}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/40"}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 h-2/5 opacity-60",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--brand-deep, #1e3a8a) 55%, transparent), transparent)"}})]}),!r&&e.jsxs("div",{className:"absolute inset-0 z-0","aria-hidden":"true",children:[e.jsx(s.div,{animate:N?void 0:{scale:[1,1.1,1],x:[0,40,0],y:[0,30,0]},transition:{duration:15,repeat:1/0,ease:"easeInOut"},style:{backgroundColor:"color-mix(in srgb, var(--brand, #60a5fa) 30%, transparent)"}
1,className:"absolute top-[-10%] left-[-10%] w-[50vw] h-[50vw] rounded-full mix-blend-multiply filter blur-[100px] opacity-80"}),e.jsx(s.div,{animate:N?void 0:{scale:[1,1.2,1],x:[0,-50,0],y:[0,40,0]},transition:{duration:20,repeat:1/0,ease:"easeInOut",delay:2},style:{backgroundColor:"color-mix(in srgb, var(--brand-deep, #a5b4fc) 24%, transparent)"},className:"absolute top-[10%] right-[-10%] w-[45vw] h-[45vw] rounded-full mix-blend-multiply filter blur-[100px] opacity-80"}),e.jsx(s.div,{animate:N?void 0:{scale:[1,1.15,1],x:[0,30,0],y:[0,-40,0]},transition:{duration:18,repeat:1/0,ease:"easeInOut",delay:4},style:{backgroundColor:"color-mix(in srgb, var(--brand-strong, #67e8f9) 26%, transparent)"},className:"absolute bottom-[-10%] left-[20%] w-[55vw] h-[55vw] rounded-full mix-blend-multiply filter blur-[100px] opacity-80"})]}),!r&&e.jsx("div",{className:"absolute inset-0 z-0 bg-white/40 backdrop-blur-[80px]"}),e.jsxs("div",{className:"relative z-10 flex flex-col h-full justify-between",children:[e.jsxs("div",{children:[V?e.jsx(s.img,{src:V,alt:h,className:"h-8 lg:h-9 max-w-[240px] object-contain object-left mb-4 lg:mb-6 drop-shadow-sm",initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1,ease:[.4,0,.2,1]}}):e.jsx(s.img,{src:L,alt:h,className:"w-10 h-10 lg:w-12 lg:h-12 rounded-[0.85rem] mb-4 lg:mb-6 object-contain",initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1,ease:[.4,0,.2,1]}}),e.jsxs(s.h1,{className:`text-[1.75rem] lg:text-[2.5rem] leading-[1.1] font-bold tracking-tight mb-3 lg:mb-5 max-w-lg ${r?"text-white drop-shadow-sm":"text-zinc-900"}`,initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1]},children:["Bem-vindo de volta ao ",e.jsx("br",{}),h,"."]}),e.jsx(s.p,{className:`text-[15px] lg:text-[17px] font-medium max-w-md leading-relaxed ${r?"text-white/85":"text-zinc-600"}`,initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3,ease:[.4,0,.2,1]},children:ne})]}),e.jsxs("div",{className:"mb-4",role:"region","aria-label":"Depoimentos de leitores",children:[x.length>0&&e.jsx("div",{className:"grid min-h-[110px] lg:min-h-[100px] items-end",children:e.jsx(o,{mode:"wait",children:e.jsxs(s.blockquote,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:"easeInOut"},className:`[grid-area:1/1] space-y-3 max-w-md border-l-4 pl-5 ${r?"border-white/40":"border-black/10"}`,children:[e.jsxs("p",{className:`text-[15px] lg:text-[16px] font-medium leading-relaxed italic ${r?"text-white/95 drop-shadow-sm":"text-zinc-800"}`,children:['"',(G=x[f])==null?void 0:G.quote,'"']}),((K=x[f])==null?void 0:K.author)&&e.jsxs("footer",{className:`text-[14px] font-semibold ${r?"text-white/70":"text-zinc-500"}`,children:[" ","- ",(J=x[f])==null?void 0:J.author]})]},f)})}),e.jsxs("div",{className:"flex items-center gap-4 mt-4 pl-5",children:[x.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex gap-1.5","aria-hidden":"true",children:x.map((a,n)=>e.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${n===f?`w-5 ${r?"bg-white/80":"bg-zinc-400"}`:`w-1.5 ${r?"bg-white/35":"bg-zinc-300"}`}`},n))}),e.jsx("div",{className:`h-3 w-px ${r?"bg-white/30":"bg-zinc-300"}`})]}),e.jsx("button",{type:"button",onClick:()=>_("other",void 0,void 0,"depoimento"),className:`text-[13px] font-medium transition-colors ${r?"text-white/60 hover:text-white":"text-zinc-400 hover:text-zinc-700"}`,children:"Envie seu depoimento"})]})]})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col relative items-center justify-center p-4 bg-white",children:[!new URLSearchParams(window.location.search).get("redirect_to")&&e.jsxs("a",{href:d.home,className:"absolute top-6 left-6 inline-flex items-center gap-2 text-zinc-500 hover:text-zinc-900 transition-colors z-20 group",children:[e.jsx(Ne,{className:"w-4 h-4 group-hover:-translate-x-1 transition-transform"}),e.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Voltar"})]}),e.jsxs("div",{className:"w-full max-w-[440px] flex-1 sm:flex-none flex flex-col justify-center sm:block relative z-10",children:[e.jsx("div",{className:"flex justify-center mb-8",children:e.jsx(o,{mode:"wait",children:t==="magic-link-sent"?e.jsxs(s.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 bg-emerald-50 rounded-full flex items-center justify-center",children:[e.jsx(s.svg,{className:"w-8 h-8 text-emerald-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.6,delay:.2},children:e.jsx(s.path,{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.8,delay:.3}})}),e.jsx(s.div,{className:"absolute",initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{delay:.8,type:"spring",stiffness:300},children:e.jsx("div",{className:"absolute -top-1 -right-1 w-5 h-5 bg-emerald-500 rounded-full flex items-center justify-center",children:e.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})})]},"email-sent-icon"):e.jsx(s.img,{src:L,alt:h,className:"w-12 h-12 rounded-[0.85rem] object-contain",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8}},"portal-icon")})}),e.jsx("div",{className:"text-center mb-10",children:e.jsx(o,{mode:"wait",children:e.jsxs(s.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.15},children:[e.jsx("h2",{className:"text-[26px] font-semibold text-zinc-900 tracking-tight leading-tight",children:re()}),t==="magic-link-sent"?e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsx("p",{className:"text-zinc-600 text-[15px] font-medium",children:"Enviamos um link de acesso para"}),e.jsx("p",{className:"text-zinc-900 text-[16px] font-bold bg-zinc-50 inline-block px-4 py-2 rounded-xl",children:E}),e.jsx("p",{className:"text-zinc-500 text-[14px] font-medium leading-relaxed",children:"Abra seu e-mail e clique no link para entrar automaticamente. O link expira em 1 hora."}),e.jsxs("div",{className:"pt-2 flex items-center justify-center gap-2 text-zinc-400 text-[13px]",children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75
1a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})}),e.jsx("span",{children:"Verifique também a pasta de spam"})]})]}):e.jsx("p",{className:"text-zinc-500 text-[15px] mt-2 font-medium",children:le()})]},t+"-header")})}),e.jsx(o,{children:$&&e.jsx(s.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:e.jsx("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 rounded-2xl text-red-600 text-[14px] font-medium text-center",children:$})})}),e.jsx(o,{children:["login","register"].includes(t)&&e.jsxs(s.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:[.4,0,.2,1]},className:"space-y-3 mb-6",children:[e.jsx(s.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05,ease:[.4,0,.2,1]},children:e.jsxs("button",{type:"button",onClick:ae,disabled:c,className:`group w-full flex items-center justify-center gap-3 h-[52px] bg-white border ${v==="google"?"border-blue-400 shadow-[0_0_0_3px_rgba(59,130,246,0.08)]":"border-zinc-200/80 hover:border-zinc-300"} hover:bg-zinc-50/80 rounded-[14px] transition-all duration-200 text-[15px] font-semibold text-zinc-700 focus:outline-none focus:border-zinc-300 focus:shadow-[0_0_0_3px_rgba(0,0,0,0.04)] disabled:opacity-50 disabled:cursor-not-allowed`,children:[c?e.jsx(k,{className:"w-[18px] h-[18px] animate-spin text-zinc-400"}):e.jsxs("svg",{className:"w-[18px] h-[18px]",viewBox:"0 0 24 24",children:[e.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),e.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),e.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.24.81-.6z",fill:"#FBBC05"}),e.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),e.jsx("span",{children:"Continuar com Google"})]})}),e.jsx(s.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.12,ease:[.4,0,.2,1]},children:e.jsxs("button",{type:"button",onClick:se,disabled:c,className:`group w-full flex items-center justify-center gap-3 h-[52px] bg-white border ${v==="apple"?"border-zinc-400 shadow-[0_0_0_3px_rgba(0,0,0,0.06)]":"border-zinc-200/80 hover:border-zinc-300"} hover:bg-zinc-50/80 rounded-[14px] transition-all duration-200 text-[15px] font-semibold text-zinc-700 focus:outline-none focus:border-zinc-300 focus:shadow-[0_0_0_3px_rgba(0,0,0,0.04)] disabled:opacity-50 disabled:cursor-not-allowed`,children:[c?e.jsx(k,{className:"w-[17px] h-[17px] animate-spin text-zinc-400"}):e.jsx("svg",{className:"w-[17px] h-[17px] text-zinc-800",viewBox:"0 0 814.3 1000",fill:"currentColor",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57.8-155.5-127.4c-58.3-81.8-105.3-209.4-105.3-330.2 0-194.3 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8.6 15.6 1.3 18.2 2.6.6 6.5 1.3 10.4 1.3 45.3 0 103.2-30.4 139.3-71.4z"})}),e.jsx("span",{children:"Continuar com Apple"})]})}),e.jsx(o,{children:v&&e.jsx(s.p,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"text-[12px] text-zinc-400 text-center font-medium pt-1 overflow-hidden",children:v==="google"?"Parece que você usa Google - experimente o login rápido acima ↑":"Parece que você usa Apple - experimente o login rápido acima ↑"})}),e.jsx(o,{mode:"wait",children:M?e.jsx(s.div,{initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:e.jsxs("div",{className:"flex items-center gap-3 py-3",children:[e.jsx("div",{className:"h-[1px] bg-zinc-200 flex-1"}),e.jsx("span",{className:"text-[12px] text-zinc-400 font-semibold uppercase tracking-wider",children:"Ou com seu e-mail"}),e.jsx("div",{className:"h-[1px] bg-zinc-200 flex-1"})]})},"email-divider"):e.jsxs(s.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-3 py-6",children:[e.jsx("div",{className:"h-[1px] bg-zinc-200 flex-1"}),e.jsx("span",{className:"text-[12px] text-zinc-400 font-semibold uppercase tracking-wider",children:"Ou"}),e.jsx("div",{className:"h-[1px] bg-zinc-200 flex-1"})]}),e.jsxs("button",{type:"button",onClick:()=>{Z(!0),setTimeout(()=>{var a;return(a=q.current)==null?void 0:a.focus()},350)},className:"w-full flex items-center justify-center gap-3 h-[52px] bg-zinc-100/70 hover:bg-zinc-200/70 rounded-[14px] transition-all duration-200 text-[15px] font-semibold text-zinc-700 focus:outline-none focus:shadow-[0_0_0_3px_rgba(0,0,0,0.04)]",children:[e.jsx(ze,{className:"w-[17px] h-[17px] text-zinc-500"}
1),t==="login"?"Continuar com e-mail":"Criar conta com e-mail"]})]},"show-email-btn")})]},"social-actions")}),e.jsx(o,{initial:!1,mode:"wait",children:t!=="magic-link-sent"&&(M||!["login","register"].includes(t))&&e.jsxs(s.form,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-5 overflow-hidden",onSubmit:t==="login"?a=>{a.preventDefault(),U()}:t==="register"?a=>{a.preventDefault(),U()}:t==="forgot-password"?ie:t==="2fa-recovery"?a=>{a.preventDefault(),B()}:a=>{a.preventDefault(),w()},children:[e.jsxs(o,{mode:"wait",initial:!1,children:[["login","register","forgot-password"].includes(t)&&e.jsxs(s.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"space-y-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-[13px] font-semibold text-zinc-900",children:"E-mail"}),e.jsx("input",{ref:q,type:"email",value:E,onChange:a=>P(a.target.value),onKeyDown:a=>{a.key==="Tab"&&a.shiftKey},required:!0,className:"w-full px-4 py-3.5 bg-zinc-100/70 border border-transparent focus:bg-white focus:border-zinc-300 focus:shadow-[0_0_0_4px_rgba(228,228,231,0.5)] rounded-[14px] transition-all duration-300 text-[15px] font-medium text-zinc-900 placeholder:text-zinc-400 outline-none",placeholder:"[email protected]"})]}),t!=="forgot-password"&&j]},"standard-fields"),t==="2fa"&&e.jsxs(s.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"space-y-6",children:[e.jsx(ve,{value:R,onChange:ee,onComplete:a=>w(a),disabled:c,error:!!u,showCountdown:!1,autoFocus:!0}),u&&e.jsx("div",{className:"p-4 bg-red-50 border border-red-100 rounded-2xl text-red-600 text-[14px] font-medium text-center",children:u}),e.jsxs("button",{type:"button",onClick:()=>{b("2fa-recovery"),S(null)},className:"w-full text-center text-[13px] text-zinc-500 hover:text-blue-600 font-semibold transition-colors flex items-center justify-center gap-1.5",children:[e.jsx(C,{size:13}),"Perdeu o acesso ao app? Usar código de recuperação"]}),e.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 rounded-xl cursor-pointer group transition-all duration-200 ${g?"bg-blue-50/80 border border-blue-200/60":"bg-zinc-50/70 border border-zinc-200/50 hover:bg-zinc-100/70"}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"checkbox",checked:g,onChange:a=>te(a.target.checked),className:"sr-only peer"}),e.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 ${g?"bg-blue-500":"bg-zinc-300"}`,children:e.jsx("div",{className:`absolute top-[3px] w-4 h-4 rounded-full bg-white shadow-sm transition-transform duration-200 ${g?"translate-x-[21px]":"translate-x-[3px]"}`})})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:`text-[13px] font-semibold transition-colors ${g?"text-blue-700":"text-zinc-600 group-hover:text-zinc-800"}`,children:"Confiar neste dispositivo"}),e.jsx("span",{className:"text-[11px] text-zinc-400 font-medium",children:"Não pedir 2FA por 30 dias"})]})]})]},"2fa-fields"),t==="2fa-recovery"&&e.jsxs(s.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-[13px] font-semibold text-zinc-900",children:"Código de recuperação"}),e.jsx("input",{type:"text",value:D,onChange:a=>O(a.target.value.toUpperCase()),placeholder:"XXXX-XXXX",maxLength:9,className:"w-full px-4 py-3.5 bg-zinc-100/70 border border-transparent focus:bg-white focus:border-zinc-300 focus:shadow-[0_0_0_4px_rgba(228,228,231,0.5)] rounded-[14px] transition-all duration-300 text-[17px] font-mono font-bold text-zinc-900 placeholder:text-zinc-400 outline-none text-center tracking-[0.2em]",autoFocus:!0})]}),e.jsxs("div",{className:"bg-amber-50 border border-amber-100 rounded-xl p-3 flex gap-2",children:[e.jsx(C,{size:15,className:"text-amber-600 shrink-0 mt-0.5"}),e.jsxs("p",{className:"text-[12px] text-amber-800 leading-relaxed font-medium",children:["Os códigos de recuperação foram gerados quando você ativou o 2FA. Cada código só pode ser usado ",e.jsx("strong",{children:"uma vez"}),"."]})]}),u&&e.jsx("div",{className:"p-4 bg-red-50 border border-red-100 rounded-2xl text-red-600 text-[14px] font-medium text-center",children:u})]}
1,"2fa-recovery-fields")]}),e.jsxs("div",{className:"space-y-3 mt-4",children:[t!=="2fa-recovery"&&t!=="2fa"&&e.jsx("button",{type:"submit",disabled:c,className:"w-full py-3.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-900 rounded-2xl font-semibold text-[15px] transition-all flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c?e.jsx("div",{className:"w-5 h-5 border-[2.5px] border-zinc-900/20 border-t-zinc-900 rounded-full animate-spin"}):e.jsx(o,{mode:"wait",children:e.jsx(s.span,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.15},children:t==="login"||t==="register"?"Receber link de acesso":"Enviar instruções"},t)})}),t==="2fa"&&e.jsx("button",{type:"button",onClick:()=>w(),disabled:c||R.length!==6,className:"w-full py-3.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-900 rounded-2xl font-semibold text-[15px] transition-all flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c?e.jsx("div",{className:"w-5 h-5 border-[2.5px] border-zinc-900/20 border-t-zinc-900 rounded-full animate-spin"}):e.jsxs(e.Fragment,{children:["Verificar e Entrar",e.jsx(ke,{className:"w-4 h-4 ml-1"})]})}),t==="2fa-recovery"&&e.jsx("button",{type:"button",onClick:()=>B(),disabled:T||D.trim().length<4,className:"w-full py-3.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-900 rounded-2xl font-semibold text-[15px] transition-all flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:T?e.jsx(k,{size:18,className:"animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(C,{size:16}),"Verificar código de recuperação"]})}),e.jsx(o,{children:j})]}),e.jsxs(o,{children:[(t==="forgot-password"||t==="2fa")&&e.jsx(s.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-4 text-center overflow-hidden",children:e.jsx("button",{type:"button",onClick:()=>b("login"),className:"py-2 text-zinc-500 hover:text-black text-[14px] font-semibold transition-colors focus:outline-none",children:"Voltar para o Login"})}),t==="2fa-recovery"&&e.jsx(s.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-4 text-center overflow-hidden",children:e.jsx("button",{type:"button",onClick:()=>{b("2fa"),S(null),O("")},className:"py-2 text-zinc-500 hover:text-black text-[14px] font-semibold transition-colors focus:outline-none",children:"← Voltar para o código do app"})})]})]},"email-form")}),e.jsx(o,{children:["login","register"].includes(t)&&e.jsxs(s.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"mt-8 text-center",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center text-[14px] text-zinc-500 font-medium overflow-hidden",children:[e.jsx(o,{mode:"wait",children:e.jsx(s.span,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:5},transition:{duration:.15},children:t==="login"?"Não tem uma conta?":"Já tem uma conta?"},t)}),e.jsx("button",{onClick:()=>b(t==="login"?"register":"login"),className:"text-black font-semibold hover:underline transition-colors mt-1 sm:mt-0 sm:ml-1 focus:outline-none",children:e.jsx(o,{mode:"wait",children:e.jsx(s.span,{initial:{opacity:0,x:5},animate:{opacity:1,x:0},exit:{opacity:0,x:-5},transition:{duration:.15},children:t==="login"?"Criar conta agora":"Fazer login"},t)})})]}),e.jsxs("p",{className:"mt-4 text-[12px] text-zinc-400 font-medium leading-relaxed",children:["Ao continuar, você concorda com os"," ",e.jsx("a",{href:d.termos,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 hover:text-zinc-700 underline underline-offset-2 transition-colors",children:"Termos de Uso"})," ","e a"," ",e.jsx("a",{href:d.privacidade,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-500 hover:text-zinc-700 underline underline-offset-2 transition-colors",children:"Política de Privacidade"}),"."]})]},"footer-toggle")})]}),e.jsx("div",{className:"mt-auto sm:mt-0 sm:absolute sm:bottom-4 sm:left-0 sm:right-0 px-4 sm:px-6 pt-6 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:py-0 border-t border-zinc-100 sm:border-0",children:e.jsxs("div",{className:"flex flex-col items-center text-[11px] text-zinc-400 font-medium gap-1",children:[e.jsxs("span",{className:"text-center",children:["© ",new Date().getFullYear()," ",e.jsx("strong",{children:h}),". Todos os direitos reservados."]}),e.jsxs("nav",{className:"flex items-center gap-2 sm:gap-3 justify-center",children:[e.jsx("a",{href:d.suporte,target:"_blank",rel:"noopener noreferrer",className:"hover:text-zinc-600 transition",children:"Suporte"}),e.jsx("span",{className:"text-zinc-200",children:"·"}),e.jsx("button",{type:"button",onClick:()=>_(),className:"hover:text-zinc-600 transition",children:"Feedback"}),e.jsx("span",{className:"text-zinc-200",children:"·"}),e.jsx("a",{href:d.cookies,target:"_blank",rel:"noopener noreferrer",className:"hover:text-zinc-600 transition",children:"Cookies"}),e.jsx("span",{className:"text-zinc-200",children:"·"}),e.jsx("a",{href:d.privacidade,target:"_blank",rel:"noopener noreferrer",className:"hover:text-zinc-600 transition",children:"Privacidade"}),e.jsx("span",{className:"text-zinc-200",children:"·"}),e.jsx("a",{href:d.termos,target:"_blank",rel:"noopener noreferrer",className:"hover:text-zinc-600 transition",children:"Termos"})]})]})})]})]})};export{He as LoginPage};

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.