1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4525],{38901:function(e,t,r){"use strict";r.d(t,{F:function(){return PasswordRules}});var n=r(85893),s=r(99535),a=r(46459),l=r(93967),i=r.n(l);function PasswordRules(e){let{password:t=""}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,n.jsx)(a.Y,{className:i()("w-4 h-4",t.length>7?"text-accent":"text-gray-400")}),(0,n.jsx)("span",{className:i()("text-sm",t.length>7?"text-accent":"text-gray-200"),children:"M\xednimo 8 caracteres"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,n.jsx)(a.Y,{className:i()("w-4 h-4",(0,s.Hh)(t)?"text-accent":"text-gray-400")}),(0,n.jsx)("span",{className:i()("text-sm",(0,s.Hh)(t)?"text-accent":"text-gray-200"),children:"M\xednimo 1 n\xfamero"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,n.jsx)(a.Y,{className:i()("w-4 h-4",(0,s.JY)(t)?"text-accent":"text-gray-400")}),(0,n.jsx)("span",{className:i()("text-sm",(0,s.JY)(t)?"text-accent":"text-gray-200"),children:"M\xednimo 1 letra mai\xfascula"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,n.jsx)(a.Y,{className:i()("w-4 h-4",(0,s.kk)(t)?"text-accent":"text-gray-400")}),(0,n.jsx)("span",{className:i()("text-sm",(0,s.kk)(t)?"text-accent":"text-gray-200"),children:"M\xednimo 1 letra min\xfascula"})]})]})}},64525:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return RegisterView}});var n=r(85893),s=r(50122),a=r(28692),l=r(40720),i=r(60802),o=r(75814),c=r(66644),u=r(16310),d=r(91341),m=r(99124),x=r(93177),h=r(75534),p=r(38901),f=r(71526),g=r(14257),v=r(74890),b=r(85031),j=r(60877),N=r(5114),w=r(15103),k=r(48583),y=r(41664),_=r.n(y),C=r(11163),P=r(67294),Z=r(99535),I=r(28065),M=r(10378),D=r(55678);let q=u.Ry().shape({first_name:u.Z_().required("error-name-required"),last_name:u.Z_().required("error-name-required"),cellphone:u.Z_().required("O celular \xe9 obrigat\xf3rio").test("valid-phone","Por favor, preencha o celular completo",e=>!!e&&e.length>=12&&"55"!==e),phone:u.Z_(),social_name:u.Z_(),cpf:u.Z_().required("error-cpf-required").test("cpf","CPF inv\xe1lido",e=>(0,g.TX)(e)),email:u.Z_().email("error-email-format").required("error-email-required"),password:u.Z_().required("error-password-required").test("min-length","A senha deve ter no m\xednimo 8 caracteres",e=>!!e&&e.length>=8).test("has-number","A senha deve conter ao menos 1 n\xfamero",e=>!!e&&(0,Z.Hh)(e)).test("has-uppercase","A senha deve conter ao menos 1 letra mai\xfascula",e=>!!e&&(0,Z.JY)(e)).test("has-lowercase","A senha deve conter ao menos 1 letra min\xfascula",e=>!!e&&(0,Z.kk)(e)),repeat_password:u.Z_().required("error-password-required").oneOf([u.iH("password")],"Ambas as senhas precisam ser iguais"),birth_date:u.Z_().test("(^0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/(d{4}$)","Data inv\xe1lida",e=>(0,g.Nr)(e)).required(),receive_email:u.Xg(),accepted_terms:u.Xg().required().oneOf([!0],"Voc\xea deve aceitar os termos"),gender:u.Z_().required("Por favor, selecione seu g\xeanero")}),$=(0,w.cn)(!1);function RegisterForm(){let{openModal:e,closeModal:t}=(0,o.SO)(),{mutate:r,isLoading:u,formError:w,setFormError:y}=(0,d.mr)(),Z=(0,C.useRouter)(),[F,R]=(0,P.useState)(null),[V,B]=(0,P.useState)(0),[O,A]=(0,k.KO)($),toggleInput=()=>{A(e=>!e)},S=!F,handleCPFChange=e=>{let t=(0,f.VL)(e.target.value);e.target.value=t},handleDateChange=e=>{let t=(0,f.X8)(e.target.value);e.target.value=t},L=null==w?void 0:w._account_exists,E=(0,P.useRef)(null),H=(()=>{if(!w)return null;let{_account_exists:e,...t}=w;return Object.keys(t).length>0?t:null})();return(0,P.useEffect)(()=>{L&&E.current&&E.current.scrollIntoView({behavior:"smooth",block:"center"})},[L]),(0,n.jsxs)(n.Fragment,{children:[L&&(0,n.jsxs)("div",{ref:E,className:"relative mb-6 rounded border border-accent/30 bg-accent/5 p-4 pr-10 text-sm",role:"alert",children:[(0,n.jsx)("button",{type:"button","aria-label":"Close",title:"Close alert",onClick:()=>y(null),className:"absolute top-3 right-2 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-accent transition-colors duration-200 hover:bg-gray-300 hover:bg-opacity-25 focus:bg-gray-300 focus:bg-opacity-25 focus:outline-0",children:(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(N.Tw,{className:"h-5 w-5"})})}),(0,n.jsx)("p",{className:"font-semibold text-body-dark",children:(0,a.P4)("register-email-exists-title")}),(0,n.jsx)("p",{className:"mt-1 text-body",children:(0,a.P4)("register-email-exists-detail")}),(0,n.jsxs)("div",{className:"mt-3 flex gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>e("LOGIN_VIEW"),className:"text-accent underline hover:no-underline",children:(0,a.P4)("go-to-login")}),(0,n.jsx)("span",{className:"text-muted-400",children:"\xb7"}),(0,n.jsx)("button",{type:"button",onClick:()=>e("FORGOT_VIEW"),className:"text-accent underline hover:no-underline",children:(0,a.P4)("go-to-forgot-password")})]})]}),(0,n.jsx)(c.l,{onSubmit:function(e){if(S){D.toast.error("Complete o desafio de seguran\xe7a para continuar.");return}let t=Z.query.referral_code,n=t?decodeURIComponent(t).replace(/=$/,""):null;(0,m.nB)();let s={first_name:e.first_name,last_name:e.last_name,cellphone:e.cellphone,phone:e.phone,social_name:e.social_name,cpf:(0,g.Uo)(e.cpf),email:e.email,password:e.password,birth_date:(0,f.p6)(e.birth_date),gender:e.gender,receive_email:e.receive_email,...F?{turnstile_token:F}:{}};n&&(s.invited_by_referral_code=n),r(s,{onError:e=>{var t,r;R(null),B(e=>e+1),I.u.error("Register: registration failed",{email:s.email,cpf:s.cpf,responseData:null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data,status:null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.status})}})},validationSchema:q,serverError:H,children:e=>{var r,o,c,d,m,f,g,N,w,k,y,C,P,Z;let{register:I,formState:{errors:D,isDirty:q},watch:$,setValue:F}=e,B=$("password"),A=$("cellphone"),L=$("phone");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid gap-y-2 md:grid-cols-2 md:gap-x-4",children:[(0,n.jsx)(s.Z,{label:"Nome",...I("first_name"),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(r=D.first_name)||void 0===r?void 0:r.message),required:!0}),(0,n.jsx)(s.Z,{label:"Sobrenome",...I("last_name"),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(o=D.last_name)||void 0===o?void 0:o.message),required:!0}),(0,n.jsxs)("div",{className:"mb-5",id:"cellphone",children:[(0,n.jsxs)("label",{htmlFor:"cellphone",className:"ml-4 mb-3 block text-sm font-semibold leading-none text-accent",children:["Celular com DDD"," *"]}),(0,n.jsx)(v.Z,{country:"br",onlyCountries:["br"],disableDropdown:!0,placeholder:"+55 (99) 99999-9999",onChange:e=>{F("cellphone",e)}
1,value:A,inputProps:{id:"cellphone-input",name:"cellphone"},inputClass:"!p-0 ltr:!pr-4 rtl:!pl-4 ltr:!pl-4 rtl:!pr-14 !flex !items-center !w-full !appearance-none !transition !duration-300 !ease-in-out !text-gray-200 !text-sm !bg-blue-100 focus:!outline-none focus:!ring-0 !border !border-border-base !rounded-full focus:!border-accent !h-12",containerClass:"phone-input-container"}),(null===(c=D.cellphone)||void 0===c?void 0:c.message)&&(0,n.jsx)("p",{className:"my-2 text-xs text-red-500 ltr:text-left rtl:text-right",children:(0,a.P4)(null===(d=D.cellphone)||void 0===d?void 0:d.message)})]}),(0,n.jsxs)("div",{className:"mb-5",id:"phone",children:[(0,n.jsx)("label",{htmlFor:"phone",className:"ml-4 mb-3 block text-sm font-semibold leading-none text-accent",children:"Telefone com DDD"}),(0,n.jsx)(v.Z,{country:"br",onlyCountries:["br"],disableDropdown:!0,placeholder:"+55 (99) 99999-9999",value:L,onChange:e=>{F("phone",e)},inputProps:{id:"phone-input",name:"phone"},inputClass:"!p-0 ltr:!pr-4 rtl:!pl-4 ltr:!pl-4 rtl:!pr-14 !flex !items-center !w-full !appearance-none !transition !duration-300 !ease-in-out !text-gray-200 !text-sm !bg-blue-100 focus:!outline-none focus:!ring-0 !border !border-border-base !rounded-full focus:!border-accent !h-12",containerClass:"phone-input-container"})]}),(0,n.jsxs)("div",{className:"col-span-full mb-5",children:[(0,n.jsxs)("button",{type:"button",onClick:toggleInput,className:"cursor-pointer flex items-center text-accent mb-2",children:[O?(0,n.jsx)(j.V_,{className:"h-5 w-5 mr-2"}):(0,n.jsx)(b.pO,{className:"h-5 w-5 mr-2"}),"Deseja adicionar nome social?"]}),(0,n.jsx)("div",{className:"transition-all duration-300 ease-in-out overflow-hidden ".concat(O?"max-h-20":"max-h-0"),children:(0,n.jsx)(s.Z,{label:"Nome social",...I("social_name"),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(m=D.social_name)||void 0===m?void 0:m.message),required:!0})})]}),(0,n.jsx)(s.Z,{label:"CPF",...I("cpf",{onChange:handleCPFChange}),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(f=D.cpf)||void 0===f?void 0:f.message),required:!0}),(0,n.jsx)(s.Z,{label:"E-mail",...I("email"),type:"email",variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(g=D.email)||void 0===g?void 0:g.message),required:!0}),(0,n.jsx)(l.Z,{label:"Senha",...I("password"),error:(0,a.P4)(null===(N=D.password)||void 0===N?void 0:N.message),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",required:!0}),(0,n.jsx)(l.Z,{label:"Repetir senha",...I("repeat_password"),error:(0,a.P4)(null===(w=D.repeat_password)||void 0===w?void 0:w.message),variant:"outline",className:"mb-5",inputClassName:"bg-blue-100",required:!0}),(0,n.jsx)("div",{className:"col-span-full mb-5",children:(0,n.jsx)(p.F,{password:B})}),(0,n.jsxs)("div",{className:"col-span-full mb-5",id:"gender",children:[(0,n.jsx)("legend",{className:"font-bold text-gray-200 mb-4",children:"Com qual g\xeanero voc\xea se identifica? *"}),(0,n.jsxs)("div",{className:"flex flex-row items-start gap-x-4",children:[(0,n.jsx)(x.Z,{...I("gender"),id:"masculino",label:"Masculino",value:"male"}),(0,n.jsx)(x.Z,{...I("gender"),id:"feminino",label:"Feminino",value:"female"}),(0,n.jsx)(x.Z,{...I("gender"),id:"outros",label:"Outros",value:"others"})]}),(null===(k=D.gender)||void 0===k?void 0:k.message)&&(0,n.jsx)("p",{className:"my-2 text-xs text-red-500 ltr:text-left rtl:text-right",children:(0,a.P4)(null===(y=D.gender)||void 0===y?void 0:y.message)})]}),(0,n.jsx)(s.Z,{label:"Data de nascimento",placeholder:"dd/mm/yyyy",...I("birth_date",{onChange:handleDateChange}),variant:"outline",className:"mb-5 col-span-full",inputClassName:"bg-blue-100",error:(0,a.P4)(null===(C=D.birth_date)||void 0===C?void 0:C.message),required:!0}),(0,n.jsx)(h.Z,{...I("receive_email"),label:"Desejo Receber E-mail",error:(0,a.P4)(null===(P=D.receive_email)||void 0===P?void 0:P.message),className:"mb-5 col-span-full"}),(0,n.jsx)(h.Z,{...I("accepted_terms"),label:(0,n.jsxs)("span",{children:["Concordo com os"," ",(0,n.jsx)(_(),{href:"/institucional#termos",className:"mx-1 cursor-pointer text-accent underline hover:no-underline",onClick:t,children:"Termos e condi\xe7\xf5es de uso."})]}),error:(0,a.P4)(null===(Z=D.accepted_terms)||void 0===Z?void 0:Z.message)})]}),(0,n.jsx)(M.Z,{action:"signup",onVerify:R},V),S?(0,n.jsx)("p",{className:"mt-2 text-xs text-red-500",children:"Complete o desafio de seguran\xe7a para continuar."}):null,(0,n.jsx)("div",{className:"mt-8",children:(0,n.jsx)(i.Z,{type:"submit",className:"h-12 w-full",loading:u,disabled:u||!q||S,children:"Cadastrar"})})]})}}),(0,n.jsxs)("div",{className:"relative mt-8 mb-6 flex flex-col items-center justify-center text-sm text-heading sm:mt-11 sm:mb-8",children:[(0,n.jsx)("hr",{className:"w-full"}),(0,n.jsx)("span",{className:"absolute -top-2.5 bg-light px-2 ltr:left-2/4 ltr:-ml-4 rtl:right-2/4 rtl:-mr-4",children:"OU"})]}),(0,n.jsxs)("div",{className:"text-center text-sm text-body sm:text-base",children:["J\xe1 tem uma conta?"," ",(0,n.jsx)("button",{type:"button",onClick:()=>e("LOGIN_VIEW"),className:"font-semibold text-accent underline transition-colors duration-200 hover:text-accent-hover hover:no-underline focus:text-accent-hover focus:no-underline focus:outline-0 ltr:ml-1 rtl:mr-1",children:"Entrar"})]})]})}function RegisterView(){return(0,n.jsxs)("div",{className:"flex h-full min-h-screen w-screen flex-col justify-center bg-light py-6 px-5 sm:p-8 md:h-auto md:min-
1h-0 md:max-w-[780px] md:rounded-xl",children:[(0,n.jsx)("div",{className:"flex justify-start mb-8",children:(0,n.jsx)("h2",{className:"text-accent font-semibold text-4xl",children:"Bem-vindo(a)!"})}),(0,n.jsx)(RegisterForm,{})]})}},46459:function(e,t,r){"use strict";r.d(t,{Y:function(){return CheckedIcon}});var n=r(85893);let CheckedIcon=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13",...e,children:(0,n.jsx)("g",{"data-name":"Group 36431",fill:"currentColor",children:(0,n.jsx)("path",{"data-name":"Path 22671",d:"M6.5,0A6.5,6.5,0,1,0,13,6.5,6.508,6.508,0,0,0,6.5,0Zm3.633,4.789L5.979,8.911a.639.639,0,0,1-.9.016l-2.2-2a.661.661,0,0,1-.049-.912.644.644,0,0,1,.912-.033l1.743,1.6L9.2,3.861a.657.657,0,0,1,.929.929Z"})})})},60877:function(e,t,r){"use strict";r.d(t,{V_:function(){return MinusIcon},mT:function(){return MinusIconCart},u0:function(){return MinusIconNew}});var n=r(85893);let MinusIcon=e=>(0,n.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 12H4"})}),MinusIconNew=e=>(0,n.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M13 8.5H3",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),MinusIconCart=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",...e,children:[(0,n.jsx)("circle",{cx:"6.5",cy:"6.5",r:"5.5",stroke:"#197FDB"}),(0,n.jsx)("line",{x1:"9",y1:"6.5",x2:"4",y2:"6.5",stroke:"#197FDB"})]})},85031:function(e,t,r){"use strict";r.d(t,{X0:function(){return PlusIconCart},pO:function(){return PlusIcon},w6:function(){return PlusIconNew}});var n=r(85893);let PlusIcon=e=>(0,n.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),PlusIconNew=e=>(0,n.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M8 3.5v10m5-5H3",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),PlusIconCart=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",...e,children:[(0,n.jsx)("circle",{cx:"6.5",cy:"6.5",r:"5.5",stroke:"#197FDB"}),(0,n.jsx)("line",{x1:"6.5",y1:"4",x2:"6.5",y2:"9",stroke:"#197FDB"}),(0,n.jsx)("line",{x1:"9",y1:"6.5",x2:"4",y2:"6.5",stroke:"#197FDB"})]})},10378:function(e,t,r){"use strict";r.d(t,{Z:function(){return TurnstileWidget}});var n=r(85893),s=r(4298),a=r.n(s),l=r(67294);let i="0x4AAAAAAE_HexWkvWkkvROh";function TurnstileWidget(e){let{onVerify:t,action:r}=e,s=(0,l.useRef)(null),o=(0,l.useRef)(null),c=(0,l.useRef)(t),u=(0,l.useRef)(r),[d,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>{c.current=t},[t]);let x=(0,l.useCallback)(()=>m(!0),[]);return((0,l.useEffect)(()=>{if(!i||!d||!s.current)return;let e=window.turnstile;if(!e)return;let t=u.current!==r;return u.current=r,o.current&&(e.remove(o.current),o.current=null,t&&c.current(null)),o.current=e.render(s.current,{sitekey:i,theme:"light",...r?{action:r}:{},callback:e=>c.current(e),"expired-callback":()=>c.current(null),"error-callback":()=>c.current(null)}),()=>{if(o.current){var e;null===(e=window.turnstile)||void 0===e||e.remove(o.current),o.current=null}}},[d,r]),i)?(0,n.jsxs)("div",{className:"mt-6",children:[(0,n.jsx)(a(),{src:"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",strategy:"lazyOnload",onReady:x}),(0,n.jsx)("div",{ref:s})]}):null}},75534:function(e,t,r){"use strict";var n=r(85893),s=r(93967),a=r.n(s),l=r(67294);let i=l.forwardRef((e,t)=>{let{className:r,label:s,name:l,error:i,theme:o="primary",checkboxPosition:c="left",...u}=e;return(0,n.jsxs)("div",{className:r,children:[(0,n.jsxs)("div",{className:"flex items-center","data-checkbox-position":c,children:[(0,n.jsx)("input",{id:l,name:l,type:"checkbox",ref:t,className:"checkbox",...u}),(0,n.jsx)("label",{htmlFor:l,className:a()("text-body text-sm",{primary:"primary"===o,secondary:"secondary"===o},{"flex-row-reverse":"right"===c}),children:s})]}),i&&(0,n.jsx)("p",{className:"my-2 text-xs ltr:text-right rtl:text-left text-red-500",children:i})]})});i.displayName="Checkbox",t.Z=i},74890:function(e,t,r){"use strict";r.d(t,{Z:function(){return s.a}}),r(48705);var n=r(67555),s=r.n(n)},93177:function(e,t,r){"use strict";var n=r(85893),s=r(67294),a=r(79907),l=r.n(a);let i=s.forwardRef((e,t)=>
1{let{className:r,label:s,name:a,id:i,error:o,...c}=e;return(0,n.jsxs)("div",{className:r,children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("input",{id:i,name:a,type:"radio",ref:t,className:l().radio_input,...c}),(0,n.jsx)("label",{htmlFor:i,className:"text-sm text-body",children:s})]}),o&&(0,n.jsx)("p",{className:"my-2 text-xs text-red-500 ltr:text-right rtl:text-left",children:o})]})});i.displayName="Radio",t.Z=i},71526:function(e,t,r){"use strict";function cpfMask(e){return e?e.replace(/\D/g,"").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})/,"$1-$2").replace(/(-\d{2})\d+?$/,"$1"):""}function removeCpfMask(e){return e?e.replace(/\D/g,""):""}function applyMaskPostalCode(e){return e.replace(/\D/g,"").replace(/(\d{5})(\d)/,"$1-$2").replace(/(-\d{3})\d+?$/,"$1")}r.d(t,{Bl:function(){return handleDateInputChange},ES:function(){return applyMaskPostalCode},Tc:function(){return cepMask},VL:function(){return cpfMask},X8:function(){return dateMask},Yx:function(){return removeCpfMask},m5:function(){return unformatDate},p6:function(){return formatDate}}),r(67294);let dateMask=e=>{let t=String(null!=e?e:"").replaceAll(/\D/g,"").slice(0,8),r=t.slice(0,2),n=t.slice(2,4),s=t.slice(4,8);return t.length<=2?r:t.length<=4?"".concat(r,"/").concat(n):"".concat(r,"/").concat(n,"/").concat(s)},handleDateInputChange=e=>{let t=e.target,r=t.value,n=t.selectionStart||0,s=r.substring(0,n).replace(/\D/g,"").length,a=dateMask(r),l=0,i=0;for(let e=0;e<a.length;e++)if(/\d/.test(a[e])){if(++i>s){l=e;break}l=e+1}i<=s&&(l=a.length),t.value=a,requestAnimationFrame(()=>{t.setSelectionRange(l,l)})},cepMask=e=>e.replace(/\D/g,"").replace(/(\d{5})(\d)/,"$1-$2").replace(/(-\d{3})\d+?$/,"$1"),formatDate=e=>{let[t,r,n]=e.split("/");return"".concat(n,"-").concat(r,"-").concat(t)},unformatDate=e=>{let[t,r,n]=e.split("-");return"".concat(n,"/").concat(r,"/").concat(t)}},99535:function(e,t,r){"use strict";r.d(t,{Hh:function(){return testPassword},JY:function(){return containsUpper},kk:function(){return containsLower}});let testPassword=e=>/\d/.test(e),containsUpper=e=>/[A-Z]/.test(e),containsLower=e=>/[a-z]/.test(e)},14257:function(e,t,r){"use strict";function cpfValidator(e){let t,r;if(e||(e=""),e=e.replace(/[^\d]+/g,""),t=0,"00000000000"===e||"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e)return!1;for(let r=1;r<=9;r++)t+=Number.parseInt(e.substring(r-1,r))*(11-r);if((10==(r=10*t%11)||11===r)&&(r=0),r!==Number.parseInt(e.substring(9,10)))return!1;t=0;for(let r=1;r<=10;r++)t+=Number.parseInt(e.substring(r-1,r))*(12-r);return(10==(r=10*t%11)||11===r)&&(r=0),r===Number.parseInt(e.substring(10,11))}function isPostalCodeValid(e){let t=removeMask(e);return 8===t.length&&/^\d{5}(-?)\d{3}$/g.test(t)}function removeMask(e){return(null==e?void 0:e.length)>0?e.replace(/[^a-z0-9]/gi,""):""}function isBrazilianMobilePhoneInputValid(e){if(null==e||""===String(e).trim())return!1;let t=removeMask(String(e));return"55"!==t&&!(t.length<11)&&(t.startsWith("55")?!(t.length<13)&&/^55\d{2}9\d{8}$/.test(t):11===t.length&&/^\d{2}9\d{8}$/.test(t))}function isCheckoutContactPhoneAcceptableForOrder(e){if(null==e||""===String(e).trim())return!1;let t=removeMask(String(e));return 0!==t.length&&"55"!==t&&(!!isBrazilianMobilePhoneInputValid(e)||(!t.startsWith("55")||!(t.length>=3)||!(t.length<=6))&&t.length>=4&&t.length<=15)}r.d(t,{F_:function(){return isCheckoutContactPhoneAcceptableForOrder},Gj:function(){return isBrazilianMobilePhoneInputValid},HU:function(){return rgValidator},Nr:function(){return dateOfBirthValidator},TX:function(){return cpfValidator},Uo:function(){return removeMask},Uz:function(){return isPostalCodeValid},sm:function(){return dateValidator}});let dateValidator=e=>{let t;if(!/^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/.test(e)&&!/^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{2}$/.test(e)||e.length<10)return!1;let r=e.split("/"),n=e.split("-"),s=r.length,a=n.length;s>1?t=e.split("/"):a>1&&(t=e.split("-"));let l=Number.parseInt(t[0]),i=Number.parseInt(t[1]),o=Number.parseInt(t[2]);if(o<1900||(1===i||i>2)&&l>[31,28,31,30,31,30,31,31,30,31,30,31][i-1])return!1;if(2===i){let e=!1;if((o%4||!(o%100))&&o%400||(e=!0),!1===e&&l>=29||!0===e&&l>29)return!1}return!0},rgValidator=e=>!(!0===/[@!#$%^&*()='+_"?°~`<>{}\\]/.test(e)||/^[A-Za-záà âãéèêÃïóôõöúçñÃÃÃÃÃÃÃÃÃÃÃÃÃÃà ]+$/.test(e))&&!(e.length<2);function dateOfBirthValidator(e){return/(^0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(\d{4}$)/.test(e)}},79907:function(e){e.exports={radio_input:"radio_radio_input__Jo_uR"}}}]); 2//# sourceMappingURL=4525.1365bcd09e986a4e.js.map
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.