1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[21761],{21761:function(e,t,a){a.d(t,{lC:function(){return d},fh:function(){return s},$B:function(){return g},Gz:function(){return p},LX:function(){return m},BS:function(){return u},jN:function(){return _},td:function(){return h}});var o=a(28700),r=a(27716),n=a(41786),i=a(37866),l=a(85893);let _=e=>(0,o.b)(e,e>99999,!0,!0),s=e=>{let t=Number(e);return Number.isNaN(t)?"-":String(Number(t.toFixed(2)))},f=e=>0===e?.down_payment_percentage,d=(e,t=!1,a=!1,o=!1)=>{let r,n,i;return e?((r=new Date(e)).setUTCMinutes(r.getUTCMinutes()-1),n=r.getUTCFullYear(),i=o?String(n).slice(2):String(n),`${r.getUTCDate()} ${r.toLocaleString("en-US",{month:t?"short":"long",timeZone:"UTC"})}${a?`, ${i}`:""}`):"-"},u=(e,t=!1)=>{if(!e)return i.Tc.NON_PROFILED;let{current_profile_status:a}=e;if(!t&&a===i.Ft.SOFT_ELIGIBLE_FOR_LOAN)return i.Tc.SOFT_ELIGIBLE;if(e?.current_profile_status===i.Ft.ELIGIBLE_FOR_LOAN&&e?.pre_approved_offer_details?.max_offer_amount)return i.Tc.ELIGIBLE_PRE_APPROVED;switch(a){case i.Ft.RECHECK_FEASIBILITY_ELIGIBLE:case i.Ft.RECHECK_FEASIBILITY_NOT_ELIGIBLE:case i.Ft.LOAN_INTEREST_RECIEVED:return i.Tc.NON_PROFILED;case i.Ft.ELIGIBLE_FOR_LOAN:return i.Tc.ELIGIBLE_NON_PRE_APPROVED;case i.Ft.CHD_REVIEW:return i.Tc.CHD_REVIEW;case i.Ft.NOT_ELIGIBLE_FOR_LOAN:return i.Tc.NON_ELIGIBLE;case i.Ft.SOFT_ELIGIBLE_FOR_LOAN:return i.Tc.SOFT_ELIGIBLE;default:return i.Tc.NON_PROFILED}},m=(e,t,a,o=!1,n=!1)=>{let l=u(e,n),_=t?.offer_active;if(l===i.Tc.NON_PROFILED&&o)return"Get your car financed at attractive interest rates.";if(l===i.Tc.NON_PROFILED&&a===r.lj.VARIANT_2)return _?"Weâll find the best loan offers for this car and lock the sale offer for 3 days.":"Weâll find the best loan offers for this car, after you complete your booking.";switch(l){case i.Tc.NON_PROFILED:case i.Tc.ELIGIBLE_NON_PRE_APPROVED:return _?"Weâll find the best loan offers for this car and lock the sale offer for 3 days.":"Weâll find the best loan offers for this car, after you complete your booking.";case i.Tc.CHD_REVIEW:return _?"Complete your booking to lock the sale offer for 3 days and get assistance from our expert":"Speak to our finance expert to get the best loan offers after you complete your booking.";case i.Tc.NON_ELIGIBLE:return _?"Speak to our finance expert to get the best loan offer and lock the offers for 3 days.":"Speak to our finance expert to get the best loan offers after you complete your booking.";default:return""}},g=(e,t=!1,a=!1)=>{let o=u(e,a),n=f(e),l=e?.pre_approved_offer_details?.offer_tag===i.Hg.PRE_APPROVED?"pre-approved":"pre-qualified",s=e?.pre_approved_offer_details?.ltv,d=s?100-s:0;if(t){if(o===i.Tc.NON_PROFILED)return[{img:"combinedOffers",text:`Interest rates starting at ${r.eV}%`,highlightTexts:[`${r.eV}%`]}];if(o===i.Tc.ELIGIBLE_NON_PRE_APPROVED)return[...e?.max_loan_amount?[{img:"loanAmount",text:`Youâre eligible for max loan amount up to â¹${_(e?.max_loan_amount)}`,highlightTexts:[`â¹${_(e?.max_loan_amount)}`]}]:[]]}switch(o){case i.Tc.NON_PROFILED:return[{img:"combinedOffers",text:`Unlock interest rates starting at ${r.eV}%`,highlightTexts:[`${r.eV}%`]},{img:"instantLoans",text:"Get instant loan approvals",highlightTexts:["instant loan"]},{img:"zeroDp",text:"Explore zero downpayment options",highlightTexts:["zero downpayment"]}];case i.Tc.SOFT_ELIGIBLE:return[{img:"softprofiledAmount",text:e?.pre_approved_offer_details?.max_offer_amount?`Youâre ${l} for a loan up to â¹${_(e?.pre_approved_offer_details?.max_offer_amount)}`:`You have a ${l} loan offer`,highlightTexts:[e?.pre_approved_offer_details?.max_offer_amount?`â¹${_(e?.pre_approved_offer_details?.max_offer_amount)}`:`${l}`]},...s?[{img:"combinedOffers",text:`Pay ${d}% downpayment to own your dream car`,highlightTexts:[`${d}% downpayment`]}]:[]];case i.Tc.ELIGIBLE_PRE_APPROVED:return[...e?.max_loan_amount?[{img:"loanAmount",text:`Youâre eligible for max loan amount up to â¹${_(e?.max_loan_amount)}`,highlightTexts:[`â¹${_(e?.max_loan_amount)}`]}]:[],{img:"preApprovedOffers",text:`Youâre pre-approved for a loan up to â¹${_(e.pre_approved_offer_details?.max_offer_amount)}`,highlightTexts:[`â¹${_(e.pre_approved_offer_details?.max_offer_amount)}`]},{img:"combinedOffers",text:`Youâve unlocked loans at ${e?.roi_offered||r.v6}% ROI`,highlightTexts:[`${e?.roi_offered||r.v6}% ROI`]},{img:n?"zeroDp":"downpaymentPercent",text:n?"Own your dream car with zero downpayment":`Pay ${e.down_payment_percentage}% downpayment to own your dream car`,highlightTexts:[n?"zero downpayment":`${e.down_payment_percentage}% downpayment`]}];case i.Tc.ELIGIBLE_NON_PRE_APPROVED:return[...e?.max_loan_amount?[{img:"loanAmount",text:`Youâre eligible for max loan amount up to â¹${_(e?.max_loan_amount)}`,highlightTexts:[`â¹${_(e?.max_loan_amount)}`]}]:[],{img:"combinedOffers",text:`Youâve unlocked loans at ${e?.roi_offered||r.v6}% ROI`,highlightTexts:[`${e?.roi_offered||r.v6}% ROI`]},{img:"downpaymentPercent",text:`Pay ${e?.down_payment_percentage}% downpayment to own your dream car`,highlightTexts:[`${e?.down_payment_percentage}% downpayment`]}];case i.Tc.CHD_REVIEW:return[{img:"underReviewLens",text:"Your loan profile is under review"}];default:return[]}},p=(e,t,a,o=!1,l=!1)=>{let m,g,p=u(e,l),h=f(e),c=e?.pre_approved_offer_details?.offer_tag===i.Hg.PRE_APPROVED?"pre-approved":"pre-qualified",x=e?.pre_approved_offer_details?.ltv,E=x?100-x:0,T=(e=>{if(!e)return!1;let t=new Date(e);t.setUTCMinutes(t.getUTCMinutes()-1);let a=new Date;return t.getUTCFullYear()===a.getUTCFullYear()&&t.getUTCMonth()===a.getUTCMonth()&&t.getUTCDate()===a.getUTCDate()})(t?.end_date_time),O=d(t?.end_date_time),I=!1,L=a?.emi_details,v=a?.finance;L?(m=L?.actual_emi_data?.savings,g=s(parseFloat(String(Number(100*L?.actual_emi_data?.roi)-Number(100*L?.actual_emi_data?.discounted_roi))).toFixed(2)),I=!!(m&&Number(100*L?.actual_emi_data?.roi)-Number(100*L?.actual_emi_data?.discounted_roi))):(m=v?.best?.details?.savings,g=(v?.best?.details?.old_roi??0)-(v?.best?.details?.roi??0),I=!(!m||!g));let $=I?[{img:"saleEmi",text:`Save â¹${(0,n.vd)(m)} in loan interest with ${g}% lower rate`,highlightTexts:[`â¹${(0,n.vd)(m)}`,`${g}%`]}]:[{img:"saleEmi",text:"Save extra in loan interest with lower rate",highlightTexts:["extra","lower"]}];switch(o&&($=[]),p){case i.Tc.NON_PROFILED:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale val
1id till ${O}`,highlightTexts:T?void 0:[O]},{img:"combinedOffers",text:"Get instant approvals and zero downpayment",highlightTexts:["instant approvals","zero downpayment"]}];case i.Tc.SOFT_ELIGIBLE:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale valid till ${O}`,highlightTexts:T?void 0:[O]},{img:"softprofiledAmount",text:e?.pre_approved_offer_details?.max_offer_amount?`Youâre ${c} for a loan up to â¹${_(e?.pre_approved_offer_details?.max_offer_amount)}`:`You have a ${c} loan offer`,highlightTexts:[e?.pre_approved_offer_details?.max_offer_amount?`â¹${_(e?.pre_approved_offer_details?.max_offer_amount)}`:`${c}`]},...x?[{img:"combinedOffers",text:`Pay ${E}% downpayment to own your dream car`,highlightTexts:[`${E}% downpayment`]}]:[]];case i.Tc.ELIGIBLE_PRE_APPROVED:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale valid till ${O}`,highlightTexts:T?void 0:[O]},...e?.max_loan_amount?[{img:"loanAmount",text:`Youâre eligible for max loan amount up to â¹${_(e?.max_loan_amount)}`,highlightTexts:[`â¹${_(e?.max_loan_amount)}`]}]:[],{img:"preApprovedOffers",text:`Youâre pre-approved for a loan up to â¹${_(e.pre_approved_offer_details?.max_offer_amount)}`,highlightTexts:[`â¹${_(e.pre_approved_offer_details?.max_offer_amount)}`]},{img:"combinedOffers",text:`Youâve unlocked ${e?.discounted_roi||(e?.roi_offered?e?.roi_offered-1:r.v6-1)}% ROI and ${h?"zero":`${e.down_payment_percentage}%`} downpayment`,highlightTexts:[`${e?.discounted_roi||(e?.roi_offered?e?.roi_offered-1:r.v6-1)}% ROI`,(h?"zero":`${e.down_payment_percentage}%`)+" downpayment"]}];case i.Tc.ELIGIBLE_NON_PRE_APPROVED:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale valid till ${O}`,highlightTexts:T?void 0:[O]},...e?.max_loan_amount?[{img:"loanAmount",text:`Youâre eligible for loan amount up to â¹${_(e?.max_loan_amount)}`,highlightTexts:[`â¹${_(e?.max_loan_amount)}`]}]:[]];case i.Tc.CHD_REVIEW:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale valid till ${O}`,highlightTexts:T?void 0:[O]},{img:"underReviewLens",text:"Your loan profile is under review"}];case i.Tc.NON_ELIGIBLE:return[...$,{img:"saleEnd",text:T?"Sale ends today":`Sale valid till ${O}`,highlightTexts:T?void 0:[O]}];default:return[]}},h=(e,t)=>{if(!t||0===t.length)return[(0,l.jsx)("span",{children:e},"text")];let a=[],o=[];t.forEach(t=>{let a=0;for(;a<e.length;){let r=e.indexOf(t,a);if(-1===r)break;o.push({start:r,end:r+t.length,text:t}),a=r+1}}),o.sort((e,t)=>e.start-t.start);let r=[];o.forEach(e=>{r.some(t=>!(e.end<=t.start||e.start>=t.end))||r.push(e)});let n=0;return r.forEach(t=>{t.start>n&&a.push({text:e.substring(n,t.start),highlight:!1,start:n,end:t.start}),a.push({text:t.text,highlight:!0,start:t.start,end:t.end}),n=t.end}),n<e.length&&a.push({text:e.substring(n),highlight:!1,start:n,end:e.length}),0===a.length?[(0,l.jsx)("span",{children:e},"text")]:a.map((e,t)=>e.highlight?(0,l.jsx)("span",{className:"CartLoans__highlightedText",children:e.text},t):(0,l.jsx)("span",{children:e.text},t))}}}]);
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.