PageSourceSearch

https://www.webmotors.com.br/login/assets/js/bundle.293.293.e7fed4d556ba1fcea913.js

js webmotors.com.br collected 2026-09-24 08:35:45 UTC 6,181 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwebmotors_cognito_ui||=[]).push([[293,674],{6109(e,t,a){a.d(t,["$",0,e=>e.replace(/\D/g,"").replace(/(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d{1,4})$/,"$1-$2"),"U",0,e=>e.replace(/\d/,"").replace(/[^A-Za-z0-9áéíóúàèìòùâêîôûãõç\s]/i,"").replace(/^\s/,"")])},5854(e,t,a){var o=a(7367),r=a(4521),n=a(520),i=a(4132),s=a(3589),l=a(331),m=a(6827),c=a(76),d=a(6104),p=a(9043);a.d(t,["A",0,e=>t=>{const[a,g]=(0,o.useState)([]),[u,h]=(0,o.useState)(!1),[f,b]=(0,o.useState)(""),[x,w]=(0,o.useState)(""),[v,A]=(0,o.useState)(""),Y=(0,d.uM)(),y=(0,d.Ub)(e=>e.mobile),C=(0,d.W6)(),E=(e,a,o)=>{const r=e||f,s=a||x,l=o||v;n.Q0(r,"webmotors.jwt.token"),a&&n.Q0(s,"webmotors.refresh.token"),o&&n.Q0(l,"webmotors.access.token"),t.onLogin?t.onLogin(r):i.Qc(r)};return(0,p.FD)(p.FK,{children:[(0,p.Y)(e,{...t,onVerifyTerms:(e,t,a)=>{b(e),w(t),A(a),Y.getTermsAcceptance({channel:y?m.I.Mobile:m.I.Desktop,consentId:`${s.cX.terms},${s.cX.newsletter}`,token:e}).then(o=>{if(o.Success){const r=(0,c.lP)(s.cX.terms,s.cX.newsletter).filter(e=>!o.Data?.some(t=>t?.ConsentTypeId===e)),n=(0,c.lP)(s.cX.terms);r.some(e=>e===n[0])||r.some(e=>e===n[1])?(g(r),h(!0)):E(e,t,a)}})}}),(0,p.Y)(r.aF.iI,{open:u,onAccepted:E,onClose:()=>{[l.az.HOME.replace(/\//g,""),l.UZ.HOME.replace(/\//g,"")].includes(C.location.pathname.replace(/\//g,""))?h(!1):C.push(l.az.HOME)},termsToRegister:a,authToken:f}),(0,p.Y)(r.aH,{active:Y.isLoading})]})}])},8674(e,t,a){a.r(t),a.d(t,{default:()=>k});var o=a(7367),r=a(3123),n=a(6956),i=a(4521),s=a(1351),l=a(6104),m=a(813),c=a(6950);const d={name:{required:{value:!0,message:"Campo obrigatório"},validate:{completeName:e=>c.UU(e)||"Escreva no mínimo dois nomes. Ex: Paulo Silva."}},email:{required:{value:!0,message:"Campo obrigatório"},validate:{email:e=>c.Rp(e)||"Digite um e-mail válido. Ex: [email protected]"}}};var p=a(869);const g=(0,p.A)("div",{target:"e11gan219"})({name:"15currb",styles:"display:flex;height:100%"}),u=(0,p.A)("section",{target:"e11gan218"})("width:100%;&:first-of-type{width:85%;@media ",e=>{let{theme:t}=e;return t.medias.mobile},"{width:100%;}}"),h=(0,p.A)(i.o5,{target:"e11gan217"})({name:"kab3jk",styles:"margin-top:20px;margin-bottom:56px;font-weight:500"}),f=(0,p.A)("p",{target:"e11gan216"})("font-size:12px;text-align:center;color:",e=>{let{theme:t}=e;return t.colors.text.primary},";margin-top:34px;button{color:",e=>{let{theme:t}=e;return t.colors.primary},";font-weight:700;margin-left:5px;font-size:12px;}"),b=(0,p.A)("div",{target:"e11gan215"})("background:#ecedf2;width:1px;height:auto;margin:0 32px;position:relative;&::before{content:'ou';background:#fff;font-size:12px;position:absolute;top:50%;left:-6px;padding:20px 0;transform:translateY(-50%);color:",e=>{let{theme:t}=e;return t.colors.text.secondary},";}"),x=(0,p.A)("form",{target:"e11gan214"})(""),w=(0,p.A)(n.$n,{target:"e11gan213"})(""),v=(0,p.A)("div",{target:"e11gan212"})("display:flex;height:100%;flex-direction:column;@media ",e=>{let{theme:t}=e;return t.medias.mobile},"{",g,"{flex-direction:column;}",h,"{margin-bottom:24px;}",b,"{width:100%;margin:40px 0;height:1px;&::before{left:50%;padding:0 20px;transform:translate(-50%, -50%);}}",w,"{width:100%;}",f,"{font-size:16px;margin-top:32px;button{font-size:16px;}}}"),A=(0,p.A)("div",{target:"e11gan211"})("font-size:10px;font-weight:400;color:",e=>{let{theme:t}=e;return t.colors.gray3},";margin-top:16px;margin-bottom:20px;@media ",e=>{let{theme:t}=e;return t.medias.mobile},"{font-size:12px;}"),Y=(0,p.A)("div",{target:"e11gan210"})("font-size:12px;font-weight:400;color:",e=>{let{theme:t}=e;return t.colors.gray3},";margin-top:8px;text-align:center;@media ",e=>{let{theme:t}=e;return t.medias.mobile},"{font-size:14px;}");var y=a(6109),C=a(331),E=a(9043);const z=()=>{const[e,t]=(0,m.A)(),a=(0,l.W6)(),c=(0,r.useLocation)(),p=c.state?.email,[g,u]=(0,o.useState)(!1),{handleSubmit:h,control:f,formState:{errors:b,isValid:v}}=(0,s.mN)({shouldFocusError:!1,reValidateMode:"onChange",mode:"onChange"});return(0,o.useEffect)(()=>{p&&""!==p.trim()&&(u(!0),setTimeout(()=>{u(!1)},1e4))},[p,t]),(0,E.FD)(x,{onSubmit:h(e=>{t({email:e.email.toLowerCase(),name:e.name.trim()}),a.push(C.UZ.PASSWORD)}),children:[(0,E.Y)(i.Fc,{status:g,onClose:()=>u(!1),children:"Complete seu cadastro."}),(0,E.Y)(s.xI,{name:"name",control:f,rules:d.name,defaultValue:"",render:e=>{let{field:t}=e;return(0,E.Y)(n.pd,{placeholder:"Nome completo",type:"text",...t,hasError:!!b.name,mask:e=>y.U(e),messageError:b.name?.message})}}),(0,E.Y)(s.xI,{name:"email",control:f,rules:d.email,defaultValue:p||"",render:e=>{let{field:t}=e;return(0,E.Y)(n.pd,{placeholder:"E-mail",type:"text",...t,hasError:!!b.email,messageError:b.email?.message})}}),(0,E.Y)(A,{children:"Ao me cadastrar, eu declaro ter ciência de que este cadastro é somente para maiores de 18 anos."}),(0,E.Y)(w,{disabled:!v,children:"Criar conta"})]})},k=(0,a(5854).A)(e=>{let{hideLayout:t,onVerifyTerms:a}=e;const r=(0,l.W6)(),[n,s,m]=(0,l.UT)(),c=(0,l.Ub)(e=>e.mobile),d=(0,l.z1)();return(0,o.useEffect)(()=>{m(),d.dispatchPageView({site:{subEnvironment:"cadastro"},page:{flowType:"login",pageType:"login-cadastro",pageName:"/webmotors/login/cadastro/criar-conta/nome-email",pageNameTier1:"login",pageNameTier2:"cadastro",pageNameTier3:"criar-conta",pageNameTier4:"nome-email"}})},[]),(0,E.Y)(i.PE,{hide:t,children:(0,E.FD)(v,{children:[(0,E.FD)(g,{children:[(0,E.FD)(u,{children:[c?(0,E.FD)(h,{as:"h1",size:24,weight:500,children:["Crie sua conta na",(0,E.Y)("br",{}),"Webmotors! ;)"]}):(0,E.FD)(h,{as:"h1",size:24,weight:500,children:["Cadastre-se com",(0,E.Y)("br",{}),"suas redes sociais"]}),(0,E.Y)(i.Q0,{facebookLabel:"Continuar com Facebook",googleLabel:"Continuar com Google",appleLabel:"Continuar com Apple",onLogin:a})]}),(0,E.Y)(b,{}),(0,E.FD)(u,{children:[!c&&(0,E.FD)(h,{as:"h1",size:24,children:["Crie uma conta",(0,E.Y)("br",{}),"com seu e-mail"]}),(0,E.Y)(z,{})]})]}),(0,E.FD)(f,{children:["Já tem uma conta?",(0,E.Y)("button",{type:"button",onClick:()=>r.push(C.az.HOME),children:"Entrar"})]}),(0,E.Y)(Y,{children:"Ao prosseguir você está ciente e concorda em receber comunicações da Webmotors."})]})})})}}]);

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.