"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7385],{30442:function(e,t,r){r.d(t,{Z:function(){return o}});var l=r(57437),n=r(16480),a=r.n(n);function s(e){let{className:t,size:r="lg"}=e;return(0,l.jsxs)("div",{role:"status",children:[(0,l.jsxs)("svg",{"aria-hidden":"true",className:a()("inline animate-spin",{xl:"h-12 w-12",lg:"h-10 w-10",sm:"h-8 w-8",xs:"h-4 w-4"}[r],t),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,l.jsx)("span",{className:"sr-only",children:"Carregando"})]})}function o(e){let{color:t="primary",variant:r="full",size:n="xl",loading:o,className:i,leftIcon:c,rightIcon:d,children:u,...p}=e;return(0,l.jsxs)("button",{className:a()("inline-flex text-center font-semibold shrink-0 justify-center items-center rounded-pill focus:outline-none focus:ring-4 focus:ring-opacity-[15%] disabled:cursor-not-allowed leading-none",{primary:{full:"bg-primary-500 text-mono-white hover:bg-primary-600 focus:ring-primary-600 disabled:bg-neutral-200 disabled:text-neutral-400",outline:"bg-mono-white text-primary-500 border-primary-100 border hover:border-primary-300 focus:ring-primary-500 disabled:border-primary-100 disabled:text-primary-100",text:"bg-mono-white text-primary-500 focus:text-primary-600 hover:text-primary-600 disabled:text-neutral-300"},secondary:{full:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-600 disabled:bg-purple-100 disabled:text-purple-200",outline:"bg-mono-white text-purple-500 border-purple-100 border hover:border-purple-300 focus:ring-purple-500 disabled:text-purple-100 hover:border-purple-100",text:"bg-mono-white text-purple-500 focus:text-purple-600 hover:text-purple-600 disabled:text-neutral-300"},dismiss:{full:"bg-neutral-100 text-neutral-500 hover:bg-neutral-200 focus:ring-neutral-600 disabled:bg-neutral-100 disabled:text-neutral-300",outline:"bg-mono-white text-neutral-500 border-neutral-300 border hover:border-neutral-400 hover:text-neutral-600 focus:ring-neutral-500 disabled:border-neutral-300 disabled:text-neutral-300",text:"bg-mono-white text-neutral-500 focus:text-neutral-600 hover:text-neutral-600 disabled:text-neutral-300"}}[t][r],{xl:"h-32 min-w-32 w-full px-16 gap-4 text-lg",lg:"h-24 min-w-24 w-full px-10 gap-2 text-md",sm:"h-16 min-w-16 w-full px-6 gap-2 text-sm",xs:"h-12 min-w-12 w-full px-4 gap-2 text-xs"}[n],i),...p,children:[c||null,o?(0,l.jsx)(s,{className:{primary:"fill-primary-500 text-mono-white",secondary:"fill-mono-white text-purple-200",dismiss:"fill-neutral-500 text-mono-white"}[t],size:n}):u,d||null]})}r(2265)},59550:function(e,t,r){var l=r(57437);r(2265),t.Z=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none",...e,children:(0,l.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.667 10h11.666m0 0L10.5 4.167M16.333 10 10.5 15.833"})})},98768:function(e,t,r){var l=r(57437);r(2265),t.Z=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v3.889c0 .614-.448 1.111-1 1.111h-2c-.552 0-1-.497-1-1.111v-1.667M7 17.222v1.667C7 19.503 6.552 20 6 20H4c-.552 0-1-.497-1-1.111V15"}),(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 14.5v-2.755c0-.796.316-1.56.879-2.123L5 8.5h14l1.121 1.121c.563.563.879 1.326.879 2.122V14.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",clipRule:"evenodd"}),(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 7.5 19 8M5 8l-2-.5M5 8.5v-.506l.836-3.137A2.501 2.501 0 0 1 8.253 3h7.582a2.5 2.5 0 0 1 2.432 1.92L19 7.994V8.5M6 12.5h2M16 12.5h2"})]})},31864:function(e,t,r){var l=r(57437);r(2265),t.Z=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"})})},47385:function(e,t,r){r.r(t),r.d(t,{default:function(){return V}});var l=r(57437),n=r(2265),a=r(59550),s=r(80479),o=r(65153),i=r(87957),c=r(52132),d=r(16480),u=r.n(d),p=r(13928),h=r(8792),m=r(82670),x=r(30442);let f=e=>e.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,7),g=e=>{let{error:t,color:r}=e;return"h-24 w-full input-lg rounded-md border ".concat(t?"border-error":"border-gray-300"," bg-gray-50 h-12 px-4 placeholder-gray-400 focus:outline-none focus:ring-1 focus:ring-[").concat(r,"]")};function b(e){var t,r,d,b,v,j;let{storeID:w,color:k="#ff0060",tagText:y,state:C,debt_type:N}=e,{register:P,handleSubmit:Z,setValue:L,formState:{errors:M},watch:A}=(0,m.cI)({resolver:(0,i.X)((0,o.s)()),defaultValues:{email:"",phone:"",licensePlate:""}}),S=A("licensePlate",""),{redirectToEcomm:z,isLoadingRedirect:_}=(0,s._)(),I=(0,n.useCallback)(e=>{let{email:t,phone:r,permission:l,licensePlate:n}=e;z({...{licensePlate:n.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),...t&&{email:t},...r&&{phone:String(r).replaceAll(/\D/g,"")},...r&&{permission:l}},utm_protocol_source:"landing",storeId:w,state:C,debt_type:N})},[z,w,C,N]),W=(0,n.useCallback)(e=>{let{value:t}=e.target,r=t.replace(/\D/g,"");L("phone",(0,p.Z)("(99) 99999-9999")(r))},[L]);return(0,n.useEffect)(()=>{let e=A("phone");e&&L("phone",(0,p.Z)("(99) 99999-9999")(e))},[A("phone")]),(0,l.jsxs)("div",{className:"flex flex-col border border-solid bg-mono-white border-neutral-200 rounded-huge w-full p-16",children:[!!y&&(0,l.jsxs)("div",{className:"flex w-full bg-orange-400 rounded-2xl items-center justify-center p-4 gap-4 mb-8",children:[(0,l.jsx)("div",{className:"p-6 bg-white rounded-full shadow-md flex items-center justify-center",children:(0,l.jsx)(c.NzG,{className:"text-purple-500 text-2xl"})}),(0,l.jsx)("h2",{className:"text-md md:text-lg text-white font-semibold",children:y})]}),(0,l.jsxs)("div",{className:"flex flex-col w-full mb-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 pb-8",children:[(0,l.jsxs)("div",{className:"form-control",children:[(0,l.jsx)("input",{type:"text",id:"licensePlate",value:S,className:u()(g({error:!!(null==M?void 0:null===(t=M.licensePlate)||void 0===t?void 0:t.message),color:k}),"uppercase placeholder:normal-case"),placeholder:"Placa do ve\xedculo",...P("licensePlate",{onChange:e=>{L("licensePlate",f(e.target.value))}})}),(0,l.jsx)("span",{className:"text-sm mt-2 text-response-danger",children:null===(r=M.licensePlate)||void 0===r?void 0:r.message})]}),(0,l.jsxs)("div",{className:"form-control",children:[(0,l.jsx)("input",{type:"email",id:"email",className:g({error:!!(null==M?void 0:null===(d=M.email)||void 0===d?void 0:d.message),color:k}),placeholder:"Seu melhor email",...P("email")}),(0,l.jsx)("span",{className:"text-sm mt-2 text-response-danger",children:null===(b=M.email)||void 0===b?void 0:b.message})]}),(0,l.jsxs)("div",{className:"form-control",children:[(0,l.jsx)("input",{type:"tel",id:"phone",className:g({error:!!(null==M?void 0:null===(v=M.email)||void 0===v?void 0:v.message),color:k}),placeholder:"Seu telefone",...P("phone",{onChange:W})}),(0,l.jsx)("span",{className:"text-sm mt-2 text-response-danger",children:null===(j=M.phone)||void 0===j?void 0:j.message})]})]}),(0,l.jsxs)(x.Z,{size:"lg",onClick:Z(I),type:"button",loading:_,children:["Consulte Agora",(0,l.jsx)(a.Z,{})]})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("p",{className:"text-center text-xs text-neutral-400 w-full max-w-[350px]",children:["Ao avan\xe7ar, voc\xea concorda com os nossos"," ",(0,l.jsx)(h.default,{href:"/terms-of-use",className:"underline",target:"_blank",rel:"noreferrer",children:"Termos de uso"})," ","e"," ",(0,l.jsx)(h.default,{href:"/privacy-policy",className:"underline",target:"_blank",rel:"noreferrer",children:"Pol\xedtica de privacidade"}),"."]})})]})}var v=r(17312),j=r(31864),w=r(47907),k=r(58628),y=r(41991);let C=y.Ry().shape({licensePlate:y.Z_().required("A placa \xe9 obrigat\xf3ria").min(7,"A placa deve ter no m\xednimo 7 caracteres").max(8,"A placa deve ter no m\xe1ximo 8 caracteres").test("licensePlate","O formato da placa \xe9 inv\xe1lido",e=>(0,k.Z)(e))}),N=e=>e.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,7);var P=()=>{let{register:e,handleSubmit:t,setValue:r,formState:{errors:a},watch:s}=(0,m.cI)({resolver:(0,i.X)(C),defaultValues:{licensePlate:""}}),o=s("licensePlate",""),c=(0,n.useCallback)(e=>{r("licensePlate",N(e.target.value))},[r]);return(0,l.jsx)("div",{className:"border border-neutral-300 rounded-md p-16",children:(0,l.jsxs)("form",{onSubmit:t(e=>{let t=new URLSearchParams({licensePlate:e.licensePlate.replace(/[^a-zA-Z0-9]/g,"").toUpperCase()}),r="".concat("https://app.usezapay.com.br","/consultar-debitos?").concat(t.toString());window.location.href=r,(0,w.redirect)(r)}),children:[(0,l.jsx)("label",{htmlFor:"licensePlate",className:"text-lg font-semibold text-neutral-900 mb-8 block",children:"Digite a placa:"}),(0,l.jsx)("input",{type:"text",id:"licensePlate",className:"h-[80px] w-full rounded-medium text-center text-4xl border ".concat(a.licensePlate?"border-error":"border-neutral-300 mb-8"," placeholder-neutral-400 focus:outline-none focus:ring-1"),placeholder:"ABC-1234",value:o,...e("licensePlate",{onChange:c})}),a.licensePlate&&(0,l.jsx)("span",{className:"text-sm text-response-danger mt-2 block mb-8",children:a.licensePlate.message}),(0,l.jsx)(x.Z,{leftIcon:(0,l.jsx)(j.Z,{width:20,height:20}),size:"lg",type:"submit",disabled:!o,children:"Consultar d\xe9bitos"})]})})},Z=r(98768),L=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})});let M={1:Z.Z,2:e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,l.jsx)("rect",{width:3,height:7,x:11,y:14,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,rx:1.5}),(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 11v6M16 11v6"}),(0,l.jsx)("circle",{cx:12.5,cy:7.5,r:2.5,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 11-.525-.525c-.64-.64-.96-.96-1.028-1.222a1 1 0 0 1 .462-1.116C8.143 8 8.595 8 9.5 8v0M16 11l.525-.525c.64-.64.96-.96 1.028-1.222a1 1 0 0 0-.462-1.116C16.857 8 16.405 8 15.5 8v0M10.5 5.5 9.293 4.293A1 1 0 0 0 8.586 4H6.5M14.5 5.5l1.207-1.207A1 1 0 0 1 16.414 4H18.5"})]}),3:e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19.264 18.434V21a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.5M8.736 19.5V21a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2.566M19.5 12.5H21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-1.768M4.5 12.5H3a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1.77M19 7.178V4.1a1.6 1.6 0 0 0-1.6-1.6H6.6A1.6 1.6 0 0 0 5 4.1v3.078M4.5 12.5a56.497 56.497 0 0 0 15 0M16.884 16H15M9 16H7"}),(0,l.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.5 6.5h15v13h-15z"})]})};var A=e=>{let{type:t,license_plate:r,alias:n}=e,a=M[t]||Z.Z;return(0,l.jsxs)("div",{className:"cursor-pointer flex items-center -mx-4 px-4 py-8 hover:bg-neutral-100/50 border-b border-neutral-200 last:border-none",onClick:()=>{let e=new URLSearchParams({licensePlate:r}),t="".concat("https://app.usezapay.com.br","/consultar-debitos?").concat(e.toString());window.location.href=t,(0,w.redirect)(t)},children:[(0,l.jsx)("div",{className:"w-[48px] h-[48px] rounded-full mr-8 flex items-center justify-center bg-neutral-100 text-primary-400",children:(0,l.jsx)(a,{width:24,height:24})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,l.jsx)("span",{className:"text-md text-neutral-900 font-semibold mb-2 uppercase last:mb-0",children:r}),!!n&&(0,l.jsx)("span",{className:"text-sm text-neutral-500",children:n})]}),(0,l.jsx)(L,{width:20,height:20,className:"text-neutral-400"})]})},S=e=>{let{numberOfVehicles:t,vehicles:r=[]}=e;return(0,l.jsxs)("div",{className:"border border-neutral-300 rounded-md p-16 w-full",children:[(0,l.jsxs)("div",{className:"flex items-center mb-4",children:[(0,l.jsx)("p",{className:"text-lg font-semibold text-neutral-900 block mr-auto",children:"Meus ve\xedculos"}),t>2&&(0,l.jsx)(h.default,{href:"".concat("https://app.usezapay.com.br","/area-logada/veiculos"),children:(0,l.jsx)("button",{type:"button",className:"cursor-pointer text-sm underline text-purple-500",children:"ver todos"})})]}),(0,l.jsx)("div",{className:"mb-2",children:null==r?void 0:r.map(e=>(0,l.jsx)(A,{...e},e.id))}),(0,l.jsx)(h.default,{href:"".concat("https://app.usezapay.com.br","/consultar-debitos"),children:(0,l.jsx)(x.Z,{size:"lg",color:"secondary",children:"Consultar outro ve\xedculo"})})]})},z=e=>{let{numberOfVehicles:t=0,vehicles:r=[]}=e;return t?(0,l.jsx)(S,{numberOfVehicles:t,vehicles:r}):(0,l.jsx)(P,{})},_=r(95601),I=r.n(_),W=e=>{let{storeID:t}=e,{redirectToEcomm:r}=(0,s._)(),a=(0,w.useSearchParams)(),o=a.get("email"),i=a.get("plate");if(!i||!o)return null;let[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{d(!0)},[]),(0,n.useEffect)(()=>{console.log({email:o,plate:i});let e=/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(o);(null==i?void 0:i.length)===7&&e?r({licensePlate:String(i).toUpperCase().replace("-",""),email:o}):d(!1)},[i,o]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(I(),{children:(0,l.jsx)("meta",{name:"robots",content:"noindex"})})})};function V(e){let{storeID:t,color:r="#ff0060",isAuthenticated:a=!1,...s}=e;return a?(0,l.jsx)(z,{...s}):(0,l.jsxs)(n.Suspense,{fallback:(0,l.jsx)(v.Z,{color:r}),children:[(0,l.jsx)(W,{}),(0,l.jsx)(b,{storeID:t,color:r,...s})]})}},17312:function(e,t,r){r.d(t,{Z:function(){return o}});var l=r(57437),n=r(8792),a=r(59550);let s="h-24 w-full input-lg rounded-md border border-gray-300 bg-gray-50 h-12 px-4 placeholder-gray-700 focus:outline-none focus:ring-1 focus:ring-primary-500";function o(e){let{color:t="#ff0060"}=e;return(0,l.jsxs)("div",{className:"flex flex-col border border-solid border-neutral-200 rounded-huge w-full p-16",children:[(0,l.jsxs)("div",{className:"flex flex-col w-full mb-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 pb-8",children:[(0,l.jsx)("div",{className:"form-control",children:(0,l.jsx)("input",{type:"text",id:"licensePlate",className:s,disabled:!0,placeholder:"Placa do ve\xedculo"})}),(0,l.jsx)("div",{className:"form-control",children:(0,l.jsx)("input",{type:"email",id:"email",className:s,disabled:!0,placeholder:"Seu melhor email"})}),(0,l.jsx)("div",{className:"form-control",children:(0,l.jsx)("input",{type:"phone",id:"phone",className:s,disabled:!0,placeholder:"Seu telefone"})})]}),(0,l.jsxs)("button",{type:"button",disabled:!0,className:"flex gap-4 items-center justify-center btn-lg rounded-pill h-24 text-white font-bold py-4 px-8 transition duration-300 ease-in-out hover:bg-opacity-90",style:{backgroundColor:t},children:["Consulte e Pague",(0,l.jsx)(a.Z,{})]})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("p",{className:"text-center text-xs text-neutral-400 w-full max-w-[350px]",children:["Ao avan\xe7ar, voc\xea concorda com os nossos"," ",(0,l.jsx)(n.default,{href:"#",className:"underline",target:"_blank",rel:"noreferrer",children:"Termos de uso"})," ","e"," ",(0,l.jsx)(n.default,{href:"#",className:"underline",target:"_blank",rel:"noreferrer",children:"Pol\xedtica de privacidade"}),"."]})})]})}},69297:function(e,t,r){r.d(t,{n:function(){return i},A:function(){return c}});var l=r(36810),n=r(16479),a=r.n(n);let s={apiHost:"https://back-growthbook.usezapay.com.br",clientKey:"sdk-IAXPS5w3mBJvP03",enableDevMode:"production"!==r(49079).env.MODE,trackingCallback:(e,t)=>{console.log("Viewed Experiment",{experimentId:e.key,variationId:t.key})}},o="@zapay:growthbook_user_id",i=()=>{let e=sessionStorage.getItem(o);if(e)return e;let t=a()();return sessionStorage.setItem(o,t),t},c=new l.Gr(s)},80479:function(e,t,r){r.d(t,{_:function(){return c}});var l=r(2265),n=r(47907),a=r(6668),s=r.n(a),o=r(69297);let i=()=>"C"===o.A.getFeatureValue("b2c-authenticated-checkout","A"),c=()=>{let e=(0,n.useSearchParams)(),[t,r]=(0,l.useState)(!1);return{redirectToEcomm:(0,l.useCallback)(async t=>{r(!0),await u();let l=i()||(null==e?void 0:e.get("b2c-authenticated-checkout"))==="D",a={...Object.fromEntries(e),...t},s=new URLSearchParams(d(a)),o="".concat("https://app.usezapay.com.br","/consultar-debitos?").concat(s.toString());if(l){let e=encodeURIComponent("/consultar-debitos?".concat(s.toString())),{email:r,licensePlate:l}=t||{},{phone:n}=t||{};(null==n?void 0:n.length)===p&&(n="55"+n);let a=new URLSearchParams(d({next:e,phone:n,email:r,licensePlate:l}));o="".concat("https://app.usezapay.com.br","/login?").concat(a)}r(!1);try{(0,n.redirect)(o)}catch(e){window.location.href=o}},[e]),isLoadingRedirect:t}},d=e=>s()(e,e=>["null","undefined",null,void 0,""].includes(e)),u=async()=>await new Promise(e=>{let t=0,r=setInterval(()=>{var l;let n=o.A.getFeatures();if((null===(l=Object.keys(n))||void 0===l?void 0:l.length)>2||t>20)return e(n),clearInterval(r);t++},1e3)}),p=11},65153:function(e,t,r){r.d(t,{s:function(){return a}});var l=r(41991),n=r(58628);let a=()=>l.Ry().shape({licensePlate:l.Z_().required("A placa \xe9 obrigat\xf3ria").min(7,"A placa deve ter 7 caracteres").max(8,"A placa deve ter 7 caracteres").test("licensePlate","O formato da placa \xe9 inv\xe1lido",e=>(0,n.Z)(e)),phone:l.Z_().required("Telefone \xe9 obrigat\xf3rio!").min(15,"Telefone \xe9 inv\xe1lido!").test("phone","Telefone \xe9 inv\xe1lido!",e=>{let t=String(e).replaceAll(/\D/g,""),r=["0","1","2","3","4","5","6","7","8","9"].every(e=>String(t).replaceAll(e,"").length>3),l=["123456789","987654321"].every(e=>!String(t).includes(e));return r&&l}),email:l.Z_().required("O email \xe9 obrigat\xf3rio").email("O email \xe9 inv\xe1lido")})},58628:function(e,t,r){r.d(t,{Z:function(){return l}});function l(e){let t=e?e.replace(/[^\w]/gi,""):"";return!!(t.match(/^[a-zA-Z]{3}[0-9]{4}$/)||t.match(/^[a-zA-Z]{3}[0-9]{1}[a-jA-J]{1}[0-9]{2}$/))}}}]);