PageSourceSearch

https://www.suzuki.ro/_next/static/chunks/pages/emi-calculator.backup-3dd39ddc6f5b421b.js

js suzuki.ro collected 2026-10-02 06:05:02 UTC 81,800 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3924,7699],{9280:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(14232);function a(){let[e,l]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),t=()=>{l(e.matches)};return t(),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[]),e}},10080:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>a});var n=t(37876);t(14232);let a=e=>{let{centerMode:l}=e;return(0,n.jsx)("div",{className:"".concat(l?"fixed":"absolute"," top-1/2 translate-x-[-50%] translate-y-[-50%] left-1/2 z-10"),children:(0,n.jsx)("span",{className:"loader"})})}},19803:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(37876);function a(e){let{children:l,...t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",{...t,children:l})})}t(14232)},29308:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var n=t(37876);t(14232);var a=t(77328),i=t.n(a);let o=e=>{let{title:l}=e;return(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:l})})}},31703:(e,l,t)=>{"use strict";t.d(l,{A:()=>p});var n=t(37876),a=t(14232),i=t(33283),o=t.n(i),s=t(90671),r=t.n(s),u=t(54587),c=t.n(u),d=t(14e3),v=t(25660),m=t(76717);let p=(0,a.forwardRef)((e,l)=>{let{error:t,label:a,required:i,name:s,mandatory:u,items:p,value:g,placeholder:_,handleChange:f,tooltipContent:x,showTooltip:h,descript:y,nameKey:b,iconSource:C,placeholderOptionHidden:w,imageVar:N,isPlaceholderDisabled:j,disabled:A,selectedModelCode:T,modelCodePage:E,...D}=e;(0,d.useRouter)();let I=(0,d.useSearchParams)();I.get("modelname");let k=I.get("modelcode");return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:o().select__container,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between w-full h-[28px]",children:[(0,n.jsxs)("div",{className:"flex starstyle",children:[a&&(0,n.jsx)("label",{className:o().label,htmlFor:s,dangerouslySetInnerHTML:{__html:a}}),i&&(0,n.jsx)("span",{children:"*"})]}),h&&(0,n.jsxs)("div",{className:"flex items-center",role:"button",tabIndex:0,"aria-label":"Show More Information with Description: ".concat(y),"data-tooltip-id":s,onClick:()=>document.querySelector("[data-tooltip-id='".concat(s,"']")).dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0})),children:[(0,n.jsx)(c(),{"data-tooltip-id":s,src:"".concat(v.configuration.IMG_STATIC_URL,"assets/images/Tool-tip/infoToolTip.svg"),height:"15",width:"15",alt:"Additional Information",style:{maxWidth:"100%",height:"auto"}}),(0,n.jsx)(m.m_,{id:s,src:N,variant:"light",className:"shadow-lg z-10",children:(0,n.jsxs)("div",{className:"tool-tip-wrap flex items-center justify-between",children:[(0,n.jsx)("div",{className:"w-[20px] flex items-center mr-1",children:(0,n.jsx)(c(),{src:C,width:15,height:15,style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:r().toolTip_desc,children:y})]})})]})]}),(0,n.jsxs)("select",{className:t?"".concat(o().inputError," border-error-color"):"".concat(o().input," border-grey-color"),required:u,disabled:A,name:s,onChange:f,...D,ref:l,children:[(0,n.jsx)("option",{value:"",disabled:j,hidden:w,children:_}),(null==p?void 0:p.length)>0&&p.map((e,l)=>{var t,a,i,o,s,r,u;return(0,n.jsx)("option",{value:JSON.stringify(e),disabled:e.disabled,selected:"finance-page"===D.page?(null==e||null==(t=e.model_name)?void 0:t.toLowerCase())===(null==D||null==(a=D.selectedValue)?void 0:a.toLowerCase()):(null==e?void 0:e.model_code)!==void 0&&(null==e?void 0:e.model_code)==E||e.selected||(null==e?void 0:e.model_code)!==void 0&&(null==e?void 0:e.model_code)==T||(null==e?void 0:e.model_code)!==void 0&&(null==e||null==(i=e.model_code)?void 0:i.toLowerCase())==(null==k?void 0:k.toLowerCase()),children:["HUN","RO","IDN","SLA","SK","CZ","PH"].includes("RO")&&((null==e?void 0:e.model_name)=="eVITARA"||(null==e?void 0:e.model_name)=="eVITARA"||(null==e?void 0:e.model_name)=="EVITARA"||(null==e?void 0:e.model_code)=="X"||(null==e?void 0:e.model_code)=="x"||(null==e?void 0:e.model_code)=="EVITARA"||(null==e?void 0:e.model_code)=="EVITARA")?(null==e?void 0:e.name)||(null==e?void 0:e.model_name)||e[b]||(null==e?void 0:e.variant_name)||(null==e?void 0:e.methodName):(null==e?void 0:e.name)||(null==e||null==(o=e.model_name)?void 0:o.toUpperCase())||(null==(s=e[b])?void 0:s.toUpperCase())||(null==e||null==(r=e.variant_name)?void 0:r.toUpperCase())||(null==e||null==(u=e.methodName)?void 0:u.toUpperCase())},l)})]}),(0,n.jsx)("p",{className:"text-error-red",children:t})]})})})},33283:e=>{e.exports={input:"Forms_input__HTmSv",remarksInput:"Forms_remarksInput__hdP8f",remarksInputError:"Forms_remarksInputError__2a4fn",dateinput
1:"Forms_dateinput__ZUz4q",inputError:"Forms_inputError__Vel0q",textarea:"Forms_textarea__lH8pW",textareaError:"Forms_textareaError__y_0Qc",label:"Forms_label__4IAOI",submit:"Forms_submit__u5oXc",select__container:"Forms_select__container__7pJ6r",title:"Forms_title__YxdlT",error:"Forms_error__n9Q1D"}},40977:(e,l,t)=>{"use strict";t.d(l,{A:()=>m});var n=t(37876),a=t(14232),i=t(76717),o=t(33283),s=t.n(o),r=t(90671),u=t.n(r),c=t(54587),d=t.n(c),v=t(25660);let m=(0,a.forwardRef)((e,l)=>{let{error:t,label:o,required:r,name:c,placeholder:m,mandatory:p,showTooltip:g,imageVar:_,tooltipContent:f,iconSource:x,descript:h,minLength:y,maxLength:b,srcIcon:C,showIcons:w,...N}=e,[j,A]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=()=>A(window.innerWidth<=768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let T=(e=>{var l,t,n,a;let i=null==e||null==(n=e.replace(/&nbsp;/g," "))||null==(t=n.replace(/&amp;/g,"&"))||null==(l=t.replace(/&lt;/g,"<"))?void 0:l.replace(/&gt;/g,">"),o=null==i?void 0:i.replace(/<\/?[^>]+(>|$)/g," ");return(null==o||null==(a=o.replace(/\s+/g," "))?void 0:a.trim())||""})(o);return(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{className:"label-icon flex justify-between relative",children:[(0,n.jsxs)("div",{className:"flex starstyle",children:[o&&(0,n.jsx)("label",{className:s().label,htmlFor:c,dangerouslySetInnerHTML:{__html:o}}),r&&(0,n.jsx)("span",{children:"*"})]}),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"tool-tip-img",role:"button",tabIndex:0,"aria-label":"Show More Information with Description: ".concat(h),"data-tooltip-id":c,onClick:()=>document.querySelector("[data-tooltip-id='".concat(c,"']")).dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0})),children:(0,n.jsx)(d(),{"data-tooltip-id":c,src:"".concat(v.configuration.IMG_STATIC_URL,"assets/images/Tool-tip/infoToolTip.svg"),height:"15",width:"15",alt:"Additional Information",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)(i.m_,{id:c,src:_,variant:"light",className:"shadow-lg z-10",children:(0,n.jsxs)("div",{className:"tool-tip-wrap flex items-center justify-between",children:[(0,n.jsx)("div",{className:"w-[20px] flex items-center mr-1 ",children:(0,n.jsx)(d(),{src:x,width:15,height:15,style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:u().toolTip_desc,children:h})]})})]})]}),(0,n.jsxs)("div",{className:"relative",children:[N.placeholder?(0,n.jsx)("input",{className:t?"".concat(s().inputError," border-error-color"):"".concat(s().input," border-grey-color"),minLength:y,maxLength:b,name:c,placeholder:T,required:p,"aria-label":"".concat(T," field"),...N,ref:l}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute pointer-events-none customPlaceholder"}),((null===v.configuration||void 0===v.configuration?void 0:v.configuration.COUNTRY_CODE)==="RO"||(null===v.configuration||void 0===v.configuration?void 0:v.configuration.COUNTRY_CODE)==="SK"||(null===v.configuration||void 0===v.configuration?void 0:v.configuration.COUNTRY_CODE)==="CZ"||(null===v.configuration||void 0===v.configuration?void 0:v.configuration.COUNTRY_CODE)==="HUN")&&((null==N?void 0:N.type)==="remarks"||(null==N?void 0:N.type)==="additional_remarks")?(0,n.jsx)("textarea",{className:t?"".concat(s().remarksInputError," border-error-color"):"".concat(s().remarksInput," border-grey-color"),minLength:y,maxLength:b,placeholder:T,name:c,onInput:e=>{e.target.style.height="100px",e.target.style.height="".concat(Math.min(e.target.scrollHeight,100),"px")},required:p,"aria-label":"".concat(T," field"),...N,ref:l,onFocus:e=>e.target.previousSibling.style.display="none",onBlur:e=>{e.target.value||(e.target.previousSibling.style.display="block")}}):(null==N?void 0:N.type)==="date"?(0,n.jsxs)("div",{className:"relative w-full",children:[j&&(0,n.jsx)("div",{className:"absolute pointer-events-none customPlaceholder text-gray-400 left-3 top-1/2 transform -translate-y-1/2",children:"dd-mm-yyyy"}),(0,n.jsx)("input",{type:j?"text":"date",inputMode:j?"numeric":void 0,minLength:y,maxLength:b,pattern:j?"\\d{2}-\\d{2}-\\d{4}":void 0,name:c,value:N.value,onChange:N.onChange,required:p,"aria-label":"".concat(T||"Date"," field"),className:t?"".concat(s().inputError," border-error-color"):"".concat(s().input," border-grey-color"),ref:l,onFocus:e=>{if(j){let l=e.target.previousSibling;l&&(l.style.display="none")}},onBlur:e=>{if(j){let l=e.target.previousSibling;l&&!e.target.value&&(l.style.display="block")}},...N})]}):(0,n.jsx)("input",{className:t?"".concat(s().inputError," border-error-color"):"".concat(s().input," border-grey-color"),minLength:y,maxLength:b,placeholder:T,name:c,required:p,"aria-label":"".concat(T," field"),...N,ref:l,onFocus:e=>e.target.previousSibling.style.display="none",onBlur:e=>{e.target.value||(e.target.previousSibling.style.display="block")}})]}),w&&(0,n.jsx)("div",{className:"fieldIcon",children:(0,n.jsx)(d(),{src:C,height:"18",width:"18",style:{maxWidth:"100%",height:"auto"}})})]}),(0,n.jsx)("p",{className:"text-error-red",children:t})]})})},47664:(e,l,t)=>{"use strict";t.d(l,{$p:()=>Z,F5:()=>J,Pb:()=>ee,S:()=>B,Vj:()=>el,Vw:()=>G,Ww:()=>$,YL:()=>V,Ze:()=>X,Zs:()=>U,cr:()=>P,mJ:()=>et,oP:()=>K,or:()=>W});var n,a,i,o,s,r,u,c,d,v,m,p,g,_,f,x,h,y,b,C,w,N,j,A,T,E,D,I,k,S,L,R,M=t(29399),O=t(25660);let V={required:M.Constants.forms.REQUIRED_FIELD,minLength:{value:"10",message:M.Constants.forms.PHONE_ERROR},maxLength:{value:"14",message:M.Constants.forms.PHONE_ERROR},pattern:{value:/^[0-9]+$/,message:M.Constants.forms.PHONE_SPECIAL_CHAR_E
1RROR}},U={maxLength:{value:30,message:M.Constants.forms.NAME_ERROR},required:M.Constants.forms.REQUIRED_FIELD};M.Constants.forms.NAME_PATTERN;let P={required:M.Constants.forms.REQUIRED_FIELD,pattern:{value:/^[^<>()[\]\\,;:\%#^\s@\"$&!-]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/gm,message:M.Constants.forms.EMAIL_ERROR}},F=null==(n=O.configuration.PLANNING_TO_PURCHASE_IN_NAME)?void 0:n.split("/"),Y=null==(a=O.configuration.PLANNING_TO_PURCHASE_IN_CODE)?void 0:a.split("/"),B=[];null==F||F.map((e,l)=>{let t={};t.name=e,t.code=Y[l],B.push(t)});let G=[{name:"8 AM - 9 AM",value:"08"},{name:"9 AM - 10 AM",value:"09"},{name:"10 AM - 11 AM",value:"10"},{name:"11 AM - 12 PM",value:"11"},{name:"12 PM - 1 PM",value:"12"},{name:"1 PM - 2 PM",value:"13"},{name:"2 PM - 3 PM",value:"14"},{name:"3 PM - 4 PM",value:"15"}],z=new Date().getHours(),W=null==G?void 0:G.map(e=>{let l=parseInt(e.value);return{...e,disabled:(l<8?l+12:l)<=z}}),H=null==(i=O.configuration.communicationOptionsName)?void 0:i.split("_"),q=null==(o=O.configuration.communicationOptionsValue)?void 0:o.split("_"),Q=null==(s=O.configuration.communicationOptionsFlag)?void 0:s.split("_"),J=[];null==H||H.map((e,l)=>{let t={};"true"==Q[l]&&(t.name=e,t.value=q[l],J.push(t))}),J.push({name:M.Constants.communicationOptions.BOTH,value:"1663701889014"});let K=[{name:M.Constants.purchaseOptions.CREDIT,value:"credit"},{name:M.Constants.purchaseOptions.COUNTED,value:"counted"},{name:M.Constants.purchaseOptions.LEASE,value:"lease"}],Z=[{name:"I already have a car loan",value:"existing_car_loan"},{name:"I need a car loan",value:"need_car_loan"},{name:"I will pay in cash",value:"pay_in_cash"}],X=[{name:"20%",value:20},{name:"30%",value:30},{name:"40%",value:40},{name:"50%",value:50}],$=[{name:"24 Months",value:24,roi:"PH"==O.configuration.COUNTRY_CODE?1.2483:1.2375},{name:"36 Months",value:36,roi:"PH"==O.configuration.COUNTRY_CODE?1.3794:1.3},{name:"48 Months",value:48,roi:"PH"==O.configuration.COUNTRY_CODE?1.4594:1.4},{name:"60 Months",value:60,roi:"PH"==O.configuration.COUNTRY_CODE?1.5402:1.5}],ee={ENQUIRY:"enquiry_form",CALC_PAYMENT:"finance_form",TEST_DRIVE:"test_drive_form",BROCHURE:"brochure_form",SERVICE:"service_form",CONTACT_US:"contact_form",GET_QUOTE:"get_quote_form",PERSONAL_IDENTIFICATION_INFORMATION:"pii",SEND_TO_DEALER:"send_to_dealer",ENQUIRY_2W:"enquiry_form_2w",CALC_PAYMENT_2W:"finance_form_2w",TEST_DRIVE_2W:"test_drive_form_2w",BROCHURE_2W:"brochure_form_2w",SERVICE_2W:"service_form_2w",CONTACT_US_2W:"contact_form_2w",GET_QUOTE_2W:"get_quote_form_2w",BROCHURE_MARINE:"brochure_form_marine",TEST_DRIVE_MARINE:"test_drive_form_marine"},el=[{value:"1738218827041",name:(null==(r=M.Constants.forms.INQUIRY_TYPES)?void 0:r.brochureRequest)?null==(c=M.Constants.forms)||null==(u=c.INQUIRY_TYPES)?void 0:u.brochureRequest:"Brochure Request"},{value:"1738219034420",name:(null===M.Constants||void 0===M.Constants||null==(v=M.Constants.forms)||null==(d=v.INQUIRY_TYPES)?void 0:d.inquiry)?null===M.Constants||void 0===M.Constants||null==(p=M.Constants.forms)||null==(m
1=p.INQUIRY_TYPES)?void 0:m.inquiry:"Inquiry"},{value:"1738219046712",name:(null===M.Constants||void 0===M.Constants||null==(_=M.Constants.forms)||null==(g=_.INQUIRY_TYPES)?void 0:g.suzukiPlusOffer)?null===M.Constants||void 0===M.Constants||null==(x=M.Constants.forms)||null==(f=x.INQUIRY_TYPES)?void 0:f.suzukiPlusOffer:"Suzuki+ Offer"},{value:"1738219076564",name:(null===M.Constants||void 0===M.Constants||null==(y=M.Constants.forms)||null==(h=y.INQUIRY_TYPES)?void 0:h.complaint)?null===M.Constants||void 0===M.Constants||null==(C=M.Constants.forms)||null==(b=C.INQUIRY_TYPES)?void 0:b.complaint:"Complaint"},{value:"1738219106695",name:(null===M.Constants||void 0===M.Constants||null==(N=M.Constants.forms)||null==(w=N.INQUIRY_TYPES)?void 0:w.recalls)?null===M.Constants||void 0===M.Constants||null==(A=M.Constants.forms)||null==(j=A.INQUIRY_TYPES)?void 0:j.recalls:"Recalls"},{value:"1738219135491",name:(null===M.Constants||void 0===M.Constants||null==(E=M.Constants.forms)||null==(T=E.INQUIRY_TYPES)?void 0:T.feedbackSuggestion)?null===M.Constants||void 0===M.Constants||null==(I=M.Constants.forms)||null==(D=I.INQUIRY_TYPES)?void 0:D.feedbackSuggestion:"Feedback, Suggestion"},{value:"1738219159710",name:(null===M.Constants||void 0===M.Constants||null==(S=M.Constants.forms)||null==(k=S.INQUIRY_TYPES)?void 0:k.other)?null===M.Constants||void 0===M.Constants||null==(R=M.Constants.forms)||null==(L=R.INQUIRY_TYPES)?void 0:L.other:"Other"}],et=JSON.parse(JSON.stringify('[{"name":"V\xe2nzări & Service","value":"1738224356766"},{"name":"Service","value":"1738224229019"},{"name":"V\xe2nzări","value":"1738224285210"}]'))},53273:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>E,default:()=>D});var n=t(37876),a=t(14232),i=t(31703),o=t(40977),s=t(19803),r=t(29399),u=t(9280),c=t(10080),d=t(33283),v=t.n(d);let m=e=>{var l;let{options:t,label:i,id:o,selectedVal:s,handleChange:r,label2:u,disabled:c,placeholder:d,caculationData:m,setCaculationData:p}=e,[g,_]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),[h,y]=(0,a.useState)(-1),b=(0,a.useRef)([]),C=(0,a.useRef)(null),w=(0,a.useRef)(null);(0,a.useEffect)(()=>(document.addEventListener("click",j),()=>document.removeEventListener("click",j)),[]);let N=e=>{_(()=>""),r(e[i]),x(e=>!e)};function j(e){x(e&&e.target===w.current)}let A=e=>e.filter(e=>e[i].toLowerCase().indexOf(g.toLowerCase())>-1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:C,className:v().select__container,children:(0,n.jsx)("div",{className:"flex starstyle",children:i&&(0,n.jsx)("label",{className:v().label,children:u})})}),(0,n.jsxs)("div",{className:"dropdown",children:[(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"",children:(0,n.jsx)("input",{ref:w,disabled:c,type:"text",className:v().input,value:g||s||"",name:"searchTerm",placeholder:d,onChange:e=>{_(e.target.value),r(null)},onClick:j,onKeyDown:e=>{"Enter"===e.key?f?h>=0&&h<A(t).length&&(e.preventDefault(),N(A(t)[h])):(e.preventDefault(),x(!0)):"ArrowDown"===e.key?(e.preventDefault(),x(!0),y(e=>{let l=A(t).length?(e+1)%A(t).length:0;return setTimeout(()=>{var e;null==(e=b.current[l])||e.scrollIntoView({block:"nearest"})},0),l})):"ArrowUp"===e.key?(e.preventDefault(),x(!0),y(e=>{let l=A(t).length?(e-1+A(t).length)%A(t).length:0;return setTimeout(()=>{var e;null==(e=b.current[l])||e.scrollIntoView({block:"nearest"})},0),l})):"Escape"===e.key&&(x(!1),y(-1))},"aria-haspopup":"listbox","aria-expanded":f,"aria-controls":"".concat(o,"-listbox"),"aria-activedescendant":f&&h>=0?"".concat(o,"-option-").concat(h):void 0})})}),(0,n.jsx)("div",{className:"options ".concat(f?"open":""),role:"listbox",id:"".concat(o,"-listbox"),children:null==(l=A(t))?void 0:l.map((e,l)=>(0,n.jsx)("div",{disabled:c,ref:e=>b.current[l]=e,role:"option",tabIndex:-1,id:"".concat(o,"-option-").concat(l),"aria-selected":l===h,onClick:()=>N(e),className:"option ".concat(e[i]===s?"selected":""," ").concat(l===h?"focused":""),children:e[i]},"".concat(o,"-").concat(l)))})]})]})};var p=t(29308),g=t(60551),_=t(77328),f=t.n(_),x=t(95648),h=t(14e3),y=t(54587),b=t.n(y),C=t(99421),w=t(35643),N=t(25660),j=t(91040),A=t(74695);let T=e=>{var l,t,d,v,_,y,T,E,D,I,k,S,L,R,M,O,V,U,P,F,Y,B,G,z,W,H,q,Q,J,K,Z,X,$,ee,el,et,en,ea,ei,eo,es,er,eu,ec,ed,ev,em,ep,eg,e_,ef,ex,eh,ey,eb,eC,ew,eN,ej,eA,eT,eE,eD,eI,ek,eS,eL,eR,eM,eO,eV,eU,eP,eF,eY,eB,eG,ez,eW,eH,eq,eQ,eJ,eK,eZ,eX,e$,e0,e1,e2,e3,e4,e5,e7,e8,e9,e6,le,ll,lt,ln,la,li,lo,ls,lr,lu,lc,ld,lv,lm,lp,lg,l_,lf,lx,lh,ly,lb,lC,lw,lN,lj,lA,lT,lE,lD,lI,lk,lS,lL,lR,lM,lO,lV,lU,lP,lF,lY,lB,lG,lz,lW,lH,lq,lQ,lJ,lK,lZ,lX,l$,l0,l1,l2,l3,l4,l5,l7,l8,l9,l6,te,tl,tt,tn,ta,ti,to,ts,tr,tu,tc,td,tv,tm,tp,tg,t_,tf,tx,th,ty,tb,tC,tw,tN,tj,tA,tT,tE,tD,tI,tk,tS,tL,tR,tM,tO,tV,tU,tP,tF,tY,tB,tG,tz,tW,tH,tq,tQ,tJ,tK,tZ,tX,t$,t0,t1,t2,t3,t4,t5,t7,t8,t9,t6,ne,nl,nt,nn,na,ni,no,ns,nr,nu,nc,nd,nv,nm,np,ng,n_;let{modelname:nf,modelcode:nx}=e;(0,h.useRouter)();let nh=(0,A.wA)();(0,a.useEffect)(()=>{nh({type:x.y0,payload:N.configuration.COMMON_MASTER_LOB})},[]),console.log(nx,nf,"wwwwwww11");let[ny,nb]=(0,a.useState)(!1),[nC,nw]=(0,a.useState)([]),[nN,nj]=(0,a.useState)([]),[nA,nT]=(0,a.useState)(),[nE,nD]=(0,a.useState)(!0),[nI,nk]=(0,a.useState)([]),[nS,nL]=(0,a.useState)([]),[nR,nM]=(0,a.useState)(0),[nO,nV]=(0,a.useState)(0),[nU,nP]=(0,a.useState)(),[nF,nY]=(0,a.useState)(),[nB,nG]=(0,a.useState)([]),[nz,nW]=(0,a.useState)([]),[nH,nq]=(0,a.useState)(0),[nQ,nJ]=(0,a.useState)(0),[nK,nZ]=(0,a.useState)(0),[nX,n$]=(0,a.useState)(),[n0,n1]=(0,a.useState)(),[n2,n3]=(0,a.useState)(null),[n4,n5]=(0,a.useState)(!1),n7=a.useRef(null),n8=(0,a.useRef)(null),n9=(0,A.d4)(e=>{let{app:l}=e;return l}),n6=(0,A.d4)(e=>{var l;return null==e||null==(l=e.app)?void 0:l.LobValue});console.log(nz,"qqqq");let[ae,al]=(0,a.useState)("--"),[at,an]=(0,a.useState)(""),[aa,ai]=(0,a.useState)([]),[ao,as]=(0,a.useState)([]),[ar,au]=(0,a.useState)([]),[ac,ad]=(0,a.useState)();console.log(ac,"uuu");let[av,am]=(0,a.useState)({selectedDownpayment:0,selectedTenure:0,selectedInterest:0,modelPrice:"40000",PriceType:"",downpaymentAmount:0,transformedDataCopy:[],transformedDataCopy1:[],selectVariant:{},downpayment:0,selectedDownpaymenamount:0,defaultModel:"",defaultModelName:"",vechileTaxs:[],vehicleAdditionalCharge:[],downpaymentTax:[],downpaymentDefaultTax:[],City_to_be_shown:!0,Interest_to_be_shown:!1,isDownpaymentStatic:!1,intrestRateProvided:!1,vehiclePrice:0,isDownpaymentCondition:!1,taxdetails:[],downpaymentAdditionalChargeCondition:[],calculatedEmi:0});console.log(av,"ddd"),(0,a.useEffect)(()=>{nZ(0),console.log("cash credirt",nH),console.log("finance credirt",nQ),console.log("finance credirt 222",nO),nH>0?nZ(.025*nH*1.16):nQ>0&&nZ((nQ+nO+900)*.025*1.16)},[nH,nQ,nO]),(0,a.useEffect)(()=>{var e;let l=Number(null==av||null==(e=av.selectVariant)?void 0:e.selling_price),t=Number(null==av?void 0:av.selectedDownpayment);if(!isNaN(l)&&!isNaN(t)){let e=(nR+l)*t/100;am(l=>({...l,downpaymentAmount:e}))}},[null==(l=av.selectVariant)?void 0:l.selling_price,av.selectedDownpayment,nR]);let ap=async(e,l,t)=>{console.log("cc444",e,l,t);let n=t/12/100;return e*n*Math.pow(1+n,l)/(Math.pow(1+n,l)-1)};(0,a.useEffect)(()=>
1{if(!ny){var e;al(null==av||null==(e=av.downpaymentAmount)?void 0:e.toString())}},[null==av?void 0:av.downpaymentAmount,ny]),(0,a.useEffect)(()=>{var e,l;if(nb(!1),(null==av||null==(e=av.selectVariant)?void 0:e.selling_price)&&(null==av?void 0:av.selectedDownpayment)){let e=parseFloat(av.selectedDownpayment)/100*(nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price));am(l=>({...l,downpaymentAmount:e}))}},[null==av||null==(t=av.selectVariant)?void 0:t._id,nR]),(0,u.A)();let ag=e=>{n7.current&&(n7.current.scrollLeft+=e)};(0,a.useEffect)(()=>{var e;console.log(ar[0],"hitttt"),am(e=>({...e,selectVariant:ar[0]})),(null==av||null==(e=av.transformedDataCopy)?void 0:e.length)>0&&am(e=>{var l;return{...e,selectVariant:(null==(l=e.selectVariant)?void 0:l._id)?e.selectVariant:e.transformedDataCopy[0]}})},[av.transformedDataCopy]),(0,a.useEffect)(()=>{var e,l,t,n,a,i,o,s,r,u;if((null==ac||null==(e=ac.downpaymentDetails)?void 0:e.type)!=="percentage"&&(null==ac||null==(t=ac.downpaymentDetails)||null==(l=t.amoutConfig)?void 0:l.defaultDownpayment)&&(null==av||null==(n=av.selectVariant)?void 0:n.selling_price)&&(null==av?void 0:av.defaultModel)&&av.defaultModel!==a_.current){let e=ac.downpaymentDetails.amoutConfig.defaultDownpayment,l=e/100*(nR+parseFloat(null==av||null==(r=av.selectVariant)?void 0:r.selling_price));am(t=>({...t,selectedDownpaymenamount:e,downpaymentAmount:l})),a_.current=av.defaultModel}if((null==ac||null==(a=ac.downpaymentDetails)?void 0:a.type)==="percentage"&&(null==ac||null==(o=ac.downpaymentDetails)||null==(i=o.percentageConfig)?void 0:i.defaultDownpayment)&&(null==av||null==(s=av.selectVariant)?void 0:s.selling_price)&&(null==av?void 0:av.defaultModel)&&av.defaultModel!==a_.current){let e=ac.downpaymentDetails.percentageConfig.defaultDownpayment,l=e/100*(nR+parseFloat(null==av||null==(u=av.selectVariant)?void 0:u.selling_price));am(t=>({...t,selectedDownpayment:e,downpaymentAmount:l})),a_.current=av.defaultModel}},[ac,null==av||null==(d=av.selectVariant)?void 0:d.selling_price,nR,null==av?void 0:av.defaultModel]);let a_=(0,a.useRef)(null);(0,a.useEffect)(()=>{(async()=>{try{let e=await j.A.get("".concat(N.configuration.APP_URL_CONTENTS,"/emi-calculator"));ad(null==e?void 0:e.data[0])}catch(e){console.log("Error in API call",e)}
1finally{}})()},[]),console.log(ac,"tumne"),(0,a.useEffect)(()=>{ac&&(console.log(ac,"sss"),am(e=>{var l,t,n,a,i,o,s;return{...e,selectedDownpayment:Number(null==ac||null==(t=ac.downpaymentDetails)||null==(l=t.percentageConfig)?void 0:l.defaultDownpayment),selectedDownpaymenamount:Number(null==ac||null==(a=ac.downpaymentDetails)||null==(n=a.amoutConfig)?void 0:n.defaultDownpayment),selectedTenure:null==ac||null==(i=ac.tenureDetails)?void 0:i.defaultTenure,defaultModel:(null==nx?void 0:nx.toUpperCase())?null==nx?void 0:nx.toUpperCase():null==ac||null==(o=ac.modelDetails)?void 0:o.defaultmodelCode,defaultModelName:(null==nf?void 0:nf.toUpperCase())||(null==ac||null==(s=ac.modelDetails)?void 0:s.defaultModel),vehicleAdditionalCharge:null==ac?void 0:ac.vehicleAdditionalCharge,downpaymentAdditionalCharge:null==ac?void 0:ac.downpaymentAdditionalCharge}})),console.log(av,"sss111")},[ac]),(0,a.useEffect)(()=>{ac&&am(e=>{var l,t,n,a,i,o,s,r,u,c;return{...e,selectedInterest:(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)?(()=>{var l,t,n;let a=null==ac||null==(l=ac.modelTenureValues)?void 0:l.find(e=>e.Downpayment_Percentage==(null==av?void 0:av.selectedDownpayment)),i=null==a||null==(t=a.tenureTable)?void 0:t.find(e=>e.modelCode===(null==av?void 0:av.defaultModel)),o=null==i||null==(n=i.tenures)?void 0:n.find(l=>l.tenure==e.selectedTenure);return o?Number(o.value):void 0})():(null==ac?void 0:ac.City_to_be_shown)||(null==ac||null==(l=ac.interestSelection)?void 0:l.showintrest)?null==ac||!ac.City_to_be_shown||(null==ac||null==(i=ac.interestSelection)?void 0:i.showintrest)?null==ac||null==(c=ac.interestSelection)||null==(u=c.intrestConfig)?void 0:u.defaultIntrest:null==ac||null==(r=ac.interestSelection)||null==(s=r.addressConfig)||null==(o=s[0])?void 0:o.interestRate:null==ac||null==(a=ac.interestSelection)||null==(n=a.addressConfig)||null==(t=n[0])?void 0:t.interestRate}})},[ac,null==av?void 0:av.selectedDownpayment,null==av?void 0:av.selectedTenure,null==av?void 0:av.defaultModel]),(0,a.useEffect)(()=>{let e,l,t=(e=null==av?void 0:av.defaultModel,l=null==av?void 0:av.defaultModelName,nS.map(t=>({...t,model_code:e,model_name:l})));console.log(null==av?void 0:av.defaultModel,nS,"llll999",t),as(t),am(e=>({...e,transformedDataCopy:t}))},[null==av?void 0:av.defaultModel,nS]);let af=async e=>{try{n5(!0);let o=[];for(let s of e)try{var l,t,n,a,i;let e=(null==(a=(await j.A.get("".concat(N.configuration.COMMON_MASTER_API,"/sellingPrices?pageNumber=1&pageSize=10&lob=").concat(N.configuration.COMMON_MASTER_LOB,"&modelCode=").concat(s.model_code,"&variantCode=").concat(s.variant_code,"&status=true"),N.configuration.HEADER_DEALER_LOCATOR)).data)||null==(n=a.data)||null==(t=n[0])||null==(l=t.sellingPriceDetails)?void 0:l[0])||{},r=e[null==ac||null==(i=ac.vehiclePrice)?void 0:i.toLowerCase().replace(/\s/g,"")]||null,u=(null==e?void 0:e.taxChargeDetails)||[];o.push({...s,selling_price:r,taxChargeDetails:u})}catch(e){console.error("Error fetching price for ".concat(s.color_name,":"),e.message),o.push({...s,selling_price:null,taxChargeDetails:[]})}let s=o.find(e=>{var l;return e.variant_code===(null==ac||null==(l=ac.modelDetails)?void 0:l.defaultvarintcode)});if(s){let e=o.filter(e=>e.variant_code!==s.variant_code);o.length=0,o.push(s,...e)}else if(s=o.filter(e=>null!==e.selling_price).sort((e,l)=>e.selling_price-l.selling_price)[0]||o[0]||{},o.length>0&&o[0]!==s){let e=o.filter(e=>e!==s);o.length=0,o.push(s,...e)}am(e=>({...e,transformedDataCopy1:o,selectVariant:s}))}catch(e){console.error("Error fetching selling prices:",e)}finally{n5(!1)}};return(0,a.useEffect)(()=>{(null==ao?void 0:ao.length)>0?af(ao):am(e=>({...e,transformedDataCopy1:ao}))},[ao]),console.log(av,"qqqwww"),(0,a.useEffect)(()=>{(async()=>{try{var e,l;let t=await j.A.get("".concat(N.configuration.APP_URL_PRODUCTS,"model?lob=1"));console.log(t,"ccc");let n=null==t||null==(l=t.data)||null==(e=l.data)?void 0:e.map(e=>({...e}));console.log(n,"ccc1"),nk(n)}catch(e){console.log("Error in API call",e),nD(!1)}})()},[]),console.log(av,"hhh"),(0,a.useEffect)(()=>{if((null==nI?void 0:nI.length)&&(null==av?void 0:av.defaultModel)){let e=nI.find(e=>e.model_code===(null==av?void 0:av.defaultModel));e&&n3(e)}},[nI,av]),(0,a.useEffect)(()=>{var e,l;if(av.selectedDownpayment&&(null==av||null==(e=av.selectVariant)?void 0:e.selling_price)){let e=parseFloat(av.selectedDownpayment)/100*(nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price));console.log(e,"yyy"),am(l=>({...l,downpaymentAmount:e}))}},[av.selectedDownpayment,nR,null==av||null==(v=av.selectVariant)?void 0:v.selling_price]),(0,a.useEffect)(()=>{var e,l;if(av.selectedDownpaymenamount&&(null==ac||null==(e=ac.downpaymentDetails)?void 0:e.type)==="amount"){let e=parseFloat(av.selectedDownpaymenamount)/100*(nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price));am(l=>({...l,downpaymentAmount:e}))}},[av.selectedDownpaymenamount,nR,null==av||null==(_=av.selectVariant)?void 0:_.selling_price]),(0,a.useEffect)(()=>{(async()=>{try{var e;let l=await j.A.get("".concat(N.configuration.COMMON_MASTER_API,"/address/").concat(N.configuration.ADD_LEVEL,"?status=true&countryCode=").concat(N.configuration.COUNTRY_CODE,"&lob=1&level").concat(N.configuration.ADD_LEVEL-1),N.c
1onfiguration.HEADER_DEALER_LOCATOR);console.log(l,"www"),ai(null==l||null==(e=l.data)?void 0:e.data)}catch(e){console.log("Error in Address API call",e)}})()},[n6]),(0,a.useEffect)(()=>{let e="",l=[];1==N.configuration.ADD_LEVEL?e="addressLevel1":2==N.configuration.ADD_LEVEL?e="addressLevel2":3==N.configuration.ADD_LEVEL?e="addressLevel3":4==N.configuration.ADD_LEVEL&&(e="addressLevel4"),aa&&aa.map(t=>{l.push(null==t?void 0:t[e])}),l.sort((e,l)=>e.name.localeCompare(l.name)),nw(l)},[aa]),(0,a.useEffect)(()=>{var e,l,t,n,a,i,o;if(!(null==ac?void 0:ac.City_to_be_shown)&&(null==ac||null==(e=ac.interestSelection)?void 0:e.showintrest)===!1&&(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)){let e=null==av?void 0:av.defaultModel,l=(null==ac||null==(t=ac.interestSelection)?void 0:t.addressConfig)||[],n=l.find(l=>{var t;return(null==l||null==(t=l.model)?void 0:t.modelCode)===e});if(!n||(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)){let e=l.find(e=>{var l;return(null==e||null==(l=e.model)?void 0:l.modelCode)==="All"});!e||(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)?(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)?am(e=>{var l,t,n;let a=null==ac||null==(l=ac.modelTenureValues)?void 0:l.find(l=>l.Downpayment_Percentage==e.selectedDownpayment),i=null==a||null==(t=a.tenureTable)?void 0:t.find(l=>l.modelCode===e.defaultModel),o=null==i||null==(n=i.tenures)?void 0:n.find(l=>l.tenure==e.selectedTenure);return{...e,selectedInterest:o?Number(o.value):void 0}}):am({...av,selectedInterest:"--"}):am({...av,selectedInterest:null==e?void 0:e.interestRate})}else am({...av,selectedInterest:null==n?void 0:n.interestRate})}else if((null==ac||null==(l=ac.interestSelection)?void 0:l.showintrest)==!0&&(null==ac?void 0:ac.City_to_be_shown))am({...av,selectedInterest:null==ac||null==(a=ac.interestSelection)||null==(n=a.intrestConfig)?void 0:n.defaultIntrest});else{let e="";1==N.configuration.ADD_LEVEL?e="addressL1":2==N.configuration.ADD_LEVEL?e="addressL2":3==N.configuration.ADD_LEVEL?e="addressL3":4==N.configuration.ADD_LEVEL&&(e="addressL4"),(null==av?void 0:av.defaultModel)&&nA&&(null==(o=ac.interestSelection)||null==(i=o.addressConfig)||i.map(l=>{var t,n,a,i;console.log(l,"vvv11"),(null==l?void 0:l[e])==nA&&(null==l||null==(t=l.model)?void 0:t.modelCode)==(null==av?void 0:av.defaultModel)||(null==l?void 0:l[e])=="All"&&(null==l||null==(n=l.model)?void 0:n.modelCode)==(null==av?void 0:av.defaultModel)||(null==l?void 0:l[e])=="All"&&(null==l||null==(a=l.model)?void 0:a.modelCode)=="All"?am({...av,selectedInterest:null==l?void 0:l.interestRate}):(null==l?void 0:l[e])==nA&&(null==l||null==(i=l.model)?void 0:i.modelCode)=="All"&&am({...av,selectedInterest:null==l?void 0:l.interestRate})}))}},[nA,null==av?void 0:av.defaultModel]),(0,a.useEffect)(()=>{if((null==nI?void 0:nI.length)>0&&(null==av?void 0:av.defaultModel)){let e=nI.find(e=>e.model_code===av.defaultModel);console.log(e,"ggg"),e&&(nY(e.model_code),nL(e.variants||[]))}},[nI,null==av?void 0:av.defaultModel]),console.log(null==av?void 0:av.defaultModel,"www"),console.log(nB,"aaaaa"),console.log(nO,"aaaaa11"),(0,a.useEffect)(()=>{var e,l,t,n,a,i;nM(0),nV(0),(null==av||null==(e=av.selectVariant)?void 0:e.taxChargeDetails)&&(null==av||null==(t=av.selectVariant)||null==(l=t.taxChargeDetails)||l.map(e=>{if(null==ac?void 0:ac.isvehicleAdditionalCondition)nz.length>0&&nz.forEach(l=>{var t,n;null==(n=l.value)||null==(t=n.methodValue)||t.forEach(l=>{(null==l?void 0:l.type)===(null==e?void 0:e.taxChargeType)&&((null==e?void 0:e.valueType)===1?nM(l=>{var t;return l+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==e?void 0:e.value)/100}):nM(l=>l+(null==e?void 0:e.value)))})});else{var l;null==ac||null==(l=ac.vehicleAdditionalCharge)||l.map(l=>{(null==l?void 0:l.type)==(null==e?void 0:e.taxChargeType)&&((null==e?void 0:e.valueType)==1?nM(l=>{var t;return l+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==e?void 0:e.value)/100}):nM(l=>l+(null==e?void 0:e.value)))})}})),(null==av||null==(n=av.selectVariant)?void 0:n.taxChargeDetails)&&(null==av||null==(i=av.selectVariant)||null==(a=i.taxChargeDetails)||a.map(e=>{if(null==ac?void 0:ac.isDownpaymentCondition)nB.length>
10&&nB.forEach(l=>{var t,n;null==(n=l.value)||null==(t=n.methodValue)||t.forEach(l=>{(null==l?void 0:l.type)===(null==e?void 0:e.taxChargeType)&&((null==e?void 0:e.valueType)===1?nV(l=>{var t;return l+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==e?void 0:e.value)/100}):nV(l=>l+(null==e?void 0:e.value)))})});else{var l;null==ac||null==(l=ac.downpaymentAdditionalCharge)||l.map(l=>{(null==l?void 0:l.type)==(null==e?void 0:e.taxChargeType)&&((null==e?void 0:e.valueType)==1?nV(l=>{var t;return l+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==e?void 0:e.value)/100}):nV(l=>l+(null==e?void 0:e.value)))})}}))},[null==av||null==(y=av.selectVariant)?void 0:y.selling_price,null==av||null==(T=av.selectVariant)?void 0:T.taxChargeDetails,nB,nz]),console.log(n0,"uuuu111"),(0,a.useEffect)(()=>{""!=n9.dealerCode&&(async()=>{try{var e;let l=null==(e=(await j.A.get("".concat(N.configuration.APP_URL_CONTENTS,"/forms?lob=").concat(N.configuration.API_LOB,"&dealer_code=").concat(n9.dealerCode),N.configuration.HEADER_DEALER_LOCATOR_VAPT)).data[0])?void 0:e.forms;console.log(l,"llll4444"),n1(l)}catch(e){console.log(e.message)}})()},[]),console.log(nX,"rrrr111"),(0,a.useEffect)(()=>{(async()=>{var e,l;console.log(nH,"cash",nR,"total",null==av||null==(e=av.selectVariant)?void 0:e.selling_price,null==av?void 0:av.downpaymentAmount,null==av?void 0:av.selectedInterest);let t=nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price)-(null==av?void 0:av.downpaymentAmount);n$((await ap(t,null==av?void 0:av.selectedTenure,null==av?void 0:av.selectedInterest)).toFixed(2))})()},[null==av||null==(E=av.selectVariant)?void 0:E.selling_price,null==av?void 0:av.downpaymentAmount,null==av?void 0:av.selectedInterest,null==av?void 0:av.selectedTenure,nH,nR,nO]),(0,a.useEffect)(()=>{console.log(ae,"inputValue",typeof ae),"0"===ae&&al("")},[ae]),(0,n.jsx)(n.Fragment,{children:nE?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f(),{children:(0,n.jsx)("meta",{name:"description",content:"".concat("")})}),(0,n.jsx)(p.A,{title:"".concat("")}),(0,n.jsx)("div",{className:"container-fluid mt-[60px]",children:(0,n.jsxs)("div",{className:"container mt-[100px] finanance_calculator",children:[(0,n.jsxs)("div",{className:"text-left font-suzukiBold text-primary-blue text-heading pb-[50px] f-heading",children:[r.Constants.expericencIcon.FINANCE_CALCULATOR,(null===N.configuration||void 0===N.configuration?void 0:N.configuration.COUNTRY_CODE)=="MEX"&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:(null===r.Constants||void 0===r.Constants||null==(D=r.Constants.EMICALCULATOR)?void 0:D.LEGAL_DISCLAIMER)?null===r.Constants||void 0===r.Constants||null==(I=r.Constants.EMICALCULATOR)?void 0:I.LEGAL_DISCLAIMER:"Aviso Legal: Los precios son indicativos y su aplicabilidad est\xe1 sujeta a la fecha de facturaci\xf3n del veh\xedculo.Para detalles espec\xedficos, puede visitar su concesionario m\xe1s cercano.*Los c\xe1lculos son una simulaci\xf3n de mensualidades con cifras aproximadas."})})]}),(0,n.jsxs)("div",{className:"f-container",children:[(0,n.jsx)("div",{className:"f-boxLeft",children:(0,n.jsxs)("div",{class:"f-boxForm",children:[(0,n.jsx)("div",{className:"mb-[25px]",children:(0,n.jsx)(i.A,{id:"selectedmodel",style:{fontSize:"18px"},label:r.Constants.EMICALCULATOR.SELECT_MODEL,items:nI,selectedModelCode:null==av?void 0:av.defaultModel,placeholder:r.Constants.EMICALCULATOR.SELECT_MODEL,onChange:e=>{let l=JSON.parse(e.target.value);(null==l?void 0:l.model_code)?(am(e=>{var t,n,a,i,o,s,r,u,c,d,v,m,p,g,_;return{...e,defaultModel:l.model_code,defaultModelName:l.model_name,selectedDownpayment:Number(null==ac||null==(n=ac.downpaymentDetails)||null==(t=n.percentageConfig)?void 0:t.defaultDownpayment),selectedDownpaymenamount:Number(null==ac||null==(i=ac.downpaymentDetails)||null==(a=i.amoutConfig)?void 0:a.defaultDownpayment),selectedTenure:null==ac||null==(o=ac.tenureDetails)?void 0:o.defaultTenure,selectedInterest:(null==ac?void 0:ac.Tenure_Based_Intrest_Toggle)?(()=>{var l,t,n;let a=null==ac||null==(l=ac.modelTenureValues)?void 0:l.find(e=>e.Downpayment_Percentage==(null==av?void 0:av.selectedDownpayment)),i=null==a||null==(t=a.tenureTable)?void 0:t.find(e=>e.modelCode===(null==av?void 0:av.defaultModel)),o=null==i||null==(n=i.tenures)?void 0:n.find(l=>l.tenure==e.selectedTenure);return o?Number(o.value):void 0})():(null==ac?void 0:ac.City_to_be_shown)||(null==ac||null==(s=ac.interestSelection)?void 0:s.showintrest)?null==ac||!ac.City_to_be_shown||(null==ac||null==(d=ac.interestSelection)?void 0:d.showintrest)?null==ac||null==(_=ac.interestSelection)||null==(g=_.intrestConfig)?void 0:g.defaultIntrest:null==ac||null==(p=ac.interestSelection)||null==(m
1=p.addressConfig)||null==(v=m[0])?void 0:v.interestRate:null==ac||null==(c=ac.interestSelection)||null==(u=c.addressConfig)||null==(r=u[0])?void 0:r.interestRate}}),nL(l.variants||[]),nP(""),nb(!1)):(am(e=>({...e,defaultModel:""})),nL([]),nP("")),an("")}})}),(0,n.jsxs)("div",{className:"mb-[25px] relative",children:[(0,n.jsx)("label",{className:"label-text",children:r.Constants.EMICALCULATOR.SELECT_VARIANT}),(0,n.jsx)("div",{className:"f-selectvariantWrapper",style:{minHeight:"100px"},children:n4?(0,n.jsx)("div",{className:"f-loader",children:(0,n.jsx)(c.default,{})}):(0,n.jsx)("div",{className:"f-selectvariant".concat((null==av||null==(k=av.transformedDataCopy1)?void 0:k.length)>3?" scrollable":""),ref:n7,children:null==av||null==(S=av.transformedDataCopy1)?void 0:S.map((e,l)=>{var t,a,i,o,s,r,u,c;return(0,n.jsxs)("div",{className:(null==e?void 0:e._id)===(null==av||null==(t=av.selectVariant)?void 0:t._id)?"f-selectvariantCard f-borderSelected":"f-selectvariantCard f-border",onClick:()=>{am(l=>({...l,selectVariant:e,selectedDownpayment:l.selectedDownpayment,selectedDownpaymenamount:l.selectedDownpaymenamount,downpaymentAmount:l.downpaymentAmount})),an("")},tabIndex:0,onKeyDown:l=>{"Enter"===l.key&&(l.preventDefault(),am(l=>({...l,selectVariant:e,selectedDownpayment:l.selectedDownpayment,selectedDownpaymenamount:l.selectedDownpaymenamount,downpaymentAmount:l.downpaymentAmount})))},onFocus:e=>{e.currentTarget.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},children:[(0,n.jsx)("div",{className:"f-check",children:(0,n.jsx)("input",{type:"checkbox",checked:(null==e?void 0:e._id)===(null==av||null==(a=av.selectVariant)?void 0:a._id),name:"name2",className:"checkbox_round checkbox2",tabIndex:-1,readOnly:!0,"aria-label":"Select variant"})}),(0,n.jsx)("div",{className:"f-carImg",children:(0,n.jsx)(b(),{src:N.configuration.IMG_URL+(null==(i=(null==e||null==(o=e.colors)?void 0:o.find(e=>!0===e.is_default))||(null==e||null==(s=e.colors)?void 0:s[0]))?void 0:i.image),width:160,height:100,alt:"model_variant"})}),(0,n.jsx)("h3",{className:"f-variantNam mb-4",children:null==e?void 0:e.variant_name}),(0,n.jsx)("p",{className:"mb-0",children:(null==ac||null==(r=ac.vehiclePrice)?void 0:r.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_one)?null==n2?void 0:n2.variant_cmp_pricetext_one:(null==ac||null==(u=ac.vehiclePrice)?void 0:u.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_two)?null==n2?void 0:n2.variant_cmp_pricetext_two:(null==ac||null==(c=ac.vehiclePrice)?void 0:c.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_three)?null==n2?void 0:n2.variant_cmp_pricetext_three:null}),(0,n.jsx)("h4",{className:"f-price mb-0",children:(null==e?void 0:e.selling_price)?(0,g.vv)(null==e?void 0:e.selling_price):"-"})]},e._id||l)})})}),(null==av||null==(L=av.transformedDataCopy)?void 0:L.length)>3&&!n4&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:()=>ag(-180),className:"f-navButton leftButton"}),(0,n.jsx)("div",{onClick:()=>ag(180),className:"f-navButton rightButton"})]})]}),(null==ac||null==(R=ac.downpaymentDetails)?void 0:R.type)==="percentage"?(0,n.jsxs)("div",{className:"f-horizontalRow ".concat((null==ac||null==(O=ac.downpaymentDetails)||null==(M=O.percentageConfig)?void 0:M.sliderSelection)?"desktop-block":"desktop-flex"),children:[(0,n.jsxs)("div",{className:"mb-[25px] ",children:[(0,n.jsx)("label",{className:"label-text",children:r.Constants.EMICALCULATOR.SELECT_DOWNPAYMENT}),!0==!(null==ac||null==(U=ac.downpaymentDetails)||null==(V=U.percentageConfig)?void 0:V.sliderSelection)?(0,n.jsx)("div",{style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:null==ac||null==(Y=ac.downpaymentDetails)||null==(F=Y.percentageConfig)||null==(P=F.selectorblocks)?void 0:P.map((e,l)=>(0,n.jsx)("div",{className:"f-selectBox ".concat(av.selectedDownpayment===e?"selected":""),onClick:()=>{var l;let t=parseFloat(e)/100*(nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price));am(l=>({...l,selectedDownpayment:e,downpaymentAmount:t})),nb(!1)},role:"button",onKeyDown:l=>{if("Enter"===l.key||" "===l.key){var t;l.preventDefault();let n=parseFloat(e)/100*(nR+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price));am(l=>({...l,selectedDownpayment:e,downpaymentAmount:n}))}},tabIndex:0,"aria-label":"Select Downpayment",children:(0,n.jsx)("span",{children:e})},l))}):(0,n.jsx)("div",{className:" pt-[25px] relative",children:(0,n.jsxs)("div",{className:"f-horizontalRow  max-sm:flex",children:[(0,n.jsxs)("div",{className:"flex items-center relative min-w-[80%] md:min-w-[90%]",children:[(0,n.jsxs)("span",{className:"pr-2 p-[0px] m-[0px] box-border ",children:[null==ac||null==(G=ac.downpaymentDetails)||null==(B=G.percentageConfig)?void 0:B.selectorblocks[0],"%"]}),console.log(null==av?void 0:av.selectedDownpayment,"lllll"),(0,n.jsx)("input",{className:"w-full h-[2px] sliderinput relative",id:"downpayment",name:"downpayment",type:"range",min:null==ac||null==(W=ac.downpaymentDetails)||null==(z=W.percentageConfig)?void 0:z.selectorblocks[0],max:null==ac||null==(Q=ac.downpaymentDetails)||null==(q=Q.percentageConfig)||null==(H=q.selectorblocks)?void 0:H.at(-1),value:null==av?void 0:av.selectedDownpayment,onChange:e=>{var l;let t=parseFloat(e.target.value)/100*(nR+(null==av||null==(l=av.selectVariant)?void 0:l.selling_price));am(l=>({...l,selectedDownpayment:e.target.value,downpaymentAmount:t})),nb(!1)},style:{"-webkit-appearance":"none",background:"#636363"},"aria-label":"Downpayment"}),(0,n.jsx)("div",{className:"range-line3",children:(0,n.jsx)("span",{className:"active-line3"})}),(0,n.jsxs)("span",{className:" pl-2 p-[0px] m-[0px] box-border",children:[null==ac||null==(Z=ac.downpaymentDetails)||null==(K=Z.percentageConfig)||null==(J=K.selectorblocks)?void 0:J.at(-1),"%"]})]}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{className:"f-selectBoxSlider",children:(0,n.jsx)("span",{children:null==av?void 0:av.selectedDownpayment})})]})})]}),(0,n.jsx)("div",{className:"mb-[25px] ".concat((null==ac||null==(ee=ac.downpaymentDetails)||null==($=ee.percentageConfig)||null==(X=$.selectorblocks)?void 0:X.length)>12?"h-[100px]":(null==ac||null==(en=ac.downpaymentDetails)||null==(et=en.percentageConfig)||null==(el=et.selectorblocks)?void 0:el.length)>6?"h-[80px]":"h-auto"),children:(0,n.jsx)(o.A,{id:"downpayment",style:{backgroundColor:"#eeeeee",fontSize:"18px"},label:r.Constants.EMICALCULATOR.AMOUNT_TO_FINANCE,type:"text",disabled:!0,value:av.downpaymentAmount?(0,g.vv)(Math.round(av.downpaymentAmount)):"--"})})]}):(0,n.jsxs)("div",{className:"f-horizontalRow flex flex-col",children:[(0,n.jsxs)("div",{className:"mb-[25px] w-full",children:[(0,n.jsx)(o.A,{id:"downpayment",label:r.Constants.EMICALCULATOR.AMOUNT,type:"text",value:(0,g.EM)(ae)?ae:"",onChange:e=>{let l=e.target.value;if(nb(!0),/^\d*\.?\d*$/.test(l)){al(l);let e=parseFloat(l);
1if(!isNaN(e)){var t,n,a,i,o,s,u,c,d,v,m;let l=e/(nR+(null==av||null==(t=av.selectVariant)?void 0:t.selling_price))*100;l>=(null==ac||null==(a=ac.downpaymentDetails)||null==(n=a.amoutConfig)?void 0:n.selectorblocks[0])&&l<=(null==ac||null==(s=ac.downpaymentDetails)||null==(o=s.amoutConfig)||null==(i=o.selectorblocks)?void 0:i.at(-1))?(an(""),am(t=>({...t,downpaymentAmount:e,selectedDownpaymenamount:l.toFixed(2)}))):an("".concat(r.Constants.EMICALCULATOR.DOWNPAYMENT_ERROR_MSG_1," ").concat(null==ac||null==(c=ac.downpaymentDetails)||null==(u=c.amoutConfig)?void 0:u.selectorblocks[0],"% ").concat(r.Constants.EMICALCULATOR.DOWNPAYMENT_ERROR_MSG_2," ").concat(null==ac||null==(m=ac.downpaymentDetails)||null==(v=m.amoutConfig)||null==(d=v.selectorblocks)?void 0:d.at(-1),"% ").concat(r.Constants.EMICALCULATOR.DOWNPAYMENT_ERROR_MSG_3))}}},onFocus:()=>nb(!0),onBlur:()=>nb(!1)}),console.log(at,"errorMessage"),at&&(0,n.jsx)("span",{className:"text-red-500",style:{color:"red"},children:at})]}),(null==ac||null==(ei=ac.downpaymentDetails)||null==(ea=ei.amoutConfig)?void 0:ea.showSlider)===!0&&(0,n.jsx)("div",{className:"pb-[25px] relative w-full",children:(0,n.jsxs)("div",{className:"f-horizontalRow",children:[(0,n.jsxs)("div",{className:"flex items-center relative",style:{minWidth:"90%"},children:[(0,n.jsxs)("span",{className:"pr-2 p-[0px] m-[0px] box-border ",children:[null==ac||null==(es=ac.downpaymentDetails)||null==(eo=es.amoutConfig)?void 0:eo.selectorblocks[0],"%"]}),(0,n.jsx)("input",{className:"w-full h-[2px] sliderinput relative",id:"downpayment",name:"downpayment",type:"range",min:null==ac||null==(eu=ac.downpaymentDetails)||null==(er=eu.amoutConfig)?void 0:er.selectorblocks[0],max:null==ac||null==(ev=ac.downpaymentDetails)||null==(ed=ev.amoutConfig)||null==(ec=ed.selectorblocks)?void 0:ec.at(-1),step:"0.5",value:av.selectedDownpaymenamount,onChange:e=>{var l;let t=parseFloat(e.target.value)/100*(null==av||null==(l=av.selectVariant)?void 0:l.selling_price);am(l=>({...l,selectedDownpaymenamount:e.target.value,downpaymentAmount:t})),an(""),nb(!1)},style:{"-webkit-appearance":"none",background:"linear-gradient(to right, #007bff ".concat((av.selectedDownpaymenamount-(null==ac||null==(ep=ac.downpaymentDetails)||null==(em=ep.amoutConfig)?void 0:em.selectorblocks[0]))/((null==ac||null==(ef=ac.downpaymentDetails)||null==(e_=ef.amoutConfig)||null==(eg=e_.selectorblocks)?void 0:eg.at(-1))-(null==ac||null==(eh=ac.downpaymentDetails)||null==(ex=eh.amoutConfig)?void 0:ex.selectorblocks[0]))*100,"%, #C0C0C0 0%)")},"aria-label":"Downpayment"}),(0,n.jsxs)("span",{className:" pl-2 p-[0px] m-[0px] box-border",children:[null==ac||null==(eC=ac.downpaymentDetails)||null==(eb=eC.amoutConfig)||null==(ey=eb.selectorblocks)?void 0:ey.at(-1),"%"]})]}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{className:"f-selectBoxSlider",children:(0,n.jsx)("span",{children:av.selectedDownpaymenamount})})]})})]}),(0,n.jsxs)("div",{className:"mb-[25px] ",children:[(0,n.jsx)("label",{className:"label-text",children:r.Constants.EMICALCULATOR.SELECT_MONTH}),(0,n.jsx)("div",{className:"",style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:!0==!(null==ac||null==(ew=ac.tenureDetails)?void 0:ew.sliderSelection)?null==ac||null==(ej=ac.tenureDetails)||null==(eN=ej.selectorblocks)?void 0:eN.map((e,l)=>(0,n.jsx)("div",{className:"f-selectBox ".concat(av.selectedTenure===e?"selected":""),onClick:()=>{am(l=>({...l,selectedTenure:e}))},role:"button",onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),am(l=>({...l,selectedTenure:e})))},tabIndex:0,"aria-label":"Tenure",children:(0,n.jsx)("span",{children:e})},l)):(0,n.jsx)("div",{className:"pt-[25px] relative w-full",children:(0,n.jsxs)("div",{className:"f-horizontalRow",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between pl-[4px] sm:pr-[0px] pr-[40px] w-full",children:[(0,n.jsx)("span",{className:"text-sm text-[#001151] font-medium mr-2 ",children:null==ac||null==(eA=ac.tenureDetails)?void 0:eA.selectorblocks[0]}),(0,n.jsxs)("div",{className:"flex items-center relative",style:{minWidth:"88%"},children:[(0,n.jsx)("input",{className:"w-full h-[2px] relative cursor-pointer appearance-none rounded-full   [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-thumb]:appearance-none  [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4  [&::-webkit-slider-thumb]:bg-white  [&::-webkit-slider-thumb]:rounded-full  [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-[#001151] [&::-webkit-slider-thumb]:shadow-md",id:"downpayment",name:"downpayment",type:"range",min:null==ac||null==(eT=ac.tenureDetails)?void 0:eT.selectorblocks[0],max:null==ac||null==(eD=ac.tenureDetails)||null==(eE=eD.selectorblocks)?void 0:eE.at(-1),step:null==ac||null==(eI=ac.tenureDetails)?void 0:eI.tenureGap,value:null==av?void 0:av.selectedTenure,onChange:e=>{var l,t;let n=parseFloat(e.target.value);(null==ac||null==(t=ac.tenureDetails)||null==(l=t.selectorblocks)?void 0:l.map(Number)).includes(n)?am(e=>({...e,selectedTenure:n})):console.log("Invalid step:",n)},style:{WebkitAppearance:"none",background:"linear-gradient(to right, #001151 0%, #001151  \n          ".concat(parseFloat(((null==av?void 0:av.selectedTenure)-(null==ac||null==(ek=ac.tenureDetails)?void 0:ek.selectorblocks[0]))/((null==ac||null==(eL=ac.tenureDetails)||null==(eS=eL.selectorblocks)?void 0:eS.at(-1))-(null==ac||null==(eR=ac.tenureDetails)?void 0:eR.selectorblocks[0]))*100).toFixed(2),"%, \n          #DBDBDB ").concat(parseFloat(((null==av?void 0:av.selectedTenure)-(null==ac||null==(eM=ac.tenureDetails)?void 0:eM.selectorblocks[0]))/((null==ac||null==(eV=ac.tenureDetails)||null==(eO=eV.selectorblocks)?void 0:eO.at(-1))-(null==ac||null==(eU=ac.tenureDetails)?void 0:eU.selectorblocks[0]))*100).toFixed(2),"%, \n          #DBDBDB 100%)"),borderRadius:"2px",position:"relative"},"aria-label":"Tenure"}),(0,n.jsx)("div",{className:"absolute top-1/2 left-0 right-0 h-[2px] pointer-events-none",children:null==ac||null==(eP=ac.tenureDetails)?void 0:eP.selectorblocks.map((e,l,t)=>{let a=t[0],i=t[t.length-1];
1return(0,n.jsx)("div",{className:"absolute h-[10px] w-[2px] bg-black",style:{left:"".concat((e-a)/(i-a)*100,"%"),transform:"translateX(-50%) translateY(-50%)"}},l)})})]}),(0,n.jsx)("span",{className:"text-sm text-[#001151] font-medium mr-7 ml-2",children:null==ac||null==(eY=ac.tenureDetails)||null==(eF=eY.selectorblocks)?void 0:eF.at(-1)})]}),(0,n.jsx)("div",{className:"f-selectBoxSlider text-center",children:(0,n.jsx)("span",{className:"text-base font-semibold",children:null==av?void 0:av.selectedTenure})})]})})})]}),(null==ac||null==(eB=ac.interestSelection)?void 0:eB.showintrest)&&(0,n.jsxs)("div",{className:"mb-[25px] ",children:[(0,n.jsx)("label",{className:"label-text",children:r.Constants.EMICALCULATOR.SELECT_INTREST_RATE}),!0==!(null==ac||null==(ez=ac.interestSelection)||null==(eG=ez.intrestConfig)?void 0:eG.sliderSelection)?(0,n.jsx)("div",{className:"",style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:null==ac||null==(eq=ac.interestSelection)||null==(eH=eq.intrestConfig)||null==(eW=eH.selectorblocks)?void 0:eW.map((e,l)=>(0,n.jsx)("div",{className:"f-selectBox ".concat(av.selectedInterest===e?"selected":""),onClick:()=>{am(l=>({...l,selectedInterest:e}))},role:"button",onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),am(l=>({...l,selectedInterest:e})))},tabIndex:0,"aria-label":"Interest Rate",children:(0,n.jsx)("span",{children:e})},l))}):(0,n.jsx)("div",{className:"pt-[25px] relative w-full",children:(0,n.jsxs)("div",{className:"f-horizontalRow",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between  pl-[4px] sm:pr-[0px] pr-[50px] w-full",children:[(0,n.jsx)("span",{className:"text-sm text-[#001151] font-medium mr-2",children:null==ac||null==(eJ=ac.interestSelection)||null==(eQ=eJ.intrestConfig)?void 0:eQ.selectorblocks[0]}),(0,n.jsxs)("div",{className:"flex items-center relative",style:{minWidth:"88%"},children:[(0,n.jsx)("input",{className:"w-full h-[2px] relative cursor-pointer appearance-none rounded-full   [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-thumb]:appearance-none  [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4  [&::-webkit-slider-thumb]:bg-white  [&::-webkit-slider-thumb]:rounded-full  [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-[#001151] [&::-webkit-slider-thumb]:shadow-md",id:"downpayment",name:"downpayment",type:"range",min:null==ac||null==(eZ=ac.interestSelection)||null==(eK=eZ.intrestConfig)?void 0:eK.selectorblocks[0],max:null==ac||null==(e0=ac.interestSelection)||null==(e$=e0.intrestConfig)||null==(eX=e$.selectorblocks)?void 0:eX.at(-1),step:null==ac||null==(e2=ac.interestSelection)||null==(e1=e2.intrestConfig)?void 0:e1.intrestgap,value:null==av?void 0:av.selectedInterest,onChange:e=>{var l,t;let n=parseFloat(e.target.value);(null==ac||null==(t=ac.interestSelection)||null==(l=t.intrestConfig)?void 0:l.selectorblocks.map(Number)).includes(n)?am(e=>({...e,selectedInterest:n})):console.log("Invalid step: ",n)},style:{WebkitAppearance:"none",background:"linear-gradient(to right, #001151 0%, #001151  \n                              ".concat(parseFloat(((null==av?void 0:av.selectedInterest)-(null==ac||null==(e4=ac.interestSelection)||null==(e3=e4.intrestConfig)?void 0:e3.selectorblocks[0]))/((null==ac||null==(e8=ac.interestSelection)||null==(e7=e8.intrestConfig)||null==(e5=e7.selectorblocks)?void 0:e5.at(-1))-(null==ac||null==(e6=ac.interestSelection)||null==(e9=e6.intrestConfig)?void 0:e9.selectorblocks[0]))*100).toFixed(2),"%, \n                              #DBDBDB ").concat(parseFloat(((null==av?void 0:av.selectedInterest)-(null==ac||null==(le=ac.tenureDetails)?void 0:le.selectorblocks[0]))/((null==ac||null==(ln=ac.interestSelection)||null==(lt=ln.intrestConfig)||null==(ll=lt.selectorblocks)?void 0:ll.at(-1))-(null==ac||null==(li=ac.interestSelection)||null==(la=li.intrestConfig)?void 0:la.selectorblocks[0]))*100).toFixed(2),"%, \n                              #DBDBDB 100%)"),borderRadius:"2px",position:"relative"},"aria-label":"Interest Rate"}),(0,n.jsx)("div",{className:"absolute top-1/2 left-0 right-0 h-[2px] pointer-events-none",children:null==ac||null==(ls=ac.interestSelection)||null==(lo=ls.intrestConfig)?void 0:lo.selectorblocks.map((e,l,t)=>{let a=t[0],i=t[t.length-1];
1return(0,n.jsx)("div",{className:"absolute h-[10px] w-[2px] bg-black",style:{left:"".concat((e-a)/(i-a)*100,"%"),transform:"translateX(-50%) translateY(-50%)"}},l)})})]}),(0,n.jsx)("span",{className:"text-sm text-[#001151] font-medium mr-6 ml-3",children:null==ac||null==(lc=ac.interestSelection)||null==(lu=lc.intrestConfig)||null==(lr=lu.selectorblocks)?void 0:lr.at(-1)})]}),(0,n.jsx)("div",{className:"f-selectBoxSlider text-center",children:(0,n.jsx)("span",{className:"text-base font-semibold",children:null==av?void 0:av.selectedInterest})})]})})]}),(null==ac?void 0:ac.Interest_to_be_shown)&&(0,n.jsx)("div",{className:"mb-[25px]\n                      }",children:(0,n.jsx)(o.A,{id:"downpayment",label:r.Constants.EMICALCULATOR.INTREST_RATE,type:"text",disabled:!0,value:null==av?void 0:av.selectedInterest})}),(null==ac?void 0:ac.City_to_be_shown)&&(0,n.jsx)("div",{className:"mb-[25px]",children:(0,n.jsx)(m,{id:"city",label:"name",label2:"Select City",options:nC,selectedVal:nA,handleChange:nT,calculationData:av,setCaculationData:am,placeholder:r.Constants.EMICALCULATOR.SELECT_CITY})}),(0,n.jsx)(n.Fragment,{children:(null==ac?void 0:ac.isvehicleAdditionalCondition)?null==ac||null==(ld=ac.vehicleAdditionalChargeCondition)?void 0:ld.map((e,l)=>(0,n.jsx)("div",{className:"mb-[25px]",children:(0,n.jsx)(i.A,{id:"selectedvehicleCharge",label:null==e?void 0:e.title,items:null==e?void 0:e.condition,placeholder:r.Constants.EMICALCULATOR.SELECT,onChange:t=>{let n=t.target.value;if(n){let t=JSON.parse(n);console.log("Selected:",t),(null==t?void 0:t.methodValue)&&(am(l=>({...l,vechileTaxs:{...l.vechileTaxs,[e.title]:{[t.methodName]:t.methodValue}}})),nW(n=>{let a=[...n];return a[l]={label:null==e?void 0:e.title,value:t},a}),nP(""),nb(!1))}else nW(e=>{let t=[...e];return t.splice(l,1),t}),nP("")}})},l)):""}),(0,n.jsx)(n.Fragment,{children:(null==ac?void 0:ac.isDownpaymentCondition)?null==ac||null==(lv=ac.downpaymentAdditionalChargeCondition)?void 0:lv.map((e,l)=>(0,n.jsx)("div",{className:"mb-[25px]",children:(0,n.jsx)(i.A,{id:"selectedDownpaymentCharge",label:null==e?void 0:e.title,items:null==e?void 0:e.condition,placeholder:r.Constants.EMICALCULATOR.SELECT,onChange:t=>{let n=t.target.value;if(n){var a;let t=JSON.parse(n),i=t.methodName,o=t.methodValue,s=nR+(null==av||null==(a=av.selectVariant)?void 0:a.selling_price)-(null==av?void 0:av.downpaymentAmount);"Cash"===i||"cash"===i||"De contado"===i?(nJ(0),nq(s)):("Finance"===i||"Financed"===i||"Financiado"===i||"Funded"===i)&&(nq(0),nJ(s)),nG(n=>{let a=[...n];return a[l]={label:null==e?void 0:e.title,value:t},a}),o&&am(l=>({...l,downpaymentTax:{...l.downpaymentTax,[e.title]:{[i]:o}}}))}else nJ(0),nq(0),nG(e=>{let t=[...e];return t.splice(l,1),t}),nP(""),nb(!1)}})},l)):""}),(0,n.jsx)("div",{className:" hidden lg:block flex justify-center",children:(0,n.jsxs)("div",{className:"lg:w-[640px] w-[354px] flex lg:flex-row flex-col lg:gap-[22px] gap-[10px]",children:[(null==ac?void 0:ac.ctasettings)&&(null==ac?void 0:ac.ctasettings[0])&&((null==ac||null==(lp=ac.ctasettings)||null==(lm=lp[0])?void 0:lm.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(l_=ac.ctasettings)||null==(lg=l_[0])?void 0:lg.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(lf=ac.ctasettings[0])?void 0:lf.link,target:(null==ac||null==(lx=ac.ctasettings[0])?void 0:lx.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lh=ac.ctasettings[0])?void 0:lh.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[0])?void 0:e.selectform))},buttontext:null==ac||null==(ly=ac.ctasettings[0])?void 0:ly.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(null==ac||null==(lb=ac.ctasettings[0])?void 0:lb.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"lg:w-1/3",style:{display:"flex",alignItems:"flex-end"},children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(lC=ac.ctasettings[0])?void 0:lC.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(lw=ac.ctasettings[0])?void 0:lw.link,target:(null==ac||null==(lN=ac.ctasettings[0])?void 0:lN.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lj=ac.ctasettings[0])?void 0:lj.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[0])?void 0:e.selectform))},buttontext:null==ac||null==(lA=ac.ctasettings[0])?void 0:lA.ctatitle})})}):(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(lT=ac.ctasettings[0])?void 0:lT.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(lE=ac.ctasettings[0])?void 0:lE.link,target:(null==ac||null==(lD=ac.ctasettings[0])?void 0:lD.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lI=ac.ctasettings[0])?void 0:lI.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[0])?void 0:e.selectform))},buttontext:null==ac||null==(lk=ac.ctasettings[0])?void 0:lk.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})})),(null==ac?void 0:ac.ctasettings)&&(null==ac||null==(lS=ac.ctasettings)?void 0:lS[1])&&((null==ac||null==(lR=ac.ctasettings)||null==(lL=lR[1])?void 0:lL.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(lM=ac.ctasettings[1])?void 0:lM.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(lO=ac.ctasettings[1])?void 0:lO.link,target:(null==ac||null==(lV=ac.ctasettings[1])?void 0:lV.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lU=ac.ctasettings[1])?void 0:lU.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(lP=ac.ctasettings[1])?void 0:lP.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(null==ac||null==(lF=ac.ctasettings[1])?void 0:lF.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"lg:w-1/3",style:{display:"flex",alignItems:"flex-end"},children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(lY=ac.ctasettings[1])?void 0:lY.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(lB=ac.ctasettings[1])?void 0:lB.link,target:(null==ac||null==(lG=ac.ctasettings[1])?void 0:lG.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lz=ac.ctasettings[1])?void 0:lz.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(lW=ac.ctasettings[1])?void 0:lW.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(lH=ac.ctasettings[1])?void 0:lH.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(lq=ac.ctasettings[1])?void 0:lq.link,target:(null==ac||null==(lQ=ac.ctasettings[1])?void 0:lQ.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(lJ=ac.ctasettings[1])?void 0:lJ.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(lK=ac.ctasettings[1])?void 0:lK.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})})),(null==ac?void 0:ac.ctasettings)&&(null==ac||null==(lZ=ac.ctasettings)?void 0:lZ[2])&&((null==ac||null==(l$=ac.ctasettings)||null==(lX=l$[2])?void 0:lX.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(l0=ac.ctasettings[2])?void 0:l0.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(l1=ac.ctasettings[2])?void 0:l1.link,target:(null==ac||null==(l2=ac.ctasettings[2])?void 0:l2.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(l3=ac.ctasettings[2])?void 0:l3.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:null==ac||null==(l4=ac.ctasettings[2])?void 0:l4.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(null==ac||null==(l5=ac.ctasettings[2])?void 0:l5.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"lg:w-1/3",style:{display:"flex",alignItems:"flex-end"},children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(l7=ac.ctasettings[2])?void 0:l7.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(l8=ac.ctasettings[2])?void 0:l8.link,target:(null==ac||null==(l9=ac.ctasettings[2])?void 0:l9.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(l6=ac.ctasettings[2])?void 0:l6.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:r.Constants.expericencIcon.BOOK_A_TEST_DRIVE,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(te=ac.ctasettings[2])?void 0:te.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(tl=ac.ctasettings[2])?void 0:tl.link,target:(null==ac||null==(tt=ac.ctasettings[2])?void 0:tt.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(tn=ac.ctasettings[2])?void 0:tn.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:null==ac||null==(ta=ac.ctasettings[2])?void 0:ta.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}))]})}),(0,n.jsx)("div",{className:" lg:hidden flex justify-center",children:(0,n.jsx)("div",{className:"flex justify-center mb-[50px] lg:mb-[100px]",children:(0,n.jsx)(s.A,{className:"font-suzukiBold text-inverted uppercase border-[1px] border-[#001151] w-[171px] h-[40p
1x] bg-[#001151] text-[13px]",onClick:()=>{var e;null==(e=n8.current)||e.scrollIntoView({behavior:"smooth"})},children:r.Constants.EMICALCULATOR.CALCULATE_BTN})})})]})}),(0,n.jsx)("div",{className:"f-boxRight",children:(0,n.jsxs)("div",{className:"f-carDetails",children:[(0,n.jsxs)("div",{ref:n8,children:[(0,n.jsxs)("h3",{className:"mb-0 leading-[1] ".concat("f-carDetails__heading"),children:[null==av?void 0:av.defaultModelName," ",null==av||null==(ti=av.selectVariant)?void 0:ti.variant_name]}),(0,n.jsx)("p",{className:"f-carDetails__description mt-2",children:n2&&(null==ac||null==(to=ac.vehiclePrice)?void 0:to.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_one)?null==n2?void 0:n2.variant_cmp_pricetext_one:(null==ac||null==(ts=ac.vehiclePrice)?void 0:ts.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_two)?null==n2?void 0:n2.variant_cmp_pricetext_two:(null==ac||null==(tr=ac.vehiclePrice)?void 0:tr.toLowerCase().replace(/\s/g,""))===(null==n2?void 0:n2.variant_cmp_price_three)?null==n2?void 0:n2.variant_cmp_pricetext_three:null}),(0,n.jsx)("span",{className:"font-suzukiBold text-[24px]",children:(null==av||null==(tu=av.selectVariant)?void 0:tu.selling_price)?(0,g.vv)(null==av||null==(tc=av.selectVariant)?void 0:tc.selling_price):"--"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"f-carDetails__description mb-1 mt-5",children:r.Constants.EMICALCULATOR.INDICATIVE_EMI_AMOUNT}),(0,n.jsxs)("p",{className:"f-carDetails_price  ".concat("setfontsize"),children:[(0,n.jsx)("span",{className:"font-suzukiBold ".concat("gapBottom"),children:nX&&(null==av||null==(td=av.selectVariant)?void 0:td.selling_price)&&(0,g.EM)(nX)?(0,g.vv)(nX%10>=6?10*Math.ceil(nX/10):10*Math.floor(nX/10)):"--"})," /",(0,n.jsx)("span",{className:"font-suzukiRegular",children:r.Constants.EMICALCULATOR.MONTH})]})]})]}),(null==ac?void 0:ac.isvehicleAdditionalCondition)?nz&&nz.map((e,l)=>{var t,a,i;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:" font-suzukiBold flex",children:"".concat(null==e?void 0:e.label," : ").concat(null==e||null==(t=e.value)?void 0:t.methodName)}),null==e||null==(i=e.value)||null==(a=i.methodValue)?void 0:a.map((e,l)=>{var t,a,i;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-between mt-3 flex",children:[(0,n.jsx)("p",{className:" ",children:e.value},l),(0,n.jsx)("p",{className:"text-right",children:(null==av||null==(t=av.selectVariant)?void 0:t.taxChargeDetails)&&(null==av||null==(i=av.selectVariant)||null==(a=i.taxChargeDetails)?void 0:a.map(l=>{var t,n;if((null==e?void 0:e.type)==(null==l?void 0:l.taxChargeType))return(null==l?void 0:l.valueType)==1?(0,g.EM)((null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==l?void 0:l.value)/100)?(0,g.vv)((null==av||null==(n=av.selectVariant)?void 0:n.selling_price)*(null==l?void 0:l.value)/100):"--":(0,g.EM)(null==l?void 0:l.value)?(0,g.vv)(null==l?void 0:l.value):"--"}))},null==e?void 0:e.value)]})})})]})}):null==ac||null==(tv=ac.vehicleAdditionalCharge)?void 0:tv.map((e,l)=>{var t,a,i,o,s;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("p",{className:"flex justify-between mt-1 mb-1",children:null==e?void 0:e.value},l),(0,n.jsx)("p",{className:"flex justify-between mt-1 mb-1",children:(null==av||null==(t=av.selectVariant)?void 0:t.taxChargeDetails)&&(null==av||null==(i=av.selectVariant)||null==(a=i.taxChargeDetails)?void 0:a.length)>0?null==av||null==(s=av.selectVariant)||null==(o=s.taxChargeDetails)?void 0:o.map(l
1=>{if((null==e?void 0:e.type)===(null==l?void 0:l.taxChargeType)){var t,n;return(null==l?void 0:l.valueType)===1?(0,g.EM)((null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==l?void 0:l.value)/100)?(0,g.vv)((null==av||null==(n=av.selectVariant)?void 0:n.selling_price)*(null==l?void 0:l.value)/100):"--":(0,g.EM)(null==l?void 0:l.value)?(0,g.vv)(null==l?void 0:l.value):"--"}return null}):"--"},null==e?void 0:e.value)]})})}),(0,n.jsxs)("p",{className:"flex font-suzukiBold justify-between mt-3 mb-10",children:[(0,n.jsx)("span",{children:r.Constants.EMICALCULATOR.LOAN_AMOUNT}),(0,n.jsx)("span",{children:(0,g.EM)(nR+(null==av||null==(tm=av.selectVariant)?void 0:tm.selling_price)-(null==av?void 0:av.downpaymentAmount))?(0,g.vv)(Math.round(nR+(null==av||null==(tp=av.selectVariant)?void 0:tp.selling_price)-(null==av?void 0:av.downpaymentAmount))):"--"})]}),(null==ac?void 0:ac.isDownpaymentCondition)?nB&&nB.map((e,l)=>{var t,a,i;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:" font-suzukiBold flex",children:"".concat(null==e?void 0:e.label," : ").concat(null==e||null==(t=e.value)?void 0:t.methodName)}),null==e||null==(i=e.value)||null==(a=i.methodValue)?void 0:a.map((e,l)=>{var t,a,i;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,n.jsx)("p",{className:" ",children:e.value},l),(0,n.jsx)("p",{className:"text-right",children:(null==av||null==(t=av.selectVariant)?void 0:t.taxChargeDetails)&&(null==av||null==(i=av.selectVariant)||null==(a=i.taxChargeDetails)?void 0:a.map(l=>{var t,n;if((null==e?void 0:e.type)==(null==l?void 0:l.taxChargeType))return(null==l?void 0:l.valueType)==1?(0,g.EM)((null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==l?void 0:l.value)/100)?(0,g.vv)((null==av||null==(n=av.selectVariant)?void 0:n.selling_price)*(null==l?void 0:l.value)/100):"--":(0,g.EM)(null==l?void 0:l.value)?(0,g.vv)(null==l?void 0:l.value):"--"}))},null==e?void 0:e.value)]})})})]})}):null==ac||null==(tg=ac.downpaymentAdditionalCharge)?void 0:tg.map((e,l)=>{var t,a,i;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("p",{className:"",children:null==e?void 0:e.value},l),(0,n.jsx)("p",{className:"text-right",children:(null==av||null==(t=av.selectVariant)?void 0:t.taxChargeDetails)&&(null==av||null==(i=av.selectVariant)||null==(a=i.taxChargeDetails)?void 0:a.map(l=>{var t,n;if((null==e?void 0:e.type)==(null==l?void 0:l.taxChargeType))return(null==l?void 0:l.valueType)==1?(0,g.EM)((null==av||null==(t=av.selectVariant)?void 0:t.selling_price)*(null==l?void 0:l.value)/100)?(0,g.vv)((null==av||null==(n=av.selectVariant)?void 0:n.selling_price)*(null==l?void 0:l.value)/100):"--":(0,g.EM)(null==l?void 0:l.value)?(0,g.vv)(null==l?void 0:l.value):"--"}))},null==e?void 0:e.value)]})})}),!1,(0,n.jsxs)("p",{className:"flex font-suzukiBold justify-between mt-3 mb-10 flex",children:[(0,n.jsx)("span",{children:r.Constants.EMICALCULATOR.INITIAL_PAYMENT_AMOUNT}),console.log(nO,null==av?void 0:av.downpaymentAmount,nO+(null==av?void 0:av.downpaymentAmount),nK,"xx",(0,g.vv)(nO+(null==av?void 0:av.downpaymentAmount))>0),(0,n.jsx)("span",{children:(0,g.EM)(nO+(null==av?void 0:av.downpaymentAmount))?(0,g.vv)(nO+(null==av?void 0:av.downpaymentAmount)):(0,g.EM)(null==av?void 0:av.downpaymentAmount)?(0,g.vv)(null==av?void 0:av.downpaymentAmount):"--"})]}),(null==ac||null==(t_=ac.disclaimer)?void 0:t_.isdisclaimershow)&&!1,(0,n.jsx)("div",{className:"f-bannerImg",children:(0,n.jsx)(b(),{src:N.configuration.IMG_URL+((null==av||null==(th=av.selectVariant)||null==(tx=th.colors)||null==(tf=tx.find(e=>!0===e.is_default))?void 0:tf.image)||(null==av||null==(tC=av.selectVariant)||null==(tb=tC.colors)||null==(ty=tb[0])?void 0:ty.image)),layout:"fill",objectFit:"contain",alt:"model_variant"})}),(null==ac||null==(tw=ac.disclaimer)?void 0:tw.isdisclaimershow)&&(0,n.jsxs)("p",{className:"f-carDetails__description text-align-left mb-0",children:[(0,n.jsx)("span",{className:"text-medium",children:r.Constants.EMICALCULATOR.DESCLIAMER}),(0,n.jsx)("span",{className:"disclaimer-margin",dangerouslySetInnerHTML:{__html:(null==ac||null==(tN=ac.disclaimer)?void 0:tN.disclaimertext)||""}})]})]})}),(0,n.jsx)("div",{className:" lg:hidden flex justify-center mt-10",children:(0,n.jsxs)("div",{className:"lg:w-[640px] w-[354px] flex lg:flex-row flex-col lg:gap-[22px] gap-[10px]",children:[(null==ac||null==(tj=ac.ctasettings)?void 0:tj[0])&&((null==ac||null==(tA=ac.ctasettings[0])?void 0:tA.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(tT=ac.ctasettings[0])?void 0:tT.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(tE=ac.ctasettings[0])?void 0:tE.link,target:(null==ac||null==(tD=ac.ctasettings[0])?void 0:tD.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(tI=ac.ctasettings[0])?void 0:tI.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{nh((0,C.f)("test_drive_form"))},buttontext:null==ac||null==(tk=ac.ctasettings[0])?void 0:tk.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(null==ac||null==(tS=ac.ctasettings[0])?void 0:tS.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"w-full sm:pl-[0px] lg:w-1/3 lg:pl-[87px]",children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(tL=ac.ctasettings[0])?void 0:tL.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(tR=ac.ctasettings[0])?void 0:tR.link,target:(null==ac||null==(tM=ac.ctasettings[0])?void 0:tM.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(tO=ac.ctasettings[0])?void 0:tO.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[0])?void 0:e.selectform))},buttontext:null==ac||null==(tV=ac.ctasettings[0])?void 0:tV.ctatitle})})}):(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(tU=ac.ctasettings[0])?void 0:tU.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(tP=ac.ctasettings[0])?void 0:tP.link,target:(null==ac||null==(tF=ac.ctasettings[0])?void 0:tF.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(tY=ac.ctasettings[0])?void 0:tY.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[0])?void 0:e.selectform))},buttontext:null==ac||null==(tB=ac.ctasettings[0])?void 0:tB.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})})),(null==ac||null==(tG=ac.ctasettings)?void 0:tG[1])&&((null==ac||null==(tW=ac.ctasettings)||null==(tz=tW[1])?void 0:tz.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(tH=ac.ctasettings[1])?void 0:tH.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(tq=ac.ctasettings[1])?void 0:tq.link,target:(null==ac||null==(tQ=ac.ctasettings[1])?void 0:tQ.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(tJ=ac.ctasettings[1])?void 0:tJ.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(tK=ac.ctasettings[1])?void 0:tK.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}
1):(null==ac||null==(tZ=ac.ctasettings[1])?void 0:tZ.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"w-full sm:pl-[0px] lg:w-1/3 lg:pl-[87px]",children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(tX=ac.ctasettings[1])?void 0:tX.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(t$=ac.ctasettings[1])?void 0:t$.link,target:(null==ac||null==(t0=ac.ctasettings[1])?void 0:t0.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(t1=ac.ctasettings[1])?void 0:t1.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(t2=ac.ctasettings[1])?void 0:t2.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(0,n.jsx)("div",{className:"lg:w-1/3 ",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(t3=ac.ctasettings[1])?void 0:t3.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(t4=ac.ctasettings[1])?void 0:t4.link,target:(null==ac||null==(t5=ac.ctasettings[1])?void 0:t5.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(t7=ac.ctasettings[1])?void 0:t7.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[1])?void 0:e.selectform))},buttontext:null==ac||null==(t8=ac.ctasettings[1])?void 0:t8.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})})),(null==ac||null==(t9=ac.ctasettings)?void 0:t9[2])&&((null==ac||null==(ne=ac.ctasettings)||null==(t6=ne[2])?void 0:t6.ctatype)==="Primary"?(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(nl=ac.ctasettings[2])?void 0:nl.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"primary_grad_button",href:null==ac||null==(nt=ac.ctasettings[2])?void 0:nt.link,target:(null==ac||null==(nn=ac.ctasettings[2])?void 0:nn.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(na=ac.ctasettings[2])?void 0:na.ctatitle,classname:"button_dark_arrow"}):(0,n.jsx)(w.A,{type:"primary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:null==ac||null==(ni=ac.ctasettings[2])?void 0:ni.ctatitle,classname:"button_dark_arrow",iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(null==ac||null==(no=ac.ctasettings[2])?void 0:no.ctatype)==="Tertiary"?(0,n.jsx)("div",{className:"w-full sm:pl-[0px] lg:w-1/3 lg:pl-[87px]",children:(0,n.jsx)("div",{className:"",children:(null==ac||null==(ns=ac.ctasettings[2])?void 0:ns.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"tertiary_button",href:null==ac||null==(nr=ac.ctasettings[2])?void 0:nr.link,target:(null==ac||null==(nu=ac.ctasettings[2])?void 0:nu.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(nc=ac.ctasettings[2])?void 0:nc.ctatitle}):(0,n.jsx)(w.A,{type:"tertiary_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:null==ac||null==(nd=ac.ctasettings[2])?void 0:nd.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}):(0,n.jsx)("div",{className:"lg:w-1/3",children:(0,n.jsx)("div",{className:"compareItem__CTAs",children:(null==ac||null==(nv=ac.ctasettings[2])?void 0:nv.ctaaction)==="Link"?(0,n.jsx)(w.A,{type:"secondary_grad_button",href:null==ac||null==(nm=ac.ctasettings[2])?void 0:nm.link,target:(null==ac||null==(np=ac.ctasettings[2])?void 0:np.selecttarget)==="Same Tab"?"_self":"_blank",buttontext:null==ac||null==(ng=ac.ctasettings[2])?void 0:ng.ctatitle}):(0,n.jsx)(w.A,{type:"secondary_grad_button",onClick:()=>{var e;nh((0,C.f)(null==ac||null==(e=ac.ctasettings[2])?void 0:e.selectform))},buttontext:null==ac||null==(n_=ac.ctasettings[2])?void 0:n_.ctatitle,iconImage:"".concat(N.configuration.IMG_STATIC_URL,"test_Drive_form.svg")})})}))]})})]})]})})]}):(0,n.jsx)(c.default,{})})};var E=!0;let D=e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(T,{})})},61079:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/emi-calculator.backup",function(){return t(53273)}])},77328:(e,l,t)=>{e.exports=t(97918)},90671:e=>{e.exports={"!container":"tool-tip___container__jRylf",container:"tool-tip_container__ddiU9","container-fluid":"tool-tip_container-fluid__CM9_7",row:"tool-tip_row__qpnmQ",col:"tool-tip_col__EyLpA",col_12:"tool-tip_col_12__PNA0p",toolTip_class:"tool-tip_toolTip_class__y4zLU",toolTip_desc:"tool-tip_toolTip_desc__H__NN","sm:col_12":"tool-tip_sm__col_12__vZJKd","md:container":"tool-tip_md__container__zDBb3","md:row":"tool-tip_md__row__27Y1D","md:col_4":"tool-tip_md__col_4__ORO3f","md:col_6":"tool-tip_md__col_6__fNeIj","md:col_8":"tool-tip_md__col_8__yAWAJ"}},99421:(e,l,t)=>{"use strict";t.d(l,{f:()=>i});var n=t(47664),a=t(95648);let i=e=>{switch(e){case n.Pb.CALC_PAYMENT:return{type:a.nG};case n.Pb.BROCHURE:return{type:a.Zk};case n.Pb.BROCHURE_2W:return{type:a.p6};case n.Pb.ENQUIRY:return{type:a.g2};case n.Pb.ENQUIRY_2W:return{type:a.oz};case n.Pb.TEST_DRIVE:return{type:a.sd};case n.Pb.TEST_DRIVE_2W:return{type:a._d};case n.Pb.SERVICE:return{type:a.cr};case n.Pb.SERVICE_2W:return{type:a.IW};case n.Pb.CONTACT_US:return{type:a.Fw};case n.Pb.GET_QUOTE:case n.Pb.GET_QUOTE:return{type:a.Ci};case n.Pb.GET_QUOTE_2W:return{type:a.Gf};case n.Pb.ENQUIRY_2W:return{type:a.oz};default:return{type:"TOGGLE_DYNAMIC_FORM",payload:e}}}}},e=>{e.O(0,[4587,8230,4e3,126,1040,400,9098,9399,5643,551,636,6593,8792],()=>e(e.s=61079)),_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.