1import{g as k,T as C,u as e,S as m,k as L}from"./2c1ab0fe.BqEHHmaW.js";import{e as w,o as R,p as g,q as z,U as b,c as E}from"./164ad2e3.BA-GikTU.js";import{S as _}from"./9f3d9f8c.DZAF8CzC.js";import{u as P,S as B}from"./90e26f5f.RxBZE9Nq.js";import{O as A}from"./4c290a1e.FJVsH4yi.js";import"./app.D2gvVyTR.js";import"./65f3d4da.BdKZt11Z.js";import"./60a453ce.BClq-svk.js";import"./0a7dffce.BHf0S_6c.js";import"./bb728e1c.uhKc-SJ5.js";import"./64de7b49.DBBYkFfY.js";import"./347b440c.DhRFIYzk.js";import"./d5d34b3b.D_UYHSjm.js";class H extends Error{constructor(){super(...arguments),this.name="SubscriptionLineMissingDeliveryMethodError"}}function K({subscriptionLine:p,subscriptionLinesLength:n,index:i,showDivider:u=!0}){const{observability:y,i18n:s}=A(),M=w(),f=k(()=>!R(M.value.currentDetour)),l=g("Checkout::ShippingMethodDetails::RenderAfter"),c=g("Checkout::ShippingMethodDetails::RenderExpanded"),{methods:S,targetMerchandiseLines:v}=p,t=S[0],d=P({priceBreakdown:t?.priceBreakdown?.[0],discountedShippingPrice:t?.costAfterDiscounts}),r=t?.handle??"",h=C(()=>({handle:r,isInModal:!1}),[r]);if(!t)return y.error(new H("We are unable to render a subscription delivery component because we have no subscription delivery methods")),null;const D=n===1,a=z(t?.priceBreakdown);return a.length>1&&a.some(o=>o.flatRateGroupId)?e(m,{children:a.map(o=>e(_,{merchandiseLines:o.targetMerchandiseLines,deliveryMethod:t,modalHeader:s.translate("shipping.shipping_method_recurring_shipments_group_title",{count:1}),subtitle:d,deliveryMethodHandle:r,isNotFirstLine:i>0,accessibilityLabel:s.translate("split_shipping.a11y_recurring_shipment_line",{number:i+1,total:n}),showDivider:u},o.flatRateGroupId))}):D?e(E,{gap:"small-200",children:[e(B,{deliveryMethod:t}),e(L,{when:f,children:e(m,{children:[l&&e(b,{customizations:l,options:h}),c&&e(b,{customizations:c,options:h})]})})]}):e(_,{merchandiseLines:v,deliveryMethod:t,modalHeader:s.translate("shipping.shipping_method_recurring_shipments_group_title",{count:1}),subtitle:d,deliveryMethodHandle:r,isNotFirstLine:i>0,accessibilityLabel:s.translate("split_shipping.a11y_recurring_shipment_line",{number:i+1,total:n}),showDivider:u})}export{H as SubscriptionLineMissingDeliveryMethodError,K 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.