PageSourceSearch

https://nl.nissan.be/_next/static/chunks/3374-078c83962621aaf4.js

js nissan.be collected 2026-09-25 04:03:25 UTC 91,954 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3374],{55551:function(e,t,i){"use strict";var n=i(19521).default.div.withConfig({displayName:"LegalFinanceBannerRoot",componentId:"sc-16pszva-0"})([""]);t.Z=n},60149:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(36605),o=i(41030),a=i(19521).default.div.withConfig({displayName:"RCISimulatorstyles__RCISimulator",componentId:"sc-vjnyfn-0"})(["display:none;"]),l=i(85893),c=function(e){var t=e.id;return(0,o.Z)().provider===n.Nh?(0,l.jsx)(a,{id:t,"data-testid":"testid-".concat(t)}):null}},37354:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(11163),o=i(95637),a=i(34236),l=i(25211),c=function(e,t){var i=e("checkoutProgressBarStepNumber"),n=e("checkoutProgressBarStepTitles"),o=e("checkoutProgressBarStepSubtitles");return Array.isArray(i)&&Array.isArray(n)&&Array.isArray(o)?t?i.map(function(e,t){return{stepNumber:"checkoutProgressBarStepNumber".concat(t),title:"checkoutProgressBarStepTitles".concat(t),subTitle:"checkoutProgressBarStepSubtitles".concat(t)}}):i.map(function(e,t){return{stepNumber:e,title:n[t],subTitle:o[t]}}):[]},r=i(19521),s=r.default.div.withConfig({displayName:"CheckoutProgressBarstyles__ProgressBarContainer",componentId:"sc-15xt5wb-0"})(["width:100%;margin:16px auto 40px auto;@media screen and ","{margin:0 auto 40px auto;}"],o.devices.desktop),d=r.default.ul.withConfig({displayName:"CheckoutProgressBarstyles__ProgressBarList",componentId:"sc-15xt5wb-1"})(["display:flex;list-style:none;padding:0;margin:0;width:100%;justify-content:space-between;"]),u=r.default.li.withConfig({displayName:"CheckoutProgressBarstyles__StepItem",componentId:"sc-15xt5wb-2"})(["flex:1 0 auto;position:relative;&::before{content:'';position:absolute;top:12px;left:5%;width:95%;height:1px;background-color:",";opacity:",";z-index:0;}&:last-child::before{display:none;}&:last-child{flex:0 0 auto;}@media screen and ","{flex:1 1 auto;&::before{top:14px;}}"],function(e){return e.$isCompleted?o.colors.black:o.colors.grey_1},function(e){return e.$isCompleted?"100%":"70%"},o.devices.desktop),p=r.default.div.withConfig({displayName:"CheckoutProgressBarstyles__StepWrapper",componentId:"sc-15xt5wb-3"})(["display:flex;align-items:baseline;"]),f=r.default.div.withConfig({displayName:"CheckoutProgressBarstyles__StepIcon",componentId:"sc-15xt5wb-4"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;border:1px solid ",";background-color:",";color:",";font-weight:",";font-size:12px;z-index:1;"],function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?o.colors.black:o.colors.grey_1},function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?o.colors.black:o.colors.white},function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?o.colors.white:o.colors.grey_1},function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?"bold":"normal"}),m=r.default.div.withConfig({displayName:"CheckoutProgressBarstyles__StepTextContainer",componentId:"sc-15xt5wb-5"})(["display:",";flex-direction:column;padding:0 16px;background-color:",";max-width:260px;overflow-wrap:break-word;z-index:1;@media screen and ","{display:flex;}@media screen and ","{max-width:300px;}"],function(e){return e.$isActive?"flex":"none"},function(e){return e.$greyBackground?"".concat(o.colors.grey):"".concat(o.colors.white)},o.devices.desktop,o.devices.desktopLarge),h=(0,r.default)(o.Text).attrs({variant:"bodyCards",fontWeight:"light"}).withConfig({displayName:"CheckoutProgressBarstyles__StepSubTitle",componentId:"sc-15xt5wb-6"})(["display:none;@media screen and ","{display:block;line-height:18px;letter-spacing:0.9px;margin-top:8px;color:",";opacity:",";}"],o.devices.desktop,function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?o.colors.black:o.colors.grey_1},function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?"100%":"70%"}),g=(0,r.default)(o.Text).withConfig({displayName:"CheckoutProgressBarstyles__StepTitle",componentId:"sc-15xt5wb-7"})(["color:",";opacity:",";display:",";@media screen and ","{display:block;}"],function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?o.colors.black:o.colors.grey_1},function(e){var t=e.$isActive,i=e.$isCompleted;return t||i?"100%":"70%"},function(e){return e.$isActive?"block":"none"},o.devices.desktop),v=i(85893),y=function(e){var t,i=e.currentStep,r=e.className,y=e.greyBackgroun
1d,b=(0,a.Z)("tablet"),x=(0,l.Z)().t,C=(0,n.useRouter)(),w=c(x,!!(null!=C&&null!==(t=C.query)&&void 0!==t&&t.displayKeys));return w&&0!==w.length?(0,v.jsx)(s,{className:r,"data-testid":"checkout-progress-bar",children:(0,v.jsx)(d,{children:w.map(function(e,t){var n=i===t+1,a=i>t+1;return(0,v.jsx)(u,{$isCompleted:a,children:(0,v.jsxs)(p,{children:[(0,v.jsx)(f,{$isActive:n,$isCompleted:a,children:b&&a?(0,v.jsx)(o.SelectedIcon,{color:"white"}):e.stepNumber}),(0,v.jsxs)(m,{$isActive:n,$isCompleted:a,$greyBackground:y,children:[(0,v.jsx)(g,{$isActive:n,$isCompleted:a,children:e.title}),(0,v.jsx)(h,{$isActive:n,$isCompleted:a,children:e.subTitle})]})]})},e.stepNumber||t)})})}):null}},43019:function(e,t,i){"use strict";i.d(t,{Z:function(){return e8}});var n=i(50029),o=i(27812),a=i(59499),l=i(64687),c=i.n(l),r=i(67294),s=i(11163),d=i(22731),u=i(25993),p=i(25211),f=i(68741),m=i(84102),h=i(14161),g=i(8604),v=i(36605),y=i(64188),b=i(96559),x=i(94336),C=i(55193),w=i(68574),_=i(26191),j=i(70103),k=i(11226),I=i(70483),T=i(60149),O=i(88767),S=i(44942),N=i(70206),P=i(74877),Z=i(40294),L=i(34236),V=i(19990),D=i(35618),A=i(19521),E=i(95637),B=(0,A.default)(E.Button).withConfig({displayName:"Modalstyles__ModalLink",componentId:"sc-13nkn68-0"})(["font-weight:400;line-height:26px;text-transform:initial;@media screen and (max-width:960px){text-align:left;display:block;}"]),F=function(e,t,i){var n;return e===b.U3?{label:t("moreAboutPayingInCashLinkOutAncherText")}:{label:null===(n=t("financeCheckoutProductMore"))||void 0===n?void 0:n[i(t("financeProductCode"),e)]}},R=i(85893),M=function(e){var t=e.type,i=e.prefix,n=(0,p.Z)(),o=n.t,a=n.getIndexBy,l=(0,f.Z)(),c=l.toggleModal,r=l.isOpen,s=l.closeModal,d=F(t,o,a).label;return(0,R.jsxs)(R.Fragment,{children:[!!(null!=d&&d.trim())&&(0,R.jsx)(B,{label:d,onClick:c,buttonType:"link",isMobile:!0}),(0,R.jsx)(D.Z,{type:i,isOpen:r,closeModal:s})]})},W=i(77295);function z(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function U(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?z(Object(i),!0).forEach(function(t){(0,a.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):z(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var $=function(e){return function(t,i){return e===v.Nh?U({code:i},t):{quotes:[U({code:i},t)]}}},G=i(93587),H=A.default.div.withConfig({displayName:"PaymentOptionstyles__Group",componentId:"sc-zuzfnb-0"})(["display:block;margin-bottom:35px;margin-left:12px;"]),Q=A.default.div.withConfig({displayName:"PaymentOptionstyles__Body",componentId:"sc-zuzfnb-1"})(["display:block;margin-top:12px;padding-left:24px;"]),q=(0,A.default)(E.Text).attrs({variant:"body-small",fontWeight:"light"}).withConfig({displayName:"PaymentOptionstyles__Description",componentId:"sc-zuzfnb-2"})([""]),J=(0,A.default)(E.Text).attrs({fontWeight:"light"}).withConfig({displayName:"PaymentOptionstyles__DisclaimerPrice",componentId:"sc-zuzfnb-3"})(["b{font-family:'Nissan bold';}letter-spacing:1.5px;font-size:inherit;margin-bottom:",";margin-top:",";@media screen and ","{margin-top:0;}"],E.spacers.spacing_4,E.spacers.spacing_4,E.devices.desktop),Y=A.default.div.withConfig({displayName:"PaymentOptionstyles__RadioContainer",componentId:"sc-zuzfnb-4"})(["display:flex;justify-content:space-between;flex-direction:column;@media screen and ","{flex-direction:row;}"],E.devices.desktop),K=(0,A.default)(E.Text).attrs({type:"span",variant:"subtitle-medium",fontWeight:"bold",isUppercase:!0}).withConfig({displayName:"PaymentOptionstyles__RadioValue",componentId:"sc-zuzfnb-5"})(["padding-left:24px;font-size:16px;line-height:26px;@media screen and ","{padding-left:0;}"],E.devices.desktop),X=(0,A.default)(G.Z).withConfig({displayName:"PaymentOptionstyles__DisclaimerLink",componentId:"sc-zuzfnb-6"})(["padding-left:35px;"]),ee=(0,A.default)(E.Radio).withConfig({displayName:"PaymentOptionstyles__StyledRadio",componentId:"sc-zuzfnb-7"})(["label{font-family:'Nissan Regular';text-transform:none;}label::first-letter{text-transform:uppercase;}"]);function et(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function ei(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?et(Object(i),!0).forEach(function(t){(0,a.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):et(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var en=function(e){var t,i,n,o,a,l=e.idOption,c=e.checked,s=e.onCheck,u=void 0===s?function(){}:s,f=e.financialOffer,m=e.eimCode,g=void 0===m?"":m,y=e.revealFinanceProductsInCheckout,x=e.index,C=void 0===x?0:x,w=e.toggleModal,_=e.vehicle,j=e.cartId,T=e.testId,O=(0,p.Z)(),S=O.t,N=O.exists,P=(0,h.Z)(),D=(0,Z.Z)(),A=(0,d.Z)().provider,E=(0,L.Z)("tablet"),B=((0,r.useContext)(I.Z)||{}).setFinancialOffer,F=(o={},a=N("financeProductCode")?null===(t=S("financeProductCode"))||void 0===t?void 0:t.findIndex(function(e){return l===e}):0,(0,v.ov)(l)?(o.name=Array.isArray(S("financeCheckoutProductName"))?null===(i=S("financeCheckoutProductName"))||void 0===i?void 0:i[a]:void 0,o.text=Array.isArray(S("financeCheckoutProductName"))?null===(n=S("financeCheckoutProductDescription"))||void 0===n?void 0:n[a]:void 0):l===b.U3?(o.name=S("cashRadioButtonValue"),o.text=S("contentBellowCashOption")):(o.name=S("decideLaterRadioButtonValue"),o.text=S("contentBellowDecideLaterOption")),o),z=F.name,U=F.text,G=Array.isArray(S("financeCheckoutProductInfoPrefix"))?S("financeCheckoutProductInfoPrefix"):[],et=(0,k.rV)(k.c1),en=(0,r.useState)(!1),eo=en[0],ea=en[1],el=(null==f?void 0:f.productDesc)||z,ec=(0,r.useCallback)(function(){if(f&&g){var e=$(A)(f,g);B(e),(0,k.LS)(k.AX,JSON.stringify(e))}(l===b.qE||l===b.U3)&&(0,k.cl)(k.AX),u(ei({label:el,value:l},f&&ei(ei({productType:null==f?void 0:f.productType},(null==f?void 0:f.baremCode)&&{baremCode:null==f?void 0:f.baremCode}),(null==f?void 0:f.customerType)&&{customerType:null==f?void 0:f.customerType})),C)},[f,g,l,C,el,u,A,B]);return(0,r.useEffect)(function(){l!==b.qE||eo||(0,v.ov)(et)||(ec(),ea(!0))},[et,ec,l,eo]),(0,R.jsxs)(H,{children:[(0,R.jsxs)(Y,{children:[(0,R.jsx)(ee,{id:l,label:el,radioName:"payment",onCheck:ec,checked:c,testId:T}),f&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(K,{"data-testid":"montly-price-and-APR",children:[(0,v.Fq)(S,N,D)(f),P("show_RCI_disclaimer_anchor")&&!E&&(0,R.jsx)(V.Z,{label:S("allFinanceDisclaimerAnchorSymbol"),href:"#disclaimerFinanceCheckout"})]}),P("show_RCI_disclaimer_anchor")&&E&&(0,R.jsx)(X,{type:"link",label:S("financeDisclaimerLinkMobile"),href:"#disclaimerFinanceCheckout"})]})]}),(0,R.jsxs)(Q,{children:[!!U&&(0,R.jsx)(q,{children:U}),P("showMonthlyPriceTeachingSentence")&&(null==f?void 0:f.teachingSentence)&&(0,R.jsx)(J,{textWithHtml:null==f?void 0:f.teachingSentence}),l!==b.qE&&(0,R.jsx)(M,{type:l,prefix:G[C]}),f&&(c||void 0!==y&&y&&0===C)&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(W.Z,{financialOffer:f,rows:(0,v.Jb)(l,f),toggleModal:void 0===w?function(){}:w,showEditYourQuoteLink:c,vehicle:void 0===_?{}:_,cartId:void 0===j?"":j})})]})]})},eo=A.default.div.withConfig({displayName:"PaymentMethodListstyles__Container",componentId:"sc-nmox7i-0"})(["margin-bottom:",";@media screen and ","{margin-bottom:",";}"],E.spacers.spacing_6,E.devices.desktop,E.spacers.spacing_9),ea=(0,A.default)(E.Text).withConfig({displayName:"PaymentMethodListstyles__Description",componentId:"sc-nmox7i-1"})(["margin:"," 0 30px 0;"],E.spacers.spacing_2),el=(0,A.default)(E.Text).withConfig({displayName:"PaymentMethodListstyles__Title",componentId:"sc-nmox7i-2"})(["font-family:'Nissan Regular';font-weight:700;"]),ec=function(e){var t,i,n=e.financialOffers,o=e.financeOptions,a=e.selectedOffer,l=e.isLoading,c=e.toggleModal,d=e.setFinancingMethod,u=e.financingMethod,f=(0,p.Z)(),g=f.t,y=f.getIndexBy,x=(0,h.Z)(),C=(0,m.Z)().onEvent,w=(0,s.useRouter)(),_=(0,r.useContext)(I.Z),j=(0,r.useState)(!0),T=j[0],Z=j[1],L=(0,k.rV)(k.c1),V=null==_?void 0:_.vehicle,D=null==_||null===(t=_.cart)||void 0===t?void 0:t.id;(0,r.useEffect)(function(){var e=a||{},t=e.productType,i=e.monthlyPrice;if(!u&&L)d({value:L,label:(0,S.T)(o,L)||(0,v.BR)(L,g,y)});else if(t&&i&&!u&&n.length){var l=(0,S.T)(o,t)||(0,v.BR)(t,g,y),c={value:t,label:l};d(c),(0,k.LS)(k.c1,null==c?void 0:c.value)}},[L,o,n.length,u,y,a,d,g]);var A=(0,O.useQuery)(["getFinanceOptions"],function(){return(0,N.gX)(w.locale)}).data,E=(0,r.useCallback)(function(e){var t,i,n;(null==e?void 0:e.value)===b.qE?t="decide later":(null==e?void 0:e.value)===b.U3&&(t=b.U3),T||C({toggleType:"preferred financing method",locationInpage:"checkout-select-payment-method-section",toggleValue:null!==(i=t)&&void 0!==i?i:null==e||null===(n=e.label)||void 0===n?void 0:n.toLowerCase()},"toggle"),d(e),(0,k.LS)(k.c1,null==e?void 0:e.value),Z(!1)},[C,d,T]),B=(0,S.hc)(null==o||null===(i=o.financeProduct)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.loanType)?null==n?void 0:n.filter(function(e){return null==e?void 0:e.loanType}):n;return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(eo,{"data-testid":"payment",role:"radiogroup","aria-labelledby":"payment-title",children:[(0,R.jsx)(el,{id:"payment-title","data-testid":"payment-title",variant:"heading4",fontWeight:"bold",children:g("paymentListTitle")}),(0,R.jsx)(ea,{"data-testid":"payment-description",variant:"body-small",fontWeight:"light",children:g("selectPaymentMethodContent")}),l?(0,R.jsx)(P.Z,{}):(0,R.jsx)(function(){return null==B?void 0:B.map(function(e,t){return(0,R.jsx)(en,{idOption:null==e?void 0:e.productType,checked:(null==u?void 0:u.value)===(null==e?void 0:e.productType),onCheck:E,financialOffer:e,eimCode:null==V?void 0:V.eimCode,vehicle:V,cartId:D,revealFinanceProductsInCheckout:x("revealFinanceProductsInCheckout"),index:t,toggleModal:c,testId:"paymentOption-financeOffer-".concat(t)},null==e?void 0:e.productType)})},{}),null==A?void 0:A.map(function(e,t){return(0,R.jsx)(en,{index:t,idOption:null==e?void 0:e.id,testId:"paymentOption-".concat(t),checked:(null==u?void 0:u.value)===(null==e?void 0:e.id),onCheck:E},null==e?void 0:e.id)})]})})},er=i(96790),es=i(41160),ed=i(20451),eu=A.default.div.withConfig({displayName:"TradeInstyles__Container",componentId:"sc-1bjjc28-0"})(["margin-bottom:",";"],E.spacers.spacing_9),ep=A.default.div.withConfig({displayName:"TradeInstyles__Value",componentId:"sc-1bjjc28-1"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:40px;"]),ef=A.default.p.withConfig({displayName:"TradeInstyles__ValueTitle",componentId:"sc-1bjjc28-2"})(["font-family:'Nissan Regular';font-style:normal;font-weight:normal;font-size:20px;line-height:28px;letter-spacing:2px;color:#000000;"]),em=A.default.div.withConfig({displayName:"TradeInstyles__ContainerRadio",componentId:"sc-1bjjc28-3"})(["display:flex;justify-content:start;flex-direction:column;}"]),eh=(0,A.default)(E.Radio).withConfig({displayName:"TradeInstyles__Option",componentId:"sc-1bjjc28-4"})(["label{font-family:'Nissan Regular';text-transform:none;}label::first-letter{text-transform:uppercase;}"]),eg=A.default.div.withConfig({displayName:"TradeInstyles__PriceContent",componentId:"sc-1bjjc28-5"})([""]),ev=(0,A.default)(E.Disclaimer).withConfig({displayName:"TradeInstyles__Price",componentId:"sc-1bjjc28-6"})(["span{font-family:'Nissan Regular';font-style:normal;font-weight:normal;font-size:16px;line-height:26px;text-align:right;letter-spacing:1.5px;color:#000000;}"]),ey=(0,A.default)(E.TrashIcon).withConfig({displayName:"TradeInstyles__TrashIcon",componentId:"sc-1bjjc28-7"})(["margin-left:10px;position:relative;top:1.5px;&:hover{cursor:pointer;}"]),eb=A.default.button.withConfig({displayName:"TradeInstyles__IconWrapper",componentId:"sc-1bjjc28-8"})(["background:transparent;border:none;"]),ex=(0,A.default)(E.Text).withConfig({displayName:"TradeInstyles__Title",componentId:"sc-1bjjc28-9"})(["margin-bottom:30px;font-family:'Nissan Regular';font-weight:700;"]),eC=A.default.div.withConfig({displayName:"TradeInstyles__OptionContainer",componentId:"sc-1bjjc28-10"})(["display:flex;align-items:center;margin-bottom:24px;margin-left:12px;&:last-child{margin-bottom:0;}"]),ew=(0,A.default)(E.Button).withConfig({displayName:"TradeInstyles__OptionLink",componentId:"sc-1bjjc28-11"})(["margin-left:12px;font-size:16px;font-weight:400;line-height:26px;font-family:'Nissan Regular';text-decoration:underline;border:none;letter-spacing:0.9px;padding-bottom:0;&:disabled{border:none;}"]);function e_(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function ej(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?e_(Object(i),!0).forEach(function(t){(0,a.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):e_(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var ek=function(e){var t=e.setTradeInObject,i=e.tradeInChoice,n=e.setTradeInChoice,o=(0,er.Z)().navigateTo,a=(0,p.Z)(),l=a.t,c=a.exists,d=(0,g.Z)().getPath,u=(0,s.useRouter)(),f=(0,m.Z)().onEvent,h=(0,Z.Z)(),v=(0,r.useContext)(I.Z)||{},b=v.isBTO,x=v.isB2B,C=v.vehicle,w=v.cart,j=v.cart,T=(void 0===j?{}:j).currency,O=v.dealer,S=(void 0===O?{}:O).id,N=v.tradeInConfiguration,P=(0,_.Z)((0,k.rV)(k.TE)),L=(0,es.kF)(P,l,h,T,b),V=(0,r.useState)(!!(null!=P&&P.data)),D=V[0],A=V[1],E=(0,r.useState)(!1),B=E[0],F=E[1],M=(0,r.useState)(!1),W=M[0],z=M[1],U=(null==C?void 0:C.vehicleType)===ed._3,$=[{choice:"yes",label:l(D?"positiveAnswer":"tradeinPositiveAnswer"),display:c("positiveAnswer")||c("tradeinPositiveAnswer")},{choice:"no",label:l(D?"negativeAnswer":"tradeinNegativeAnswer"),display:c("negativeAnswer")||c("tradeinNegativeAnswer")},{choice:"later",label:l("tradeinDecideLaterAnswer"),display:c("tradeinDecideLaterAnswer")}],G=l("tradeInAddValueCTALabel"),H=l("tradeinValueLabel"),Q=(null==L?void 0:L.label)||l("tradeinNoValueLabel"),q="yes"===i,J="later"===i;(0,r.useEffect)(function(){P||A(!1),(null==P?void 0:P.value)===l("tradeinNoValue")&&"no"!==i?n("no"):(null==P?void 0:P.value)===l("tradeinDecideLaterAnswer")&&"later"!==i?n("later"):(null==P?void 0:P.value)===l("tradeinNoValueLabel")&&"yes"!==i?n("yes"):null!=P&&P.data&&!i&&n("no"),(0,k.LS)(k.yQ,i)},[P]),(0,r.useEffect)(function(){if(!W&&!P&&$){var e=$.some(function(e){return"later"===e.choice&&e.display})?"later":"no";(0,k.LS)(k.TE,JSON.stringify({value:l("later"===e?"tradeinDecideLaterAnswer":"tradeinNoValue"),oustanding:"no"})),n(e),z(!0)}},[W,P,$]),(0,r.useEffect)(function(){var e=D?ej(ej({},null==P?void 0:P.data),{},{hasOutstandingBalance:q}):J||q?{doItLater:!0,value:0}:null;t(function(t){var i=JSON.stringify(t),n=JSON.stringify(e);return i!==n?(y.Z.info("TradeIn - Updating tradeInObject => ".concat(n)),e):t})},[J,q,D,null==P?void 0:P.data,t]);var Y=function(){f({interactionType:"link-click",buttonText:G,locationInpage:"checkout-add-trade-in-section",interactionValue:"add trade-in",destination:"part-trade",toolName:"Universal finance calculator",financeCalculatorStep:"trade-in_start",fcVersion:"trade-in",totalPrice:(null==w||null===(e=w.totals)||void 0===e?void 0:e.totalPrice)||"",vehiclePrice:b?(null==w||null===(t=w.totals)||void 0===t?void 0:t.totalPrice)||"":(null==w||null===(i=w.totals)||void 0===i||null===(i=i.subTotals)||void 0===i?void 0:i.vehicleRrpPrice)||"",fc:"true",ecomJourney:"".concat(b?"bto":"sto"),toolStep:"start",vehicleCategory:U?ed._3.toLowerCase():"passenger cars",vehicleModel:null==C?void 0:C.modelNameWithOverride,vehicleId:null==C?void 0:C.modelCode},"fcSteps"),F(!0),(0,k.LS)("fromPath",u.asPath),(0,k.LS)(k.iV,x);var e,t,i,n,a,l=null==N||null===(n=N.standaloneSettings)||void 0===n?void 0:n.widgetEndpoint;if((null==N||null===(a=N.standaloneSettings)||void 0===a||null===(a=a.journeyTouchPoints)||void 0===a?void 0:a[0])===es.$T&&l)y.Z.info("Redirecting to Trade-In page in other tab:",l),window.open(l,"_blank");else{setTimeout(function(){window.location.reload()},300),(0,k.LS)(k.HO,JSON.stringify({path:"checkout",queryParams:ej({fromCheckout:!0},b&&{bto:!0})}));var c=d("tradein",{queryParams:{vehicleID:null==C?void 0:C.modelCode,vehicleModel:null==C?void 0:C.modelName,dealerId:S}});y.Z.info("Redirecting to Trade-In page:",c),o(c)}},K=function(e){if(f({toggleType:D?"car-trade-in-outstanding-balance":"car-trade-in-options",locationInpage:"checkout-add-trade-in-section",toggleValue:"later"===e?"later with my dealer":e},"toggle"),n(e),!D){var t={yes:l("tradeinNoValueLabel"),no:l("tradeinNoValue"),later:l("tradeinDecideLaterAnswer")}[e];t?(0,k.LS)(k.TE,JSON.stringify({value:t,outstanding:"no"})):y.Z.info("Invalid trade-in choice:",e)}};return(0,R.jsxs)(eu,{children:[(0,R.jsx)(ex,{"data-testid":"payment-title",variant:"heading4",fontWeight:"bold",children:l("tradeinCheckoutStepTitle")}),D&&(0,R.jsxs)(ep,{children:[(0,R.jsx)(ef,{children:H}),(0,R.jsxs)(eg,{children:[(0,R.jsx)(ev,{label:Q,iconToTheRight:!0,placement:"bottom-right",title:null==L?void 0:L.title,toggleOpen:function(){f({tooltipTitle:"".concat(H,"-").concat(Q)},"tooltipDisplay")},children:null==L?void 0:L.desc}),(0,R.jsx)(eb,{onClick:function(){f({interactionType:"icon-click",buttonText:"trash-icon",locationInpage:"checkout-add-trade-in-section",interactionValue:"trade-in delete",destination:"checkout-add-trade-in-section"}),(0,k.cl)(k.TE),A(!1)},children:(0,R.jsx)(ey,{})})]})]}),(0,R.jsx)(em,{"data-testid":"tradein-radio-buttons",children:$.filter(function(e){var t=e.choice,i=e.display;return D?"later"!==t:i}).map(function(e){var t=e.choice,n=e.label;return(0,R.jsxs)(eC,{children:[(0,R.jsx)(eh,{id:t,radioName:"trade-in",label:n,checked:i===t,onCheck:function(){return K(t)}}),"yes"===t&&q&&!D&&(0,R.jsx)(ew,{onClick:Y,label:G,buttonType:"tertiary",isLoading:B})]},t)})})]})},eI=i(85955),eT=i(72520),eO=i(36999),eS=i(78326),eN=i(91091),eP=i(37113),eZ=i(10685),eL=i(25675),eV=i.n(eL),eD=A.default.div.withConfig({displayName:"Identificationstyles__Container",componentId:"sc-4b8sam-0"}
1)(["height:190px;margin-left:-20px;margin-right:-20px;&::before{content:'';position:absolute;top:59px;left:0;width:100%;height:inherit;background-color:",";z-index:-1;}@media screen and (min-width:500px){height:250px;}@media screen and ","{height:300px;margin-left:-",";margin-right:-",";}@media screen and ","{display:flex;flex-direction:row;height:100%;overflow-y:auto;margin-left:-",";margin-right:-",";&::before{top:0;width:40%;}}"],E.colors.grey,E.devices.tablet,E.spacers.spacing_6,E.spacers.spacing_6,E.devices.desktop,E.spacers.spacing_10,E.spacers.spacing_10);(0,A.default)(E.Button).withConfig({displayName:"Identificationstyles__Term",componentId:"sc-4b8sam-1"})(["font-family:'Nissan Regular';letter-spacing:1.5px;text-decoration:underline;border:none;text-transform:initial;padding:0;margin-top:30px;"]);var eA=(0,A.default)(E.Column).withConfig({displayName:"Identificationstyles__FirstColumn",componentId:"sc-4b8sam-2"})(["height:100%;"]),eE=(0,A.default)(E.Column).withConfig({displayName:"Identificationstyles__SecondColumn",componentId:"sc-4b8sam-3"})(["margin:0;padding:30px "," "," ",";@media screen and ","{padding:"," "," "," ",";height:100%;max-width:40%;}"],E.spacers.spacing_4,E.spacers.spacing_4,E.spacers.spacing_4,E.devices.desktop,E.spacers.spacing_12,E.spacers.spacing_4,E.spacers.spacing_4,E.spacers.spacing_10),eB=A.default.div.withConfig({displayName:"Identificationstyles__VehicleImageContainer",componentId:"sc-4b8sam-4"})(["position:relative;width:100%;height:100%;"]),eF=(0,A.default)(eV()).withConfig({displayName:"Identificationstyles__VehicleImage",componentId:"sc-4b8sam-5"})(["position:absolute;top:50%;left:45%;max-width:100%;transform:translate(-50%,-50%);height:auto;scale:0.85;@media screen and ","{top:55%;left:50%;scale:1;}"],E.devices.desktop),eR=A.default.div.withConfig({displayName:"Identificationstyles__GuestCheckoutContainer",componentId:"sc-4b8sam-6"})([""]),eM=(0,A.default)(E.Text).withConfig({displayName:"Identificationstyles__GuestCheckoutTitle",componentId:"sc-4b8sam-7"})(["margin-bottom:20px;"]),eW=(0,A.default)(E.Text).withConfig({displayName:"Identificationstyles__GuestCheckoutText",componentId:"sc-4b8sam-8"})(["font-size:16px;letter-spacing:1.5px;margin-bottom:30px;"]),ez=(0,A.default)(E.Button).withConfig({displayName:"Identificationstyles__GuestCheckoutButton",componentId:"sc-4b8sam-9"})([""]),eU=A.default.div.withConfig({displayName:"Identificationstyles__IdentificationContainer",componentId:"sc-4b8sam-10"})(["margin-top:",";@media screen and ","{margin-top:",";}"],E.spacers.spacing_6,E.devices.desktop,E.spacers.spacing_10),e$=A.default.div.withConfig({displayName:"Identificationstyles__IdentificationButtonContainer",componentId:"sc-4b8sam-11"})(["display:flex;flex-direction:column;align-items:center;width:auto;@media screen and ","{flex-direction:row;}"],E.devices.desktop),eG=(0,A.default)(E.Button).withConfig({displayName:"Identificationstyles__LoginButton",componentId:"sc-4b8sam-12"})(["margin-bottom:20px;@media screen and ","{margin-bottom:0;margin-right:30px;}"],E.devices.desktop),eH=A.default.div.withConfig({displayName:"Identificationstyles__RegisterButtonContainer",componentId:"sc-4b8sam-13"})(["width:auto;"]),eQ=(0,A.default)(E.Button).withConfig({displayName:"Identificationstyles__RegisterButton",componentId:"sc-4b8sam-14"})(["width:auto;"]),eq=(0,A.default)(eW).withConfig({displayName:"Identificationstyles__IdentificationText",componentId:"sc-4b8sam-15"})([""]),eJ=(0,A.default)(eM).withConfig({displayName:"Identificationstyles__IdentificationTitle",componentId:"sc-4b8sam-16"})([""]),eY=i(58156),eK=function(){var e,t=(0,r.useContext)(I.Z)||{},i=t.vehicle,n=t.thumbnailUrl,o=t.cart,a=t.isB2B,l=t.isBTO,c=(0,p.Z)(a),d=c.t,u=c.exists,f=(0,m.Z)(),h=f.onEvent,v=f.onPageLoad,b=f.cookieAccepted,x=(0,s.useRouter)(),C=(0,g.Z)().getPath,w=(0,er.Z)().navigateTo,_=(0,Z.Z)(),T=(0,eY.ZN)(o,_).formattedTotalPrice,S=(0,r.useState)(!0),N=S[0],P=S[1],L=(0,r.useState)(!1),V=L[0],D=L[1],A=(0,r.useState)(!1),E=A[0],B=A[1],F=(0,r.useState)(!1),M=F[0],W=F[1],z=(0,eY.Ck)(o).accessoriesOne,U=(o||{}).id,$=(null==i?void 0:i.vehicleType)===ed._3,G=d("guestCheckoutCtaLabel"),H=d("createAccountLinkLabel"),Q=d("logIntoAccountLinkLabel"),q=(0,O.useQuery)(["getLoginUrl"],function(){var e,t=(0,eO.Q2)({queryParams:{cartId:U,isCentralStock:null===(e=x.query
1)||void 0===e?void 0:e.isCentralStock}})(C("post-login-checkout"));return y.Z.info("EverythingInOrder - formatted post-login-checkout url => ".concat(t)),(0,eN.Zd)(x.locale)(t,{cartId:U})},{enabled:V}).data;(0,r.useEffect)(function(){q&&((0,eP.B$)(),(0,eS.l6)(q))},[q]);var J=u("createAccountLinkLabel")||u("logIntoAccountLinkLabel");return(0,r.useEffect)(function(){if(N&&b){var e,t,n,a;v({pageName:"ecommerce|checkout-identification",pageType:"checkout-identification-overlay-".concat(l?"bto":"sto"),loginStatus:"logged out",vehicleModel:null==i?void 0:i.modelNameWithOverride,vehicleId:null==i?void 0:i.modelCode,totalPrice:null==o||null===(e=o.totals)||void 0===e?void 0:e.totalPrice,vehicleCategory:$?ed._3.toLowerCase():"passenger cars",vehicleVersion:null==i?void 0:i.version,vehicleGrade:null==i?void 0:i.grade,personalitySegment:null==o?void 0:o.customerGroup,VIN:(null==i?void 0:i.vin)||"",accessoriesTotalNumber:(null==z?void 0:z.length)||0,accessoriesTotalPrice:T||0,EIM:null==i?void 0:i.eimCode,tradeinValuePrice:null!==(t=null===es.NA||void 0===es.NA||null===(n=es.NA.data)||void 0===n?void 0:n.value)&&void 0!==t?t:"",tradeinOrder:null!==es.NA&&void 0!==es.NA&&null!==(a=es.NA.data)&&void 0!==a&&a.value?"yes":(0,k.rV)(k.yQ)}),P(!1)}},[null==o?void 0:o.customerGroup,null==o||null===(e=o.totals)||void 0===e?void 0:e.totalPrice,b,l,N,$,v,T,null==i?void 0:i.eimCode,null==i?void 0:i.grade,null==i?void 0:i.modelCode,null==i?void 0:i.modelNameWithOverride,null==i?void 0:i.version,null==i?void 0:i.vin,z]),(0,R.jsxs)(eD,{"data-testid":"identification",children:[(0,R.jsx)(eA,{lg:5,children:(0,R.jsx)(eB,{children:(0,R.jsx)(eF,{src:n,alt:"".concat(null==i?void 0:i.modelNameWithOverride," ").concat(null==i?void 0:i.grade),width:800,height:450})})}),(0,R.jsxs)(eE,{lg:7,children:[(0,R.jsxs)(eR,{children:[(0,R.jsx)(eM,{"data-testid":"identification-title",variant:"heading4",fontWeight:"bold",children:d("identificationGuestCheckoutTitle")}),(0,R.jsx)(eW,{"data-testid":"identification-description",children:d("identificationGuestCheckoutBody")}),(0,R.jsx)(ez,{uppercase:!0,label:G,onClick:function(){B(!0),(0,k.LS)(k.YA,x.asPath),(0,j.LS)(j.vf,JSON.stringify((0,eZ.S_)(t,eZ._5,_))),w(C("checkout/form"),{shallow:!0}),h({interactionType:"button-click",buttonText:G,locationInpage:"checkout-identification-overlay",interactionValue:"continue-as-guest",destination:"guest-checkout-payment-page"})},isLoading:E,"data-testid":"step-identification-button-continue"})]}),J&&(0,R.jsxs)(eU,{children:[(0,R.jsx)(eJ,{variant:"heading4",fontWeight:"bold","data-testid":"identification-title",children:d("identificationAccountTitle")}),(0,R.jsx)(eq,{"data-testid":"identification-description",children:d("identificationAccountBody")}),(0,R.jsxs)(e$,{children:[u("logIntoAccountLinkLabel")&&(0,R.jsx)(eG,{uppercase:!0,label:Q,onClick:function(){(0,j.LS)(j.vf,JSON.stringify((0,eZ.S_)(t,eZ.ym))),D(!0),h({interactionType:"button-click",buttonText:Q,locationInpage:"checkout-identification-overlay",interactionValue:"log-in-to-your-account",destination:"log-in-to-account-payment-page"})},isLoading:V,"data-testid":"step-identification-button-login"}),u("createAccountLinkLabel")&&(0,R.jsx)(eH,{children:(0,R.jsx)(eQ,{uppercase:!0,label:H,onClick:function(){W(!0),(0,k.LS)(k.YA,x.asPath),(0,j.LS)(j.vf,JSON.stringify((0,eZ.S_)(t,eZ.Nz))),w(C("checkout/form",{pathParams:{},queryParams:{isRegister:!0}}),{shallow:!0}),h({interactionType:"button-click",buttonText:H,locationInpage:"checkout-identification-overlay",interactionValue:"create-an-account",destination:"create-account-payment-page"})},isLoading:M,"data-testid":"step-identification-button-register",buttonType:"tertiary"})})]})]})]})]})},eX=i(74792),e0=i(18723),e1=(0,A.default)(e0.Z).withConfig({displayName:"Stepsstyles__IdentificationModal",componentId:"sc-1aq4v52-0"})(["height:100%;"]),e2=E.spacers.spacing_2,e5=(0,A.keyframes)(["0%{opacity:0;width:0;}100%{opacity:1;width:calc(100% + "," * 2);}"],e2),e4=A.default.ul.withConfig({displayName:"Stepsstyles__List",componentId:"sc-1aq4v52-1"})(["list-style-type:none;overflow:hidden;padding:",";margin:-",";width:calc(100% + "," * 2);@media screen and ","{animation:"," 1s 1 forwards;}"],e2,e2,e2,E.devices.desktop,e5),e3=(0,A.default)(E.Button).withConfig({displayName:"Stepsstyles__ContinueButton",componentId:"sc-1aq4v52-2"})(["margin-bottom:",";@media screen and ","{margin-bottom:0;}"],E.spacers.spacing_9,E.devices.desktop);function e9(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function e6(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?e9(Object(i),!0).forEach(function(t){(0,a.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):e9(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var e8=function(e){var t,i,a,l,O,S,N,P,L=e.setDisclaimerRci,V=(0,s.useRouter)(),D=(0,h.Z)(),A=(0,m.Z)(),E=A.onPageLoad,B=A.cookieAccepted,F=A.onEvent,M=(0,p.Z)().t,W=(0,d.Z)(),z=W.useFinancialOffer,U=W.provider,G=(0,g.Z)().getPath,H=(0,f.Z)(),Q=H.toggleModal,q=H.isOpen,J=H.closeModal,Y=(0,f.Z)(),K=Y.toggleModal,X=Y.isOpen,ee=Y.closeModal,et=(0,r.useContext)(I.Z)||{},ei=et.vehicle,en=et.cart,eo=et.dealer,ea=et.isBTO,el=et.buttonLoading,eu=et.setButtonLoading,ep=et.setHandleButtonClick,ef=et.setButtonLabel,em=et.setLegalFinanceOffer,eh=(0,er.Z)().navigateTo,eg=(0,Z.Z)(),ev=(0,eY.ZN)(en,eg).formattedTotalPrice,ey=null==en||null===(i=en.totals)||void 0===i?void 0:i.totalPrice,eb=null==ei?void 0:ei.vin,ex=(null==ei?void 0:ei.vehicleType)===ed._3,eC=(en||{}).id,ew=(0,k.rV)(k.J8)?new URLSearchParams(null===(a=(0,k.rV)(k.J8))||void 0===a?void 0:a.split("?")[1]):void 0,e_=(null!==(l=null==en?void 0:en.totalAvailableLocations)&&void 0!==l?l:1/0)<2?null==en?void 0:en.dealerId:void 0,ej=null!==(O=null==eo?void 0:eo.id)&&void 0!==O?O:null==ew?void 0:ew.get("dealerId"),eO=null!=ew&&ew.get("placeId")?{placeId:ew.get("placeId"),longitude:ew.get("long"),latitude:ew.get("lat"),radius:ew.get("radius")}:void 0,eS=M("continueButtonLabel"),eN=M("vehicleNotAvailableForDealerLabel"),eP=G("service-unavailable"),eZ=M("checkoutCloseOverlayCTALabel"),eL=(0,eY.Ck)(en).accessoriesOne,eV=(0,r.useState)(!0),eD=eV[0],eA=eV[1],eE=(0,r.useState)([]),eB=eE[0],eF=eE[1],eR=(0,r.useState)(null),eM=eR[0],eW=eR[1],ez=(0,r.useState)(),eU=ez[0],e$=ez[1],eG=(0,r.useState)((0,k.rV)(k.cz)||ej||e_),eH=eG[0],eQ=eG[1],eq=(0,r.useState)(""),eJ=eq[0],e0=eq[1],e2=(0,r.useState)(""),e5=e2[0],e9=e2[1],e8=(null==eo?void 0:eo.id)||eH||"",e7=eb||"",te=((null==en?void 0:en.totalAvailableLocations)||0)>1,tt=!!en&&(!te||!!eH),ti=eb||(null==en?void 0:en.id),tn=(0,b.cI)(ti),to=(0,b.bW)(ti),ta=U===v.Nh,tl=U===v.ZK,tc=z(ta||tl?void 0:e6(e6(e6({},ei),ei&&{vin:eb,dealerId:ej}),ey&&{rrpPrice:ey}),tn,"checkout",ea),tr=tc.isLoading,ts=tc.financialOffer,td=tc.selected,tu=tc.setSelected,tp=tc.financeOptions,tf=(0,u.Z)(ta?(0,w.rj)(ei):void 0,{channel:ea?"BTO":"STO",financePayload:null!==(S=null==ei?void 0:ei.payloadFinance)&&void 0!==S?S:null}),tm=tf.offers,th=tf.isLoading,tg={monthly:M("monthlyInstallmentLabelSantander"),"vehicle-price":M("tableVehiclePriceLabelSantander"),duration:M("tableTermLabelSantander"),mileage:M("tableEstimatedTotalMileageSantander"),"services-included":M("includedServicesLabel")},tv=(0,u.Z)(tl?(0,w.rj)(ei):void 0,{channel:"BTO",authoring:tg,financePayload:null!==(N=null==ei?void 0:ei.payloadFinance)&&void 0!==N?N:null}),ty=tv.offers,tb=tv.isLoading,tx=void 0===ts?[]:ts;if(ta?tx=tm.map(b.TF):tl&&(tx=ty.map(function(e){return(0,x.rt)(e)})),ta||tl){var tC=(0,C.l)(null==ei?void 0:ei.eimCode);null!=tC&&tC.productType&&(tx=tx.some(function(e){return(null==e?void 0:e.productType)===tC.productType})?tx.map(function(e){return(null==e?void 0:e.productType)===tC.productType?tC:e}):[tC].concat((0,o.Z)(tx)),y.Z.info("Steps - restored finance.offer as checkout default for",tC.productType))}var tw=tr;ta?tw=th:tl&&(tw=tb),(0,r.useEffect)(function(){if(tx&&tx.length>0&&0===eB.length){var e;eF(tx),L(null===(e=tx[0])||void 0===e?void 0:e.detailedOfferLegalText),null==em||em(ta?tx[0]:null)}},[tx,eB,ta,L,em]),(0,r.useEffect)(function(){if(eD&&B&&tt){var e,t,i,n;E({pageType:"checkout-page-".concat(ea?"bto":"sto"),loginStatus:"logged out",vehicleModel:null==ei?void 0:ei.modelNameWithOverride,vehicleId:null==ei?void 0:ei.modelCode,totalPrice:null==en||null===(e=en.totals)||void 0===e?void 0:e.totalPrice,vehicleCategory:ex?ed._3.toLowerCase():"passenger cars",vehicleVersion:null==ei?void 0:ei.version,vehicleGrade:null==ei?void 0:ei.grade,personalitySegment:null==en?void 0:en.customerGroup,pageName:"ecommerce|checkout",VIN:e7,dealerId:e8,productEvent:"cart-add",accessoriesTotalNumber:(null==eL?void 0:eL.length)||0,accessoriesTotalPrice:null!=ev?ev:0,tradeinValuePrice:null!==(t=null===es.NA||void 0===es.NA||null===(i=es.NA.data)||void 0===i?void 0:i.value)&&void 0!==t?t:"",tradeinOrder:null!==es.NA&&void 0!==es.NA&&null!==(n=es.NA.data)&&void 0!==n&&n.value?"yes":eJ,EIM:null==ei?void 0:ei.eimCode}),eA(!1)}},[null==en?void 0:en.customerGroup,ev,null==en||null===(P=en.totals)||void 0===P?void 0:P.totalPrice,en,B,ea,eD,ex,E,null==e
1i?void 0:ei.grade,null==ei?void 0:ei.modelCode,null==ei?void 0:ei.eimCode,null==ei?void 0:ei.modelNameWithOverride,null==ei?void 0:ei.version,eb,eL,eJ,null==eo?void 0:eo.id,eH,tt,e8,e7]);var t_=(0,r.useCallback)((t=(0,n.Z)(c().mark(function e(t){var i,n,o,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return F({interactionType:"button-click",buttonText:eS,locationInpage:"checkout-bottom-".concat(t,"-cta"),interactionValue:"continue",destination:"checkout-identification-overlay"}),null==eu||eu(!0),i=[],e.prev=3,n=function(e){if(e&&(e9(""),eM&&i.push((0,eX.OY)(V.locale)(eC,eM).then(function(e){y.Z.info("handleClickContinue - updateFinancingTradeIn:",e)}).catch(function(e){y.Z.info("Something is wrong with updateFinancingTradeIn => ".concat(e)),eh(eP,{shallow:!0})})),eU)){var t,n,o=eU||{},a=o.value,l=o.label,c=(0,_.Z)((0,k.rV)(k.AX)),r=(null==c||null===(t=c.quotes)||void 0===t?void 0:t[0])||(null==c?void 0:c.offer)||c;if(Array.isArray(r)&&(r=r.find(function(e){return(null==e?void 0:e.productType)===a})),y.Z.info("handleClickContinue - financingMethod => ".concat(a)),r&&(0,v.ov)(null===(n=r)||void 0===n?void 0:n.productType)){var s=(0,v.Wl)(r)({fec:(0,_.Z)((0,j.rV)(j.Oo)||""),tradeIn:(0,_.Z)((0,k.rV)(k.TE)||"")});y.Z.info("handleClickContinue - financeObject => ".concat(JSON.stringify(s)));var d=$(U)(r,null==ei?void 0:ei.eimCode);(0,k.LS)(k.AX,JSON.stringify(d)),i.push((0,eX.oz)(V.locale)(eC,s).then(function(e){y.Z.info("handleClickContinue - updateFinancialDetails:",e)}).catch(function(e){y.Z.info("Something is wrong with updateFinancialDetails => ".concat(e)),eh(eP,{shallow:!0})}))}i.push((0,eX.lV)(V.locale)(eC,{financingMethod:a,financingMethodLabel:l}).then(function(e){y.Z.info("handleClickContinue - updateFinancingMethod:",e)}).catch(function(e){y.Z.info("Something is wrong with updateFinancingMethod => ".concat(e)),eh(eP,{shallow:!0})})),(0,b.I_)(eU.value)&&r&&(null==tu||tu(r))}},(null==en?void 0:en.dealerId)===eH?n(eH):eH&&(a=((null!==(o=null==en?void 0:en.totalAvailableLocations)&&void 0!==o?o:0)>1?(0,eX._z)(V.locale)(eC,eH,null==eo?void 0:eo.vin):(0,eX.Ru)(V.locale)(eC,eH)).then(function(e){n(null==e?void 0:e.dealerId)}).catch(function(e){e9(eN),y.Z.info("Something is wrong with addDealerToCart => ".concat(e)),eh(eP,{shallow:!0})}),i.push(a)),e.next=8,Promise.all(i);case 8:K(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),y.Z.error("Something is wrong on handleClickContinue",e.t0);case 14:return e.prev=14,null==eu||eu(!1),e.finish(14);case 17:case"end":return e.stop()}},e,null,[[3,11,14,17]])})),function(e){return t.apply(this,arguments)}),[eS,null==en?void 0:en.dealerId,null==en?void 0:en.totalAvailableLocations,eC,null==eo?void 0:eo.vin,eN,eU,eh,F,U,V.locale,eH,eP,eu,tu,K,eM,null==ei?void 0:ei.eimCode]);(0,r.useEffect)(function(){null==ef||ef(eS),null==ep||ep(function(){return function(){return t_("sticky-bar")}})},[eS,t_,ef,ep]);var tj=(0,r.useCallback)(function(){F({interactionType:"link-click",buttonText:eZ,locationInpage:"checkout-identification-overlay-top-right",interactionValue:"close",destination:"checkout-page-".concat(ea?"bto":"sto")}),ee()},[ee,eZ,ea,F]);return(0,R.jsxs)(e4,{children:[(0,R.jsx)(eI.Z,{dealersLocationInfos:eO,setSelectedDealerId:eQ,errorMessage:e5,setErrorMessage:e9}),D("all_tradein")&&(0,R.jsx)(ek,{setTradeInObject:eW,tradeInChoice:eJ,setTradeInChoice:e0}),(0,R.jsx)(ec,{selectedOffer:td,financialOffers:eB,financeOptions:tp,isLoading:!!tw,toggleModal:Q,setFinancingMethod:e$,financingMethod:eU}),(0,R.jsx)(e3,{label:M("continueButtonLabel"),onClick:function(){return t_("primary")},isLoading:el,"data-testid":"steps-button-continue",disabled:!eH}),(0,R.jsx)(T.Z,{id:to}),(0,R.jsx)(e1,{isOpen:X,close:tj,isRounded:!0,fromBottom:!0,size:"100%",labelClose:M("checkoutCloseOverlayCTALabel"),showCloseInMobile:!0,children:(0,R.jsx)(eK,{})}),(0,R.jsx)(eT.Z,{isOpen:q,close:J,cart:en,setFinancialOffers:eF})]})}},96775:function(e,t,i){"use strict";i.d(t,{Fh:function(){return s},WQ:function(){return u},Wr:function(){return p},gL:function(){return r},qS:function(){return d}});var n=i(37035),o=i(84521),a=i(53082),l=i(26191),c=i(90591),r=(0,n.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.bodyType,e.colorLabel,e.fuelType,e.transmission,e.numberOfSpeeds]},(0,o.Z)(Boolean),(0,o.Z)(function(e){return"0"!==e}),(0,a.Z)(" | ")),s=(0,n.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bodyType,i=e.fuelType,n=e.transmission,o=e.cargoVolume,a=e.payload;return[t,i,n,o&&!Number.isNaN(parseFloat(o))&&"".concat(parseFloat(o).toFixed(1)," m3"),a&&!Number.isNaN(parseFloat(a))&&"".concat(parseFloat(a).toFixed(0)," kg max")]},(0,o.Z)(Boolean),(0,o.Z)(function(e){return"0"!==e}),(0,a.Z)(" | ")),d=function(e,t,i){if("Z"===i)return"".concat(e,"/z.jpg.thumb.381.376.png");if("Z"!==i&&t){var n=t===c.xE?0:t.split(" ")[0];return"".concat(e,"/").concat(n,".jpg.thumb.381.376.png")}return""},u=function(e){var t,i;
1return(null===(t=(0,l.Z)(null!==(i=null==e?void 0:e.efficiencyAdditionalData)&&void 0!==i?i:null))||void 0===t?void 0:t.isPureElectricVehicle)||!1},p=function(e){if(!(null!=e&&e.monthlyPrice))return"";var t=(e||{}).monthlyPrice;if("number"==typeof t)return t;if("string"==typeof t){var i,n=t.match(/[\d,.]+/),o=null==n||null===(i=n[0])||void 0===i?void 0:i.replace(",",".");return o?Number(o):""}return""}},83103:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(67294),o=i(40294),a=i(14161),l=i(25211),c=i(84102),r=i(77108),s=i(90591),d=i(43603),u=i(94132),p=i(96981),f=i(71359),m=i(20451),h=i(70483),g=i(19521),v=i(69368),y=i.n(v),b=i(25675),x=i.n(b),C=i(95637),w=g.default.div.withConfig({displayName:"VehicleSummarystyles__SummaryContainer",componentId:"sc-1i2ig9v-0"})(["background-color:",";border-radius:4px;padding:",";width:100%;display:flex;flex-direction:column;margin-bottom:",";justify-content:space-between;margin-left:-",";margin-right:-",";width:calc(100% + "," + ",");@media screen and ","{margin-left:0;margin-right:0;width:100%;}@media screen and ","{padding:"," ",";}"],C.colors.grey_3,C.spacers.spacing_4,C.spacers.spacing_9,C.spacers.spacing_4,C.spacers.spacing_4,C.spacers.spacing_4,C.spacers.spacing_4,C.devices.tablet,C.devices.desktop,C.spacers.spacing_4,C.spacers.spacing_6),_=g.default.div.withConfig({displayName:"VehicleSummarystyles__ImageContainer",componentId:"sc-1i2ig9v-1"})(["position:relative;display:flex;height:200px;width:100%;justify-content:center;align-items:center;overflow:hidden;@media screen and ","{height:180px;}@media screen and ","{height:250px;padding:",";}"],C.devices.tablet,C.devices.desktop,C.spacers.spacing_4),j=(0,g.default)(x()).withConfig({displayName:"VehicleSummarystyles__VehicleImage",componentId:"sc-1i2ig9v-2"})(["position:relative;height:auto;max-height:100%;max-width:100%;width:auto;object-fit:contain;transform:",";transition:transform 0.3s ease;"],function(e){return e.$scale?"scale(1.2)":"none"}),k=g.default.div.withConfig({displayName:"VehicleSummarystyles__FeeContainer",componentId:"sc-1i2ig9v-3"})(["display:flex;justify-content:space-between;width:100%;margin-bottom:16px;"]),I=(0,g.default)(C.Text).withConfig({displayName:"VehicleSummarystyles__FeeLabel",componentId:"sc-1i2ig9v-4"})([""]),T=(0,g.default)(C.Text).withConfig({displayName:"VehicleSummarystyles__FeeValue",componentId:"sc-1i2ig9v-5"})([""]),O=g.default.div.withConfig({displayName:"VehicleSummarystyles__DetailsLinkContainer",componentId:"sc-1i2ig9v-6"})(["width:auto;"]),S=(0,g.default)(C.Button).withConfig({displayName:"VehicleSummarystyles__DetailsLink",componentId:"sc-1i2ig9v-7"})(["font-size:14px;"]),N=g.default.div.withConfig({displayName:"VehicleSummarystyles__VehicleImageLoaderContainer",componentId:"sc-1i2ig9v-8"})(["display:flex;justify-content:center;align-items:center;width:100%;height:161px;@media screen and ","{height:253px;}"],C.devices.tablet),P=(0,g.default)(y()).withConfig({displayName:"VehicleSummarystyles__VehicleImageLoader",componentId:"sc-1i2ig9v-9"})([""]),Z=g.default.div.withConfig({displayName:"VehicleSummarystyles__VehicleInfosContainer",componentId:"sc-1i2ig9v-10"})(["margin-bottom:",";"],C.spacers.spacing_2);(0,g.default)(C.Text).attrs({variant:"heading4"}).withConfig({displayName:"VehicleSummarystyles__VehicleTitle",componentId:"sc-1i2ig9v-11"})([""]);var L=(0,g.default)(C.Text).withConfig({displayName:"VehicleSummarystyles__Desc",componentId:"sc-1i2ig9v-12"})(["margin-bottom:",";"],C.spacers.spacing_2),V=g.default.div.withConfig({displayName:"VehicleSummarystyles__ConsumptionContainer",componentId:"sc-1i2ig9v-13"})(["display:flex;align-items:baseline;justify-content:space-between;"]),D=(0,g.default)(V).withConfig({displayName:"VehicleSummarystyles__VehiclePriceContainer",componentId:"sc-1i2ig9v-14"})([""]),A=(0,g.default)(x()).withConfig({displayName:"VehicleSummarystyles__ConsumptionImage",componentId:"sc-1i2ig9v-15"})([""]),E=(0,g.default)(C.Disclaimer).withConfig({displayName:"VehicleSummarystyles__PriceDisclaimer",componentId:"sc-1i2ig9v-16"})(["div[role='button'] span{font-size:14px;line-height:24px;}span[role='button']{top:-25px;svg{width:20px;height:20px;}}@media screen and ","{div[role='tooltip']{width:250px;right:-30px;::before{right:28px;}}}"],C.devices.tablet),B=g.default.div.withConfig({displayName:"VehicleSummarystyles__Container",componentId:"sc-1i2ig9v-17"})([""]),F=i(85893),R=function(){var e=(0,l.Z)(),t=e.t,i=e.exists,g=e.tOrEmpty,v=(0,a.Z)(),y=(0,o.Z)(),b=(0,c.Z)().onEvent,x=(0,n.useContext)(h.Z)||{},C=x.vehicle,R=x.thumbnailUrl,M=x.toggleVehicleDetailsModal,W=x.cart,z=x.currentStep,U=x.isBTO,$=t("checkoutShowDetail
1sCTALabel"),G=t("discountedPriceLabel"),H=t("rrpPriceLabel"),Q=1===z,q=(0,f.mC)(C),J=(null==C?void 0:C.vehicleType)===m._3,Y=(0,d.oh)(C,t,g,v("show_rich_efficiency_info_sto")),K=Y.consumptionLabel,X=Y.consumptionValue,ee=(0,s.Y3)(C,g("consumptionStickersPath")).consumptionImageUrl,et=(0,r.pG)(W),ei=(0,p.Y)(et,W,y),en=ei.formattedDiscountedPrice,eo=ei.formattedPrice,ea=ei.hasDiscountAmount&&(v("all_discount_STO")||U),el=ea?en:eo,ec=ea?G:H,er=(0,n.useCallback)(function(){b({interactionType:"link-click",buttonText:$,locationInpage:"".concat(Q?"checkout":"payment","-your-reservation-column"),interactionValue:"show details",destination:"".concat(Q?"checkout":"payment","-vehicle-summary-overlay")}),M&&M()},[Q,b,$,M]),es=function(e,t){b({tooltipTitle:"".concat(e,"-").concat(t)},"tooltipDisplay")};return(0,F.jsxs)(w,{children:[R?(0,F.jsx)(_,{children:(0,F.jsx)(j,{$scale:!J,src:R,alt:"",width:450,height:230})}):(0,F.jsx)(N,{children:(0,F.jsx)(P,{dark:!0})}),v("checkout_show_legal_data")&&(0,F.jsxs)(Z,{children:[(0,F.jsx)(L,{variant:"subtitle-medium",fontWeight:"bold",children:"".concat(t("checkoutOverlayTitle")," ").concat(null==C?void 0:C.modelNameWithOverride," ").concat(null==C?void 0:C.grade," ").concat(q)}),(0,F.jsxs)(V,{children:[(null==C?void 0:C.fuelConsumption)!==s.xE&&(0,F.jsx)(L,{variant:"bodyCards",children:"".concat(K," ").concat(X)}),!!ee&&(0,F.jsx)(A,{src:"".concat((0,u.Z)("endpoint.assets")).concat(ee),alt:"",width:35,height:35,layout:"fixed"})]}),(0,F.jsxs)(D,{children:[(0,F.jsx)(L,{variant:"bodyCards",children:ec}),(0,F.jsx)(E,{label:el,iconToTheRight:!0,title:g(ea?"discountDisclaimerTooltipTitle":"msrpDisclaimerTooltipTitle"),placement:"bottom-right",testId:["vehicle-discounted-price-disclaimer","vehicle-discounted-price-disclaimer-title","vehicle-discounted-price-disclaimer-content"],toggleOpen:function(){return es(ec,el)},children:g(ea?"discountDisclaimerTooltipDescription":"msrpDisclaimerTooltipDescription")})]})]}),(0,F.jsxs)(B,{children:[i("reassuranceRefundableCheckout")&&(0,F.jsxs)(k,{children:[(0,F.jsx)(I,{children:t("reassuranceRefundableCheckout")}),(0,F.jsx)(T,{"data-testid":"delivery-fee",children:y((0,r.YX)(W),null==W?void 0:W.currency)})]}),(0,F.jsx)(O,{children:(0,F.jsx)(S,{onClick:er,label:$,buttonType:"tertiary"})})]})]})}},91690:function(e,t,i){"use strict";i.d(t,{Z:function(){return eZ}});var n=i(67294),o=i(25211),a=i(14161),l=i(71359),c=i(25675),r=i.n(c),s=i(11163),d=i(26537),u=i(43603),p=i(94132),f=i(29320),m=i(90591),h=i(53082),g=i(37035),v=i(84521),y=(0,h.Z)(" | "),b=function(e){if(null!=e&&e.specifications){var t,i=e.specifications.find(function(e){return(null==e?void 0:e.specGroupCode)==="PACKS"}),n=(null!==(t=null==i?void 0:i.categories)&&void 0!==t?t:[]).reduce(function(e,t){return e.concat(t.attributes)},[]).map(function(e){return e.attributeName});if(n.length>0)return{packsOptionsLabel:"".concat(null==i?void 0:i.specGroupName," : "),packsOptionsValue:y(n)}}return""},x=(0,g.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.exteriorColor,i=e.fuelType,n=e.transmission,o=e.numberOfSpeeds;return[null==t?void 0:t.label,i,n,o]},(0,v.Z)(Boolean),(0,v.Z)(function(e){return"0"!==e}),(0,h.Z)(" | ")),C=i(96775),w=i(70483),_=i(19521),j=i(95637),k=(0,_.default)(j.Text).withConfig({displayName:"VehicleDetailsstyles__BaseText",componentId:"sc-1owkw0s-0"})(["font-size:14px;line-height:24px;letter-spacing:0.9px;"]),I=_.default.div.withConfig({displayName:"VehicleDetailsstyles__ContentEfficiency",componentId:"sc-1owkw0s-1"})(["display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;"]),T=(0,_.default)(k).withConfig({displayName:"VehicleDetailsstyles__Desc",componentId:"sc-1owkw0s-2"})(["margin-bottom:",";"],j.spacers.spacing_2),O=(0,_.default)(T).withConfig({displayName:"VehicleDetailsstyles__DescEfficiency",componentId:"sc-1owkw0s-3"})(["margin-right:5px;position:relative;top:2px;"]),S=_.default.div.withConfig({displayName:"VehicleDetailsstyles__DetailsContent",componentId:"sc-1owkw0s-4"})(["margin-bottom:",";"],j.spacers.spacing_2),N=_.default.div.withConfig({displayName:"VehicleDetailsstyles__EfficiencyWrapper",componentId:"sc-1owkw0s-5"})(["display:flex;align-items:center;"]),P=(0,_.default)(k).withConfig({displayName:"VehicleDetailsstyles__DetailsText",componentId:"sc-1owkw0s-6"})(["display:inline;font-family:'Nissan Light';color:#5f5f5f;"]),Z=(0,_.default)(k).withConfig({displayName:"VehicleDetailsstyles__DetailsTitle",componentId:"sc-1owkw0s-7"})(["display:inline;"]),L=_.default.div.withConfig({displayName:"VehicleDetailsstyles__TooltipEfficiencyContent",componentId:"sc-1owkw0s-8"})(["width:100%;height:290px;position:relative;"]),V=(0,_.default)(j.Disclaimer).withConfig({displayName:"VehicleDetailsstyles__TooltipEfficiency",componentId:"sc-1owkw0s-9"})(["position:relative;@media screen and ","{div[role='tooltip']{width:320px;}}@media screen and ","{div[role='tooltip']{right:-190px;::before{right:188px;}}}@media screen and "," and (min-width:425px){div[role='tooltip']{right:-15px;::before{right:13px;}}}"],j.devices.tablet,j.devices.mobile,j.devices.mobile),D=(0,_.default)(r()).withConfig({displayName:"VehicleDetailsstyles__ConsumptionImg",componentId:"sc-1owkw0s-10"})(["margin-left:5px;"]),A=(0,_.default)(k).attrs({variant:"bodyCards"}).withConfig({displayName:"VehicleDetailsstyles__CarSpecifications",componentId:"sc-1owkw0s-11"})([""]),E=i(20451),B=i(85893),F=function(){var e,t,i,l=(0,s.useRouter)(),c=(0,o.Z)(),h=c.t,g=c.tOrEmpty,v=c.exists,y=(0,a.Z)(),_=(0,n.useContext)(w.Z),j=null==_?void 0:_.isBTO,k=null==_?void 0:_.vehicle,F=(0,m.Y3)(k,g("consumptionStickersPath")),R=F.consumptionImageUrl,M=F.consumptionCode,W=(0,u.oh)(k,h,g,y("show_rich_efficie
1ncy_info_sto")),z=W.consumptionLabel,U=W.consumptionValue,$=(0,u.yt)(k,z),G=(0,u.S6)(h,k,j,y("show_rich_efficiency_info_sto")),H=G.co2EmissionsLabel,Q=G.co2EmissionsValue,q=(0,C.WQ)(k)?"0":null==k?void 0:k.co2Emissions,J=b(k),Y=J.packsOptionsLabel,K=J.packsOptionsValue,X=(0,d.DK)(k),ee=(null==k?void 0:k.vehicleType)===E._3?(0,C.Fh)(k):x(k);return(0,B.jsxs)(B.Fragment,{children:[ee&&(0,B.jsx)(S,{children:(0,B.jsx)(A,{"data-testid":"vehicle-specs",children:ee})}),j?null==X?void 0:X.map(function(e){return(0,B.jsxs)(S,{children:[(0,B.jsx)(Z,{variant:"bodyCards",children:h(e.key)}),(0,B.jsx)(P,{variant:"bodyCards",children:e.value})]},e.key)}):(0,B.jsxs)(S,{children:[(0,B.jsxs)(Z,{variant:"bodyCards",children:[" ",Y]}),(0,B.jsxs)(P,{variant:"bodyCards",children:[" ",K]})]}),y("plp_consumption")&&(null==k?void 0:k.fuelConsumption)&&(null==k?void 0:k.fuelConsumption)!==m.xE&&(0,B.jsxs)(S,{children:[(0,B.jsx)(Z,{variant:"bodyCards",children:(0,C.WQ)(k)&&!v("consumptionPatternPureElectric")?"".concat(null==$?void 0:$.label):" ".concat(z)}),(0,B.jsx)(P,{variant:"bodyCards",children:(0,C.WQ)(k)&&!v("consumptionPatternPureElectric")?"".concat(null==$?void 0:$.value):" ".concat(U)})]}),y("plp_co2_emissions")&&(0,B.jsxs)(S,{children:[(0,B.jsx)(Z,{variant:"bodyCards",children:H}),(0,B.jsx)(P,{variant:"bodyCards",children:Q})]}),v("consumptionStickersLabel")&&!!R&&(0,B.jsxs)(S,{children:[(0,B.jsx)(Z,{variant:"bodyCards",children:"".concat(h("consumptionStickersLabel")," : ")}),(0,B.jsxs)(P,{variant:"bodyCards",children:[M,(0,B.jsx)(D,{alt:"",src:"".concat((0,p.Z)("endpoint.assets")).concat(R),width:22,height:22})]})]}),y("showEfficiencyStickerInReviewYourSelection")&&(null==k?void 0:k.co2Emissions)!==m.xE&&(0,B.jsxs)(I,{children:[(0,B.jsx)(O,{variant:"bodyCards",children:h("efficiencyClass")}),(0,B.jsxs)(N,{children:[(null==k?void 0:k.efficiencyClass)&&(0,B.jsx)(r(),{alt:h("efficiencyAltTextStickerPlaceholder",{"efficie
1ncy-class":null==k?void 0:k.efficiencyClass,co2_emissions:q}),layout:"fixed",width:"117",height:"25",src:(0,C.qS)(null===(e=(0,p.Z)("feature.settings"))||void 0===e||null===(e=e[String(l.locale)])||void 0===e?void 0:e.ECOM_DAM_EFFICIENCY_STICKER_FOLDER,q,null==k?void 0:k.efficiencyClass)||"/"}),(0,B.jsxs)(V,{iconToTheRight:!0,placement:"top-right",title:h("efficiencyClassTooltipTitle"),children:[(0,B.jsx)(T,{variant:"bodyCards",children:"".concat(h("co2EmissionsLabel")," ").concat(q)}),!!(null!=k&&k.fuelConsumption)&&(null==k?void 0:k.fuelConsumption)!==m.xE&&(0,B.jsx)(T,{variant:"bodyCards",children:(0,C.WQ)(k)?h("consumptionLabel",{fuelConsumption:null!==(t=null==k?void 0:k.fuelConsumption)&&void 0!==t?t:""}):"".concat(h("consumptionLabelIce")," ").concat((0,f.x0)(null==k?void 0:k.fuelConsumption))}),(null==k?void 0:k.efficiencyClass)&&(0,B.jsx)(L,{children:(0,B.jsx)(r(),{alt:h("efficiencyAltTextDiagramPlaceholder",{"efficiency-class":null==k?void 0:k.efficiencyClass,co2_emissions:q}),layout:"fill",objectFit:"contain",src:(0,C.qS)(null===(i=(0,p.Z)("feature.settings"))||void 0===i||null===(i=i[String(l.locale)])||void 0===i?void 0:i.ECOM_DAM_EFFICIENCY_DIAGRAM_FOLDER,q,null==k?void 0:k.efficiencyClass)})})]})]})]})]})},R=i(40294),M=i(84102),W=i(77108),z=i(96981),U=i(69368),$=i.n(U),G=_.default.div.withConfig({displayName:"VehicleSummaryOverlaystyles__SummaryOverlayContainer",componentId:"sc-1ogwawx-0"})(["background-color:",";padding:",";width:100%;display:flex;flex-direction:column;margin-bottom:",";@media screen and ","{padding:",";}@media screen and ","{width:100%;}"],j.colors.white,j.spacers.spacing_4,j.spacers.spacing_4,j.devices.tablet,j.spacers.spacing_7,j.devices.desktop),H=_.default.div.withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleImageContainer",componentId:"sc-1ogwawx-1"})(["position:relative;width:100%;height:161px;@media screen and (min-width:500px){height:200px;}@media screen and (min-width:600px){height:250px;}@media screen and ","{height:310px;}@media screen and ","{margin-top:",";}"],j.devices.tablet,j.devices.desktop,j.spacers.spacing_2),Q=(0,_.default)(r()).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleImage",componentId:"sc-1ogwawx-2"})(["position:absolute;top:",";left:50%;transform:translate(-50%,-50%);max-width:100%;height:auto;"],function(e){return e.$centered?"50%":"65%"}),q=(0,_.default)(H).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleImageLoaderContainer",componentId:"sc-1ogwawx-3"})([""]),J=(0,_.default)($()).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleImageLoader",componentId:"sc-1ogwawx-4"})([""]),Y=_.default.div.withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleTitleContainer",componentId:"sc-1ogwawx-5"})([""]),K=(0,_.default)(j.Text).attrs({variant:"heading3"}).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleTitle",componentId:"sc-1ogwawx-6"})([""]),X=(0,_.default)(j.Text).attrs({variant:"heading3"}).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleSubTitle",componentId:"sc-1ogwawx-7"})([""]),ee=_.default.div.withConfig({displayName:"VehicleSummaryOverlaystyles__VehiclePriceContainer",componentId:"sc-1ogwawx-8"})(["margin-top:",";"],j.spacers.spacing_9),et=(0,_.default)(ee).withConfig({displayName:"VehicleSummaryOverlaystyles__VehicleDetailsContainer",componentId:"sc-1ogwawx-9"})([""]),ei=(0,_.default)(ee).withConfig({displayName:"VehicleSummaryOverlaystyles__AccessoriesContainer",componentId:"sc-1ogwawx-10"})([""]),en=(0,_.default)(ee).withConfig({displayName:"VehicleSummaryOverlaystyles__BottomPricesContainer",componentId:"sc-1ogwawx-11"})([""]),eo=(0,_.default)(ee).withConfig({displayName:"VehicleSummaryOverlaystyles__DueTodayContainer",componentId:"sc-1ogwawx-12"})([""]),ea=(0,_.default)(j.Text).attrs({variant:"heading4",fontWeight:"bold"}).withConfig({displayName:"VehicleSummaryOverlaystyles__AccessoriesTitle",componentId:"sc-1ogwawx-13"})(["margin-bottom:",";"],j.spacers.spacing_3),el=(0,_.default)(j.Disclaimer).withConfig({displayName:"VehicleSummaryOverlaystyles__AccessoriesDisclaimer",componentId:"sc-1ogwawx-14"})(["div[role='button'] span{font-size:24px;line-height:34px;font-family:'Nissan bold';}div[role='button'] i{margin-top:4px;}div[role='tooltip']{right:-118px;&::before{right:116px;}}margin-bottom:",";max-width:initial;"],j.spacers.spacing_3),ec=(0,_.default)(j.Button).withConfig({displayName:"VehicleSummaryOverlaystyles__EditLinkAccessories",componentId:"sc-1ogwawx-15"})(["text-transform:uppercase;margin-top:",";font-size:16px;"],j.spacers.spacing_2),er=_.default.ul.withConfig({displayName:"VehicleSummaryOverlaystyles__List",componentId:"sc-1ogwawx-16"})(["display:flex;flex-direction:column;list-style-type:none;margin:0;"]),es=_.default.li.withConfig({displayName:"VehicleSummaryOverlaystyles__Item",componentId:"sc-1ogwawx-17"})(["display:flex;justify-content:space-between;margin-bottom:8px;"]),ed=(0,_.default)(j.Text).attrs({variant:"body-small"}).withConfig({displayName:"VehicleSummaryOverlaystyles__Label",componentId:"sc-1ogwawx-18"})(["width:100%;overflow-wrap:break-word;"]),eu=(0,_.default)(ed).withConfig({displayName:"VehicleSummaryOverlaystyles__Value",componentId:"sc-1ogwawx-19"})(["text-align:right;"]),ep=(0,_.default)(j.Text).attrs({variant:"heading4",fontWeight:"bold"}).withConfig({displayName:"VehicleSummaryOverlaystyles__LabelTotal",componentId:"sc-1ogwawx-20"})(["letter-spacing:0.9px;margin-right:",";"],j.spacers.spacing_2),ef=(0,_.default)(ep).withConfig({displayName:"VehicleSummaryOverlaystyles__ValueTotal",componentId:"sc-1ogwawx-21"})(["text-align:right;margin-right:0;"]),em=(0,_.default)(j.Disclaimer).withConfig({displayName:"VehicleSummaryOverlaystyles__PriceDisclaimer",componentId:"sc-1ogwawx-22"})(["div[role='button']{white-space:nowrap;span{font-size:14px;line-height:24px;letter-spacing:0.9px;}}div[role='tooltip']{right:-15px;white-space:normal;&::before{right:14px;}span[role='button']{right:-11px;}@media screen and ","{width:300px;}}"],j.devices.tablet),eh=(0,_.default)(em).withConfig({displayName:"VehicleSummaryOverlaystyles__PriceDisclaimerBold",componentId:"sc-1ogwawx-23"})(["div[role='button'] span{font-family:'Nissan bold';}"]),eg=(0,_.default)(eh).withConfig({displayName:"VehicleSummaryOverlaystyles__TotalPriceDisclaimerBold",componentId:"sc-1ogwawx-24"})(["div[role='button'] span{font-size:20px;line-height:26px;}@media screen and ","{div[role='button'] span{font-size:24px;line-height:34px;}}"],j.devices.tablet),ev=(0,_.default)(eh).withConfig({displayName:"VehicleSummaryOverlaystyles__MonthlyPriceDisclaimerBold",componentId:"sc-1ogwawx-25"})([""]),ey=(0,_.default)(j.Text).attrs({variant:"disclaimer"}).withConfig({displayName:"VehicleSummaryOverlaystyles__DisclaimerWithoutClick",componentId:"sc-1ogwawx-26"})(["margin-top:",";text-align:right;"],j.spacers.spacing_1),eb=(0,_.default)(j.Text).attrs({variant:"bodyCards",fontWeight:"light"}).withConfig({displayName:"VehicleSummaryOverlaystyles__TeachingSentence",componentId:"sc-1ogwawx-27"})(["letter-spacing:1.5px;max-width:350px;b{font-family:'Nissan bold';}"]),ex=_.default.span.withConfig({displayName:"VehicleSummaryOverlaystyles__FinanceAnchor
1Container",componentId:"sc-1ogwawx-28"})([""]),eC=_.default.div.withConfig({displayName:"VehicleSummaryOverlaystyles__MonthlyPriceValueContainer",componentId:"sc-1ogwawx-29"})(["display:flex;"]),ew=function(){var e=(0,o.Z)(),t=e.t,i=e.tOrEmpty,l=e.exists,c=(0,a.Z)(),r=(0,R.Z)(),s=(0,M.Z)().onEvent,d=(0,n.useContext)(w.Z)||{},u=d.cart,p=d.isBTO,f=(0,W.pG)(u),m=t("rrpPriceLabel"),h=t("discountLabelSummary"),g=t("discountedPriceLabel"),v=function(e,t){s({tooltipTitle:"".concat(e,"-").concat(t)},"tooltipDisplay")},y=(0,z.Y)(f,u,r),b=y.formattedPrice,x=y.formattedDiscountedPrice,C=y.formattedDiscountAmount,_=y.hasDiscountAmount;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(er,{children:(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{children:m}),(0,B.jsx)(em,{label:b,iconToTheRight:!0,title:i("msrpDisclaimerTooltipTitle"),placement:"bottom-right",testId:["vehicle-price-disclaimer","vehicle-price-disclaimer-title","vehicle-price-disclaimer-content"],toggleOpen:function(){return v(m,b)},children:i("msrpDisclaimerTooltipDescription")})]})}),_&&(c("all_discount_STO")||p)&&(0,B.jsxs)(B.Fragment,{children:[c("showDiscountAmountAtCheckout")&&(0,B.jsx)(er,{children:(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{children:h}),l("discountDisclaimerDescriptionSummary")?(0,B.jsx)(em,{label:"-".concat(C),iconToTheRight:!0,title:i("discountDisclaimerTitleSummary"),placement:"bottom-right",testId:["vehicle-discounted-price-disclaimer","vehicle-discounted-price-disclaimer-title","vehicle-discounted-price-disclaimer-content"],toggleOpen:function(){return v(h,C)},children:i("discountDisclaimerDescriptionSummary")}):(0,B.jsx)(eu,{children:"-".concat(C)})]})}),(0,B.jsx)(er,{children:(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{fontWeight:"bold",children:g}),(0,B.jsx)(eh,{label:x,iconToTheRight:!0,title:i("discountDisclaimerTooltipTitle"),placement:"bottom-right",testId:["vehicle-discounted-price-disclaimer","vehicle-discounted-price-disclaimer-title","vehicle-discounted-price-disclaimer-content"],toggleOpen:function(){return v(g,x)},children:i("discountDisclaimerTooltipDescription")})]})})]}),l("msrpDisclaimerWithoutClick")&&(0,B.jsx)(ey,{textWithHtml:t("msrpDisclaimerWithoutClick")})]})},e_=i(40323),ej=function(){var e=(0,o.Z)(),t=e.t,i=e.exists,l=(0,a.Z)(),c=(0,R.Z)(),r=(0,n.useContext)(w.Z)||{},s=r.cart,d=r.backButtonUrl,u=r.currentStep,p=(0,e_.Z)(),f=(0,M.Z)().onEvent,m=(0,n.useState)(!1),h=m[0],g=m[1],v=1===u,y=t("checkoutEditAccessoriesCTALabel"),b=s&&(0,W.CR)(s),x=(0,n.useCallback)(function(){f({interactionType:"link-click",buttonText:y,locationInpage:"".concat(v?"checkout":"payment","-vehicle-summary-overlay"),interactionValue:"edit accessories added",destination:v?"options-page":"checkout-page"}),g(!0)},[y,v,f]);return null!=b&&b.length?(0,B.jsxs)(ei,{children:[l("all_finance_STO")&&i("accessoriesNotFinanceableDisclaimerText")?(0,B.jsx)(el,{label:t("summaryAccessoriesTitle"),iconToTheRight:!0,title:" ",placement:"bottom-left",children:t("accessoriesNotFinanceableDisclaimerText")}):(0,B.jsx)(ea,{children:t("summaryAccessoriesTitle")}),(0,B.jsx)(er,{children:null==b?void 0:b.map(function(e){return(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{children:null==e?void 0:e.name}),(0,B.jsx)(eu,{textWithHtml:p?t("priceTitleWithoutVAT",{"price-value":c(null==e?void 0:e.price,null==s?void 0:s.currency)}):c(null==e?void 0:e.price,null==s?void 0:s.currency)})]},null==e?void 0:e.sku)})}),(0,B.jsx)(ec,{onClick:x,label:y,buttonType:"tertiary",href:d,isLoading:h})]}):null},ek=i(11226),eI=i(36605),eT=i(26191),eO=i(79189),eS=i(19990),eN=i(58156),eP=function(){var e,t=(0,o.Z)(),i=t.t,l=t.exists,c=(0,a.Z)(),r=(0,M.Z)().onEvent,s=(0,R.Z)(),d=(0,n.useContext)(w.Z)||{},u=d.cart,p=d.financialOffer,f=d.isBTO,m=d.closeModal,h=(0,e_.Z)(),g=p||(0,eT.Z)((0,ek.rV)(ek.AX)),v=(0,ek.rV)(ek.c1),y=(null==g?void 0:g.teachingSentence)||(null==g||null===(e=g.offer)||void 0===e?void 0:e.teachingSentence),b=c("showMonthlyPriceTeachingSentence")&&!!y,x=(0,eN.ZN)(u,s).formattedTotalPriceWithAccessories,C=s((0,eI.if)(g,v).monthlyPayment,null==u?void 0:u.currency),_=f?i("refundableFeeDisclaimerTooltipTitleBto"):i("refundableFeeDisclaimerTooltipTitle"),j=s((0,W.YX)(u),null==u?void 0:u.currency),k=function(e,t){r({tooltipTitle:"".concat(e,"-").concat(t)},"tooltipDisplay")},I=(0,eO.PL)(i,l,h),T=I.title,O=I.description,S=I.hasDescription,N=h?i("priceTitleWithoutVAT",{"price-value":C}):C;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(er,{children:[(0,B.jsxs)(es,{children:[(0,B.jsx)(ep,{children:i("summaryFinanceTotalAmount")}),l("tooltipCheckoutPriceModal")?(0,B.jsx)(eg,{label:x,iconToTheRight:!0,title:" ",placement:"top-right",forcePlacement:!0,toggleOpen:function(){return x&&k(i("tooltipCheckoutPriceModal"),x)},children:i("tooltipCheckoutPriceModal")}):(0,B.jsx)(ef,{textWithHtml:h?i("priceTitleWithoutVAT",{"price-value":x}):x})]}),!!g&&(0,eI.ov)(v)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{fontWeight:"bold",children:i("summaryFinanceMonthlyPayments")}),(0,B.jsxs)(eC,{children:[S?(0,B.jsx)(ev,{label:N,title:T,iconToTheRight:!0,children:O}):(0,B.jsx)(eu,{fontWeight:"bold",textWithHtml:N}
1),c("show_RCI_disclaimer_anchor")&&(0,B.jsx)(eu,{children:(0,B.jsx)(ex,{onClick:m,children:(0,B.jsx)(eS.Z,{label:i("allFinanceDisclaimerAnchorSymbol"),href:"#disclaimerFinanceCheckout"})})})]})]}),b&&(0,B.jsx)(eb,{textWithHtml:y})]})]}),c("checkout_show_reservation_fees")&&(0,B.jsx)(eo,{children:(0,B.jsx)(er,{"data-testid":"summary-due-today",children:(0,B.jsxs)(es,{children:[(0,B.jsx)(ed,{fontWeight:"bold",children:i("dueTodayLabel")}),(0,B.jsx)(eh,{label:s((0,W.YX)(u),null==u?void 0:u.currency),iconToTheRight:!0,title:_,placement:"top-right",toggleOpen:function(){return j&&k(_,j)},children:f?i("refundableFeeDisclaimerTooltipDescriptionBto"):i("refundableFeeDisclaimerTooltipDescription")})]})})})]})},eZ=function(){var e=(0,o.Z)().t,t=(0,a.Z)(),i=(0,n.useContext)(w.Z)||{},c=i.vehicle,r=i.thumbnailUrl,s=i.isBTO,d=(0,l.mC)(c),u=null==r?void 0:r.includes("MICRA");return(0,B.jsxs)(G,{children:[r?(0,B.jsx)(H,{children:(0,B.jsx)(Q,{$centered:u,src:r,alt:"",width:800,height:450})}):(0,B.jsx)(q,{"data-testid":"vehicle-image-loader",children:(0,B.jsx)(J,{dark:!0})}),c&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(Y,{children:[(0,B.jsx)(K,{children:"".concat(e("checkoutOverlayTitle")," ").concat(null==c?void 0:c.modelNameWithOverride," ").concat(null==c?void 0:c.grade)}),(0,B.jsx)(X,{children:d})]}),(0,B.jsx)(ee,{children:(0,B.jsx)(ew,{})}),(0,B.jsx)(et,{children:(0,B.jsx)(F,{})}),(t("all_accessories_STO")||s)&&(0,B.jsx)(ej,{}),(0,B.jsx)(en,{children:(0,B.jsx)(eP,{})})]})]})}},96981:function(e,t,i){"use strict";i.d(t,{Y:function(){return n}});var n=function(e,t,i){var n=e||{},o=n.price,a=n.hasDiscountAmount,l=n.discountedPrice,c=n.discountAmount,r=(t||{}).currency,s={minimumFractionDigits:0,maximumFractionDigits:0};return{formattedPrice:i(o,r,s),formattedDiscountedPrice:i(l,r,s),formattedDiscountAmount:i(c,r,s),hasDiscountAmount:a}}},64394:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n=i(67294),o=i(19521),a=i(95637),l=o.default.div.withConfig({displayName:"Vocstyles__Container",componentId:"sc-3cczul-0"})(["border-radius:",";padding:",";background:white;width:100%;"],a.spacers.spacing_1,a.spacers.spacing_3),c=o.default.div.withConfig({displayName:"Vocstyles__VocId",componentId:"sc-3cczul-1"})([""]),r=i(25211),s=i(85893),d=function(){var e=(0,r.Z)().t;return(0,n.useEffect)(function(){var e;null===(e=window.dataLayer)||void 0===e||e.push({event:"launchVOC"})},[]),(0,s.jsx)(l,{"data-testid":"voc-container",children:(0,s.jsx)(c,{id:e("vocId")})})}},3374:function(e,t,i){"use strict";i.a(e,async function(e,n){try{var o=i(50029),a=i(59499),l=i(16835),c=i(64687),r=i.n(c),s=i(67294),d=i(11163),u=i(88767),p=i(14161),f=i(18637),m=i(25211),h=i(96790),g=i(84102),v=i(68741),y=i(8604),b=i(77108),x=i(90479),C=i(11226),w=i(64188),_=i(70103),j=i(26537),k=i(23114),I=i(79189),T=i(90591),O=i(78326),S=i(26191),N=i(26201),P=i(96559),Z=i(74792),L=i(20451),V=i(84384),D=i(54531),A=i(85217),E=i(97726),B=i(10685),F=i(91690),R=i(37354),M=i(83103),W=i(98018),z=i(96536),U=i(43019),$=i(64394),G=i(70483),H=i(47084),Q=i(59342),q=i(89857),J=i(55551),Y=i(41691),K=i(37113),X=i(69109),ee=i(2944),et=i(70369),ei=i(85893),en=e([W,Q,ee]);function eo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function ea(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(i),!0).forEach(function(t){(0,a.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):eo(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}[W,Q,ee]=en.then?(await en)():en,t.Z=function(e){var t,i,n,c=e.currentStep,en=(0,d.useRouter)(),eo=!!(null!=en&&null!==(t=en.query)&&void 0!==t&&t.displayKeys),el=(0,f.Z)(),ec=(0,y.Z)().getPath,er=(0,m.Z)(),es=er.t,ed=er.exists,eu=er.getIndexBy,ep=er.tOrEmpty,ef=(0,g.Z)().onEvent,em=(0,p.Z)(),eh=(0,v.Z)(),eg=eh.isOpen,ev=eh.closeModal,ey=eh.toggleModal,eb=(0,u.useIsFetching)(),ex=(0,h.Z)().navigateTo,eC=(0,s.use
1State)(null),ew=eC[0],e_=eC[1],ej=(0,s.useState)(""),ek=ej[0],eI=ej[1],eT=(0,Y.kw)(),eO=(0,l.Z)(eT,2),eS=eO[0],eN=eO[1];(0,Y.ZP)({heading:(0,P.Uu)(eS),description:(null==eS?void 0:eS.legalText)||(null==eS?void 0:eS.detailedOfferLegalText)});var eP=(0,s.useState)(!1),eZ=eP[0],eL=eP[1],eV=(0,s.useState)(!1),eD=eV[0],eA=eV[1],eE=(0,s.useState)(!1)[1],eB=(0,s.useState)("")[1],eF=(0,s.useState)(null),eR=eF[0],eM=eF[1],eW=(0,s.useState)(!1),ez=eW[0],eU=eW[1],e$=(0,s.useState)(null),eG=e$[0],eH=e$[1],eQ=(0,s.useState)(""),eq=eQ[0],eJ=eQ[1],eY=(0,s.useState)(),eK=eY[0],eX=eY[1],e0=(0,_.rV)(_.Ue),e1=(0,_.rV)(_.$L),e2=(0,S.Z)((0,_.rV)(_.vf)),e5=(e2||{}).userScenario,e4=((null==en?void 0:en.query)||{}).bto,e3=es("checkoutCloseOverlayCTALabel"),e9=(0,s.useMemo)(function(){return{isLogin:e5===B.ym,isGuest:e5===B._5,isRegister:e5===B.Nz}},[e5]),e6=e9.isLogin,e8=e9.isGuest,e7=e9.isRegister,te=1===c,tt=2===c,ti=(0,s.useMemo)(function(){var e;return e={},(0,a.Z)(e,B.ym,"log-in"),(0,a.Z)(e,B._5,"guest-checkout"),(0,a.Z)(e,B.Nz,"create-account"),e},[]);(0,u.useQuery)(["getCheckoutCart",e1],function(){return(0,Z.dv)(en.locale)(null!=e1?e1:"")},{cacheTime:0,enabled:!e0&&!eG,onSuccess:function(e){w.Z.info("Checkout - getCheckoutCart => ".concat(JSON.stringify(e))),eH(e)}});var tn=(0,u.useQuery)(["getOrder"],function(){return(0,D.co)(en.locale)},{cacheTime:0,enabled:!eG&&e6}),to=tn.data,ta=tn.error;(0,u.useQuery)(["getDealer",null==eG?void 0:eG.dealerId],function(){return(0,V.i6)(en.locale)(null==eG?void 0:eG.dealerId)},{enabled:!!(null!=eG&&eG.dealerId),onSuccess:function(e){w.Z.info("Checkout - getDealer => ".concat(JSON.stringify(e))),eX(e)}});var tl=(0,u.useQuery)(["addStateControlOrder",e0],function(){return(0,D.Zo)(en.locale,null!=e0?e0:"")("Payment")},{enabled:!e1&&!!e0&&!eq}),tc=tl.data,tr=tl.isLoading,ts=tl.isFetched,td=(0,u.useQuery)(["getGuestPaymentUrl",eZ],function(){return(0,A.Ft)(en.locale,null!=e1?e1:void 0,(0,K.WQ)(en,ec))},{enabled:eZ&&(e8||e7),cacheTime:0}),tu=td.data,tp=td.error,tf=(0,u.useQuery)(["getPaymentUrl",eZ],function(){return(0,A.h6)(en.locale)((0,K.WQ)(en,ec))},{enabled:eZ&&e6,cacheTime:0}),tm=tf.data,th=tf.error,tg=!!eb||!!tm||!!tu,tv=(null==eG?void 0:eG.customerGroup)===k.fC,ty=eG||to,tb="true"===e4||!!(0,j.hT)(ty),tx=(0,b.lH)(ty),tC=(0,b.hK)(ty),tw=(0,u.useQuery)(["getProductIdByVin",tx],function(){return(0,L.jJ)(en.locale,tx)},{enabled:!!tx&&!tC}).data,t_=void 0===tw?{}:tw,tj=t_.productId,tk=t_.finalPrices,tI=(0,u.useQuery)(["getTradeInConfiguration"],function(){return(0,E.s)(en.locale)},{enabled:em("all_tradein")}).data,tT=tC||tj;w.Z.info("Checkout - vin => ".concat(tx," - sku => ").concat(tC," - skuOrProductId => ").concat(tT));var tO=(0,u.useQuery)(["getVehicle",tT],function(){return(0,L.Ys)(en.locale,tT)},{enabled:!!tT&&!tb,onError:function(){w.Z.info("Checkout - error getVehicle - Redirect to no vehicles page"),ex(ec("no-vehicles",{queryParams:{isB2B:tv}}))}}).data,tS=(0,s.useMemo)(function(){return tO||(0,j.Hp)(eG)},[tO,eG]),tN=(null==tS?void 0:tS.vehicleType)===L._3,tP=tN?et.Pt:et.cu,tZ=(0,et.Vl)(ed,tP),tL=(0,u.useQuery)(["getAssets",null==tS?void 0:tS.assetSource,null==tS?void 0:tS.modelCode,null==tS?void 0:tS.eimCode,null==tS?void 0:tS.colorCode,null==tS?void 0:tS.modelName,null==tS?void 0:tS.modelYear],function(){return(0,L.Vh)(en.locale,null==tS?void 0:tS.assetSource,null==tS?void 0:tS.modelCode,null==tS?void 0:tS.eimCode,null==tS?void 0:tS.colorCode,null==tS?void 0:tS.modelName,null==tS?void 0:tS.modelYear,!0)},{enabled:tb&&!!tS&&!!tS.assetSource&&"fallback"!==tS.assetSource&&!!(null!=tS&&tS.modelName)&&!!(null!=tS&&tS.modelYear)}).data,tV=void 0===tL?{}:tL,tD=(0,L.Kr)(null==tS?void 0:tS.thumbnailUrl),tA=es(tb?"checkoutDisclaimerContentBto":"checkoutDisclaimerContent"),tE=tb?(null==tV||null===(i=tV.exterior)||void 0===i||null===(i=i.urls)||void 0===i?void 0:i[0])||(null==tD||null===(n=tD.exterior)||void 0===n||null===(n=n.urls)||void 0===n?void 0:n[0]):null==tS?void 0:tS.thumbnailUrl,tB=(0,I.pn)(tv,null==tS?void 0:tS.vehicleType,es,eu),tF=(te?(0,C.rV)(C.Gv):(0,C.rV)(C.YA))||ec("cars-for-sale"),tR=(0,s.useCallback)(function(){ef({interactionType:"link-cl
1ick",buttonText:e3,locationInpage:"".concat(te?"checkout":"payment","-vehicle-summary-overlay"),interactionValue:"close",destination:"".concat(te?"checkout-page":"payment-".concat(ti[null!=e5?e5:""]),"-").concat(tb?"bto":"sto")}),ev()},[ev,e3,tb,te,ef,ti,e5]);(0,s.useEffect)(function(){null!=tu&&tu.url?eJ(null==tu?void 0:tu.url):tm&&eJ(tm)},[tu,tm]),(0,s.useEffect)(function(){tS?(w.Z.info("checkout - SHOW"),eU(!0)):(w.Z.info("checkout - HIDE - !!vehicle => ".concat(!!tS)),eU(!1))},[tS]),(0,s.useEffect)(function(){var e,t=(e=(0,o.Z)(r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.dv)(en.locale)(null!=tc&&tc.cartId?tc.cartId:void 0);case 2:t=e.sent,eH(t),w.Z.info("checkout - fetchCart useEffect - stateControl?.cartId => ".concat(null==tc?void 0:tc.cartId," - newCart => ").concat(JSON.stringify(t))),(0,_.cl)(_.Ue),null!=tc&&tc.cartId&&(0,_.LS)(_.$L,null==tc?void 0:tc.cartId);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});(null==tc?void 0:tc.action)==="REDIRECT_TO_HOME_PAGE"&&(w.Z.info("checkout/form - useEffect stateControl?.action => ".concat(null==tc?void 0:tc.action)),ex(ec("cars-for-sale"))),!eG&&!tr&&ts&&e0&&tc&&t()},[eG,ec,ts,tr,ex,e0,en,tc]),(0,s.useEffect)(function(){!tg&&eq&&w.Z.info("checkout/form - url => ".concat(JSON.stringify(eq)))},[eq,tg]),(0,s.useEffect)(function(){to&&null!=to&&to.customOrderId&&((0,_.LS)(_.Ue,null==to?void 0:to.customOrderId),w.Z.info("Checkout - order => ".concat(JSON.stringify(to))))},[to,en.locale]),(0,s.useEffect)(function(){eq&&"string"==typeof eq&&!eb&&((0,_.cl)(_.$L),(0,O.l6)(eq))},[eb,ef,eq]),(0,s.useEffect)(function(){null!=tu&&tu.orderId&&((0,_.LS)(_.Ue,tu.orderId),(0,_.LS)(_.vf,JSON.stringify(ea(ea({},e2||{}),{},{transactionID:tu.orderId}))))},[tu,e2]),(0,s.useEffect)(function(){if(!e1&&(!eG||eG===N.qK)&&!eb&&te||tt&&!e8&&!e7&&!e6){var e=(0,C.rV)(C.J8)||ec("cars-for-sale");w.Z.info("Checkout - cart or cartId NOT FOUND on first checkout step or no scenario on second checkout step - redirect to PLP - url => ".concat(e)),(0,O.l6)(e)}},[eG,e1,ec,eb,te,e8,e6,e7,tt,en]);var tM=(0,s.useCallback)(function(){ey()},[ey]),tW=(0,s.useMemo)(function(){return th||tp},[th,tp]),tz=(0,s.useMemo)(function(){var e;return{vehicle:ea(ea(ea({},tS),{},{vin:tx,modelNameWithOverride:(0,T.aB)(null!==(e=null==tS?void 0:tS.modelName)&&void 0!==e?e:"",ep("overrideModelsName")),payloadFinance:null==eG?void 0:eG.payloadFinance,allDiscountSTO:em("all_discount_STO")},tk&&{finalPrices:tk}),{},{hasVinDiscount:!!tk}),dealer:eK,cart:eG,order:to,setDealer:eX,isOrderError:ta,isBTO:tb,financialOffer:ew,setFinancialOffer:e_,setLegalFinanceOffer:eN,isB2B:tv,vatStatus:tB,thumbnailUrl:tE,toggleVehicleDetailsModal:tM,backButtonUrl:tF,closeModal:ev,buttonLoading:eD,setButtonLoading:eA,setButtonDisabled:eE,setButtonLabel:eB,handleButtonClick:eR,setHandleButtonClick:eM,userHasClicked:eZ,setUserHasClicked:eL,currentStep:c,isPayNowError:tW,tradeInConfiguration:tI}},[tF,eD,eG,ev,c,eK,tk,ew,eR,tv,tb,ta,tW,tM,to,eN,em,ep,tE,eZ,tB,tS,tx,tI]);return(0,ei.jsxs)(H.default,{children:[(0,ei.jsx)(q.Z,{}),(0,ei.jsx)(J.Z,{id:Y.dT}),(0,ei.jsx)(z.Z,{isLoading:!ez}),(0,ei.jsxs)(X.W2,{"data-testid":"checkout",show:ez,children:[(0,ei.jsx)(R.Z,{currentStep:c}),(0,ei.jsx)(X.A0,{"data-testid":"checkout-title",children:(0,ei.jsx)(X.Dx,{type:"h2",variant:"heading2",label:es("checkoutPageTitle")})}),(0,ei.jsx)(X.tZ,{children:(0,ei.jsxs)(G.Z.Provider,{value:tz,children:[(0,ei.jsx)(X.DB,{md:5,children:(0,ei.jsxs)(X.MN,{children:[(0,ei.jsx)(M.Z,{}),!el&&(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(W.Z,{isHelpAndSupport:!0,page:x.iK}),tZ&&(0,ei.jsx)(ee.Z,{testId:"warranty-info-block",authoring:tN?{warrantyText:es("warrantySnippetLcvText"),buttonLabel:es("warrantySnippetLcvLabel"),redirectUrl:es("warrantySnippetLcvURL")}:{warrantyText:es("warrantySnippetPassengerCarText"),buttonLabel:es("warrantySnippetPassengerCarLLabel"),redirectUrl:es("warrantySnippetPassengerCarURL")}})]})]})}),(0,ei.jsxs)(X.mT,{md:7,children:[ty&&te&&(0,ei.jsx)(U.Z,{setDisclaimerRci:eI}),ty&&tt&&(0,ei.jsx)(Q.Z,{}),el&&(0,ei.jsxs)(ei.Fragment,{children:[(0,ei.jsx)(W.Z,{isHelpAndSupport:!0,page:x.iK}),tZ&&(0,ei.jsx)(ee.Z,{testId:"warranty-info-block",authoring:tN?{warrantyText:es("warrantySnippetLcvText"),buttonLabel:es("warrantySnippetLcvLabel"),redirectUrl:es("warrantySnippetLcvURL")}:{warrantyText:es("warrantySnippetPassengerCarText"),buttonLabel:es("warrantySnippetPassengerCarLLabel"),redirectUrl:es("warrantySnippetPassengerCarURL")}})]})]}),em("showVoc")&&(0,ei.jsx)($.Z,{}),(0,ei.jsx)(X.bY,{isOpen:eg,close:tR,width:"45%",isRounded:!0,withPadding:!1,labelClose:e3,showCloseInMobile:!0,children:(0,ei.jsx)(F.Z,{})})]})}),(0,ei.jsxs)(X.em,{"data-testid":"checkout-disclaimer",children:[em("show_RCI_disclaimer_anch
1or")&&(0,ei.jsx)(X.nU,{id:"disclaimerFinanceCheckout",textWithHtml:null!=ek?ek:""}),(0,ei.jsx)(X.KP,{"data-testid":"checkout-disclaimer-title",textWithHtml:es(tb?"checkoutDisclaimerTitleBto":"checkoutDisclaimerTitle")}),eo?"checkoutDisclaimerContentBto or checkoutDisclaimerContent":Array.isArray(tA)&&tA.map(function(e,t){return(0,ei.jsx)(X.nU,{"data-testid":"checkout-disclaimer-content-".concat(t),textWithHtml:e},e)})]})]})]})},n()}catch(e){n(e)}})},59342:function(e,t,i){"use strict";i.a(e,async function(e,n){try{var o=i(50029),a=i(59499),l=i(64687),c=i.n(l),r=i(67294),s=i(95637),d=i(11163),u=i(25211),p=i(84102),f=i(8604),m=i(96790),h=i(40294),g=i(64188),v=i(26191),y=i(70103),b=i(11226),x=i(77108),C=i(74792),w=i(20451),_=i(26710),j=i(24368),k=i(10685),I=i(58156),T=i(66365),O=i(70483),S=i(63738),N=i(69109),P=i(41160),Z=i(85893),L=e([T]);T=(L.then?(await L)():L)[0],t.Z=function(){var e,t,i,n=(0,d.useRouter)(),l=(0,f.Z)().getPath,L=(0,u.Z)().t,V=(n.query||{}).paymentStatus,D=(0,p.Z)(),A=D.onPageLoad,E=D.cookieAccepted,B=(0,r.useContext)(O.Z)||{},F=B.isBTO,R=B.isB2B,M=B.vehicle,W=B.cart,z=B.setUserHasClicked,U=B.order,$=(0,m.Z)().navigateTo,G=(null==n?void 0:n.query).isRegister,H=(0,r.useState)(""),Q=H[0],q=H[1],J=(0,r.useState)(""),Y=J[0],K=J[1],X=(0,r.useState)(!0),ee=X[0],et=X[1],ei=(0,r.useState)(""),en=ei[0],eo=ei[1],ea=(0,r.useState)(!1),el=ea[0],ec=ea[1],er=(0,y.rV)(y.$L),es=((0,v.Z)((0,y.rV)(y.vf))||{}).userScenario,ed=F?"bto":"sto",eu=(0,r.useMemo)(function(){return["400","500","409"]},[]),ep=l("service-unavailable"),ef=(0,b.rV)(b.Gv),em=(0,x.pG)(W||U),eh=(0,I.Ck)(W||U).accessoriesOne,eg=L("accountCreationGenericErrorLabel"),ev=L("accountAlreadyExistsErrorLabel"),ey=es===k.ym,eb=es===k._5,ex=es===k.Nz,eC=(0,h.Z)(),ew=(0,I.ZN)(W,eC).formattedTotalPrice,e_=(0,r.useMemo)(function(){var e;return e={},(0,a.Z)(e,k.ym,"log-in"),(0,a.Z)(e,k._5,"guest-checkout"),(0,a.Z)(e,k.Nz,"create-account"),e},[]),ej=G?S.bD:S.Y_,ek=G?S.Ss:S.f4,eI=(0,r.useState)(R?ek:ej),eT=eI[0],eO=eI[1],eS=(null==M?void 0:M.vehicleType)===w._3;(0,r.useEffect)(function(){R&&eO(ek)},[ek,R]),(0,r.useEffect)(function(){var e,t=(e=(0,o.Z)(c().mark(function e(){var t,i;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/getClientIp");case 3:return t=e.sent,e.next=6,t.json();case 6:i=e.sent,eo(i.clientIp),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),g.Z.error("Error fetching client IP:",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])})),function(){return e.apply(this,arguments)});el&&t()},[el]);var eN=function(e){q(e)},eP=(0,r.useCallback)((e=(0,o.Z)(c().mark(function e(t,i){var o,a,l,r,s,d,u,p;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={"User-Agent":navigator.userAgent,"X-Captcha-Token":i,"X-Forwarded-For":en},(0,y.CN)(),a=(null==W?void 0:W.userHasBillingAddress)===!1?"mine":er,e.prev=3,e.next=6,(0,C.EI)(n.locale,a,t,o);case 6:if((r=e.sent)&&((0,x.lH)(r)||F)&&null!=r&&r.dealerId){e.next=12;break}return g.Z.info("checkout/form - NO (VIN or isBTO) or DealerId in cart - redirecting to PDP"),$(ef,{shallow:!0}),e.abrupt("return");case 12:if(!(null!=r&&null!==(l=r.billingAddress)&&void 0!==l&&l.countryId&&Q&&ex)){e.next=26;break}return d={cartId:er,password:Q},e.next=16,(0,_.t)(n.locale,d);case 16:if(u=e.sent,!eu.includes(null==u||null===(s=u.data)||void 0===s?void 0:s.statusCode)){e.next=22;break}if((null==u||null===(p=u.data)||void 0===p?void 0:p.statusCode)!=="409"){e.next=21;break}return K(ev),e.abrupt("return");case 21:K(eg);case 22:g.Z.info("checkout/form - handleClickContinue - createAccount"),null==z||z(!0),e.next=27;break;case 26:r?(g.Z.info("checkout/form - handleClickContinue - updatedCart => ".concat(JSON.stringify(r))),null==z||z(!0)):(g.Z.info("checkout/form - handleClickContinue - NO updatedCart - redirecting to serviceUnavailablePath"),$(ep,{shallow:!0}));case 27:e.next=33;break;case 29:e.prev=29,e.t0=e.catch(3),g.Z.info("Something is wrong with updateBillingAddressToCart - redirecting to serviceUnavailablePath - error => ".concat(e.t0)),$(ep,{shallow:!0});case 33:case"end":return e.stop()}},e,null,[[3,29]])})),function(t,i){return e.apply(this,arguments)}),[en,null==W?void 0:W.userHasBillingAddress,er,n.locale,F,Q,ex,$,ef,eu,z,eg,ev,ep]);return(0,r.useEffect)(function(){if((M||em)&&ee&&E&&es){var e,t,i,n,o;et(!1),A({pageName:"ecommerce|".concat(e_[es],"|payment-page").concat(V?"|".concat(V):""),pageType:"".concat(e_[es],"-payment-page-").concat(ed).concat(V?"|payment-".concat(V):""),totalPrice:null===(e=W||U)||void 0===e||null===(e=e.totals)||void 0===e?void 0:e.totalPrice,vehicleModel:(null==M?void 0:M.modelName)||(null==em?void 0:em.modelName)||"",vehicleId:(null==M?void 0:M.modelCode)||"",vehicleGrade:(null==M?void 0:M.grade)||(null==em?void 0:em.grade)||"",productEvent:"checkout",EIM:(null==M?void 0:M.eimCode)||(null==em?void 0:em.eimCode)||"",VIN:(null==M?void 0:M.vin)||(null==em?void 0:em.vin)||"",loginStatus:ey?"logged in":"logged out",vehicleCategory:eS?w._3.toLowerCase():"passenger cars",personalitySegment:null===(t=W||U)||void 0===t?void 0:t.customerGroup,vehicleVersion:(null==M?void 0:M.version)||(null==em?void 0:em.name)||"",accessoriesTotalNumber:(null==eh?void 0:eh.length)||0,accessoriesTotalPrice:ew||0,tradeinValuePrice:null!==(i=null===P.NA||void 0===P.NA||null===(n=P.NA.data)||void 0===n?void 0:n.value)&&void 0!==i?i:"",tradeinOrder:null!==P.NA&&void 0!==P.NA&&null!==(o=P.NA.data)&&void 0!==o&&o.value?"yes":(0,b.rV)(b.yQ)})}},[null==W?void 0:W.customerGroup,null==W||null===(t=W.totals)||void 0===t?void 0:t.totalPrice,null==U?void 0:U.customerGroup,null==U||null===(i=U.totals)||void 0===i?void 0:i.totalPrice,ew,ed,E,ee,eS,ey,em,A,e_,es,M,V,W,eh]),(0,Z.jsx)(s.Column,{children:eb||ex?(0,Z.jsxs)(N.RK,{children:[(0,Z.jsx)(T.Z,{prefix:eT,isLoadingForm:!!Y,handleSubmitCallback:function(e,t){return eP(e,t)},onChangePassword:function(e){return eN(e)},setFormHasCaptcha:ec}),Y&&(0,Z.jsx)(N.e3,{children:Y})]}):ey?(null==W?void 0:W.userHasBillingAddress)===!1?(0,Z.jsxs)(N.RK,{children:[(0,Z.jsx)(T.Z,{prefix:S._q,isLoadingForm:!!Y,handleSubmitCallback:function(e,t){return eP(e,t)}}),Y&&(0,Z.jsx)(N.e3,{children:Y})]}):(0,Z.jsx)(j.Z,{withButton:!0}):null})},n()}catch(e){n(e)}})},43603:function(e,t,i){"use strict";i.d(t,{S6:function(){return u},oh:function(){return s},yt:function(){return d}});var n=i(16835),o=i(29320),a=i(96775),l=i(26191),c=i(90591),r=function(e,t,i){var n,o;return(0,a.WQ)(e)?null!=t&&t.wltpPureElecEnergConsCalc?i("consumptionPatternPureElectric",{wltpPureElecEnergConsCalc:t.wltpPureElecEnergConsCalc}):i("consumptionPatternPureElectricNoData"):i("consumptionPatternIceGermany",{wltpFuelConsCombCalc:null!==(n=null==t?void 0:t.wltpFuelConsCombCalc)&&void 0!==n?n:"",wltpCo2EmissCombCalc:null!==(o=null==t?void 0:t.wltpCo2EmissCombCalc)&&void 0!==o?o:"",efficie
1ncyClassGermany:(null==t?void 0:t.efficiencyClassGermany)||e.efficiencyClass||""})},s=function(e,t,i,n){if(!e)return{consumptionLabel:"",consumptionValue:""};var c,s=(0,l.Z)(null!==(c=null==e?void 0:e.efficiencyAdditionalData)&&void 0!==c?c:"{}"),d=(null==s?void 0:s.wltpPureElecEnergConsCalc)||(null==e?void 0:e.fuelConsumption)||"",u=(0,a.WQ)(e)?i("consumptionLabel",{fuelConsumption:null!=d?d:""}):i("consumptionLabelIce"),p=r(e,s,i);return n?{consumptionLabel:"",consumptionValue:p}:{consumptionLabel:u,consumptionValue:(0,o.x0)(d)}},d=function(e,t){if(!(0,a.WQ)(e))return null;var i=t.split(/:\s*/),o=(0,n.Z)(i,2),l=o[0],c=o[1];return{label:"".concat(l," :"),value:void 0===c?"".concat(l):"".concat(c)}},u=function(e,t,i,n){if(!t)return{co2EmissionsLabel:"",co2EmissionsValue:""};var r,s,d=e("co2EmissionsLabel"),u=(0,l.Z)(null!==(s=null==t?void 0:t.efficiencyAdditionalData)&&void 0!==s?s:"{}"),p=(0,a.WQ)(t)?"0":null==u?void 0:u.wltpCo2EmissCombCalc,f=(r=null==t?void 0:t.co2Emissions)===c.xE?c.L9:null!=r?r:"",m=(0,a.WQ)(t)?"0":(0,o.x0)(f);return n?{co2EmissionsLabel:d,co2EmissionsValue:null===p?"0":null!=p?p:""}:i&&!n?{co2EmissionsLabel:d,co2EmissionsValue:m}:{co2EmissionsLabel:d,co2EmissionsValue:f}}},18637:function(e,t,i){"use strict";var n=i(67294);t.Z=function(){var e=(0,n.useState)(!1),t=e[0],i=e[1];return(0,n.useEffect)(function(){var e=function(){i(window.matchMedia("screen and (max-width: 724px)").matches)};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}},[]),t}},41691:function(e,t,i){"use strict";i.d(t,{dT:function(){return c},kw:function(){return r}});var n=i(67294),o=i(56363),a=i(14161),l=i(25211),c="legal-finance-banner-root",r=function(){var e=(0,n.useState)(null),t=e[0],i=e[1];return[t,(0,n.useCallback)(function(e){i(function(t){return(null==t?void 0:t.teachingSentenceGlobal)===(null==e?void 0:e.teachingSentenceGlobal)&&(null==t?void 0:t.legalText)===(null==e?void 0:e.legalText)&&(null==t?void 0:t.detailedOfferLegalText)===(null==e?void 0:e.detailedOfferLegalText)?t:e})},[])]};t.ZP=function(e){var t=e.heading,i=void 0===t?"":t,r=e.description,s=void 0===r?"":r,d=(0,a.Z)(),u=(0,l.Z)().t,p=d("displayFinanceGenericBanner"),f=(0,n.useRef)(!1);(0,n.useEffect)(function(){p&&s&&!f.current&&(f.current=!0,(0,o.displayLegalInformation)({heading:i,description:s,cta:u("legalFinanceBannerCtaLabel"),targetElementId:c}))},[p,i,s,u])}},56363:function(e,t){!function(i){"use strict";function n(e){var t,i=e||{},n=i.heading,o=i.description,a=i.cta,l=i.targetElementId;if("true"===function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var o=i[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return o.substring(t.length)}return null}("legalPopupInteracted"))return null;var c=document.createElement("div");c.className="rci-legal-banner",c.setAttribute("role","region"),c.setAttribute("aria-labelledby","rci-legal-heading");var r=document.createElement("div");function s(){window.innerWidth<=767?document.body.style.overflow="hidden":document.body.style.overflow=""}return r.className="rci-legal-overlay",c.innerHTML='\n    <div class="rci-legal-banner__inner">\n      <h4 id="rci-legal-heading" class="rci-legal-banner__heading">'.concat(n,'</h4>\n      <p class="rci-legal-banner__text legalText">').concat(o,'</p>\n    </div>\n    <button type="button" class="rci-legal-banner__cta" aria-label="').concat(a,'">').concat(a,"</button>\n  "),s(),window.addEventListener("resize",s),c.querySelector(".rci-legal-banner__cta").addEventListener("click",function(){(function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,n=new Date;n.setTime(n.getTime()+864e5*i);var o="expires="+n.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"})("legalPopupInteracted","true"),document.body.style.overflow="",window.removeEventListener("resize",s),r.remove(),c.remove()}),l?(t=document.getElementById(l))||(console.warn('Element with ID "'.concat(l,'" not found. Falling back to document.body.')),t=document.body):t=document.body,t.insertBefore(r,t.firstChild),t.insertBefore(c,t.firstChild),c}
1e.exports?e.exports={displayLegalInformation:n}:t.displayLegalInformation=n}(window)},26710:function(e,t,i){"use strict";i.d(t,{t:function(){return p}});var n,o=i(59499),a=i(50029),l=i(64687),c=i.n(l),r=i(28401),s=i(36999),d=i(64188);function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}var p=(n=(0,a.Z)(c().mark(function e(){var t,i,n,a=arguments;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:"",i=a.length>1?a[1]:void 0,d.Z.info("Account creation  - postAccount -  payload => ".concat(JSON.stringify(i))),e.prev=3,e.next=6,(0,r.v_)("account.creation",i,{locale:t,pathParams:function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach(function(t){(0,o.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({},(0,s.B1)(t))});case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(3),d.Z.info("Account creation  - postAccount - CATCH - payload => ".concat(JSON.stringify(i)," / event => ").concat(e.t0)),e.abrupt("return",null===e.t0||void 0===e.t0?void 0:e.t0.response);case 14:case"end":return e.stop()}},e,null,[[3,10]])})),function(){return n.apply(this,arguments)})}}]);

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.