1import{t as e,T as i,u as t,S as r,w as s}from"./2c1ab0fe.GMbxnz74.js";import{e as n,v as o,w as a,x as d,U as p,c}from"./164ad2e3.BmqNdq2P.js";import{S as l}from"./9f3d9f8c.pMElLAzZ.js";import{u as h,S as m}from"./90e26f5f.BU9IB2gY.js";import{S as u}from"./4c290a1e.2OXqqQwu.js";import"./9f047e05.Bp-gLL-x.js";import"./app.iZwEIta_.js";import"./0a7dffce.BIRsKacx.js";import"./5fda1420.C7SyMXTh.js";import"./60a453ce.fEeMtJEq.js";import"./21cc90a2.BYvnDDaS.js";import"./bb728e1c.D-ELh9cQ.js";import"./64de7b49.3gNLw9g0.js";import"./347b440c.BOPV79c3.js";import"./d5d34b3b.KVrpsmYg.js";class b extends Error{constructor(){super(...arguments),this.name="SubscriptionLineMissingDeliveryMethodError"}}function f({subscriptionLine:f,subscriptionLinesLength:g,index:_,showDivider:j=!0}){const{observability:v,i18n:y}=u(),L=n(),M=e(()=>!o(L.value.currentDetour)),w=a("Checkout::ShippingMethodDetails::RenderAfter"),D=a("Checkout::ShippingMethodDetails::RenderExpanded"),{methods:S,targetMerchandiseLines:k}=f,x=S[0],H=h({priceBreakdown:x?.priceBreakdown?.[0],discountedS
1hippingPrice:x?.costAfterDiscounts}),R=x?.handle??"",B=i(()=>({handle:R,isInModal:!1}),[R]);if(!x)return v.error(new b("We are unable to render a subscription delivery component because we have no subscription delivery methods")),null;const E=1===g,I=d(x?.priceBreakdown);return I.length>1&&I.some(e=>e.flatRateGroupId)?t(r,{children:I.map(e=>t(l,{merchandiseLines:e.targetMerchandiseLines,deliveryMethod:x,modalHeader:y.translate("shipping.shipping_method_recurring_shipments_group_title",{count:1}),subtitle:H,deliveryMethodHandle:R,isNotFirstLine:_>0,accessibilityLabel:y.translate("split_shipping.a11y_recurring_shipment_line",{number:_+1,total:g}),showDivider:j},e.flatRateGroupId))}):E?t(c,{gap:"small-200",children:[t(m,{deliveryMethod:x}),t(s,{when:M,children:t(r,{children:[w&&t(p,{customizations:w,options:B}),D&&t(p,{customizations:D,options:B})]})})]}):t(l,{merchandiseLines:k,deliveryMethod:x,modalHeader:y.translate("shipping.shipping_method_recurring_shipments_group_title",{count:1}),subtitle:H,deliveryMethodHandle:R,isNotFirstLine:_>0,accessibilityLabel:y.translate("split_shipping.a11y_recurring_shipment_line",{number:_+1,total:g}),showDivider:j})}export{b as SubscriptionLineMissingDeliveryMethodError,f as default};
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.