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.BbIvMjRY.js";import{S as l}from"./9f3d9f8c.Dpq-Tdnd.js";import{u as h,S as m}from"./90e26f5f.Cw5CUJLD.js";import{S as u}from"./4c290a1e.C6TDJ9Fn.js";import"./9f047e05.CCJUgz_L.js";import"./app.CepNJbvh.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";import"./64de7b49.BK-M1NIF.js";import"./347b440c.C7wvTwkm.js";import"./d5d34b3b.81uMJHYl.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.