1import{ab as e,u as a,a as r,lV as s,bb as t,ox as o,br as n,oy as u,hr as l,oz as d,j4 as i,j5 as C,bp as c}from"./f67abd2c.BTHhdhoM.js";import{k as f}from"./2c1ab0fe.RaLGJvq2.js";import{c7 as m,dH as R,bR as v}from"./164ad2e3.bPUx3Fg0.js";const T=e("ShopCashContext"),b=T.Provider,p=()=>a(T),D=()=>{const{shopPay:e,checkout:{negotiator:a}}=r(),t=m(),o=R(),n=a.parts.paymentLines;return f(()=>{const a=n.value,r=e.user.paymentMethods.value,u=e.session.selectedPaymentMethod.value;if(!t.value)return;const l=s(a);return l&&"CREDIT_CARD"!==l?l:o.value?.payment?"CREDIT_CARD"===s(a)?"CREDIT_CARD":E(u,r):s(a)})},E=(e,a)=>{if(e||a.length)return e&&t(e)||o(a)?"APPLE_PAY":e&&n(e)||u(a)?"IDEAL":e&&l(e)||d(a)?"CUSTOM_ONSITE":"CREDIT_CARD"},h=new Set(["giftCard","freeOrder","storeCredit","redeemables"]);function I(e){return null!==e&&h.has(e)}function S(){const e=m(),a=i(),s=C("STORE_CREDIT"),t=c(["CUSTOM","STORE_CREDIT"]),o=v(),{checkout:{negotiator:n}}=r(),u=n.current.fields.deferredTotal;return f(()=>e.value?a.value?"giftCard":s.value?"storeCredit":t.value?"redeemables":o.value&&!u.value?.amount.amount?"deferred":null:"freeOrder")}export{T as S,S as a,p as b,b as c,I as i,D 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.