1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7382],{39890:function(e,t,a){Promise.resolve().then(a.bind(a,33005))},33005:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return b}});var s=a(57437),r=a(2265),n=a(71976),o=a(40933),i=a(74232),l=a(52022),c=a(74453),d=a(47019),u=a(75733),m=a(36141),f=a(87138),h=a(16463),x=a(69728),p=a(80017);function b(){let e=(0,h.useRouter)(),[t,a]=(0,r.useState)(!1),[b,v]=(0,r.useState)(""),[g,y]=(0,r.useState)(""),[j,k]=(0,r.useState)(""),[N,w]=(0,r.useState)(!1),[S,_]=(0,r.useState)(!1),[C,Z]=(0,r.useState)(""),[M,A]=(0,r.useState)(!1),[E,P]=(0,r.useState)(0),[I,q]=(0,r.useState)(0),[z,O]=(0,r.useState)(0);(0,r.useEffect)(()=>{document.documentElement.style.getPropertyValue("--bg-site")||(document.documentElement.style.setProperty("--bg-site","#f8fafc"),document.documentElement.style.setProperty("--bg-card","#ffffff"),document.documentElement.style.setProperty("--text-main","#0f172a"))},[]),(0,r.useEffect)(()=>{let e;return I>0&&(e=setInterval(()=>{q(e=>e-1)},1e3)),()=>clearInterval(e)},[I]);let D=async e=>{if(e.preventDefault(),!(I>0)){Z(""),_(!0);try{let e=await fetch("/api/cofre/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:b,username:g,password:j})});if(429===e.status){q(60),Z("Muitas tentativas. Aguarde 60 segundos.");return}let t=await e.json();e.ok&&t.success?(P(0),O(0),t.token&&localStorage.setItem("advbr_token",t.token),(0,x.t7)(t.escritorio),(0,x.Bw)(),window.location.href="/cofre/gestor"):(B(),Z(t.error||"Credenciais inv\xe1lidas."))}catch(e){console.error("Erro na tentativa de login:",e),B(),Z("Falha de comunica\xe7\xe3o com o servidor.")}finally{_(!1)}}},B=()=>{let e=E+1;if(P(e),e%3==0){let e=z+1;O(e),q(1===e?30:60*e)}};return(0,s.jsxs)("div",{className:"min-h-screen bg-[var(--bg-site)] flex flex-col items-center justify-center p-4 transition-all duration-300 ".concat(M?"opacity-0 scale-95":"opacity-100 scale-100"),children:[(0,s.jsx)("div",{className:"absolute top-6 left-6 md:top-10 md:left-10",children:(0,s.jsxs)(f.default,{href:"/",className:"text-slate-600 hover:text-blue-600 flex items-center gap-2 text-sm font-medium transition-colors",children:[(0,s.jsx)(n.Z,{className:"w-4 h-4 rotate-180"}),"Voltar para o site"]})}),(0,s.jsxs)("div",{className:"w-full max-w-md bg-[var(--bg-card)] border border-slate-200 rounded-2xl shadow-xl overflow-hidden transition-all duration-500",children:[(0,s.jsxs)("div",{className:"p-8 pb-6 text-center border-b border-slate-200 bg-blue-50/50",children:[(0,s.jsxs)("h1",{className:"text-3xl font-extrabold text-[#0f172a] tracking-tight mb-2 select-none",children:["adv",(0,s.jsx)("span",{className:"text-blue-600",children:"BR"}),(0,s.jsx)("span",{className:"font-extrabold text-[#0f172a]",children:".info"})]}),(0,s.jsx)("p",{className:"text-xs text-slate-500 font-medium",children:"Acesso seguro \xe0 gest\xe3o de certificados digitais"})]}),(0,s.jsxs)("div",{className:"p-8 pt-6",children:[I>0&&(0,s.jsxs)("div",{className:"mb-6 p-4 bg-surface-info border border-surface-info rounded-xl flex items-center gap-3 text-surface-info-title text-sm",children:[(0,s.jsx)(o.Z,{className:"w-5 h-5 text-slate-500 animate-pulse shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-bold block",children:"Acesso Temporariamente Bloqueado"}),(0,s.jsxs)("span",{children:["Aguarde ",(0,s.jsxs)("strong",{children:[I,"s"]})," para tentar novamente."]})]})]}),(0,s.jsxs)("form",{onSubmit:D,className:"space-y-4",autoComplete:"off",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-[var(--text-main)] mb-1",children:"C\xf3digo da Empresa"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,s.jsx)(i.Z,{className:"h-5 w-5 text-slate-400"})}),(0,s.jsx)("input",{type:"text",value:b,onChange:e=>v(e.target.value.toLowerCase().replace(/\s/g,"")),required:!0,disabled:I>0,autoComplete:"off",className:"w-full pl-10 pr-4 py-3 rounded-lg border border-slate-200 bg-slate-50/50 text-[var(--text-main)] focus:outline-none focus:ring-2 focus:ring-blue-600 transition-all text-sm disabled:opacity-50",placeholder:"Ex: escritorio-adv"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-[var(--text-main)] mb-1",children:"Seu Usu\xe1rio"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,s.jsx)(l.Z,{className:"h-5 w-5 text-slate-400"})}),(0,s.jsx)("input",{type:"text",value:g,onChange:e=>y(e.target.value.toLowerCase().replace(/\s/g,"")),required:!0,disabled:I>0,autoComplete:"off",className:"w-full pl-10 pr-4 py-3 rounded-lg border border-slate-200 bg-slate-50/50 text-[var(--text-main)] focus:outline-none focus:ring-2 focus:ring-blue-600 transition-all text-sm disabled:opacity-50",placeholder:"Ex: gestor.master"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-[var(--text-main)] mb-1",children:"Senha"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,s.jsx)(c.Z,{className:"h-5 w-5 text-slate-400"})}),(0,s.jsx)("input",{type:N?"text":"password",value:j,onChange:e=>k(e.target.value),required:!0,disabled:I>0,autoComplete:"off",className:"w-full pl-10 pr-12 py-3 rounded-lg border border-slate-200 bg-slate-50/50 text-[var(--text-main)] focus:outline-none focus:ring-2 focus:ring-blue-600 transition-all text-sm disabled:opacity-50",placeholder:"Sua senha de acesso"}),(0,s.jsx)("button",{type:"button",onClick:()=>w(!N),disabled:I>0,className:"absolute inset-y-0 right-0 pr-3 flex items-center text-slate-400 hover:text-blue-600 transition-colors cursor-pointer disabled:opacity-50",title:N?"Ocultar senha":"Exibir senha",children:N?(0,s.jsx)(d.Z,{className:"h-5 w-5"}):(0,s.jsx)(u.Z,{className:"h-5 w-5"})})]})]}),C&&!I&&(0,s.jsx)("p",{className:"text-slate-800 text-xs font-bold text-center bg-slate-100 border border-slate-200 p-2 rounded-lg",children:C}),(0,s.jsx)("button",{type:"submit",disabled:S||I>0,className:"w-full py-3 px-4 bg-blue-600 hover:bg-blue-700 text-white font-bold rounded-lg transition-all shadow-md mt-4 text-sm disabled:opacity-70 active:scale-98 cursor-pointer disabled:cursor-not-allowed",children:S?"Autenticando...":I>0?"Aguarde (".concat(I,"s)"):"Autenticar"})]}),(0,s.jsxs)("div",{className:"text-center mt-4 space-y-3",children:[(0,s.jsx)("a",{href:"/cofre/esqueci-senha",onClick:t=>{t.preventDefault(),I>0||(A(!0),setTimeout(()=>{e.push("/cofre/esqueci-senha")},250))},className:"text-xs text-blue-600 hover:underline font-bold ".concat(I>0?"pointer-events-none opacity-50":"cursor-pointer"),children:"Esqueci minha senha"}),(0,s.jsxs)("p",{className:"text-[11px] text-slate-500",children:["Ainda n\xe3o conhece o Cofre?"," ",(0,s.jsx)(f.default,{href:"/cofre/sobre",className:"text-blue-600 font-semibold hover:underline",children:"Ver funcionalidades"})," \xb7 ",(0,s.jsx)("a",{href:p.Fg,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 font-semibold hover:underline",children:"Apresenta\xe7\xe3o comercial"})]})]})]}),(0,s.jsxs)("div",{className:"bg-slate-50 border-t border-slate-200 p-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 cursor-pointer group",onClick:()=>a(!t),children:[(0,s.jsx)(m.Z,{className:"w-5 h-5 text-blue-600"}),(0,s.jsx)("span",{className:"text-xs font-bold text-blue-900 uppercase tracking-wider group-hover:opacity-80 transition-opacity",children:"100% Conformidade LGPD"})]}),t&&(0,s.jsxs)("div",{className:"mt-4 p-4 bg-white rounded-lg border border-blue-200 text-xs text-slate-700 leading-relaxed text-left transition-all duration-300 shadow-sm",children:[(0,s.jsx)("strong",{children:"Criptografia Avan\xe7ada:"})," Os certificados e senhas s\xe3o armazenados no banco de dados com criptografia de ponta (at rest).",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("strong",{children:"Privacy by Design:"})," O arquivo .pfx original nunca \xe9 trafegado para o navegador ou computador do usu\xe1rio, mitigando totalmente o risco de vazamento do e-CPF."]})]})]})]})}},69728:function(e,t,a){"use strict";async function s(e,t){return fetch(e,{...t,credentials:"include",headers:{...(null==t?void 0:t.headers)||{}}})}async function r(e,t){return fetch(e,{...t,credentials:"include",headers:{...(null==t?void 0:t.headers)||{}}})}function n(){localStorage.removeItem("advbr_admin_authed"),localStorage.removeItem("advbr_admin_authed_last_activity")}function o(){localStorage.removeItem("advbr_escritorio"),localStorage.removeItem("advbr_escritorio_last_activity")}function i(e){localStorage.setItem("advbr_escritorio",JSON.stringify(e)),localStorage.setItem("advbr_escritorio_last_activity",Date.now().toString())}function l(){sessionStorage.setItem("advbr_escritorio_fresh_login","1")}function c(){let e="1"===sessionStorage.getItem("advbr_escritorio_fresh_login");return e&&sessionStorage.removeItem("advbr_escritorio_fresh_login"),e}a.d(t,{Am:function(){return o},Bw:function(){return l},NK:function(){return n},ds:function(){return s},oY:function(){return c},rj:function(){return r},t7:function(){return i}})},80017:function(e,t,a){"use strict";a.d(t,{FB:function(){return i},Fg:function(){return s},c5:function(){return d},g7:function(){return n},tD:function(){return r},uT:function(){return l},xJ:function(){return o},zh:function(){return c}});let s="/marketing/apresentacao-cofre-advbr.html",r="/marketing/apresentacao-msp-ti-advbr.html",n="/marketing/apresentacao-seguranca-advbr.html",o="/materiais",i="Material comercial",l="Apresenta\xe7\xe3o Comercial Cofre",c="Apresenta\xe7\xe3o Comercial MSP TI",d="Apresenta\xe7\xe3o Seguran\xe7a de Dados"},71976:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 2 * @license lucide-react v0.378.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,a(78030).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},74232:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 7 * @license lucide-react v0.378.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let s=(0,a(78030).Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
11],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},40933:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 12 * @license lucide-react v0.378.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,a(78030).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},47019:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 17 * @license lucide-react v0.378.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let s=(0,a(78030).Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},75733:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 22 * @license lucide-react v0.378.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let s=(0,a(78030).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},74453:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 27 * @license lucide-react v0.378.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let s=(0,a(78030).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},36141:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 32 * @license lucide-react v0.378.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let s=(0,a(78030).Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},52022:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 37 * @license lucide-react v0.378.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let s=(0,a(78030).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},16463:function(e,t,a){"use strict";var s=a(71169);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")&&a.d(t,{useSearchParams:function(){return s.useSearchParams}})}},function(e){e.O(0,[1048,2971,7023,1744],function(){return e(e.s=39890)}),_N_E=e.O()}]);
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.