1import{ab as e,u as a,a as s,lW as r,bb as t,ox as o,br as n,oy as u,hs as l,oz as d,j5 as i,j6 as C,bp as c}from"./f67abd2c.DYpmk7mw.js";import{k as f}from"./2c1ab0fe.XVnTovwp.js";import{c7 as m,dH as R,bR as v}from"./164ad2e3.hrg71Gqs.js";const T=e("ShopCashContext"),b=T.Provider,p=()=>a(T),D=()=>{const{shopPay:e,checkout:{negotiator:a}}=s(),t=m(),o=R(),n=a.parts.paymentLines;return f(()=>{const a=n.value,s=e.user.paymentMethods.value,u=e.session.selectedPaymentMethod.value;if(!t.value)return;const l=r(a);return l&&"CREDIT_CARD"!==l?l:o.value?.payment?"CREDIT_CARD"===r(a)?"CREDIT_CARD":E(u,s):r(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(),r=C("STORE_CREDIT"),t=c(["CUSTOM","STORE_CREDIT"]),o=v(),{checkout:{negotiator:n}}=s(),u=n.current.fields.deferredTotal;return f(()=>e.value?a.value?"giftCard":r.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.