1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[362],{362:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return z}});var n=a(85893),i=a(67294),l=a(57516),r=a(14252),o=a(89152),s=a(96632),c=a(48790),_=a(96005),d=a(29858),E=a(8013),p=a(60621),A=a(16521),T=a(81990),N=a(21749),u=a(9672),m=a(33970),f=a(35135),x=a(94184),g=a.n(x),v=a(19385),h=a(11414),b=a(92695),R=a(38577),P=a(30924),I=a(21922),L=a.n(I),C=e=>{let{integration:t,translations:a,financingCalculatorResponse:l,hasError:r,trackingLabel:o,handleCtaClick:s}=e,[c,E]=(0,i.useState)(!1),[p,A]=(0,i.useState)(!1),T=()=>{(0,f.vYk)({type:"action",name:"financing_expander_slice_select",category:"finance",action:"conversion",label:o,details:{placement:`${o.replaceAll("-","_")}|expander=financing_details`}})},N=()=>{(0,f.vYk)({type:"action",name:"financing_expander_slice_select",category:"finance",action:"conversion",label:o,details:{placement:`${o.replaceAll("-","_")}|expander=financing_steps`}})},u=(0,_.uj)(),x="BALLOON"===l.type,I=[{label:a.CASH_PRICE,value:l.price.formatted},{label:a.DOWN_PAYMENT,value:l.downpayment.formatted},{label:a.NET_LOAN_AMOUNT,value:l.loanAmount.formatted},x&&l.finalRate?{label:a.FINAL_INSTALLMENT,value:l.finalRate.formatted}:void 0,{label:a.EFFECTIVE_ANNUAL_INTEREST,value:l.effectiveAnnualRate.formatted},{label:a.MONTHLY_RATE,value:r?d.Ek:l.monthlyInstallment.formatted,importantLine:!0}].filter(Boolean),C={template:(x?t.overlay?.financingDisclaimer?.balloon?.value:t.overlay?.financingDisclaimer?.linear?.value)??"",mapping:{BANK_NAME:t.overlay?.bank.value??"",INTEREST:l.effectiveAnnualRate.formatted,DEBIT_INTEREST:l.interestRate.formatted,TOTAL_AMOUNT:l.totalAmountPayable.formatted,CREDIT_AMOUNT:l.loanAmount.formatted,DURATION:l.duration.toString(),RATE:r?d.Ek:l.monthlyInstallment.formatted,BALLON_RATE:x&&l.finalRate?l.finalRate.formatted:""},imprint:u.seller?.links?.imprint??void 0},S=t.overlay?.financingDisclaimer?.additional,D=[{iconName:"filter",stepHeading:a.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_1,stepText:a.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_1},{iconName:"edit_pencil",stepHeading:a.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_2,stepText:a.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_2}
1,{iconName:"checkmark",stepHeading:a.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_3,stepText:a.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_3}];return(0,n.jsxs)("div",{className:L().expandableDetailsSection,children:[(0,n.jsx)("div",{className:L().detailsBreakElement}),(0,n.jsxs)(h.Z,{buttonOnTop:!0,beginExpanded:c,buttonLabel:a.PREAPPROVAL_BENEFITS_EXPANDABLE_SLICE_BUTTON,onToggle:e=>{E(e),e&&T()},children:[(0,n.jsxs)("div",{className:L().container,children:[t.productType&&(0,n.jsx)(b.n,{productType:t.productType,headerText:a.DEALER_FINANCING_CAR_AND_FINANCING_FROM_A_SINGLE_SOURCE}),(0,n.jsx)("div",{className:L().dataGridContainer,children:(0,n.jsx)(v.Z,{valueBold:!0,asTable:!0,entries:I,showLastBorder:!0})})]}),(0,n.jsx)(m.z,{mode:"secondary",className:L().financingButton,onClick:s,children:a.REQUEST_FINANCING}),(0,n.jsx)(R.Z,{disclaimer:C,additionalDisclaimerLines:S})]}),(0,n.jsx)("div",{className:L().detailsBreakElement}),(0,n.jsxs)(h.Z,{beginExpanded:p,buttonOnTop:!0,buttonLabel:a.PREAPPROVAL_EDUCATE_EXPANDABLE_SLICE_BUTTON,onToggle:e=>{A(e),e&&N()},children:[(0,n.jsx)(P.l,{educateSteps:D}),(0,n.jsx)(m.z,{mode:"secondary",className:g()(L().financingButton,L().noMarginTop),onClick:s,children:a.REQUEST_FINANCING})]})]})},S=a(55917),D=a(65121),O=a(77398),j=a(54935),y=a(86103),B=a.n(y);let k=()=>{let{translations:e}=(0,s.$)(),t=(0,j.a)("(max-width: 600px)",!0);return(0,n.jsx)(D.u,{pos:["bottom center"],triggerElement:(0,n.jsx)("button",{type:"button",className:B()["tooltip-icon"],children:(0,n.jsx)(O.Z,{name:"info",width:28,height:24,color:"#33333399","aria-hidden":"true"})}),showOnClick:t,ariaLabel:e.BEST_INTEREST_RATE,children:e.TOOLTIP_LOWEST_RATE_TEXT})},w=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3c-1.103 0-2 .897-2 2v2.586L8.586 9H5c-1.103 0-2 .897-2 2v7c0 1.103.897 2 2 2h12c2.206 0 4-1.794 4-4v-4c0-2.206-1.794-4-4-4h-1V7c0-2.206-1.794-4-4-4zm-7 8h2v7H5v-7zm12-1c1.103 0 2 .897 2 2v4c0 1.103-.897 2-2 2H9v-6.586l.706-.706.002-.002L11.414 9c.372-.372.586-.888.586-1.414V5c1.103 0 2 .897 2 2v2a1 1 0 001 1h2z"})});var F=a(25748),U=a.n(F),G=e=>{let{lowestInterestRate:t}=e,{translations:a}=(0,s.$)(),l=(0,S.B)();return(0,i.useEffect)(()=>{let e="lowest_interest_rate";(0,f.vYk)({name:`${e}_view`,type:"impression"},{common_test_cxp_web_1:e})},[]),(0,n.jsxs)("div",{className:U().container,children:[(0,n.jsxs)("span",{className:U().label,children:[(0,n.jsx)(w,{width:22,height:22,"aria-hidden":"true"}),(0,n.jsx)("span",{children:a.BEST_INTEREST_RATE})]}),(0,n.jsx)(k,{}),(0,n.jsxs)("div",{className:"de-DE"===l.isoCulture?U().inlineStyle:U().stackedStyle,children:[(0,n.jsx)("span",{className:U().bold,children:t}),(0,n.jsx)("span",{className:U().bold,children:a.ANNUAL_INTEREST_RATE})]})]})},M=a(5306),H=a(38138),V=a(92421),X=a(88332),$=a.n(X),Z=e=>{let{translations:t,financingCalculatorResponse:a,hasError:l,integration:r,trackingLabel:o,handleCtaClick:s}=e,[c,E]=(0,i.useState)(!1),p=(0,i.useRef)(null),{t:A}=(0,V.$G)(),T=()=>{(0,f.vYk)({type:"action",name:"financing_expander_slice_select",category:"finance",action:"conversion",label:o,details:{placement:`${o.replaceAll("-","_")}|expander=financing_details`}})},N=(0,_.uj)(),u="BALLOON"===a.type,x=[{label:t.CASH_PRICE,value:a.price.formatted},{label:t.DOWN_PAYMENT,value:a.downpayment.formatted},{label:t.NET_LOAN_AMOUNT,value:a.loanAmount.formatted},u&&a.finalRate?{label:t.FINAL_INSTALLMENT,value:a.finalRate.formatted}:void 0,{label:t.EFFECTIVE_ANNUAL_INTEREST,value:a.effectiveAnnualRate.formatted},{label:t.MONTHLY_RATE,value:(0,n.jsx)("div",{className:$().rateHighlight,children:(0,n.jsx)(H.Z,{children:l?d.Ek:`${t.FROM} ${a.monthlyInstallment.formatted}`})}),importantLine:!0}].filter(Boolean),g={template:(u?r.overlay?.financingDisclaimer?.balloon?.value:r.overlay?.financingDisclaimer?.linear?.value)??"",mapping:{BANK_NAME:r.overlay?.bank.value??"",INTEREST:a.effectiveAnnualRate.formatted,DEBIT_INTEREST:a.interestRate.formatted,TOTAL_AMOUNT:a.totalAmountPayable.formatted,CREDIT_AMOUNT:a.loanAmount.formatted,DURATION:a.duration.toString(),RATE:l?d.Ek:a.monthlyInstallment.formatted,BALLON_RATE:u&&a.finalRate?a.finalRate.formatted:""},imprint:N.seller?.links?.imprint??void 0},h=r.overlay?.financingDisclaimer?.additional,I=[{iconName:"filter",stepHeading:t.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_1,stepText:t.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_1},{iconName:"edit_pencil",stepHeading:t.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_2,stepText:t.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_2}
1,{iconName:"checkmark",stepHeading:t.PREAPPROVAL_EDUCATE_FINANCING_HEADING_STEP_3,stepText:t.PREAPPROVAL_EDUCATE_FINANCING_TEXT_STEP_3}];return(0,n.jsxs)("div",{children:[(0,n.jsxs)(m.z,{className:$().lightboxButton,"aria-label":t.PREAPPROVAL_BENEFITS_EXPANDABLE_SLICE_BUTTON_2,mode:"ghost-accent",type:"button",onClick:e=>{p.current=e.currentTarget,E(!0)},children:[(0,n.jsx)(O.Z,{name:"document",className:$().document,size:24}),t.PREAPPROVAL_BENEFITS_EXPANDABLE_SLICE_BUTTON_2]}),(0,n.jsx)(M.V,{className:$().dialog,open:c,onClose:()=>E(!1),onOpen:()=>{T()},header:t.PREAPPROVAL_BENEFITS_EXPANDABLE_SLICE_BUTTON,closeLabel:A("shared.close"),returnFocusRef:p,children:(0,n.jsxs)("div",{className:$().container,children:[(0,n.jsx)(b.W,{productType:"FinanceBoostPreApproval",headerText:t.DEALER_FINANCING_CAR_AND_FINANCING_FROM_A_SINGLE_SOURCE}),(0,n.jsxs)("div",{className:$().dataGridContainer,children:[(0,n.jsx)("h2",{children:t.EXAMPLE_CALCULATION}),(0,n.jsx)(v.Z,{valueBold:!0,entries:x})]}),(0,n.jsx)(R.Z,{disclaimer:g,additionalDisclaimerLines:h}),(0,n.jsx)(m.z,{className:$().cta,disabled:l,mode:"primary",onClick:()=>{s()},children:t.REQUEST_FINANCING}),(0,n.jsx)(P.X,{header:t.PREAPPROVAL_EDUCATE_EXPANDABLE_SLICE_BUTTON,educateSteps:I})]})})]})},Y=a(6183),W=a.n(Y),z=e=>{let{integration:t}=e,a=(0,_.uj)(),{downpayment:m,minDownpayment:f,maxDownpayment:x,setDownpayment:g,duration:v,setDuration:h,monthlyInstallment:b,financingCalculatorResponse:R,hasError:P,isLoaded:I}=(0,c.R)({integration:t,listing:a}),L=(0,u.K)(),{isAbTest692Enabled:S,isAbTest692Variation:D,abTest692CtaHandler:O}=(0,T.I)(),{trackEvent:j,trackCombinedOptimizelyEvent:y,updateUrl:B}=(0,E.j)(),k=t.overlay?.bank.value??void 0,{redirectToConsumerFunnel:w,trackGA4Slice:F,trackGA4Ligthbox:U}=(0,N.k)({integrationTrackingLabel:d.Zr.FinanceBoostPreApproval,bankName:k}),M="financeboost-preapproval-slice-widget",{translations:H}=(0,s.$)(),{addImpression:V}=(0,l.k)();if((0,i.useEffect)(()=>{V(M,k?d.US[k]:void 0)},[t]),!I)return(0,n.jsx)(r.Z,{});let X="BALLOON"===R.type,{integrationConfig:$}=R,[Y,z]=[$.duration[0],$.duration[$.duration.length-1]],Q=()=>{if(P)return;let e=t.stage?.link.url;e&&(j("detail","finance","slice"),y("finance","slice"),F({financingType:X?"balloon":"linear",downpayment:m,duration:v}),O(),S&&(e=B(e,"subId")),w({url:e,downpayment:m,duration:v,finalInstallment:R.finalRate?.raw??null,searchQuery:L.searchQuery}))};return(0,n.jsxs)("div",{className:W().container,children:[t.overlay?.hasLowestInterestRate&&(0,n.jsx)("div",{className:W().lowestInterestRateTag,children:(0,n.jsx)(G,{lowestInterestRate:R.effectiveAnnualRate.formatted})}),(0,n.jsx)(A.Q,{translations:H,minDownpayment:f,maxDownpayment:x,downpayment:m,setDownpayment:g,minDuration:Y,maxDuration:z,duration:v,setDuration:h,integrationConfig:$}),(0,n.jsx)(p.Z,{handleCtaClick:Q,hasError:P,monthlyInstallment:b,translations:H}),(0,n.jsx)(o.Z,{hasError:P,message:H.BELOW_THE_MINIMUM_MONTHLY_RATE}),D?(0,n.jsx)(Z,{trackingLabel:M,integration:t,translations:H,financingCalculatorResponse:R,hasError:P,handleCtaClick:()=>{if(P)return;let e=t.stage?.link.url;e&&(j("detail","finance","slice"),y("finance","slice"),U({financingType:"linear",downpayment:m,duration:v}),O(),S&&(e=B(e,"subId")),w({url:e,downpayment:m,duration:v,finalInstallment:R.finalRate?.raw??null,searchQuery:L.searchQuery}))}}):(0,n.jsx)(C,{trackingLabel:M,integration:t,translations:H,financingCalculatorResponse:R,hasError:P,handleCtaClick:Q})]})}},21749:function(e,t,a){"use strict";a.d(t,{k:function(){return r}});var n=a(35135),i=a(96994),l=a(29858);let r=e=>{let{integrationTrackingLabel:t,bankName:a}=e;return{trackGA4Slice:e=>{let i=e?`${t}-slice-widget-${e.financingType}|${e.downpayment}|${e.duration}`:`${t}-slice-widget`,r={name:"finance_select",type:"action",action:"conversion",category:"finance",details:{placement:`${t.replaceAll("-","_")}_slice_widget`},label:i};if(a){(0,n.vYk)(r,(0,l.XC)(a));return}(0,n.vYk)(r)},trackGA4Ligthbox:e=>{let i=e?`${t}-slice-lightbox-${e.financingType}|${e.downpayment}|${e.duration}`:`${t}-slice-lightbox`,r={name:"finance_select",type:"action",action:"conversion",category:"finance",details:{placement:`${t.replaceAll("-","_")}_slice_lightbox`},label:i};
1if(a){(0,n.vYk)(r,(0,l.XC)(a));return}(0,n.vYk)(r)},redirectToConsumerFunnel:e=>{let t,a,{url:n,downpayment:l,duration:r,finalInstallment:o,searchQuery:s}=e;if(!n)return;if(s){let e=new URLSearchParams(s);t=e.get("zip")??void 0,a=e.get("zipr")??void 0}let c={downpayment:l?.toString()??"",duration:r?.toString()??"",...null!=o&&{balloon:o?.toString()??""},...t&&{zip:t},...a&&{zipr:a}},_=(0,i.b)({url:n,params:c});window.open(_,"_blank")}}}},81990:function(e,t,a){"use strict";a.d(t,{I:function(){return _}});var n=a(35135),i=a(22061),l=a(79369),r=a(82799),o=a(18181),s=a(49352),c=a(14347);let _=()=>{let e=(0,l.b)(),{optimizelyResults:t}=(0,i.E)(),a=t?.abTest692FinancingDPSliceLightbox,_=!!a,d=(0,c.tc)({experimentKey:r.Xt.experiment,toggle:e[o.s4g.id],experimentConditions:_,variation:a}),E=e=>{_&&(0,s.Z)(e)};return d&&a&&(0,n.r71)({name:"optimizely_show_variation",abTestKey:r.Xt.experiment,abTestVariation:a}),{isAbTest692Enabled:_,isAbTest692Variation:a===r.Xt.variations.variation_1||e[o.T2O.id],abTest692CtaHandler:()=>E("search_funnel_cta_slice_clicks_ab_test_692")}}},30924:function(e,t,a){"use strict";a.d(t,{X:function(){return d},l:function(){return _}});var n=a(85893);a(67294);var i=a(94184),l=a.n(i),r=a(77398),o=a(79420),s=a.n(o);let c=e=>{let{educateSteps:t}=e;return t.map((e,t)=>{let{iconName:a,stepHeading:i,stepText:l}=e;return(0,n.jsxs)("div",{className:s().container,children:[(0,n.jsx)("div",{className:s().icon,children:(0,n.jsx)(r.Z,{name:a,width:24,height:24,"aria-hidden":!0})}),(0,n.jsxs)("div",{className:s().text,children:[(0,n.jsxs)("p",{children:[t+1,". ",i]}),(0,n.jsx)("p",{children:l})]})]},`${a}-${t}`)})},_=e=>{let{educateSteps:t}=e;return(0,n.jsx)("div",{className:l()(s().educateSteps,s().additionalMargin),children:(0,n.jsx)(c,{educateSteps:t})})},d=e=>{let{header:t,educateSteps:a}=e;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)("h2",{className:s().header,children:t}),(0,n.jsx)("div",{className:s().educateSteps,children:(0,n.jsx)(c,{educateSteps:a})})]})}},6183:function(e){e.exports={container:"FinanceBoostPreApprovalSlice_container__RVYPM",lowestInterestRateTag:"FinanceBoostPreApprovalSlice_lowestInterestRateTag__EM0gx"}},25748:function(e){e.exports={container:"LowestInterestRateTag_container__af__Y",label:"LowestInterestRateTag_label__H_pni",bold:"LowestInterestRateTag_bold__wZwGf",inlineStyle:"LowestInterestRateTag_inlineStyle__udbfE",stackedStyle:"LowestInterestRateTag_stackedStyle__xXfp3"}},86103:function(e){e.exports={"tooltip-icon":"LowestInterestRateTooltip_tooltip-icon__wfCxH"}},88332:function(e){e.exports={dialog:"PreApprovalDetailsLigthbox_dialog__AjZv2",container:"PreApprovalDetailsLigthbox_container__etKfx",dataGridContainer:"PreApprovalDetailsLigthbox_dataGridContainer__3UWVv",rateHighlight:"PreApprovalDetailsLigthbox_rateHighlight__0TIvv",benefitsWrapper:"PreApprovalDetailsLigthbox_benefitsWrapper___yYZm",benefitsHeader:"PreApprovalDetailsLigthbox_benefitsHeader__VvRs9",benefitsHeaderTitle:"PreApprovalDetailsLigthbox_benefitsHeaderTitle__cMJVA",benefitsContainer:"PreApprovalDetailsLigthbox_benefitsContainer__6QnfD",item:"PreApprovalDetailsLigthbox_item__214v3",iconWrapper:"PreApprovalDetailsLigthbox_iconWrapper__18lG3",text:"PreApprovalDetailsLigthbox_text__JdejC",dash:"PreApprovalDetailsLigthbox_dash__0vXMn",lightboxButton:"PreApprovalDetailsLigthbox_lightboxButton__JaExI",document:"PreApprovalDetailsLigthbox_document__tWfXO",cta:"PreApprovalDetailsLigthbox_cta__6ty4K"}},21922:function(e){e.exports={container:"PreApprovalExpandableSection_container__WTZF6",expandableDetailsSection:"PreApprovalExpandableSection_expandableDetailsSection__Vtbnv",dataGridContainer:"PreApprovalExpandableSection_dataGridContainer__rb3mg",financingButton:"PreApprovalExpandableSection_financingButton__FPDeB",noMarginTop:"PreApprovalExpandableSection_noMarginTop__F_zPj",detailsBreakElement:"PreApprovalExpandableSection_detailsBreakElement__w0qoj"}},79420:function(e){e.exports={header:"EducateOnFinancing_header__1WnnY",educateSteps:"EducateOnFinancing_educateSteps___taBc",container:"EducateOnFinancing_container__uiLca",icon:"EducateOnFinancing_icon__BaD2V",text:"EducateOnFinancing_text__bQZsl",additionalMargin:"EducateOnFinancing_additionalMargin__YRL4I"}}}]);
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.