1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9914],{39914:function(e,t,r){r.r(t),r.d(t,{ProductOrderDetailsSheetDeliveryMethods:function(){return a}});var i=r(57437),s=r(33145),l=r(69269),n=r(33805),c=r(42586);function a(e){let{deliveryMethods:t,productPrice:r}=e,{basket:a}=(0,n.Kc)(),o=(0,c.useTranslations)(),p=a.campaignPrice+r,d=e=>{let t=e.price;return e.alterntivePrice&&e.alterntivePriceTrigger&&e.alterntivePrice>0&&p>=e.alterntivePriceTrigger&&(t=e.alterntivePrice),e.isFreeShippingEnabled&&e.freeShippingTrigger&&p>=e.freeShippingTrigger&&(t=0),t};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(()=>{let e=a.campaignPrice+r,s=!1;for(let r of t)if(r.isFreeShippingEnabled&&r.freeShippingTrigger&&e>=r.freeShippingTrigger){s=!0;break}if(!s){let r=t.filter(e=>e.isFreeShippingEnabled&&e.freeShippingTrigger).map(e=>e.freeShippingTrigger).filter(e=>e>0);if(r.length>0){let t=Math.min(...r)-e;if(t>0)return(0,i.jsx)("div",{className:"flex justify-start w-full",children:(0,i.jsx)("div",{className:"flex gap-3 justify-center items-center px-4 py-2 w-full text-sm bg-gray-100 text-muted/foreground",children:o("components.buyButton.powerstep.buyForMore",{price:o("components.buyButton.powerstep.price",{value:t/100})})})})}}return s?(0,i.jsx)("div",{className:"flex justify-start w-full",children:(0,i.jsxs)("div",{className:"flex gap-3 justify-center items-center px-4 py-2 w-full text-sm text-white bg-emerald-600",children:[(0,i.jsx)(l.Jr,{size:16,color:"white"}),(0,i.jsx)("span",{children:o("components.buyButton.powerstep.freeDelivery")})]})}):null},{}),(0,i.jsx)("div",{className:"flex flex-col divide-y divide-border",children:t.map(e=>(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center py-3",children:[(0,i.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,i.jsx)(s.default,{src:e.iconUrl,width:40,height:25,alt:e.title}),(0,i.jsxs)("div",{className:"text-left",children:[(0,i.jsx)("p",{className:"text-sm font-bold text-foreground",children:e.title}),(0,i.jsx)("p",{className:"text-xs font-normal text-muted-foreground/80",children:e.description})]})]}),e.price>d(e)?0===d(e)?(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-medium text-right text-red-500",children:o("components.checkoutDeliverySelector.labels.priceFree")}),(0,i.jsx)("p",{className:"text-sm font-normal text-right line-through text-muted-foreground",children:o("components.checkoutDeliverySelector.price",{value:e.price/100})})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-medium text-right text-red-500",children:o("components.checkoutDeliverySelector.price",{value:d(e)/100})}),(0,i.jsx)("p",{className:"text-sm font-normal text-right line-through text-muted-foreground",children:o("components.checkoutDeliverySelector.price",{value:e.price/100})})]}):(0,i.jsx)("p",{className:"text-sm font-medium text-right whitespace-nowrap text-foreground",children:o("components.checkoutDeliverySelector.price",{value:d(e)/100})})]},e.id))}),(0,i.jsx)("div",{className:"mt-4 pt-4 border-t border-border",children:(0,i.jsxs)("p",{className:"text-xs font-normal text-muted-foreground",children:[(0,i.jsx)("sup",{className:"text-xs",children:"*"})," ",o("pages.productPage.deliveryPrice.explanation")]})})]})}}}]);
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.