1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[351],{9030:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/motos/[vehicle]",function(){return a(443)}])},2402:function(e,t,a){"use strict";a.d(t,{_:function(){return s}});var l=a(7294);let s=l.createContext()},443:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return f},default:function(){return j}});var l=a(5893),s=a(7294),r=a(8573),i=a(2402),c=a(5675),n=a.n(c),d=a(1664),o=a.n(d),x=a(9008),h=a.n(x),m=a(9276);function u(e){return(0,s.useEffect)(()=>{let t=new m.Z({gallery:"#"+e.galleryID,padding:{top:20,bottom:40,left:100,right:100},children:"a",pswpModule:()=>a.e(687).then(a.bind(a,5826))});return t.init(),()=>{t.destroy(),t=null}},[]),(0,l.jsx)("div",{className:"pswp-gallery grid grid-cols-2 lg:grid-cols-3",id:e.galleryID,children:e.images.map((t,a)=>(0,l.jsx)("a",{href:t.largeURL,"data-pswp-width":t.width,"data-pswp-height":t.height,target:"_blank",rel:"noreferrer",children:(0,l.jsx)(n(),{src:t.thumbnailURL,alt:"",width:t.width,height:t.height})},e.galleryID+"-"+a))})}a(5032);var b=a(2032),g=a.n(b);let p=e=>{let{vehicle:t}=e,{config:a,stores:c}=g(),d=t.attributes.consortium_from,[x,m]=s.useState(c),[b,p]=s.useState(0),[f,j]=s.useState(0),v=e=>{let t=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});return t.format(e)};return(0,l.jsx)(i._.Provider,{value:[x,m],children:(0,l.jsxs)("div",{className:"w-100 from-white to-gray-100 bg-gradient-to-t",children:[(0,l.jsxs)(h(),{children:[(0,l.jsx)("title",{children:"".concat(t.attributes.name," - Maravilha Motos Honda")}),(0,l.jsx)("meta",{name:"description",content:t.attributes.slogan}),(0,l.jsx)("meta",{property:"og:image",content:t.attributes.covers[0].image.data.attributes.url})]}),(0,l.jsx)("div",{className:"container-full 2xl:container mx-auto px-0 lg:px-4",children:(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row pt-10",children:[(0,l.jsxs)("div",{className:"basis-2/3",children:[(0,l.jsxs)("div",{className:"mx-5 lg:mx-0 text-center lg:text-left",children:[(0,l.jsx)("h1",{className:"text-4xl text-neutral-900 font-bold",children:t.attributes.name}),(0,l.jsx)("p",{className:"text-gray-500 text-lg",children:t.attributes.slogan}),(0,l.jsx)("p",{className:"hidden",children:t.attributes.introduction})]}),(0,l.jsx)("div",{className:"tab-content tab-space",children:t.attributes.covers.map((e,t)=>(0,l.jsx)("div",{className:b===t?"block":"hidden",id:"vehicle_cover-".concat(t),children:(0,l.jsx)(n(),{loader:()=>e.image.data.attributes.url,src:e.image.data.attributes.url,placeholder:"blur",blurDataURL:e.image.data.attributes.url,className:"",alt:e.name,width:850,height:550})},t))}),(0,l.jsx)("ul",{className:"flex mb-0 mt-5 lg:mt-0 list-none justify-center flex-wrap pb-10 flex-row",role:"tablist",children:t.attributes.covers.map((e,t)=>(0,l.jsx)("li",{className:"rounded-full border shadow mr-2 last:mr-0",style:{backgroundColor:e.rgb},children:(0,l.jsx)("a",{className:"px-5 block py-5",onClick(e){e.preventDefault(),p(t)},"data-toggle":"tab",href:"#vehicle_cover-".concat(t),role:"tablist"})},t))}),d?(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row justify-center mb-3",children:[(0,l.jsxs)("div",{className:"text-lg font-bold pr-4 text-center mt-5 lg:mt-0 lg:text-right mb-5 leading-none",children:["Parcelas",(0,l.jsx)("span",{className:"lg:block",children:" a partir de"})]}),(0,l.jsxs)("div",{className:"flex justify-center",children:[(0,l.jsx)("div",{className:"text-lg pr-1",children:"R$"}),(0,l.jsx)("div",{className:"text-5xl text-red-500 font-bold",children:v(d).slice(0,-3)}),(0,l.jsxs)("div",{className:"text-lg text-red-500",children:[",",v(d).slice(-2)]})]})]}):""]}),(0,l.jsx)("div",{className:"basis-1/3 mx-3 lg:mx-0",children:(0,l.jsx)("div",{className:"bg-white rounded py-8 px-5 mt-16 lg:mt-0 shadow-lg",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsxs)("div",{className:"mb-5",children:[(0,l.jsxs)("h2",{className:"text-2xl mb-2",children:["Solicite uma ",(0,l.jsx)("b",{children:"cota\xe7\xe3o imperd\xedvel"})]}),(0,l.jsx)("p",{children:"Escolha a concession\xe1ria mais pr\xf3xima:"})]}),c.data.map(e=>{if((e.attributes.myhonda_link||[]).length)return(0,l.jsx)("div",{children:(0,l.jsx)("ul",{children:(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:e.attributes.myhonda_link,className:"mt-1 py-3 btn btn-secondary block",children:e.attributes.name})})})},e.id)})]})})})]})}),t.attributes.photo_library.data.length>0&&(0,l.jsx)("div",{className:"w-full bg-white mt-20",children:(0,l.jsx)(u,{galleryID:"my-test-gallery",images:t.attributes.photo_library.data.map(e=>({largeURL:e.attributes.url,thumbnailURL:e.attributes.url,width:1920,height:980}))})}
1),t.attributes.vehicle_technical.length>0&&(0,l.jsx)("div",{className:"w-full py-20 bg-top bg-cover bg-no-repeat",style:{backgroundImage:"url(".concat(t.attributes.banner.data.attributes.url,")")},children:(0,l.jsxs)("div",{className:"mx-5 lg:mx-60 bg-white shadow-md bg-opacity-90 px-5 py-10 rounded-xl",children:[(0,l.jsxs)("h2",{className:"text-4xl mb-10 text-center",children:[(0,l.jsx)("b",{children:"Ficha T\xe9cnica"})," - ",t.attributes.name]}),(0,l.jsx)("div",{className:"flex flex-wrap",children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("ul",{className:"flex mb-0 list-none justify-center flex-wrap pt-3 pb-4 flex-row",role:"tablist",children:t.attributes.vehicle_technical.map((e,t)=>(0,l.jsx)("li",{className:"mr-4 lg:mr-10 last:mr-0",children:(0,l.jsx)("a",{className:"hover:duration-300 duration-300 font-bold lg:text-xl py-3 block "+(f===t?"text-gray-800 border-b-2 border-gray-400 bg-white px-3 lg:px-5 rounded-full":"text-gray-600"),onClick(e){e.preventDefault(),j(t)},"data-toggle":"tab",href:"#ficha-tecnica-tab-".concat(t+1),role:"tablist",children:e.title})},e.id))}),(0,l.jsx)("div",{className:"relative flex flex-col min-w-0 break-words w-full mb-6",children:(0,l.jsx)("div",{className:"py-3",children:(0,l.jsx)("div",{className:"tab-content tab-space unreset",children:t.attributes.vehicle_technical.map((e,t)=>(0,l.jsx)("div",{id:"ficha-tecnica-tab--".concat(t+1),className:f===t?"block":"hidden",children:(0,l.jsx)(r.D,{children:e.description})},e.id))})})})]})})]})})]})})};var f=!0,j=p}},function(e){e.O(0,[973,785,774,888,179],function(){return e(e.s=9030)}),_N_E=e.O()}]);
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.