(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[78570,3022,79507,65128],{74049:function(e,t,n){"use strict";var o=n(36257);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},40507:function(e,t,n){e.exports=n(74049)()},36257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4430:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t{const t=e%3600,n=t%60;return{minutes:Math.floor(t/60),seconds:Math.ceil(n)}},i=(e=!1,t,n)=>{let o={};o=e?Object.assign({pageType:n.pageType,assetPath:n.assetPath,pagePath:n.pagePath,resPath:n.resPath,showMoreFlag:!0,pageTypeTagId:n.pageTypeTagId},t):Object.assign({pageType:n.pageType,assetPath:n.assetPath,pagePath:n.pagePath,resPath:n.resPath,pageTypeTagId:n.pageTypeTagId},t),n.allYearFlag&&"all"===t.yearFilter&&(o=Object.assign(Object.assign({},o),{allYearFlag:!0}));const i=Object.values(o),a=Object.keys(o);let r="?";return i.forEach(((e,t)=>{r+=0===t?`${a[t]}=${e}`:`&${a[t]}=${e}`})),r}},45889:function(e,t,n){"use strict";n.r(t);var o=n(50959),i=n(2463);t.default=e=>{(0,o.useEffect)((()=>{e?!document.body.classList.contains("disable-scroll")&&document.body.classList.add("disable-scroll"):!e&&document.body.classList.contains("disable-scroll")&&(document.body.classList.remove("disable-scroll"),i.au&&window.scrollTo(0,0))}),[e])}},68203:function(e,t,n){"use strict";n.r(t);var o=n(11527),i=n(85254),a=n(50959),r=n(78664),s=n(97650),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};const c=a.memo((e=>{const[t,n]=(0,a.useState)("");return(0,a.useEffect)((()=>{t||l(void 0,void 0,void 0,(function*(){try{const{data:e}=yield i.default.get("/bin/googleinvisiblecaptchakey.json");n(e.GOOGLE_INVISIBLE_RECAPTCHA_KEY)}catch(e){n(s.rN)}}))}),[]),t?(0,o.jsx)(r.default,{onResolved:e.resolved,ref:e.forwardedRef,sitekey:t},void 0):null}));t.default=c},92082:function(e,t,n){"use strict";n.d(t,{Q4:function(){return s},VH:function(){return l},X2:function(){return u},Zp:function(){return r},e$:function(){return a},qP:function(){return c}});var o=n(55381),i=n(49995);const a=(e,t,n)=>{var o,i;let a="";const r=null==t?void 0:t.filter((t=>(null==t?void 0:t.key)===e));return a=(null==r?void 0:r.length)?"empty"===n?null===(o=r[0])||void 0===o?void 0:o.empty:null===(i=r[0])||void 0===i?void 0:i.invalid:"",a},r=(e,t)=>{const n={component:"login_popup",event_click:"icon_click",target:"login_popup_icon",cta_text:e.trim(),sec_title:t};(0,i.Z)(n)},s=(e,t)=>{const n={component:"login_popup",event_click:"button_click",target:"login_popup_submit_cta",cta_text:e.trim(),sec_title:t};(0,i.Z)(n)},l=(e,t)=>{const n={component:"login_popup",event_click:"link_click",target:"login_popup_link_cta",cta_text:e.trim(),sec_title:t};(0,i.Z)(n)},c=(e,t)=>{const n={component:"login_popup",event:"bfl_piifieldTiming",eventType:"NA",element:"login_popup",form_name:"PL form",field_name:"Employment Type",field_value:null==e?void 0:e.trim(),sec_title:t};(0,o.a)(n)},u=(e,t,n,i,a)=>{const r={component:"login_popup",event:"bfl_piifieldTiming",eventType:"NA",element:"login_popup",form_name:"PL form",sec_title:e,field_name:t,field_value:null!=a?a:"",submission_status:n?"Fail":"Success",validation_error:n?i:""};(0,o.a)(r)}},63402:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var o=n(11527),i=n(48387),a=n(18100),r=n(98883),s=n(68203),l=n(92082),c=n(97650),u=n(50959),d=n(27789),p=n(31477),f=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var m=({counterTime:e,OTPData:t,submitOTPResetHandler:n,attemptsCount:r,showNoOfAttempts:s,error:c})=>{const m=(0,d.T)(),[[v,g],_]=(0,u.useState)([e.minutes,e.seconds]),[b,h]=(0,u.useState)(!0);return(0,u.useEffect)((()=>{const e=setInterval((()=>{0===v&&0===g||(0===v&&1===g?(_([v,g-1]),h(!1)):_(0===g?[v-1,59]:[v,g-1]))}),1e3);return()=>{clearInterval(e)}})),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",Object.assign({className:"offer-login-otp-modal__otp__resend-box"},{children:[(null==c?void 0:c.message)?(0,o.jsx)("span",Object.assign({className:"offer-login-otp-modal__otp__resend-box__expired"},{children:(0,p.ux)(c,t)}),void 0):null,(0,o.jsx)("button",Object.assign({type:"button",disabled:!!b,onClick:()=>f(void 0,void 0,void 0,(function*(){const o=yield(0,p.gP)();(0,l.VH)(`${null==t?void 0:t.resendOtpText}`,`${null==t?void 0:t.OTPTitleText}`);const r=document.querySelector('[data-component="OfferLoginModal"]')?document.querySelector('[data-component="OfferLoginModal"]').getAttribute("data-component-data"):null,s=r?JSON.parse(r):null,c=(null==s?void 0:s.hideFirstName)?{mobileNo:o.mobileNo}:{mobileNo:o.mobileNo,fullName:o.fullName};m((0,i._0)(c)),m({type:a.D$}),n(),h(!0),_([+e.minutes,+e.seconds])})),className:"offer-login-otp-modal__otp__resend-box__link "+(0!==g||0!==v?"disabled":"")},{children:null==t?void 0:t.resendOtpText}),void 0)," ",null==t?void 0:t.inText," "]}),void 0),(0,o.jsxs)("div",Object.assign({className:"offer-login-otp-modal__otp__attempt-box"},{children:[(0,o.jsx)(o.Fragment,{children:s?(0,o.jsxs)(o.Fragment,{children:[r," ",t.attemptsText," |"]},void 0):""},void 0),` ${v.toString().padStart(2,"0")}:${g.toString().padStart(2,"0")}`," ",null==t?void 0:t.secText]}),void 0)]},void 0)},v=n(47430),g=n(75936),_=n(68648),b=n(45889),h=n(74492);var y=n(65124),T=n(2463),O=n(49995),x=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var w=e=>{const t=(0,d.T)(),[n,o]=(0,u.useState)(!1),{data:i,error:r,loading:s}=(0,d.C)((e=>e.validateOTPReducer)),{loginOtpType:c}=(0,d.C)((e=>e.loginModalReducer)),{isOpen:f}=(0,d.C)((e=>e.otpModalReducer));let{mobileNo:m,requestId:w}=(0,d.C)((e=>e.otpDetailsReducer));const{isPerpetuated:N}=(0,d.C)((e=>e.isUserPerpetuatedReducer)),[j]=(0,u.useState)((()=>(e=>{const t=e?JSON.parse(e):null;return{imgURL:(null==t?void 0:t.imgURL)?t.imgURL:"",OTPTitleText:(null==t?void 0:t.OTPTitleText)?t.OTPTitleText:"",OTPDescriptionText:(null==t?void 0:t.OTPDescriptionText)?t.OTPDescriptionText:"",changeMobileText:(null==t?void 0:t.changeMobileText)?t.changeMobileText:"",enterOTPText:(null==t?void 0:t.enterOTPText)?t.enterOTPText:"",resendOtpText:(null==t?void 0:t.resendOtpText)?t.resendOtpText:"",resendOTPTime:(null==t?void 0:t.resendOTPTime)?+t.resendOTPTime:0,attemptsText:(null==t?void 0:t.attemptsText)?t.attemptsText:"",secText:(null==t?void 0:t.secText)?t.secText:"",submitBtnText:(null==t?void 0:t.submitBtnText)?t.submitBtnText:"",isTncChecked:(null==t?void 0:t.isTncChecked)?t.isTncChecked:"",termsErrorText:(0,h.Qi)(null==t?void 0:t.termsErrorText,null==t?void 0:t.termsErrorText,""),tcText:(null==t?void 0:t.tcText)?t.tcText:"",offersRedirectURL:(null==t?void 0:t.offersRedirectURL)?t.offersRedirectURL:"",errorMessages:(null==t?void 0:t.errorMessages)?t.errorMessages:[]}})(e))),[P,R]=(0,u.useState)(0),[k,A]=(0,u.useState)(null),[C,L]=(0,u.useState)(!1),S=(0,u.useRef)(null),E=(0,u.useRef)(null),I=(0,u.useRef)(null),D=(0,u.useRef)(null),[U,H]=(0,u.useState)({inputOtp0:"",inputOtp1:"",inputOtp2:"",inputOtp3:"",inputOtp4:"",inputOtp5:""}),[M,$]=(0,u.useState)(!1);(0,b.default)(f);const F=e=>{const t=e.split(""),n={inputOtp0:t[0],inputOtp1:t[1],inputOtp2:t[2],inputOtp3:t[3],inputOtp4:t[4],inputOtp5:t[5]};H(n),B(D,n)};class q extends Error{}const B=(e,i=void 0)=>x(void 0,void 0,void 0,(function*(){i||(i=U);try{if((0,l.Q4)(`${null==j?void 0:j.submitBtnText}`,`${null==j?void 0:j.OTPTitleText}`),!n){if(o(!0),!m||!w){const e=yield(0,p.gP)();m=e.mobileNo,w=e.requestId}if(!m||!w)throw new q(`mobileNo or requestId not found ${JSON.stringify({mobileNo:m,requestId:w})}`);try{e.current&&e.current.execute()}catch(e){(0,g.ie)(e.toString())}sessionStorage.setItem("showDynamicOffer","true"),(0,p.e8)("_showOfferSelection"),t((0,_.AK)({otp:Object.values(i).join("").trim(),requestId:w,mobileNo:m,custFlag:"",authType:"I"}))}}catch(e){e instanceof q&&(t({type:a.nI,payload:{errorType:"otp",statusCode:91,message:"Please request OTP again"}}),(0,g.ie)(e,{mobileNo:m,requestId:w}))}finally{o(!1)}}));return(0,u.useEffect)((()=>{H({inputOtp0:"",inputOtp1:"",inputOtp2:"",inputOtp3:"",inputOtp4:"",inputOtp5:""});x(void 0,void 0,void 0,(function*(){const{mobileNo:e}=yield(0,p.gP)();A(e)})),f&&S.current&&S.current.focus(),f&&(t({type:a.D$}),N&&setTimeout((()=>{const e=[...Array.isArray(window.dataLayer)?window.dataLayer:[]].reverse().find((e=>"click"===e.event&&"application_id"in e&&"cta_text"in e));(0,O.Z)({component:(null==e?void 0:e.component)||"",element:"login_popup_view",event:(null==e?void 0:e.event)||"",sec_title:null==j?void 0:j.OTPTitleText,cta_text:(null==e?void 0:e.cta_text)||""})}),200))}),[f]),(0,u.useEffect)((()=>{Object.keys(U).filter((e=>!U[e])).length?$(!1):$(!0)}),[U]),(0,u.useEffect)((()=>{var e;98===(null==r?void 0:r.statusCode)&&(R(+(null===(e=null==r?void 0:r.data)||void 0===e?void 0:e.remainingAttempts)),!C&&L(!0));x(void 0,void 0,void 0,(function*(){(yield(0,y.A)())&&T.Ee&&98===(null==r?void 0:r.statusCode)&&(null===navigator||void 0===navigator||navigator.vibrate([200,200]))}))}),[r]),(0,u.useEffect)((()=>{if("OTPCredential"in window){const e=new AbortController;I.current&&I.current.addEventListener("submit",(()=>{e.abort()})),navigator.credentials.get({otp:{transport:["sms"]},signal:e.signal}).then((e=>{F(e.code),E.current.focus()})).catch((e=>{(0,g.ie)(e,{errorType:"OTP Autofill",componentName:"OfferOTPModal"})}))}}),[I]),{OffersOTPData:j,handleInputChange:e=>{const{value:t}=e.target;/[^0-9]/.test(t)||(H((n=>Object.assign(Object.assign({},n),{[`inputOtp${e.target.dataset.index}`]:t}))),6===t.length&&(F(t),E.current.focus()))},onKeyDownHandler:e=>{const t=e.target,n=+t.dataset.index;"Backspace"===e.key?0===U[`inputOtp${n}`].length&&n>0&&t.form.elements[n-1].focus():/[0-9]/.test(e.key)?0!==U[`inputOtp${n}`].length&&n<5&&(t.form.elements[n+1].value="",t.form.elements[n+1].focus()):"ArrowLeft"===e.key?(e.preventDefault(),t.form.elements[n-1>0?n-1:0].setSelectionRange(1,1),t.form.elements[n-1>0?n-1:0].focus()):"ArrowRight"===e.key&&n<5&&(e.preventDefault(),t.form.elements[n+1].setSelectionRange(1,1),t.form.elements[n+1].focus())},onClickHandler:e=>{e.target.setSelectionRange(1,1)},onFormSubmit:e=>x(void 0,void 0,void 0,(function*(){yield B(e)})),otpInputs:U,otpData:i,error:r,isOpen:f,loginOtpType:c,dispatch:t,isOTPfilled:M,submitOTPResetHandler:()=>{H({inputOtp0:"",inputOtp1:"",inputOtp2:"",inputOtp3:"",inputOtp4:"",inputOtp5:""}),$(!1)},recaptchResolved:()=>{},userMobileNo:k,attemptsCounter:P,showNoOfAttempts:C,setShowNoOfAttempts:L,otpFirstDigitRef:S,otpLastDigitRef:E,otpFormRef:I,refRecaptcha:D,onPasteHandler:e=>{e.preventDefault();const t=e.clipboardData.getData("text");6===t.length&&/[0-9]{6}/.test(t)&&(F(t),E.current.focus())},onBeforeInputHandler:e=>{6===e.data.length&&(F(e.data),E.current.focus())},loading:s,isReqInProgress:n,onFocusHandler:()=>{var e;v.tq&&(null===(e=document.querySelector(".offer-login-otp-modal__otp__cta-box"))||void 0===e||e.classList.add("custom-margin"))}}},N=n(35887);var j=e=>{const{OffersOTPData:t,handleInputChange:n,onFormSubmit:u,onKeyDownHandler:d,onClickHandler:p,otpInputs:f,error:v,otpData:g,isOpen:_,loginOtpType:b,dispatch:h,isOTPfilled:y,submitOTPResetHandler:O,recaptchResolved:x,userMobileNo:j,attemptsCounter:P,showNoOfAttempts:R,setShowNoOfAttempts:k,otpFirstDigitRef:A,otpLastDigitRef:C,otpFormRef:L,refRecaptcha:S,onPasteHandler:E,onBeforeInputHandler:I,loading:D,isReqInProgress:U,onFocusHandler:H}=w(e.componentData),M=()=>{(0,l.Zp)("close_icon",null==t?void 0:t.OTPTitleText),h({type:a.vI}),(null==t?void 0:t.offersRedirectURL)&&window.location.assign(null==t?void 0:t.offersRedirectURL);const e=document.querySelector(".miscellaneous-hamburger-menu");(null==e?void 0:e.classList.contains("visibility-hidden"))&&e.classList.remove("visibility-hidden")};return(0,o.jsx)(o.Fragment,{children:_?(0,o.jsxs)("div",Object.assign({className:"modal offer-login-otp-modal offer-login-otp-modal--otp modal--show",role:"dialog",onPaste:E},{children:[b!==c.kQ.WITHOUT_CLOSE_BUTTON?(0,o.jsx)("div",{className:"modal__overlay",onClick:M},void 0):(0,o.jsx)("div",{className:"modal__overlay"},void 0),(0,o.jsx)("div",Object.assign({className:"modal__dialog modal__dialog--center",role:"document"},{children:(0,o.jsx)("div",Object.assign({className:"modal__content"},{children:(0,o.jsx)("div",Object.assign({className:"modal__body"},{children:(0,o.jsxs)("div",Object.assign({className:"offer-login-otp-modal__otp"},{children:[b!==c.kQ.WITHOUT_CLOSE_BUTTON?(0,o.jsx)("button",Object.assign({onClick:M,"aria-label":"Close",className:"modal__close",id:"modal-close",type:"button"},{children:(0,o.jsx)("i",{className:"bf-icon-close"},void 0)}),void 0):null,(0,o.jsxs)("div",Object.assign({className:"offer-login-otp-modal__otp__content text-center"},{children:[(null==t?void 0:t.imgURL)?(0,o.jsx)("div",Object.assign({className:"offer-login-otp-modal__otp__img"},{children:(0,o.jsx)("img",{src:null==t?void 0:t.imgURL,alt:"OTP",loading:"lazy",width:"100",height:"39"},void 0)}),void 0):null,(0,o.jsx)("h2",Object.assign({className:"offer-login-otp-modal__otp__title"},{children:null==t?void 0:t.OTPTitleText}),void 0),(0,o.jsxs)("p",{children:[null==t?void 0:t.OTPDescriptionText,(0,o.jsx)("br",{},void 0),c.Z8," ",(0,N.uQ)(j,4)," ",(0,o.jsxs)("span",Object.assign({onClick:()=>{(0,l.VH)(`${null==t?void 0:t.changeMobileText}`,`${null==t?void 0:t.OTPTitleText}`),k(!1),h((0,i.pL)(c.kQ.WITHOUT_REDIRECTION)),h({type:a.vI})},className:"offer-login-otp-modal__otp__change-mobile-no"},{children:[" ",null==t?void 0:t.changeMobileText]}),void 0)]},void 0)]}),void 0),(0,o.jsxs)("form",Object.assign({ref:L,onSubmit:e=>{e.preventDefault(),u(S)}},{children:[(0,o.jsx)("h3",Object.assign({className:"offer-login-otp-modal__otp__form-title"},{children:null==t?void 0:t.enterOTPText}),void 0),(0,o.jsx)("div",Object.assign({className:"offer-login-otp-modal__otp__input-grid"},{children:Array.from(Array(6).keys()).map((e=>(0,o.jsx)("span",Object.assign({className:"offer-login-otp-modal__otp__input-grid__box"},{children:(0,o.jsx)("input",{type:"tel",className:`form-control ${(null==v?void 0:v.message)?"is-invalid":""} ${(null==g?void 0:g.message)?"is-valid":""}`,id:`input--otp-${e}`,maxLength:1,"data-index":e,autoComplete:T.ur?"one-time-code":"off",name:`inputOtp${e}`,value:f[`inputOtp${e}`],onChange:n,onKeyDown:d,onClick:p,onBeforeInput:I,onFocus:H,tabIndex:-1,ref:0===e?A:5===e?C:null},void 0)}),e)))}),void 0),(0,o.jsx)(m,{error:v,counterTime:(0,r.nH)(null==t?void 0:t.resendOTPTime),OTPData:t,submitOTPResetHandler:O,attemptsCount:P,showNoOfAttempts:R},void 0),(0,o.jsxs)("div",Object.assign({className:"offer-login-otp-modal__otp__bottom"},{children:[(0,o.jsx)(s.default,{resolved:x,forwardedRef:S},void 0),(0,o.jsx)("div",Object.assign({className:"offer-login-otp-modal__otp__cta-box"},{children:(0,o.jsx)("button",Object.assign({className:"btn btn--primary",title:"Get OTP",type:"submit",disabled:!y||U||D},{children:null==t?void 0:t.submitBtnText}),void 0)}),void 0)]}),void 0)]}),void 0)]}),void 0)}),void 0)}),void 0)}),void 0)]}),void 0):null},void 0)}},86823:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var o=n(49995),i=n(31477);const a=e=>{var t,n;const o=window.location.href,a=e.targetUrl?e.targetUrl:e.targetLink?e.targetLink.getAttribute("href"):"NA";let r,s,l;const c=Array.from(document.getElementsByTagName("meta"));c.forEach(((e,t)=>{"tag-1"===c[t].getAttribute("name")&&(l=c[t].getAttribute("content")),"tag-2"===c[t].getAttribute("name")&&(s=c[t].getAttribute("content")),"tag-3"===c[t].getAttribute("name")&&(r=c[t].getAttribute("content"))}));const u=Object.assign({event:e.event_click,component:e.component,element:e.element||"NA",pageURL:o,destination_url:"video_list"===e.component?e.video_id:e.share_url?e.share_url:a,cta_text:e.cta_text||"NA",tab_position:0===e.tab_position?e.tab_position:e.tab_position||"NA",section_title:e.sec_title||"NA",subSection:e.sub_section||"NA",page_type:e.page_type?e.page_type:l||"NA",product_name:r||"NA",product_category:s||"NA",customer_tag:(0,i.ej)("userDetails")&&(null===(t=JSON.parse((0,i.ej)("userDetails")))||void 0===t?void 0:t.custType)||"NA",customer_id:(0,i.ej)("userDetails")&&(null===(n=JSON.parse((0,i.ej)("userDetails")))||void 0===n?void 0:n.custId)||"NA",car_listing_price:e.car_listing_price||"NA",car_original_price:e.car_original_price||"NA",car_onroad_price:e.car_onroad_price||"NA",car_make:e.car_make||"NA",car_model_type:e.car_model_type||"NA",car_variant:e.car_variant||"NA",car_fuel_type:e.car_fuel_type||"NA",car_odometer:e.car_odometer||"NA",car_ownership:e.car_ownership||"NA",car_transmission_type:e.car_transmission_type||"NA",car_bodytype:e.car_bodytype||"NA",car_year:e.car_year||"NA",journey_tag:e.journey_tag||"NA",stage_tag:e.stage_tag||"NA",application_id:e.application_id||"NA",field_name:e.field_name||"NA",form_name:e.form_name||"NA",time_spent:e.time_spent||"NA",submission_status:e.submission_status||"NA",validation_error:e.validation_error||"NA",field_value:e.field_value||"NA",tag1:e.tag1||"NA",tag2:e.tag2||"NA",tag3:e.tag3||"NA"},e.event&&{eventType:e.event_click});e.event&&(u.event=e.event),window.dataLayer=window.dataLayer||[],window.dataLayer.push(u)},r=(e,t)=>{const n=(0,o.X)();t.target.addEventListener("blur",(()=>{const o={component:e.component,event:e.event,event_click:e.event_click,sec_title:e.sec_title,form_name:e.form_name,field_name:e.field_name,field_value:t.target.value,time_spent:n()};a(o)}),{once:!0})};t.Z=a},74492:function(e,t,n){"use strict";n.d(t,{Bn:function(){return r},Qi:function(){return v},T_:function(){return l},U5:function(){return p},UM:function(){return m},ZE:function(){return d},fr:function(){return c},lS:function(){return a},tx:function(){return s},xn:function(){return u},zf:function(){return f}});var o=n(86823),i=n(49562);const a=(e,t,n)=>{const o=Math.ceil(e/n),i=Math.floor(t/n)+1;return o>1&&i!==o?"border-bottom":""},r=(e,t)=>e.filter((e=>e.category.toLowerCase()===t.toLowerCase())),s=(e,t,n)=>null==e?void 0:e.map((e=>Object.assign(Object.assign({},e),{values:n?e.values.filter((e=>e.status.toLowerCase()===t.toLowerCase()||e.status.toLowerCase()===n.toLowerCase())):e.values.filter((e=>e.status.toLowerCase()===t.toLowerCase()))}))),l=e=>e.map((e=>e.label)),c=e=>e.map((e=>{const t=e.values.filter((e=>e.value));return Object.assign(Object.assign({},e),{values:t})})).filter((e=>e.values.length>0)),u=e=>{let t="";switch(e){case null:case"false":t="close-rounded";break;default:t="tick-mark-rounded"}return t},d=(e,t)=>e&&t.keyName.toLowerCase()===i.b0.toLowerCase(),p=(e,t,n,i,a,r)=>{const{listingPrice:s,originalPrice:l,make:c,model:u,variant:d,onRoadPrice:p}=r,f={component:e,cta_text:a,element:i,event:n,event_click:t,car_listing_price:s,car_original_price:l,car_onroad_price:p,car_make:c,car_model_type:u,car_variant:d};(0,o.Z)(f)},f=(e,t)=>{let n;switch(e){case 0:n=t.overviewTitleText;break;case 1:n=t.specificationsTitleText;break;case 2:n=t.featuresTitleText;break;default:n=t.conditionTitleText}return n},m=(e,t)=>{91===e.statusCode&&(t.noCarDataRedirectionURLOpenInNewTab&&t.noCarDataRedirectionURL?window.open(t.noCarDataRedirectionURL,"_blank"):window.location.href=t.noCarDataRedirectionURL)},v=(e,t,n)=>e?t:n},27789:function(e,t,n){"use strict";n.d(t,{C:function(){return a},T:function(){return i}});var o=n(89406);const i=()=>(0,o.I0)(),a=o.v9},40614:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,i=t;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},10537:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},85234:function(e,t,n){var o=n(10537),i=n(40614);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;++s)t[a+s]=r[s];return t||i(r)}}}]);