"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6349],{6349:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var s=a(5893),n=a(1664),l=a.n(n),i=a(5675),r=a.n(i),c=a(4193),o=a(7294),d=a(8295),m=a(3417),u=a(701),x=a(8360),h=function(e){var t=e.contactList,a=e.whatsForm;if(!t)return null;var n=(0,x.E)().region,l=(0,c.d)().isMobile,i=(0,o.useState)(""),r=i[0],h=i[1],f=(0,o.useState)(""),p=f[0],v=f[1],g=(0,o.useState)([]),j=g[0],b=g[1],k=(0,o.useState)(!1),w=k[0],N=k[1];return(0,o.useEffect)((function(){if(n){var e,a,s=null===t||void 0===t?void 0:t.filter((function(e){var t,a;return((null===e||void 0===e||null===(t=e.region)||void 0===t?void 0:t.length)||0)>0?(null===(a=e.region)||void 0===a?void 0:a.some((function(e){return e===n.id})))?e:void 0:e}));h((null===(e=s[0])||void 0===e?void 0:e.iframe_map)||""),v((null===(a=s[0])||void 0===a?void 0:a.name)||""),b(s)}else{var l,i;h((null===(l=t[0])||void 0===l?void 0:l.iframe_map)||""),v((null===(i=t[0])||void 0===i?void 0:i.name)||""),b(t)}}),[n,t]),(0,s.jsxs)("section",{className:"w-full py-5 relative bg-white",children:[(0,s.jsx)("h2",{className:"text-black text-center text-2xl md:text-3xl uppercase font-bold relative mb-6 mt-4 z-10",children:"Conhe\xe7a nossas lojas:"}),(0,s.jsx)(d.T,{children:(0,s.jsxs)("div",{className:"grid grid-cols-12 z-10 pb-4",children:[l&&(0,s.jsx)("div",{className:"col-span-12 z-10 py-5",children:(0,s.jsxs)("select",{className:"bg-white w-full rounded-none text-black py-3 px-4",onChange:function(e){N(!0);var t=e.target.selectedIndex,a=e.target.children[t].getAttribute("data-store")||"";h(e.target.value),v(a),setTimeout((function(){N(!1)}),500)},defaultValue:r,children:[(0,s.jsx)("option",{value:"","data-store":"",children:"Selecione uma loja"}),j.map((function(e){return(0,s.jsx)("option",{value:null===e||void 0===e?void 0:e.iframe_map,"data-store":e.name,children:e.name},e.name)}))]})}),(0,s.jsxs)("div",{className:"col-span-12 md:col-span-6 z-10 pr-0 md:pr-5 relative",children:[w&&(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full h-full z-10 pr-5",children:(0,s.jsx)("div",{className:"flex items-center justify-center w-full h-full bg-black/30 backdrop-blur-sm",children:(0,s.jsx)(u.$,{})})}),(0,s.jsx)("div",{className:"w-full h-[375px] md:h-[425px] relative",dangerouslySetInnerHTML:{__html:r}})]}),(0,s.jsx)("div",{className:"col-span-12 md:col-span-6 flex items-center z-10",children:(0,s.jsx)(m.Z,{dataGtm:"footer-contatos",textColor:"black",whatsForm:a,stores:j.map((function(e){return l?e.name==p?{title:e.name,address:e.address,city:e.city,state:e.state,phone:e.phone,whatsapp:e.whatsapp,hours:e.opening_hours,iframe:null===e||void 0===e?void 0:e.iframe_map,calltrack_medias:e.calltrack_medias,calltrack_token:e.calltrack_token,onClick:void 0}:void 0:{title:e.name,address:e.address,city:e.city,state:e.state,phone:e.phone,whatsapp:e.whatsapp,hours:e.opening_hours,iframe:e.iframe_map,calltrack_medias:e.calltrack_medias,calltrack_token:e.calltrack_token,onClick:function(){N(!0),h(e.iframe_map),setTimeout((function(){N(!1)}),500)}}}))})})]})})]})},f=a(9583),p=a(8193),v=a(6758),g=function(e){var t=e.items,a=e.formWhats,n=((0,c.d)().isMobile,(0,v.M)().onOpenForm),i=(0,x.E)().region,r=(0,o.useCallback)((function(e){var t=p.Wjh;switch(e){case"facebook":t=p.Wjh;break;case"instagram":case"instagram":t=f.Zf_;break;case"youtube":t=f.V2E;break;case"linkedin":t=f.BUd;break;case"tiktok":t=f.nTm;break;case"twitter":t=f.fWC}return t}),[]);return(0,s.jsxs)("div",{className:"flex gap-3 3xl:gap-5 items-center justify-between",children:[t.filter((function(e){var t,a;return(null===(t=e.regions)||void 0===t?void 0:t.includes(null===i||void 0===i?void 0:i.id))||0==(null===(a=e.regions)||void 0===a?void 0:a.length)})).map((function(e,t){return(0,s.jsx)("div",{className:"flex justify-center items-center gap-5",children:(0,s.jsx)(l(),{href:e.uri,target:"_blank",passHref:!0,children:(0,s.jsx)("a",{"data-gtm":"footer-social-".concat(e.type),className:"w-[50px] h-[50px] lg:w-[38px] lg:h-[38px] text-white ".concat(e.type," border-0 transition-all duration-300 ease-linear min-w-unset rounded-full text-4xl flex items-center justify-center hover:scale-125"),children:(0,o.createElement)(r(e.type))})})},t)})),a&&(0,s.jsx)("div",{className:"flex justify-center items-center gap-5",children:(0,s.jsx)("button",{"data-gtm":"footer-social-whatsapp",className:"w-[50px] h-[50px] lg:w-[38px] lg:h-[38px] text-white whatsapp border-0 transition-all duration-300 ease-linear min-w-unset rounded-full text-4xl flex items-center justify-center hover:scale-125",onClick:function(e){e.preventDefault(),n(a.triggerId)},children:(0,s.jsx)(p.thF,{})})})]})},j={src:"/_next/static/media/ibama_icon.28e5dd22.png",height:27,width:24,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAMAAAAC2hU0AAAAbFBMVEVqpl5AT52QwY56fbA8P5SnWz5Lg5QeGn9MaXGoWDBQO31VQXg0VYRIlUhJcHBjsTdBYHc5Rog6SqBTlk5pRm8xM5OizZ+IvIWq0qYxPZqt06p+f7FQjc9ATp4yM5I9U6iPksCy2a6VxZJAU4dRubd8AAAAHnRSTlMM4t/j/iciCwBB48nDNeoX1e74bvPj4/f86uT8Nu+J4TpAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAP0lEQVR4nAXBhRHAIAAAsceh7n5Q6P47NoG+NcF75qFrqtpgxy/qJeBEmpJ4cGvU8bQ49d6vcrDlI1+ALHuR/GLOA1Mcm5ePAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8},b=a(4046),k=function(e){var t=e.social,a=e.menus,n=(e.brands,e.companyName),i=e.leadForce,m=e.logo,u=e.contacts,x=e.formWhats,p=(e.regions,e.educational_phrase),k=e.educational_phrase_image,w=(0,c.d)().isMobile,N=(0,v.M)().onOpenForm,A=(0,o.useState)(!1),y=A[0],_=A[1];return(0,o.useEffect)((function(){setTimeout((function(){_(!0)}),5e3)}),[]),(0,s.jsxs)("footer",{className:"mt-auto",id:"system-footer",children:[y&&(0,s.jsx)("div",{className:"w-full bg-main-500 py-3",children:(0,s.jsx)(h,{contactList:u,whatsForm:null===x||void 0===x?void 0:x.triggerId})}),(0,s.jsx)("div",{className:"w-screen bg-white py-5 lg:py-7",children:(0,s.jsx)(d.T,{children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-12",children:[!w&&(0,s.jsx)("div",{className:"col-span-8",children:(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 px-4",children:a.map((function(e,t){var a,n;return(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"max-w-fit",children:(0,s.jsx)(l(),{href:"/vendas-diretas"===e.uri?"#vendas-diretas":"/pos-vendas"===e.uri?"#pos-vendas":e.uri,passHref:!0,children:(0,s.jsx)("a",{"data-gtm":"footer-".concat(null===(n=null===(a=e.name)||void 0===a?void 0:a.toLocaleLowerCase())||void 0===n?void 0:n.replace(/[-. ]/g,"")),target:e.uri.includes("https")?"_blank":"_self",className:"whitespace-nowrap capitalize text-black text-sm md:text-base cursor-pointer relative underline-main-hover",onClick:function(){"Vendas Diretas"!==e.name&&"P\xf3s-Vendas"!==e.name||(0,b.Mw)(e.name)},children:e.name})})})},"menus-footer-".concat(t))}))})}),(0,s.jsxs)("div",{className:"col-span-12 lg:col-span-4 bg-black px-6 3xl:px-16 py-8 rounded-sm",children:[(0,s.jsx)("h3",{className:"text-white mb-8 font-light uppercase text-left text-md xss:text-xss",children:"Acompanhe nas redes sociais:"}),(0,s.jsx)(g,{items:t,formWhats:x})]})]})})}),(0,s.jsx)("div",{className:"w-screen bg-white py-8",children:(0,s.jsx)(d.T,{children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-12 justify-between items-center",children:[!w&&(0,s.jsx)("div",{className:"col-span-4 flex items-center justify-center lg:justify-start",children:(0,s.jsx)(l(),{href:"/",passHref:!0,children:(0,s.jsx)("a",{"data-gtm":"footer-logo",className:"block justify-start",children:(0,s.jsx)(r(),{src:m,width:200,height:40,quality:100,objectFit:"contain",objectPosition:"center",style:{cursor:"pointer"},alt:"Logo da empresa"})})})}),(0,s.jsxs)("div",{className:"col-span-12 lg:col-span-4 flex flex-col justify-around items-center",children:[(0,s.jsx)("div",{className:"text-black mb-2",children:(0,s.jsxs)("p",{className:"text-xs font-regular text-black/90",property:"dc:rights",children:[(0,s.jsx)("span",{property:"dc:publisher",children:"Todos os Direitos Reservados |"}),(0,s.jsxs)("span",{property:"dc:dateCopyrighted",children:[" ",(new Date).getFullYear()," "]}),"\xa9",(0,s.jsxs)("span",{property:"dc:publisher",children:[" ",n]})]})}),(0,s.jsxs)("div",{className:"flex items-center justify-center",children:[(0,s.jsx)(r(),{width:25,height:25,src:k||j,alt:"Logo Ibama"}),(0,s.jsx)("span",{className:"text-xs text-black/80 ml-2 leading-normal mt-1 font-semibold",children:p||"Paz no tr\xe2nsito come\xe7a por voc\xea"})]})]}),w&&(0,s.jsx)("div",{className:"col-span-12 mt-2 text-center",children:(0,s.jsx)(l(),{href:"/",passHref:!0,children:(0,s.jsx)("a",{"data-gtm":"footer-logo",className:"block",children:(0,s.jsx)(r(),{src:m,width:150,height:30,quality:100,objectFit:"contain",objectPosition:"center",style:{cursor:"pointer",filter:"brightness(0)"},alt:"Logo da empresa"})})})}),i.showLogo&&(0,s.jsx)("div",{className:"col-span-12 lg:col-span-4 flex items-center justify-center lg:justify-end md:pr-5",children:(0,s.jsx)(l(),{href:i.uri,target:"_blank",passHref:!0,children:(0,s.jsx)("div",{title:i.title,className:"flex items-center justify-center gap-1 cursor-pointer",children:(0,s.jsx)(r(),{width:155,height:36,quality:100,objectFit:"contain",loading:"lazy",src:"https://www.leadforce.com.br/assets/img/site/logo_new_b.png",alt:i.altImage||"L\xedder em Marketing Digital Automotivo"})})})})]})})}),(null===x||void 0===x?void 0:x.isFloatButton)?(0,s.jsx)("div",{className:"fixed right-24 bottom-4 z-50",children:(0,s.jsx)("button",{"data-gtm":"footer-social-whatsapp","aria-label":"Formul\xe1rio de whatsApp",className:"w-20 h-20 bg-green-300 rounded-2xl flex items-center justify-center shadow-inner",onClick:function(){return N(x.triggerId)},children:(0,s.jsx)(f.xpo,{size:60})})}):null]})}},8295:function(e,t,a){a.d(t,{T:function(){return n}});var s=a(5893),n=(a(7294),function(e){var t=e.children;return(0,s.jsx)("section",{className:"max-w-full px-5 3xl:px-12",children:t})})},701:function(e,t,a){a.d(t,{$:function(){return n}});var s=a(5893),n=(a(7294),function(e){var t=e.className,a=void 0===t?"":t;return(0,s.jsx)("div",{className:"flex justify-center items-center ".concat(a),children:(0,s.jsxs)("svg",{className:"h-12 w-12 animate-spin",viewBox:"3 3 18 18",children:[(0,s.jsx)("path",{className:"fill-main-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),(0,s.jsx)("path",{className:"fill-main-500",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})})},3417:function(e,t,a){var s=a(5893),n=a(7294),l=a(1664),i=a.n(l),r=a(4193),c=a(9583),o=a(3750),d=a(6758),m=a(6509),u=a(5508);t.Z=function(e){var t=e.stores,a=(e.textColor,e.whatsForm),l=e.dataGtm,x=((0,r.d)(),(0,d.M)().onOpenForm);return(0,n.useEffect)((function(){t&&t.length>0&&((0,u.m)(t.filter((function(e){return null===e||void 0===e?void 0:e.calltrack_token})).map((function(e){return e.calltrack_token})).join(",")),(0,u.X)())}),[t]),(0,s.jsx)("div",{className:"w-full max-h-[400px] flex flex-col pr-0 md:pr-4 overflow-y-auto overflow",children:t.map((function(e,t){var n,r,d,u;return e?(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center pt-2 pb-4 border-b border-gray-500 last:border-b-0",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h3",{className:"text-lg md:text-2xl font-bold text-center md:text-left leading-normal mb-2",children:e.title}),e.address&&(0,s.jsx)("h4",{className:"mb-0 font-light text-xs md:text-sm text-center md:text-left",children:e.address}),e.city&&e.state&&(0,s.jsx)("h5",{className:"mb-2 font-light text-xs md:text-sm text-center md:text-left",children:"".concat(e.city,", ").concat(e.state)}),e.hours&&(0,s.jsx)("h2",{className:"mb-4 font-light text-xs md:text-base text-center md:text-left dangerous",dangerouslySetInnerHTML:{__html:e.hours}}),(0,s.jsxs)("div",{className:"flex items-center justify-center md:justify-start gap-5",children:[(0,s.jsx)(i(),{href:"tel:".concat(e.phone),target:"_blank",passHref:!0,children:(0,s.jsx)("a",{"data-gtm":"".concat(l,"-loja").concat(t+1,"-telefone"),"calltrack-token":0===((null===e||void 0===e||null===(n=e.calltrack_medias)||void 0===n?void 0:n.length)||0)||(null===e||void 0===e||null===(r=e.calltrack_medias)||void 0===r?void 0:r.some((function(e){return e===(0,m.Q)({}).fk_midias_id})))?null===e||void 0===e?void 0:e.calltrack_token:void 0,className:"cursor-pointer",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.SPk,{size:14,className:"text-main-500 mt-2"}),(0,s.jsx)("p",{className:"text-xs font-light text-center md:text-left leading-normal mt-2","calltrack-token-text":0===((null===e||void 0===e||null===(d=e.calltrack_medias)||void 0===d?void 0:d.length)||0)||(null===e||void 0===e||null===(u=e.calltrack_medias)||void 0===u?void 0:u.some((function(e){return e===(0,m.Q)({}).fk_midias_id})))?null===e||void 0===e?void 0:e.calltrack_token:void 0,children:e.phone})]})})}),e.whatsapp&&a&&(0,s.jsxs)("a",{"data-gtm":"".concat(l,"-loja").concat(t+1,"-whatsapp"),className:"flex items-center cursor-pointer",onClick:function(){return x(a)},children:[(0,s.jsx)(c.xpo,{size:14,className:"text-main-500 mr-2"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-light leading-normal mt-2",children:e.whatsapp})]})]})]}),""!=(null===e||void 0===e?void 0:e.iframe)&&e.onClick&&(0,s.jsx)("button",{"data-gtm":"".concat(l,"-loja").concat(t+1,"-ctavernomapa"),className:"btn-default px-10 mt-2 : md:mt-0 text-xs md:text-sm",onClick:e.onClick,children:"VER NO MAPA"}),(null===e||void 0===e?void 0:e.link_maps)&&(0,s.jsx)(i(),{href:e.link_maps,target:"_blank",passHref:!0,children:(0,s.jsx)("span",{children:(0,s.jsx)("button",{"data-gtm":"".concat(l,"-loja").concat(t+1,"-ctavernomapa"),className:"btn-default px-10 mt-2 : md:mt-0 text-xs md:text-sm",children:"VER NO MAPA"})})})]},t):null}))})}},5508:function(e,t,a){a.d(t,{X:function(){return i},m:function(){return l}});var s=a(6626),n=a(4046);function l(e){if(sessionStorage.getItem("calltrack")){var t=sessionStorage.getItem("calltrack")||"[]";JSON.parse(t).forEach((function(e){var t=(0,n.SQ)({value:e.phone,type:"phone"}),a=document.querySelectorAll("[calltrack-token='".concat(e.token,"']")),s=document.querySelectorAll("[calltrack-token-text='".concat(e.token,"']"));a.forEach((function(t){t.setAttribute("href","tel:".concat(e.phone))})),s.forEach((function(e){e.innerHTML=t}))}))}else s.f.get("/captations/calltrack",{params:{token:e}}).then((function(e){var t=e.data;sessionStorage.setItem("calltrack",JSON.stringify(t)),t.forEach((function(e){var t=(0,n.SQ)({value:e.phone,type:"phone"}),a=document.querySelectorAll("[calltrack-token='".concat(e.token,"']")),s=document.querySelectorAll("[calltrack-token-text='".concat(e.token,"']"));a.forEach((function(t){t.setAttribute("href","tel:".concat(e.phone))})),s.forEach((function(e){e.innerHTML=t}))}))})).catch((function(){}))}function i(){var e=null;(e=window.phonetrack)&&e.refresh()}}}]);