1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ab63b84b.CcdE3cZx.js","2c1ab0fe.D_oO1jU7.js","164ad2e3.DgUUtBtV.js","4c290a1e.D9lE9kmU.js","app.bDJ3v-8C.js","assets/app.BuSMBobh.css","assets/previous.BpuyvRSB.css","65f3d4da.8ZfwXSRH.js","60a453ce.BIyixFcg.js","0a7dffce.BMM606kb.js","bb728e1c.BObJOhlA.js","assets/stopwatch.Kyhz8KoT.css","9f3d9f8c.Dodv5uQy.js","64de7b49.Dffug7P1.js","347b440c.oWH9qB5Z.js","d5d34b3b.HJgnljYP.js","assets/EstimatedDeliveryContent.B_THySFF.css","90e26f5f.DVFq2b8a.js","assets/SubscriptionPriceBreakdown.vTcdVGq4.css"])))=>i.map(i=>d[i]); 2import{d as e,r as i,T as n,u as a,S as t,e as s,f as r,i as l,p as o}from"./2c1ab0fe.D_oO1jU7.js";import{H as c,U as d,c as p,y as m,C as h,an as u,az as g,I as _,n as v,J as b,aA as y,b as f,aB as k}from"./164ad2e3.DgUUtBtV.js";import{O as I,A as x,aZ as S}from"./4c290a1e.D9lE9kmU.js";import{m as z}from"./ac5a19ff.CrIDx928.js";import{u as D,M as T,a as L,b as M,g as j}from"./64de7b49.Dffug7P1.js";import{b as q}from"./347b440c.oWH9qB5Z.js";import{_ as w}from"./app.bDJ3v-8C.js";const A=e({displayName:"SubscriptionGroupLine",load:()=>i((()=>w((()=>import("./ab63b84b.CcdE3cZx.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))))}),B={groupType:z("SUBSCRIPTION"),includeDeliverySelectionGroups:!1};function C({subscriptionLines:e}){const{i18n:i,shop:t}=I(),{customizationsBefore:s,customizationsAfter:r}=D({targeted:!0,hasMultipleDeliveryGroups:!0}).value,l=n((()=>t.marketDrivenShippingEnabled?q(e):e),[t.marketDrivenShippingEnabled,e]),o=l.length;return 0===o?null:a(m,{gridAutoRows:"minmax(auto, max-content)",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"minmax(auto, max-content)",gap:"small-200",children:[a(c,{level:3,children:i.translate("shipping.shipping_method_recurring_shipments_group_title.other")}),a(d,{customizations:s,options:B}),a(p,{background:"subdued",padding:"base",borderRadius:"base",gap:"@media (inline-size >= extraSmall) small-100, small-200",children:l.map(((e,i)=>a(A,{subscriptionLine:e,subscriptionLinesLength:o,index:i,showDivider:!1},e.id||x())))}),a(d,{customizations:r,options:B})]})}const R=b("ShipmentBreakdownDetails");function E({targetMerchandiseLines:e,selectedDeliveryMethod:i,merchandiseQuantityText:n,modalHeader:s}){const r=h(void 0,R);return a(t,{children:[a(u,{commandFor:r,children:a(p,{direction:"inline",alignItems:"center",gap:"base",children:[e.length>1?a(g,{variant:"fan-legacy",merchandise:e,size:"small",useResponsiveImageSources:!0,useTitleAsAltTextFallback:!0}):a(T,{merchandiseItem:e[0],hideBadge:!0}),a(p,{direction:"inline",alignItems:"center",gap:"small-500",children:[a(_,{tone:"accent",type:"truck",size:"small"}),a(v,{tone:"accent",size:"small",children:n})]})]})}),a(L,{id:r,merchandiseLines:e,deliveryMethod:i,modalHeader:s})]})}function H({quantityTitle:e,open:i,onClick:n,controlId:t}){return a(u,{expanded:i,controlId:t,onClick:n,children:a(p,{direction:"inline",gap:"small-400",alignItems:"center",children:[a(v,{children:e}),a(_,{size:"small-200",type:i?"chevron-up":"chevron-down"})]})})}function G(){const{checkout:e,i18n:i}=I(),n=s(!1),c=M(),d=r((()=>j(c.value.selectedDeliveryMethod))),m=r((()=>d.value.length)),h=r((()=>{if(!d.value?.length)return"";const n=i.translate("shipping.split_shipping_multiple_shipment_quantity_label",{quantity:d.value.length});return S({checkout:e})?i.translate("shipping.split_shipping_first_shipment_notice",{quantity_shipments:n}):i.translate("shipping.split_shipping_shipment_notice",{quantity_shipments:n})})),u=r((()=>c.value.selectedDeliveryMethod));return a(l,{when:u,children:e=>a(t,{children:[a(v,{color:"subdued",children:a(p,{direction:"inline",alignItems:"center",gap:"small-500",children:[a(_,{type:"truck"}),a(H,{quantityTitle:h.value,open:n.value,onClick:()=>n.value=!n.value,controlId:"shipmentBreakdown"})]})}),a(y,{open:n.value,id:"shipmentBreakdown",children:[a(f,{blockSize:"small-100"}),a(p,{gap:"small-100",children:a(o,{each:d,children:({targetMerchandiseLines:n},t)=>a(E,{targetMerchandiseLines:n,selectedDeliveryMethod:e,merchandiseQuantityText:i.translate("order_summary.discount_discovery.merchandise_quantity_label",{count:k(n)}),modalHeader:i.translate("shipping.split_shipping_merchandise_shipment_number",{number:t+1,total:m.value})})})})]})]})})}export{G as S,C as a};
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.