PageSourceSearch

https://www.k-auto.fi/_next/static/chunks/0cbx-wf6jlcc3.js?dpl=f2f579d98a1238b5c5ab909efbb0c48b86d94743

js k-auto.fi collected 2026-10-04 01:18:13 UTC 44,937 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,956089,e=>{"use strict";var t=e.i(177215),a=e.i(741849);e.s(["CampaignThemeLogo",0,({theme:e,className:s})=>"Mammuttimarkkinat"===e?(0,t.jsx)(a.default,{className:s,src:"/assets/images/campaignMammutti.svg",alt:"Mammuttimarkkinat",width:56,height:77,role:"presentation"}):"Black week"===e?(0,t.jsx)(a.default,{className:s,src:"/assets/images/campaignBlackweek.svg",alt:"Black week",width:40,height:28,role:"presentation"}):"Plussa"===e?(0,t.jsx)(a.default,{className:s,src:"/assets/images/campaignBubbles.svg",alt:"Kuplia",width:55,height:96,role:"presentation"}):null])},779770,e=>{e.v({disclamerText:"CardPriceInformation-module-scss-module__GCteAa__disclamerText",priceInformation:"CardPriceInformation-module-scss-module__GCteAa__priceInformation",primaryText:"CardPriceInformation-module-scss-module__GCteAa__primaryText",secondaryText:"CardPriceInformation-module-scss-module__GCteAa__secondaryText",tertiaryText:"CardPriceInformation-module-scss-module__GCteAa__tertiaryText"})},225848,e=>{"use strict";var t=e.i(177215),a=e.i(779770);e.s(["CardPriceInformation",0,({primaryText:e,secondaryText:s,tertiaryText:i,disclamerText:r})=>(0,t.jsxs)("div",{className:a.default.priceInformation,children:[r&&(0,t.jsx)("div",{className:a.default.disclamerText,children:(0,t.jsx)("p",{children:r})}),e&&(0,t.jsx)("div",{className:a.default.primaryText,children:e}),s&&(0,t.jsx)("div",{className:a.default.secondaryText,children:s}),i&&(0,t.jsx)("div",{className:a.default.tertiaryText,children:i})]})])},8861,e=>{e.v({fold:"FoldableCard-module-scss-module__Tm2c4G__fold",foldButton:"FoldableCard-module-scss-module__Tm2c4G__foldButton",foldableCard:"FoldableCard-module-scss-module__Tm2c4G__foldableCard"})},791786,e=>{e.v({aboveFold:"VehicleInfoCard-module-scss-module__j2PW9W__aboveFold",cardBullets:"VehicleInfoCard-module-scss-module__j2PW9W__cardBullets",cardContent:"VehicleInfoCard-module-scss-module__j2PW9W__cardContent",cardDescription:"VehicleInfoCard-module-scss-module__j2PW9W__cardDescription",cardImageInset:"VehicleInfoCard-module-scss-module__j2PW9W__cardImageInset",cardTitle:"VehicleInfoCard-module-scss-module__j2PW9W__cardTitle",cardTitleRight:"VehicleInfoCard-module-scss-module__j2PW9W__cardTitleRight",details:"VehicleInfoCard-module-scss-module__j2PW9W__details",detailsItem:"VehicleInfoCard-module-scss-module__j2PW9W__detailsItem",foldedContent:"VehicleInfoCard-module-scss-module__j2PW9W__foldedContent",insetImage:"VehicleInfoCard-module-scss-module__j2PW9W__insetImage",modelYearText:"VehicleInfoCard-module-scss-module__j2PW9W__modelYearText",priceInformation:"VehicleInfoCard-module-scss-module__j2PW9W__priceInformation",textContentWrapper:"VehicleInfoCard-module-scss-module__j2PW9W__textContentWrapper",titleRow:"VehicleInfoCard-module-scss-module__j2PW9W__titleRow",vehicleInfoCard:"VehicleInfoCard-module-scss-module__j2PW9W__vehicleInfoCard"})},110357,e=>{"use strict";var t=e.i(177215),a=e.i(72889),s=e.i(657710),i=e.i(791786),r=e.i(118194),n=e.i(940254),l=e.i(550372),o=e.i(77138),d=e.i(8861),u=e.i(945280),c=e.i(64486);let m=({aboveFold:e,belowFold:a,foldHeader:i,className:r,foldClassName:n,foldContentClassName:l})=>{let[m,h]=(0,o.useState)(!1),p=(0,o.useId)();return(0,t.jsxs)(u.default,{className:(0,s.default)(d.default.foldableCard,r),children:[e,a&&(0,t.jsx)(c.default,{id:p,heading:i,isOpen:m,toggle:()=>h(!m),toggleButtonClassName:d.default.foldButton,className:(0,s.default)(d.default.fold,n),contentClassName:(0,s.default)(l),children:(0,t.jsx)("div",{children:a})})]})};var h=e.i(210107),p=e.i(721621),f=e.i(115361),v=e.i(608496),_=e.i(186567);e.s(["default",0,({vehicle:e,preloadImage:o=!0,hidePrice:d=!1,priceType:u="total",foldable:c=!0,showBullets:g=!0,showBrandLogo:x=!0,className:y,aboveFoldClassName:T,belowFoldClassName:w,imageClassName:E,aboveFoldContentClassName:C})=>{let{manufacturer:P,model:I,typeName:j,mileage:N,transmission:R,salesLocation:S,mainImageUrl:b,modelYear:k,price:L,formatted:F,category:D,electricRange:A}
1=e,M=[P,I].filter(Boolean).join(" "),V=g?[{text:(0,_.formatMileage)(N,{useMetricPrefix:!1})},e.electricRange?{icon:(0,t.jsx)(r.Range,{}),text:`${A} km`}:{text:F.transmission||R},{text:S?.city}].filter(e=>e.text):[],W=x&&e.category!==a.VehicleCategory.Used,O=(0,_.formatPriceTotal)(L?.total,D),{separateOfficeFee:H}=L,G=H?(0,_.formatCurrency)(H):void 0,q=(0,_.getFormattedInformation)(e),U=[{name:"Rekisterinumero",values:q.licensePlateNumber},{name:"Malli",values:q.bodyType},{name:"Käyttövoima",values:q.fuelType},{name:"Kantama",values:q.electricRangeWithFootnote},{name:"Ajokilometrit",values:q.mileage},{name:"Sijainti",values:q.salesLocation.name},{name:"Vetotapa",values:q.driveTrain}];return(0,t.jsx)(m,{className:(0,s.default)(i.default.vehicleInfoCard,y),foldContentClassName:(0,s.default)(i.default.foldedContent,w),aboveFold:(0,t.jsxs)("div",{className:(0,s.default)(i.default.aboveFold,T),children:[(0,t.jsx)("div",{className:(0,s.default)(i.default.cardImageInset,E),children:(0,t.jsx)(l.default,{src:b||"",alt:M,isPriority:o,className:i.default.insetImage},`vehicle-info-card-image-${e.vehicleId}`)}),(0,t.jsxs)("div",{className:(0,s.default)(i.default.cardContent,C),children:[(0,t.jsxs)("div",{className:i.default.textContentWrapper,children:[(0,t.jsxs)("div",{className:i.default.titleRow,children:[M&&(0,t.jsx)("p",{className:i.default.cardTitle,children:M}),(0,t.jsx)("div",{className:i.default.cardTitleRight,children:W?(0,t.jsx)(f.default,{brand:P}):(0,t.jsx)("p",{className:i.default.modelYearText,children:k})})]}),V.length>0&&(0,t.jsx)("ul",{className:(0,s.default)(n.default.cardBullets,i.default.cardBullets),children:V.map(e=>(0,t.jsxs)("li",{className:(0,s.default)({[h.default.bulletWithIcon]:e.icon}),children:[e.icon&&e.icon," ",e.text]},e.text))}),j&&(0,t.jsx)("p",{className:(0,s.default)(i.default.cardDescription),children:j})]}),!d&&(0,t.jsx)(p.default,{className:i.default.priceInformation,priceType:u,priceText:O,officeFeeText:G})]})]}),belowFold:c?(0,t.jsx)(v.default,{items:U,className:i.default.details,listItemClassName:i.default.detailsItem}):void 0,foldHeader:"Auton tarkemmat tiedot"})}],110357)},3287,e=>{e.v({additionalContent:"DescriptionList-module-scss-module__vhGBzW__additionalContent",descriptionList:"DescriptionList-module-scss-module__vhGBzW__descriptionList",descriptionListItemFullWidth:"DescriptionList-module-scss-module__vhGBzW__descriptionListItemFullWidth",heading:"DescriptionList-module-scss-module__vhGBzW__heading"})},608496,e=>{"use strict";var t=e.i(177215),a=e.i(657710),s=e.i(3287),i=e.i(816506);let r=({name:e,values:r,link:n,className:l,fullWidth:o,additionalContent:d})=>(0,t.jsxs)("div",{className:(0,a.default)(l,o&&s.default.descriptionListItemFullWidth),children:[(0,t.jsx)("dt",{children:e}),n&&(0,t.jsx)(i.default,{href:n.href,children:n.text}),(0,t.jsx)("div",{children:Array.isArray(r)?r.map(e=>(0,t.jsx)("dd",{children:e},e)):(0,t.jsx)("dd",{children:r})}),d&&(0,t.jsx)("div",{className:s.default.additionalContent,children:d})]});e.s(["default",0,({heading:e,items:i,className:n,listItemClassName:l})=>{if(!i?.length)return null;let o=i.filter(e=>null!==e&&e.name.length>0&&e.values.length>0);return(0,t.jsxs)("dl",{className:(0,a.default)(s.default.descriptionList,n),children:[e&&(0,t.jsx)("dt",{className:s.default.heading,children:e}),o.map(e=>(0,t.jsx)(r,{name:e.name,values:e.values,link:e.link,className:(0,a.default)(l,e.className),fullWidth:e.fullWidth,additionalContent:e.additionalContent},[e.name,e.values].flat().join()))]})}],608496)},919670,e=>{e.v({"color--grey-10":"Separator-module-scss-module__XVqcJG__color--grey-10","color--grey-60":"Separator-module-scss-module__XVqcJG__color--grey-60","color--transparent":"Separator-module-scss-module__XVqcJG__color--transparent","margin--none":"Separator-module-scss-module__XVqcJG__margin--none","margin--s":"Separator-module-scss-module__XVqcJG__margin--s","margin--xs":"Separator-module-scss-module__XVqcJG__margin--xs",separator:"Separator-module-scss-module__XVqcJG__separator","variant--dashed":"Separator-module-scss-module__XVqcJG__variant--dashed","variant--solid":"Separator-module-scss-module__XVqcJG__variant--solid"})},820431,e=>{"use strict";var t=e.i(177215),a=e.i(657710),s=e.i(919670);e.s(["default",0,({orientation:e="horizontal",decorative:i,color:r="grey-10",variant:n="solid",margin:l="s",className:o})=>(0,t.jsx)("div",{className:(0,a.default)(s.default.separator,s.default[`color--${r}`],s.default[`variant--${n}`],s.default[`margin--${l}`],o),role:i?"none":"separator","data-orientation":e})])},80676,e=>{e.v({subtitle:"Leasing-module-scss-module__5HhG_q__subtitle",title:"Leasing-module-scss-module__5HhG_q__title",wrapper:"Leasing-module-scss-module__5HhG_q__wrapper"})},253363,e=>{e.v({infoNotification:"MonthlyInstallment-module-scss-module__24EMWa__infoNotification",installment:"MonthlyInstallment-module-scss-module__24EMWa__installment",interestRate:"MonthlyInstallment-module-scss-module__24EMWa__interestRate",title:"MonthlyInstallment-module-scss-module__24EMWa__title",wrapper:"MonthlyInstallment-module-scss-module__24EMWa__wrapper"})},994644,e=>{e.v({hidden:"Summary-module-scss-module__lR3O7q__hidden",image:"Summary-module-scss-module__lR3O7q__image",imageWrapper:"Summary-module-scss-module__lR3O7q__imageWrapper",noPadding:"Summary-module-scss-module__lR3O7q__noPadding",summary:"Summary-module-scss-module__lR3O7q__summary",withImage:"Summary-module-scss-module__lR3O7q__withImage"})},447536,829198,58488,249418,596039,46252,e=>{"use strict";var t=e.i(177215),a=e.i(657710),s=e.i(378091),i=e.i(546359),r=e.i(854021),n=e.i(80676),l=e.i(156817);let o=({name:e,displayName:s,nameSuffix:r="",priceTaxIncluded:n,priceSuffix:o="",description:d,showZeroPrices:u=!0,highlight:c,isDownpayment:m,extraTopMargin:h,isMonthlyPrice:p,comparisonPrice:f,disclaimer:v})=>{let _=!0===u||!1===u&&"number"==typeof n&&n>0,g=[i.currencyFormat.format(n||0),p?"/kk":"",o].join(""),x=f?[i.currencyFormat.format(f||0),o].join(""):null;return(0,t.jsxs)("div",{className:(0,a.default)(l.default.itemRow,{[l.default.topM
1arginLarge]:h}),children:[(0,t.jsxs)("div",{className:l.default.itemRowTop,children:[(0,t.jsxs)("div",{className:(0,a.default)({[l.default.highlight]:c,[l.default.downpayment]:m}),children:[(0,t.jsx)("span",{children:s||e}),r&&(0,t.jsxs)("span",{className:l.default.nameSuffix,children:[" ",r]})]}),_&&(0,t.jsx)("div",{className:(0,a.default)(l.default.priceText,{[l.default.highlight]:c,[l.default.discount]:f,[l.default.downpayment]:m}),children:g})]}),x&&(0,t.jsxs)("div",{className:l.default.comparisonPrice,children:["norm. hinta ",x]}),d&&(0,t.jsx)("div",{className:l.default.itemDescription,children:d}),v&&(0,t.jsx)("div",{className:l.default.priceDisclaimer,children:v})]})};e.s(["default",0,o],829198);var d=e.i(398363);let u=({items:e=[]})=>{let a=e.filter(e=>!e.isHidden);return 0===a.length?null:(0,t.jsx)("ul",{className:d.default.summaryItemRows,children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(o,{...e})},`${e.name}-${e.description}`))})};e.s(["default",0,u],58488);var c=e.i(820431),m=e.i(57447),h=e.i(416539),p=e.i(482373),f=e.i(274061);r.z.object({contractLengthMonths:m.leasingContractSchema.shape.contractLengthMonths,annualMileageKilometers:m.leasingContractSchema.shape.annualMileageKilometers,monthlyPriceTaxIncluded:m.leasingContractSchema.shape.monthlyPriceTaxIncluded,vatRate:m.leasingContractSchema.shape.vatRate,excessMileageChargePerKilometer:(0,s.nullishTransform)(m.leasingContractSchema.shape.excessMileageChargePerKilometer),leasingPackageReference:(0,s.nullishTransform)(m.leasingContractSchema.shape.leasingPackageReference)});let v=({leasingContract:e,additionalItems:a=[],deliveryFee:s,hideTitle:r})=>{let{contractLengthMonths:l,annualMileageKilometers:d,leasingPackageReference:m,monthlyPriceTaxIncluded:v,excessMileageChargePerKilometer:_,vatRate:g}=e,x=`Sopimusaika ${l} kk`,y=`sopimuskilometrit ${d} km/v`,T=m&&`Leasingpaketti ${m}`,w=a.filter(e=>e.isMonthlyPrice).map(e=>{let t=void 0!==e.vatRate?`Alv ${h.numberFormat.format(e.vatRate)}%`:void 0;return{...e,description:e.description||t}}),E=(0,f.calculateSummaryTotalMonthlyPrice)(v,w),C=(0,f.calculateSummaryTotalMonthlyPrice)(v,w.filter(e=>e.vatRate&&!Number.isNaN(e.vatRate)&&e.vatRate>0)),P=(0,f.getTaxBreakdown)(C,g),I=[{name:"Leasinghinta kuukaudessa",description:[x,y,T].filter(Boolean).join(", "),priceTaxIncluded:v,priceSuffix:"/kk"},...w],j=a.filter(e=>!e.isMonthlyPrice);if(s&&j.push(s),j.length>0){let e=(0,p.calculateVATFromGross)(j.reduce((e,{priceTaxIncluded:t})=>t?e+t:e,0),i.VAT_PERCENTAGE);j.push({name:`Alv ${h.numberFormat.format(i.VAT_PERCENTAGE)}%`,priceTaxIncluded:e,highlight:!1})}return(0,t.jsxs)("div",{className:n.default.wrapper,children:[!r&&(0,t.jsx)("div",{className:n.default.title,children:"Yhteenveto"}),(0,t.jsx)(u,{items:I}),void 0!==_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:n.default.subtitle,children:"Käytön mukaan laskutettavat"}),(0,t.jsx)(o,{name:"Ylimenevät kilometrit",priceTaxIncluded:_,priceSuffix:"/km"})]}),(0,t.jsx)(c.default,{color:"grey-60",margin:"xs"}),(0,t.jsx)(u,{items:[{name:"Yhteensä",description:"(sis. verot)",priceTaxIncluded:E,isMonthlyPrice:!0,highlight:!0},{name:`Alv ${h.numberFormat.format(g)}%`,priceTaxIncluded:P.taxAmount},{name:"Leasingvuokra sopimuskaudelta yhteensä",priceTaxIncluded:l*v}]}),j.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{color:"transparent",margin:"s"}),(0,t.jsx)("div",{className:n.default.title,children:"Kertamaksut"}),(0,t.jsx)(u,{items:j.map(e=>({...e,highlight:e.highlight??!0}))})]})]})};e.s(["default",0,v],249418);var _=e.i(253363),g=e.i(180322);let x=({monthlyInstallment:e,monthlyInstallmentInterestRate:a,monthlyInstallmentItems:s=[],title:r="Osamaksu"})=>{let n=s.length>0;return e||n?(0,t.jsxs)("div",{className:_.default.wrapper,children:[r&&(0,t.jsx)("div",{className:_.default.title,children:r}),n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{items:s}),(0,t.jsx)(c.default,{color:"grey-60",margin:"xs"}),(0,t.jsx)(o,{name:"Osamaksuerä",description:a?`Korko ${h.numberFormat.format(a)} %`:void 0,priceTaxIncluded:e,priceSuffix:"/kk",highlight:!0})]}),!n&&e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.LightNotification,{className:_.default.infoNotification,children:"Kuukausierä ja tarkemmat valinnat osamaksulle määritellään myöhemmin tilauksen aikana."}),(0,t.jsxs)("div",{className:_.default.installment,children:[(0,t.jsx)("span",{children:"Osamaksuerä"}),(0,t.jsxs)("span",{children:["alk. ",i.currencyFormat.format(e),"/kk"]})]}),a&&(0,t.jsxs)("span",{className:_.default.interestRate,children:["Korko esim. ",h.numberFormat.format(a)," ","%"]})]})]}):null};e.s(["default",0,x],596039);var y=e.i(994644),T=e.i(508512);let w=({className:e,type:s,items:i=[],reservationFee:r,additionalItems:n=[],title:l="Yhteenveto",downPaymentData:d})=>{let m="reservation"===s,h=n.map(e=>({showZeroPrices:!1,...e})),p=(0,f.calculateSummaryTotalPrice)(i),v=(0,f.calculateTaxBreakdown)({priceTaxIncluded:p}),_=d&&!d.error;return(0,t.jsxs)("div",{className:(0,a.default)(e),children:[l&&(0,t.jsx)("h4",{className:T.default.title,children:l}),(0,t.jsx)(u,{items:i}),"sales"===s&&h.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{color:"grey-60",margin:"xs",variant:"dashed"}),(0,t.jsx)("div",{className:T.default.subtitle,children:"Lisäpalvelut"}),(0,t.jsx)(u,{items:h})]}),(0,t.jsx)(c.default,{color:"grey-60",margin:"xs"}),m&&(0,t.jsx)(o,{name:"Yhteensä",priceTaxIncluded:p}),!m&&!d?.payTotalPrice&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{items:[{name:_?"Välisumma":"Yhteensä",priceTaxIncluded:p,description:"(sis. verot)",highlight:!0},{name:`Alv ${v.vatRate}%`,priceTaxIncluded:v.taxAmount}]}),_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{color:"grey-60",margin:"xs",variant:"dashed"}),(0,t.jsx)(o,{name:"Käsiraha",priceTaxIncluded:-d.downPaymentSum})]}),(0,t.jsx)(c.default,{color:"grey-60",margin:"xs"}),(0,t.jsx)(o,{name:"Maksettavaa nyt",description:"(sis. verot)",priceTaxIncluded:d.downPaymentSum,highlight:!0,isDownpayment:!0}),(0,t.jsx)(o,{name:"Maksettavaa ennen luovutusta",description:"(sis. verot)",priceTaxIncluded:p-d.downPaymentSum>0?p-d.downPaymentSum:0,highlight:!0,extraTopMargin:!0})]})]}),!m&&d?.payTotalPrice&&_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{name:"Maksettava nyt",description:"(sis. verot)",priceTaxIncluded:d.downPaymentSum,highlight:!0,isDownpayment:!0}),(0,t.jsx)(o,{name:`Alv ${v.vatRate}%`,priceTaxIncluded:v.taxAmount,extraTopMargin:!0})]}),m&&void 0!==r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{color:"grey-60",margin:"xs",variant:"dashed"}),(0,t.jsx)(o,{name:"Maksa nyt",priceTaxIncluded:r,highlight:!0})]})]})};e.s(["default",0,w],46252);var E=e.i(550372),C=e.i(618562);e.s(["default",0,({type:e="sales",vehicle:s,products:i,items:r,deliveryFee:n,reservationFee:l,additionalItems:o,showImage:d,showMonthlyInstallmentSummary:u,monthlyInstallment:m,monthlyInstallmentInterestRate:h,monthlyInstallmentItems:p,className:f,includeStaticItems:_=!0,leasingContract:g,appraisal:T,downPaymentData:P,noPadding:I})=>{if("leasing"===e&&g)return(0,t.jsx)(v,{leasingContract:g,additionalItems:o,deliveryFee:n});let{mainImageUrl:j,manufacturer:N,model:R}=s||{},S=!!(d&&j),b=(0,C.getSummaryItems)({vehicle:s,products:i,items:r,additionalItems:o,deliveryFee:n,includeStaticItems:_,appraisal:T});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,a.default)(y.default.summary,f,{[y.default.withImage]:S,[y.default.noPadding]:I}),children:[S&&(0,t.jsx)("div",{className:y.default.imageWrapper,children:(0,t.jsx)(E.default,{src:j||"",alt:`${N} ${R} kuva`,className:y.default.image})}),(0,t.jsx)(w,{type:e,items:b,reservationFee:l,additionalItems:o,downPaymentData:P})]}),u&&m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.default,{margin:"none"}),(0,t.jsx)(x,{monthlyInstallment:m,monthlyInstallmentInterestRate:h,monthlyInstallmentItems:p})]})]})}],447536)},156817,e=>{e.v({comparisonPrice:"SummaryItemRow-module-scss-module__vXiE_W__c
1omparisonPrice",discount:"SummaryItemRow-module-scss-module__vXiE_W__discount",downpayment:"SummaryItemRow-module-scss-module__vXiE_W__downpayment",highlight:"SummaryItemRow-module-scss-module__vXiE_W__highlight",itemDescription:"SummaryItemRow-module-scss-module__vXiE_W__itemDescription",itemRow:"SummaryItemRow-module-scss-module__vXiE_W__itemRow",itemRowTop:"SummaryItemRow-module-scss-module__vXiE_W__itemRowTop",nameSuffix:"SummaryItemRow-module-scss-module__vXiE_W__nameSuffix",priceDisclaimer:"SummaryItemRow-module-scss-module__vXiE_W__priceDisclaimer",priceText:"SummaryItemRow-module-scss-module__vXiE_W__priceText",topMarginLarge:"SummaryItemRow-module-scss-module__vXiE_W__topMarginLarge"})},398363,e=>{e.v({summaryItemRows:"SummaryItemRows-module-scss-module__20Xg-a__summaryItemRows"})},508512,e=>{e.v({subtitle:"SummaryItems-module-scss-module__OAXcgG__subtitle",title:"SummaryItems-module-scss-module__OAXcgG__title"})},134645,e=>{e.v({closeButton:"Toast-module-scss-module__o8H_Tq__closeButton",description:"Toast-module-scss-module__o8H_Tq__description",error:"Toast-module-scss-module__o8H_Tq__error",hide:"Toast-module-scss-module__o8H_Tq__hide",info:"Toast-module-scss-module__o8H_Tq__info",root:"Toast-module-scss-module__o8H_Tq__root",slideIn:"Toast-module-scss-module__o8H_Tq__slideIn",success:"Toast-module-scss-module__o8H_Tq__success",swipeOut:"Toast-module-scss-module__o8H_Tq__swipeOut",title:"Toast-module-scss-module__o8H_Tq__title",toast:"Toast-module-scss-module__o8H_Tq__toast",viewport:"Toast-module-scss-module__o8H_Tq__viewport",warning:"Toast-module-scss-module__o8H_Tq__warning"})},759569,e=>{"use strict";var t,a=e.i(177215),s=e.i(77138),i=e.i(567889),r=e.i(26145),n=e.i(181500),l=e.i(255204),o=e.i(709166),d=e.i(611432),u=e.i(681738),c="dismissableLayer.update",m=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=s.forwardRef((e,i)=>{let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:o,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:_,onDismiss:g,...x}=e,y=s.useContext(m),[T,w]=s.useState(null),E=T?.ownerDocument??globalThis?.document,[,C]=s.useState({}),P=(0,n.useComposedRefs)(i,e=>w(e)),I=Array.from(y.layers),[j]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),N=I.indexOf(j),R=T?I.indexOf(T):-1,S=y.layersWithOutsidePointerEventsDisabled.size>0,b=R>=N,k=function(e,t=globalThis?.document){let a=(0,u.useCallbackRef)(e),i=s.useRef(!1),r=s.useRef(()=>{});return s.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let s=function(){v("dismissableLayer.pointerDownOutside",a,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=s,t.addEventListener("click",r.current,{once:!0})):s()}else t.removeEventListener("click",r.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,a=[...y.branches].some(e=>e.contains(t));b&&!a&&(h?.(e),_?.(e),e.defaultPrevented||g?.())},E),L=function(e,t=globalThis?.document){let a=(0,u.useCallbackRef)(e),i=s.useRef(!1);return s.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",a,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,a]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(p?.(e),_?.(e),e.defaultPrevented||g?.())},E);return!function(e,t=globalThis?.document){let a=(0,u.useCallbackRef)(e);s.useEffect(()=>{let e=e=>{"Escape"===e.key&&a(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[a,t])}(e=>{R===y.layers.size-1&&(o?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},E),s.useEffect(()=>{if(T)return l&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(t=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(T)),y.layers.add(T),f(),()=>{l&&1===y.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=t)}},[T,E,l,y]),s.useEffect(()=>()=>{T&&(y.layers.delete(T),y.layersWithOutsidePointerEventsDisabled.delete(T),f())},[T,y]),s.useEffect(()=>{let e=()=>C({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(d.Primitive.div,{...x,ref:P,style:{pointerEvents:S?b?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,k.onPointerDownCapture)})});h.displayName="DismissableLayer";var p=s.forwardRef((e,t)=>
1{let i=s.useContext(m),r=s.useRef(null),l=(0,n.useComposedRefs)(t,r);return s.useEffect(()=>{let e=r.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,a.jsx)(d.Primitive.div,{...e,ref:l})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function v(e,t,a,{discrete:s}){let i=a.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&i.addEventListener(e,t,{once:!0}),s?(0,d.dispatchDiscreteCustomEvent)(i,r):i.dispatchEvent(r)}p.displayName="DismissableLayerBranch";var _=e.i(241029),g=s.forwardRef((e,t)=>{let{container:r,...n}=e,[l,o]=s.useState(!1);(0,_.useLayoutEffect)(()=>o(!0),[]);let u=r||l&&globalThis?.document?.body;return u?i.default.createPortal((0,a.jsx)(d.Primitive.div,{...n,ref:t}),u):null});g.displayName="Portal";var x=e.i(817929),y=e.i(907950),T=s.forwardRef((e,t)=>(0,a.jsx)(d.Primitive.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));T.displayName="VisuallyHidden";var w="ToastProvider",[E,C,P]=(0,l.createCollection)("Toast"),[I,j]=(0,o.createContextScope)("Toast",[P]),[N,R]=I(w),S=e=>{let{__scopeToast:t,label:i="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:l=50,children:o}=e,[d,u]=s.useState(null),[c,m]=s.useState(0),h=s.useRef(!1),p=s.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${w}\`. Expected non-empty \`string\`.`),(0,a.jsx)(E.Provider,{scope:t,children:(0,a.jsx)(N,{scope:t,label:i,duration:r,swipeDirection:n,swipeThreshold:l,toastCount:c,viewport:d,onViewportChange:u,onToastAdd:s.useCallback(()=>m(e=>e+1),[]),onToastRemove:s.useCallback(()=>m(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:o})})};S.displayName=w;var b="ToastViewport",k=["F8"],L="toast.viewportPause",F="toast.viewportResume",D=s.forwardRef((e,t)=>{let{__scopeToast:i,hotkey:r=k,label:l="Notifications ({hotkey})",...o}=e,u=R(b,i),c=C(i),m=s.useRef(null),h=s.useRef(null),f=s.useRef(null),v=s.useRef(null),_=(0,n.useComposedRefs)(t,v,u.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=u.toastCount>0;s.useEffect(()=>{let e=e=>{0!==r.length&&r.every(t=>e[t]||e.code===t)&&v.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),s.useEffect(()=>{let e=m.current,t=v.current;if(x&&e&&t){let a=()=>{if(!u.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},s=()=>
1{if(u.isClosePausedRef.current){let e=new CustomEvent(F);t.dispatchEvent(e),u.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||s()},r=()=>{e.contains(document.activeElement)||s()};return e.addEventListener("focusin",a),e.addEventListener("focusout",i),e.addEventListener("pointermove",a),e.addEventListener("pointerleave",r),window.addEventListener("blur",a),window.addEventListener("focus",s),()=>{e.removeEventListener("focusin",a),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",a),e.removeEventListener("pointerleave",r),window.removeEventListener("blur",a),window.removeEventListener("focus",s)}}},[x,u.isClosePausedRef]);let y=s.useCallback(({tabbingDirection:e})=>{let t=c().map(t=>{let a=t.ref.current,s=[a,...function(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}(a)];return"forwards"===e?s:s.reverse()});return("forwards"===e?t.reverse():t).flat()},[c]);return s.useEffect(()=>{let e=v.current;if(e){let t=t=>{let a=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!a){let a=document.activeElement,s=t.shiftKey;if(t.target===e&&s)return void h.current?.focus();let i=y({tabbingDirection:s?"backwards":"forwards"}),r=i.findIndex(e=>e===a);Q(i.slice(r+1))?t.preventDefault():s?h.current?.focus():f.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,y]),(0,a.jsxs)(p,{ref:m,role:"region","aria-label":l.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,a.jsx)(M,{ref:h,onFocusFromOutsideViewport:()=>{Q(y({tabbingDirection:"forwards"}))}}),(0,a.jsx)(E.Slot,{scope:i,children:(0,a.jsx)(d.Primitive.ol,{tabIndex:-1,...o,ref:_})}),x&&(0,a.jsx)(M,{ref:f,onFocusFromOutsideViewport:()=>{Q(y({tabbingDirection:"backwards"}))}})]})});D.displayName=b;var A="ToastFocusProxy",M=s.forwardRef((e,t)=>{let{__scopeToast:s,onFocusFromOutsideViewport:i,...r}=e,n=R(A,s);return(0,a.jsx)(T,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;n.viewport?.contains(t)||i()}})});M.displayName=A;var V="Toast",W=s.forwardRef((e,t)=>{let{forceMount:s,open:i,defaultOpen:n,onOpenChange:l,...o}=e,[d=!0,c]=(0,y.useControllableState)({prop:i,defaultProp:n,onChange:l});return(0,a.jsx)(x.Presence,{present:s||d,children:(0,a.jsx)(G,{open:d,...o,ref:t,onClose:()=>c(!1),onPause:(0,u.useCallbackRef)(e.onPause),onResume:(0,u.useCallbackRef)(e.onResume),onSwipeStart:(0,r.composeEventHandlers)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,r.composeEventHandlers)(e.onSwipeMove,e=>{let{x:t,y:a}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${a}px`)}),onSwipeCancel:(0,r.composeEventHandlers)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,r.composeEventHandlers)(e.onSwipeEnd,e=>{let{x:t,y:a}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${a}px`),c(!1)})})})});W.displayName=V;var[O,H]=I(V,{onClose(){}}),G=s.forwardRef((e,t)=>{let{__scopeToast:l,type:o="foreground",duration:c,open:m,onClose:p,onEscapeKeyDown:f,onPause:v,onResume:_,onSwipeStart:g,onSwipeMove:x,onSwipeCancel:y,onSwipeEnd:T,...w}=e,C=R(V,l),[P,I]=s.useState(null),j=(0,n.useComposedRefs)(t,e=>I(e)),N=s.useRef(null),S=s.useRef(null),b=c||C.duration,k=s.useRef(0),D=s.useRef(b),A=s.useRef(0),{onToastAdd:M,onToastRemove:W}=C,H=(0,u.useCallbackRef)(()=>{P?.contains(document.activeElement)&&C.viewport?.focus(),p()}),G=s.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(A.current),k.current=new Date().getTime(),A.current=window.setTimeout(H,e))},[H]);s.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{G(D.current),_?.()},a=()=>{let e=new Date().getTime()-k.current;D.current=D.current-e,window.clearTimeout(A.current),v?.()};return e.addEventListener(L,a),e.addEventListener(F,t),()=>{e.removeEventListener(L,a),e.removeEventListener(F,t)}}},[C.viewport,b,v,_,G]),s.useEffect(()=>{m&&!C.isClosePausedRef.current&&G(b)},[m,b,C.isClosePausedRef,G]),s.useEffect(()=>(M(),()=>W()),[M,W]);let U=s.useMemo(()=>P?function e(t){let a=[];return Array.from(t.childNodes).forEach(t=>{var s;if(t.nodeType===t.TEXT_NODE&&t.textContent&&a.push(t.textContent),(s=t).nodeType===s.ELEMENT_NODE){let s=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!s)if(i){let e=t.dataset.radixToastAnnounceAlt;e&&a.push(e)}else a.push(...e(t))}}),a}(P):null,[P]);return C.viewport?(0,a.jsxs)(a.Fragment,{children:[U&&(0,a.jsx)(q,{__scopeToast:l,role:"status","aria-live":"foreground"===o?"assertive":"polite","aria-atomic":!0,children:U}),(0,a.jsx)(O,{scope:l,onClose:H,children:i.createPortal((0,a.jsx)(E.ItemSlot,{scope:l,children:(0,a.jsx)(h,{asChild:!0,onEscapeKeyDown:(0,r.composeEventHandlers)(f,()=>{C.isFocusedToastEscapeKeyDownRef.current||H(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,a.jsx)(d.Primitive.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":m?"open":"closed","data-swipe-direction":C.swipeDirection,...w,ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{"Escape"===e.key&&(f?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:(0,r.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(N.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,e=>{if(!N.current)return;let t=e.clientX-N.current.x,a=e.clientY-N.current.y,s=!!S.current,i=["left","right"].includes(C.swipeDirection),r=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,n=i?r(0,t):0,l=i?0:r(0,a),o="touch"===e.pointerType?10:2,d={x:n,y:l},u={originalEvent:e,delta:d};s?(S.current=d,Y("toast.swipeMove",x,u,{discrete:!1})):Z(d,C.swipeDirection,o)?(S.current=d,Y("toast.swipeStart",g,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>o||Math.abs(a)>o)&&(N.current=null)}),onPointerUp:(0,r.composeEventHandlers)(e.onPointerUp,e=>{let t=S.current,a=e.target;if(a.hasPointerCapture(e.pointerId)&&a.releasePointerCapture(e.pointerId),S.current=null,N.current=null,t){let a=e.currentTarget,s={originalEvent:e,delta:t};Z(t,C.swipeDirection,C.swipeThreshold)?Y("toast.swipeEnd",T,s,{discrete:!0}):Y("toast.swipeCancel",y,s,{discrete:!0}),a.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),q=e=>{let{__scopeToast:t,children:i,...r}=e,n=R(V,t),[l,o]=s.useState(!1),[d,c]=s.useState(!1);return function(e=()=>{}){let t=(0,u.useCallbackRef)(e);(0,_.useLayoutEffect)(()=>{let e=0,a=0;return e=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(a)}},[t])}(()=>o(!0)),s.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),d?null:(0,a.jsx)(g,{asChild:!0,children:(0,a.jsx)(T,{...r,children:l&&(0,a.jsxs)(a.Fragment,{children:[n.label," ",i]})})})},U=s.forwardRef((e,t)=>{let{__scopeToast:s,...i}=e;return(0,a.jsx)(d.Primitive.div,{...i,ref:t})});U.displayName="ToastTitle";var B=s.forwardRef((e,t)=>{let{__scopeToast:s,...i}=e;return(0,a.jsx)(d.Primitive.div,{...i,ref:t})});B.displayName="ToastDescription";var K="ToastAction",$=s.forwardRef((e,t)=>{let{altText:s,...i}=e;return s.trim()?(0,a.jsx)(z,{altText:s,asChild:!0,children:(0,a.jsx)(J,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${K}\`. Expected non-empty \`string\`.`),null)});$.displayName=K;var X="ToastClose",J=s.forwardRef((e,t)=>{let{__scopeToast:s,...i}=e,n=H(X,s);return(0,a.jsx)(z,{asChild:!0,children:(0,a.jsx)(d.Primitive.button,{type:"button",...i,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,n.onClose)})})});J.displayName=X;var z=s.forwardRef((e,t)=>
1{let{__scopeToast:s,altText:i,...r}=e;return(0,a.jsx)(d.Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...r,ref:t})});function Y(e,t,a,{discrete:s}){let i=a.originalEvent.currentTarget,r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:a});t&&i.addEventListener(e,t,{once:!0}),s?(0,d.dispatchDiscreteCustomEvent)(i,r):i.dispatchEvent(r)}var Z=(e,t,a=0)=>{let s=Math.abs(e.x),i=Math.abs(e.y),r=s>i;return"left"===t||"right"===t?r&&s>a:!r&&i>a};function Q(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var ee=e.i(657710),et=e.i(134645),ea=e.i(637761);let es=(0,s.createContext)(void 0),ei=({children:e,status:t})=>(0,a.jsx)("div",{className:(0,ee.default)(et.default.toast,{[et.default.error]:"error"===t,[et.default.info]:"info"===t,[et.default.success]:"success"===t,[et.default.warning]:"warning"===t}),children:e});e.s(["ToastComponent",0,ei,"ToastProvider",0,({children:e})=>{let[t,i]=(0,s.useState)([]),r=(0,s.useCallback)((e,t,a)=>{let s=Date.now();i(i=>[...i,{id:s,type:e,message:t,title:a}])},[]),n=(0,s.useMemo)(()=>({showToast:r}),[r]);return(0,a.jsxs)(es.Provider,{value:n,children:[e,(0,a.jsxs)(S,{swipeDirection:"right",duration:5e3,children:[t.map(e=>(0,a.jsxs)(W,{open:!0,onOpenChange:t=>{var a;return!t&&(a=e.id,void i(e=>e.filter(e=>e.id!==a)))},className:et.default.root,children:[(0,a.jsxs)(ei,{status:e.type,children:[e.title&&(0,a.jsx)(U,{className:et.default.title,children:e.title}),(0,a.jsx)(B,{className:et.default.description,children:e.message})]}),(0,a.jsx)($,{asChild:!0,altText:"Close",className:et.default.closeButton,children:(0,a.jsx)(ea.Close,{})})]},e.id)),(0,a.jsx)(D,{className:et.default.viewport})]})]})},"useToast",0,()=>{let e=(0,s.useContext)(es);if(!e)throw Error("useToast must be used within a ToastProvider");return e}],759569)},950115,e=>{"use strict";var t=e.i(177215),a=e.i(77138),s=e.i(880759);let i=(0,a.createContext)(null);e.s(["ContentfulLivePreviewProvider",0,function({children:e,locale:r,space:n,environment:l,debugMode:o=!1,enableInspectorMode:d=!0,enableLiveUpdates:u=!0,targetOrigin:c,experimental:m}){if(!r)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');s.C.init({locale:r,space:n,environment:l,debugMode:o,enableInspectorMode:d,enableLiveUpdates:u,targetOrigin:c,experimental:m});let h=(0,a.useMemo)(()=>({locale:r,space:n,environment:l,debugMode:o,enableInspectorMode:d,enableLiveUpdates:u,targetOrigin:c}),[r,n,l,o,d,u,c]);return(0,t.jsx)(i.Provider,{value:h,children:e})},"useContentfulInspectorMode",0,function(e){let t=(0,a.useContext)(i);return(0,a.useCallback)(a=>null!=t&&t.enableInspectorMode?s.C.getProps({...e,...a}):null,[null==t?void 0:t.enableInspectorMode,e])}])},13882,e=>{"use strict";var t=e.i(428070),a=e.i(546359);e.i(416539);var s=e.i(141925);e.i(51858);var i=e.i(482373),r=e.i(618562),n=e.i(186567);e.i(57447);let l=(0,t.getPage)("vehiclePurchasing").path;s.TRAFFIC_INSURANCE_OFFER_NONE_ITEM.productReference;let o=[{id:"ADDITIONAL_ITEMS",name:"lisapalvelut",title:"Valitse lisäpalvelut",path:(0,t.formatPath)(l,"lisapalvelut"),continueText:"Jatka toimitustavan valintaan"},{id:"DELIVERY",name:"toimitustapa",title:"Toimitustapa",path:(0,t.formatPath)(l,"toimitustapa"),continueText:"Jatka yhteystietoihin"},{id:"APPRAISAL_SELECTION",name:"hyvityshinta",title:"Hyvitys vaihtoautosta",path:(0,t.formatPath)(l,"hyvityshinta"),continueText:"Jatka yhteystietoihin"},{id:"CUSTOMER_INFORMATION",name:"yhteystiedot",title:"Yhteystiedot",path:(0,t.formatPath)(l,"yhteystiedot"),continueText:"Jatka yhteenvetoon"},{id:"CONTRACT_APPROVALS",name:"ehdot",title:"Tarkasta tiedot ja hyväksy ehdot",path:(0,t.formatPath)(l,"ehdot"),continueText:"Jatka maksutavan valintaan"},{id:"PAYMENT",name:"maksutapa",title:"Siirry maksamaan",path:(0,t.formatPath)(l,"maksutapa"),continueText:"Jatka maksamaan"},{name:"tilaus-onnistui",title:"Kiitos tilauksestasi",path:(0,t.formatPath)(l,"tilaus-onnistui")},{name:"tilaus-epaonnistui",title:"Tilaus epäonnistui",path:(0,t.formatPath)(l,"tilaus-epaonnistui"),isFailure:!0}];e.s(["calculateVehicleDownPayment",0,({vehicle:e,additionalItems:t,deliveryFee:s,appraisal:l})=>{let o=(0,r.getSummaryItems)({vehicle:e,additionalItems:t,deliveryFee:s,appraisal:l}),d=e&&(0,n.isUsedVehicle)(e)&&!1===e.price.vatDeductible?0:a.VAT_PERCENTAGE,u=s?.priceTaxIncluded||0,c=o?.find(e=>"Toimistomaksu"===e.name),m=c?.priceTaxIncluded||0,h=t?.reduce((e,t)=>
1t.priceTaxIncluded?e+t.priceTaxIncluded:e,0)||0,p=e?.price.total||0,f=Math.max((l?.appraisalPrice||0)-(l?.debtAmount||0),0),v=(0,i.calculateNetFromGross)(1e3,d),_=p+(m+u+h)-f;if(!l?.gtxAppraisalId&&p>=5e3)return{downPaymentSum:1e3,downPaymentNetSum:v,totalPrice:_};if(!l?.gtxAppraisalId&&p<5e3)return{downPaymentSum:_,downPaymentNetSum:_>0?(0,i.calculateNetFromGross)(_,d):0,totalPrice:_,payTotalPrice:!0};let g=p-f;return g>0?g>=1e3?{downPaymentSum:1e3,downPaymentNetSum:v,totalPrice:_}:{downPaymentSum:g,downPaymentNetSum:g>0?(0,i.calculateNetFromGross)(g,d):0,totalPrice:_}:_>0?_>=1e3?{downPaymentSum:1e3,downPaymentNetSum:v,totalPrice:_}:{downPaymentSum:_,downPaymentNetSum:(0,i.calculateNetFromGross)(_,d),totalPrice:_}:{error:"Hyvitettävän auton arvon on oltava pienempi kuin ostettavan",downPaymentSum:0,downPaymentNetSum:0,totalPrice:_}},"getVehiclePurchasingPageUrl",0,e=>(0,t.formatPath)(o[0].path,e),"hasSalesLocation",0,e=>void 0!==e.salesLocation])},191892,e=>{"use strict";var t=e.i(147483);e.s(["isCypressTest",0,()=>window.Cypress?.env("isCypress"),"resolveMockData",0,(e,{delay:a=0,schema:s,returnValueOnError:i}={})=>new Promise(r=>{setTimeout(()=>{if(!s)return r(e);let{success:a,error:n,data:l}=s.safeParse(e);return a?r(l):((0,t.logError)("Mock data validation failed",n),r(i||e))},a)})])},764668,e=>{"use strict";var t=e.i(428070),a=e.i(159410);let s=/^(?<width>\d+)\/(?<height>\d+)R(?<rimDiameter>\d+$)/;e.s(["areTiresWornOut",0,(e,t)=>!!e.length&&e.some(e=>e<(t?4:5)),"getTirePageUrl",0,({slugs:e},a)=>{if(!e?.manufacturer)return"";let s=[t.pageMap.tirePage.path,e.manufacturer];return e.name&&s.push(e.name),e.tireSizeFullCode&&s.push(e.tireSizeFullCode),a&&s.push(a),(0,t.formatPath)(...s)},"getTireSetTreads",0,e=>{let t=[];return e?.front?.treadDepthLeft!==void 0&&t.push(e.front.treadDepthLeft),e?.front?.treadDepthRight!==void 0&&t.push(e.front.treadDepthRight),e?.rear?.treadDepthLeft!==void 0&&t.push(e.rear.treadDepthLeft),e?.rear?.treadDepthRight!==void 0&&t.push(e.rear.treadDepthRight),t},"isTireFamily",0,e=>e.category===a.ProductCategory.TireFamily,"tireDimensionsFromTireSizeCode",0,e=>{let t=e.match(s);if(t?.groups){let{width:e,height:a,rimDiameter:s}=t.groups;return{width:Number(e),height:Number(a),rimDiameter:Number(s)}}},"tireSizeCodeFromTireDimensions",0,e=>`${e.width}/${e.height}R${e.rimDiameter}`])},733276,e=>{"use strict";var t=e.i(72889),a=e.i(416539),s=e.i(785273),i=e.i(179840),r=e.i(13882),n=e.i(428070),l=e.i(141925),o=e.i(191236);let d=(0,n.getPage)("vehicleFinancing").path,u={name:"tunnistautuminen",id:l.IDENTIFICATION_STEP_ID,title:"Tunnistautuminen",path:(0,n.formatPath)(d,"tunnistautuminen"),continueText:"Jatka tunnistautumaan"},c={name:"lisapalvelut",id:"ADDITIONAL_ITEMS",title:"Valitse lisäpalvelut",path:(0,n.formatPath)(d,"lisapalvelut"),continueText:"Jatka toimitustavan valintaan"},m={id:"DELIVERY",name:"toimitustapa",title:"Toimitustapa",path:(0,n.formatPath)(d,"toimitustapa"),continueText:"Jatka rahoitukseen"},h={id:"FINANCING",name:"osamaksurahoitus",title:"Määrittele osamaksurahoitus",path:(0,n.formatPath)(d,"osamaksurahoitus"),continueText:"Jatka yhteystietoihin"},p={id:"CUSTOMER_INFORMATION",name:"yhteystiedot",title:"Yhteystiedot",path:(0,n.formatPath)(d,"yhteystiedot"),continueText:"Jatka yhteenvetoon"},f={id:"CONTRACT_APPROVALS",name:"ehdot",title:"Tarkasta tiedot ja hyväksy ehdot",path:(0,n.formatPath)(d,"ehdot"),continueText:"Jatka maksutavan valintaan"},v={id:"PAYMENT",name:"maksutapa",title:"Siirry maksamaan",path:(0,n.formatPath)(d,"maksutapa"),continueText:"Jatka maksamaan"},_=[...a.FEATURES.USE_IDENTITY_SERVICE_FLOW?[u]:[],c,m,h,p,f,v,{name:"tilaus-onnistui",title:"Kiitos tilauksestasi",path:(0,n.formatPath)(d,"tilaus-onnistui")},{name:"tilaus-epaonnistui",title:"Tilaus epäonnistui",path:(0,n.formatPath)(d,"tilaus-epaonnistui"),isFailure:!0}];var g=e.i(441851);let x=(0,g.createServerReference)("609b7fde47ff2ed820c7e39b8a761ad7077452354c",g.callServer,void 0,g.findSourceMapURL,"initializeVehiclePurchaseIntent"),y=(0,g.createServerReference)("404fea2b8d291cbd37594767e6e1e917aeb27230ca",g.callServer,void 0,g.findSourceMapURL,"initializeVehicleLeasing"),T=(0,g.createServerReference)("402c420f7609ac6a3c0950cbbc0b054897709881d6",g.callServer,void 0,g.findSourceMapURL,"initializeVehicleReservation");
1var w=e.i(656349);let E=[t.VehicleCategory.Demo,t.VehicleCategory.Used,t.VehicleCategory.New],C=[t.VehicleCategory.Demo,t.VehicleCategory.New,t.VehicleCategory.Used],P=e=>E.includes(e.category)&&!e.isRenewalLeasingVehicle,I=e=>C.includes(e.category)&&!e.isRenewalLeasingVehicle,j=async({type:e,vehicle:t,leasingParams:a,appraisal:l})=>{let d,u;["PURCHASE_VEHICLE","FINANCE_VEHICLE","LEASE_VEHICLE"].includes(e)&&(0,w.triggerEcommerceEvent)("add_to_cart",{vehicle:t});let c=window.location.pathname+window.location.search;if("PURCHASE_VEHICLE"===e&&(d=await x(s.SESSION_NAME_VEHICLE_PURCHASE,{vehicleId:t.vehicleId,type:e,returnUrl:c,appraisal:l}),u=(0,r.getVehiclePurchasingPageUrl)(t.vehicleId)),"FINANCE_VEHICLE"===e){let a;d=await x(s.SESSION_NAME_VEHICLE_FINANCE,{vehicleId:t.vehicleId,type:e,returnUrl:c,appraisal:l}),a=t.vehicleId,u=(0,n.formatPath)(_[0].path,a)}return("LEASE_VEHICLE"===e&&(d=await y({vehicleId:t.vehicleId,returnUrl:c,leasingParams:a}),u=(0,i.getVehicleLeasingPageUrl)(t.vehicleId)),"RESERVE_VEHICLE"===e&&(d=await T({vehicleId:t.vehicleId,dealerId:t.salesLocation.id,vehicleReference:t.licensePlateNumber||t.comissionNumber,returnUrl:c}),u=(0,o.getVehicleReservationPageUrl)(t)),d?.success===!1||d?.error)?d:u?{success:!0,redirectUrl:u}:{success:!1}};e.s(["canReserveVehicle",0,I,"getVehicleTransactionTypes",0,e=>{let t=[];return P(e)&&t.push("buy"),P(e)&&a.FEATURES.VEHICLE_FINANCING_FLOW&&t.push("finance"),Array.isArray(e.leasingVariants)&&e.leasingVariants.length>0&&a.FEATURES.VEHICLE_LEASING_FLOW&&t.push("lease"),I(e)&&t.push("reserve"),t},"initializeVehicleTransaction",0,j],733276)}]);

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.