1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5788],{82928(e,t,r){r.r(t),r.d(t,{default:()=>Y});var a=r(64180),o=r(28407),n=r(68175),i=r(77810),s=r(34692),l=r(41863),c=r(64965),d=r(94615),u=r(54752),m=r(27870),p=r(55600),g=r(71468),v=r(25176),f=r(77182),h=r(2468),y=r(67234),_=r(69290),b=r(65958),I=r(10551),w=r(75828),E=r(59146),S=r(60967),k=r(21052),x=r(23034),C=r(99378),P=r(9e4),A=r(27750),D=r(64354),O=r(61892),B=r(85353);const N=()=>i.createElement(b.B,{spacing:4,layerStyle:"card",boxShadow:"none"},i.createElement(y.s,{width:"full",bg:"white",marginBottom:[4,3]},i.createElement(O.E,{width:["88px","136px"],height:["88px","136px"]}),i.createElement(b.B,{marginLeft:[4,6],spacing:2,flex:1},i.createElement(O.E,{width:"80px",height:"20px"}),i.createElement(O.E,{width:{base:"180px",sm:"180px",md:"280px",lg:"280px"},height:3}),i.createElement(O.E,{width:{base:"120px",sm:"120px",md:"140px",lg:"140px"},height:3})))),$=()=>i.createElement(E.a,{background:"gray.50",flex:"1",paddingBottom:{base:20,lg:55}},i.createElement(_.m,{background:"gray.50","data-testid":"sf-cart-skeleton",maxWidth:"container.xl",p:[4,6,6,4],paddingTop:[null,null,null,6]},i.createElement(w.x,{templateColumns:{base:"1fr",lg:"66% 1fr"},gap:{base:10,xl:20}},i.createElement(P.E,null,i.createElement(b.B,{paddingTop:4,spacing:4},i.createElement(k.E,{fontWeight:"bold",fontSize:["xl","xl","xl","2xl"]},i.createElement(l.A,{defaultMessage:[{type:0,value:"Cart"}],id:"cart_skeleton.title.cart"})),i.createElement(N,null),i.createElement(N,null))),i.createElement(P.E,{py:7},i.createElement(b.B,{paddingTop:{base:0,lg:8},spacing:3,px:[6,6,6,0]},i.createElement(B.D,{fontSize:"lg",pt:1},i.createElement(l.A,{defaultMessage:[{type:0,value:"Order Summary"}],id:"cart_skeleton.heading.order_summary"})),i.createElement(b.B,{spacing:3,align:"flex-start"},i.createElement(O.E,{width:{base:"180px",sm:"180px",md:"280px",lg:"280px"},height:4}),i.createElement(O.E,{width:"120px",height:4}),i.createElement(O.E,{width:{base:"180px",sm:"180px",md:"280px",lg:"280px"},height:4}),i.createElement(O.E,{width:"120px",height:4})))))));var M=r(7711),T=r(73448),W=r(24503),L=r.n(W),j=r(84319),R=r(90031),F=r(60309),q=r(68409),z=r(49785),H=r(68066),J=r(90176);function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const U="undefined"!=typeof window,Y=()=>{var e,t,r,n,O,B,N,W,V,Y,G,X,Q,Z,ee,te,re,ae,oe,ne,ie;const[se,le]=(0,i.useState)(),[ce,de]=(0,i.useState)({}),ue=(0,f.o)("Cart"),[me,pe]=(0,i.useState)(!1),[ge,ve]=(0,i.useState)(""),[fe,he]=(0,i.useState)(),{formatMessage:ye}=(0,s.A)(),{locale:_e}=(0,H.A)(),be=(0,c.zy)(),Ie=(0,g.wA)(),we=_e.alias,Ee=_e.countryCode,Se=_e.id,ke={cartRecapTitle:ue.cartRecapTitle,cartRecapWrapper:ue.cartRecapWrapper},xe={c_storeId:"''",c_externalSystem:"0",c_plate:"0",c_slotAppointmentDateStart:"''",c_slotAppointmentTimeStart:"''",c_slotAppointmentSlotDuration:"''",c_brandCar:"''",c_modelCar:"''",c_yearCar:"''",c_versionCar:"''",c_brandCarId:"''",c_modelCarId:"''",c_versionCarId:"''",c_freeTextBooking:"''",c_idErp:"''",c_idPirelli:"''",c_rimSize:"''",c_slotAppointmentNumOfSlots:"''",c_duration:0,c_tyreInfo:"",c_totalServicesDurationRounded:0,c_totalServicesDurationNoRounded:0,c_totalServicesDuration:0,c_slotPromoName:"",c_promotionSurvey:"''",c_netPrice:0,c_grossPrice:0,c_customPromotion:"",c_daysToAdd:0,shipments:[{shipmentId:"free_shipping",shippingMethod:{id:"free_shipping"}},{shipmentId:"me",shippingMethod:{id:"free_shipping"}}]},{data:Ce,refetch:Pe}=(0,j.X)(),Ae=(0,R.useShopperBasketsMutation)("createBasket"),[De,Oe]=(0,i.useState)(Ce),{customPreferences:Be}=(0,i.useContext)(m.pX),Ne=null==Be||null===(e=Be.marketConfigs)||void 0===e||null===(t=e.find(e=>"requiredServicesHeadless"===e.id))||void 0===t?void 0:t.value,$e=(0,R.useCommerceApi)(),{getTokenWhenReady:Me}=(0,R.useAccessToken)();(0,i.useEffect)(()=>{Ce&&Oe(Ce)},[Ce]);const Te=(null==Ce||null===(r=Ce.productItems)||void 0===r?void 0:r.map(({productId:e})=>e).join(","))??"",{data:We}=(0,R.useProducts)({parameters:{ids:Te,allImages:!0}},{enabled:Boolean(Te),select:e=>{var t;const r=null==e||null===(t=e.data)||void 0===t?void 0:t.reduce((e,t)=>
1(e[t.id]=t,e),{});return K(K({},e),{},{data:Object.values(r)})}}),{data:Le}=(0,F.J)(),{customerId:je,isRegistered:Re}=Le,{control:Fe,handleSubmit:qe,formState:{errors:ze},reset:He}=(0,z.mN)({defaultValues:{}}),Je=["1","2","4"],Ve=Je.map((e,t)=>({label:Je[t],value:e}));(0,i.useEffect)(()=>{const e=function(){var e=(0,o.A)(function*(){try{const e=yield fetch(`/get-stores-by-id?storeID=${null==Ce?void 0:Ce.c_storeId}&countryCode=${Ee}&localeId=${Se}`);if(!e.ok)throw new Error("Network response was not ok");const t=yield e.json();le(t)}catch(e){console.error("Error fetching data:",e)}});return function(){return e.apply(this,arguments)}}();e()},[null==Ce?void 0:Ce.c_storeId]),(0,i.useEffect)(()=>{if(null!=Ce&&Ce.productItems){const e=Ce.productItems.reduce((e,t,r)=>{var a;return e[`quantityField-${r}`]=null===(a=t.quantity)||void 0===a?void 0:a.toString(),e},{});de(e)}},[Ce]),(0,i.useEffect)(()=>{He(ce)},[ce,He]),(0,i.useEffect)(()=>{Ie((0,v.Td)("na")),sessionStorage.setItem("getLastCategoryPage","na")},[]);const Ke=(0,R.useShopperBasketsMutation)("updateItemInBasket"),Ue=(0,R.useShopperBasketsMutation)("removeItemFromBasket"),Ye=(0,R.useShopperBasketsMutation)("deleteBasket"),Ge=(0,R.useShopperBasketsMutation)("updateBasket"),[Xe,Qe]=((0,c.W6)(),(0,i.useState)(void 0)),[Ze,et]=(0,i.useState)({}),[tt,rt]=(0,i.useState)(!1),at=(0,h.d)(),ot=(0,M.A)(),[nt,it]=(0,i.useState)(null),[st,lt]=(0,i.useState)(null),[ct,dt]=(0,i.useState)(null),[ut,mt]=(0,i.useState)(null),[pt,gt]=(0,i.useState)(null),vt=ye({defaultMessage:[{type:0,value:"Item removed from cart"}],id:"success_remove_item"}),ft=function(){var e=(0,o.A)(function*(){if(Ce&&Ce.basketId)try{yield Ye.mutateAsync({parameters:{basketId:Ce.basketId}}),Ae.mutate({body:xe}),sessionStorage.removeItem("updatedBasket"),sessionStorage.removeItem("addedProductIDs"),sessionStorage.removeItem("removedItems"),ot("sv-se"!==we?`/${we}`:"/")}catch(e){console.error("Failed to delete basket:",e)}else console.error("Basket or basketId is not defined")});return function(){return e.apply(this,arguments)}}(),ht=function(){var e=(0,o.A)(function*(){if(Ce&&Ce.basketId){if(null!=Ce&&Ce.c_storeId)try{const e=yield Ge.mutateAsync({parameters:{basketId:Ce.basketId},body:{c_storeId:"''"}});Oe(e)}catch(e){console.error("Failed to delete dealer:",e)}}else console.error("Basket or basketId is not defined")});return function(){return e.apply(this,arguments)}}();(0,i.useEffect)(()=>{const e=function(){var e=(0,o.A)(function*(){var e;const t=null==Ce||null===(e=Ce.productItems)||void 0===e?void 0:e.find(e=>"services"!==(null==e?void 0:e.c_classificationCategory));if(t){var r,a,o;const e=yield fetch(`/get-products-by-id?id=${null==t?void 0:t.productId}&countryCode=${Ee}&localeId=${Se}`);if(!e.ok)throw new Error("Network response was not ok");const n=yield e.json();ve(null==n||null===(r=n.data)||void 0===r||null===(a=r[0])||void 0===a||null===(o=a.variationValues)||void 0===o?void 0:o.size)}});return function(){return e.apply(this,arguments)}}();e()},[]);const yt=()=>{at({title:ye(T.gS),status:"error",action:null})},_t=L()(function(){var e=(0,o.A)(function*(e,t){const r=Ze[t.itemId];var a;et(K(K({},Ze),{},{[t.itemId]:e})),rt(!0),Qe(t),yield Ke.mutateAsync({parameters:{basketId:(null==Ce?void 0:Ce.basketId)??"",itemId:t.itemId},body:{productId:t.id,quantity:parseInt(e)}},{onSettled:()=>{rt(!1),Qe(void 0)},onSuccess:(a=(0,o.A)(function*(e){Oe(e),yield Pe(),et(K(K({},Ze),{},{[t.itemId]:void 0}))}),function(e){return a.apply(this,arguments)}),onError:()=>{et(K(K({},Ze),{},{[t.itemId]:r})),yt()}})});return function(t,r){return e.apply(this,arguments)}}(),750),bt=function(){var e=(0,o.A)(function*(e,t){if("object"!=typeof We||null===We)return console.error("Products is not an object",We),!1;const r=We[e.productId],a=r?r.inventory.stockLevel:void 0;return 0===t?(_t.flush(),Qe(e),!1):(_t.cancel(),t>a||t===e.quantity||_t(t,e),!0)});return function(t,r){return e.apply(this,arguments)}}();(0,i.useEffect)(()=>{const e=function(){var e=(0,o.A)(function*(){try{var e;const t=yield Me(),r=e=>$e.shopperSearch.productSearch({parameters:{refine:[`cgid=${e}`],expand:["availability","images","prices","represented_products","variations","custom_properties"],allVariationProperties:!0},headers:{authorization:`Bearer ${t}`}}
1),[a,o,n,i,s]=yield Promise.all([r("tyre-services"),r("car-services"),r("other-services"),r("bundle-services"),r("mounting-services")]);it(a),lt(o),dt(n),mt(i),gt(s);const l=(null==a||null===(e=a.hits)||void 0===e?void 0:e.filter(e=>!0===e.representedProduct.c_hidePrice))||[];he(l)}catch(e){console.error("Error updating basket:",e)}});return function(){return e.apply(this,arguments)}}();se&&e()},[se]),(0,i.useEffect)(()=>{let e=sessionStorage.getItem("tireProduct"),t=sessionStorage.getItem("sourceProduct");if(!me&&null!=e&&""!=e&&null!=t&&""!=t)try{const r=sessionStorage.getItem("checkoutType"),a=sessionStorage.getItem("funnelType"),o=sessionStorage.getItem("clientType"),n=sessionStorage.getItem("dealerName"),i=sessionStorage.getItem("dealerType"),s=sessionStorage.getItem("dealerSapCode"),l=JSON.parse(sessionStorage.getItem("customerTrackingObject")),c=JSON.parse(e);(0,J.r1)({countryCode:Ee,basket:Ce});let d=K(K({event:"view_cart"},(0,J.Rp)()),{},{ecommerce:{item_list_id:"cart_temp",item_list_name:"Cart Temporary",items:(0,J.eV)({items:c,basket:Ce,countryCode:Ee})},funnel:{type:a,checkout_type:r,booking_type:"notOk"!==o?"book_new_tyre":"booking_seasonal_change",source:t,component:sessionStorage.getItem("sourceComponent")||""},customer:l});n&&(d=K(K({},d),{},{dealer:{name:n,type:i,sap_code:s}})),window.dataLayer.push({vehicle:void 0,tyre:void 0,dealer:void 0,customer:void 0,location:void 0,fitment:void 0,funnel:void 0}),setTimeout(()=>{window.dataLayer.push({ecommerce:null}),window.dataLayer.push(d)},2e3)}catch(e){console.error("Error tracking datalayer:",e)}},[me]);const It=function(){var e=(0,o.A)(function*(e){var t;if(Qe(e),rt(!0),yield Ue.mutateAsync({parameters:{basketId:(null==Ce?void 0:Ce.basketId)??"",itemId:e.itemId}},{onSettled:()=>{rt(!1),Qe(void 0)},onSuccess:(t=(0,o.A)(function*(t){Oe(t),sessionStorage.setItem("updatedBasket",JSON.stringify(t));let r=sessionStorage.getItem("addedProductIDs"),a=r?JSON.parse(r):[];a.length>0&&(a=a.filter(t=>t!==(null==e?void 0:e.productId)),sessionStorage.setItem("addedProductIDs",JSON.stringify(a))),r=sessionStorage.getItem("removedItems"),a=r?JSON.parse(r):[],a.length>0&&(a=a.filter(t=>t!==(null==e?void 0:e.productId)),sessionStorage.setItem("removedItems",JSON.stringify(a))),yield Pe(),at({isClosable:!0,position:"top-right",duration:3e3,render:({onClose:t})=>i.createElement(D.A,{cartLabel:vt,productName:e.productName,onClose:t})});const o=sessionStorage.getItem("dealerName"),n=sessionStorage.getItem("dealerType"),s=sessionStorage.getItem("dealerSapCode"),l=sessionStorage.getItem("checkoutType"),c=sessionStorage.getItem("funnelType"),d=sessionStorage.getItem("funnelBookingType"),u=JSON.parse(sessionStorage.getItem("customerTrackingObject"));let m=sessionStorage.getItem("tireProduct");if(!1===m){var p;let t;const r=e.representedProduct;1===r.c_season?t="summer":2===r.c_season?t="winter":3===r.c_season&&(t="all seasons"),m={item_name:`${null==e?void 0:e.productName} - ${null==e?void 0:e.c_size}`,item_id:null==e?void 0:e.productId,price:null==e?void 0:e.price,originalPrice:null==e?void 0:e.c_originalPricebookPrice,item_brand:"sv-se"===_e.alias?"Dackia":"Driver",item_category:null==e?void 0:e.c_classificationCategory,item_category2:t,item_category3:null==e||null===(p=e.productName)||void 0===p?void 0:p.toLowerCase(),item_variant:null==e?void 0:e.c_size,tyre_width:`${null==e?void 0:e.c_width} / ${null==e?void 0:e.c_series}`,tyre_diameter:`R${null==e?void 0:e.c_rim}`,tyre_lsi_index:`${null==e?void 0:e.c_loadIn1}V`,tyre_ip_code:`${null==e?void 0:e.c_ipcode}`,quantity:null==e?void 0:e.quantity,index:0,item_list_id:"tyre_main",item_list_name:"Tyre Main"}}(0,J.r1)({countryCode:Ee,basket:t}),window.dataLayer.push({vehicle:void 0,tyre:void 0,dealer:void 0,customer:void 0,location:void 0,fitment:void 0,funnel:void 0}),window.dataLayer.push({ecommerce:null}),window.dataLayer.push(K(K({event:"remove_from_cart"},(0,J.Rp)()),{},{ecommerce:{value:e.price,currency:Ce.currency,items:["services"==e.c_classificationCategory?{item_name:e.productName,item_id:e.c_masterProductID,price:e.basePrice,quantity:e.quantity,item_category:e.c_category,item_category2:"service",item_variant:e.productId?e.productId:"",index:0,item_list_id:"book_new_tyre"===d||"booking_seasonal_change"===d&&"new_client"!==(null==u?void 0:u.type)?"service_tyre_related":"service_main",item_list_name:"book_new_tyre"===d||"booking_seasonal_change"===d&&"new_client"!==(null==u?void 0:u.type)?"Service Tyre Related":"Service Main",item_brand:"sv-se"===_e.alias?"Dackia":"Driver"}:(0,J.SV)(JSON.parse(m),e,{countryCode:Ee,basket:t??Ce})]},funnel:{type:c,checkout_type:l,booking_type:d,is_leasing:"true"===sessionStorage.getItem("Fleet"),source:sessionStorage.getItem("sourceHeader")||sessionStorage.getItem("sourceDealer")||sessionStorage.getItem("sourceProduct")||"general",component:sessionStorage.getItem("sourceComponent")||""},dealer:{name:o,type:n,sap_code:s},customer:u}))}),function(e){return t.apply(this,arguments)}),onError:e=>{yt()}}),"services"!==e.c_classificationCategory){let e=[Ne];e=[...new Set(e)].filter(e=>null!=e);for(const t of e){var r;const e=null==Ce||null===(r=Ce.productItems)||void 0===r?void 0:r.find(e=>e.c_masterProductID===t);e?(console.log(`Found product with ID: ${t}`),yield Ue.mutateAsync({parameters:{basketId:(null==Ce?void 0:Ce.basketId)??"",itemId:e.itemId}},{onSettled:()=>{rt(!1),Qe(void 0)},onSuccess:function(){var t=(0,o.A)(function*(t){Oe(t),yield Pe(),at({isClosable:!0,position:"top-right",duration:3e3,render:({onClose:t})=>i.createElement(D.A,{cartLabel:vt,productName:e.productName,onClose:t})})});return function(e){return t.apply(this,arguments)}}(),onError:e=>{yt()}})):console.log(`Product with ID: ${t} not found.`)}}});return function(t){return e.apply(this,arguments)}}();if(me)return i.createElement($,null);if(!me&&(null==Ce||null===(n=Ce.productItems)||void 0===n||!n.length)&&(null==Ce?void 0:Ce.c_storeId.length)<=2||void 0===Ce)return i.createElement(y.s,{w:"100%",minHeight:`calc(100dvh - ${T.FS}px)`,justifyContent:"center",alignItems:"center"},i.createElement(A.GEh,null));const wt=ye({id:"label_price_tbd",defaultMessage:[{type:0,value:"Price calculation in the branch"}]}),Et=("de-de"===we||"sv-se"===we&&(sessionStorage.getItem("originalStartDate")||sessionStorage.getItem("fastBookingStartDate")||"true"===sessionStorage.getItem("Fleet")))&&U&&"true"===sessionStorage.getItem("Fleet"),St={it:"carrello",fr:"panier",de:"einkaufswagen-show"};function kt(e,t){const r=(0,p.o)();return`${"sv-se"===we?r.startsWith("https://shopping-window-production.mobify-storefront.com")||r.startsWith("https://www.dackia.se")?"https://www.dackia.se":r.startsWith("https://shopping-window-staging-se.mobify-storefront.com")||r.startsWith("https://preprod-www.dackia.se")?"https://preprod-www.dackia.se":"https://uat-www.dackia.se":r.startsWith("https://driver-center-production.mobify-storefront.com")||r.startsWith("https://www.drivercenter.eu")?"https://www.drivercenter.eu":r.startsWith("https://driver-center-staging.mobify-storefront.com")||r.startsWith("https://preprod-www.drivercenter.eu")?"https://preprod-www.drivercenter.eu":"https://uat-www.drivercenter.eu"}/${t}-ch/${St[t]}`}"sv-se"===we?be.pathname:be.pathname.replace(`/${we}`,"");const xt=kt(0,"fr"),Ct=kt(0,"it"),Pt=kt(0,"de");return i.createElement(i.Fragment,null,i.createElement(u.Helmet,null,i.createElement("title",null,`${ye({id:"meta_title_cart",defaultMessage:[{type:0,value:"Cart"}]})}`),i.createElement("meta",{name:"description",content:ye({id:"meta_description_cart",defaultMessage:[{type:0,value:"Cart"}]})}),("it-ch"===we||"fr-ch"===we||"de-ch"===we)&&i.createElement("link",{rel:"alternate",hrefLang:"it-CH",href:Ct}),("it-ch"===we||"fr-ch"===we||"de-ch"===we)&&i.createElement("link",{rel:"alternate",hrefLang:"fr-CH",href:xt}),("it-ch"===we||"fr-ch"===we||"de-ch"===we)&&i.createElement("link",{rel:"alternate",hrefLang:"de-CH",href:Pt})),i.createElement(_.m,{pr:{md:"0"},overflow:"hidden"},tt&&i.createElement(A.aHM,{isInner:!1}
1),i.createElement(b.B,(0,a.A)({},ue.cartWrapper,{direction:{base:"column",lg:"row"},pt:{base:"0",lg:`${T.FS}px`},maxH:{base:"none",lg:"100dvh"}}),i.createElement(I.T,{sx:K({},ue.cartBody),direction:"column",alignItems:"flex-start"},i.createElement(A.Ktd,{title:i.createElement(l.A,{id:"title_cart",defaultMessage:[{type:0,value:"Summary of the articles selected"}]}),size:"title"},ye({id:"label_proceed_checkout_message",defaultMessage:[{type:0,value:"The cost of assembly and disassembly will be calculated according to the selected retailer"}]})),i.createElement(w.x,{w:"100%",templateColumns:{base:"1fr"}},(null==Ce?void 0:Ce.productItems)&&i.createElement(i.Fragment,null,i.createElement(A.qCN,{as:"h1",mt:{base:"6",md:"10"}},ye({defaultMessage:[{type:0,value:"Your cart"}],id:"label_price_inYourCart_v2"})),i.createElement(E.a,{mt:"5",w:"100%"},null==Ce||null===(O=Ce.productItems)||void 0===O?void 0:O.map((e,t)=>{var r,a,o,n,s,l,c,u;let m,p;e.priceAdjustments?(m=e.price,p=e.priceAfterItemDiscount):p=e.price;const g=null==fe?void 0:fe.find(t=>t.representedProduct.c_masterProductID===e.c_masterProductID),v=null!=fe&&!0!==(null==g?void 0:g.representedProduct.c_hidePrice)&&(!0===(null==se||null===(r=se.data)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.c_hidePrice)&&"services"===e.c_classificationCategory?!(null!=se&&null!==(o=se.data)&&void 0!==o&&null!==(n=o[0])&&void 0!==n&&n.c_hidePrice):!1===(null==se||null===(s=se.data)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.c_shoppingWindow)?null==se||null===(c=se.data)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.c_shoppingWindow:!(null!=e&&e.c_hidePrice));return i.createElement(i.Fragment,{key:t},i.createElement(y.s,{w:"100%",flexDir:"row",alignItems:"center",flexWrap:"wrap",gap:{base:4,lg:8}},"services"!==e.c_classificationCategory&&i.createElement(E.a,null,i.createElement(S._,{src:(0,d.sU)("static/img/global/tyre_placeholder.png"),alt:e.productName,width:"61px",height:"61px",mr:"3",borderRadius:"md"})),i.createElement(E.a,{flex:"1"},i.createElement(A.Ktd,{title:e.productName,size:"lead"},Et||!v?wt:"services"===e.c_classificationCategory?ye({id:"booking_summary_price_retailer",defaultMessage:[{type:0,value:"Price suggested by retailer"}]}):ye({id:"booking_summary_price_dackia",defaultMessage:[{type:0,value:"Price suggested by Dackia"}]}))),i.createElement(y.s,{width:"fit-content",w:{base:"100%",md:"auto"},ml:{base:"0",md:"auto"},alignItems:"center",justifyContent:{base:"space-between",md:"flex-end"},gap:{base:4,lg:8},order:{base:3,md:2}},"services"!==e.c_classificationCategory&&i.createElement(E.a,{w:{base:"auto",lg:"100px"},order:{base:2,md:1}},i.createElement(q.A,{variant:"caretDown",control:Fe,type:"select",required:!0,errors:ze,name:`quantityField-${t}`,isMultiSelect:!1,selectOptions:Ve,placeholder:ye({defaultMessage:[{type:0,value:"Qty"}],id:"label_quick_cart_quantity"}),handleChange:t=>{bt(e,t)}})),i.createElement(E.a,{order:{base:1,md:2},whiteSpace:"nowrap"},!Et&&v&&i.createElement(A.gmi,{locale:we,ismultiline:!1,align:"flex-start",variant:m?"discount":"standard",textStyle:"body",fontWeight:"700",strokedprice:m},p),(Et||!v)&&i.createElement(k.E,{fontWeight:"700"},wt))),i.createElement(x.$,{order:{base:2,md:3},onClick:()=>It(e),"aria-label":ye({id:"aria_remove_item_named",defaultMessage:[{type:0,value:"Remove "},{type:1,value:"productName"},{type:0,value:" from cart"}]},{productName:e.productName}),variant:"unstyled",p:"0",minW:"auto",height:"auto"},i.createElement(A.Rzg,{size:"9"}))),i.createElement(C.c,{mt:{base:4,lg:6}}))}))),("''"!==(null==Ce?void 0:Ce.c_storeId)||void 0===(null==Ce?void 0:Ce.c_storeId))&&i.createElement(i.Fragment,null,i.createElement(A.qCN,{mt:{base:"8",md:"10"}},ye({defaultMessage:[{type:0,value:"Your dealer"}],id:"booking_summary_dealer_header"})),i.createElement(y.s,{w:"100%",flexDir:"row",alignItems:"center",flexWrap:"wrap",mt:"4",gap:{base:4,lg:8}},i.createElement(E.a,{flex:"1"},i.createElement(A.Ktd,{title:null==se||null===(B=se.data)||void 0===B||null===(N=B[0])||void 0===N?void 0:N.name,size:"lead"},null==se||null===(W=se.data)||void 0===W||null===(V=W[0])||void 0===V?void 0:V.address1,", ",null==se||null===(Y=se.data)||void 0===Y||null===(G=Y[0])||void 0===G?void 0:G.postalCode," ",null==se||null===(X=se.data)||void 0===X||null===(Q=X[0])||void 0===Q?void 0:Q.city)),i.createElement(x.$,{onClick:ht,"aria-label":ye({id:"aria_delete_deale_from_cart",defaultMessage:[{type:0,value:"Delete dealer from cart"}]}),variant:"unstyled",p:"0",minW:"auto",height:"auto"},i.createElement(A.Rzg,{size:"9"})))),i.createElement(x.$,{variant:"secondary",display:{base:"none",lg:"block"},onClick:ft,mt:20},ye({defaultMessage:[{type:0,value:"Delete Basket"}],id:"button_delete_cart"})))),i.createElement(I.T,(0,a.A)({},ue.cartRecap,{direction:"column"}),i.createElement(w.x,{templateColumns:{base:"1fr"},gap:{base:10,xl:20},overflow:{base:"auto",md:"scroll"}},i.createElement(P.E,null,i.createElement(b.B,{spacing:4},i.createElement(A.Gpp,{styles:ke,basket:De,handleDeleteBasket:ft,setCurrentBasket:Oe,dealerCompatiblePromotions:null==se||null===(Z=se.data)||void 0===Z||null===(ee=Z[0])||void 0===ee?void 0:ee.c_promotions,dealerShoppingWindow:null==se||null===(te=se.data)||void 0===te||null===(re=te[0])||void 0===re?void 0:re.c_shoppingWindow,hidePriceStore:null==se||null===(ae=se.data)||void 0===ae||null===(oe=ae[0])||void 0===oe?void 0:oe.c_hidePrice,fleetFlag:Et,hideProductPrice:fe,externalCheckoutLink:null==se||null===(ne=se.data)||void 0===ne||null===(ie=ne[0])||void 0===ie?void 0:ie.c_externalCheckoutLink}))))))))}}}]);
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.