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