1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="13e5766e-0c75-452d-84d2-f74ce61c2432",e._sentryDebugIdIdentifier="sentry-dbid-13e5766e-0c75-452d-84d2-f74ce61c2432")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6200],{37546:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(96881).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},59853:(e,s,a)=>{a.d(s,{Xu:()=>r,d5:()=>l,iU:()=>t});let t=e=>e.replace(/\D/g,"").slice(0,11).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"),r=e=>{let s=e.replace(/\D/g,"").slice(0,11);return 0===s.length?"":s.length<=2?`(${s}`:s.length<=6?`(${s.slice(0,2)}) ${s.slice(2)}`:s.length<=10?`(${s.slice(0,2)}) ${s.slice(2,6)}-${s.slice(6)}`:`(${s.slice(0,2)}) ${s.slice(2,7)}-${s.slice(7)}`},l=e=>e.replace(/\D/g,"").slice(0,8).replace(/(\d{5})(\d{1,3})$/,"$1-$2")},61335:(e,s,a)=>{a.d(s,{N:()=>r});var t=a(77204);function r({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},63634:(e,s,a)=>{a.d(s,{R:()=>r});var t=a(468);let r=t.object({NODE_ENV:t.enum(["development","test","production"]).default("development"),NEXT_PUBLIC_SITE_URL:t.url().default("http://localhost:3000"),NEXT_PUBLIC_API_GATEWAY_URL:t.url().optional(),NEXT_PUBLIC_STRAPI_URL:t.url().optional(),NEXT_PUBLIC_RECAPTCHA_SITE_KEY:t.string().optional(),NEXT_PUBLIC_GTM_ID:t.string().optional(),NEXT_PUBLIC_ENABLE_GTM:t.enum(["true","false"]).optional()}).parse({NODE_ENV:"production",NEXT_PUBLIC_SITE_URL:"https://mitsubishimotors.com.br",NEXT_PUBLIC_API_GATEWAY_URL:"http://localhost:3001/api",NEXT_PUBLIC_STRAPI_URL:"https://cms.mitsubishimotors.com.br",NEXT_PUBLIC_RECAPTCHA_SITE_KEY:"6Lcet5csAAAAAOKwf0myF3oRNev6BJHLg_6ofTzX",NEXT_PUBLIC_GTM_ID:"GTM-WJN59R9",NEXT_PUBLIC_ENABLE_GTM:"true"})},76200:(e,s,a)=>{a.r(s),a.d(s,{EnvieSuaMensagemBlock:()=>T});var t=a(77204),r=a(45400),l=a(74790),n=a(97859),o=a(63634),c=a(74103),i=a(61335),d=a(468),m=a(99591),p=a(14578),x=a(86067);let g=(0,a(96881).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var u=a(8564),h=a(37546),f=a(17948),b=a(88403),N=a(59853);let _=(0,l.default)(()=>a.e(6827).then(a.bind(a,76827)),{loadableGenerated:{webpack:()=>[76827]},ssr:!1}),j=d.object({nome:d.string().min(1,"Nome obrigat\xf3rio").regex(m.VQ,"Apenas letras s\xe3o permitidas"),cpf_cnpj:d.string().optional(),email:d.string().email("E-mail inv\xe1lido"),telefone:d.string().optional(),assunto:d.string().min(1,"Assunto obrigat\xf3rio"),placa:d.string().optional(),chassi:d.string().optional(),mensagem:d.string().min(10,"Mensagem deve ter pelo menos 10 caracteres"),lgpd:d.boolean().refine(e=>!0===e,{message:"Voc\xea precisa autorizar o uso dos seus dados"})}),E=[{Icon:x.A,text:"Seus dados est\xe3o protegidos conforme a LGPD"},{Icon:g,text:"Retorno em at\xe9 48 horas \xfateis"},{Icon:u.A,text:"Atendimento em todo o Brasil"}];function y({label:e,required:s,error:a,children:r}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{className:"text-13 font-medium text-[#444]",children:[e,s&&(0,t.jsx)("span",{className:"text-brand-red",children:" *"})]}),r,a&&(0,t.jsx)("p",{className:"text-11 text-brand-red",children:a})]})}function v({checked:e,onToggle:s,hasError:a}){return(0,t.jsx)("button",{type:"button",role:"checkbox","aria-checked":e,onClick:s,className:(0,m.cn)("mt-1 size-5 shrink-0 rounded border-[1.5px] flex items-center justify-center transition-colors",e?"bg-brand-red border-brand-red":"bg-white border-secondary-3",a&&!e?"border-brand-red":""),children:e&&(0,t.jsx)(i.N,{className:"size-3 text-white"})})}function T({data:e}){let{titulo:s,descricao:a,texto_botao:l,texto_lgpd:i,sucesso_mensagem:d}=e,[x,g]=(0,r.useState)(!1),[u,T]=(0,r.useState)(null),w=(0,r.useRef)(null),[A,$]=(0,r.useState)(0),{register:C,handleSubmit:I,setValue:k,control:L,formState:{errors:P,isSubmitting:U}}=(0,n.mN)({resolver:(0,c.u)(j),defaultValues:{lgpd:!1}}),B=(0,n.FH)({name:"lgpd",control:L}),R=C("nome"),S=async e=>{if(T(null),!w.current)return void T("Por favor, confirme que voc\xea n\xe3o \xe9 um rob\xf4.");try{let s=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nome:e.nome,cpf:e.cpf_cnpj,email:e.email,telefone:e.telefone,whatsapp:e.telefone,assunto:e.assunto,placa:e.placa,chassi:e.chassi,mensagem:e.mensagem,comunicacoes:!1,recaptcha:w.current})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(e.message??"Erro ao enviar mensagem")}p.z.formThankYouPage({formName:"contato"}),g(!0),w.current=null,$(e=>e+1)}catch{T("Ocorreu um erro ao enviar sua mensagem. Tente novamente.")}},X=e=>(0,m.cn)("h-[47px] w-full rounded-[10px] border bg-surface-light px-4 py-3 text-sm text-black","placeholder:text-[rgba(10,10,10,0.5)] outline-none","focus:border-brand-red transition-colors",e?"border-brand-red":"border-[#ddd]");return(0,t.jsx)("section",{className:"bg-[#f5f5f5] py-10 lg:py-20 px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"max-w-[1280px] mx-auto flex flex-col lg:flex-row lg:items-start lg:justify-between gap-12 lg:gap-16",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6 lg:max-w-[464px]",children:[(0,t.jsx)("h2",{className:"text-28 lg:text-32 font-medium text-[#1a1a1a] leading-[1.3] tracking-[-0.5px]",children:s}),(0,t.jsx)("p",{className:"text-15 text-secondary-1 leading-[1.7]",children:a}),(0,t.jsx)("div",{className:"flex flex-col gap-5 mt-2",children:E.map(({Icon:e,text:s})=>(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(e,{className:"size-5 text-brand-red shrink-0 mt-0.5"}),(0,t.jsx)("p",{className:"text-sm text-[#444] leading-[1.5]",children:s})]},s))})]}),(0,t.jsx)("div",{className:"bg-white border border-[#eee] rounded-2xl shadow-sm p-8 lg:p-10 w-full lg:max-w-[720px]",children:x?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 py-10 text-center",children:[(0,t.jsx)(h.A,{className:"size-14 text-green-500"}),(0,t.jsx)("p",{className:"text-15 text-[#444] leading-[1.6] max-w-sm",children:d??"Mensagem enviada com sucesso! Nossa equipe entrar\xe1 em contato em breve."})]}):(0,t.jsxs)("form",{onSubmit:I(S),className:"flex flex-col gap-6",noValidate:!0,children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[(0,t.jsx)(y,{label:"Nome completo",required:!0,error:P.nome?.message,children:(0,t.jsx)("input",{...R,type:"text",placeholder:"Seu nome",className:X(!!P.nome),onChange:e=>{e.target.value=(0,m.kL)(e.target.value),R.onChange(e)}})}),(0,t.jsx)(y,{label:"E-mail",required:!0,error:P.email?.message,children:(0,t.jsx)("input",{...C("email"),type:"email",placeholder:"[email protected]",className:X(!!P.email)})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[(0,t.jsx)(y,{label:"Telefone",error:P.telefone?.message,children:(0,t.jsx)("input",{...C("telefone"),type:"tel",placeholder:"(00) 00000-0000",className:X(!!P.telefone),onChange:e=>k("telefone",(0,N.Xu)(e.target.value))})}),(0,t.jsx)(y,{label:"CPF/CNPJ",error:P.cpf_cnpj?.message,children:(0,t.jsx)("input",{...C("cpf_cnpj"),type:"text",placeholder:"000.000.000-00",className:X(!!P.cpf_cnpj),onChange:e=>k("cpf_cnpj",function(e){let s=e.replace(/\D/g,"").slice(0,14);return s.length<=11?s.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"):s.replace(/(\d{2})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1/$2").replace(/(\d{4})(\d{1,2})$/,"$1-$2")}(e.target.value))})})]}),(0,t.jsx)(y,{label:"Assunto",required:!0,error:P.assunto?.message,children:(0,t.jsx)("input",{type:"text",...C("assunto"),className:X(!!P.assunto),placeholder:"Assunto da mensagem"})}),(0,t.jsx)(y,{label:"Mensagem",required:!0,error:P.mensagem?.message,children:(0,t.jsx)("textarea",{...C("mensagem"),placeholder:"Descreva sua solicita\xe7\xe3o...",rows:5,className:(0,m.cn)("w-full rounded-[10px] border bg-surface-light px-4 py-3 text-sm text-black","placeholder:text-[rgba(10,10,10,0.5)] outline-none resize-none","focus:border-brand-red transition-colors",P.mensagem?"border-brand-red":"border-[#ddd]")})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(v,{checked:B,onToggle:()=>k("lgpd",!B),hasError:!!P.lgpd}),(0,t.jsx)("p",{className:"text-xs text-text-default leading-[1.45]",children:i})]}),P.lgpd&&(0,t.jsx)("p",{className:"text-11 text-brand-red -mt-4",children:P.lgpd.message}),o.R.NEXT_PUBLIC_RECAPTCHA_SITE_KEY&&(0,t.jsx)("div",{children:(0,t.jsx)(_,{sitekey:o.R.NEXT_PUBLIC_RECAPTCHA_SITE_KEY,onCh
1ange:e=>{w.current=e}},A)}),u&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-brand-red",children:[(0,t.jsx)(f.A,{className:"size-4 shrink-0"}),(0,t.jsx)("p",{className:"text-13",children:u})]}),(0,t.jsxs)("button",{type:"submit",disabled:U,className:(0,m.cn)("flex items-center justify-center gap-2 h-12 px-6 rounded-lg","bg-brand-red text-white text-base font-medium","transition-opacity shadow-sm w-full lg:w-fit",U?"opacity-60 cursor-not-allowed":"hover:opacity-90"),children:[U?"Enviando...":l,!U&&(0,t.jsx)(b.A,{className:"size-5 shrink-0"})]})]})})]})})}}}]);
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.