1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[633],{19460:function(n,e,t){"use strict";t.d(e,{Z:function(){return components_InputWIthLabel}});var r=t(72253),o=t(47702),a=t(85893);t(67294);var i=t(79783),s=t(82729),c=t(85444);function _templateObject(){var n=(0,s._)(["\n width: 100%;\n margin-top: 24px;\n\n & input {\n width: 100%;\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,s._)(["\n margin-bottom: 5px;\n font-style: normal;\n font-weight: 900;\n font-size: 12px;\n line-height: 14px;\n text-transform: uppercase;\n color: ",";\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,s._)(["\n font-style: normal;\n font-weight: 900;\n font-size: 10px;\n line-height: 12px;\n text-transform: uppercase;\n color: ",";\n"]);return _templateObject2=function(){return n},n}var l=c.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-66c99bb3-0"})(_templateObject()),u=c.ZP.b.withConfig({displayName:"styles__LabelText",componentId:"sc-66c99bb3-1"})(_templateObject1(),function(n){return n.theme.colors.text}),p=c.ZP.strong.withConfig({displayName:"styles__ErrorLabel",componentId:"sc-66c99bb3-2"})(_templateObject2(),function(n){return n.theme.colors.danger}),components_InputWIthLabel=function(n){var e=n.label,t=n.name,s=n.errorLabel,c=n.hasError,d=(0,o._)(n,["label","name","errorLabel","hasError"]);return(0,a.jsxs)(l,{htmlFor:t,children:[(0,a.jsx)(u,{children:e}),(0,a.jsx)(i.Z,(0,r._)({name:t,hasError:c},d)),s&&(0,a.jsx)(p,{children:s})]})}},79783:function(n,e,t){"use strict";t.d(e,{Z:function(){return components_Input}});var r=t(72253),o=t(14932),a=t(47702),i=t(85893);t(67294);var s=t(83222),c=t(82729),l=t(85444);function _templateObject(){var n=(0,c._)(["\n border: ",";\n "]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,c._)(["\n margin-top: 5px;\n transition: border 0.25s ease-in-out;\n border: ",";\n outline: none;\n padding: 10px 16px;\n\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n\n &:focus {\n border: ",";\n }\n\n ","\n"]);return _templateObject1=function(){return n},n}var u=l.ZP.input.withConfig({displayName:"styles__Input",componentId:"sc-14650ce8-0"})(_templateObject1(),function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.lightGray})},function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.primary})},function(n){return n.hasError&&(0,l.iv)(_templateObject(),function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.danger})})}),components_Input=function(n){var e=n.mask,t=n.onChange,c=n.hasError,l=(0,a._)(n,["mask","onChange","hasError"]);return(0,i.jsx)(u,(0,o._)((0,r._)({},l),{onChange:function(n){e&&s.Z[e]&&s.Z[e](n),t&&"function"==typeof t&&t(n)},hasError:c}))}},20633:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return components_Login}});var r=t(85893),o=t(9008),a=t.n(o),i=t(75026),s=t(19460),c=t(67294),l=t(36824),u=t(34153),p=t(37150),d=t(19928),m=t(69178),h=t(87536),f=t(11010),g=t(72253),_=t(91309),b=t(97582),x=t(79257),v=t(60369),y=t(48951),j=t(47533),w=t(74231),O=t(50259),C=[{locale:"es-AR",name:"argentina"},{locale:"pt-BR",name:"brazil"},{locale:"es-CL",name:"chile"},{locale:"es-CO",name:"colombia"},{locale:"es-CR",name:"costa_rica"},{locale:"es-DO",name:"dominican_republic"},{locale:"es-EC",name:"equador"},{locale:"es-GT",name:"guatemala"},{locale:"es-HN",name:"honduras"},{locale:"es-MX",name:"mexico"},{locale:"fr-MA",name:"morocco"},{locale:"es-PA",name:"panama"},{locale:"es-PE",name:"peru"},{locale:"es-PY",name:"paraguay"},{locale:"es-SV",name:"el_salvador"},{locale:"es-UY",name:"uruguay"},{locale:"en-PH",name:"philippines"}],SendPasswordEmailModal_useSendPasswordEmailModal=function(n){var e,t,r=n.modalKind,o=n.defaultValue,a=(0,v.mM)(),i=null==a?void 0:null===(t=a.state)||void 0===t?void 0:t.translate,s=a.gaMetrics,l=(0,_._)((0,c.useState)(""),2),u=l[0],p=l[1],d=(0,_._)((0,c.useState)(!1),2),m=d[0],P=d[1],Z=(0,_._)((0,c.useState)(!1),2),E=Z[0],S=Z[1],I=(0,_._)((0,c.useState)(!1),2),L=I[0],k=I[1],N=(0,_._)((0,c.useState)(!0),2),M=N[0],F=N[1],z=(0,_._)((0,c.useState)(o),2),V=z[0],A=z[1],R=(0,_._)((0,c.useState)(!1),2),$=R[0],T=R[1],q=(0,O.xX)().executeRecaptcha,D=w.Ry().shape({document:w.Z_().required(i["Campo obrigat\xf3rio"])}),J=(0,h.cI)({resolver:(0,j.X)(D)}),B=J.control,W=J.handleSubmit,K=J.formState.errors,H=(e=(0,f._)(function(n){var e,t,r,o,i,s,c,l,u,d;return(0,b.Jh)(this,function(m){switch(m.label){case 0:if(!$)return[2];return[4,q("resetPassword")];case 1:t=m.sent(),k(!0),P(!1),sendMetrics("enviar"),r=null==a?void 0:null===(e=a.state)||void 0===e?void 0:e.currentLocale,o=C.filter(function(n){return(null==n?void 0:n.locale)===r})[0],m.label=2;case 2:return m.trys.push([2,4,5,6]),s={login:(0,y.nZ)(n.document,r,"login"),country:o,token:t},[4,(0,x.hu)((0,g._)({},s))];case 3:if((null==(c=m.sent())?void 0:c.status)===200&&(null==c?void 0:null===(i=c.data)||void 0===i?void 0:i.success))return S(null==c?void 0:null===(l=c.data)||void 0===l?void 0:l.success),F(!1),(null==c?void 0:null===(u=c.data)||void 0===u?void 0:u.email)&&p(null==c?void 0:null===(d=c.data)||void 0===d?void 0:d.email),[2,sendMetrics("sucesso")];return[2,P(!0)];case 4:return console.log(m.sent()),P(!0),[3,6];case 5:return k(!1),[7];case 6:return[2]}})}),function(n){return e.apply(this,arguments)}),sendMetrics=function(n){"ForgotPassword"===r?s.clickEvents.v2.TriggerAction({action:"login-esqueci-minha-senha",label:n}):"FirstAccess"===r&&s.clickEvents.v2.TriggerAction({action:"login-primeiro-acesso",label:n})},U=(0,c.useCallback)((0,f._)(function(){return(0,b.Jh)(this,function(n){return q?T(!0):console.log("Execute recaptcha not yet available"),[2]})}),[q]);return(0,c.useEffect)(function(){U()},[U]),{core:a,t:i,email:u,hasError:m,isSuccess:E,isLoading:L,isS
1howingFormModal:M,control:B,maskLocation:function(){var n;return(null==a?void 0:null===(n=a.state)||void 0===n?void 0:n.currentLocale)=="pt-BR"?"cpf":"others_docs"},handleSubmit:W,onSubmit:H,errors:K,sendMetrics:sendMetrics,handleDocument:function(n){A(n.target.value)},currentDocument:V,isVerified:$}},P=t(82729),Z=t(85444),E=t(88491);function _templateObject(){var n=(0,P._)(["\n height: 100%;\n padding: 45px 3rem 32px;\n\n "," {\n width: 100%;\n }\n\n @media (",") {\n padding: 45px 3.5rem 32px;\n max-width: 480px;\n\n "," {\n width: 325px;\n margin: 0 auto;\n }\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,P._)(["\n font-family: ",";\n font-style: normal;\n font-weight: 900;\n font-size: 16px;\n line-height: 15px;\n text-align: center;\n text-transform: uppercase;\n margin-bottom: 1.5rem;\n\n @media (",") {\n font-size: 24px;\n line-height: 29px;\n }\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,P._)(["\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n margin-bottom: 2rem;\n\n @media (",") {\n font-size: 16px;\n line-height: 24px;\n }\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,P._)(["\n width: 100%;\n margin: 0 auto;\n\n & input {\n width: 100%;\n }\n\n & label {\n margin-top: 0;\n }\n\n & button[type='submit'] {\n margin-top: 16px;\n }\n\n @media (",") {\n width: 325px;\n margin: 0 auto;\n }\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,P._)(["\n margin-top: 16px;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,P._)(["\n font-family: ",";\n font-style: normal;\n font-weight: 400;\n font-size: 22px;\n line-height: 29px;\n text-align: center;\n text-transform: uppercase;\n\n color: ",";\n"]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,P._)(["\n margin-top: 8px;\n margin-bottom: 1.5rem;\n padding: 16px;\n font-family: ",";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n\n span {\n font-weight: 900;\n }\n\n @media (",") {\n font-size: 16px;\n line-height: 24px;\n }\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,P._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n\n "," {\n max-width: 45px;\n\n & div {\n margin: 0;\n }\n }\n\n img {\n width: 100%;\n }\n"]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,P._)(["\n width: 100%;\n\n @media (",") {\n width: 325px;\n margin: 0 auto;\n }\n"]);return _templateObject8=function(){return n},n}var S=Z.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-e4ba565-0"})(_templateObject(),i.Z,function(n){return n.theme.sizes.medium},i.Z),I=Z.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-e4ba565-1"})(_templateObject1(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.sizes.medium}),L=Z.ZP.p.withConfig({displayName:"styles__Text",componentId:"sc-e4ba565-2"})(_templateObject2(),function(n){return n.theme.sizes.medium}),k=Z.ZP.form.withConfig({displayName:"styles__FormContainer",componentId:"sc-e4ba565-3"})(_templateObject3(),function(n){return n.theme.sizes.medium});Z.ZP.div.withConfig({displayName:"styles__ButtonContainer",componentId:"sc-e4ba565-4"})(_templateObject4()),Z.ZP.h1.withConfig({displayName:"styles__TitleSuccess",componentId:"sc-e4ba565-5"})(_templateObject5(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.gray});var N=Z.ZP.p.withConfig({displayName:"styles__MessageSuccess",componentId:"sc-e4ba565-6"})(_templateObject6(),function(n){return n.theme.fonts.default},function(n){return n.theme.sizes.medium}),M=Z.ZP.div.withConfig({displayName:"styles__IconContainer",componentId:"sc-e4ba565-7"}
1)(_templateObject7(),E.a),F=Z.ZP.div.withConfig({displayName:"styles__AlertWrapper",componentId:"sc-e4ba565-8"})(_templateObject8(),function(n){return n.theme.sizes.medium}),components_SendPasswordEmailModal=function(n){var e=n.title,t=n.showing,o=n.onClose,a=n.modalKind,s=n.defaultValue,f=n.message,g=SendPasswordEmailModal_useSendPasswordEmailModal({modalKind:a,defaultValue:s}),_=g.t,b=g.email,x=g.hasError,v=g.isSuccess,y=g.isLoading,j=g.isShowingFormModal,w=g.control,O=g.maskLocation,C=g.handleSubmit,P=g.onSubmit,Z=g.errors,E=g.sendMetrics,z=g.handleDocument,V=g.currentDocument,A=g.isVerified;return(0,c.useEffect)(function(){E("modal-visualizado")},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{showing:t,onClose:o,closeIconSide:"right",children:(0,r.jsxs)(S,{children:[j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M,{children:(0,r.jsx)(p.Z,{children:(0,r.jsx)("img",{src:"/icons/icon-warning.svg"})})}),(0,r.jsx)(I,{children:e}),(0,r.jsx)(L,{children:f}),x?(0,r.jsx)(F,{children:(0,r.jsx)(m.Z,{status:"fail",message:_["Usu\xe1rio n\xe3o encontrado"],icon:(0,r.jsx)(p.Z,{children:(0,r.jsx)("img",{src:"/icons/icon-alert.svg"})})})}):(0,r.jsx)("noscript",{}),(0,r.jsxs)(k,{onSubmit:C(P),children:[(0,r.jsx)(h.Qr,{render:function(n){var e=n.field,t=e.onChange,o=e.onBlur;return(0,r.jsx)(u.Z,{label:_["Seu CPF"],type:"text",mask:O(),hasError:void 0!==Z.document,onChange:function(n){z(n),t(n)},onBlur:o,autoFocus:!0,value:V})},name:"document",control:w,defaultValue:s}),(0,r.jsx)(i.Z,{variant:"primary",type:"submit",disabled:!A,children:_.Enviar})]})]}),v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M,{children:(0,r.jsx)(p.Z,{children:(0,r.jsx)("img",{src:"/icons/icon-success-v2.svg"})})}),(0,r.jsx)(I,{children:_["E-mail enviado!"]}),(0,r.jsxs)(N,{children:[_["Verifique o e-mail"]," ",(0,r.jsx)("span",{children:b})," ",_["e siga as instru\xe7\xf5es para criar sua nova senha."]]}),(0,r.jsx)(i.Z,{variant:"primary",type:"button",onClick:o,children:_.Fechar}),(0,r.jsx)(F,{children:(0,r.jsx)(m.Z,{status:"warning",icon:(0,r.jsx)(p.Z,{children:(0,r.jsx)("img",{src:"/icons/icon-alert-v2.svg"})}),message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:_["Aten\xe7\xe3o:"]})," ",_["Caso n\xe3o utilize o email acima, por favor dirija-se a uma unidade mais pr\xf3xima."]]})})})]})]})}),y&&(0,r.jsx)(d.Z,{})]})},z=t(75766),V=t(14932),A=t(11163),R=t(41200),$=t(95804),T=t(85962),q=t(6987),Login_useLogin=function(n){var e,t=(0,A.useRouter)(),r=(0,_._)((0,c.useState)(!1),2),o=r[0],a=r[1],i=(0,_._)((0,c.useState)(!1),2),s=i[0],l=i[1],u=(0,_._)((0,c.useState)(!1),2),p=u[0],d=u[1],m=(0,_._)((0,c.useState)(!1),2),h=m[0],x=m[1],j=(0,_._)((0,c.useState)({login:"",password:""}),2),w=j[0],C=j[1],P=(0,v.mM)(),Z=P.state,E=P.dispatch,S=P.gaMetrics,I=(0,_._)((0,c.useState)(!1),2),L=I[0],k=I[1],N=(0,O.xX)().executeRecaptcha,M=null==Z?void 0:Z.currentLocale,F=(e=(0,f._)(function(e){var r,o,a,i,s,c;return(0,b.Jh)(this,function(l){switch(l.label){case 0:if(e.preventDefault(),!L)return[2];if(r="",n)return[3,2];return[4,N("Login")];case 1:r=l.sent(),l.label=2;case 2:o=null==Z?void 0:Z.currentLocale,S.clickEvents.v2.TriggerAction({action:"login",label:"entrar"}),l.label=3;case 3:return l.trys.push([3,9,10,11]),d(!0),[4,(0,R.S)({login:(0,y.nZ)(w.login,o,"login"),password:w.password,locale:o||"pt-BR",token:r})];case 4:if(!((null==(a=l.sent())?void 0:a.status)!==200))return[3,5];return x(!0),S.clickEvents.loggingIn({success:!1}),S.clickEvents.v2.TriggerAction({action:"login",label:"erro-cpf-senha"}),[3,8];case 5:return[4,(0,T.P)()];case 6:return i=l.sent(),[4,(0,g._)({},null==i?void 0:i.data)];case 7:s=l.sent(),(0,$.Q_)({user:s,state:Z,dispatch:E}),Object.keys(s).length?(S.clickEvents.loggingIn({success:!0}),(0,q.H)(t,M)):S.clickEvents.loggingIn({success:!1}),l.label=8;case 8:return[3,11];case 9:return c=l.sent(),S.clickEvents.loggingIn({success:!1}),console.error("An unexpected error happened:",c),x(!0),[3,11];case 10:return d(!1),[7];case 11:return[2]}})}),function(n){return e.apply(this,arguments)}),D=(0,c.useCallback)((0,f._)(function(){return(0,b.Jh)(this,function(n){return N?k(!0):console.log("Execute recaptcha not yet available"),[2]})}),[N]);return(0,c.useEffect)(function(){if(n)return k(!0);D()},[D]),{user:w,isLoading:p,hasError:h,isShowingPasswordModal:o,togglePasswordModalShowing:function(){o||S.clickEvents.v2.TriggerAction({action:"login",label:"esqueci-minha-senha"}),a(!o),x(!1)},isShowingFirstAccessModal:s,toggleFirstAccessModalShowing:function(){s||S.clickEvents.v2.TriggerAction({action:"login",label:"primeiro-acesso"}),l(!s),x(!1)},handleSubmit:F,handleInputChange:function(n){C((0,V._)((0,g._)({},w),(0,z._)({},n.target.name,n.target.value)))},handleIsLoading:function(n){d(n)},isVerified:L}};
1function styles_templateObject(){var n=(0,P._)(["\n width: 100%;\n height: 100%;\n background-color: ",";\n\n @media (",") {\n padding: 72px 0;\n display: flex;\n justify-content: center;\n }\n"]);return styles_templateObject=function(){return n},n}function styles_templateObject1(){var n=(0,P._)(["\n display: inline-block;\n width: 100%;\n height: 100%;\n padding: 24px 0;\n background-color: ",";\n\n @media (",") {\n max-width: 480px;\n padding: 40px 0;\n }\n"]);return styles_templateObject1=function(){return n},n}function styles_templateObject2(){var n=(0,P._)(["\n margin: 0 auto;\n text-align: center;\n font-style: normal;\n font-family: ",";\n font-weight: 400;\n width: 90%;\n border-radius: 2px;\n font-size: 24px;\n color: ",";\n"]);return styles_templateObject2=function(){return n},n}function styles_templateObject3(){var n=(0,P._)(["\n margin: 8px auto;\n text-align: center;\n font-style: normal;\n font-weight: 900;\n width: 90%;\n font-size: 16px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"]);return styles_templateObject3=function(){return n},n}function styles_templateObject4(){var n=(0,P._)(["\n margin: 16px auto 0;\n width: 90%;\n display: flex;\n flex-direction: column;\n\n @media (",") {\n max-width: 272px;\n }\n\n & button[type='submit'] {\n margin-top: 36px;\n margin-bottom: 2rem;\n }\n"]);return styles_templateObject4=function(){return n},n}function styles_templateObject5(){var n=(0,P._)(["\n margin-top: 4px;\n padding: 4px 0;\n cursor: pointer;\n border: none;\n background-color: transparent;\n font-style: normal;\n font-family: ",";\n font-weight: 400;\n font-size: 14px;\n line-height: 17px;\n text-decoration-line: underline;\n text-align: left;\n transition: opacity 0.25s ease-in-out;\n color: #1a5baf;\n\n &:hover {\n opacity: 0.8;\n }\n"]);return styles_templateObject5=function(){return n},n}function styles_templateObject6(){var n=(0,P._)(["\n margin-top: 40px;\n background-color: #dcdcdc;\n width: 100%;\n border-radius: 0 0 2px 2px;\n padding: 24px;\n"]);return styles_templateObject6=function(){return n},n}function styles_templateObject7(){var n=(0,P._)(["\n max-width: 350px;\n margin: 0 auto;\n font-style: normal;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n text-align: center;\n color: ",";\n"]);return styles_templateObject7=function(){return n},n}function styles_templateObject8(){var n=(0,P._)(["\n display: flex;\n justify-content: center;\n margin: 3rem 0 0;\n"]);return styles_templateObject8=function(){return n},n}var D=Z.ZP.main.withConfig({displayName:"styles__Container",componentId:"sc-f09be354-0"})(styles_templateObject(),function(n){return n.theme.colors.backgroundColorDarken},function(n){return n.theme.sizes.medium}),J=Z.ZP.div.withConfig({displayName:"styles__LoginCard",componentId:"sc-f09be354-1"})(styles_templateObject1(),function(n){return n.theme.colors.backgroundColor},function(n){return n.theme.sizes.medium}),B=Z.ZP.h2.withConfig({displayName:"styles__LoginCardTitle",componentId:"sc-f09be354-2"})(styles_templateObject2(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.text});Z.ZP.p.withConfig({displayName:"styles__LoginCardError",componentId:"sc-f09be354-3"})(styles_templateObject3(),function(n){return n.theme.colors.danger});var W=Z.ZP.form.withConfig({displayName:"styles__LoginForm",componentId:"sc-f09be354-4"})(styles_templateObject4(),function(n){return n.theme.sizes.medium}),K=Z.ZP.button.withConfig({displayName:"styles__ForgotPasswordButton",componentId:"sc-f09be354-5"})(styles_templateObject5(),function(n){return n.theme.fonts.highlight});Z.ZP.div.withConfig({displayName:"styles__LoginCardFooter",componentId:"sc-f09be354-6"})(styles_templateObject6()),Z.ZP.p.withConfig({displayName:"styles__LoginCardFooterText",componentId:"sc-f09be354-7"})(styles_templateObject7(),function(n){return n.theme.colors.text}),Z.ZP.div.withConfig({displayName:"styles__CaptchaWrapper",componentId:"sc-f09be354-8"})(styles_templateObject8());var components_Login=function(n){var e,t=Login_useLogin(n.isNrSynthetic),o=t.user,c=t.isLoading,l=t.hasError,u=t.isShowingPasswordModal,p=t.togglePasswordModalShowing,h=t.isShowingFirstAccessModal,f=t.toggleFirstAccessModalShowing,g=t.handleSubmit,_=t.handleInputChange,b=t.isVerified,x=(0,v.mM)(),y=null==x?void 0:null===(e=x.state)||void 0===e?void 0:e.translate,j="pt-BR"==x.state.currentLocale?"cpf":"others_docs";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a(),{children:(0,r.jsxs)("title",{children:[y["Smart Fit"]," - ",y["Espa\xe7o do Cliente"]," - ",["Login"]]})}),(0,r.jsx)(D,{children:(0,r.jsxs)(J,{children:[(0,r.jsx)(B,{children:y["Acesse o Espa\xe7o do Cliente"]}),(0,r.jsxs)(W,{onSubmit:g,children:[l&&(0,r.jsx)(m.Z,{status:"fail",message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("strong",{children:[y["Aten\xe7\xe3o"],":"]})," ",y["CPF ou senha inv\xe1lidos"]]}),icon:(0,r.jsx)("img",{src:"/icons/icon-alert.svg"})}),(0,r.jsx)(s.Z,{label:y["Seu CPF"],type:"text",name:"login",id:"login",autoFocus:!0,mask:j,value:o.login,onChange:_,hasError:l,required:!0}),(0,r.jsx)(s.Z,{label:y.Senha,type:"password",name:"password",id:"password",value:o.password,onChange:_,hasError:l,required:!0}),(0,r.jsx)(K,{type:"button",onClick:p,children:y["Esqueci minha senha"]}),(0,r.jsx)(i.Z,{variant:"primary",type:"submit",width:"100%",disabled:!b,children:y.Entrar}),(0,r.jsx)(i.Z,{variant:"tertiary",type:"button",width:"100%",outlined:!0,onClick:f,children:y["Primeiro acesso"]})]})]})}),u&&(0,r.jsx)(components_SendPasswordEmailModal,{title:y["Esqueci minha senha"],showing:u,onClose:p,modalKind:"ForgotPassword",defaultValue:o.login,message:y["Insira o seu CPF para receber no e-mail cadastrado as instru\xe7\xf5es e o link para criar uma nova senha."]}),h?(0,r.jsx)(components_SendPasswordEmailModal,{title:y["Primeiro acesso"],showing:h,onClose:f,modalKind:"FirstAccess",defaultValue:o.login,message:y["Insira seu CPF e receba no e-mail cadastrado as instru\xe7\xf5es e o link para criar sua primeira senha."]}):(0,r.jsx)("noscript",{}),c&&(0,r.jsx)(d.Z,{})]})}},34153:function(n,e,t){"use strict";var r=t(72253),o=t(47702),a=t(85893);t(67294);var i=t(62748),s=t(51625);e.Z=function(n){var e=n.label,t=n.name,c=n.errorLabel,l=n.hasError,u=(0,o._)(n,["label","name","errorLabel","hasError"]);return(0,a.jsxs)(s.__,{htmlFor:t,children:[(0,a.jsx)(s.NV,{children:e}),(0,a.jsxs)(s.SP,{children:[(0,a.jsx)(i.Z,(0,r._)({name:t,hasError:l},u)),l&&(0,a.jsx)(s.Uc,{children:(0,a.jsx)("img",{src:"/icons/icon-warning.svg"})})]}),c&&(0,a.jsx)(s.hW,{children:c})]})}},51625:function(n,e,t){"use strict";t.d(e,{NV:function(){return i},SP:function(){return c},Uc:function(){return l},__:function(){return a},hW:function(){return s}});var r=t(82729),o=t(85444);
1function _templateObject(){var n=(0,r._)(["\n width: 100%;\n margin-top: 24px;\n\n & input {\n width: 100%;\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,r._)(["\n margin-bottom: 5px;\n font-style: normal;\n font-weight: 900;\n font-size: 12px;\n line-height: 14px;\n text-transform: uppercase;\n color: ",";\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,r._)(["\n font-style: normal;\n font-weight: 900;\n font-size: 10px;\n line-height: 12px;\n text-transform: uppercase;\n color: ",";\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,r._)(["\n position: relative;\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,r._)(["\n position: absolute;\n top: 50%;\n right: 15px;\n width: 18px;\n margin-top: -9px;\n\n img {\n width: 100%;\n filter: invert(20%) sepia(34%) saturate(4789%) hue-rotate(344deg)\n brightness(109%) contrast(112%);\n }\n"]);return _templateObject4=function(){return n},n}var a=o.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-38604484-0"})(_templateObject()),i=o.ZP.b.withConfig({displayName:"styles__LabelText",componentId:"sc-38604484-1"})(_templateObject1(),function(n){return n.theme.colors.text}),s=o.ZP.strong.withConfig({displayName:"styles__ErrorLabel",componentId:"sc-38604484-2"})(_templateObject2(),function(n){return n.theme.colors.danger}),c=o.ZP.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-38604484-3"})(_templateObject3()),l=o.ZP.div.withConfig({displayName:"styles__IconError",componentId:"sc-38604484-4"})(_templateObject4())},62748:function(n,e,t){"use strict";t.d(e,{Z:function(){return v2_Input}});var r=t(72253),o=t(14932),a=t(47702),i=t(85893);t(67294);var s=t(83222),c=t(82729),l=t(85444);function _templateObject(){var n=(0,c._)(["\n border: ",";\n "]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,c._)(["\n margin-top: 5px;\n transition: border 0.25s ease-in-out;\n border: ",";\n outline: none;\n padding: 10px 16px;\n\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n\n &:focus {\n border: ",";\n }\n\n ","\n"]);return _templateObject1=function(){return n},n}var u=l.ZP.input.withConfig({displayName:"styles__Input",componentId:"sc-7a51a850-0"})(_templateObject1(),function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.lightGray})},function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.primary})},function(n){return n.hasError&&(0,l.iv)(_templateObject(),function(n){return n.theme,"2px solid ".concat(function(n){return n.theme.colors.danger})})}),v2_Input=function(n){var e=n.mask,t=n.onChange,c=n.hasError,l=(0,a._)(n,["mask","onChange","hasError"]);return(0,i.jsx)(u,(0,o._)((0,r._)({},l),{onChange:function(n){e&&s.Z[e]&&s.Z[e](n),t&&"function"==typeof t&&t(n)},hasError:c}))}},6987:function(n,e,t){"use strict";t.d(e,{H:function(){return reload}});var reload=function(n,e){var t=n.query,r=t.ref,o=t.redirect_after_login;o?("crava"==r&&localStorage.setItem("cravaAllowed","true"),window.location.href="/".concat(e,"/").concat(o)):n.reload()}},41200:function(n,e,t){"use strict";t.d(e,{M:function(){return postLoginV2},S:function(){return postLogin}});var r=t(11010),o=t(72253),a=t(97582),i=t(48303);function postLogin(n){return _postLogin.apply(this,arguments)}function _postLogin(){return(_postLogin=(0,r._)(function(n){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,i.v_)("/api/v2/login",(0,o._)({},n))];case 1:return[2,e.sent()];case 2:return console.error("An unexpected error happened:",e.sent()),[2];case 3:return[2]}})})).apply(this,arguments)}function postLoginV2(n){return _postLoginV2.apply(this,arguments)}function _postLoginV2(){return(_postLoginV2=(0,r._)(function(n){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,i.v_)("/api/v3/login",{locale:n})];case 1:return[2,e.sent()];case 2:return console.error("An unexpected error happened:",e.sent()),[2];case 3:return[2]}})})).apply(this,arguments)}},79257:function(n,e,t){"use strict";t.d(e,{Ms:function(){return putRecoveryPassV2},hs:function(){return putChangePassV2},hu:function(){return postResetPass}});var r=t(11010),o=t(72253),a=t(97582),i=t(48303);function putChangePassV2(n){return _putChangePassV2.apply(this,arguments)}function _putChangePassV2(){return(_putChangePassV2=(0,r._)(function(n){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,i.gz)("/api/v2/password",(0,o._)({},n))];case 1:return[2,e.sent()];case 2:return console.error("An unexpected error happened:",e.sent()),[2];case 3:return[2]}})})).apply(this,arguments)}function postResetPass(n){return _postResetPass.apply(this,arguments)}function _postResetPass(){return(_postResetPass=(0,r._)(function(n){var e;return(0,a.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,i.v_)("/api/v2/reset-password",(0,o._)({},n))];case 1:return[2,t.sent()];case 2:return console.error("An unexpected error happened:",e=t.sent()),[2,null==e?void 0:e.response];case 3:return[2]}})})).apply(this,arguments)}function putRecoveryPassV2(n){return _putRecoveryPassV2.apply(this,arguments)}function _putRecoveryPassV2(){return(_putRecoveryPassV2=(0,r._)(function(n){var e;return(0,a.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,i.gz)("/api/v2/password/recovery",(0,o._)({},n)).then(function(n){return n}).catch(function(n){return n.response})];case 1:return[2,t.sent()];case 2:return console.error("An unexpected error happened:",e=t.sent()),[2,null==e?void 0:e.response];case 3:return[2]}})})).apply(this,arguments)}},83222:function(n,e){"use strict";e.Z={cep:function(n){n.target.maxLength=9;var e=n.target.value;return e=(e=e.replace(/\D/g,"")).replace(/^(\d{5})(\d)/,"$1-$2"),n.target.value=e,n},cpf:function(n){n.target.maxLength=14;var e=n.target.value;return e.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2}
1)$/)||(e=(e=(e=(e=e.replace(/\D/g,"")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{2})$/,"$1-$2"),n.target.value=e),n},others_docs:function(n){var e=n.target.value;return e=e.replaceAll(" ",""),n.target.value=e,n},cpf_string:function(n){var e=n;return e&&(e.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(e=(e=(e=(e=e.replace(/\D/g,"")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d)/,"$1.$2")).replace(/(\d{3})(\d{2})$/,"$1-$2"))),e}}},9008:function(n,e,t){n.exports=t(79201)}}]);
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.