PageSourceSearch

https://shop.wbc-basel.ch/static/Cart-3fc75cab99672962dc32.js

js wbc-basel.ch collected 2026-10-07 15:43:27 UTC 86,292 bytes, 137 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5965],{51804:(e,t,s)=>{s.d(t,{A:()=>o,J:()=>n})
2s(39155),s(98456)
3var a=s(42295)
4function i(e){return e.absolute&&e.percent?`${e.absolute.formatted} + ${e.percent.formatted}`:e.absolute&&!e.percent?e.absolute.formatted:!e.absolute&&e.percent?e.percent.formatted:""}function n(e,t,s){const a=s?.find((e=>e.minimumAmount.amount>t))
5return a?{amount:a.minimumAmount.formatted,difference:new Intl.NumberFormat(e.replace("_","-"),{style:"currency",currency:a.minimumAmount.currency}).format(a.minimumAmount.amount-t),discount:i(a)}:null}function o({basketDiscountInfo:e,t}){return(0,a.jsx)("div",{className:"cart-info-message",children:t("views.storefrontView.basketPageSection.basketDiscountMessage",{amount:e.amount,difference:e.difference,discount:e.discount})})}},17984:(e,t,s)=>{s.d(t,{A:()=>u})
6var a=s(43343),i=s(61085),n=s(84507),o=s(48431),r=s(91121),c=s(12086),l=s(35856),d=s(557),m=s(42295)
7function u({children:e,className:t,productId:s,quantity:u=1,lineItemId:p,callAfterItemAddedToWishlist:h=a.A,title:x,customizedText:b=null,isCustomizableProduct:g=!1}){const[j,v]=(0,o.useState)(!1),w=(0,n.d4)((e=>e.getIn(["shop","locale"]))),f=(0,n.wA)(),N=(0,d.WD)("shop"),I=g&&!b;(0,o.useEffect)((()=>{const e=e=>{const t={id:(0,i.A)(`${s}-success-`),message:(0,m.jsxs)("span",{children:[N("notifications.productAddedToWishlist")," ",(0,m.jsx)("a",{className:"add-to-cart-notice-message-link",href:e.detail.wishlist,children:N("views.storefrontView.goToWishlistLink.label")},s)]}),type:"success"}
8h(),f((0,c.$_s)({...t,message:""})),setTimeout((()=>{f((0,c.$_s)(t)),v(!1)}),100)},t=e=>{window.addEventListener("pagehide",(()=>v(!1))),window.location.assign(e.detail.redirect)}
9return window.eComEventTarget.addEventListener(`wishlist:success-${p??s}`,e),window.eComEventTarget.addEventListener(`wishlist:nouser-${p??s}`,t),()=>{window.eComEventTarget.removeEventListener(`wishlist:success-${p??s}`,e),window.eComEventTarget.removeEventListener(`wishlist:nouser-${p??s}`,t)}}),[f,s,p,N,h])
10return(0,m.jsx)("button",{className:(0,r.A)([t,{pending:j}]),disabled:j||I,onClick:()=>{v(!0),(0,l.u4)("wishlist:add",{locale:w,product:{productId:s,quantity:u,customizedText:g?b:null},lineItemId:p})},type:"button",title:x,"aria-label":x,children:e})}},87268:(e,t,s)=>{s.d(t,{A:()=>b})
11s(55959),s(49905),s(20476),s(47537),s(6010),s(64657),s(67437)
12var a=s(48431),i=s(14953),n=s(84507),o=s(18725),r=s(37507),c=s(25312),l=s(23779),d=s(12086),m=s(94777),u=s(35856),p=s(27106),h=s(42295)
13class x extends a.Component{shouldComponentUpdate(e){return!e.isCartBusy}getQuantity=e=>this.props.quantities[e.lineItemId]?this.props.quantities[e.lineItemId]:e.quantity
14setQuantity=(e,t,s)=>this.getQuantity(e)===t&&t>0||this.props.isCartBusy?Promise.resolve():(this.props.setQuantities({...this.props.quantities,[e.lineItemId]:t}),this.props.updateLineItemQuantity(e.lineItemId,e.productId,t,s,e.customizedText).then((()=>(0,m.JB)(e,s))).then((()=>(0,u.u4)("cart:setQuantity",{lineItem:e,quantity:t,quantityDelta:s}))))
15removeLineItem=e=>this.props.isCartBusy?Promise.resolve():(this.props.setQuantities((0,o.A)(this.props.quantities,e.lineItemId)),this.props.removeLineItem(e.lineItemId).then((()=>(0,m.JB)(e,0))).then((()=>(0,u.u4)("cart:setQuantity",{lineItem:e,quantity:0,quantityDelta:e.quantity}))))
16redeemCoupon(e){return this.props.clearCouponError(),this.props.redeemCoupon(e)}removeCoupon(){return this.props.removeCoupon()}hasInvalidCoupon(){const{cart:e}=this.props
17return!!e.coupon&&e.coupon.validationErrors.length>0}render(){return(0,h.jsx)(l.MI.Provider,{value:this,children:this.props.children})}}const b=(0,n.Ng)((e=>({cart:e.get("cart").toJS(),isCartBusy:e.getIn(["view","cart","isBusy"]),quantities:e.getIn(["view","cart","quantities"],new i.Map).toJS()})),(function(){return e=>{const t=new Set,s=(0,p.A)((s=>{"end"===s&&0===t.size&&e((0,d.dkC)(!1))})),a=(0,r.A)(((a,i,n)=>(0,c.A)(((o,r)=>(t.delete(a),s((()=>e((0,d.oFj)(a,i,o,r,n)))))),1e3,{leading:!0,trailing:!0})))
18return{setQuantities:t=>e((0,d.cRZ)(t)),removeLineItem:t=>e((0,d.MtN)(t)),updateLineItemQuantity:(s,i,n,o,r)=>(t.add(s),e((0,d.dkC)(!0)),a(s,i,r)(n,o)),redeemCoupon:t=>s((()=>e((0,d.xND)(t)))),clearCouponError:()=>e((0,d.Sqy)()),removeCoupon:()=>s((()=>
18e((0,d.TYF)())))}}}))(x)},23779:(e,t,s)=>{s.d(t,{$s:()=>n,MI:()=>o,Xm:()=>i})
19var a=s(48431)
20const i=(0,a.createContext)(),n=(0,a.createContext)(),o=(0,a.createContext)()},16991:(e,t,s)=>{s.d(t,{nn:()=>y,LZ:()=>I,F:()=>P,Oh:()=>k})
21s(39155),s(98456),s(28383)
22var a=s(48431),i=s(84507),n=s(95110),o=s(91121),r=s(23779),c=s(64948),l=s(94777),d=s(12086),m=s(35856),u=s(557),p=s(57381)
23var h,x,b,g,j,v,w,f,N=s(42295)
24function I(e){const{className:t,...s}=e,l=(0,i.d4)((e=>e.get("cart").toJS())),[h,x]=(0,a.useState)(!1),b=(0,i.d4)((e=>e.getIn(["view","cart","isBusy"],!1))),g=(0,i.d4)((e=>e.getIn(["view","isThemePreview"]))),j=(0,a.useContext)(r.MI),v=(0,i.d4)((e=>Boolean(e.getIn(["shop","beyond"])))),w=(0,i.d4)((e=>Boolean(e.getIn(["shop","isClosed"])))),f=l.productLineItems.some((e=>null===e.productId)),I=!!l.coupon&&l.coupon.validationErrors.length>0,k=!l.checkoutState||!1!==l.checkoutState.priceValidToOrder,y=(0,n.zy)(),P=(0,i.wA)(),S=(0,u.WD)("shop")
25const C=function(e,t,s){const a="views.storefrontView.basketPageSection.checkoutLinkButton.disabledState.explanations."
26if(e||t)return s(e?`${a}themePreview`:`${a}couponConditionsNotMet`)}(g,I,S),A=(0,N.jsx)("button",{...s,className:(0,o.A)([t,{pending:b||h}]),type:"button",disabled:g||b||h||I||!k||f,onClick:async()=>{x(!0),"-"===l.coupon?.lineItemPrice?.formatted&&j.removeCoupon()
27const e=await P((0,d.Bbc)())
28if(0!==e.productLineItems?.length&&!e.productLineItems?.some((e=>null===e.productId)))if(v)if((0,m.u4)("cart:checkout",{cart:e}),window.parent!==window&&w)if(confirm(S("views.storefrontView.basketPageSection.checkoutLinkButton.exitingIframe"))){const e=new URLSearchParams(y.search)
29e.set("preview","1"),window.parent.location.assign((0,p.GE)(l.checkoutUrl,{...y,search:e.toString()}))}else x(!1)
30else window.location.assign((0,p.GE)(l.checkoutUrl,y))
31else window.location.assign(l.checkoutUrl)}})
32return C?(0,N.jsx)(c.m,{trigger:A,content:C,side:"top",hideIcon:!0,sideOffset:-30}):A}function k(e){const{shape:t="pill",color:s="blue",size:n="26",className:r}=e,c=(0,i.d4)((e=>e.get("cart").toJS())),d=(0,i.d4)((e=>e.getIn(["view","cart","isBusy"],!1))),m=(0,i.d4)((e=>e.hasIn(["view","themePreview","theme"]))),u=`https://www.paypalobjects.com/webstatic/en_US/i/btn/png/${s}-${t}-paypalcheckout-${n}px.png`,p=(0,a.useRef)(null),g=!!c.coupon&&c.coupon.validationErrors.length>0,j=c.checkoutButtons.find((e=>"paypalexpress"===e.name))
33if(!j||0===c.grandTotal.amount)return null
34const v=(0,o.A)([r,{"checkout-pending":d,"is-hidden":m||g}])
35return(0,N.jsxs)("form",{method:"post",action:c.checkoutUrl,className:v,ref:p,onSubmit:e=>{e.preventDefault();(0,l.oD)(c.productLineItems),(0,l.eh)("PayPal Express",(()=>p.current?.submit()))},children:[(0,N.jsx)("input",{type:"hidden",name:"PaymentMethodID",value:j.paymentMethodId}),h||(h=(0,N.jsx)("input",{type:"hidden",name:"ChangeAction",value:"PickupBasket"})),(0,N.jsx)("input",{type:"hidden",name:"PickupToken",value:c.pickupToken||void 0}),x||(x=(0,N.jsx)("input",{type:"hidden",name:"ChangeAction",value:"BlockMonitor"})),b||(b=(0,N.jsx)("input",{type:"hidden",name:"ChangeAction",value:"PayPalExpress"})),(0,N.jsx)("button",{type:"submit",style:{background:"transparent",border:"none",cursor:"pointer"},onClick:()=>(0,l.rB)("payment","PayPal Express"),children:(0,N.jsx)("img",{src:u,alt:"PayPal Checkout"})})]})}function y({className:e}){const t=(0,i.d4)((e=>e.get("cart").toJS())),s=(0,i.d4)((e=>e.getIn(["view","cart","isBusy"],!1))),n=(0,i.d4)((e=>e.hasIn(["view","themePreview","theme"]))),r=(0,a.useRef)(null),c=!!t.coupon&&t.coupon.validationErrors.length>0,d=t.checkoutButtons.find((e=>"amazonpayments"===e.name))
36if((0,a.useEffect)((()=>{const e=t.checkoutButtons.find((e=>"amazonpayments"===e.name))
37e&&(window.OffAmazonPayments?m(e):(window.onAmazonPaymentsReady=()=>m(e),function(e,t=!0,s){const a="script",i=document.createElement(a),n=document.getElementsByTagName(a)[0]
38i.onload=()=>{i.parentNode?.removeChild(i),s?.()},i.async=t,i.src=e,n.parentNode.insertBefore(i,null)}(e.widgetUrl)))}),[]),!d)return null
39const m=e=>new window.OffAmazonPayments.Widgets.Button({sellerId:e.dataMerchantId,onSignIn:e=>(e=>{r.current&&(r.current.AmazonRefId.value=e.getAmazonOrderReferenceId(),r.current.submit())})(e)}).bind("PayWithAmazon"),u=(0,o.A)([e,{"checkout-pending":s,"is-hidden":n||c}])
40return(0,N.jsxs)("div",{className:u,children:[(0,N.jsx)("div",{id:"PayWithAmazon",onClick:()=>(0,l.rB)("payment","Amazon Pay"),children:(0,N.jsx)("img",{src:d.image,alt:"Amazon Pay Checkout",style:{cursor:"pointer"}})}),(0,N.jsxs)("form",{method:"post",action:t.checkoutUrl,ref:r,children:[g||(g=(0,N.jsx)("input",{type:"hidden",name:"AmazonRefId",value:""})),j||(j=(0,N.jsx)("input",{type:"hidden",name:"ViewAction",value:"ViewMultiCheckoutAmazonAddress"})),v||(v=(0,N.jsx)("input",{type:"hidden",name:"UpdateViewAction",value:"ViewMultiCheckoutAmazonAddress"})),w||(w=(0,N.jsx)("input",{type:"hidden",name:"ChangeAction",value:"PayWithAmazonPayments"}))]})]})}function P(){const e=(0,i.d4)((e=>e.get("cart").toJS()))
41return e.checkoutButtons.find((e=>"ppcppayment"===e.name))&&0!==e.grandTotal.amount?f||(f=(0,N.jsx)("div",{id:"paypal-button-container"})):null}},26789:(e,t,s)=>{s.d(t,{Ay:()=>g})
42var a=s(48431),i=s(84507),n=s(18725),o=s(97465),r=s.n(o),c=s(91121),l=s(23779),d=s(12086),m=s(557),u=s(42295)
43const p=(0,a.createContext)(),h={cart:r().object.isRequired,dispatch:r().func.isRequired,showCouponError:r().func.isRequired,hideCouponError:r().func.isRequired,isCartBusy:r().bool,couponCode:r().str
43ing,hasCartCouponError:r().bool}
44class x extends a.Component{static defaultProps={isCartBusy:!1}
45static contextType=l.MI
46errorNoticeAlreadyDisplayed=!1
47couponFieldErrorClass=!1
48componentDidUpdate(e){const{cart:t,couponCode:s}=this.props
49if(s!==e.couponCode)return this.couponFieldErrorClass=!1,this.hideErrorNotification()
50!t.couponError||e.hasCartCouponError||this.errorNoticeAlreadyDisplayed||(this.props.showCouponError(),this.errorNoticeAlreadyDisplayed=!0,this.couponFieldErrorClass=!0)}componentWillUnmount(){this.props.dispatch((0,d.gGv)(""))}hideErrorNotification=()=>{this.props.hasCartCouponError&&this.props.hideCouponError()}
51onSubmit=e=>{e.preventDefault(),e.stopPropagation()
52const t=e.target.elements.couponCode.value.trim()
53if(0===t.length)return this.props.dispatch({type:d.t0Z,errorMessage:"/coupon failed Reason: CouponIsEmpty"}),!1
54const s=document.activeElement!==document.body||document.activeElement!==document.documentElement
55document.activeElement&&s&&document.activeElement.blur(),this.context.redeemCoupon(t).catch((()=>{this.errorNoticeAlreadyDisplayed=!1}))}
56render(){if(!this.props.cart.canHaveCoupon)return null
57const e=(0,n.A)(this.props,Object.keys(h))
58return(0,u.jsx)(p.Provider,{value:this,children:(0,u.jsx)("form",{...e,method:"post",onSubmit:this.onSubmit})})}}const b=(0,i.Ng)((e=>({cart:e.get("cart").toJS(),couponCode:e.getIn(["view","cart","couponCode"]),hasCartCouponError:e.getIn(["view","cart","hasCouponError"]),isCartBusy:e.getIn(["view","cart","isBusy"])})),(e=>({dispatch:e,showCouponError:()=>e((0,d.fET)(!0)),hideCouponError:()=>e((0,d.fET)(!1))})))(x),g={RedemptionForm:Object.assign(b,{CouponField:function({className:e,errorClass:t,...s}){const n=(0,i.wA)(),o=(0,i.d4)((e=>e.getIn(["view","cart","couponCode"],""))),r=(0,i.d4)((e=>e.getIn(["view","cart","hasCouponError"]))),l=(0,a.useContext)(p),m=r||l.couponFieldErrorClass
59return(0,u.jsx)("input",{type:"text",...s,name:"couponCode",value:o,onChange:e=>n((0,d.gGv)(e.target.value)),"aria-invalid":m,"aria-errormessage":"coupon-error",className:(0,c.A)([e,{[t]:m}])})},RedeemButton:function(e){const t=(0,i.d4)((e=>e.getIn(["view","cart","couponCode"]))),s=(0,i.d4)((e=>e.getIn(["view","cart","isBusy"],!1)))
60return(0,u.jsx)("button",{...e,type:"submit",disabled:!t||s})}}),ValidationInfo:function({errorClass:e,warningClass:t,className:s,...n}){const o=(0,a.useContext)(l.MI),r=(0,i.d4)((e=>e.hasIn(["cart","coupon","validationErrors"])?e.getIn(["cart","coupon","validationErrors"]).toJS():[])),d=(0,i.d4)((e=>e.getIn(["cart","couponCampaign","minimumOrderValue","formatted"]))),p=(0,a.useRef)(r),h=(0,m.WD)("shop")
61if((0,a.useEffect)((()=>{r.length>0&&(p.current.length!==r.length||p.current[0]!==r[0])&&(p.current=r,window.scrollTo(0,0))})),0===r.length)return null
62const x=o.hasInvalidCoupon(),b=r[0],g=(0,c.A)([s,{[e]:x,[t]:!x}])
63return"LineItemsSubTotalTooSmall"===b?(0,u.jsx)("div",{...n,className:g,children:(0,u.jsx)("span",{children:h("views.storefrontView.basketPageSection.couponInputField.validationMessages.LineItemsSubTotalTooSmall",{value:d})})}):(0,u.jsx)("div",{...n,className:g,children:(0,u.jsx)("span",{children:h(`views.storefrontView.basketPageSection.couponInputField.validationMessages.${b}`)})})},CouponError:function({className:e,hiddenClass:t,...s}){const{couponError:a}=(0,i.d4)((e=>e.get("cart").toJS())),o=(0,i.d4)((e=>e.getIn(["view","cart","hasCouponError"]))),r=(0,m.WD)("shop"),l=a?r(`views.storefrontView.basketPageSection.couponInputField.validationMessages.${a.id}`,{...a.params}):"",d=o&&l,p=(0,n.A)(s,["tReady","i18n"])
64return(0,u.jsx)("div",{role:"alert",id:"coupon-error",children:(0,u.jsx)("div",{...p,className:(0,c.A)([e,{[t]:!d}]),children:l})})},RemoveCouponButton:function(e){const t=(0,i.d4)((e=>e.get("cart").toJS())),s=(0,i.d4)((e=>e.getIn(["view","cart","isBusy"],!1))),n=(0,a.useContext)(l.MI)
65return t.coupon?(0,u.jsx)("button",{...e,type:"button",disabled:s,onClick:()=>n.removeCoupon()}):null}}},30442:(e,t,s)=>{s.d(t,{A:()=>x})
66var a=s(48431),i=s(25312),n=s(84507),o=s(23779),r=s(17984),c=(s(76881),s(18725)),l=s(68814),d=s(557),m=s(42295)
67function u({errors:e,orderUnitInfo:{orderUnitShort:t,minOrder:s,intervalOrder:a},t:i}){const o=(0,n.d4)((e=>e.getIn(["shop","locale"]))),r=a.toString().split(".")[1]?.length??0,c=new Intl.NumberFormat(o.replace("_","-"),{minimumFractionDigits:r}),l=[...Array(3).keys()].map((e=>`${c.format(e*a+s)} ${t}`)).join(", ")
68return e.includes("minimumQuantityNotReached")?(0,m.jsx)("span",{className:"product-order-unit-quantity-field-errors",children:(0,m.jsx)("p",{children:i("productOrderUnitQuantity.errors.minimumQuantityNotReached",{minimum:c.format(s),unit:t})})}):e.includes("invalidQuantityIncrement")?(0,m.jsx)("span",{className:"product-order-unit-quantity-field-errors",children:(0,m.jsx)("p",{children:i("productOrderUnitQuantity.errors.invalidQuantityIncrement",{step:c.format(a),unit:t,examples:l})})}):null}function p(e){const{className:t="",min:s=1,lineItem:i,quantity:r=1,invalidProduct:p=!1}=e,h=(0,a.useContext)(o.$s),x=(0,d.WD)("shop","components.productC
68omponent"),b=(0,n.d4)((e=>e.getIn(["view","cart","isBusy"],!1))),g=(0,c.A)(e,["className","lineItem","min","quantity","invalidProduct","t"]),j=i.orderUnitInfo.minOrder??s,v=i.orderUnitInfo.intervalOrder??1,w=(0,a.useRef)(null),[f,N]=(0,a.useState)(r);(0,a.useEffect)((()=>{N(r)}),[r])
69const I=(0,l.s)(Number(f),i.orderUnitInfo.minOrder,i.orderUnitInfo.intervalOrder),k=e=>{const t=h.getQuantity(),s=Math.max(e,j)
70t!==s&&0===I.length&&h.setQuantity(s,s-t).catch((()=>{}))},y=e=>{if(0===e.target.value.length&&N(j),!b){const t=parseFloat(e.target.value)
71k(t)}},P=e=>{const t=(1e3*h.getQuantity()+1e3*e)/1e3
72k(t),setTimeout((()=>w.current?.blur()))}
73return(0,m.jsxs)("div",{className:t,children:[(0,m.jsx)("button",{onClick:()=>P(-v),disabled:b||p,"aria-label":1!==i.orderUnitInfo.intervalOrder?x("productOrderUnitQuantity.decreaseButton.accessibilityLabel",{value:i.orderUnitInfo.intervalOrder,unit:i.orderUnitInfo.orderUnitShort}):x("productQuantity.decreaseButton.accessibilityLabel")}),(0,m.jsxs)("div",{children:[(0,m.jsx)("input",{ref:w,id:"quantity",inputMode:"numeric",pattern:"[0-9]*",min:j,value:f.toString(),onKeyDown:e=>{"Enter"===e.key&&y(e)},onFocus:e=>{e.target.setSelectionRange(0,e.target.value.length)},onBlur:y,onChange:e=>{const t=e.target.value.replace(",",".");(""===t||/^(\d+)(\.\d{0,10})?$/.test(t))&&N(t)},autoComplete:"off",disabled:b||p,"data-testid":"quantityInputField",...g}),(0,m.jsx)(u,{orderUnitInfo:i.orderUnitInfo,t:x,errors:I})]}),(0,m.jsx)("button",{onClick:()=>P(v),disabled:b||p,"aria-label":1!==i.orderUnitInfo.intervalOrder?x("productOrderUnitQuantity.increaseButton.accessibilityLabel",{value:i.orderUnitInfo.intervalOrder,unit:i.orderUnitInfo.orderUnitShort}):x("productQuantity.increaseButton.accessibilityLabel")}),!(0,l.F)(i.orderUnitInfo.orderUnitShort)&&(0,m.jsx)("span",{className:"product-quantity-field-order-unit",children:i.orderUnitInfo.orderUnitShort})]})}class h extends a.Component{static contextType=o.MI
74getQuantity=()=>{const e=this.context,{lineItem:t}=this.props
75return e.getQuantity(t)}
76setQuantity=(e,t)=>{const s=this.context,{lineItem:a}=this.props
77return s.setQuantity(a,e,t)}
78render(){return(0,m.jsx)(o.Xm.Provider,{value:this.props.lineItem,children:(0,m.jsx)(o.$s.Provider,{value:this,children:this.props.renderItem(this.props.lineItem,this.props.lineItemIndex)})})}}const x=Object.assign(h,{RemoveLineItemButton:function(e){const t=(0,a.useContext)(o.Xm),s=(0,a.useContext)(o.MI)
79return(0,m.jsx)("button",{...e,type:"button",onClick:()=>{s.removeLineItem(t),window.scrollTo({top:0,behavior:"smooth"})}})},QuantityField:function({...e}){const t=(0,a.useContext)(o.Xm),s=(0,n.d4)((e=>e.getIn(["view","cart","quantities",t.lineItemId],t.quantity)))
80return(0,m.jsx)(p,{...e,quantity:s,lineItem:t})},AddToWishlistLinkInCart:function({...e}){const t=(0,a.useContext)(o.Xm),s=(0,a.useContext)(o.MI),n={...e,callAfterItemAddedToWishlist:(0,i.A)((()=>s.setQuantity(t,0))),productId:t.productId,quantity:t.quantity,lineItemId:t.lineItemId,customizedText:t.customizedText,isCustomizableProduct:Boolean(t.customizedHeadlineText&&t.customizedText),isInWishlist:t.isInWishlist}
81return(0,m.jsx)(r.A,{...n})}})},61254:(e,t,s)=>{s.d(t,{A:()=>c})
82s(76881)
83var a=s(48431),i=s(84507),n=s(30442),o=s(42295)
84class r extends a.Component{render(){const e=this.props.tagName
85return(0,o.jsx)(e,{children:this.props.cart.productLineItems.map(((e,t)=>(0,o.jsx)(n.A,{lineItem:e,lineItemIndex:t,renderItem:this.props.renderItem},e.lineItemId)))})}}const c=(0,i.Ng)((e=>({cart:e.get("cart").toJS()})))(r)},34854:(e,t,s)=>{s.d(t,{A:()=>o})
86var a=s(48431),i=s(89213),n=s(42295)
87function o({t:e,shopHref:t}){return(0,a.useEffect)((()=>{window.scrollTo(0,0)}),[]),(0,n.jsx)("div",{className:"cart",children:(0,n.jsx)("section",{className:"section",children:(0,n.jsx)("div",{className:"wrapper",children:(0,n.jsxs)("div",{className:"content",children:[(0,n.jsx)("h1",{className:"cart-headline",children:e("views.storefrontView.basketPageSection.emptyState.title")}),(0,n.jsxs)("div",{className:"cart-empty-note",children:[(0,n.jsx)("h3",{children:e("views.storefrontView.basketPageSection.emptyState.explanation")}),(0,n.jsx)("p",{children:(0,n.jsx)(i.A,{to:t,children:e("views.storefrontView.basketPageSection.emptyState.continueShoppingLink")})})]})]})})})})}},1416:(e,t,s)=>{s.r(t),s.d(t,{default:()=>B})
88s(39155),s(76881),s(28383)
89var a,i,n,o,r,c,l,d,m,u,p,h,x,b=s(91121),g=s(51804),j=s(16991),v=s(61487),w=s(557),f=s(34854),N=s(87268),I=s(26789),k=s(17245),y=s(33094),P=s(35021),S=s(30442),C=s(61254),A=s(89213),V=s(44260),L=s(42295)
90function B({cart:e,displayWishlistError:t,trackProductClick:s,shop:B,t:F,invalidProducts:q,shopHasPickupAndShipping:T,cartHasS
90hippingCosts:D}){var E,R
91const U=(0,g.J)(B.locale,e.subAmountValue,e.potentialBasketDiscounts),W=(e.productLineItems||[]).some((e=>!!e.lineItemCouponDiscount||!!e.additionalInformation?.bulkPriceInfo&&e.additionalInformation?.bulkPriceInfo.some((e=>!!e.priceSavings)))),M=e.productLineItems.some((e=>e.lineItemCouponDiscount)),O=(e,t)=>(0,v.UK)(e,t.additionalInformation?.bulkPriceInfo,t.quantity,t.lineItemCouponDiscount),z=e.productLineItems.some((e=>Boolean(e.discount))),H=z||e.productLineItems.some((e=>Boolean(O(B.locale,e)))),Q=e=>z?e.discount?e.discount.discountRate:null:O(B.locale,e),$=H?F(z?"views.storefrontView.basketPageSection.discountColumnLabel.customerGroupDiscount":"views.storefrontView.basketPageSection.discountColumnLabel.couponDiscount"):"",_=F("views.storefrontView.basketPageSection.removeLineItemCouponButton.label")
92return(0,L.jsx)(N.A,{children:(0,L.jsxs)("div",{children:[!e.totalNumberOfItems&&(0,L.jsx)("div",{className:"cart-empty",children:(0,L.jsx)(f.A,{shopHref:B.href,t:F})}),e.totalNumberOfItems>0&&(0,L.jsx)("div",{className:"cart",children:(0,L.jsx)("section",{className:"section",children:(0,L.jsx)("div",{className:"wrapper",children:(0,L.jsxs)("div",{className:"content",children:[(0,L.jsx)("h1",{className:"cart-headline",children:F("views.storefrontView.basketPageSection.title")}),(0,L.jsxs)("div",{"aria-live":"assertive",role:"status",children:[U&&(0,L.jsx)(g.A,{basketDiscountInfo:U,t:F}),e.quantityMismatch&&(0,L.jsx)("div",{className:"cart-warning-message",children:F("views.storefrontView.basketPageSection.productQuantityTooHighExplanation")}),e.couponSuccess&&!e.coupon?.hasValidationErrors&&(0,L.jsx)("div",{className:"cart-success-message",children:F("views.storefrontView.basketPageSection.couponInputField.successMessage")}),e.checkoutState&&!e.checkoutState.priceValidToOrder&&e.minimumOrderValue&&(0,L.jsx)("div",{className:"cart-warning-message",children:F("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumAmountNotReached",{amount:e.minimumOrderValue.formatted})}),"-"===e.coupon?.lineItemPrice?.formatted&&e.couponCampaign?.minimumOrderValue&&(0,L.jsxs)("div",{className:"cart-warning-message",children:[F("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumCouponAmountNotReached",{amount:e.couponCampaign.minimumOrderValue.formatted}),(0,L.jsx)(I.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-coupon",children:F("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumDiscountRemoveCoupon")})]}),t&&(0,L.jsx)("div",{className:"cart-warning-message",children:F("views.storefrontView.basketPageSection.wishlistItemsNotAddedCompletely")}),q.length>0&&(0,L.jsx)("div",{className:"cart-warning-message",children:(0,L.jsxs)("span",{children:[F("views.storefrontView.basketPageSection.invalidProducts"),(0,L.jsx)("ul",{children:q.map((e=>(0,L.jsx)("li",{children:e.name},`ip-${e.name}`)))})]})}),a||(a=(0,L.jsx)(I.Ay.ValidationInfo,{errorClass:"cart-error-message",warningClass:"cart-warning-message"})),e.couponAutomaticallyRemoved&&(0,L.jsx)("div",{className:"cart-warning-message",children:F("views.storefrontView.basketPageSection.couponAutomaticallyRemoved")})]}),(0,L.jsxs)("table",{className:"cart-table",children:[(0,L.jsx)("thead",{className:"cart-table-head",children:(0,L.jsxs)("tr",{className:(0,b.A)({"cart-table-item-has-discount-column":H}),children:[(0,L.jsx)("th",{className:"cart-table-head-product",children:F("components.productC
92omponent.product")}),(0,L.jsx)("th",{className:"cart-table-head-description visually-hidden",children:F("views.storefrontView.basketPageSection.descriptionColumn.accessibilityLabel")}),(0,L.jsx)("th",{className:"cart-table-head-price",children:F("views.storefrontView.basketPageSection.singlePrice")}),(0,L.jsx)("th",{className:"cart-table-head-quantity",id:"cart-quantity-heading",children:F("views.storefrontView.basketPageSection.quantity")}),H&&(0,L.jsx)("th",{className:"cart-table-head-discount",children:$}),(0,L.jsx)("th",{className:"cart-table-head-total",children:F("views.storefrontView.basketPageSection.totalPrice")}),(0,L.jsx)("th",{className:"cart-table-head-actions visually-hidden",children:F("views.storefrontView.basketPageSection.actionsColumn.accessibilityLabel")})]})}),(0,L.jsx)(C.A,{tagName:"tbody",renderItem:(t,a)=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("tr",{className:(0,b.A)({"cart-table-item-has-discount":W,"cart-table-item-has-discount-column":H,"cart-table-item-has-deposit":t.depositInfo}),children:[(0,L.jsx)("td",{className:"cart-table-item-product",children:(0,L.jsx)(A.A,{to:t.productUrl,onClick:()=>s(t,a),"aria-hidden":"true",tabIndex:-1,children:t.imageUrl?(0,L.jsx)(P.A,{src:t.imageUrl,className:"cart-table-item-product-image"}):i||(i=(0,L.jsx)(V.A,{className:"cart-table-item-product-image"}))})}),(0,L.jsxs)("td",{className:"cart-table-item-description",children:[(0,L.jsx)("h2",{className:"cart-table-item-description-headline",id:`${a}-product-name`,children:(0,L.jsx)(A.A,{to:t.productUrl,onClick:()=>s(t,a),children:t.name})}),t.variationString&&(0,L.jsx)("p",{className:"cart-table-item-description-variation-values",children:t.variationString}),t.customizedHeadlineText&&t.customizedText&&(0,L.jsxs)("p",{className:"cart-table-item-description-customized-text",children:[(0,L.jsxs)("span",{children:[t.customizedHeadlineText,": "]}),t.customizedText]}),t.essentialFeatures.length>0&&(0,L.jsx)("p",{className:"cart-table-item-description-text",children:t.essentialFeatures.map((e=>(0,L.jsxs)("span",{children:[e,n||(n=(0,L.jsx)("br",{}))]},e)))}),t.energyLabel&&(0,L.jsx)(k.A,{t:F,energyLabel:t.energyLabel,energyLabelSourceFile:t.energyLabelSourceFile}),t.productDataSheet&&(0,L.jsx)("div",{className:"cart-table-item-description-product-data-sheet",children:(0,L.jsx)("a",{href:t.productDataSheet.dataUri,target:"_blank",rel:"noreferrer",className:"cart-table-item-description-product-data-sheet-link",children:t.productDataSheet.label})}),B.isInEU&&t.garanLabel&&(0,L.jsx)(y.A,{garanLabel:t.garanLabel}),!B.beyond&&t.productId&&(0,L.jsx)(S.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,L.jsx)("span",{className:"add-wishlist-text",children:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),M&&t.lineItemCouponDiscount&&e.couponCampaign&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("p",{className:"cart-table-item-description-coupon",children:[(0,L.jsxs)("span",{children:[F("views.storefrontView.basketPageSection.coupon"),": ",e.couponCampaign.name]})," ",(0,L.jsxs)("span",{children:["(",e.couponCampaign.type.formatted,")"]})]}),E||(E=(0,L.jsx)("p",{className:"cart-table-item-description-coupon-remove-button",children:(0,L.jsx)(I.Ay.RemoveCouponButton,{className:"remove-link remove-icon",title:_,children:(0,L.jsx)("span",{className:"remove-text",children:_})})}))]})]}),(0,L.jsxs)("td",{className:"cart-table-item-price",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.singlePrice")}),(0,L.jsx)("span",{className:"price-value",children:(0,v.h)(t.additionalInformation?.bulkPriceInfo,t.quantity,t.orderUnitInfo,B.locale)??t.quantityPrice?.formatted??t.listPrice?.formatted??t.singleItemPrice?.formatted})]}),(0,L.jsxs)("td",{className:"cart-table-item-quantity",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.quantity")}),(0,L.jsx)(S.A.QuantityField,{min:0,invalidProduct:null===t.productId,className:"quantity-field","aria-labelledby":`${a}-product-name cart-quantity-heading`})]}),H&&(0,L.jsxs)("td",{className:"cart-table-item-discount",children:[R||(
92R=(0,L.jsx)("span",{className:"show-subhead",children:$})),(0,L.jsx)("span",{className:"price-value",children:Q(t)})]}),(0,L.jsxs)("td",{className:"cart-table-item-total",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.totalPrice")}),(0,L.jsx)("span",{className:(0,b.A)(["price-value",{"coupon-indicator":t.lineItemCouponDiscount}]),children:t.lineItemPrice.formatted})]}),(0,L.jsxs)("td",{className:"cart-table-item-actions",children:[!B.beyond&&t.productId&&(0,L.jsx)(S.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,L.jsx)("span",{className:"add-wishlist-text",children:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,L.jsx)(S.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:F("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,L.jsx)("span",{className:"remove-text",children:F("views.storefrontView.basketPageSection.removeProductButton.label")})})]})]}),t.depositInfo&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("tr",{className:(0,b.A)({"cart-table-item-deposit":!0,"cart-table-item-has-discount-column":H}),children:[o||(o=(0,L.jsx)("td",{className:"cart-table-item-deposit-product"})),(0,L.jsx)("td",{className:"cart-table-item-deposit-label",children:F("views.storefrontView.basketPageSection.deposit.label")}),(0,L.jsxs)("td",{className:"cart-table-item-deposit-single-amount",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.deposit.single")}),(0,L.jsx)("span",{className:"price-value",children:t.depositInfo.single.formatted})]}),(0,L.jsxs)("td",{className:"cart-table-item-deposit-quantity cart-table-item-quantity",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.deposit.quantity")}),(0,L.jsx)("div",{className:"quantity-field",children:t.quantity})]}),H&&(r||(r=(0,L.jsx)("td",{className:"cart-table-item-deposit-discount"}))),(0,L.jsxs)("td",{className:"cart-table-item-deposit-total-amount",children:[(0,L.jsx)("span",{className:"show-subhead",children:F("views.storefrontView.basketPageSection.deposit.total")}),(0,L.jsx)("span",{children:t.depositInfo.total.formatted})]})]}),(0,L.jsx)("tr",{className:"cart-table-item-actions-row",children:(0,L.jsxs)("td",{className:"cart-table-item-actions",children:[!B.beyond&&t.productId&&(0,L.jsx)(S.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,L.jsx)("span",{className:"add-wishlist-text",children:F("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,L.jsx)(S.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:F("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,L.jsx)("span",{className:"remove-text",children:F("views.storefrontView.basketPageSection.removeProductButton.label")})})]})})]})]})})]}),e.canHaveCoupon&&(0,L.jsxs)(I.Ay.RedemptionForm,{className:"coupon-redemption-form",children:[(0,L.jsx)("label",{htmlFor:"coupon-form-field",className:"coupon-redemption-form-label",children:F("views.storefrontView.basketPageSection.couponInputField.label")}),(0,L.jsxs)("div",{children:[c||(c=(0,L.jsx)(I.Ay.RedemptionForm.CouponField,{id:"coupon-form-field",className:"coupon-redemption-form-field",errorClass:"invalid"})),(0,L.jsx)(I.Ay.RedemptionForm.RedeemButton,{className:"coupon-redemption-form-button",children:(0,L.jsx)("span",{children:F("views.storefrontView.basketPageSection.couponInputField.redeemButton.label")})})]}),l||(l=(0,L.jsx)(I.Ay.CouponError,{className:"invalid-error-message",hiddenClass:"invalid-error-message-hidden"}))]}),(0,L.jsxs)("div",{className:"cart-totals",children:[(0,L.jsxs)("table",{className:"cart-totals-table",children:[(0,L.jsxs)("tbody",{children:[(0,L.jsxs)("tr",{children:[(0,L.jsx)("td",{className:"sub-total-title",children:F("views.storefrontView.basketPageSection.subtotal")}),(0,L.jsx)("td",{className:"sub-total",children:e.subAmount})]}),e.coupon&&e.couponCampaign&&!M&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("tr",{className:"cart-coupon",children:[(0,L.jsx)("td",{className:"coupon-title",children:(0,L.jsxs)("div",{className:"cart-coupon-campaign",children:[(0,L.jsx)("div",{className:"cart-coupon-campaign-label",children:F("views.storefrontView.basketPageSection.coupon")}),(0,L.jsxs)("span",{className:"cart-coupon-campaign-name",children:[e.couponCampaign.name," ",(0,L.jsxs)("span",{className:"type",children:["(",e.couponCampaign.type.formatted,")"]})]})]})}),(0,L.jsxs)("td",{className:"coupon-price",children:["number"==typeof e.coupon.lineItemPrice.amount&&(0,L.jsx)("span",{className:"cart-coupon-campaign-price",children:e.coupon.lineItemPrice.formatted}),d||(d=(0,L.jsx)(I.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-icon"}))]})]}),(0,L.jsxs)("tr",{className:"cart-coupon-campaign-remove-link",children:[(0,L.jsx)("td",{children:(0,L.jsx)(I.Ay.RemoveCouponButton,{className:"remove-link remove-icon",children:(0,L.jsx)("span",{className:"remove-text",children:F("views.storefrontView.basketPageSection.couponInputField.removeButton.label")})})}),m||(m=(0,L.jsx)("td",{}))]})]}),e.shippingLineItem&&(0,L.jsxs)("tr",{children:[(0,L.jsx)("td",{className:"shipping-price-title",children:e.shippingLineItem.shippingMethod.name}),(0,L.jsx)("td",{className:"shipping-price",children:e.shippingLineItem.lineItemPrice.formatted})]}),e.totalBasketDiscount&&(0,L.jsxs)("tr",{children:[(0,L.jsx)("td",{children:F("views.storefrontView.basketPageSection.discount")}
92),(0,L.jsx)("td",{children:e.totalBasketDiscount})]}),e.paymentLineItem&&0!==e.paymentLineItem.lineItemPrice.amount&&(0,L.jsxs)("tr",{children:[(0,L.jsx)("td",{children:e.paymentLineItem.lineItemPrice.amount<0?F("views.storefrontView.basketPageSection.paymentDiscount",{paymentMethodName:e.paymentLineItem.paymentMethod.name}):F("views.storefrontView.basketPageSection.paymentSurcharge",{paymentMethodName:e.paymentLineItem.paymentMethod.name})}),(0,L.jsx)("td",{children:e.paymentLineItem.lineItemPrice.formatted})]})]}),(0,L.jsxs)("tfoot",{children:[(0,L.jsxs)("tr",{children:[(0,L.jsx)("td",{className:"grand-amount-title",children:F("views.storefrontView.basketPageSection.total")}),(0,L.jsx)("td",{className:"grand-amount",children:e.grandAmount})]}),(0,L.jsx)("tr",{children:(0,L.jsxs)("td",{colSpan:2,className:"grand-amount-note",children:[e.grandAmountNote&&(0,L.jsx)("span",{children:F(e.grandAmountNote,{nsSeparator:"__"})}),T&&!D&&(0,L.jsxs)("span",{children:[", ",(0,w.fN)(F)("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.infoTextWithLink",{link:(0,L.jsx)(A.A,{className:"grand-amount-note-shipping-cost-link",to:B.legalPageUrls.shipping,children:F("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.linkText")})})]})]})})]})]}),u||(u=(0,L.jsx)("div",{id:"ep-app-area-cart-view-cart-totals"})),(0,L.jsxs)(j.LZ,{className:"cart-totals-button-checkout",children:[p||(p=(0,L.jsx)("span",{className:"checkout-button-icon"})),F("views.storefrontView.basketPageSection.checkoutLinkButton.label")]}),h||(h=(0,L.jsx)(j.F,{})),x||(x=(0,L.jsxs)("div",{className:"checkout-buttons column",children:[(0,L.jsx)(j.Oh,{className:"paypal-button",shape:"rect",color:"gold"}),(0,L.jsx)(j.nn,{className:"amazon-button"})]}))]})]})})})})]})})}},93794:(e,t,s)=>{s.r(t),s.d(t,{default:()=>F})
93s(39155),s(76881),s(28383)
94var a,i,n,o,r,c,l,d,m,u,p,h,x,b=s(91121),g=s(51804),j=s(16991),v=s(68814),w=s(61487),f=s(557),N=s(34854),I=s(87268),k=s(26789),y=s(17245),P=s(33094),S=s(35021),C=s(30442),A=s(61254),V=s(89213),L=s(44260),B=s(42295)
95function F({cart:e,displayWishlistError:t,trackProductClick:s,shop:F,t:q,invalidProducts:T,shopHasPickupAndShipping:D,cartHasShippingCosts:E}){var R,U
96const W=(0,g.J)(F.locale,e.subAmountValue,e.potentialBasketDiscounts),M=(e.productLineItems||[]).some((e=>!!e.lineItemCouponDiscount||!!e.additionalInformation?.bulkPriceInfo&&e.additionalInformation?.bulkPriceInfo.some((e=>!!e.priceSavings)))),O=e.productLineItems.some((e=>e.lineItemCouponDiscount)),z=(e,t)=>(0,w.UK)(e,t.additionalInformation?.bulkPriceInfo,t.quantity,t.lineItemCouponDiscount),H=e.productLineItems.some((e=>Boolean(e.discount))),Q=H||e.productLineItems.some((e=>Boolean(z(F.locale,e)))),$=e=>H?e.discount?e.discount.discountRate:null:z(F.locale,e),_=Q?q(H?"views.storefrontView.basketPageSection.discountColumnLabel.customerGroupDiscount":"views.storefrontView.basketPageSection.discountColumnLabel.couponDiscount"):"",J=q("views.storefrontView.basketPageSection.removeLineItemCouponButton.label")
97return(0,B.jsx)(I.A,{children:(0,B.jsxs)("div",{children:[!e.totalNumberOfItems&&(0,B.jsx)(N.A,{shopHref:F.href,t:q}),e.totalNumberOfItems>0&&(0,B.jsx)("div",{className:"cart",children:(0,B.jsx)("section",{className:"section",children:(0,B.jsx)("div",{className:"wrapper",children:(0,B.jsxs)("div",{className:"content",children:[(0,B.jsx)("h1",{children:q("views.storefrontView.basketPageSection.title")}),(0,B.jsxs)("div",{"aria-live":"assertive",role:"status",children:[W&&(0,B.jsx)(g.A,{basketDiscountInfo:W,t:q}),e.quantityMismatch&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.productQuantityTooHighExplanation")}),e.couponSuccess&&!e.coupon?.hasValidationErrors&&(0,B.jsx)("div",{className:"cart-success-message",children:q("views.storefrontView.basketPageSection.couponInputField.successMessage")}),e.checkoutState&&!e.checkoutState.priceValidToOrder&&e.minimumOrderValue&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumAmountNotReached",{amount:e.minimumOrderValue.formatted})}),"-"===e.coupon?.lineItemPrice?.formatted&&e.couponCampaign?.minimumOrderValue&&(0,B.jsxs)("div",{className:"cart-warning-message",children:[q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumCouponAmountNotReached",{amount:e.couponCampaign.minimumOrderValue.formatted}),(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-coupon",children:q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumDiscountRemoveCoupon")})]}),t&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.wishlistItemsNotAddedCompletely")}),T.length>0&&(0,B.jsx)("div",{className:"cart-warning-message",children:(0,B.jsxs)("span",{children:[q("views.storefrontView.basketPageSection.invalidProducts"),(0,B.jsx)("ul",{children:T.map((e=>(0,B.jsx)("li",{children:e.name},`ip-${e.name}`)))})]})}),a||(a=(0,B.jsx)(k.Ay.ValidationInfo,{errorClass:"cart-error-message",warningClass:"cart-warning-message"})),e.couponAutomaticallyRemoved&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.couponAutomaticallyRemoved")})]}),(0,B.jsxs)("table",{className:(0,b.A)(["cart-table",{"cart-table-has-order-unit":e.productLineItems.some((e=>!(0,v.F)(e.orderUnitInfo.orderUnitShort)))}]),children:[(0,B.jsx)("thead",{className:"cart-table-head",children:(0,B.jsxs)("tr",{className:(0,b.A)({"cart
97-table-item-has-discount-column":Q}),children:[(0,B.jsx)("th",{className:"cart-table-head-product",children:q("components.productComponent.product")}),(0,B.jsx)("th",{className:"cart-table-head-description visually-hidden",children:q("views.storefrontView.basketPageSection.descriptionColumn.accessibilityLabel")}),(0,B.jsx)("th",{className:"cart-table-head-price",children:q("views.storefrontView.basketPageSection.singlePrice")}),(0,B.jsx)("th",{className:"cart-table-head-quantity",id:"cart-quantity-heading",children:q("views.storefrontView.basketPageSection.quantity")}),Q&&(0,B.jsx)("th",{className:"cart-table-head-discount",children:_}),(0,B.jsx)("th",{className:"cart-table-head-total",children:q("views.storefrontView.basketPageSection.totalPrice")}),(0,B.jsx)("th",{className:"cart-table-head-actions visually-hidden",children:q("views.storefrontView.basketPageSection.actionsColumn.accessibilityLabel")})]})}),(0,B.jsx)(A.A,{tagName:"tbody",renderItem:(t,a)=>(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:(0,b.A)({"cart-table-item-has-discount":M,"cart-table-item-has-discount-column":Q,"cart-table-item-has-deposit":t.depositInfo}),children:[(0,B.jsx)("td",{className:"cart-table-item-product",children:(0,B.jsx)(V.A,{to:t.productUrl,onClick:()=>s(t,a),"aria-hidden":"true",tabIndex:-1,children:t.imageUrl?(0,B.jsx)(S.A,{src:t.imageUrl,className:"cart-table-item-product-image"}):i||(i=(0,B.jsx)(L.A,{className:"cart-table-item-product-image"}))})}),(0,B.jsxs)("td",{className:"cart-table-item-description",children:[(0,B.jsx)("h2",{className:"cart-table-item-description-headline",id:`${a}-product-name`,children:(0,B.jsx)(V.A,{to:t.productUrl,onClick:()=>s(t,a),children:t.name})}),t.variationString&&(0,B.jsx)("p",{className:"cart-table-item-description-variation-values",children:t.variationString}),t.customizedHeadlineText&&t.customizedText&&(0,B.jsxs)("p",{className:"cart-table-item-description-customized-text",children:[(0,B.jsxs)("span",{children:[t.customizedHeadlineText,": "]}),t.customizedText]}),t.essentialFeatures.length>0&&(0,B.jsx)("p",{className:"cart-table-item-description-text",children:t.essentialFeatures.map((e=>(0,B.jsxs)("span",{children:[e,n||(n=(0,B.jsx)("br",{}))]},e)))}),t.energyLabel&&(0,B.jsx)(y.A,{t:q,energyLabel:t.energyLabel,energyLabelSourceFile:t.energyLabelSourceFile}),t.productDataSheet&&(0,B.jsx)("div",{className:"cart-table-item-description-product-data-sheet",children:(0,B.jsx)("a",{href:t.productDataSheet.dataUri,target:"_blank",rel:"noreferrer",className:"cart-table-item-description-product-data-sheet-link",children:t.productDataSheet.label})}),F.isInEU&&t.garanLabel&&(0,B.jsx)(P.A,{garanLabel:t.garanLabel}),!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),O&&t.lineItemCouponDiscount&&e.couponCampaign&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("p",{className:"cart-table-item-product-description-coupon",children:[(0,B.jsxs)("span",{children:[q("views.storefrontView.basketPageSection.coupon"),": ",e.couponCampaign.name]})," ",(0,B.jsxs)("span",{children:["(",e.couponCampaign.type.formatted,")"]})]}),R||(R=(0,B.jsx)("p",{className:"cart-table-item-product-description-coupon-remove-button",children:(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"remove-link remove-icon",title:J,children:(0,B.jsx)("span",{className:"cart-coupon-campaign-remove-label",children:J})})}))]})]}),(0,B.jsxs)("td",{className:"cart-table-item-price",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.singlePrice")}),(0,B.jsx)("span",{className:"price-value",children:(0,w.h)(t.additionalInformation?.bulkPriceInfo,t.quantity,t.orderUnitInfo,F.locale)??t.quantityPrice?.formatted??t.listPrice?.formatted??t.singleItemPrice?.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-quantity",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.quantity")}),(0,B.jsx)(C.A.QuantityField,{min:0,invalidProduct:null===t.productId,className:"quantity-field","aria-labelledby":`${a}-product-name cart-quantity-heading`})]}),Q&&(0,B.jsxs)("td",{className:"cart-table-item-discount",children:[U||(U=(0,B.jsx)("span",{className:"show-subhead",children:_})),(0,B.jsx)("span",{className:"price-value",children:$(t)})]}),(0,B.jsxs)("td",{className:"cart-table-item-total",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.totalPrice")}),(0,B.jsx)("span",{className:(0,b.A)(["price-value",{"cart-coupon-discount-indicator":t.lineItemCouponDiscount}]),children:t.lineItemPrice.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-actions",children:[!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,B.jsx)(C.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:q("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,B.jsx)("span",{className:"remove-text",children:q("views.storefrontView.basketPageSection.removeProductButton.label")})})]})]}),t.depositInfo&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:(0,b.A)({"cart
97-table-item-deposit":!0,"cart-table-item-has-discount-column":Q}),children:[o||(o=(0,B.jsx)("td",{className:"cart-table-item-deposit-product"})),(0,B.jsx)("td",{className:"cart-table-item-deposit-label",children:q("views.storefrontView.basketPageSection.deposit.label")}),(0,B.jsxs)("td",{className:"cart-table-item-deposit-single-amount",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.single")}),(0,B.jsx)("span",{className:"price-value",children:t.depositInfo.single.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-deposit-quantity cart-table-item-quantity",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.quantity")}),(0,B.jsx)("div",{className:"quantity-field",children:t.quantity})]}),Q&&(r||(r=(0,B.jsx)("td",{className:"cart-table-item-deposit-discount"}))),(0,B.jsxs)("td",{className:"cart-table-item-deposit-total-amount",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.total")}),(0,B.jsx)("span",{children:t.depositInfo.total.formatted})]})]}),(0,B.jsx)("tr",{className:"cart-table-item-actions-row",children:(0,B.jsxs)("td",{className:"cart-table-item-actions",children:[!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,B.jsx)(C.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:q("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,B.jsx)("span",{className:"remove-text",children:q("views.storefrontView.basketPageSection.removeProductButton.label")})})]})})]})]})})]}),e.canHaveCoupon&&(0,B.jsxs)(k.Ay.RedemptionForm,{className:"coupon-redemption-form",children:[(0,B.jsx)("label",{htmlFor:"coupon-form-field",className:"coupon-redemption-form-label",children:q("views.storefrontView.basketPageSection.couponInputField.label")}),(0,B.jsxs)("div",{children:[c||(c=(0,B.jsx)(k.Ay.RedemptionForm.CouponField,{id:"coupon-form-field",className:"coupon-redemption-form-field",errorClass:"invalid"})),(0,B.jsx)(k.Ay.RedemptionForm.RedeemButton,{className:"coupon-redemption-form-button",children:(0,B.jsx)("span",{children:q("views.storefrontView.basketPageSection.couponInputField.redeemButton.label")})})]}),l||(l=(0,B.jsx)(k.Ay.CouponError,{className:"invalid-error-message",hiddenClass:"invalid-error-message-hidden"}))]}),(0,B.jsxs)("div",{className:"cart-totals",children:[(0,B.jsxs)("table",{className:"cart-totals-table",children:[(0,B.jsxs)("tbody",{children:[(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"sub-total-title",children:q("views.storefrontView.basketPageSection.subtotal")}),(0,B.jsx)("td",{className:"sub-total",children:e.subAmount})]}),e.coupon&&e.couponCampaign&&!O&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:"cart-coupon",children:[(0,B.jsx)("td",{className:"coupon-title",children:(0,B.jsxs)("div",{className:"cart-coupon-campaign",children:[(0,B.jsx)("div",{className:"cart-coupon-campaign-label",children:q("views.storefrontView.basketPageSection.coupon")}),(0,B.jsxs)("span",{className:"cart-coupon-campaign-name",children:[e.couponCampaign.name," ",(0,B.jsxs)("span",{className:"type",children:["(",e.couponCampaign.type.formatted,")"]})]})]})}),(0,B.jsxs)("td",{className:"coupon-price",children:["number"==typeof e.coupon.lineItemPrice.amount&&(0,B.jsx)("span",{className:"cart-coupon-campaign-price",children:e.coupon.lineItemPrice.formatted}),d||(d=(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-icon"}))]})]}),(0,B.jsxs)("tr",{className:"cart-coupon-campaign-remove-link",children:[(0,B.jsx)("td",{children:(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"remove-link remove-icon",children:(0,B.jsx)("span",{className:"cart-coupon-campaign-remove-label",children:q("views.storefrontView.basketPageSection.couponInputField.removeButton.label")})})}),m||(m=(0,B.jsx)("td",{}))]})]}),e.shippingLineItem&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"shipping-price-title",children:e.shippingLineItem.shippingMethod.name}),(0,B.jsx)("td",{className:"shipping-price",children:e.shippingLineItem.lineItemPrice.formatted})]}),e.totalBasketDiscount&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:q("views.storefrontView.basketPageSection.discount")}
97),(0,B.jsx)("td",{children:e.totalBasketDiscount})]}),e.paymentLineItem&&0!==e.paymentLineItem.lineItemPrice.amount&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:e.paymentLineItem.lineItemPrice.amount<0?q("views.storefrontView.basketPageSection.paymentDiscount",{paymentMethodName:e.paymentLineItem.paymentMethod.name}):q("views.storefrontView.basketPageSection.paymentSurcharge",{paymentMethodName:e.paymentLineItem.paymentMethod.name})}),(0,B.jsx)("td",{children:e.paymentLineItem.lineItemPrice.formatted})]})]}),(0,B.jsxs)("tfoot",{children:[(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"grand-amount-title",children:q("views.storefrontView.basketPageSection.total")}),(0,B.jsx)("td",{className:"grand-amount",children:e.grandAmount})]}),(0,B.jsx)("tr",{children:(0,B.jsxs)("td",{colSpan:2,className:"grand-amount-note",children:[e.grandAmountNote&&(0,B.jsx)("span",{children:q(e.grandAmountNote,{nsSeparator:"__"})}),D&&!E&&(0,B.jsxs)("span",{children:[", ",(0,f.fN)(q)("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.infoTextWithLink",{link:(0,B.jsx)(V.A,{className:"grand-amount-note-shipping-cost-link",to:F.legalPageUrls.shipping,children:q("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.linkText")})})]})]})})]})]}),u||(u=(0,B.jsx)("div",{id:"ep-app-area-cart-view-cart-totals"})),(0,B.jsxs)(j.LZ,{className:"cart-totals-button-checkout",children:[p||(p=(0,B.jsx)("span",{className:"checkout-button-icon"})),q("views.storefrontView.basketPageSection.checkoutLinkButton.label")]}),h||(h=(0,B.jsx)(j.F,{})),x||(x=(0,B.jsxs)("div",{className:"checkout-buttons column",children:[(0,B.jsx)(j.Oh,{className:"paypal-button",shape:"rect",color:"gold"}),(0,B.jsx)(j.nn,{className:"amazon-button"})]}))]})]})})})})]})})}},69759:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i})
98var a=s(42295)
99function i(){return(0,a.jsx)("div",{children:{}.someProperty.throw})}},39303:(e,t,s)=>{s.r(t),s.d(t,{default:()=>F})
100s(39155),s(76881),s(28383)
101var a,i,n,o,r,c,l,d,m,u,p,h,x,b=s(91121),g=s(51804),j=s(16991),v=s(68814),w=s(61487),f=s(557),N=s(34854),I=s(87268),k=s(26789),y=s(17245),P=s(33094),S=s(35021),C=s(30442),A=s(61254),V=s(89213),L=s(44260),B=s(42295)
102function F({cart:e,displayWishlistError:t,trackProductClick:s,shop:F,t:q,invalidProducts:T,shopHasPickupAndShipping:D,cartHasShippingCosts:E}){var R,U
103const W=(0,g.J)(F.locale,e.subAmountValue,e.potentialBasketDiscounts),M=(e.productLineItems||[]).some((e=>!!e.lineItemCouponDiscount||!!e.additionalInformation?.bulkPriceInfo&&e.additionalInformation?.bulkPriceInfo.some((e=>!!e.priceSavings)))),O=e.productLineItems.some((e=>e.lineItemCouponDiscount)),z=(e,t)=>(0,w.UK)(e,t.additionalInformation?.bulkPriceInfo,t.quantity,t.lineItemCouponDiscount),H=e.productLineItems.some((e=>Boolean(e.discount))),Q=H||e.productLineItems.some((e=>Boolean(z(F.locale,e)))),$=e=>H?e.discount?e.discount.discountRate:null:z(F.locale,e),_=Q?q(H?"views.storefrontView.basketPageSection.discountColumnLabel.customerGroupDiscount":"views.storefrontView.basketPageSection.discountColumnLabel.couponDiscount"):"",J=q("views.storefrontView.basketPageSection.removeLineItemCouponButton.label")
104return(0,B.jsx)(I.A,{children:(0,B.jsxs)("div",{children:[!e.totalNumberOfItems&&(0,B.jsx)(N.A,{shopHref:F.href,t:q}),e.totalNumberOfItems>0&&(0,B.jsx)("div",{className:"cart",children:(0,B.jsx)("section",{className:"section",children:(0,B.jsx)("div",{className:"wrapper",children:(0,B.jsxs)("div",{className:"content",children:[(0,B.jsx)("h1",{className:"cart-headline",children:q("views.storefrontView.basketPageSection.title")}),(0,B.jsxs)("div",{"aria-live":"assertive",role:"status",children:[W&&(0,B.jsx)(g.A,{basketDiscountInfo:W,t:q}),e.quantityMismatch&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.productQuantityTooHighExplanation")}),e.couponSuccess&&!e.coupon?.hasValidationErrors&&(0,B.jsx)("div",{className:"cart-success-message",children:q("views.storefrontView.basketPageSection.couponInputField.successMessage")}),e.checkoutState&&!e.checkoutState.priceValidToOrder&&e.minimumOrderValue&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumAmountNotReached",{amount:e.minimumOrderValue.formatted})}),"-"===e.coupon?.lineItemPrice?.formatted&&e.couponCampaign?.minimumOrderValue&&(0,B.jsxs)("div",{className:"cart-warning-message",children:[q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumCouponAmountNotReached",{amount:e.couponCampaign.minimumOrderValue.formatted}),(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-coupon",children:q("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumDiscountRemoveCoupon")})]}),t&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.wishlistItemsNotAddedCompletely")}),T.length>0&&(0,B.jsx)("div",{className:"cart-warning-message",children:(0,B.jsxs)("span",{children:[q("views.storefrontView.basketPageSection.invalidProducts"),(0,B.jsx)("ul",{children:T.map((e=>(0,B.jsx)("li",{children:e.name},`ip-${e.name}`)))})]})}),a||(a=(0,B.jsx)(k.Ay.ValidationInfo,{errorClass:"cart-error-message",warningClass:"cart-warning-message"})),e.couponAutomaticallyRemoved&&(0,B.jsx)("div",{className:"cart-warning-message",children:q("views.storefrontView.basketPageSection.couponAutomaticallyRemoved")})]}),(0,B.jsxs)("table",{className:(0,b.A)(["cart-table",{"cart-table-has-order-unit":e.productLineItems.some((e=>!(0,v.F)(e.orderUnitInfo.orderUnitShort)))}]),children:[(0,B.jsx)("thead",{className:"cart-table-head",children:(0,B.jsxs)("tr",{className:(0,b.A)({"cart
104-table-item-has-discount-column":Q}),children:[(0,B.jsx)("th",{className:"cart-table-head-product",children:q("components.productComponent.product")}),(0,B.jsx)("th",{className:"cart-table-head-description visually-hidden",children:q("views.storefrontView.basketPageSection.descriptionColumn.accessibilityLabel")}),(0,B.jsx)("th",{className:"cart-table-head-price",children:q("views.storefrontView.basketPageSection.singlePrice")}),(0,B.jsx)("th",{className:"cart-table-head-quantity",id:"cart-quantity-heading",children:q("views.storefrontView.basketPageSection.quantity")}),Q&&(0,B.jsx)("th",{className:"cart-table-head-discount",children:_}),(0,B.jsx)("th",{className:"cart-table-head-total",children:q("views.storefrontView.basketPageSection.totalPrice")}),(0,B.jsx)("th",{className:"cart-table-head-actions visually-hidden",children:q("views.storefrontView.basketPageSection.actionsColumn.accessibilityLabel")})]})}),(0,B.jsx)(A.A,{tagName:"tbody",renderItem:(t,a)=>(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:(0,b.A)({"cart-table-item-has-discount":M,"cart-table-item-has-discount-column":Q,"cart-table-item-has-deposit":t.depositInfo}),children:[(0,B.jsx)("td",{className:"cart-table-item-product",children:(0,B.jsx)(V.A,{to:t.productUrl,onClick:()=>s(t,a),"aria-hidden":"true",tabIndex:-1,children:t.imageUrl?(0,B.jsx)(S.A,{src:t.imageUrl,className:"cart-table-item-product-image"}):i||(i=(0,B.jsx)(L.A,{className:"cart-table-item-product-image"}))})}),(0,B.jsxs)("td",{className:"cart-table-item-description",children:[(0,B.jsx)("h2",{className:"cart-table-item-description-headline",id:`${a}-product-name`,children:(0,B.jsx)(V.A,{to:t.productUrl,onClick:()=>s(t,a),children:t.name})}),t.variationString&&(0,B.jsx)("p",{className:"cart-table-item-description-variation-values",children:t.variationString}),t.customizedHeadlineText&&t.customizedText&&(0,B.jsxs)("p",{className:"cart-table-item-description-customized-text",children:[(0,B.jsxs)("span",{children:[t.customizedHeadlineText,": "]}),t.customizedText]}),t.essentialFeatures.length>0&&(0,B.jsx)("p",{className:"cart-table-item-description-text",children:t.essentialFeatures.map((e=>(0,B.jsxs)("span",{children:[e,n||(n=(0,B.jsx)("br",{}))]},e)))}),t.energyLabel&&(0,B.jsx)(y.A,{t:q,energyLabel:t.energyLabel,energyLabelSourceFile:t.energyLabelSourceFile}),t.productDataSheet&&(0,B.jsx)("div",{className:"cart-table-item-description-product-data-sheet",children:(0,B.jsx)("a",{href:t.productDataSheet.dataUri,target:"_blank",rel:"noreferrer",className:"cart-table-item-description-product-data-sheet-link",children:t.productDataSheet.label})}),F.isInEU&&t.garanLabel&&(0,B.jsx)(P.A,{garanLabel:t.garanLabel}),!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),O&&t.lineItemCouponDiscount&&e.couponCampaign&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("p",{className:"cart-table-item-product-description-coupon",children:[(0,B.jsxs)("span",{children:[q("views.storefrontView.basketPageSection.coupon"),": ",e.couponCampaign.name]})," ",(0,B.jsxs)("span",{children:["(",e.couponCampaign.type.formatted,")"]})]}),R||(R=(0,B.jsx)("p",{className:"cart-table-item-product-description-coupon-remove-button",children:(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"remove-link remove-icon",title:J,children:(0,B.jsx)("span",{className:"cart-coupon-campaign-remove-label",children:J})})}))]})]}),(0,B.jsxs)("td",{className:"cart-table-item-price",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.singlePrice")}),(0,B.jsx)("span",{className:"price-value",children:(0,w.h)(t.additionalInformation?.bulkPriceInfo,t.quantity,t.orderUnitInfo,F.locale)??t.quantityPrice?.formatted??t.listPrice?.formatted??t.singleItemPrice?.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-quantity",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.quantity")}),(0,B.jsx)(C.A.QuantityField,{min:0,invalidProduct:null===t.productId,className:"quantity-field","aria-labelledby":`${a}-product-name cart-quantity-heading`})]}),Q&&(0,B.jsxs)("td",{className:"cart-table-item-discount",children:[U||(U=(0,B.jsx)("span",{className:"show-subhead",children:_})),(0,B.jsx)("span",{className:"price-value",children:$(t)})]}),(0,B.jsxs)("td",{className:"cart-table-item-total",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.totalPrice")}),(0,B.jsx)("span",{className:(0,b.A)(["price-value",{"coupon-indicator":t.lineItemCouponDiscount}]),children:t.lineItemPrice.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-actions",children:[!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,B.jsx)(C.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:q("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,B.jsx)("span",{className:"remove-text",children:q("views.storefrontView.basketPageSection.removeProductButton.label")})})]})]}),t.depositInfo&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:(0,b.A)({"cart
104-table-item-deposit":!0,"cart-table-item-has-discount-column":Q}),children:[o||(o=(0,B.jsx)("td",{className:"cart-table-item-deposit-product"})),(0,B.jsx)("td",{className:"cart-table-item-deposit-label",children:q("views.storefrontView.basketPageSection.deposit.label")}),(0,B.jsxs)("td",{className:"cart-table-item-deposit-single-amount",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.single")}),(0,B.jsx)("span",{className:"price-value",children:t.depositInfo.single.formatted})]}),(0,B.jsxs)("td",{className:"cart-table-item-deposit-quantity cart-table-item-quantity",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.quantity")}),(0,B.jsx)("div",{className:"quantity-field",children:t.quantity})]}),Q&&(r||(r=(0,B.jsx)("td",{className:"cart-table-item-deposit-discount"}))),(0,B.jsxs)("td",{className:"cart-table-item-deposit-total-amount",children:[(0,B.jsx)("span",{className:"show-subhead",children:q("views.storefrontView.basketPageSection.deposit.total")}),(0,B.jsx)("span",{children:t.depositInfo.total.formatted})]})]}),(0,B.jsx)("tr",{className:"cart-table-item-actions-row",children:(0,B.jsxs)("td",{className:"cart-table-item-actions",children:[!F.beyond&&t.productId&&(0,B.jsx)(C.A.AddToWishlistLinkInCart,{className:(0,b.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":t.isInWishlist}]),title:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label"),children:(0,B.jsx)("span",{className:"add-wishlist-text",children:q("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),(0,B.jsx)(C.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:q("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,B.jsx)("span",{className:"remove-text",children:q("views.storefrontView.basketPageSection.removeProductButton.label")})})]})})]})]})})]}),e.canHaveCoupon&&(0,B.jsxs)(k.Ay.RedemptionForm,{className:"coupon-redemption-form",children:[(0,B.jsx)("label",{htmlFor:"coupon-form-field",className:"coupon-redemption-form-label",children:q("views.storefrontView.basketPageSection.couponInputField.label")}),(0,B.jsxs)("div",{children:[c||(c=(0,B.jsx)(k.Ay.RedemptionForm.CouponField,{id:"coupon-form-field",className:"coupon-redemption-form-field",errorClass:"invalid"})),(0,B.jsx)(k.Ay.RedemptionForm.RedeemButton,{className:"coupon-redemption-form-button",children:(0,B.jsx)("span",{children:q("views.storefrontView.basketPageSection.couponInputField.redeemButton.label")})})]}),l||(l=(0,B.jsx)(k.Ay.CouponError,{className:"invalid-error-message",hiddenClass:"invalid-error-message-hidden"}))]}),(0,B.jsxs)("div",{className:"cart-totals",children:[(0,B.jsxs)("table",{className:"cart-totals-table",children:[(0,B.jsxs)("tbody",{children:[(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"sub-total-title",children:q("views.storefrontView.basketPageSection.subtotal")}),(0,B.jsx)("td",{className:"sub-total",children:e.subAmount})]}),e.coupon&&e.couponCampaign&&!O&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("tr",{className:"cart-coupon",children:[(0,B.jsx)("td",{className:"coupon-title",children:(0,B.jsxs)("div",{className:"cart-coupon-campaign",children:[(0,B.jsx)("div",{className:"cart-coupon-campaign-label",children:q("views.storefrontView.basketPageSection.coupon")}),(0,B.jsxs)("span",{className:"cart-coupon-campaign-name",children:[e.couponCampaign.name," ",(0,B.jsxs)("span",{className:"type",children:["(",e.couponCampaign.type.formatted,")"]})]})]})}),(0,B.jsxs)("td",{className:"coupon-price",children:["number"==typeof e.coupon.lineItemPrice.amount&&(0,B.jsx)("span",{className:"cart-coupon-campaign-price",children:e.coupon.lineItemPrice.formatted}),d||(d=(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-icon"}))]})]}),(0,B.jsxs)("tr",{className:"cart-coupon-campaign-remove-link",children:[(0,B.jsx)("td",{children:(0,B.jsx)(k.Ay.RemoveCouponButton,{className:"remove-link remove-icon",children:(0,B.jsx)("span",{className:"cart-coupon-campaign-remove-label",children:q("views.storefrontView.basketPageSection.couponInputField.removeButton.label")})})}),m||(m=(0,B.jsx)("td",{}))]})]}),e.shippingLineItem&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"shipping-price-title",children:e.shippingLineItem.shippingMethod.name}),(0,B.jsx)("td",{className:"shipping-price",children:e.shippingLineItem.lineItemPrice.formatted})]}),e.totalBasketDiscount&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:q("views.storefrontView.basketPageSection.discount")}
104),(0,B.jsx)("td",{children:e.totalBasketDiscount})]}),e.paymentLineItem&&0!==e.paymentLineItem.lineItemPrice.amount&&(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:e.paymentLineItem.lineItemPrice.amount<0?q("views.storefrontView.basketPageSection.paymentDiscount",{paymentMethodName:e.paymentLineItem.paymentMethod.name}):q("views.storefrontView.basketPageSection.paymentSurcharge",{paymentMethodName:e.paymentLineItem.paymentMethod.name})}),(0,B.jsx)("td",{children:e.paymentLineItem.lineItemPrice.formatted})]})]}),(0,B.jsxs)("tfoot",{children:[(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{className:"grand-amount-title",children:q("views.storefrontView.basketPageSection.total")}),(0,B.jsx)("td",{className:"grand-amount",children:e.grandAmount})]}),(0,B.jsx)("tr",{children:(0,B.jsxs)("td",{colSpan:2,className:"grand-amount-note",children:[e.grandAmountNote&&(0,B.jsx)("span",{children:q(e.grandAmountNote,{nsSeparator:"__"})}),D&&!E&&(0,B.jsxs)("span",{children:[", ",(0,f.fN)(q)("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.infoTextWithLink",{link:(0,B.jsx)(V.A,{className:"grand-amount-note-shipping-cost-link",to:F.legalPageUrls.shipping,children:q("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.linkText")})})]})]})})]})]}),u||(u=(0,B.jsx)("div",{id:"ep-app-area-cart-view-cart-totals"})),(0,B.jsxs)(j.LZ,{className:"cart-totals-button-checkout",children:[p||(p=(0,B.jsx)("span",{className:"checkout-button-icon"})),q("views.storefrontView.basketPageSection.checkoutLinkButton.label")]}),h||(h=(0,B.jsx)(j.F,{})),x||(x=(0,B.jsxs)("div",{className:"checkout-buttons column",children:[(0,B.jsx)(j.Oh,{className:"paypal-button",shape:"rect",color:"gold"}),(0,B.jsx)(j.nn,{className:"amazon-button"})]}))]})]})})})})]})})}},26520:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u})
105var a,i,n,o=s(16991),r=s(87268),c=s(30442),l=s(61254),d=s(89213),m=s(42295)
106function u({t:e,cart:t,shop:s}){return(0,m.jsx)(r.A,{children:(0,m.jsx)("div",{className:"template-cart",children:t.totalNumberOfItems>0&&(0,m.jsxs)("div",{children:[t.checkoutState&&!t.checkoutState.priceValidToOrder&&t.minimumOrderValue&&(0,m.jsx)("div",{className:"cart-warning-message",children:e("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumAmountNotReached",{amount:t.minimumOrderValue.formatted})}),(0,m.jsx)(l.A,{tagName:"div",renderItem:e=>(0,m.jsxs)("div",{children:[e.imageUrl&&(0,m.jsx)(d.A,{to:e.productUrl,children:(0,m.jsx)("img",{src:e.imageUrl})}),(0,m.jsxs)("div",{className:"product-link",children:[(0,m.jsx)(d.A,{to:e.productUrl,children:e.name}),e.essentialFeatures&&(0,m.jsx)("p",{children:e.essentialFeatures})]}),(0,m.jsx)("div",{children:t.grandAmount}),(0,m.jsx)("div",{children:e.quantity.unit}),!s.beyond&&(a||(a=(0,m.jsx)(c.A.AddToWishlistLinkInCart,{className:"cart-add-wishlist-link",children:(0,m.jsx)("span",{children:"<3"})}))),i||(i=(0,m.jsx)(c.A.RemoveLineItemButton,{className:"remove-from-cart",children:(0,m.jsx)("span",{children:"X"})}))]})}),(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{children:t.subAmount}),t.shippingLineItem&&(0,m.jsx)("pre",{children:JSON.stringify(t.shippingLineItem,null,2)}),(0,m.jsx)("div",{children:t.grandTotal.formatted})]}),n||(n=(0,m.jsx)(o.LZ,{className:"checkout-button",children:(0,m.jsx)("span",{children:"Checkout"})}))]})})})}},28624:(e,t,s)=>{s.r(t),s.d(t,{default:()=>A})
107s(39155),s(76881),s(28383)
108var a,i,n,o,r,c,l,d,m,u,p=s(91121),h=s(51804),x=s(16991),b=s(61487),g=s(557),j=s(34854),v=s(87268),w=s(26789),f=s(17245),N=s(33094),I=s(35021),k=s(30442),y=s(61254),P=s(89213),S=s(44260),C=s(42295)
109function A({cart:e,trackProductClick:t,shop:s,displayWishlistError:A,t:V,invalidProducts:L,shopHasPickupAndShipping:B,cartHasShippingCosts:F}){var q,T
110const D=(0,h.J)(s.locale,e.subAmountValue,e.potentialBasketDiscounts),E=(e.productLineItems||[]).some((e=>!!e.lineItemCouponDiscount||!!e.additionalInformation?.bulkPriceInfo&&e.additionalInformation?.bulkPriceInfo.some((e=>!!e.priceSavings)))),R=e.productLineItems.some((e=>e.lineItemCouponDiscount)),U=(e,t)=>(0,b.UK)(e,t.additionalInformation?.bulkPriceInfo,t.quantity,t.lineItemCouponDiscount),W=e.productLineItems.some((e=>Boolean(e.discount))),M=W||e.productLineItems.some((e=>Boolean(U(s.locale,e)))),O=e=>W?e.discount?e.discount.discountRate:null:U(s.locale,e),z=M?V(W?"views.storefrontView.basketPageSection.discountColumnLabel.customerGroupDiscount":"views.storefrontView.basketPageSection.discountColumnLabel.couponDiscount"):"",H=V("views.storefrontView.basketPageSection.removeLineItemCouponButton.label")
111return(0,C.jsx)(v.A,{children:(0,C.jsxs)("div",{children:[!e.totalNumberOfItems&&(0,C.jsx)(j.A,{shopHref:s.href,t:V}),e.totalNumberOfItems>0&&(0,C.jsx)("div",{className:"cart",children:(0,C.jsx)("section",{className:"section",children:(0,C.jsx)("div",{className:"wrapper",children:(0,C.jsxs)("div",{className:"content",children:[(0,C.jsx)("h1",{children:V("views.storefrontView.basketPageSection.title")}),(0,C.jsxs)("div",{"aria-live":"assertive",role:"status",children:[D&&(0,C.jsx)(h.A,{basketDiscountInfo:D,t:V}),e.quantityMismatch&&(0,C.jsx)("div",{className:"cart-warning-message",children:V("views.storefrontView.basketPageSection.productQuantityTooHighExplanation")}),e.couponSuccess&&e.checkoutState&&!e.coupon?.hasValidationErrors&&(0,C.jsx)("div",{className:"cart-success-message",children:V("views.storefrontView.basketPageSection.couponInputField.successMessage")}),e.checkoutState&&!e.checkoutState.priceValidToOrder&&e.minimumOrderValue&&(0,C.jsx)("div",{className:"cart-warning-message",children:V("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumAmountNotReached",{amount:e.minimumOrderValue.formatted})}),"-"===e.coupon?.lineItemPrice?.formatted&&e.couponCampaign?.minimumOrderValue&&(0,C.jsxs)("div",{className:"cart-warning-message",children:[V("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumCouponAmountNotReached",{amount:e.couponCampaign.minimumOrderValue.formatted}),(0,C.jsx)(w.Ay.RemoveCouponButton,{className:"cart-coupon-campaign-remove-coupon",children:V("views.storefrontView.basketPageSection.checkoutValidation.cartMinimumDiscountRemoveCoupon")})]}),L.length>0&&(0,C.jsx)("div",{className:"cart-warning-message",children:(0,C.jsxs)("span",{children:[V("views.storefrontView.basketPageSection.invalidProducts"),(0,C.jsx)("ul",{children:L.map((e=>(0,C.jsx)("li",{children:e.name},`ip-${e.name}`)))})]})}),A&&(0,C.jsx)("div",{className:"cart-warning-message",children:V("views.storefrontView.basketPageSection.wishlistItemsNotAddedCompletely")}),a||(a=(0,C.jsx)(w.Ay.ValidationInfo,{errorClass:"cart-error-message",warningClass:"cart-warning-message"})),e.couponAutomaticallyRemoved&&(0,C.jsx)("div",{className:"cart-warning-message",children:V("views.storefrontView.basketPageSection.couponAutomaticallyRemoved")})]}),(0,C.jsxs)("table",{className:"cart-table",children:[(0,C.jsx)("thead",{className:"cart-table-head",children:(0,C.jsxs)("tr",{className:(0,p.A)({"cart
111-table-item-has-discount-column":M}),children:[(0,C.jsx)("th",{className:"cart-table-head-product",children:(0,C.jsx)("span",{children:V("components.productComponent.product")})}),(0,C.jsx)("th",{className:"cart-table-head-price",children:(0,C.jsx)("span",{children:V("views.storefrontView.basketPageSection.singlePrice")})}),(0,C.jsx)("th",{className:"cart-table-head-quantity",id:"cart-quantity-heading",children:(0,C.jsx)("span",{children:V("views.storefrontView.basketPageSection.quantity")})}),M&&(0,C.jsx)("th",{className:"cart-table-head-discount",children:(0,C.jsx)("span",{children:z})}),(0,C.jsx)("th",{className:"cart-table-head-total",children:(0,C.jsx)("span",{children:V("views.storefrontView.basketPageSection.totalPrice")})})]})}),(0,C.jsx)(y.A,{tagName:"tbody",renderItem:(a,r)=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("tr",{className:(0,p.A)({"cart-table-item-has-discount":E,"cart-table-item-has-discount-column":M,"cart-table-item-has-deposit":a.depositInfo}),children:[(0,C.jsxs)("td",{className:"cart-table-item-product",children:[(0,C.jsx)(P.A,{to:a.productUrl,onClick:()=>t(a,r),"aria-hidden":"true",tabIndex:-1,children:a.imageUrl?(0,C.jsx)(I.A,{src:a.imageUrl,className:"cart-table-item-product-image"}):i||(i=(0,C.jsx)(S.A,{className:"cart-table-item-product-image"}))}),(0,C.jsxs)("div",{className:"cart-table-item-product-description",children:[(0,C.jsx)("h2",{className:"headline",id:`${r}-product-name`,children:(0,C.jsx)(P.A,{to:a.productUrl,onClick:()=>t(a,r),children:a.name})}),a.variationString&&(0,C.jsx)("p",{className:"variation-values",children:a.variationString}),a.customizedHeadlineText&&a.customizedText&&(0,C.jsxs)("p",{className:"cart-table-item-description-customized-text",children:[(0,C.jsxs)("span",{children:[a.customizedHeadlineText,": "]}),a.customizedText]}),a.essentialFeatures.length>0&&(0,C.jsx)("p",{className:"essential-features",children:a.essentialFeatures.map((e=>(0,C.jsxs)("span",{children:[e,n||(n=(0,C.jsx)("br",{}))]},e)))}),a.energyLabel&&(0,C.jsx)(f.A,{t:V,energyLabel:a.energyLabel,energyLabelSourceFile:a.energyLabelSourceFile}),a.productDataSheet&&(0,C.jsx)("div",{className:"cart-table-item-product-description-product-data-sheet",children:(0,C.jsx)("a",{href:a.productDataSheet.dataUri,target:"_blank",rel:"noreferrer",className:"cart-table-item-product-description-product-data-sheet-link",children:a.productDataSheet.label})}),s.isInEU&&a.garanLabel&&(0,C.jsx)(N.A,{garanLabel:a.garanLabel}),(0,C.jsxs)("div",{className:"cart-table-item-product-actions",children:[!s.beyond&&a.productId&&(0,C.jsx)(k.A.AddToWishlistLinkInCart,{className:(0,p.A)(["add-wishlist-link add-wishlist-icon",{"is-in-wishlist":a.isInWishlist}]),children:(0,C.jsx)("span",{className:"add-wishlist-text",children:V("views.storefrontView.basketPageSection.addToWishlistLinkInCart.label")})}),R&&e.couponCampaign&&a.lineItemCouponDiscount&&(0,C.jsxs)("p",{className:"cart-table-item-product-description-coupon",children:[(0,C.jsxs)("span",{children:[V("views.storefrontView.basketPageSection.coupon"),":"," ",e.couponCampaign.name]})," ",(0,C.jsxs)("span",{children:["(",e.couponCampaign.type.formatted,")"]})]}),R&&a.lineItemCouponDiscount&&(q||(q=(0,C.jsx)(w.Ay.RemoveCouponButton,{className:"remove-link remove-icon",title:H,children:(0,C.jsx)("span",{className:"remove-text",children:H})}))),(0,C.jsx)(k.A.RemoveLineItemButton,{className:"remove-link remove-icon",title:V("views.storefrontView.basketPageSection.removeProductButton.label"),children:(0,C.jsx)("span",{className:"remove-text",children:V("views.storefrontView.basketPageSection.removeProductButton.label")})})]})]})]}),(0,C.jsxs)("td",{className:"cart-table-item-price",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.singlePrice")}),(0,C.jsx)("span",{className:"price-value",children:(0,b.h)(a.additionalInformation?.bulkPriceInfo,a.quantity,a.orderUnitInfo,s.locale)??a.quantityPrice?.formatted??a.listPrice?.formatted??a.singleItemPrice?.formatted})]}),(0,C.jsxs)("td",{className:"cart-table-item-quantity",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.quantity")}),(0,C.jsx)(k.A.QuantityField,{min:0,invalidProduct:null===a.productId,className:"quantity-field","aria-labelledby":`${r}-product-name cart-quantity-heading`})]}),M&&(0,C.jsxs)("td",{className:"cart-table-item-discount",children:[T||(T=(0,C.jsx)("span",{className:"show-subhead",children:z})),(0,C.jsx)("span",{className:"price-value",children:O(a)})]}),(0,C.jsxs)("td",{className:"cart-table-item-total",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.totalPrice")}),(0,C.jsx)("span",{className:(0,p.A)(["price-value",{"cart-coupon-discount-indicator":a.lineItemCouponDiscount}]),children:a.lineItemPrice.formatted})]})]}
111),a.depositInfo&&(0,C.jsxs)("tr",{className:(0,p.A)({"cart-table-item-deposit":!0,"cart-table-item-has-discount-column":M}),children:[(0,C.jsx)("td",{className:"cart-table-item-deposit-label",children:V("views.storefrontView.basketPageSection.deposit.label")}),(0,C.jsxs)("td",{className:"cart-table-item-deposit-single-amount",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.deposit.single")}),(0,C.jsx)("span",{className:"price-value",children:a.depositInfo.single.formatted})]}),(0,C.jsxs)("td",{className:"cart-table-item-deposit-quantity cart-table-item-quantity",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.deposit.quantity")}),(0,C.jsx)("div",{className:"quantity-field",children:a.quantity})]}),M&&(o||(o=(0,C.jsx)("td",{className:"cart-table-item-deposit-discount"}))),(0,C.jsxs)("td",{className:"cart-table-item-deposit-total-amount",children:[(0,C.jsx)("span",{className:"show-subhead",children:V("views.storefrontView.basketPageSection.deposit.total")}),(0,C.jsx)("span",{children:a.depositInfo.total.formatted})]})]})]})})]}),e.canHaveCoupon&&(0,C.jsxs)(w.Ay.RedemptionForm,{className:"coupon-redemption-form",children:[(0,C.jsx)("label",{htmlFor:"coupon-form-field",className:"coupon-redemption-form-label",children:V("views.storefrontView.basketPageSection.couponInputField.label")}),(0,C.jsxs)("div",{children:[r||(r=(0,C.jsx)(w.Ay.RedemptionForm.CouponField,{id:"coupon-form-field",className:"coupon-redemption-form-field",errorClass:"coupon-redemption-form-field-error"})),(0,C.jsx)(w.Ay.RedemptionForm.RedeemButton,{className:"coupon-redemption-form-button",children:(0,C.jsx)("span",{children:V("views.storefrontView.basketPageSection.couponInputField.redeemButton.label")})})]}),c||(c=(0,C.jsx)(w.Ay.CouponError,{className:"invalid-error-message",hiddenClass:"invalid-error-message-hidden"}))]}),(0,C.jsxs)("div",{className:"cart-totals",children:[(0,C.jsxs)("div",{className:"cart-totals-table",children:[(0,C.jsx)("div",{className:"cart-totals-table-headline",children:V("views.storefrontView.basketPageSection.subtotal")}),(0,C.jsx)("div",{className:"cart-totals-table-text",children:e.subAmount}),e.coupon&&e.couponCampaign&&!R&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"cart-totals-table-headline",children:V("views.storefrontView.basketPageSection.coupon")}),(0,C.jsxs)("div",{className:"cart-totals-table-text cart-coupon-campaign",children:[(0,C.jsxs)("div",{className:"cart-coupon-campaign-description",children:[(0,C.jsxs)("span",{className:"cart-coupon-campaign-description-headline",children:[e.couponCampaign.name," ",(0,C.jsxs)("span",{className:"cart-coupon-campaign-description-type",children:["(",e.couponCampaign.type.formatted,")"]})]}),"number"==typeof e.coupon.lineItemPrice.amount&&(0,C.jsx)("span",{className:"cart-coupon-campaign-description-price",children:e.coupon.lineItemPrice.formatted})]}),(0,C.jsx)(w.Ay.RemoveCouponButton,{className:"remove-link remove-icon",children:(0,C.jsx)("span",{className:"remove-text",children:V("views.storefrontView.basketPageSection.couponInputField.removeButton.label")})})]})]}),e.shippingLineItem&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"cart-totals-table-headline",children:e.shippingLineItem.shippingMethod.name}),(0,C.jsx)("div",{className:"cart-totals-table-text",children:e.shippingLineItem.lineItemPrice.formatted})]}),e.totalBasketDiscount&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"cart-totals-table-headline",children:V("views.storefrontView.basketPageSection.discount")}),(0,C.jsx)("div",{className:"cart-totals-table-text",children:e.totalBasketDiscount})]}),e.paymentLineItem&&0!==e.paymentLineItem.lineItemPrice.amount&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"cart-totals-table-headline",children:e.paymentLineItem.lineItemPrice.amount<0?V("views.storefrontView.basketPageSection.paymentDiscount",{paymentMethodName:e.paymentLineItem.paymentMethod.name}):V("views.storefrontView.basketPageSection.paymentSurcharge",{paymentMethodName:e.paymentLineItem.paymentMethod.name})}),(0,C.jsx)("div",{className:"cart-totals-table-text",children:e.paymentLineItem.lineItemPrice.formatted})]}),(0,C.jsx)("div",{className:"cart-totals-table-headline",children:V("views.storefrontView.basketPageSection.total")}),(0,C.jsxs)("div",{className:"cart-totals-table-text grand-amount",children:[e.grandAmount,(0,C.jsxs)("div",{className:"grand-amount-note",children:[e.grandAmountNote&&(0,C.jsx)("span",{children:V(e.grandAmountNote,{nsSeparator:"__"})}),B&&!F&&(0,C.jsxs)("span",{children:[", ",(0,g.fN)(V)("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.infoTextWithLink",{link:(0,C.jsx)(P.A,{className:"grand-amount-note-shipping-cost-link",to:s.legalPageUrls.shipping,children:V("views.storefrontView.basketPageSection.priceInclusiveVatShippingCostHint.linkText")})})]})]})]}),l||(l=(0,C.jsx)("div",{id:"ep-app-area-cart-view-cart-totals"}))]}),(0,C.jsxs)("div",{className:"cart-totals-checkout-buttons",children:[(0,C.jsxs)(x.LZ,{className:"cart-totals-button-checkout",children:[V("views.storefrontView.basketPageSection.checkoutLinkButton.label"),d||(d=(0,C.jsx)("span",{className:"checkout-button-icon"}))]}),m||(m=(0,C.jsx)(x.F,{}))]}),u||(u=(0,C.jsxs)("div",{className:"checkout-buttons row",children:[(0,C.jsx)(x.Oh,{className:"paypal-button",shape:"rect",color:"gold"}),(0,C.jsx)(x.nn,{className:"amazon-button"})]}))]})]})})})})]})})}},61487:(e,t,s)=>{s.d(t,{Kk:()=>d,Oq:()=>o,SS:()=>l,UK:()=>r,h:()=>c})
112s(39155),s(98456)
113var a=s(68814)
114const i=(e,t)=>new Intl.NumberFormat(e.replace("_","-"),{style:"currency",currency:t})
115function n(e,t){return e.slice().sort(((e,t)=>t.quantity.amount-e.quantity.amount)).find((e=>t>=e.quantity.amount))}function o(e,t){const s=n(e??[],t)
116return s?.basePrice?.formatted??s?.price.formatted}
116function r(e,t,s,a){const o=n(t??[],s),r=a?.amount??0
117return o?o?.priceSavings?.percent&&o.priceSavings.percent.percentage>0?new Intl.NumberFormat(e.replace("_","-"),{style:"currency",currency:o.price.currency}).format(o.priceSavings.regularBulkPrice.amount/100*o.priceSavings.percent.percentage*s+r):r>0?i(e,o?.price.currency).format(r):null:a&&r>0?i(e,a.currency).format(r):null}function c(e,t,s,i){const o=n(e??[],t)
118if(!o)return null
119const r=new Intl.NumberFormat(i.replace("_","-")),c=o.price.formatted
120return 1!==s.priceQuantity?`${c} / ${r.format(s.priceQuantity)} ${s.orderUnit}`:(0,a.F)(s.orderUnitShort)?c:`${c} / ${s.orderUnit}`}function l(e,t){return n(e,t)?.price.amount}function d(e,t){const s=n(e.bulkPrices??[],t)
121return s?s.price:e.price}},27106:(e,t,s)=>{function a(e){let t=null
122function s(s,a,i,n){"start"===s&&e("start",void 0,void 0),"end"===s&&t===a&&(e("end",i,n),t=null)}return function(e){t?t=t.then((()=>e())):(s("start",t,void 0,void 0),t=Promise.resolve().then((()=>e())))
123const a=t
124return a.then((e=>s("end",a,void 0,e))).catch((e=>s("end",a,e,void 0))),a}}s.d(t,{A:()=>a})},68814:(e,t,s)=>{s.d(t,{F:()=>i,s:()=>n})
125s(7121)
126const a=["peça/peces","kus(y)","stk.","Stück","piece(s)","pièce(s)","unidad(es)","kpl","unité(s)","pezzo/i","stuk(s)","peça(s)","штука (-и)","styck"]
127function i(e){return a.some((t=>e===t))}function n(e,t,s){const a=[]
128return e<t&&a.push("minimumQuantityNotReached"),(1e3*e-1e3*t)%(1e3*s)!=0&&a.push("invalidQuantityIncrement"),a}},54930:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x})
129s(39155),s(98357)
130var a=s(48431),i=s(95110),n=s(84507),o=s(80238),r=s(12086),c=s(35856),l=s(94777),d=s(557),m=s(51627),u=s(32904),p=s(90700),h=s(42295)
131function x(){const e=(0,d.WD)("shop","views.storefrontView.basketPageSection"),t=(0,n.d4)((e=>e.get("cart"))),s=(0,n.d4)((e=>e.get("shop"))),r=(0,i.ok)()[0]?.get("displayWishlistError"),[x,b]=(0,a.useState)(t.get("productLineItems").filter((e=>null===e.get("productId")))),g=(0,p.A)(t),j=Boolean(t.getIn(["_links","shipping-method-available"])&&t.getIn(["_links","pickup-option-available"])),v=Boolean(t.getIn(["shippingLineItem","lineItemPrice"]))
132return(0,a.useEffect)((()=>{b(t.get("productLineItems").filter((e=>null===e.get("productId"))))}),[t]),(0,u.A)((()=>{g?.equals(t)||(0,c.u4)("cart:update",{cart:t.toJS()})}),[g,t]),(0,a.useEffect)((()=>{t.get("productLineItems")?.size>0&&(0,c.u4)("cart:view",{cart:t.toJS(),shopLocale:s.get("locale")})}),[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.l,{title:`${e("title")} - ${s.get("title")}`,meta:[{name:"robots",content:"noindex, follow"}]}),(0,h.jsx)(m.A,{withLayout:!0,currentView:"Cart",children:(e,s)=>e("Cart",{...s,cart:t.toJS(),trackProductClick:l.H,displayWishlistError:r,invalidProducts:x,shopHasPickupAndShipping:j,cartHasShippingCosts:v})})]})}x.storeUpdate=(e,t)=>"PUSH"!==e.location.action&&t.get("cart")?[]:[(0,r.Bbc)()],x.loadableSsrChunks=["Cart"],x.contentCreationDisabled=()=>!0},61085:(e,t,s)=>{s.d(t,{A:()=>n})
133var a=s(87771),i=0
134const n=function(e){var t=++i
135return(0,a.A)(e)+t}}}])
136
137//# sourceMappingURL=Cart-3fc75cab99672962dc32.js.map

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.