1import{fq as e,mA as t,n,dd as o,O as r}from"./4c290a1e.D9lE9kmU.js";import{h as s}from"./2c1ab0fe.D_oO1jU7.js";function i(e){return null!=e&&"merchandiseLine"in e}function u(e){return null==e||"merchandiseLine"in e?void 0:e}function a(e){return c(e.discount)}function c(e){return"code"===e.type||"automatic"===e.type||"custom"===e.type}var l=(e=>(e.Ddp="DDP",e.Dap="DAP",e.Ddu="DDU",e.Unsupported="UNSUPPORTED",e))(l||{}),f=(e=>(e.BuyerConfigured="Buyer Configured",e.DefaultDuties="Default Duties and Taxes",e.DutyAndTaxInclusive="Duty and Tax Inclusive Pricing",e.DutyInclusive="Duty Inclusive Pricing",e.ErrorOccured="Error Occured",e.FlowConfigured="Flow Configured",e.LowValueGoodsFallback="Low Value Goods Taxes Apply",e.PreConfigured="Pre-configured",e.UnsupportedRegion="Unsupported Region",e))(f||{});function d({shop:n,checkout:o,paymentMethods:r}){return e(r)&&n.hasFlagEnabled(t)&&o.configuration.layout.isOnePage.value&&!o.isCheckoutLayoutForcedToOnePage.value}function p(e){return e.reduce(((e,{cost:t,costBeforeDiscounts:n})=>({priceBeforeDiscounts:e.priceBeforeDiscounts+n,priceAfterDiscounts:e.priceAfterDiscounts+t})),{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function D(e,t=e=>e.amountCombinabilityToken??void 0){if(!e.some((e=>t(e))))return p(e);const n=o(e,(e=>e.costBeforeDiscounts),t);return e.reduce(((e,t,o)=>n.has(o)?e:{priceBeforeDiscounts:e.priceBeforeDiscounts+t.costBeforeDiscounts,priceAfterDiscounts:e.priceAfterDiscounts+t.cost}),{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function g(e){return!!a(e)&&e.allocations.some((e=>"DELIVERYLINE"===e.target.type))}function m(e,t){return e?e.filter((e=>!!a(e)&&e.allocations.some((e=>"DELIVERYLINE"===e.target.type&&null!=e.target.index&&t.has(e.target.index))))):[]}function h(e,t){const o=new Set,r=new Set;return e&&"filled"===e.status&&e.lines.forEach(((e,t)=>{if("available"!==e.status)return;const s=n(e);s&&("PICK_UP"===s.methodType?r.add(t):o.add(t))})),{shippingDiscountLines:m(t,o),pickupDiscountLines:m(t,r)}}function y(e,t){const n=t.translations.get(e);return Boolean(n&&""!==n.toString().trim())}function P(e){s((()=>{document.title=e}),[e])}function B({hasError:e,children:t}){const{i18n:n,shop:o}=r(),s=e?`${n.translate("general.error_page_title")} - `:"";return P(o?n.translate("general.full_title",{pageTitle:`${s}${t}`,shopName:o.name}):n.translate("general.loading_title")),null}function E(e){const t=e.session.paymentMethodOption.value;return null==t?"SHOP_PAY":t.name}export{l as I,B as T,d as a,i as b,D as c,c as d,u as e,g as f,E as g,y as h,a as i,h as j,f as k,p as s,P as u};
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.