PageSourceSearch

https://www.autox.com/_next/static/chunks/pages/index-a31acff488e75b94.js

js autox.com collected 2026-10-02 08:03:25 UTC 45,451 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,860],{75557:function(e,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(53142)}])},60860:function(e,a,l){"use strict";l.r(a);var s=l(85893),n=l(67294);let t=e=>{if("string"==typeof e){let a=e.match(/div-gpt-ad-(\d+)-0/);return a?a[1]:""}return""},i=e=>{if(!e||"string"!=typeof e)return{path:"",sizes:[],height:null};let a="",l=[],s=null,n=null==e?void 0:e.match(/<!--\s*(\/[^\s]+)\s*-->/);n&&(a=n[1]);let t=null==e?void 0:e.match(/style=['"][^'"]*min-width:\s*(\d+)px;[^'"]*min-height:\s*(\d+)px;?/);if(t){let e=parseInt(t[1],10),a=parseInt(t[2],10);l.push([e,a]),s=a}return l.length>0&&l[0][0]<=300&&l[0][1]<=250&&l.push([320,100],[300,100]),l.length>0&&l[0][0]>=700&&l.push([970,90],[960,90],[950,90],[728,90]),{path:a,sizes:l,height:s}};a.default=e=>{let{adData:a,fixHeight:l=!1,defaultHeight:c=150,adIndex:o=0,centerAlign:d=!1}=e,r=(0,n.useMemo)(()=>t(a),[a]),m=(0,n.useMemo)(()=>i(a),[a]),p="div-gpt-ad-".concat(r,"-").concat(o),[x,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!p||!m.path){h(!1);return}h(!0);let e=!1,a=null,l=null,s=null,n=l=>{!e&&a&&l.slot===a&&h(!1)},t=()=>{if(e||!window.googletag||!p||!m.path||0===m.sizes.length)return;window.googletag.pubadsReady||(window.googletag.pubads().enableSingleRequest(),window.googletag.enableServices(),window.googletag.pubadsReady=!0);let l=window.googletag.defineSlot(m.path,m.sizes,p);l?(a=l,l.addService(window.googletag.pubads()),window.googletag.pubads().addEventListener("slotRenderEnded",n),window.googletag.display(p)):h(!1)};window.googletag||(window.googletag={cmd:[]}),window.googletag.cmd||(window.googletag.cmd=[]);let i=document.querySelector('script[data-src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"]');i||((i=document.createElement("script")).async=!0,i.setAttribute("data-src","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),document.head.appendChild(i));let c=()=>{e||(i&&!i.src&&(i.src=i.getAttribute("data-src")),window.googletag.cmd.push(t))};"requestIdleCallback"in window?l=window.requestIdleCallback(c,{timeout:2e3}):s=setTimeout(()=>{"complete"===document.readyState||"interactive"===document.readyState?c():document.addEventListener("DOMContentLoaded",c,{once:!0})},1e3);let o=setTimeout(()=>{e||h(!1)},1e4);return()=>{var t,i;e=!0,clearTimeout(o),null!==l&&"cancelIdleCallback"in window&&window.cancelIdleCallback(l),null!==s&&clearTimeout(s),a&&(null===(t=window.googletag)||void 0===t?void 0:t.pubads)&&window.googletag.pubads().removeEventListener("slotRenderEnded",n),a&&(null===(i=window.googletag)||void 0===i?void 0:i.destroySlots)&&window.googletag.destroySlots([a])}},[p,m.path,m.sizes]),(0,s.jsxs)("div",{className:"ad-container",style:{textAlign:d?"center":void 0,height:l?"".concat(c,"px"):void 0,minHeight:!l&&x?"".concat(m.height||c,"px"):void 0},children:[x&&(0,s.jsx)("div",{className:"ad-spinner-wrap",children:(0,s.jsx)("span",{className:"ad-spinner",children:(0,s.jsx)("span",{className:"ad-spinner-badge",children:"AD"})})}),(0,s.jsx)("div",{id:p})]})}},53142:function(e,a,l){"use strict";l.r(a),l.d(a,{__N_SSG:function(){return V},default:function(){return Q}});var s=l(85893),n=l(67294),t=l(97375),i=l(54902),c=l(11708),o=l(87241);function d(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"d-flex align-items-center",children:[(0,s.jsxs)("div",{className:"mr-[5px] text-[17px] font-semibold footer-about",children:["About"," "]}),(0,s.jsx)(o.default,{src:"/autox_new_logo.svg",width:131,height:37,alt:"autoX Logo",className:"w-auto h-[14px]"})]}),(0,s.jsx)("label",{className:"footer-text text-[14px]",children:"autoX is your pit-stop for all things automotive. Established in 2006, autoX is a leading automotive portal and publication in India. We also remain one of the fastest growing. Every month, our automotive experts craft the autoX magazine – one of the most influential, entertaining and informative automotive magazines in the country. You can grab the autoX magazine on stands nationwide as well as follow us on social media for your daily dose of the latest news, events and reviews from the automotive world."}),(0,s.jsx)("hr",{className:"my-2"})]})}var r=l(5152),m=l.n(r),p=l(7721),x=l(10214),h=l(11163),g=l(26630),u=l(55864),_=l(50807);let v=m()(()=>l.e(248).then(l.bind(l,60248)),{loadableGenerated:{webpack:()=>[60248]},ssr:!1});var b=l(24559),j=l(94342),f=l(94137),w=l(75959),N=l(4959);let k=m()(()=>
1Promise.resolve().then(l.bind(l,87241)),{loadableGenerated:{webpack:()=>[87241]},ssr:!0}),y=(0,f.SZ)(!1,5e3,!1,!1,!1,0,1,2,1,1,1);function S(e){let{bikeComparisonData:a=[],carComparisonData:l=[]}=e,i=(0,n.useRef)(null),c=(0,n.useRef)(null);(0,h.useRouter)();let[o,d]=(0,n.useState)(l),[r,m]=(0,n.useState)(a),[p,x]=(0,n.useState)(0),u=(e,a)=>{let l=e.brand_1_brand_url,s="car"===a?e.car_1_model_url:e.bike_1_model_url,n=e.brand_2_brand_url,t="car"===a?e.car_2_model_url:e.bike_2_model_url;return"car"===a?"/compare-cars/".concat(l,"-").concat(s,"-vs-").concat(n,"-").concat(t,"/"):"/compare-bikes/".concat(l,"-").concat(s,"-vs-").concat(n,"-").concat(t,"/")},v=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,s.jsx)(N.default,{ref:i,active:a,settings:y,children:(null==e?void 0:e.length)===0?(0,s.jsx)("div",{className:"black-color",children:"No comparision data available"}):null==e?void 0:e.map((e,a)=>(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"SpecComparisons ",children:[(0,s.jsxs)("div",{className:"relative grid xl:grid-cols-2 lg:grid-cols-2 md:grid-cols-2 sm:grid-cols-2 grid-cols-2 xl:gap-x-[10px] lg:gap-x-[10px] md:gap-x-[10px] sm:gap-x-[10px] gap-x-[10px] gap-y-[0]",children:[(0,s.jsxs)("div",{className:" xl:col-span-1 lg:col-span-1 md:col-span-1 sm:col-span-1 col-span-1 comparison-panel",children:[(0,s.jsx)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_1_brand_url,"/").concat(e.car_1_model_url,"/"),"data-toggle":"tooltip","data-placement":"top",title:"".concat(e.brand_1_brand_name," ").concat(e.car_1_model_name),children:(0,s.jsx)(k,{src:(0,g.al)(null==e?void 0:e.car_1_model_image,"model"),width:250,height:130,className:"latest-news-img",alt:(0,g.Lw)(null==e?void 0:e.car_1_model_image)})}),(0,s.jsxs)("div",{className:"mt-4 mb-4 pl-2 text-center comparison-box",children:[(0,s.jsx)("h4",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(e.brand_1_brand_name," ").concat(e.car_1_model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_1_brand_url,"/").concat(e.car_1_model_url,"/"),children:[e.brand_1_brand_name," ",e.car_1_model_name]})}),(0,s.jsxs)("p",{className:"price",children:["₹ ",(0,g.T4)(e.car_1_ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",e.car_1_city_name]})]})]}),(0,s.jsx)("div",{className:"hidden xl:flex lg:flex md:flex sm:flex absolute h-[35px] w-[35px] rounded-[50%] bg-[#EC1C24] text-[14px]  align-items-center justify-content-center vs-text   xl:top-[52%] lg:top-[52%] md:top-[52%] sm:top-[52%]   top-[52%]",children:(0,s.jsx)("div",{children:"VS"})}),(0,s.jsx)("div",{className:"mb-4 flex mx-auto xl:hidden lg:hidden md:hidden vs-absolute sm:hidden col-span-1  h-[30px] w-[30px] rounded-[50%] bg-[#EC1C24] text-[14px]  align-items-center justify-content-center",children:(0,s.jsx)("div",{children:"VS"})}),(0,s.jsxs)("div",{className:" xl:col-span-1 lg:col-span-1 md:col-span-1 sm:col-span-1 col-span-1",children:[(0,s.jsx)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_2_brand_url,"/").concat(e.car_2_model_url,"/"),title:"".concat(e.brand_2_brand_name," ").concat(e.car_2_model_name),children:(0,s.jsx)(k,{src:(0,g.al)(null==e?void 0:e.car_2_model_image,"model"),width:250,height:130,className:"latest-news-img",alt:"".concat(e.brand_2_brand_name," ").concat(e.car_2_model_name)})}),(0,s.jsxs)("div",{className:"mt-4 mb-4 pl-2 text-center comparison-box",children:[(0,s.jsx)("h4",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(e.brand_2_brand_name," ").concat(e.car_2_model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_2_brand_url,"/").concat(e.car_2_model_url,"/"),children:[e.brand_2_brand_name," ",e.car_2_model_name]})}),(0,s.jsxs)("p",{className:"price",children:["₹ ",(0,g.T4)(e.car_2_ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",e.car_2_city_name]})]})]})]}),(0,s.jsx)("div",{className:"text-center mb-[5px]",children:(0,s.jsx)(w.Z,{href:u(e,"car"),className:"text-[14px]  speci-compaire-btn h-[36px] btnhover","data-toggle":"tooltip","data-
1placement":"top",title:"Compare ".concat(e.brand_1_brand_name," ").concat(e.car_1_model_name," and ").concat(e.brand_2_brand_name," ").concat(e.car_2_model_name),children:"Compare"})})]})},a))})},f=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,s.jsx)(N.default,{ref:c,active:a,settings:y,children:(null==e?void 0:e.length)===0?(0,s.jsx)("div",{className:"black-color",children:"No comparision data available"}):null==e?void 0:e.map((e,a)=>(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"SpecComparisons ",children:[(0,s.jsxs)("div",{className:"relative grid xl:grid-cols-2 lg:grid-cols-2 md:grid-cols-2 sm:grid-cols-2 grid-cols-2 xl:gap-x-[10px] lg:gap-x-[10px] md:gap-x-[10px] sm:gap-x-[10px] gap-x-[10px] gap-y-[0]",children:[(0,s.jsxs)("div",{className:" xl:col-span-1 lg:col-span-1 md:col-span-1 sm:col-span-1 col-span-1 comparison-panel",children:[(0,s.jsx)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_1_brand_url,"/").concat(e.bike_1_model_url,"/"),"data-toggle":"tooltip","data-placement":"top",title:"".concat(e.brand_1_brand_name," ").concat(e.bike_1_model_url),children:(0,s.jsx)(k,{src:(0,g.al)(null==e?void 0:e.bike_1_model_image,"bike"),width:250,height:130,alt:"".concat(e.brand_1_brand_name," ").concat(e.bike_1_model_url),className:"latest-news-img"})}),(0,s.jsxs)("div",{className:"mt-4 mb-4 pl-2 text-center comparison-box",children:[(0,s.jsx)("h4",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(e.brand_1_brand_name," ").concat(e.bike_1_model_url),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_1_brand_url,"/").concat(e.bike_1_model_url,"/"),children:[e.brand_1_brand_name," ",e.bike_1_model_name]})}),(0,s.jsxs)("p",{className:"price",children:["₹ ",(0,g.T4)(e.bike_1_ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",e.bike_1_city_name]})]})]}),(0,s.jsx)("div",{className:"hidden xl:flex lg:flex md:flex sm:flex absolute h-[35px] w-[35px] rounded-[50%] bg-[#EC1C24] text-[14px]  align-items-center justify-content-center vs-text   xl:top-[52%] lg:top-[52%] md:top-[52%] sm:top-[52%]   top-[52%]",children:(0,s.jsx)("div",{children:"VS"})}),(0,s.jsx)("div",{className:"mb-4 flex mx-auto xl:hidden lg:hidden md:hidden vs-absolute sm:hidden col-span-1  h-[30px] w-[30px] rounded-[50%] bg-[#EC1C24] text-[14px]  align-items-center justify-content-center",children:(0,s.jsx)("div",{children:"VS"})}),(0,s.jsxs)("div",{className:" xl:col-span-1 lg:col-span-1 md:col-span-1 sm:col-span-1 col-span-1",children:[(0,s.jsx)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_2_brand_url,"/").concat(e.bike_2_model_url,"/"),title:"".concat(e.brand_2_brand_name," ").concat(e.bike_1_model_url),children:(0,s.jsx)(k,{src:(0,g.al)(null==e?void 0:e.bike_2_model_image,"bike"),width:250,height:130,className:"latest-news-img",alt:"".concat(e.brand_2_brand_name," ").concat(e.bike_2_model_name)})}),(0,s.jsxs)("div",{className:"mt-4 mb-4 pl-2 text-center comparison-box",children:[(0,s.jsx)("h4",{children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_2_brand_url,"/").concat(e.bike_2_model_url,"/"),children:[e.brand_2_brand_name," ",e.bike_2_model_name]})}),(0,s.jsxs)("p",{className:"price",children:["₹ ",(0,g.T4)(e.bike_2_ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",e.bike_2_city_name]})]})]})]}),(0,s.jsx)("div",{className:"text-center mb-[5px]",children:(0,s.jsx)("button",{children:(0,s.jsx)(w.Z,{href:u(e,"bike"),className:"text-[14px]  speci-compaire-btn h-[36px] btnhover",title:"Compare ".concat(e.brand_1_brand_name," ").concat(e.bike_1_model_name," and ").concat(e.brand_2_brand_name," ").concat(e.bike_2_model_name),children:"Compare"})})})]})},a))})},S=(0,n.useMemo)(()=>v(o,0===p),[p,o]),C=(0,n.useMemo)(()=>f(r,1===p),[p,r]);return(0,s.jsx)("section",{className:"comparison",children:(0,s.jsxs)(t.Z,{className:"custom-slider top-models all-brands-section relative",children:[(0,s.jsxs)("div",{style:{position:"absolute",left:"-99999px",to
1p:"-99999px",width:"1px",height:"1px",overflow:"hidden"},children:[null==l?void 0:l.map((e,a)=>(0,s.jsx)("div",{children:(0,s.jsxs)("a",{href:u(e,"car"),children:[e.brand_1_brand_name," ",e.car_1_model_name," vs ",e.brand_2_brand_name," ",e.car_2_model_name]})},"car-".concat(a))),null==a?void 0:a.map((e,a)=>(0,s.jsx)("div",{children:(0,s.jsxs)("a",{href:u(e,"bike"),children:[e.brand_1_brand_name," ",e.bike_1_model_name," vs ",e.brand_2_brand_name," ",e.bike_2_model_name]})},"bike-".concat(a)))]}),(0,s.jsxs)(j.mQ,{selectedIndex:p,onSelect:e=>{x(e),requestAnimationFrame(()=>{var a,l;let s=0===e?i.current:c.current;null==s||null===(l=s.innerSlider)||void 0===l||null===(a=l.onWindowResized)||void 0===a||a.call(l)})},children:[(0,s.jsxs)("div",{className:"d-flex align-items-center flex-wrap",children:[(0,s.jsx)("h3",{className:"xl:text-[25px] lg:text-[25px] md:text-[25px] sm:text-[18px] text-[18px] mb-[20px]",children:"Spec Comparisons"}),(0,s.jsx)(j.td,{className:"switch-tabs",children:(0,s.jsxs)(b.Z,{variant:"tabs",defaultActiveKey:"switchtabs",className:"tab-filter mb-3",children:[(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"0",children:(0,s.jsx)("span",{children:"Cars"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"1",children:(0,s.jsx)("span",{children:"Bikes"})})})]})}),(0,s.jsx)("div",{className:"viewall-items col-md-2 col-12 ms-auto abso-lute top-[0] right-[0]",children:(0,s.jsxs)(w.Z,{href:0===p?"".concat(_.ik,"/compare-cars/"):"".concat(_.ik,"/compare-bikes/"),className:"viewall-btn btnhover",role:"button",children:["View All",(0,s.jsx)("i",{className:"fal fa-angle-right","aria-hidden":"true"})," "]})})]}),(0,s.jsx)(j.x4,{forceRender:!0,className:0===p?"block pt-2":"hidden",children:S},0),(0,s.jsx)(j.x4,{forceRender:!0,className:1===p?"block":"hidden",children:C},1)]})]})})}var C=l(45862),Z=l(60860),E=l(95586);let T=m()(()=>Promise.resolve().then(l.bind(l,46066)),{loadableGenerated:{webpack:()=>[46066]},ssr:!0});function L(e){var a,l,n,i;let{trendingBikes:c=[],trendingCars:d=[],adData:r=[]}=e,m=(0,E.Z)();return(0,s.jsx)("div",{className:"bg-4 trendingcarsandbikes-section",children:(0,s.jsx)(t.Z,{children:(0,s.jsxs)("div",{className:"grid xl:grid-cols-12 lg:grid-cols-12 md:grid-cols-12 sm:grid-cols-1 grid-col-1 gap-x-[30px]",children:[(0,s.jsxs)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-6 sm:col-span-6 col-span-4 trading-cars-panel",children:[(0,s.jsx)("h3",{className:"heading-h2",children:"Trending Cars"}),d.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(T,{...(0,f.SZ)(!1,5e3,!1,!1,!1,500,1,1,1,1,1,!0),children:[(0,s.jsx)("div",{className:"trending-cars-list",children:null===(a=d.slice(0,4))||void 0===a?void 0:a.map((e,a)=>(0,s.jsxs)("div",{className:"mb-[25px] grid align-items-center xl:grid-cols-9 lg:grid-cols-9 md:grid-cols-9 sm:grid-cols-9 grid-cols-9 xl:gap-x-[12px] lg:gap-x-[12px] md:gap-x-[12px] sm:gap-x-[12px] gap-x-[12px] gap-y-[30px]",children:[(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-4 sm:col-span-4 col-span-4",children:(0,s.jsx)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:(0,s.jsx)(o.default,{src:(0,g.al)(null==e?void 0:e.model_image,"model"),width:198,height:112,alt:(0,g.Lw)(null==e?void 0:e.model_image),title:(0,g.Lw)(null==e?void 0:e.model_image),className:"xl:h-[110px] lg:h-[110px] md:h-[110px] sm:h-[110px] h-auto"})})}),(0,s.jsxs)("div",{className:"trading-titles xl:col-span-5 lg:col-span-5 md:col-span-5 sm:col-span-5 col-span-5",children:[(0,s.jsx)("h3",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:[null==e?void 0:e.brand_name," ",null==e?void 0:e.model_name]})}),(0,s.jsxs)("h4",{children:["₹"," ",(0,g.T4)(e.minprice)||(0,g.T4)(e.ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",m]})]})]},a))}),(0,s.jsx)("div",{className:"trending-cars-list",children:null===(l=d.slice(4,8))||void 0===l?void 0:l.map((e,a)=>(0,s.jsxs)("div",{className:"mb-[25px] grid align-items-center xl:grid-cols-9 lg:grid-cols-9 md:grid-cols-9 sm:grid-cols-9 grid-cols-9 xl:gap-x-[12px] lg:gap-x-[12px] md:gap-x-[12px] sm:gap-x-[12px] gap-x-[12px] gap-y-[30px]",children:[(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-4 sm:col-span-4 col-span-4",children:(0,s.jsx)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:(0,s.jsx)(o.default,{src:(0,g.al)(null==e?void 0:e.model_image,"model"),width:198,height:112,alt:(0,g.Lw)(null==e?void 0:e.model_image),title:(0,g.Lw)(null==e?void 0:e.model_image),className:"xl:h-[110px] lg:h-[110px] md:h-[110px] sm:h-[110px] h-auto"})})}),(0,s.jsxs)("div",{className:"trading-titles xl:col-span-5 lg:col-span-5 md:col-span-5 sm:col-span-5 col-span-5",children:[(0,s.jsx)("h3",{"data-toggle":"tooltip","data-
1placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-cars/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:[null==e?void 0:e.brand_name," ",null==e?void 0:e.model_name]})}),(0,s.jsxs)("h4",{children:["₹"," ",(0,g.T4)(e.minprice)||(0,g.T4)(e.ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",m]})]})]},a))})]},null==d?void 0:d.length),(0,s.jsx)("a",{href:"".concat(_.ik,"/new-car-launches-in-india/"),className:"btn w-100  readall-btn btnhover mt-[20px]","data-toggle":"tooltip","data-placement":"top",title:"Trending Cars",children:"View All"})]}):(0,s.jsx)("div",{className:"black-color",children:"No data available"})]}),(0,s.jsxs)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-6 sm:col-span-6 col-span-4 tradingbikes-panel",children:[(0,s.jsx)("h3",{className:"heading",children:"Trending Bikes"}),c.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(T,{...(0,f.SZ)(!1,5e3,!1,!1,!1,500,1,1,1,1,1,!0),children:[(0,s.jsx)("div",{className:"trending-cars-list",children:null===(n=c.slice(0,4))||void 0===n?void 0:n.map((e,a)=>(0,s.jsxs)("div",{className:"mb-[25px] grid align-items-center xl:grid-cols-9 lg:grid-cols-9 md:grid-cols-9 sm:grid-cols-9 grid-cols-9 xl:gap-x-[12px] lg:gap-x-[12px] md:gap-x-[12px] sm:gap-x-[12px] gap-x-[12px] gap-y-[30px]",children:[(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-4 sm:col-span-4 col-span-4",children:(0,s.jsx)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_url,"/").concat(e.model_url,"/"),"data-toggle":"tooltip","data-placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsx)(o.default,{src:(0,g.al)(null==e?void 0:e.model_image,"bike"),width:198,height:112,alt:(0,g.Lw)(null==e?void 0:e.model_image),title:(0,g.Lw)(null==e?void 0:e.model_image),className:"xl:h-[110px] lg:h-[110px] md:h-[110px] sm:h-[110px] h-auto"})})}),(0,s.jsxs)("div",{className:"trading-titles xl:col-span-5 lg:col-span-5 md:col-span-5 sm:col-span-5 col-span-5",children:[(0,s.jsx)("h3",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:[null==e?void 0:e.brand_name," ",null==e?void 0:e.model_name]})}),(0,s.jsxs)("h4",{children:["₹"," ",(0,g.T4)(e.minprice)||(0,g.T4)(e.ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",m]})]})]},a))}),(0,s.jsx)("div",{className:"trending-cars-list",children:null===(i=c.slice(4,8))||void 0===i?void 0:i.map((e,a)=>(0,s.jsxs)("div",{className:"mb-[25px] grid align-items-center xl:grid-cols-9 lg:grid-cols-9 md:grid-cols-9 sm:grid-cols-9 grid-cols-9 xl:gap-x-[12px] lg:gap-x-[12px] md:gap-x-[12px] sm:gap-x-[12px] gap-x-[12px] gap-y-[30px]",children:[(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-4 sm:col-span-4 col-span-4",children:(0,s.jsx)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_url,"/").concat(e.model_url,"/"),"data-toggle":"tooltip","data-placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsx)(o.default,{src:(0,g.al)(null==e?void 0:e.model_image,"bike"),width:198,height:112,alt:(0,g.Lw)(null==e?void 0:e.model_image),title:(0,g.Lw)(null==e?void 0:e.model_image),className:"xl:h-[110px] lg:h-[110px] md:h-[110px] sm:h-[110px] h-auto"})})}),(0,s.jsxs)("div",{className:"trading-titles xl:col-span-5 lg:col-span-5 md:col-span-5 sm:col-span-5 col-span-5",children:[(0,s.jsx)("h3",{"data-toggle":"tooltip","data-placement":"top",title:"".concat(null==e?void 0:e.brand_name," ").concat(null==e?void 0:e.model_name),children:(0,s.jsxs)("a",{href:"".concat(_.ik,"/new-bikes/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:[null==e?void 0:e.brand_name," ",null==e?void 0:e.model_name]})}),(0,s.jsxs)("h4",{children:["₹"," ",(0,g.T4)(e.minprice)||(0,g.T4)(e.ex_showroom_price)]}),(0,s.jsxs)("p",{children:["Ex-Showroom, ",m]})]})]},a))})]},null==c?void 0:c.length),(0,s.jsx)("a",{href:"".concat(_.ik,"/new-bike-launches-in-india/"),className:"btn w-100 readall-btn btnhover mt-[20px]","data-toggle":"tooltip","data-
1placement":"top",title:"Trending Bikes",children:"View All"})]}):(0,s.jsx)("div",{className:"black-color",children:"No data available"})]}),(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 md:col-span-6 sm:col-span-6 col-span-4 tradingadd-panel",children:(0,s.jsx)(Z.default,{adData:r})}),(0,s.jsx)("div",{className:"xl:col-span-12 lg:col-span-12 md:col-span-12 sm:col-span-12 col-span-12 ipad-add",children:(0,s.jsx)(Z.default,{adData:r})})]})})})}let B=m()(()=>Promise.resolve().then(l.bind(l,87241)),{loadableGenerated:{webpack:()=>[87241]},ssr:!0}),R=(0,n.memo)(B),D=(0,n.memo)(N.default);function A(e){let{latestCarsData:a,popularCarsData:l,upcomingCarsData:i,latestBikeData:c,popularBikeData:o,upcomingBikeData:d}=e,r=(0,E.Z)(),[m,p]=(0,n.useState)(0),[x,h]=(0,n.useState)(0),u=(0,n.useMemo)(()=>(0,f.SZ)(!1,5e3,!0,!1,!1,500,1,4),[]),v=(0,n.useCallback)(function(e,a,l){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],t=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,s.jsx)(j.x4,{forceRender:!0,children:(0,s.jsx)(D,{settings:u,active:t,children:(null==e?void 0:e.length)?e.map((e,a)=>(0,s.jsx)("div",{style:{position:"relative"},children:(0,s.jsxs)("div",{className:"reviewslide-panel bg-[#fff] rounded-[0px] p-[10px] mx-[15px] min-h-[300px] h-[max-content]",children:[(0,s.jsx)(w.Z,{href:"".concat(_.ik,"/").concat("bikes"==l?"new-".concat(l):l,"/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:(0,s.jsx)(R,{src:(0,g.al)(e.model_image,"new-cars"===l?"model":"bike"),width:260,height:147,alt:(0,g.Lw)(e.model_image),title:(0,g.Lw)(e.model_image),className:"latest-news-img"})}),(0,s.jsxs)("div",{className:"mt-3 mb-4 pl-2",children:[(0,s.jsx)("div",{className:"automobile-title text-[17px] font-semibold leading-[0.9]",children:(0,s.jsxs)(w.Z,{href:"".concat(_.ik,"/").concat("bikes"==l?"new-".concat(l):l,"/").concat(e.brand_url,"/").concat(e.model_url,"/"),children:[e.brand_name," ",e.model_name]})}),(0,s.jsx)("div",{className:"text-[12px] ex-showroom-text leading-[0.9]",children:n?"Expected Price":"Ex-Showroom, ".concat(r)}),(0,s.jsxs)("div",{className:"text-[#EC1C24] font-semibold text-[17px]",children:["₹"," ",(0,g.T4)(e.min_price)||(0,g.T4)(e.minprice)||(0,g.T4)(e.ex_showroom_price)||(0,g.T4)(e.starting_price)]}),n&&(0,s.jsx)("div",{className:"lauchdate",children:(0,s.jsxs)("span",{children:["When to Expect ",(0,s.jsx)("br",{}),(0,s.jsx)("strong",{children:(0,g.Bi)(null==e?void 0:e.model_date)})]})})]}),!n&&(0,s.jsx)("div",{className:"checkonroad bottom-[10px] w-[100%]",children:(0,s.jsx)(w.Z,{"data-toggle":"tooltip","data-placement":"top",title:"Check On-Road Price in ".concat(r),href:"".concat(_.ik,"/").concat("bikes"==l?"new-".concat(l):l,"/").concat(e.brand_url,"/").concat(e.model_url,"/price-in-").concat((0,g.k6)(r),"/"),className:"text-[14px] w-100 h-[36px] btnhover slider-readmore topautomobiles-btn",children:"Check On-Road Price"})})]})},e.id+a)):(0,s.jsxs)("div",{className:"black-color",children:["No ",a," available"]})})})},[r,u]),N=(0,n.useCallback)(e=>p(e),[]),k=(0,n.useCallback)(e=>h(e),[]);return(0,s.jsx)("div",{className:"automobiles-section",children:(0,s.jsx)(t.Z,{children:(0,s.jsx)("div",{className:"top-models",children:(0,s.jsxs)(j.mQ,{selectedIndex:x,onSelect:k,"aria-label":"Automobile Types",children:[(0,s.jsxs)("div",{className:"d-flex align-items-center flex-wrap",children:[(0,s.jsx)("h3",{className:"xl:text-[25px] lg:text-[25px] md:text-[25px] sm:text-[18px] text-[18px] mb-[20px]",children:"Top Automobiles"}),(0,s.jsx)(j.td,{className:"switch-tabs",children:(0,s.jsxs)(b.Z,{variant:"tabs",className:"tab-filter mb-3",children:[(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"CarReviews",onClick:()=>h(0),"aria-selected":0===x,children:(0,s.jsx)("span",{children:"Cars"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"BikeReviews",onClick:()=>h(1),"aria-selected":1===x,children:(0,s.jsx)("span",{children:"Bikes"})})})]})})]}),(0,s.jsx)(j.x4,{forceRender:!0,children:(0,s.jsxs)(j.mQ,{selectedIndex:m,onSelect:N,"aria-label":"Automobile Categories",children:[(0,s.jsxs)(j.td,{className:"automobiles-tabs",children:[(0,s.jsxs)(b.Z,{variant:"tabs",className:"tab-filter align-items-center",children:[(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Latest",onClick:()=>p(0),"aria-selected":0===m,children:(0,s.jsx)("span",{children:"Latest"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Popular",onClick:()=>p(1),"aria-selected":1===m,children:(0,s.jsx)("span",{children:"Popular"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Upcoming",onClick:()=>p(2),"aria-selected":2===m,children:(0,s.jsx)("span",{children:"Upcoming"})})})]}),(0,s.jsx)("div",{className:"viewall-items col-sm-2 absolute right-[0] top-[0] ",children:(0,s.jsxs)(w.Z,{href:0===m?"/new-car-launches-in-india/":1===m?"/top-selling-cars-in-india/":"/upcoming-cars/",className:"viewall-btn btnhover automobiles",role:"button",children:["View All",(0,s.jsx)("i",{className:"fal fa-angle-right","aria-hidden":"true"})," "]})})]}),v(a,"Latest Cars","new-cars",!1,0===x&&0===m),v(l,"Popular Cars","new-cars",!1,0===x&&1===m),v(i,"Upcoming Cars","new-cars",!0,0===x&&2===m)]})}),(0,s.jsx)(j.x4,{forceRender:!0,children:(0,s.jsxs)(j.mQ,{selectedIndex:m,onSelect:N,"aria-label":"Bike Categories",children:[(0,s.jsxs)(j.td,{className:"automobiles-tabs",children:[(0,s.jsxs)(b.Z,{variant:"tabs",className:"tab-filter align-items-center",children:[(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Trending",onClick:()=>p(0),"aria-selected":0===m,role:"link",children:(0,s.jsx)("span",{children:"Latest"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Popular",onClick:()=>p(1),"aria-selected":1===m,role:"link",children:(0,s.jsx)("span",{children:"Popular"})})}),(0,s.jsx)(j.OK,{children:(0,s.jsx)(b.Z.Link,{eventKey:"Upcoming",onClick:()=>p(2),"aria-selected":2===m,role:"link",children:(0,s.jsx)("span",{children:"Upcoming"})})})]}),(0,s.jsx)("div",{className:"viewall-items col-sm-2 absolute right-[0] top-[0]",children:(0,s.jsx)(w.Z,{href:0===m?"/new-bike-launches-in-india":1===m?"/top-selling-bikes-in-india":"/upcoming-bikes-in-india",className:"viewall-btn btnhover automobiles",role:"button",children:"View All"})})]}),v(c,"Trending Bikes","bikes",!1,1===x&&0===m),v(o,"Popular Bikes","bikes",!1,1===x&&1===m),v(d,"Upcoming Bikes","bikes",!0,1===x&&2===m)]})})]})})})})}let K=n.memo(e=>{var a,l,n,i,c,d,r,m,p,x,h,u,v,b;let{latestNewsData:j=[]}=e;return j.length?(0,s.jsx)("div",{className:"bg-2",children:(0,s.jsx)(t.Z,{children:(0,s.jsxs)("div",{className:"latestnews",children:[(0,s.jsx)("h3",{className:"heading heading-h1",children:"Latest News"}
1),(0,s.jsxs)("div",{className:"grid xl:grid-cols-12 lg:grid-cols-12 md:grid-cols-1 sm:grid-cols-1 grid-cols-1 gap-y-[15px]",children:[(0,s.jsxs)("div",{className:"xl:col-span-7 lg:col-span-7 md:col-span-1 sm:col-span-1 col-span-1 latestnew-left",children:[(0,s.jsx)("div",{className:"latestnewsimg",children:(0,s.jsx)(w.Z,{"data-toggle":"tooltip","data-placement":"top",title:null===(a=j[0])||void 0===a?void 0:a.post_title,className:"post-link",href:"".concat(_.ik,"/").concat((null===(l=j[0])||void 0===l?void 0:l.parent_category_slug)?"".concat(j[0].parent_category_slug)+"/":"").concat(null===(n=j[0])||void 0===n?void 0:n.category_slug,"/").concat(null===(i=j[0])||void 0===i?void 0:i.slug,"/"),children:(0,s.jsx)(o.default,{src:(0,g.al)(null===(c=j[0])||void 0===c?void 0:c.featured_image),width:620,height:348,alt:(null===(d=j[0])||void 0===d?void 0:d.post_title)||"Default Image",className:"xl:h-[350px] lg:h-[350px] h-auto"})})}),(0,s.jsxs)("div",{className:"latest-car-desc relative ",children:[(0,s.jsx)("p",{className:"text-[23px] line-height latestnewstext",children:(0,s.jsx)(w.Z,{"data-toggle":"tooltip","data-placement":"top",title:null===(r=j[0])||void 0===r?void 0:r.post_title,className:"post-link",href:"".concat(_.ik,"/").concat((null===(m=j[0])||void 0===m?void 0:m.parent_category_slug)?"".concat(j[0].parent_category_slug)+"/":"").concat(null===(p=j[0])||void 0===p?void 0:p.category_slug,"/").concat(null===(x=j[0])||void 0===x?void 0:x.slug,"/"),children:null===(h=j[0])||void 0===h?void 0:h.post_title})}),(0,s.jsx)("p",{className:"text-[14px] my-[10px] mb-[0px] line-height-news latest-sab-title",children:null===(u=j[0])||void 0===u?void 0:u.short_description}),(0,s.jsxs)("div",{className:"element-groups-custom mr-[10px]",children:[(0,s.jsxs)("div",{className:"post-meta-time mr-[10px]",children:[(0,s.jsx)("i",{className:"fal fa-calendar"}),(0,s.jsx)("span",{className:"mt-[2px]",children:(0,g.Bi)(null===(v=j[0])||void 0===v?void 0:v.publish_date)})]}),(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-clock"}),(0,s.jsxs)("span",{className:"mt-[2px]",children:[(0,g.Eh)(null===(b=j[0])||void 0===b?void 0:b.post_content)," ","Minute read"]})]})]})]})]}),(0,s.jsxs)("div",{className:"xl:col-span-5 lg:col-span-5 md:col-span-1 sm:col-span-1 col-span-1 latestnews-right",children:[j.length>1&&(0,s.jsx)(N.default,{settings:{...(0,f.SZ)(!1,100,!1,!1,!1,500,1,1,1,1,1,!0)},children:[1,6].map(e=>(0,s.jsx)("div",{className:"item",children:j.slice(e,e+4).map((e,a)=>(0,s.jsxs)("div",{className:"latestnews-slide grid xl:grid-cols-6 lg:grid-cols-6 grid-cols-1 gap-y-[30px]",children:[(0,s.jsx)("div",{className:"xl:col-span-2 lg:col-span-2 latestnewright-left",children:(0,s.jsx)(w.Z,{className:"post-link",href:"".concat(_.ik,"/").concat((null==e?void 0:e.parent_category_slug)?e.parent_category_slug+"/":"").concat(null==e?void 0:e.category_slug,"/").concat(null==e?void 0:e.slug,"/"),"data-toggle":"tooltip","data-placement":"top",title:null==e?void 0:e.post_title,children:(0,s.jsx)(o.default,{src:(0,g.al)((null==e?void 0:e.featured_image)||"/default-image.jpg"),width:196,height:111,alt:(null==e?void 0:e.post_title)||"Default Image"})})}),(0,s.jsx)("div",{className:"xl:col-span-4 lg:col-span-4 latestnewright-right",children:(0,s.jsxs)("div",{className:"unit-body",children:[(0,s.jsx)("p",{className:"font-weight-bold right-text",children:(0,s.jsx)(w.Z,{className:"post-link",href:"".concat(_.ik,"/").concat((null==e?void 0:e.parent_category_slug)?e.parent_category_slug+"/":"").concat(null==e?void 0:e.category_slug,"/").concat(null==e?void 0:e.slug,"/"),"data-toggle":"tooltip","data-placement":"top",title:null==e?void 0:e.post_title,children:null==e?void 0:e.post_title})}),(0,s.jsxs)("div",{className:"element-groups-custom mr-[10px]",children:[(0,s.jsxs)("div",{className:"post-meta-time mr-[10px]",children:[(0,s.jsx)("i",{className:"fal fa-calendar"}),(0,s.jsx)("span",{className:"mt-[2px]",children:(0,g.Bi)(null==e?void 0:e.publish_date)})]}),(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-clock"}),(0,s.jsxs)("span",{className:"mt-[2px]",children:[(0,g.Eh)(null==e?void 0:e.post_content)," ","Minute read"]})]})]})]})})]},a))},e))},null==j?void 0:j.length),(0,s.jsx)(w.Z,{href:"".concat(_.ik,"/news/"),className:"btn w-100 readall-btn btnhover","data-toggle":"tooltip","data-
1placement":"top",title:" More News",children:"Read All"})]})]})]})})}):null});var O=l(35048),P=l(50831),I=l(54710);l(41664);var q=l(69137),M=l(46066);function F(e){let{list:a,adData:l}=e,[i,c]=(0,n.useState)(a),[d,r]=(0,n.useState)(!1),[m,p]=(0,n.useState)(0);return(0,s.jsx)("div",{className:"bg-1 top-section homepage",children:(0,s.jsx)(t.Z,{className:"home-slider",children:(0,s.jsxs)("div",{className:"main-banner-section",children:[(0,s.jsx)("div",{className:"topbanner-1",children:(null==i?void 0:i.length)>0&&(0,s.jsx)(M.default,{...(0,f.SZ)(!0,3e3,!1,!0,!0,500,1,1,1,1,1),children:i.slice(1,6).map((e,a)=>(0,s.jsxs)("div",{className:"item","aria-hidden":a!==m,children:[(0,s.jsx)(w.Z,{"data-toggle":"tooltip","data-placement":"top",title:e.post_title,className:"post-link",href:"".concat(_.ik).concat((0,_.Dq)(null==e?void 0:e.category_slug)?"/"+(0,_.Dq)(null==e?void 0:e.category_slug):"","/").concat(e.category_slug,"/").concat(e.slug,"/"),children:(0,s.jsx)(o.default,{src:(0,g.al)(e.featured_image),width:932,height:393,alt:e.post_title,className:"slide-1",highPriority:!0})}),(0,s.jsxs)("div",{className:"slider-caption",children:[(0,s.jsx)("p",{className:"latest-news-h1",children:(0,s.jsx)(w.Z,{"data-toggle":"tooltip",title:e.post_title,className:"post-link",href:"".concat(_.ik).concat((0,_.Dq)(null==e?void 0:e.category_slug)?"/"+(0,_.Dq)(null==e?void 0:e.category_slug):"","/").concat(e.category_slug,"/").concat(e.slug,"/"),children:e.post_title})}),(0,s.jsx)("div",{className:"timing-div",children:(0,s.jsxs)("div",{className:"element-groups-custom",children:[(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-calendar"}),(0,s.jsx)("span",{children:(0,g.Bi)(e.publish_date)})]}),(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-clock"}),(0,s.jsxs)("span",{children:[(0,g.Eh)(e.post_content)," Minute read"]})]})]})})]})]},e.id))},null==i?void 0:i.length)}),(null==i?void 0:i.length)>0&&i[0]&&(0,s.jsxs)("div",{className:"topbanner-right",children:[(0,s.jsxs)("div",{className:"topbanner-2",children:[(0,s.jsx)(w.Z,{"data-toggle":"tooltip",title:i[0].post_title,className:"post-link",href:"".concat(_.ik).concat((0,_.Dq)(i[0].category_slug)?"/"+(0,_.Dq)(i[0].category_slug):"","/").concat(i[0].category_slug,"/").concat(i[0].slug,"/"),children:(0,s.jsx)(o.default,{src:(0,g.al)(i[0].featured_image),width:300,height:151,alt:(0,g.Lw)((0,g.al)(i[0].featured_image)),className:"car1",highPriority:!0})}),(0,s.jsxs)("div",{className:"slider-caption",children:[(0,s.jsx)(w.Z,{"data-toggle":"tooltip",title:i[0].post_title,className:"post-link",href:"".concat(_.ik).concat((0,_.Dq)(i[0].category_slug)?"/"+(0,_.Dq)(i[0].category_slug):"","/").concat(i[0].category_slug,"/").concat(i[0].slug,"/"),children:(0,s.jsx)("h1",{className:"line-height2 latest-news-h1",children:i[0].post_title})}),i[0].short_description&&(0,s.jsx)("p",{className:"line-height2 subtitle-text",children:i[0].short_description}),(0,s.jsx)("div",{className:"timing-div",children:(0,s.jsxs)("div",{className:"element-groups-custom",children:[(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-calendar"}),(0,s.jsx)("span",{children:(0,g.Bi)(i[0].publish_date)})]}),(0,s.jsxs)("div",{className:"post-meta-time",children:[(0,s.jsx)("i",{className:"fal fa-clock"}),(0,s.jsxs)("span",{children:[(0,g.Eh)(i[0].post_content)," Minute read"]})]})]})})]})]}),(0,s.jsxs)("div",{className:"topbanner-3",children:[(0,s.jsx)(w.Z,{href:"".concat(_.ik,"/bike-buyers-guide-hpcl/?utm_source=inhouse_ad&utm_medium=banner&utm_campaign=hp_inhouse_ad"),children:(0,s.jsx)("img",{src:"https://images.autox.com/uploads/static_banner_ad/HP_racer_banner.jpg",width:360,height:100,alt:"static ad",className:"trending-img trending-img-desktop"})}),(0,s.jsx)(w.Z,{href:"".concat(_.ik,"/bike-buyers-guide-hpcl/?utm_source=inhouse_ad&utm_medium=banner&utm_campaign=hp_inhouse_ad"),children:(0,s.jsx)("img",{src:"https://images.autox.com/uploads/static_banner_ad/HP_racer_banner.jpg",width:300,height:100,alt:"static ad",className:"trending-img trending-img-mobile"})})]})]})]})})})}
1let z=n.memo(function(){let e=(0,h.useRouter)(),[a,l]=(0,n.useState)("BIKES"),[t,i]=(0,n.useState)([]),[c,o]=(0,n.useState)([]),[d,r]=(0,n.useState)([]),[m,b]=(0,n.useState)([]),[j,f]=(0,n.useState)(!1),[w,N]=(0,n.useState)(!1),[k,y]=(0,n.useState)(!1),[S,C]=(0,n.useState)(!1),[Z,E]=(0,n.useState)(!1),[T,L]=(0,n.useState)(null),[B,R]=(0,n.useState)(null),[D,A]=(0,n.useState)(null),[K,O]=(0,n.useState)(null),P="CARS"===a?"new-cars":"new-bikes";(0,n.useEffect)(()=>{let e=(0,g.zl)("bikebrandOptions"),a=(0,g.zl)("brandOptions"),l=(0,g.zl)("modelOptions"),s=(0,g.zl)("bikemodelOptions");e?o(e):M(),a?i(a):q(),l?r(l):F(T),s?b(s):z(D)},[]);let I=e=>{l(e.target.value),"CARS"===e.target.value?(A(null),O(null),o([]),b([])):"BIKES"===e.target.value&&(L(null),R(null),i([]),r([]),M())},q=async()=>{f(!0);try{let e=(await (0,p.d_9)()).data.result.map(e=>({value:e.id,label:e.brand_name,url:e.brand_url}));i(e),(0,g.B4)("brandOptions",e)}catch(e){console.error("Error fetching brand options:",e)}finally{f(!1)}},M=async()=>{y(!0);try{let e=(await (0,x._p)()).data.result.map(e=>({value:e.id,label:e.brand_name,url:e.brand_url}));o(e),(0,g.B4)("bikebrandOptions",e)}catch(e){console.error("Error fetching bike brand options:",e)}finally{y(!1)}},F=async e=>{if(e){N(!0);try{let a=(await (0,p.Wt_)(e.value)).data.result.map(e=>({value:e.id,label:e.model_name,url:e.model_url,brand_id:e.brand_id}));r(a),(0,g.B4)("modelOptions",a)}catch(e){console.error("Error fetching model options:",e)}finally{N(!1)}}},z=async e=>{if(e){C(!0);try{let a=(await (0,x.Zq)(e.value)).data.result.map(e=>({value:e.id,label:e.model_name,url:e.model_url,brand_id:e.brand_id}));b(a),(0,g.B4)("bikemodelOptions",a)}catch(e){console.error("Error fetching bike model options:",e)}finally{C(!1)}}};return(0,s.jsxs)("div",{className:"bg-[#f3f3f3] p-[15px]",children:[(0,s.jsx)("div",{className:"bg-[#ffffff] py-[30px] px-[20px] quickform-inner",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"text-center mb-3 quick-search-checkbox",children:[(0,s.jsx)("h3",{children:"Quick Search"}),(0,s.jsx)("div",{className:"form-check form-check-inline no-margin",children:(0,s.jsxs)("div",{className:"radio-item",children:[(0,s.jsx)("input",{type:"radio",id:"BIKES",name:"carType",value:"BIKES",checked:"BIKES"===a,onChange:I}),(0,s.jsx)("label",{htmlFor:"BIKES",className:"bikescall",children:"BIKES"}),(0,s.jsx)("input",{type:"radio",id:"CARS",name:"carType",value:"CARS",checked:"CARS"===a,onChange:I}),(0,s.jsx)("label",{htmlFor:"CARS",children:"CARS"})]})})]}),"CARS"===a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsx)("label",{htmlFor:"brandSelect",className:"sr-only",children:"Brand:"}),(0,s.jsx)(v,{onChange:e=>{L(e),R(null),F(e)},options:t,placeholder:"Select Brand",value:T,classNamePrefix:"custom-select",isLoading:j})]}),(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsx)("label",{htmlFor:"modelSelect",className:"sr-only",children:"Model:"}),(0,s.jsx)(v,{onChange:e=>{R(e)},options:d,placeholder:"Select Model",value:B,classNamePrefix:"custom-select",isLoading:w,isDisabled:!T})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsx)("label",{htmlFor:"bikeBrandSelect",className:"sr-only",children:"Bike Brand:"}),(0,s.jsx)(v,{onChange:e=>{A(e),O(null),z(e)},options:c,placeholder:"Select Bike Brand",value:D,classNamePrefix:"custom-select",isLoading:k})]}),(0,s.jsxs)("div",{className:"form-group",children:[(0,s.jsx)("label",{htmlFor:"bikeModelSelect",className:"sr-only",children:"Bike Model:"}),(0,s.jsx)(v,{onChange:e=>{O(e)},options:m,placeholder:"Select Bike Model",value:K,classNamePrefix:"custom-select",isLoading:S,isDisabled:!D})]})]}),(0,s.jsxs)("div",{className:"text-center mt-4",children:[(0,s.jsx)("button",{className:"btn btn-primary home-footer-search",onClick:()=>{let l,s,n,t,i,c;if("CARS"===a?(l=null==T?void 0:T.value,s=null==T?void 0:T.label,n=null==T?void 0:T.url,t=null==B?void 0:B.value,i=null==B?void 0:B.label,c=null==B?void 0:B.url):"BIKES"===a&&(l=null==D?void 0:D.value,s=null==D?void 0:D.label,n=null==D?void 0:D.url,t=null==K?void 0:K.value,i=null==K?void 0:K.label,c=null==K?void 0:K.url),t){let a=(0,g.k6)(s),l=(0,g.k6)(i);e.push({pathname:"/".concat(P,"/[brand]/[model]"),query:{brandName:a,modelName:l,modelId:t}},"/".concat(P,"/").concat(n,"/").concat(c))}else l&&s?e.push("/".concat(P,"/").concat(n)):E(!0)},children:"Search"}),(0,s.jsxs)("a",{href:"CARS"===a?"".concat(_.ik,"/finder/new-cars/"):"".concat(_.ik,"/finder/new-bikes/"),title:"CARS"===a?"Find More Cars":"Find More Scooters",className:"advance-search",children:["Advanced Search ",(0,s.jsx)("i",{className:"far fa-long-arrow-right"})," "]})]})]})}),(0,s.jsx)(u.Z,{show:Z,setShow:E,buttonText:"Ok",title:"Please select a brand or model"})]})});var V=!0,Q=e=>
1{let[a,l]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=()=>l(window.scrollY);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.useEffect)(()=>{let e=()=>{window.location.reload()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]);let o=(q.V.home||{ads:[]}).ads||[],r=(0,I.Z)(),m=null==o?void 0:o.sort((e,a)=>e.desktop_position-a.desktop_position),[p,x,h,g]=null==m?void 0:m.map(e=>r?null==e?void 0:e.mobile_body_script:null==e?void 0:e.desktop_body_script);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"desktopnavbar",children:(0,s.jsx)("div",{className:"hpmepageheader ".concat(a>1?"home-logo":""),children:(0,s.jsx)(i.Z,{})})}),(0,s.jsxs)("section",{className:"bg-colors main-page",children:[(0,s.jsx)(F,{adData:p,list:e.topSlider}),(0,s.jsx)("div",{style:{marginTop:"53px"},children:(0,s.jsx)(O.Z,{carReviewsData:e.carReviewsData,bikeReviewsData:e.bikeReviewsData,motorsportData:e.motorsportData,opinionData:e.opinionData})}),(0,s.jsx)(K,{latestNewsData:e.latestNewsData}),(0,s.jsx)(C.default,{}),(0,s.jsx)(L,{trendingCars:e.trendingCars,trendingBikes:e.trendingBikes,adData:h}),(0,s.jsxs)("div",{className:"bg-6",children:[(0,s.jsx)(A,{...e}),(0,s.jsx)(Z.default,{adData:g,centerAlign:!0}),(0,s.jsx)("div",{className:"pt-[40px]",children:(0,s.jsx)(S,{bikeComparisonData:e.bikeComparisonData,carComparisonData:e.carComparisonData})}),(0,s.jsx)(t.Z,{className:"all-brands-section mt-[40px]",children:(0,s.jsxs)("div",{className:"grid xl:grid-cols-12 grid-cols-1",children:[(0,s.jsx)("div",{className:"xl:col-span-9",children:(0,s.jsx)(P.Z,{defaultVisibleLogos:14,carBrandLogos:e.carBrandLogos,bikeBrandLogos:e.bikeBrandLogos})}),(0,s.jsx)("div",{className:"xl:col-span-3 pl-[20px] quick-search-form",children:(0,s.jsx)(z,{})})]})})]}),(0,s.jsx)("div",{className:"bg-[#121212] pt-[38px]",children:(0,s.jsx)(t.Z,{children:(0,s.jsx)("div",{className:"col-sm-12",children:(0,s.jsx)(d,{})})})}),(0,s.jsx)(c.default,{})]})]})}},94137:function(e,a,l){"use strict";l.d(a,{SZ:function(){return c}});var s=l(85893),n=l(19317);function t(e){let{className:a,onClick:l}=e;return(0,s.jsx)("div",{className:a,onClick:l,children:(0,s.jsx)(n.Q,{src:"/right-arrow.svg"})})}function i(e){let{className:a,onClick:l}=e;return(0,s.jsx)("div",{className:a,onClick:l,children:(0,s.jsx)(n.Q,{className:"rotate180",src:"/right-arrow.svg"})})}let c=function(e,a,l,n,c,o,d,r,m,p,x){let h=arguments.length>11&&void 0!==arguments[11]&&arguments[11];return{autoplay:e,autoplaySpeed:a,lazyLoad:l,dots:n,infinite:c,speed:o,slidesToShow:r,slidesToScroll:d,nextArrow:(0,s.jsx)(t,{}),prevArrow:(0,s.jsx)(i,{}),responsive:[{breakpoint:2e3,settings:{slidesToShow:r,slidesToScroll:d,infinite:c,dots:n,autoplay:e}},{breakpoint:1200,settings:{slidesToShow:r,slidesToScroll:d,infinite:c,dots:n,autoplay:e}},{breakpoint:1e3,settings:{slidesToShow:p||2,slidesToScroll:p||2,infinite:c,dots:n,autoplay:e}},{breakpoint:1100,settings:{slidesToShow:x||3,slidesToScroll:x||3,infinite:c,dots:n,autoplay:e}},{breakpoint:700,settings:{slidesToShow:m||1,slidesToScroll:m||1,infinite:c,dots:n,autoplay:e}},{breakpoint:640,settings:h?"unslick":{slidesToShow:m||1,slidesToScroll:m||1,infinite:c,dots:n,autoplay:e}}]}}}},function(e){e.O(0,[6654,9317,1535,1340,6066,5576,4159,6524,6192,4948,3671,2888,179],function(){return e(e.s=75557)}),_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.