const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-DeliveryMacros.Dc-Toktk.js","dist-vendor.a3kfnPsb.js","shop-pay-ButtonWithRegisterWebPixel.DNiJgoKP.js","shop-pay-FullScreenBackground.wUQlmEwa.js","app.grCQgMVw.js","assets/app.fH9d1Lew.css","assets/FullScreenBackground.CPAx34wq.css","images-flag-icon.C_eXYJRt.js","images-payment-icon.BXeXx6hF.js","assets/ButtonWithRegisterWebPixel.BeLrE91F.css","hooks-MerchandiseModal.svhH8RE6.js","utilities-shipping-options.BruF6d7C.js","MerchandisePreviewThumbnail-StackedMerchandisePreview.D4vr35Oz.js","assets/StackedMerchandisePreview.D6OuIVjc.css","BuyWithPrimeOrderTrackingButton-DeliveryMacro.zlU2MFF_.js","components-ShipmentLine.CalKpJhJ.js","DeliveryInstructionsFooter-ShippingMethodSelector.Dynncwop.js","assets/ShippingMethodSelector.B0hio2RO.css"])))=>i.map(i=>d[i]);
import{_ as P}from"./app.grCQgMVw.js";import{g as x,r as b,u as e,k as f}from"./dist-vendor.a3kfnPsb.js";import{B as o,cg as E,z as L,E as s,bb as _,b5 as k,_ as T,G as A,lw as C,S as w,aV as B,d as I,b6 as z,k as O}from"./shop-pay-ButtonWithRegisterWebPixel.DNiJgoKP.js";import{a as G,k as R}from"./shop-pay-FullScreenBackground.wUQlmEwa.js";import{S as F,M as V}from"./MerchandisePreviewThumbnail-StackedMerchandisePreview.D4vr35Oz.js";const K=x({displayName:"DeliveryMacros",load:()=>b(()=>P(()=>import("./component-DeliveryMacros.Dc-Toktk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])))});function Q({text:r}){return e(_,{children:e(o,{inlineAlignment:"center",children:[e(E,{size:"large"}),e(L,{blockSize:"small-400"}),e(s,{children:r})]})})}function U({lines:r,hideThumbnail:l,shippingTime:a}){const{i18n:d}=G(),{deliveryExpectationLines:c}=k(),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:y}=t,v=t.methodType==="LOCAL",M=!!t?.deliveryPredictionEligible,{deliveryExpectation:S}=C(t,c||[],!!(M||u));return e(O,{gap:"small-400",children:e(o,{children:[e(w,{methodTitle:B({deliveryMethod:t,localDelivery:v?d.translate("shipping.local_delivery"):void 0}),showInterpunct:!0,price:e(I,{cost:p,costAfterDiscounts:g,inlineDiscount:!0})}),a?e(s,{color:"subdued",size:m?void 0:"small",children:a}):e(z,{deliveryMethod:t,deliveryExpectationLine:S,estimatedTimeInTransit:y})]})},n)};return e(f,{children:r.map(i=>{const t=T(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(V,{merchandiseItem:n,hideBadge:!0})),h(i)]},n.id))})})}export{K as D,Q as P,U as S};
