1import{fK as u,mT as d,n as p,k as a,dp as f}from"./utilities-previous.Cnwy8G2v.js";function S({shop:e,checkout:t,paymentMethods:n}){return u(n)&&e.hasFlagEnabled(d)&&t.configuration.layout.isOnePage.value&&!t.isCheckoutLayoutForcedToOnePage.value}function l(e){return e.reduce((t,{cost:n,costBeforeDiscounts:s})=>({priceBeforeDiscounts:t.priceBeforeDiscounts+s,priceAfterDiscounts:t.priceAfterDiscounts+n}),{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function g(e,t=n=>n.amountCombinabilityToken??void 0){if(!e.some(s=>t(s)))return l(e);const n=f(e,s=>s.costBeforeDiscounts,t);return e.reduce((s,i,r)=>n.has(r)?s:{priceBeforeDiscounts:s.priceBeforeDiscounts+i.costBeforeDiscounts,priceAfterDiscounts:s.priceAfterDiscounts+i.cost},{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function y(e){return a(e)?e.allocations.some(t=>t.target.type==="DELIVERYLINE"):!1}function c(e,t){return e?e.filter(n=>a(n)?n.allocations.some(s=>s.target.type==="DELIVERYLINE"&&s.target.index!=null&&t.has(s.target.index)):!1):[]}function C(e,t){const n=new Set,s=new Set;return e&&e.status==="filled"&&e.lines.forEach((i,r)=>{if(i.status!=="available")return;const o=p(i);o&&(o.methodType==="PICK_UP"?s.add(r):n.add(r))}),{shippingDiscountLines:c(t,n),pickupDiscountLines:c(t,s)}}class $ extends Error{constructor(){super(...arguments),this.name="PaymentMethodDoNotMatchError"}}var h=(e=>(e.ShopPayProgressIntercept="ShopPay::Exception::ShopPayProgressIntercept",e))(h||{}),m=(e=>(e.Online="online",e.RetailPos="retail_pos",e))(m||{}),I=(e=>(e.Dismissed="dismissed",e.Pending="pending",e.Verified="verified",e))(I||{});const P={id:"4e99c51c5187daa6375cfd7696d3f3580e3ab58fd003c6f48fc55555907904f6",type:"mutation",name:"PaymentSession",source:"mutation PaymentSession($addressId:ID,$creditCardId:ID!,$checkoutSessionIdentifier:String!,$shopifyDomain:String!,$installmentsAgreements:InstallmentsAgreementsInput,$unvaultedShippingAddress:AddressInput,$checkoutClientSource:CheckoutClientSourceEnum,$batchCheckouts:[BatchCheckoutsInput!],$batchOnly:Boolean,$publicCvvSessionId:String){paymentSessionGenerate(addressId:$addressId creditCardId:$creditCardId checkoutIdentifier:$checkoutSessionIdentifier shopifyDomain:$shopifyDomain installmentsAgreements:$installmentsAgreements unvaultedShippingAddress:$unvaultedShippingAddress checkoutClientSource:$checkoutClientSource batchCheckouts:$batchCheckouts batchOnly:$batchOnly publicCvvSessionId:$publicCvvSessionId){userErrors{message field __typename}sessionId batchCheckoutSessionIds{sessionId shopId __typename}__typename}}"};export{m as C,$ as P,h as S,I as a,l as b,g as c,y as d,C as e,S as i,P as s};
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.