const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-DeliveryMacros.SexXgw6D.js","dist-vendor.DBR6g02j.js","shop-pay-ButtonWithRegisterWebPixel.Tzqfwpmo.js","shop-pay-FullScreenBackground.C1_sL6Wu.js","app.DL3fE3U1.js","assets/app.fH9d1Lew.css","assets/FullScreenBackground.BEEkv9BX.css","images-flag-icon.C_eXYJRt.js","images-payment-icon.BXeXx6hF.js","assets/ButtonWithRegisterWebPixel.fJWLmAhe.css","hooks-MerchandiseModal.CEetbkjl.js","utilities-shipping-options.qEODqIc4.js","MerchandisePreviewThumbnail-StackedMerchandisePreview.oQKLGTYD.js","assets/StackedMerchandisePreview.D6OuIVjc.css","BuyWithPrimeOrderTrackingButton-DeliveryMacro.Vz4G_K5d.js","components-ShipmentLine.DfDv3401.js","DeliveryInstructionsFooter-ShippingMethodSelector.DOvEZXB4.js","assets/ShippingMethodSelector.B0hio2RO.css"])))=>i.map(i=>d[i]);
import{_ as P}from"./app.DL3fE3U1.js";import{g as x,r as f,u as e,k as L}from"./dist-vendor.DBR6g02j.js";import{B as o,c1 as E,t as T,v as s,aZ as k,aS as _,Q as b,G as A,ls as C,S as B,aG as I,d as w,aT as G,k as O}from"./shop-pay-ButtonWithRegisterWebPixel.Tzqfwpmo.js";import{a as z,k as R}from"./shop-pay-FullScreenBackground.C1_sL6Wu.js";import{S as F,M as H}from"./MerchandisePreviewThumbnail-StackedMerchandisePreview.oQKLGTYD.js";const q=x({displayName:"DeliveryMacros",load:()=>f(()=>P(()=>import("./component-DeliveryMacros.SexXgw6D.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])))});function J({text:r}){return e(k,{children:e(o,{inlineAlignment:"center",children:[e(E,{size:"large"}),e(T,{blockSize:"small-400"}),e(s,{children:r})]})})}function K({lines:r,hideThumbnail:l,shippingTime:a}){const{i18n:d}=z(),{deliveryExpectationLines:c}=_(),m=R(),h=i=>{const t=i.methods.find(({handle:D})=>D===i.selectedDeliveryMethodHandle);if(!t)return null;const{handle:n,cost:p,costAfterDiscounts:g,brandedPromise:u,estimatedTimeInTransit:v}=t,y=t.methodType==="LOCAL",M=!!t?.deliveryPredictionEligible,{deliveryExpectation:S}=C(t,c||[],!!(M||u));return e(O,{gap:"small-400",children:e(o,{children:[e(B,{methodTitle:I({deliveryMethod:t,localDelivery:y?d.translate("shipping.local_delivery"):void 0}),showInterpunct:!0,price:e(w,{cost:p,costAfterDiscounts:g,inlineDiscount:!0})}),a?e(s,{color:"subdued",size:m?void 0:"small",children:a}):e(G,{deliveryMethod:t,deliveryExpectationLine:S,estimatedTimeInTransit:v})]})},n)};return e(L,{children:r.map(i=>{const t=b(i.targetMerchandiseLines??[]);return t.slice(0,1).map(n=>e(A,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"large-100",alignItems:"center",alignContent:"center",children:[!l&&(t.length>1?e(F,{merchandiseItem:n,merchandiseLinesLength:t.length}):e(H,{merchandiseItem:n,hideBadge:!0})),h(i)]},n.id))})})}export{q as D,J as P,K as S};
