1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3786],{85326:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new-cars/[brand]/[model]/brochure",function(){return a(65600)}])},65600:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSG:function(){return _},default:function(){return f}});var l=a(85893);a(67294);var r=a(54902),o=a(11708),s=a(97375),c=a(32989),d=a(13460),i=a(18669),t=a(95687),u=a(39332),m=a(26630),h=e=>{let{modelName:n,brandName:a,modelData:r}=e;(0,u.usePathname)();let o=async()=>{let e="";e=(0,m.VA)(null==r?void 0:r.model_brochure,"cars");try{if(e.startsWith("http")){window.open(e,"_blank");return}let l=await fetch(e);if(!l.ok)throw Error("Failed to fetch the PDF");let r=await l.blob(),o=URL.createObjectURL(r);if(!window.open(o,"_blank")){let e=document.createElement("a");e.href=o,e.download="".concat(a,"-").concat(n,"-brochure.pdf"),document.body.appendChild(e),e.click(),document.body.removeChild(e)}setTimeout(()=>URL.revokeObjectURL(o),1e3)}catch(e){console.error("Error opening/downloading PDF:",e)}};return(0,l.jsx)("section",{className:"findcars-panel",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"gridpanel",children:(null==r?void 0:r.model_brochure)&&(null==r?void 0:r.model_brochure)!=="NULL"?(0,l.jsxs)("div",{className:"findcars-values",children:[(0,l.jsxs)("h3",{children:[a," ",n," Brochure in PDF"]}),(0,l.jsxs)("p",{children:["The ",a," ",n," brochure will give you an overall view of the car â from its looks, design, specs & features."]}),(0,l.jsx)("button",{className:"download-brochure-btn btn-block px-4",type:"button",onClick:o,children:(0,l.jsx)("span",{className:"mx-4",children:"Download Brochure"})})]}):(0,l.jsx)("p",{children:"Brochure Not Available"})})})})},p=a(95586),b=a(60860),x=a(54710),_=!0;function f(e){let{hasError:n=!1,modelData:a=[],modelSlug:u,adData:m=[],isUpcoming:_,isDiscontinuedModel:f,isElectricCar:j}=e,v=(0,p.Z)(),N=(0,x.Z)(),g=null==a?void 0:a.model_name,w=null==a?void 0:a.brand_name,k=null==a?void 0:a.brand_id,y=null==a?void 0:a.brand_url,D=(m||[]).sort((e,n)=>e.desktop_position-n.desktop_position),[E,Z,C,L]=null==D?void 0:D.map(e=>N?null==e?void 0:e.mobile_body_script:null==e?void 0:e.desktop_body_script);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{}),(0,l.jsx)("div",{className:"onroad-price-panel cars-key-specs-panel",children:(0,l.jsxs)(s.Z,{children:[(0,l.jsx)("div",{className:"add-for-brand",children:(0,l.jsx)(b.default,{adData:E,fixHeight:!0,centerAlign:!0})}),(0,l.jsx)(c.Z,{isElectricCar:j,isDiscontinuedModel:f,isUpcoming:_}),(0,l.jsx)(t.Z,{})]})}),(0,l.jsxs)("section",{className:"car-brand-panel onroadprice-panel-main car-images-gallery-main",children:[(0,l.jsx)(s.Z,{children:(0,l.jsxs)("div",{className:"carbrand-panel grid xl:grid-cols-12 lg:grid-cols-12 md:grid-cols-12",children:[(0,l.jsxs)("div",{className:"xl:col-span-9 lg:col-span-9 md:col-span-9 sm:col-span-9 carbrands-detail-left",children:[(0,l.jsx)(d.Z,{brandName:w,brandId:k,brandSlug:y,cityName:v,modelSlug:u,modelData:a,modelName:g,pageTitle:"".concat(w," ").concat(g," Brochure")}),(0,l.jsx)(h,{modelName:g,brandName:w,modelData:a}),(0,l.jsx)(b.default,{adData:L})]}),(0,l.jsx)("div",{className:"xl:col-span-3 lg:col-span-3 md:col-span-3 sm:col-span-3 carbrands-details-right onroad-pricepage keyspecs-page",children:(0,l.jsx)(i.Z,{})})]})}),(0,l.jsx)(o.default,{})]})]})}}},function(e){e.O(0,[6654,1340,248,8258,5576,7976,4340,3671,2888,179],function(){return e(e.s=85326)}),_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.