PageSourceSearch

https://poptradingcompany.com/cdn/shopifycloud/checkout-web/assets…yment-usePaymentExemptionReason.MJlv_Ay4.js

js poptradingcompany.com collected 2026-09-29 12:13:03 UTC 1,237 bytes, 1 lines download raw bytes

1import{O as y,P as f,Q as C,S as p,T as P,W as c,X as R,Y as S,Z as v,_ as h,$ as D,a0 as E,a1 as T,a2 as O}from"./utilities-previous.BNOUhCqt.js";import{f as d}from"./esnext-vendor.7EcvH7tF.js";import{c as l,d as A,e as I}from"./hydrate.CvWSYK3c.js";import{p as u}from"./redemption-constants.B8quHqkP.js";const m=y("ShopCashContext"),B=m.Provider,F=()=>f(m),g=()=>{const{shopPay:e}=C(),t=l(),s=A(),n=p().paymentLines;return d(()=>{const r=n.value,a=e.user.paymentMethods.value,i=e.session.selectedPaymentMethod.value;if(!t.value)return;const o=u(r);return o&&o!=="CREDIT_CARD"?o:s.value?.payment?u(r)==="CREDIT_CARD"?"CREDIT_CARD":L(i,a):u(r)})},L=(e,t)=>{if(!(!e&&!t.length))return e&&P(e)||c(t)?"APPLE_PAY":e&&R(e)||S(t)?"IDEAL":e&&v(e)||h(t)?"CUSTOM_ONSITE":"CREDIT_CARD"},_=new Set(["giftCard","freeOrder","storeCredit","redeemables"]);function U(e){return e!==null&&_.has(e)}function N(){const e=l(),t=D(),s=E("STORE_CREDIT"),n=T(["CUSTOM","STORE_CREDIT"]),r=I(),a=O().deferredTotal;return d(()=>{if(e.value){if(t.value)return"giftCard";if(s.value)return"storeCredit";if(n.value)return"redeemables"}else return"freeOrder";return r.value&&!a.value?.amount.amount?"deferred":null})}export{B as S,N as a,F as b,m as c,U as i,g 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.