1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9848],{9457:e=>{e.exports={inputWrapper:"InputWithLabel_inputWrapper__X5mbD",label:"InputWithLabel_label__ytl5W",input:"InputWithLabel_input__CteXt"}},12664:(e,a,t)=>{"use strict";t.d(a,{w:()=>s});var n=t(95155),l=t(85203),o=t.n(l);t(12115);var r=t(21695),i=t.n(r);let s=e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("label",{className:o()(i().checkboxcustom,{[e.className]:e.className}),children:[e.text,(0,n.jsx)("input",{type:"checkbox",name:e.text,checked:e.checked,onChange:e.onChange,value:e.value}),(0,n.jsx)("span",{className:i().checkmark})]})})},16127:e=>{e.exports={thankyoucard_main:"bike_thankyoucard_thankyoucard_main__CVJWE",thankyoucard_main_show_image_gorpForm:"bike_thankyoucard_thankyoucard_main_show_image_gorpForm__9wA7r",card:"bike_thankyoucard_card__OXII_",active:"bike_thankyoucard_active__GQ6pS",sub:"bike_thankyoucard_sub__klT6i",subTitle:"bike_thankyoucard_subTitle__jWU90",wrapper:"bike_thankyoucard_wrapper__7_b_s",wrapper_align:"bike_thankyoucard_wrapper_align__BWxyM",brand:"bike_thankyoucard_brand__5JTUN",model:"bike_thankyoucard_model__JA8hK",price:"bike_thankyoucard_price__ZeWCv",check:"bike_thankyoucard_check__5lEmT",termscheck:"bike_thankyoucard_termscheck__VMrtU",background_clr:"bike_thankyoucard_background_clr__fI3Fw",socialicons:"bike_thankyoucard_socialicons__mZk8v",checkicon:"bike_thankyoucard_checkicon__uUUce",thankyoucard_main_no_images:"bike_thankyoucard_thankyoucard_main_no_images__n_KNe"}},21695:e=>{e.exports={checkboxcustom:"bike_checkbox_checkboxcustom__TguG_",checkmark:"bike_checkbox_checkmark__aeWEr"}},24360:e=>{e.exports={inputGroup:"OtpInput_inputGroup__y9UDP",otpInput:"OtpInput_otpInput__k99pk",resendWrapper:"OtpInput_resendWrapper__RFgw9",resendBtn:"OtpInput_resendBtn__0JDtr",icon:"OtpInput_icon__D7dJt",label:"OtpInput_label__bFFr7",newOtpInputWRap:"OtpInput_newOtpInputWRap__kzpE_",notRecivedOTP:"OtpInput_notRecivedOTP__KgHpk"}},31475:e=>{e.exports={recommended_grid:"RecommendedCardSection_recommended_grid__xM_Al",message_wrapper:"RecommendedCardSection_message_wrapper__fv_O2",message_box:"RecommendedCardSection_message_box__ARL1z",message_text:"RecommendedCardSection_message_text__4mf6M",support_number:"RecommendedCardSection_support_number__pvi2u",recommended_heading:"RecommendedCardSection_recommended_heading__B2UjR",receive_button:"RecommendedCardSection_receive_button__Ia0Xn",termsText:"RecommendedCardSection_termsText__VSqrR",successTextWrp:"RecommendedCardSection_successTextWrp__SqY8d",loadingGrid:"RecommendedCardSection_loadingGrid__4cX_O",card:"RecommendedCardSection_card__i4PFT",recommended_card_item:"RecommendedCardSection_recommended_card_item___tjqz"}},33262:()=>{},35270:e=>{e.exports={detectLocation:"FormFieldWrapper_detectLocation__m4ghO"}},37924:(e,a,t)=>{"use strict";t.d(a,{A:()=>_});var n=t(95155),l=t(56293),o=t(8760),r=t(67946),i=t(85203),s=t.n(i),c=t(12115),d=t(29790),m=t(42887),u=t.n(m);function _(e){let{setLocationSlug:a,setForm:t,form:i,setIsDetectLocationIsClicked:m,setErrors:_,className:p,isErrorIsVisible:h,isNewDesign:g=!1,lang:v}=e,[x,f]=(0,c.useState)(null),[b,y]=(0,c.useState)(!1),k=(0,d.HM)(v),j=async()=>{(0,o.Ay)({action:"click_detect_my_location",category:"other",label:"Detect my Location"}),y(!0),"geolocation"in navigator?navigator.geolocation.getCurrentPosition(async e=>{let{latitude:n,longitude:l}=e.coords;try{var s,c,d,u,p,h,g,v,x,b,k,j,w;m(!0),(0,o.Ay)({action:"yes_detect_my_location",category:"other",label:"Detect my Location"}),y(!1),f(null);let e=await (0,r.Not)(n,l);a?(t({...i,state:null==e||null==(c=e[0])||null==(s=c.state)?void 0:s.name,district:null==e||null==(d=e[0])?void 0:d.name,locationDistrict:null==e||null==(u=e[0])?void 0:u.slug}),a({districtSlug:null==e||null==(p=e[0])?void 0:p.slug,stateSlug:null==e||null==(g=e[0])||null==(h=g.state)?void 0:h.slug})):t({...i,state:null==e||null==(x=e[0])||null==(v=x.state)?void 0:v.name,districtSlug:null==e||null==(b=e[0])?void 0:b.slug,district:null==e||null==(k=e[0])?void 0:k.name,stateSlug:null==e||null==(w=e[0])||null==(j=w.state)?void 0:j.slug}),_(e=>({...e,district:""}));let C=document.querySelector("#city");C&&(C.setAttribute("tabindex","-1"),C.focus())}catch(e){console.error("Error fetching location details:",e),f("Failed to fetch location details. Please try again.")}},e=>{f(e.message),y(!1),(0,o.Ay)({action:"no_detect_my_location",category:"other",label:"Detect my Location"})}):(f("Geolocation is not supported by your browser."),y(!1))};return(0,n.jsxs)("div",{className:s()({[u().detectLocationWrp]:!0,[u().detectLocationWrapSpace]:"getLoan_offers type2"===p||h,[p]:p,[u().newDesignCls]:g}),onClick:j,role:"presentation",children:[(0,n.jsx)(l.ImageComponent,{height:16,width:16,alt:"icons",src:"https://images.tractorjunction.com/Vector_16_1191bbebac.svg"}),(0,n.jsx)("span",{className:"cursor-pointer",children:b?"Detecting...":k(g?"AUTO_DETECT":"DETECT_MY_LOCATION")})]})}},42887:e=>{e.exports={detectLocationWrp:"DetectLocation_detectLocationWrp__1cYF5",detectLocationWrapSpace:"DetectLocation_detectLocationWrapSpace__6cM3k",newDesignCls:"DetectLocation_newDesignCls__PYC6c"}},48191:e=>{e.exports={overlay:"modal_overlay__fMeYl",showoverlay:"modal_showoverlay__29s2v",modal:"modal_modal__lvidy",modal_Gorp_or_Loan:"modal_modal_Gorp_or_Loan__cVz25",showModal:"modal_showModal__pHi5v",popup_animation:"modal_popup_animation__RdUQs",crossicon_Gorp_or_Loan:"modal_crossicon_Gorp_or_Loan__3HfUL",crossicon:"modal_crossicon__qnXPP",crossicon_others:"modal_crossicon_others__kZi
15y",fitcontent_minheight:"modal_fitcontent_minheight__16Tor",locationCtyPopup:"modal_locationCtyPopup__N_eg_",modal_popup_animation__LvQsJ:"modal_modal_popup_animation__LvQsJ__RYvZa"}},51259:(e,a,t)=>{"use strict";t.d(a,{X:()=>i});var n=t(95155),l=t(56293),o=t(69753),r=t.n(o);function i(e){let{title:a="Icons",data:t,className:o="",invert:i=!1}=e;return(0,n.jsxs)("div",{className:o,children:[(0,n.jsx)("strong",{className:r().title,children:a}),(0,n.jsx)("ul",{className:r().list,children:null==t?void 0:t.map((e,a)=>{var t,o,r;return(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:(null==e?void 0:e.caption)||"#",target:"_blank",rel:"noreferrer",title:null!=(t=null==e?void 0:e.alternativeText)?t:" ",children:(0,n.jsx)(l.ImageComponent,{className:i?"invert":"",src:null==e?void 0:e.url,width:25,height:25,alt:null!=(o=null==e?void 0:e.alternativeText)?o:"Social icon",title:null!=(r=null==e?void 0:e.alternativeText)?r:"Social icon"})})},a)})})]})}},61243:e=>{e.exports={wrapper:"SelectInput_wrapper__0xi9s",dropdown:"SelectInput_dropdown__zcUqR"}},63958:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var n=t(12115);let l=n.createContext({});function o(e){var a,t,o;let{count:r=1,wrapper:i,className:s,containerClassName:c,containerTestId:d,circle:m=!1,style:u,..._}=e,p=n.useContext(l),h={..._};for(let[e,a]of Object.entries(_))void 0===a&&delete h[e];let g={...p,...h,circle:m},v={...u,...function(e){let{baseColor:a,highlightColor:t,width:n,height:l,borderRadius:o,circle:r,direction:i,duration:s,enableAnimation:c=!0,customHighlightBackgroun
1d:d}=e,m={};return"rtl"===i&&(m["--animation-direction"]="reverse"),"number"==typeof s&&(m["--animation-duration"]="".concat(s,"s")),c||(m["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(m.width=n),("string"==typeof l||"number"==typeof l)&&(m.height=l),("string"==typeof o||"number"==typeof o)&&(m.borderRadius=o),r&&(m.borderRadius="50%"),void 0!==a&&(m["--base-color"]=a),void 0!==t&&(m["--highlight-color"]=t),"string"==typeof d&&(m["--custom-highlight-background"]=d),m}(g)},x="react-loading-skeleton";s&&(x+=" ".concat(s));let f=null!=(a=g.inline)&&a,b=[],y=Math.ceil(r);for(let e=0;e<y;e++){let a=v;if(y>r&&e===y-1){let e=null!=(t=a.width)?t:"100%",n=r%1,l="number"==typeof e?e*n:"calc(".concat(e," * ").concat(n,")");a={...a,width:l}}let l=n.createElement("span",{className:x,style:a,key:e},"â");f?b.push(l):b.push(n.createElement(n.Fragment,{key:e},l,n.createElement("br",null)))}return n.createElement("span",{className:c,"data-testid":d,"aria-live":"polite","aria-busy":null==(o=g.enableAnimation)||o},i?b.map((e,a)=>n.createElement(i,{key:a},e)):b)}},69271:e=>{e.exports={enquiry_modal_main:"EnquiryFormModal_enquiry_modal_main__cxCI0",enquiry_modal_main_Gorp_or_Loan:"EnquiryFormModal_enquiry_modal_main_Gorp_or_Loan__7k_aD",modal_title:"EnquiryFormModal_modal_title__nDhft",modal_title_Gorp_or_Loan:"EnquiryFormModal_modal_title_Gorp_or_Loan__iIHXR",privacy_text:"EnquiryFormModal_privacy_text__o2bfT",privacy_text_dealer:"EnquiryFormModal_privacy_text_dealer__2dFRh",privacy_link:"EnquiryFormModal_privacy_link__yXAWs",form_section:"EnquiryFormModal_form_section__Xszxs",button_Gorp_or_Loan:"EnquiryFormModal_button_Gorp_or_Loan__JuRmQ",backImageSection:"EnquiryFormModal_backImageSection___sZBI",leadFormWrp:"EnquiryFormModal_leadFormWrp__6B9iE",leadFormWrp_Gorp_or_Loan:"EnquiryFormModal_leadFormWrp_Gorp_or_Loan__jCekp",lead:"EnquiryFormModal_lead__ZxFx8",form_section_Gorp_or_Loan:"EnquiryFormModal_form_section_Gorp_or_Loan__ACBOP",leadFormPopWrapper:"EnquiryFormModal_leadFormPopWrapper__by3GA"}},69753:e=>{e.exports={title:"bike_socialbar_title__NGiUJ",list:"bike_socialbar_list__B2lMF"}},72235:(e,a,t)=>{"use strict";t.d(a,{a:()=>_});var n=t(95155),l=t(85203),o=t.n(l),r=t(12115),i=t(63958);let s={src:"/_next/static/media/close.6cdf647f.png"};var c=t(56293),d=t(48191),m=t.n(d);function u(){return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(i.default,{width:100}),(0,n.jsx)(i.default,{height:30}),(0,n.jsx)(i.default,{height:30}),(0,n.jsx)(i.default,{height:30}),(0,n.jsx)(i.default,{width:150,height:40}),(0,n.jsx)(i.default,{})]})}let _=(0,r.forwardRef)((e,a)=>{let{isOpen:t=!1,setOpen:l=()=>{},children:i,icon:d=!0,contentClassName:_,className:p,clickOutside:h=!1,fitContentHeight:g=!1,placedOnDOMByDefault:v=!1,hasLeadFormImage:x=!1,isThankyouModalState:f=!1,isLocationPopup:b=!1,loading:y=!1,showCloseicons:k=!0,showTracking:j=!1}=e;return((0,r.useEffect)(()=>{let e=e=>{t&&"Escape"===e.key&&l()};return t&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,l]),!0===v)?(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)("div",{className:o()({[m().overlay]:!0,[m().showoverlay]:t,showClass:!0}),onClick:e=>{h&&(e.stopPropagation(),null==l||l())},role:"presentation",children:(0,n.jsx)("div",{className:o()({[m().modal]:!0,[m().modal_Gorp_or_Loan]:x&&!f,[m().showModal]:t,[p]:p,[m().fitcontent_minheight]:g}),role:"presentation",onClick:e=>{e.stopPropagation()},ref:a,children:(0,n.jsxs)("div",{className:o()({[_]:_}),children:[i,d?(0,n.jsx)(c.ImageComponent,{src:null==s?void 0:s.src,width:25,height:25,alt:"close",className:o()({[m().crossicon]:!0,[m().locationCtyPopup]:!0,[m().crossicon_Gorp_or_Loan]:x,ij_lead_close_button_clicked:!1}),onClick:l}):null]})})})}):(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)("div",{className:o()({[m().overlay]:!0,[m().showoverlay]:t,showClass:!0}),onClick:e=>{h&&(e.stopPropagation(),null==l||l())},role:"presentation",children:(0,n.jsx)("div",{className:o()({[m().modal]:!0,[m().modal_Gorp_or_Loan]:x&&!f,[m().showModal]:t,[p]:p,[m().fitcontent_minheight]:g}),role:"presentation",onClick:e=>{e.stopPropagation()},ref:a,children:(0,n.jsxs)("div",{className:o()({[_]:_}),children:[y?(0,n.jsx)(u,{}):i,d&&k?(0,n.jsx)(c.ImageComponent,{src:null==s?void 0:s.src,width:25,height:25,alt:"close",className:o()({[m().crossicon]:!0,[m().crossicon_Gorp_or_Loan]:x,[m
1().locationCtyPopup]:b,ij_lead_close_button_clicked:!1}),onClick:l}):null]})})}):null})});_.displayName="Modal"},76014:e=>{e.exports={recommended_card:"RecommendedCard_recommended_card__DpT5z",recommended_label:"RecommendedCard_recommended_label__cHlo7",checkbox_hidden:"RecommendedCard_checkbox_hidden__Asn5e",recommended_card_content:"RecommendedCard_recommended_card_content__Jv83R",recommended_card_img:"RecommendedCard_recommended_card_img__boPCm",recommended_brand:"RecommendedCard_recommended_brand__tlKZc",recommended_name:"RecommendedCard_recommended_name__UBGi_",recommended_price:"RecommendedCard_recommended_price__TGOr_"}},81196:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});let n={src:"/_next/static/media/check-icon.b9594514.webp",height:113,width:113,blurDataURL:"data:image/webp;base64,UklGRrQAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDoAAAABN6Agkg3qPX8hFJBUazUiIvA96wdFCYDGmsAG93tXBQ1gAzGBLKL/sdohbd5HDEUsRayPGGnzVjsAVlA4IFQAAACQAgCdASoIAAgAAkA4JagCdLoB+AEz/An708LwwAD5OZ56mz/c/1PIr0TSNE0otFdYtNovee2e3svRBlaS5TSD/zBJALnO+3b/5mkEgVOL1hp2AAA=",blurWidth:8,blurHeight:8}},83968:e=>{e.exports={leadFormPopWrapper:"LeadFormPop_leadFormPopWrapper__MW8ni",userImgTextWrp:"LeadFormPop_userImgTextWrp__XwbOz",title:"LeadFormPop_title__z3ep5",description:"LeadFormPop_description__kWsG3",offersButton:"LeadFormPop_offersButton__ATiwH",termsText:"LeadFormPop_termsText__UEABH",detectLocation:"LeadFormPop_detectLocation__XTbT_",successTextWrp:"LeadFormPop_successTextWrp__BiyQp"}},89848:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>ei});var n=t(95155),l=t(83900),o=t(22954);t(33262);var r=t(49226),i=t(81196),s=t(58174),c=t(17098),d=t(10575),m=t(72235),u=t(29790),_=t(259),p=t(67946),h=t(85203),g=t.n(h),v=t(12115),x=t(63958),f=t(24803),b=t(12664),y=t(56293),k=t(51259),j=t(16127),w=t.n(j);let C=e=>{let{checkIcon:a="",buttonText:t="",social_icons:l,modalContent:o="",onCompareClick:r,showImages:i=!0,hasLeadFormImage:c=!1,similarModels:m=[],setSimilarModels:h,app:j,loading:C,onClose:N,onBannerClick:I,bannerImage:T={mobile:"",desktop:"",mobile_link:"",desktop_link:""},lang:L="en"}=e,[F,S]=(0,v.useState)(!0),[A,E]=(0,v.useState)(0);(0,v.useEffect)(()=>()=>{null==h||h([])},[]);let{getCookie:P}=(0,_.A)(),R=(0,u.HM)(L);return(0,n.jsxs)("div",{className:g()({[w().thankyoucard_main]:!0,[w().thankyoucard_main_show_image_gorpForm]:i&&c}),children:[a?(0,n.jsx)(y.ImageComponent,{src:a,width:72,height:72,className:w().checkicon,alt:"Check Icon"}):null,(0,n.jsx)("h3",{children:R("THANK_YOU")}),(0,n.jsx)("p",{className:w().sub,children:o}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)(d.g,{href:null==T?void 0:T.desktop_link,onClick:()=>null==I?void 0:I(),children:(0,n.jsx)(y.ImageComponent,{src:null==T?void 0:T.desktop,alt:"Banner img",width:592,height:87,className:"sm:hidden"})}),(0,n.jsx)(d.g,{href:(null==T?void 0:T.mobile_link)||"/royal-enfield-bikes?utm_source=royal-enfield-campaign&utm_medium=banner_thank_popup",onClick:()=>null==I?void 0:I(),children:(0,n.jsx)(y.ImageComponent,{src:null==T?void 0:T.mobile,alt:" Banner img",width:328,height:143,className:"hidden sm:block w-full"})})]}),(0,n.jsx)("p",{className:w().subTitle,children:R("You may also be Interested in")}),(0,n.jsx)("span",{className:g()({[w().wrapper]:!0,[w().wrapper_align]:(null==m?void 0:m.length)<3}),children:(null==m?void 0:m.length)===0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:w().card,children:(0,n.jsx)(x.default,{width:100,height:100})}),(0,n.jsx)("div",{className:w().card,children:(0,n.jsx)(x.default,{width:100,height:100})}),(0,n.jsx)("div",{className:w().card,children:(0,n.jsx)(x.default,{width:100,height:100})})]}):null==m?void 0:m.map((e,a)=>{var t,l,o,r,i;let{lowestMinPrice:c,highestMinPrice:d}=(0,p.Pdz)(null==e?void 0:e.variants,e);return(0,n.jsxs)("div",{className:g()({[w().card]:!0,[w().active]:A===a}),children:[(0,n.jsx)(b.w,{checked:A===a,className:w().check,onChange:()=>{E(a)}}),(0,n.jsx)(y.ImageComponent,{src:"ij"===j?(null==e||null==(l=e.images)||null==(t=l[0])?void 0:t.url)||s.WOE:(null==e||null==(o=e.card_image)?void 0:o.url)||"https://images.tractorjunction.com/select_bike_7ddb63e2e4.webp?format=webp&width=98&height=71",width:134,height:71,alt:(null==e||null==(i=e.images)||null==(r=i[0])?void 0:r.alternativeText)||""}),(0,n.jsx)("p",{className:w().brand,children:e.brand.name}),(0,n.jsx)("p",{className:w().model,children:e.name}),(0,n.jsx)("p",{className:w().price,children:(0,p.y8z)(c,d)})]},null==e?void 0:e.id)})}),(0,n.jsxs)("div",{className:"flex pt-5 mx-auto w-100 justify-center",children:[(0,n.jsx)(b.
1w,{className:w().termscheck,checked:F,onChange:()=>S(!F)}),(0,n.jsxs)("p",{className:"ml-2",children:[R("INTERESTED_IN_OFFERS"),""]})]}),(0,n.jsxs)(f.Button,{isDisabled:(null==m?void 0:m.length)===0||!0===C,onClick:()=>null==r?void 0:r(A),children:[t," ",!0===C?"...":""]})]}):null,l&&(0,n.jsx)(k.X,{className:w().socialicons,data:l,title:"Please connect with us:",invert:!0})]})};var N=t(67909),I=t(42444);let T={src:"/_next/static/media/hero-bike.4072a1a2.png"};var L=t(1906),F=t(8760),S=t(37924),A=t(9457),E=t.n(A);let P=e=>{var a;let{label:t,showLabel:l=!1,value:o,type:r="text",onChange:i,required:s,error:c,...d}=e,m=(null==t||null==(a=t.replace(/\s+/g,"_"))?void 0:a.toLowerCase())||"input";return(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsxs)("div",{className:E().inputWrapper,children:[(0,n.jsx)("input",{type:r,id:m,className:E().input,value:o,onChange:i,autoComplete:"off",required:s,...d}),l&&(0,n.jsx)("label",{htmlFor:m,className:E().label,children:t})]}),c&&(0,n.jsx)("p",{className:"text-red-500 font-medium",children:c})]})};var R=t(94054),O=t(61243),W=t.n(O);let M=e=>{let{value:a,onChange:t,required:o,error:r,setErrors:i,setForm:c,isDetectLocationIsClicked:d}=e,[m,u]=(0,v.useState)(!1),_=(0,R.A)(a,600)||"",h=async()=>{try{let e=await fetch("".concat(s.Xlg).concat(_),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json());if((null==e?void 0:e.length)>0)return e;return i(e=>({...e,district:"No result found!"})),[]}catch(e){console.error(e,"Error, something went wrong")}};async function g(){if((null==_?void 0:_.length)>0)return await h()}let{data:x}=(0,l.I)(["locationData",_],g,{enabled:!!_&&_.trim().length>1,cacheTime:3e5,staleTime:6e4}),f=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,n.jsxs)("div",{className:W().wrapper,ref:f,children:[(0,n.jsx)(P,{label:"City",showLabel:!0,value:a,onChange:t,required:o,error:r,onFocus:()=>u(!0)}),m&&!d&&(null==_?void 0:_.length)>0&&(0,n.jsx)("ul",{className:W().dropdown,children:(null==x?void 0:x.length)>0&&(null==x?void 0:x.map((e,a)=>{var t,l,o,r,i;let s=(null==e||null==(t=e.district)?void 0:t.name)?null==e?void 0:e.name:"",d=(null==e||null==(l=e.district)?void 0:l.name)||(null==e?void 0:e.name),m=(null==e||null==(o=e.district)?void 0:o.slug)||(null==e?void 0:e.slug),_=null==e||null==(r=e.state)?void 0:r.name,h=null==e||null==(i=e.state)?void 0:i.slug,g=(null==e?void 0:e.pincode)||"";return(0,n.jsx)("li",{onClick:()=>{c(e=>({...e,district:""!==s?s:d,state:_,districtSlug:m,stateSlug:h})),u(!1)},className:W().item,children:(0,p._aE)(s,d,_,g)},a)}))})]})};var q=t(35270),B=t.n(q);function D(e){let{fieldType:a,prefilledValue:t,fieldName:l,isFieldRequired:o,placeholderText:r,iconUrl:i,fieldLabel:c,form:d,setForm:m,errors:u,setErrors:_,setIsDetectLocationIsClicked:p,isDetectLocationIsClicked:h}=e,g=(e,a,t)=>{(!t||"mobile"!==a||!e.target.value||t.test(e.target.value))&&("mobile"===a&&e.target.value.trim().length>10||(m({...d,[a]:e.target.value}),_(e=>({...e,[l]:""}))))};switch(a){case s.Ihd:let v,x,f;switch(t){case"text":v=d.name||"",x=e=>g(e,"name"),f=o;break;case"phone":v=d.mobile||"",x=e=>g(e,"mobile",/^[6-9][0-9]{0,9}$/),f=o;break;case"email":v=d.email||"",x=e=>g(e,"email"),f=o;break;default:return null}return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(P,{label:r,showLabel:!0,type:t,value:v,onChange:x,required:f,error:null==u?void 0:u[l]})});case s.x35:let b;return b=(null==d?void 0:d[l])||"",(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M,{required:o,type:"text",onChange:e=>{g(e,l),m(e=>({...e,state:""})),p(!1)},value:b,error:null==u?void 0:u[l],setErrors:_,setForm:m,isDetectLocationIsClicked:h}),(0,n.jsx)(S.A,{className:B().detectLocation,setForm:m,form:d,setIsDetectLocationIsClicked:p,setErrors:_,isErrorIsVisible:null==u?void 0:u[l]})]});default:return null}}var G=t(83968),U=t.n(G);let Y={name:"",state:"",district:"",mobile:"",districtSlug:""},V=e=>{var a;let{formData:t,otherProps:l,closeModal:i}=e,[m,u]=(0,v.useState)(0),[h,x]=(0,v.useState)(Y),[b,y]=(0,v.useState)({}),[k,j]=(0,v.useState)(!1),[w,C]=(0,v.useState)(!1),[N,T]=(0,v.useState)(["","","","","",""]),[L,S]=(0,v.useState)(!1),[A,E]=(0,v.useState)(!1),P=[s.$YA],R=null==t?void 0:t.Fields,O=[null==R?void 0:R.filter(e=>"mobile"===e.name),null==R?void 0:R.filter(e=>"mobile"!==e.name)],{setCookie:W,getCookie:M}=(0,_.A)(),q=(0,I.useRouter)(),{leadData:B,setLeadData:G}=(0,c.S)(),V=M("user_name"),z=M("user_mobile"),H=M("user_city"),J=M("user_state");(0,v.useEffect)(()=>{V&&x(e=>({...e,name:V})),z&&x(e=>({...e,mobile:z})),H&&x(e=>({...e,district:H})),J&&x(e=>({...e,state:J}))},[V,z,H,J]);let X=function(e){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t={};
1return e.forEach(e=>{let a=h[e.name],n="string"==typeof a?a.trim():a;e.isRequired&&!n?t[e.name]=e.errorMessage||"This field is required":"mobile"===e.name&&n&&!/^[6-9]\d{9}$/.test(n)?t[e.name]=e.validationMessage||"Invalid mobile number":"name"===e.name&&n&&!/^[a-zA-Z\s]+$/.test(n)?t[e.name]=e.validationMessage||"Name must contain only letters":"district"===e.name&&(h.district&&h.state||(t[e.name]="Please select a valid city from the list"))}),a&&y(t),0===Object.keys(t).length},Q=(0,I.usePathname)(),K=null==(a=(0,p.M5)(Q))?void 0:a.type,Z=async()=>{var e;let{ip:a,deviceType:n}=await fetch("/api/user-info").then(e=>e.json()),o=new Date(Date.now()+1296e6);h.name&&W("user_name",h.name,o),h.mobile&&W("user_mobile",h.mobile,o),h.state&&W("user_state",h.state,o),h.districtSlug&&W("user_district",h.districtSlug,o),h.district&&W("user_city",h.district,o);let r={},i={};for(let e in h)(null==h?void 0:h[e])!==""&&"districtSlug"!==e&&"stateSlug"!==e&&(r[e]=h[e]);for(let e in l)(null==l?void 0:l[e])!==""&&(i[e]=l[e]);let c=(null==i?void 0:i.brand)||(null==r?void 0:r.brand),d=(0,p.SnO)(null==c||null==(e=c.toLowerCase())?void 0:e.replaceAll("-"," "));r={...r,...l,brand:d,source:s.uK9,intent:t.title,page_url:Q,page_type:K,vehicle_category:null==B?void 0:B.classification,leadType:"GORP Pilot",ip:a,deviceType:n},await ee(r),(0,p.yoO)(null==l?void 0:l.make,null==l?void 0:l.formType)},$=()=>{G({...B,isThankyouModalState:!P.includes(null==B?void 0:B.formType),modal:!P.includes(null==B?void 0:B.formType),isOfferPopOpen:!1,explicitTitle:"",downloadUrl:B.downloadUrl}),x({...h,brand:""}),q.refresh(),(0,F.Ay)({action:"form submitted",category:(null==B?void 0:B.formType)===s.$YA?"upcoming lead generation":"lead generation",label:"lead form",meta:{formdata:null==t?void 0:t.slug,page:Q,formType:null==B?void 0:B.formType}})},ee=async e=>{await (0,r.xZG)(e).then(a=>{a.ok?($(),(0,r.f$8)(e),B.formType===s.$YA&&o.oR.success("Your Request has been submitted successfully. You will be notified on launch.")):((0,r.f$8)(e,!0),$())}).catch(e=>{console.error("Failed to make POST request:",e.status),b.api_error=(null==e?void 0:e.message)||"",y(b)})};(0,v.useEffect)(()=>{if(!h.mobile||A)return;let e=X(O[m],!1);!s.NEW&&0===m&&h.mobile&&e&&u(e=>e+1)},[h.mobile,m,s.NEW]);let ea=async()=>{if(!w)return C(!0),await (0,r.AJh)(h.mobile),!1;if(!L){let e=await (0,r.vJv)(h.mobile,null==N?void 0:N.join(""));if(null==e||!e.message)return o.oR.error("Invalid OTP"),!1;S(!0),C(!1)}return!0},et=async()=>{X(O[m])&&(0!==m||!s.NEW||await ea())&&(m===O.length-1?Z():u(e=>e+1))},en=M("utm_medium")||"";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:U().leadFormPopContent,children:[(0,n.jsx)("div",{className:U().userImgTextWrp,children:0===m?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"underline underline-offset-2 decoration-[#2970ff] text-[#2970ff] font-bold",children:["+91",null==h?void 0:h.mobile]}),(0,n.jsx)("p",{className:"cursor-pointer text-[#2970ff]",onClick:()=>{E(!0),u(0)},children:"Edit"})]})}),(0,n.jsxs)("h4",{className:U().title,children:["View ",(0,p.Ew6)()," Offers\xa0",null==l?void 0:l.brand," ",null==l?void 0:l.model]}),(0,n.jsx)("p",{className:U().description,children:"Enter details to get the personalized offers near you"}),(0,n.jsxs)("form",{className:U().form,children:[O[m].map(e=>(0,n.jsx)(D,{fieldType:e.type,prefilledValue:e.prefilledValues,fieldName:e.name,isFieldRequired:e.isRequired,placeholderText:e.placeholderText,iconUrl:e.iconUrl,fieldLabel:e.label,form:h,setForm:x,errors:b,setErrors:y,setIsDetectLocationIsClicked:j,isDetectLocationIsClicked:k},e.name)),(0,n.jsxs)(f.Button,{variant:"primary",className:g()({lead_by_google_ads:"googleads"===en&&1===m,[U().offersButton]:!0}),onClick:()=>et(),children:["Check ",(0,p.Ew6)()," Offers"]})]}),(0,n.jsxs)("p",{className:U().termsText,children:["By proceeding, you confirm and agree to the"," ",(0,n.jsxs)(d.g,{href:"/privacy-policy",onClick:()=>i(),children:["Privacy Policy"," "]})]})]})})};var z=t(24360),H=t.n(z);let J=e=>{let{otp:a,setOtp:t,handleResendOtp:l,isNew:o=!1,timer:r}=e,i=(0,v.useRef)([]);return(0,n.jsxs)("div",{className:g()({[H().newOtpInputWRap]:o}),children:[o&&(0,n.jsx)("span",{className:H().label,children:"Enter Your OTP"}
1),(0,n.jsxs)("div",{className:H().inputGroup,children:[!o&&(0,n.jsx)("span",{className:H().label,children:"Enter Your OTP"}),a.map((e,l)=>(0,n.jsx)("input",{ref:e=>{e&&(i.current[l]=e)},type:"text",inputMode:"numeric",maxLength:1,value:e,onChange:e=>((e,n)=>{if(!/^\d?$/.test(e))return;let l=[...a];if(l[n]=e,t(l),e&&n<a.length-1){var o;null==(o=i.current[n+1])||o.focus()}})(e.target.value,l),onKeyDown:e=>((e,t)=>{if("Backspace"===e.key&&!a[t]&&t>0){var n;null==(n=i.current[t-1])||n.focus()}})(e,l),className:H().otpInput},"".concat(l,"otp")))]}),(0,n.jsxs)("div",{className:H().resendWrapper,children:[(0,n.jsx)("span",{className:H().notRecivedOTP,children:"Didnât receive the OTP?"}),(0,n.jsxs)("button",{onClick:l,className:H().resendBtn,disabled:r>0,style:{opacity:r>0?.5:1},children:[(0,n.jsx)(y.ImageComponent,{src:"https://static-asset.tractorjunction.com/bj/otp_refresh.svg",height:16,width:16,alt:"refresh icon"}),r>0?" Resend in ".concat(r,"s"):" Resend"]})]})]})};function X(e){let{crmsLeadId:a,bBJLeadId:t}=e,[l,o]=(0,v.useState)(["","","","","",""]),[i,s]=(0,v.useState)(!1),{leadData:d,setLeadData:m}=(0,c.S)(),{getCookie:u}=(0,_.A)(),p=u("user_mobile"),[h,g]=(0,v.useState)(60);(0,v.useEffect)(()=>{if("true"===sessionStorage.getItem("otpVerified"))return void m({...d,isOtpVerificationRequired:!1,isThankyouModalState:!0});p&&(0,r.Ixp)(p)},[p]),(0,v.useEffect)(()=>{if(0===h)return;let e=setInterval(()=>{g(e=>e-1)},1e3);return()=>clearInterval(e)},[h]);let x=async()=>{let e=l.join("");if(6!==e.length)return void alert("Please enter a valid 6-digit OTP");s(!0);try{let n=await (0,r.RYD)(p,e);200===n.status?(sessionStorage.setItem("otpVerified","true"),m({...d,isOtpVerificationRequired:!1,isThankyouModalState:!0,isOfferPopOpen:!1,modal:!0}),(0,r.CEI)(a),(0,r._ih)(t)):alert("Invalid OTP. Please try again.")}catch(e){console.error("Error verifying OTP:",e)}finally{s(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{isNew:!0,otp:l,setOtp:o,timer:h,handleResendOtp:()=>{h>0||((0,r.Ixp)(p),g(60))}}),(0,n.jsx)(f.Button,{onClick:x,disabled:i,children:i?"Verifying...":"Submit"})]})}var Q=t(6095),K=t(76014),Z=t.n(K);function $(e){let{className:a,index:t,price:l,brandName:o,modelName:r,image:i,checked:s,setChecked:c}=e;return(0,n.jsx)("div",{className:"".concat(Z().recommended_card," ").concat(a),children:(0,n.jsxs)("label",{className:Z().recommended_label,children:[(0,n.jsx)("input",{type:"checkbox",className:Z().checkbox_hidden,checked:s===t,onChange:()=>{c(t)}}),(0,n.jsxs)("span",{className:Z().recommended_card_content,children:[(0,n.jsx)("span",{className:Z().recommended_card_img,children:(0,n.jsx)(y.ImageComponent,{width:175,height:90,src:i,alt:r,className:Z().recommended_image})}),(0,n.jsx)("span",{className:Z().recommended_brand,children:o}),(0,n.jsx)("span",{className:Z().recommended_name,children:r}),(0,n.jsx)("p",{className:Z().recommended_price,children:l})]})]})})}var ee=t(31475),ea=t.n(ee);function et(e){let{similarModels:a,buttonClick:t,setSimilarModels:l,closeModal:o,otherProps:r,bannerImage:i}=e,[c,m]=(0,v.useState)(0);(0,v.useEffect)(()=>()=>{null==l||l([])},[]);let{getCookie:u}=(0,_.A)(),h=u("user_name"),b=(0,Q.A)(770);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ea().successTextWrp,children:[(0,n.jsx)(y.ImageComponent,{src:"".concat(s.Yx1,"/success_icon.svg"),alt:"User Icon",width:38,height:18,className:ea().userImg}),"Hi ",h," Thanks for your Interest in ",null==r?void 0:r.brand," ",null==r?void 0:r.model,"."]}),(0,n.jsx)("div",{className:ea().message_wrapper,children:(0,n.jsxs)("div",{className:ea().message_box,children:[(0,n.jsx)("p",{className:ea().message_text,children:"Our team is reviewing your request and will share the price and offers with you shortly."}),(0,n.jsx)("p",{className:g()(ea().message_text,"inline mr-2"),children:"Contact our Support Team:"}),(0,n.jsx)("span",{className:ea().support_number,children:s.cfC})]})}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(d.g,{href:b?null==i?void 0:i.mobile_link:null==i?void 0:i.desktop_link,onClick:()=>o(),children:(0,n.jsx)(y.ImageComponent,{src:b?null==i?void 0:i.mobile:null==i?void 0:i.desktop,alt:"Banner img",width:b?328:592,height:b?143:87,className:"sm:w-full sm:h-[100px] sm:object-cover"})})}),(0,n.jsx)("h4",{className:ea().recommended_heading,children:"You may also like"}),(0,n.jsx)("div",{className:g()({[ea().recommended_grid]:!0,[ea().loadingGrid]:(null==a?void 0:a.length)===0}),children:(null==a?void 0:a.length)===0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ea().card,children:(0,n.jsx)(x.default,{height:177})}),(0,n.jsx)("div",{className:ea().card,children:(0,n.jsx)(x.default,{height:177})}),(0,n.jsx)("div",{className:ea().card,children:(0,n.jsx)(x.default,{height:177})})]}):null==a?void 0:a.map((e,a)=>{var t;let{lowestMinPrice:l,highestMinPrice:o}=(0,p.Pdz)(null==e?void 0:e.variants,e);return(0,n.jsx)($,{className:ea().recommended_card_item,index:a,price:(0,p.y8z)(l,o),brandName:e.brand.name,modelName:e.name,image:(null==e||null==(t=e.card_image)?void 0:t.url)||"".concat("https://images.tractorjunction.com","/select_bike_7ddb63e2e4.webp?format=webp&width=98&height=71"),checked:c,setChecked:m},a)})}),(0,n.jsx)(f.Button,{variant:"primary",className:ea().receive_button,onClick:()=>null==t?void 0:t(c),children:"Receive Similar Offers"}),(0,n.jsxs)("p",{className:ea().termsText,children:["By proceeding, you confirm and agree to the"," ",(0,n.jsxs)(d.g,{href:"/privacy-policy",onClick:()=>o(),children:["Privacy Policy"," "]})]})]})}var en=t(69271),el=t.n(en);let eo=(0,N.default)(()=>Promise.all([t.e(3465),t.e(2185),t.e(380),t.e(5555)]).then(t.bind(t,380)).then(e=>({default:e.GenerateFormFields})),{loadableGenerated:{webpack:()=>[380]}}),er=e=>{var a,t,l;let{leadData:o,setLeadData:i}=(0,c.S)(),[_,h]=(0,v.useState)([]),[x,f]=(0,v.useState)(!1),[b,y]=(0,v.useState)(""),[k,j]=(0,v.useState)(""),w=(0,I.useRouter)(),{brandName:N,isThankyouModalState:F,modal:S,modelName:A,leadType:E,title:P,formType:R,explicitTitle:O,form_name:W,headingPrefix:M,modelSlug:q,newFormFlow:B,isOtpVerificationRequired:D,downloadUrl:G}=o,U=(null==e?void 0:e.lang)||"en",Y=(0,p.RaY)(q),z=(null==e||null==(t=e.formData)||null==(a=t.results)?void 0:a[0])||null,H=()=>{i({...o,modal:!1,isThankyouModalState:!1,explicitTitle:""})};async function J(a){let t="/api/get-similar-models?modelslug=".concat(a,"&locale=").concat((null==e?void 0:e.lang)||"en"),n=await fetch(t);return await n.json()}function Q(a){var t;f(!0),w.push("".concat((null==e?void 0:e.lang)==="hi"?"/".concat(null==e?void 0:e.lang):"","/").concat(null==_||null==(t=_[a])?void 0:t.full_slug)),f(!1),H()}(0,v.useEffect)(()=>{!0===F&&q&&(async()=>{try{var e,a,t,n,l;let o,i=null===L.TC||void 0===L.TC?void 0:L.TC.includes(q),s=i?await (0,r.vKi)(U):await (0,r.t06)(Y,U),c=await J(q);o=i&&(null==s||null==(e=s.results)?void 0:e.length)||(null==s||null==(a=s.results)?void 0:a.length)&&(!(null==c?void 0:c.length)||(null==s||null==(t=s.results)?void 0:t.length)===3)?null==s?void 0:s.results:(null==s||null==(n=s.results)?void 0:n.length)&&(null==c?void 0:c.length)&&(null==s||null==(l=s.results)?void 0:l.length)<3?[...null==s?void 0:s.results,...c]:c;let d="electric-scooters/river/indie"===q,m=(0,p.eLR)({riverIndie:L.oX[U],similarModels:o,classification:Y,isselectedModelIsRiverIndie:d});h(m)}catch(e){console.error("Failed to fetch similar models:",e)}})()},[F]);let K=(0,u.HM)(U);if(!G&&(0,p._5l)(P,R)&&!(0,p.zoK)(P,R)&&!F&&!D)return(0,n.jsx)(m.a,{className:el().enquiry_modal_main,isOpen:!0===S,setOpen:H,fitContentHeight:!0,children:(0,n.jsx)(C,{CardImages:null==T?void 0:T.src,buttonText:K("Compare With Similar Bikes"),social_icons:e.social_icons,checkIcon:e.checkIcon||"",onCompareClick:H,modalContent:K("OUR_TEAM_WILL_REACH_TO_YOU"),showImages:!1,onBannerClick:H,lang:U})});let Z={model:A,make:P,brand:N,formType:R,platform:"Website"};(null==e?void 0:e.showImages)&&(Z={...Z,utm_campaign:"landing-page"}),W&&(Z={...Z,form_name:W});let $=(0,p.gek)(E),ee=null==Y||null==(l=Y.toLowerCase())?void 0:l.includes("bike"),ea={mobile:ee?"".concat(s.Yx1,"/royal_enfield_mobile.webp"):"".concat("https://images.tractorjunction.com","/mobile_banner_6d287ac377.webp"),desktop:ee?"".concat(s.Yx1,"/royal_enfield_desktop.webp"):"".concat("https://images.tractorjunction.com","/Desktop_banner_1_c063454be2.webp"),mobile_link:ee?"/royal-enfield-bike
1s?utm_source=royal-enfield-campaign&utm_medium=banner_thank_popup":"/electric-scooters/ola/s1-x?utm_source=ola_campaign&utm_medium=banner_thank_popup",desktop_link:ee?"/royal-enfield-bikes?utm_source=royal-enfield-campaign&utm_medium=banner_thank_popup":"/electric-scooters/ola/s1-x?utm_source=ola_campaign&utm_medium=banner_thank_popup"};return(0,n.jsx)(n.Fragment,{children:$?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(m.a,{className:g()({[el().enquiry_modal_main]:!0,[el().enquiry_modal_main_Gorp_or_Loan]:!0,[el().leadFormPopWrapper]:B}),hasLeadFormImage:$,isOpen:!0===S,isThankyouModalState:F,setOpen:()=>{i({...o,modal:!1,isThankyouModalState:!1,brandName:"",modelName:"",title:"",explicitTitle:"",headingPrefix:"",isOtpVerificationRequired:!1}),"GORP"===E&&(0,p.V2s)(s.vLw,P)},fitContentHeight:null==e?void 0:e.showImages,children:[e.formData&&!F&&(B?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(V,{formData:z,otherProps:Z,closeModal:H})}):(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:el().backImageSection,style:{backgroundImage:'url("'.concat(null==e?void 0:e.currentFormBanner,'")')}}),(0,n.jsxs)("div",{className:g()({[el().form_section]:!0,[el().form_section_Gorp_or_Loan]:!0}),children:[(0,n.jsxs)("p",{className:el().modal_title_Gorp_or_Loan,children:[$?"".concat(M," "):"",P]}),(null==o?void 0:o.isOtpVerificationRequired)?(0,n.jsx)(X,{crmsLeadId:b,bBJLeadId:k}):(0,n.jsx)(eo,{formData:z,brandList:e.brandList,otherProps:Z,showHeading:!1,className:g()({[el().leadFormWrp]:!0,[el().leadFormWrp_Gorp_or_Loan]:!0}),hasLeadFormImage:$,setCrmsLeadId:y,setBJLeadId:j,lang:U}),(0,n.jsxs)("p",{className:$?el().privacy_text_dealer:el().privacy_text,children:[K("By proceeding, you agree to our"),(0,n.jsx)(d.g,{className:el().privacy_link,href:"/privacy-policy",onClick:()=>H(),children:K("Privacy Policy")}),K("PRIVACY_POLICY_LAST_PART")]})]})]})),F?B?(0,n.jsx)(et,{similarModels:null==_?void 0:_.slice(0,3),setSimilarModels:h,buttonClick:Q,closeModal:H,otherProps:Z,bannerImage:ea}):(0,n.jsx)(C,{CardImages:"https://images.tractorjunction.com/tvs_raider_125_4_2617c7efc2.webp",buttonText:K("Continue Browsing"),checkIcon:e.checkIcon||"",onCompareClick:Q,modalContent:K("Our_team_will_get_intouch"),showImages:!(null==e?void 0:e.showImages),hasLeadFormImage:$,similarModels:null==_?void 0:_.slice(0,3),setSimilarModels:h,loading:x,onBannerClick:H,bannerImage:ea,lang:U}):null]})}):(0,n.jsxs)(m.a,{className:el().enquiry_modal_main,isOpen:!0===S,setOpen:()=>{i({...o,modal:!1,isThankyouModalState:!1,brandName:"",modelName:"",title:"",explicitTitle:"",headingPrefix:""}),"GORP"===E&&(0,p.V2s)(s.vLw,P)},fitContentHeight:null==e?void 0:e.showImages,children:[e.formData&&!F?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:el().modal_title,children:O||P}),(0,n.jsx)("p",{className:"mb-5",children:K("PROVIDE_CONTACT_DETAILS")}),(0,n.jsx)(eo,{formData:z,brandList:e.brandList,otherProps:Z,showHeading:!1,className:el().leadFormWrp,lang:U}),(0,n.jsxs)("p",{className:el().privacy_text,children:["By proceeding, you confirm and agree to the ",(0,n.jsx)(d.g,{className:el().privacy_link,href:"/privacy-policy",onClick:()=>H(),children:"Privacy Policy "})]})]}):null,F?(0,n.jsx)(C,{CardImages:null==T?void 0:T.src,buttonText:K("Compare With Similar Bikes"),social_icons:e.social_icons,checkIcon:e.checkIcon||"",onCompareClick:H,modalContent:K("Our_team_will_get_intouch"),showImages:!(null==e?void 0:e.showImages),hasLeadFormImage:$,onBannerClick:H,bannerImage:ea,lang:U}):null]})})},ei=function(e){let{social_icons:a,showImages:t=!1,lang:d="en"}=e,{data:m}=(0,l.I)(["getBrandListingdata"],r.wVO,{staleTime:2e5}),{data:u}=(0,l.I)(["getFormBannersdata"],r.iAx,{staleTime:2e5}),{leadData:_}=(0,c.S)(),p=null==_?void 0:_.formType,h=null==_?void 0:_.newFormFlow,g=null==_?void 0:_.headingPrefix,v=(e=>{var a,t,n;switch(!0){case null==e?void 0:e.includes("electric-scooters"):return null==u||null==(a=u.electric_scooter_form_image)?void 0:a.url;case null==e?void 0:e.includes("electric-bikes"):return null==u||null==(t=u.electric_scooter_form_image)?void 0:t.url;case null==e?void 0:e.includes("scooters"):return null==u?void 0:u.scooter_form_image.url;case null==e?void 0:e.includes("bikes"):return null==u||null==(n=u.bike_form_image)?void 0:n.url;default:return s.qgL}})((null==_?void 0:_.modelSlug)||""),{data:x,isError:f}=(0,l.I)(["formData",p,h],async()=>{switch(p){case s.emb:return(0,r.tgI)("form-dealer-enquiry-form");case s.F_e:return h?(0,r.tgI)("form-on-road-enquiry-pilot"):(0,r.tgI)("form-on-road-enquiry");case s.sh0:case s.Jyi:case s.$YA:case s.pXn:case s.rCq:return(0,r.tgI)("form-on-road-enquiry");default:return null}},{staleTime:2e5});return f?(0,n.jsx)("div",{children:"Error loading data"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.N9,{}),(0,n.jsx)(er,{formData:x,brandList:m,social_icons:a,checkIcon:null===i.A||void 0===i.A?void 0:i.A.src,showImages:t,headingPrefix:g,currentFormBanner:v,lang:d||"en"})]})}}}]);
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.