"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1599],{91047:function(e,t,r){r.d(t,{Z:function(){return P}});var n=r(59772),a=r(39452);let s=/^[A-z]{3}\d[A-j0-9]\d{2}$/g;var i=function(e){return e.split(" ").map(function(e){if(e.length>0){let t=e.charAt(0).toUpperCase(),r=e.slice(1).toLowerCase();return"".concat(t).concat(r)}return e}).join(" ")},o=r(2417),l=r.n(o),c=function(e){return!l()().test(e)},d=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(l()(),"").replace(/\s\s+/g," ")},u=function(e){return!!e.match(s)};let m=new Date().getFullYear(),x={zipCode:n.ZP.string({required_error:"CEP \xe9 um campo obrigat\xf3rio",invalid_type_error:"CEP deve ser do tipo de texto"}).length(8,{message:"CEP \xe9 um campo obrigat\xf3rio"}),street:n.ZP.string({required_error:"Rua \xe9 um campo obrigat\xf3rio",invalid_type_error:"Rua deve ser do tipo de texto"}).min(3,{message:"Rua deve ter no m\xednimo 3 caracteres"}).max(64,{message:"Rua n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Rua n\xe3o pode conter simbolos"}).transform(d).transform(i),number:n.ZP.coerce.number({required_error:"N\xfamero \xe9 um campo obrigat\xf3rio",invalid_type_error:"N\xfamero deve ser do tipo de n\xfamero"}).min(0,{message:"N\xfamero \xe9 um campo obrigat\xf3rio"}).max(99999,{message:"N\xfamero deve ser entre 0 a 99999"}),neighborhood:n.ZP.string({required_error:"Bairro \xe9 um campo obrigat\xf3rio",invalid_type_error:"Bairro deve ser do tipo de texto"}).min(3,{message:"Bairro deve ter no m\xednimo 3 caracteres"}).max(64,{message:"Bairro n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Bairro n\xe3o pode conter simbolos"}).transform(d).transform(i),city:n.ZP.string({required_error:"Cidade \xe9 um campo obrigat\xf3rio",invalid_type_error:"Cidade deve ser do tipo de texto"}).min(3,{message:"Cidade \xe9 um campo obrigat\xf3rio"}).max(64,{message:"Cidade n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Cidade n\xe3o pode conter simbolos"}).transform(d).transform(i),state:n.ZP.string({required_error:"Estado \xe9 um campo obrigat\xf3rio",invalid_type_error:"Estado deve ser do tipo de texto"}).min(2,{message:"Estado \xe9 um campo obrigat\xf3rio"}).max(64,{message:"Estado n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Estado n\xe3o pode conter simbolos"}).transform(d).transform(i)},f=n.ZP.object({name:n.ZP.string({required_error:"Nome \xe9 um campo obrigat\xf3rio",invalid_type_error:"Nome deve ser do tipo de texto"}).min(3,{message:"Nome deve ter no m\xednimo 3 caracteres"}).max(64,{message:"Nome n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Nome n\xe3o pode conter simbolos"}).transform(d).transform(i),id:n.ZP.string({required_error:"CPF \xe9 um campo obrigat\xf3rio",invalid_type_error:"CPF deve ser do tipo de texto"}).min(11,{message:"CPF deve ser v\xe1lido"}).max(14,{message:"CPF deve ser v\xe1lido"}).refine(a.Z,{message:"CPF est\xe1 inv\xe1lido"}),email:n.ZP.string({required_error:"Email \xe9 um campo obrigat\xf3rio",invalid_type_error:"Email deve ser do tipo de texto"}).email({message:"E-mail inv\xe1lido"}).trim().toLowerCase().min(3,{message:"Email deve ter no m\xednimo 3 caracteres"}).max(128,{message:"Email n\xe3o pode conter mais do que 128 caracteres"}),phone:n.ZP.string({required_error:"N\xfamero de telefone \xe9 um campo obrigat\xf3rio",invalid_type_error:"N\xfamero de telefone deve ser do tipo de texto"}).min(8,{message:"N\xfamero de telefone deve ter no m\xednimo 8 caracteres"}).max(32,{message:"N\xfamero de telefone n\xe3o pode conter mais do que 32 caracteres"}).regex(/^\+(\d{1,3}) \d{2} ?\d? ?\d{4}-?\d{4}$/g,{message:"N\xfamero de telefone est\xe1 inv\xe1lido"}),address:n.ZP.object(x)}),h=n.ZP.object({brand:n.ZP.string({required_error:"Marca \xe9 um campo obrigat\xf3rio",invalid_type_error:"Marca deve ser do tipo de texto"}).min(3,{message:"Marca deve ter no m\xednimo 3 caracteres"}).max(64,{message:"Marca n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Marca n\xe3o pode conter simbolos"}).transform(d).transform(i),model:n.ZP.string({required_error:"Modelo \xe9 um campo obrigat\xf3rio",invalid_type_error:"Modelo deve ser do tipo de texto"}).min(3,{message:"Modelo deve ter no m\xednimo 3 caracteres"}).max(64,{message:"Modelo n\xe3o pode conter mais do que 64 caracteres"}).trim().toLowerCase().refine(c,{message:"Modelo n\xe3o pode conter simbolos"}).transform(d).transform(i),value:n.ZP.coerce.number({invalid_type_error:"N\xfamero deve ser do tipo de n\xfamero"}).min(0,{message:"Nmero deve ser entre 0 a 99999999"}).max(99999999,{message:"Nmero deve ser entre 0 a 99999999"}),year:n.ZP.coerce.number({required_error:"Ano \xe9 um campo obrigat\xf3rio"}).min(1886,{message:"Ano \xe9 um campo obrigat\xf3rio"}).max(m,{message:"Ano deve ser entre 1886 a ".concat(m)}).default(m),color:n.ZP.string({required_error:"Cor \xe9 um campo obrigat\xf3rio",invalid_type_error:"Cor deve ser do tipo de texto"}).max(20,{message:"Cor n\xe3o pode conter mais do que 20 caracteres"}).trim().toLowerCase().refine(c,{message:"Cor n\xe3o pode conter simbolos"}).transform(d).transform(i)}),p=h.extend({plate:n.ZP.string({required_error:"Placa \xe9 um campo obrigat\xf3rio",invalid_type_error:"Placa deve ser do tipo de texto"}).min(7,{message:"Placa deve ter no m\xednimo 7 caracteres"}).max(8,{message:"Placa deve ter no maximo 8 caracteres"}).trim().toLowerCase().refine(u,{message:"Placa deve estar no padr\xe3o MERCOSUL ou convencional"}).refine(c,{message:"Placa n\xe3o pode conter simbolos"}).transform(d).transform(i),chassis:n.ZP.string({invalid_type_error:"Chassi deve ser do tipo de texto"}).max(17,{message:"Chassi deve ter no maximo 17 caracteres"}).trim().toLowerCase().refine(c,{message:"Chassi n\xe3o pode conter simbolos"}).transform(d).default("").transform(i).optional()}),g=h.extend({plate:n.ZP.string({invalid_type_error:"Placa deve ser do tipo de texto"}).max(8,{message:"Placa deve ter no maximo 8 caracteres"}).trim().toLowerCase().refine(u,{message:"Placa deve estar no padr\xe3o MERCOSUL ou convencional"}).refine(c,{message:"Placa n\xe3o pode conter simbolos"}).transform(d).default("").transform(i).optional(),chassis:n.ZP.string({required_error:"Chassi \xe9 um campo obrigat\xf3rio",invalid_type_error:"Chassi deve ser do tipo de texto"}).min(17,{message:"Chassi deve ter no m\xednimo 17 caracteres"}).max(17,{message:"Chassi deve ter no maximo 17 caracteres"}).trim().toLowerCase().refine(c,{message:"Chassi n\xe3o pode conter simbolos"}).transform(d).transform(i)}),v=n.ZP.discriminatedUnion("isNew",[g.extend({isNew:n.ZP.literal(!0)}),p.extend({isNew:n.ZP.literal(!1)})]),j=n.ZP.object({client:f,vehicles:n.ZP.array(v)});var b=function(e){let{schema:t,data:r,prefix:n="",setError:a}=e,s=t.safeParse(r);return s.success?s:(s.error.issues.map(function(e){let t=e.path.join(".");a(n?"".concat(n,".").concat(t):t,{message:e.message},{shouldFocus:!0})}),null)},y=r(2265),N=r(39343),w=r(82755);r(74590);var C=(0,r(58064).$)("d55f98eacfca6e044e8d4a635b78fb941125cca2"),E=r(62851),z=r(16463);let _=function(){let e=(0,y.useRef)(null),[t,r]=(0,y.useState)(!1);return(0,y.useEffect)(function(){function t(t){e.current&&!e.current.contains(t.target)&&r(!1)}return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}},[]),{colorPickerOpen:t,setColorPickerOpen:r,colorPickerRef:e}};var P=function(e){let[t,r]=(0,y.useState)(1),[n,a]=(0,y.useState)("#39A2DB"),{colorPickerOpen:s,setColorPickerOpen:i,colorPickerRef:o}=_(),{getStorageItem:l,setStorageItem:c}={getStorageItem:function(e){let t=sessionStorage.getItem(e);return t?JSON.parse(t):null},setStorageItem:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))}},{createToast:d}=(0,E.pm)(),{custom:u}=(0,E.Fg)(),{getHirings:m}=(0,E.DH)(),{setModalDisplay:x}=(0,E.dd)(),f=(0,z.useRouter)(),h=l("trialForm"),p=(0,N.cI)({mode:"onChange",defaultValues:{client:null==h?void 0:h.client,vehicles:null==h?void 0:h.vehicles}}),{setError:g}=p,v=p.handleSubmit(async function(n){if(1===t){let e=b({schema:j.pick({client:!0}),data:n,setError:g});if(!e){d("Oops! Algo de errado nos dados, verifique novamente.","WARNING");return}await m(e.data.client.email),c("trialForm",{...n}),r(2)}if(2===t){if(!b({schema:j.pick({vehicles:!0}),data:n,setError:g}))return;c("trialForm",{...n}),r(3)}if(3===t&&r(4),4===t){if(x("ModalGenericLoading",!0),!b({schema:j,data:n,setError:g})){x("ModalGenericLoading",!1),d("Oops! Algo de errado nos dados, verifique novamente.","WARNING");return}if(!e||!e.joiningFee){x("ModalGenericLoading",!1),d("Oops! Plano n\xe3o encontrado ou taxa inv\xe1lida, verifique novamente.","WARNING");return}if(!(null==u?void 0:u.docId)){x("ModalGenericLoading",!1),d("Oops! Id de administrador n\xe3o encontrado, verifique novamente.","WARNING");return}let t={planDetails:e,ownerId:u.docId,documentModelId:u.hiring.documentModelId},r=await C(n,t);if(!(null==r?void 0:r.ok)){console.debug("[src/App/(trial)/trial/hire/[planId]/trialForm.hook.ts]",r.message),x("ModalGenericLoading",!1),d("Oops","Erro ao enviar solicita\xe7\xe3o, tente novamente.","WARNING");return}c("trialForm",{}),d("SUCESSO!","Solicita\xe7\xe3o criada com sucesso!","SUCCESS"),f.push("/trial/panel"),x("ModalGenericLoading",!1)}});return{step:t,setStep:r,methods:p,handleSubmit:v,colorPickerOpen:s,colorSet:w.U,setColorPickerOpen:i,colorPickerRef:o,colorSelected:n,setColorSelected:a}}},94981:function(e,t,r){var n=r(57437),a=r(6920),s=r(51446),i=r(62851);let o=(0,n.jsx)(a.G,{icon:s._tD});t.default=function(){let{custom:e}=(0,i.Fg)();return(0,n.jsxs)("a",{href:(null==e?void 0:e.cta)||"#plans",className:"relative z-40 flex justify-center lg:justify-start items-center gap-2 bg-cta w-full lg:w-fit py-3 px-4 lg:px-8 lg:py-3 text-white text-[16px] lg:text-size-subtitle  font-normal rounded-type-round shadow-style-cloud transition-all whitespace-nowrap",children:["CONTRATAR AGORA",o]})}},71672:function(e,t,r){var n=r(57437),a=r(72290),s=r(51446),i=r(6920),o=r(79647),l=r(62851),c=r(87138);t.default=function(e){let{bestSeller:t=!1,name:r,nameItems:d,discountPercent:u=0,originalPrice:m,joiningFee:x,showHireButton:f=!0,index:h=1}=e,{custom:p}=(0,l.Fg)(),g=null==p?void 0:p.complementaryColor,v=(null==p?void 0:p.hiring.isActive)?"/trial/hire/".concat(h+1):null==p?void 0:p.cta,j=(0,n.jsx)(i.G,{icon:s.LEp,style:{width:"32px",height:"32px"},color:"var(--primary)"}),b=(m-m*(u||0)/100).toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2}),y=null==x?void 0:x.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2});return(0,n.jsxs)("div",{className:" bg-highlight border border-neutral shadow-style-cloud rounded-type-bend flex flex-col gap-4 justify-center py-4 px-14 md:!p-16",children:[(0,n.jsx)("div",{className:"relative w-full",children:(0,n.jsx)("div",{className:"absolute rotate-[10deg] translate-x-20 -translate-y-16",children:t&&(0,n.jsx)(o.RN,{color:"text-white",text:"O MAIS CONTRATADO ⭐",fontWidth:"font-semibold",fontSize:"text-size-highlight",bgColor:"bg-natural",padSize:"p-5"})})}),(0,n.jsx)("span",{className:"text-display text-size-subtitle font-bold self-center text-center",children:r}),d.map(function(e){return(0,n.jsx)(o.vT,{icon:j,text:e,color:"text-display",textSize:"text-size-highlight"},(0,a.x0)())}).slice(0,10),(0,n.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,n.jsxs)("span",{style:{color:g},className:"text-size-subtitle",children:["R$ ",b]}),(0,n.jsx)("span",{className:" text-display text-size-smaller",children:"por m\xeas"}),x&&(0,n.jsxs)("span",{className:"text-display text-size-smaller",children:["( R$ ",y," Ades\xe3o )"]})]}),(null==p?void 0:p.cta)&&f&&(0,n.jsx)(c.default,{className:"flex justify-center",href:v||"",target:"_blank",children:(0,n.jsx)("button",{className:"flex items-center gap-2 bg-cta px-8 py-3 text-white text-size-highlight  font-normal rounded-type-round shadow-style-cloud transition-all whitespace-nowrap",children:"CONTRATAR AGORA"})})]})}},2281:function(e,t,r){var n=r(57437),a=r(2265);t.default=e=>{let{src:t,height:r="100%",className:s=""}=e,[i,o]=(0,a.useState)(!1),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[t]=e;o(t.isIntersecting)});return e.observe(l.current),()=>e.disconnect()},[i]),(0,a.useEffect)(()=>{if(l.current&&l.current.contentWindow){if(i){l.current.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");return}l.current.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")}},[i]),(0,n.jsx)("iframe",{className:"rounded-type-bend aspect-video ".concat(s),ref:l,id:"cameraIframe",width:"100%",height:r,src:"".concat(t,"&amp;controls=0&enablejsapi=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; ",allowFullScreen:!0})}},34486:function(e,t,r){r.d(t,{default:function(){return d}});var n=r(57437),a=r(2265),s=r(51446),i=r(6920);let o=(0,n.jsx)(i.G,{icon:s.LEp,style:{width:14,height:14,color:"white"}});var l=function(e){let{name:t,label:r,value:s=!1,onChange:i,required:l=!1,disabled:c=!1}=e,[d,u]=(0,a.useState)(s),m=function(){if(c)return;let e=!d;u(e),i&&i(e)},x=(0,n.jsx)("div",{className:"".concat(c?"bg-gray-urban border-gray-stone cursor-not-allowed":"cursor-pointer"," bg-primary border border-primary w-4 h-4 flex items-center justify-center rounded-type-round"),children:o}),f=(0,n.jsx)("div",{className:"".concat(c?"bg-gray-urban border-gray-stone cursor-not-allowed":"cursor-pointer"," cursor-pointer border border-neutral w-4 h-4 flex items-center justify-center rounded-type-round shadow-style-cloud"),children:null});return(0,n.jsxs)("div",{onClick:m,className:"flex items-center gap-2",children:[d?x:f,r&&(0,n.jsx)("span",{className:"".concat(c?"text-gray-stone cursor-not-allowed":""),children:r}),(0,n.jsx)("input",{id:t,name:t,type:"checkbox",className:"hidden",checked:d,required:l,disabled:c,onChange:m})]})},c=r(39343),d=function(e){let{control:t,name:r,label:a,required:s=!1,disabled:i=!1}=e,{field:{ref:o,...d}}=(0,c.bc)({control:t,name:r,rules:{required:{value:s,message:"Este campo \xe9 obrigat\xf3rio"}},disabled:i});return(0,n.jsx)(l,{label:a,...d})}},95863:function(e,t,r){var n=r(57437),a=r(39343),s=r(9897);t.default=function(e){let{control:t,name:r,label:i,errors:o,required:l=!1,onChange:c,disabled:d=!1}=e,{field:{ref:u,value:m,...x}}=(0,a.bc)({control:t,name:r,rules:{required:{value:l,message:"Este campo \xe9 obrigat\xf3rio"}},disabled:d}),f={type:!!(null==o?void 0:o.type),message:(null==o?void 0:o.message)||""};return(0,n.jsx)(s.c,{label:i,value:m,...x,onChange:function(e){x.onChange(e),c&&c()},errors:f})}},28809:function(e,t,r){var n=r(57437),a=r(39343),s=r(9897);t.default=function(e){let{control:t,name:r,label:i,required:o=!1,disabled:l=!1}=e,{field:{ref:c,...d},fieldState:{error:u}}=(0,a.bc)({control:t,name:r,rules:{required:{value:o,message:"Este campo \xe9 obrigat\xf3rio"}},disabled:l}),m={type:!!(null==u?void 0:u.type),message:(null==u?void 0:u.message)||""};return(0,n.jsx)(s.d,{...d,label:i,errors:m,disabled:l})}},65891:function(e,t,r){var n=r(57437),a=r(39343),s=r(9897);t.default=function(e){let{label:t,placeholder:r,options:i,excludes:o,name:l,control:c,basic:d=!1,defaultValue:u,required:m=!1,disabled:x=!1}=e,{field:{ref:f,...h},fieldState:{error:p}}=(0,a.bc)({control:c,name:l,rules:{required:{value:m,message:"Este campo \xe9 obrigat\xf3rio"}},disabled:x,defaultValue:u}),g={type:!!(null==p?void 0:p.type),message:(null==p?void 0:p.message)||""};return(0,n.jsx)(s.f,{...h,label:t,options:i,excludes:o,placeholder:r,errors:g,basic:d,defaultValue:u})}},3422:function(e,t,r){r.d(t,{default:function(){return c}});var n=r(57437),a=r(72290),s=r(2265),i=r(75672),o=function(e){let{label:t,placeholder:r,value:o="",disabled:l=!1,readonly:c=!1,onChange:d,errors:u,mask:m,icon:x,iconToLeft:f=!1,type:h="text"}=e,p=(0,a.x0)(),[g,v]=(0,s.useState)(o),j=(0,i.hN)({mask:m||"",options:{autoUnmask:!0}});return(0,s.useEffect)(function(){g!==o&&v(o)},[o,g]),(0,n.jsxs)("div",{className:"flex flex-col gap-2 w-full overflow-hidden",children:[t&&(0,n.jsx)("label",{className:"text-size-standard text-natural",htmlFor:p,children:(0,n.jsxs)("span",{children:[" ",t," "]})}),(0,n.jsxs)("div",{className:"relative pb-4",children:[(0,n.jsxs)("label",{htmlFor:p,className:"".concat(l||c?" bg-neutral-light text-gray-stone cursor-not-allowed":"bg-highlight text-natural cursor-text"," peer ").concat(f?"flex-row-reverse":"flex-row"," flex h-12 border focus:border-blue-sky w-full px-4 text-size-highlight outline-none rounded-type-round ").concat((null==u?void 0:u.type)?"border-red-persian":"border-neutral"," items-center "),children:[(0,n.jsx)("input",{type:h,id:p,name:p,disabled:l,readOnly:c,ref:m&&j,value:g,onChange:function(e){v(e.currentTarget.value),d(e)},placeholder:r,className:"peer flex-1 text-size-highlight focus:outline-none px-2 w-full"}),x&&(0,n.jsx)("div",{className:"px-2",children:x})]}),(0,n.jsx)("span",{className:"text-size-smaller text-red-persian absolute bottom-0",children:(null==u?void 0:u.message)||""})]})]})},l=r(39343),c=function(e){let{control:t,name:r,placeholder:a="",label:s,required:i=!1,mask:c,disabled:d=!1,type:u,onChange:m}=e,{field:{ref:x,...f},fieldState:{error:h}}=(0,l.bc)({control:t,name:r,rules:{required:{value:i,message:"Este campo \xe9 obrigat\xf3rio"}}}),p={type:!!(null==h?void 0:h.type),message:(null==h?void 0:h.message)||""},g=c&&(Array.isArray(c)?c:[c]),v=g&&g.sort(function(e,t){return e.length-t.length});return(0,n.jsx)(o,{type:u,label:s,placeholder:a,...f,onChange:function(e){f.onChange(e),m&&m(e)},errors:p,mask:v,disabled:d})}},76428:function(e,t,r){r.d(t,{z8:function(){return n.default},rq:function(){return a.default},a8:function(){return d},R9:function(){return s.default}});var n=r(34486),a=r(95863);r(65891);var s=r(3422),i=r(57437),o=r(2265),l=r(75269),c=r.n(l),d=function(e){let{setDataUrl:t,dataUrl:r}=e,n=(0,o.useRef)(null),a=(0,o.useRef)(null),[s,l]=(0,o.useState)(null);(0,o.useEffect)(function(){let e=n.current,t=a.current;e&&t&&e.isEmpty()&&(l({width:t.offsetWidth,height:t.offsetHeight}),s&&e.fromDataURL(r,{ratio:1}))},[r,s]);let d=function(){let e=n.current;if(!e)return;let r=e.toDataURL("image/png");s&&t(r)};return(0,i.jsx)("div",{ref:a,className:"flex flex-1 h-full w-full",children:(0,i.jsx)(c(),{penColor:"#000000",onEnd:d,onBegin:d,backgroundColor:"transparent",canvasProps:s||{width:100,height:100},ref:n})})}},79647:function(e,t,r){r.d(t,{jp:function(){return _.default},e7:function(){return n.default},P1:function(){return P.default},Zb:function(){return a.default},Iq:function(){return b},ZY:function(){return y},Cz:function(){return Z},z8:function(){return d.default},JG:function(){return u.default},ih:function(){return m.default},R9:function(){return x.default},vT:function(){return i},xZ:function(){return o},RN:function(){return l},VG:function(){return F},NT:function(){return k.default},cx:function(){return z},MD:function(){return w},Tt:function(){return C.default},He:function(){return c.default}});var n=r(94981),a=r(71672),s=r(57437),i=function(e){let{icon:t,text:r,color:n,textSize:a}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t,(0,s.jsx)("span",{className:"".concat(a," font-light ").concat(n),children:r})]})},o=function(e){let{icon:t,title:r,describe:n}=e;return(0,s.jsx)("div",{className:"min-w-[300px] flex flex-col w-[300px] md:!w-[350px] py-8 items-center border border-neutral shadow-style-cloud rounded-type-bend",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center text-center px-5 md:!pb-5 gap-4 ",children:[t,(0,s.jsx)("span",{className:"text-size-subtitle font-black text-display",children:r}),(0,s.jsx)("span",{className:"text-size-highlight font-light leading-tight text-display",children:n})]})})},l=function(e){let{color:t,text:r,fontWidth:n,fontSize:a="",bgColor:i,padSize:o=""}=e;return(0,s.jsx)("div",{className:"".concat(i||"bg-highlight"," ").concat(o," flex items-center text-size-standard justify-center border border-neutral rounded-type-round shadow-style-cloud"),children:(0,s.jsxs)("span",{className:"".concat(t," ").concat(a," ").concat(n||"font-light"," whitespace-nowrap"),children:[" ",r," "]})})},c=r(2281),d=r(34486);r(95863);var u=r(28809),m=r(65891),x=r(3422),f=r(30568),h=r(51446),p=r(6920);let g={width:16,height:16},v=(0,s.jsx)(p.G,{icon:f.VHX,style:g,color:"var(--neutral-dark)"}),j=(0,s.jsx)(p.G,{icon:h.FU$,style:g,color:"var(--neutral-dark)"});var b=function(e){let{client:t}=e;return(0,s.jsxs)("div",{className:"flex flex-col gap-8 border border-neutral shadow-style-cloud p-4 rounded-type-round",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-natural font-extrabold text-size-title uppercase",children:t.name}),(0,s.jsxs)("span",{className:"text-natural font-light text-size-highlight",children:[" CPF/CPNJ: ",t.id]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h4",{className:"text-natural text-size-standard",children:"Contato:"}),(0,s.jsxs)("span",{className:"flex gap-2 border border-neutral shadow-style-cloud p-2 items-center rounded-type-round",children:[v,(0,s.jsx)("p",{children:t.phone})]}),(0,s.jsxs)("span",{className:"flex gap-2 border border-neutral shadow-style-cloud p-2 items-center rounded-type-round",children:[j,(0,s.jsx)("span",{children:t.email})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h4",{className:"text-natural text-size-standard",children:" Endere\xe7o: "}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("span",{className:"font-light text-natural capitalize",children:[" ",t.address.street,", ",t.address.number," "]}),(0,s.jsxs)("span",{className:"font-light text-natural",children:[" CEP: ",t.address.zipCode," "]})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("span",{className:"font-light text-natural",children:[" ESTADO: ",t.address.state," "]}),(0,s.jsxs)("span",{className:"font-light text-natural capitalize",children:[" CIDADE: ",t.address.city," "]})]})]})]})]})]})},y=function(e){let{vehicle:t}=e,r=t.isNew?t.chassis:t.plate;return(0,s.jsxs)("div",{className:"flex gap-2 border border-neutral shadow-style-cloud p-2 rounded-type-round",children:[(0,s.jsx)("span",{className:"uppercase",children:r}),"-",(0,s.jsx)("span",{className:"uppercase",children:t.brand})]})};let N=(0,s.jsx)(p.G,{icon:h.LEp,style:{width:"16px",height:"16px",fontWeight:"bold"}});var w=function(e){let{number:t,name:r,stage:n}=e,a="",i="";return t===n?(a="flex items-center justify-center bg-primary text-white h-6 w-6 md:!h-9 md:!w-9 overflow-hidden rounded-full",i="text-natural"):t<n?(a="flex items-center justify-center bg-green-jade text-white h-6 w-6 md:!h-9 md:!w-9 overflow-hidden rounded-full",i="text-natural"):(a="flex items-center justify-center bg-neutral text-white h-6 w-6 md:!h-9 md:!w-9 overflow-hidden rounded-full",i="text-neutral-dark"),(0,s.jsxs)("div",{className:"flex items-center gap-2 md:!gap-4 font-normal text-size-standard md:!text-size-highlight",children:[(0,s.jsx)("div",{className:a,children:t<n?N:t}),(0,s.jsx)("div",{className:i,children:r})]})},C=r(94584);let E=(0,s.jsx)(p.G,{icon:h.LEp});var z=function(e){let{num:t,text:r,step:n,finishStep:a,setStep:i}=e,o={text:"text-natural",num:"text-white",bg:"bg-primary"};t>n&&(o={text:"text-neutral-dark",num:"text-neutral-dark",bg:"bg-neutral-light"}),t<n&&(o={text:"text-green-jade",num:"text-white",bg:"bg-green-jade"});let l=n>t&&i;return(0,s.jsxs)("div",{className:"".concat(t!==n?"md:!flex hidden":"flex"," items-center gap-2 ").concat(l?"cursor-pointer":"cursor-default"),onClick:function(){n<t||a&&a===n||!i||i(t)},children:[(0,s.jsx)("span",{className:"".concat(o.bg," ").concat(o.num," rounded-full p-2 w-[32px] h-[32px] flex items-center justify-center"),children:t<n?E:t}),(0,s.jsxs)("span",{className:o.text,children:[" ",r," "]})]})},_=r(9140),P=r(14013),k=r(10204),F=function(e){let{icon:t,size:r="w-11 h-11",disabled:n=!1}=e;return(0,s.jsx)("div",{className:"".concat(r," bg-highlight border border-neutral ").concat(n?"cursor-not-allowed opacity-60":"cursor-pointer"," shadow-style-cloud rounded-full"),children:(0,s.jsx)("div",{className:"".concat(r," flex items-center justify-center text-size-highlight text-natural"),children:t})})},A=r(20920);let S=function(e){let t=(0,A.Z)();return{title:(0,s.jsx)("h1",{className:"text-size-title",children:e},t),subtitle:(0,s.jsx)("h2",{className:"text-size-subtitle",children:e},t),left:(0,s.jsx)("p",{className:"text-left text-size-highlight",children:e},t),center:(0,s.jsx)("p",{className:"text-center text-size-highlight",children:e},t),right:(0,s.jsx)("p",{className:"text-right text-size-highlight",children:e},t),justify:(0,s.jsx)("p",{className:"text-justify text-size-highlight",children:e},t)}},R=function(e){let t=(0,A.Z)(),r=e.bold?"font-bold":"",n=e.italic?"italic":"",a=e.underline?"underline":"",i=e.strikethrough?"line-through":"",o=e.color?e.color:"#000000";return(0,s.jsx)("span",{className:"".concat(o," ").concat(r," ").concat(n," ").concat(a," ").concat(i),style:{color:o},children:e.text},t)};var q=function(e){let t=JSON.parse(e),r=[];for(let e of t){let t=[];for(let r of e.children){let e=R(r);t.push(e)}let n=S(t)[e.type];r.push(n)}return r},Z=function(e){let{content:t}=e,r=q(t);return(0,s.jsx)("div",{className:"flex-1 bg-white p-4 border border-neutral rounded-type-bend shadow-style-cloud",children:(0,s.jsx)("div",{className:"flex flex-col gap-2",children:r})})}},10204:function(e,t,r){var n=r(57437),a=r(66765),s=r(2265),i=r(39749),o=r.n(i),l=r(89241),c=r(6920),d=r(51446);let u={width:"15px",height:"15px"},m=(0,n.jsx)(c.G,{icon:d.r8p,style:u,className:"text-natural"}),x=(0,n.jsx)(c.G,{icon:d.Kl4,style:u,className:"text-natural"}),f=(0,n.jsx)(c.G,{icon:d.paY,style:u,className:"text-natural"}),h=(0,n.jsx)(c.G,{icon:d.lUd,style:u,className:"text-natural"}),p=(0,n.jsx)(c.G,{icon:d.EOp,style:u,className:"text-natural"}),g=function(e){let{name:t,action:r,state:a,id:s}=e;return(0,n.jsx)("div",{className:"".concat(a===s?"text-primary border-primary":"text-natural border-transparent"," flex flex-1 flex-row justify-center border-b-[3px] cursor-pointer transition-all"),onClick:function(){r(s)},children:(0,n.jsxs)("span",{className:"text-size-highlight font-medium",children:[" ",t," "]})})},v=function(e){let{borderRadius:t,filterStyle:r,avatarEditorRef:a,imageFile:s,zoomValue:i,rotationValue:l,width:c,height:d}=e;return(0,n.jsxs)("div",{className:"col-6",children:[(0,n.jsx)("span",{className:"text-[16px] px-4 font-bold",children:"Foto de perfil"}),(0,n.jsx)("div",{className:"w-full rounded-bl-[10px] rounded-br-[10px] rounded-tr-[10px] h-full mt-5 bg-black flex items-center justify-center z-60",children:(0,n.jsx)(o(),{width:c,height:d,style:r,ref:a,color:[0,0,0,.5],rotate:l,scale:i/100,image:s||"",borderRadius:t,className:"rounded-bl-[10px] rounded-br-[10px] rounded-tr-[10px]"})})]})};t.default=function(e){let{imageFile:t,handleSave:r,setOpen:i,borderRadius:o=250,width:c=400,height:d=400,isMobile:u=!1}=e,[j,b]=(0,s.useState)("settings"),[y,N]=(0,s.useState)(100),w=(0,s.useRef)(null),[C,E]=(0,s.useState)(100),[z,_]=(0,s.useState)(0),[P,k]=(0,s.useState)(0),[F,A]=(0,s.useState)(100),[S,R]=(0,s.useState)(100),q={filter:"brightness(".concat(F,"%) contrast(").concat(C,"%) saturate(").concat(S,"%) grayscale(").concat(z,"%)")},Z=function(e,t,r,n){n(function(n){let a=n+r;return a<e?e:a>t?t:a})},L=async function(){if(w.current){let e=w.current.getImageScaledToCanvas(),t=e.getContext("2d");if(t){t.filter="brightness(".concat(F,"%) contrast(").concat(C,"%) saturate(").concat(S,"%) grayscale(").concat(z,"%)");let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let a=n.getContext("2d");if(a){a.filter=t.filter,a.drawImage(e,0,0);let s=n.toDataURL("image/png"),i=await fetch(s);r(new File([await i.blob()],"filtered_image.png",{type:"image/png"}))}}}};return(0,n.jsx)(a.E.div,{exit:{opacity:0},animate:{opacity:1},initial:{opacity:0},className:"fixed inset-0 flex items-center justify-center z-50",children:(0,n.jsxs)("div",{className:"absolute h-screen w-screen flex items-center justify-center z-40",children:[(0,n.jsx)("div",{className:"modal h-screen w-screen absolute z-40"}),(0,n.jsxs)(a.E.div,{layoutId:"wrapper",exit:{opacity:0},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},className:"bg-highlight flex flex-col justify-start items-start pt-6 rounded-type-bend shadow-style-cloud z-50",children:[(0,n.jsx)("div",{className:"relative w-full h-full",children:(0,n.jsx)("span",{className:"absolute -top-11 -right-7 bg-highlight cursor-pointer h-10 w-10 flex items-center justify-center border border-gray-urban rounded-full shadow-style-cloud",onClick:function(){i(!1)},children:p})}),(0,n.jsxs)("div",{className:"".concat(u?"flex-col gap-4":"row"," flex"),children:[(0,n.jsx)(v,{width:u?230:c,height:u?230:d,imageFile:t,zoomValue:y,filterStyle:q,rotationValue:P,borderRadius:o,avatarEditorRef:w}),u?(0,n.jsxs)("div",{className:"flex flex-col justify-between h-full mx-2",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)("div",{className:"bg-primary mb-5 w-full py-3 px-8 rounded-type-bend flex justify-center cursor-pointer hover:opacity-90",onClick:function(){L()},children:(0,n.jsx)("span",{className:"text-size-highlight text-center text-white",children:"Salvar imagem"})})]}):(0,n.jsxs)("div",{className:"col-6",children:[(0,n.jsx)("span",{className:"text-[16px] px-4 ml-5 font-bold",children:"Configura\xe7\xf5es"}),(0,n.jsx)("div",{className:"".concat(u?"w-full":"w-[400px]"," rounded-br-[10px] h-full mt-5 bg-highlight flex items-center justify-center z-60"),children:(0,n.jsxs)("div",{className:"flex flex-col gap-6 w-full h-full px-5",children:[(0,n.jsx)("div",{className:"flex flex-col gap-2",children:(0,n.jsx)("div",{className:"flex-1 flex flex-col gap-6 bg-highlight shadow-type-cloud rounded-type-bend py-3 pb-2",children:(0,n.jsxs)("div",{className:"flex flex-row w-full h-9",children:[(0,n.jsx)(g,{name:"Ajustes",action:function(){b("settings")},state:j,id:"settings"}),(0,n.jsx)(g,{name:"Filtros",action:function(){b("filters")},state:j,id:"filters"})]})})}),"settings"===j?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex w-full justify-end",children:[(0,n.jsx)("div",{className:"w-[35px] mr-2",onClick:function(){k(function(e){return e>=180?0:e+90})},children:(0,n.jsx)(l.B,{size:32,icon:h})}),(0,n.jsx)("div",{className:"w-[35px]",onClick:function(){k(function(e){return e<=-180?0:e-90})},children:(0,n.jsx)(l.B,{size:32,icon:f})})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 mx-auto h-auto w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Zoom"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(100,200,-10,N)},children:x}),(0,n.jsx)("input",{min:100,max:200,step:10,type:"range",value:y,id:"default-range",onChange:function(e){N(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(0,200,10,N)},children:m})]})]}),(0,n.jsxs)("div",{className:"flex flex-col mt-5 gap-4 mx-auto h-auto w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Rota\xe7\xe3o"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(-180,180,-45,k)},children:x}),(0,n.jsx)("input",{min:-180,max:180,step:45,type:"range",id:"default-range",value:P,onChange:function(e){k(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(-180,180,45,k)},children:m})]})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4 mx-auto h-[50px] w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Brilho"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(40,200,-10,A)},children:x}),(0,n.jsx)("input",{min:40,max:200,step:10,type:"range",id:"default-range",value:F,onChange:function(e){A(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(40,200,10,A)},children:m})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 mx-auto h-[50px] w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Contraste"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(20,200,-10,E)},children:x}),(0,n.jsx)("input",{min:20,max:200,step:10,type:"range",id:"default-range",value:C,onChange:function(e){E(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(20,200,10,E)},children:m})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 mx-auto h-[50px] w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Satura\xe7\xe3o"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(0,200,-10,R)},children:x}),(0,n.jsx)("input",{min:0,max:200,step:10,type:"range",id:"default-range",value:S,onChange:function(e){R(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(0,200,10,R)},children:m})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 mx-auto h-[50px] w-full items-left justify-center",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-natural",children:"Tons de cinza"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{onClick:function(){Z(0,100,-5,_)},children:x}),(0,n.jsx)("input",{min:0,max:100,step:10,type:"range",id:"default-range",value:z,onChange:function(e){_(Number(e.target.value))},className:"appearance-none w-full mx-3 h-2 bg-neutral-light rounded-md outline-none range"}),(0,n.jsx)("div",{onClick:function(){Z(0,100,5,_)},children:m})]})]})]}),(0,n.jsxs)("div",{className:"flex flex-col justify-between h-full mx-2",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)("div",{className:"bg-primary mb-5 w-full py-3 px-8 rounded-type-bend flex justify-center cursor-pointer hover:opacity-90",onClick:function(){L()},children:(0,n.jsx)("span",{className:"text-size-highlight text-center text-white",children:"Salvar imagem"})})]})]})})]})]})]})]})},"AvatarEditorWrapper")}},9140:function(e,t,r){var n=r(57437),a=r(51446),s=r(6920);let i=(0,n.jsx)(s.G,{icon:a.acZ,style:{height:16,width:16}});t.default=function(e){let{text:t,icon:r,action:a}=e;return(0,n.jsxs)("button",{className:"hover:opacity-90 active:opacity-70 bg-natural cursor-pointer text-white flex justify-center items-center px-4 py-2 gap-2 rounded-type-round shadow-style-cloud transition-all",onClick:a,children:[r||i,(0,n.jsxs)("span",{className:"text-size-standard select-none hidden md:!block",children:[" ",t," "]})]})}},14013:function(e,t,r){var n=r(57437),a=r(51446),s=r(6920);let i=(0,n.jsx)(s.G,{icon:a.LEp,style:{height:16,width:16}});t.default=function(e){let{text:t,icon:r,action:a,active:s=!0}=e;return(0,n.jsxs)("button",{className:"".concat(s?"active:opacity-70 bg-primary cursor-pointer hover:opacity-90":"bg-neutral cursor-not-allowed"," text-white flex justify-center items-center px-4 py-2 gap-2 rounded-type-round shadow-style-cloud transition-all"),onClick:function(){s&&a&&a()},children:[r||i,(0,n.jsxs)("span",{className:"text-size-standard select-none",children:[" ",t," "]})]})}},94584:function(e,t,r){var n=r(57437),a=r(91047),s=r(51446),i=r(6920),o=r(66765),l=r(2265),c=r(39343),d=r(89241),u=r(20920),m=r(76428);let x=(0,n.jsx)(i.G,{icon:s.XAH}),f=(0,n.jsx)(i.G,{icon:s.ptq}),h=function(e){let{vehiclePlate:t,removeAction:r,isExpanded:a,expandAction:s,index:i}=e;return(0,n.jsxs)("div",{className:"w-full flex justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("div",{className:"".concat(a?"transform rotate-180":"transform rotate-0"),children:(0,n.jsx)(d.B,{icon:f,onClick:s})}),(0,n.jsx)("p",{className:"uppercase font-bold",children:t})]}),0!==i&&(0,n.jsx)(d.B,{size:40,icon:x,onClick:r})]})};t.default=function(e){let{control:t,index:r,handleRemoveVehicle:s}=e,[i,d]=(0,l.useState)(!0),{setValue:x}=(0,c.Gc)(),{colorSet:f,colorSelected:p,setColorSelected:g}=(0,a.Z)();(0,l.useEffect)(function(){x("vehicles.".concat(r,".color"),p)},[p,r,x]);let[v,j,b]=(0,c.qo)({control:t,name:["vehicles.".concat(r,".plate"),"vehicles.".concat(r,".chassis"),"vehicles.".concat(r,".isNew")]});return i?(0,n.jsxs)(o.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},exit:{opacity:0},className:"flex flex-col gap-8 border border-neutral shadow-style-cloud p-4 rounded-type-round",children:[(0,n.jsx)(h,{vehiclePlate:b?null!=j?j:"":null!=v?v:"",index:r,isExpanded:i,removeAction:()=>s(r),expandAction:()=>d(!1)}),(0,n.jsx)("div",{className:"flex items-center gap-2 w-2/3",children:(0,n.jsx)(m.z8,{control:t,name:"vehicles.".concat(r,".isNew"),placeholder:"Ve\xedculo novo",label:"Ve\xedculo novo"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row",children:[!b&&(0,n.jsx)(m.R9,{control:t,name:"vehicles.".concat(r,".plate"),label:"Placa",placeholder:"ABC-1D23"}),(0,n.jsx)(m.R9,{control:t,name:"vehicles.".concat(r,".model"),label:"Modelo",placeholder:"Modelo"})]}),(0,n.jsx)("div",{className:"flex flex-col gap-6 md:flex-row",children:(0,n.jsx)(m.R9,{control:t,name:"vehicles.".concat(r,".brand"),label:"Marca",placeholder:"Marca"})}),(0,n.jsx)("div",{className:"flex gap-6",children:(0,n.jsx)(m.R9,{control:t,name:"vehicles.".concat(r,".year"),label:"Ano",placeholder:"Ano"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-size-standard text-natural",htmlFor:"color-picker",children:"Cor do ve\xedculo"}),(0,n.jsx)("div",{className:"flex gap-4 flex-wrap mt-5",children:f.map(function(e){let t=(0,u.Z)(),r={height:32,width:32,borderRadius:100,backgroundColor:e.hex,outlineColor:"#FFFFFF"===e.hex?"#EAEAEA":e.hex,borderColor:"#FFFFFF"===e.hex?"#EAEAEA":"#FFFFFF"};return(0,n.jsx)("div",{style:r,onClick:function(){g(e.value)},className:"border-2  border-highlight ".concat(p===e.value?"outline":"hover:outline"," cursor-pointer")},t)})})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row",children:[(0,n.jsx)(m.rq,{control:t,name:"vehicles.".concat(r,".value"),label:"Valor FIPE (R$)"}),(0,n.jsx)(m.R9,{control:t,name:"vehicles.".concat(r,".chassis"),label:"Chassis",placeholder:"Chassis"})]})]}):(0,n.jsx)(o.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},exit:{opacity:0},className:"flex flex-col gap-8 border border-neutral shadow-style-cloud p-4 rounded-type-round",children:(0,n.jsx)(h,{vehiclePlate:v||j||"",isExpanded:i,removeAction:()=>s(r),expandAction:()=>d(!0),index:r})})}},39452:function(e,t){let r=function(e){let t=function(t){let r=e.slice(0,t).split("").map(Number).reduce((e,r,n)=>e+r*(t+1-n),0);return r%11<2?0:11-r%11};return!e.split("").every(t=>t===e[0])&&t(9)===parseInt(e.charAt(9),10)&&t(10)===parseInt(e.charAt(10),10)},n=function(e){let t=(e,t)=>{let r=t.reduce((t,r,n)=>t+parseInt(e.charAt(n))*r,0)%11;return r<2?0:11-r},r=t(e,[5,4,3,2,9,8,7,6,5,4,3,2]),n=t(e,[6,5,4,3,2,9,8,7,6,5,4,3,2]);return"".concat(e[12]).concat(e[13])==="".concat(r).concat(n)};t.Z=function(e){let t=e.replace(/[/.-]/g,"");return 11===t.length?r(t):14===t.length&&n(t)}}}]);