PageSourceSearch

https://www.zip2tax.com/cdn/shopifycloud/checkout-web/assets/c1/87bfafec.AzsVYqml.js

js zip2tax.com collected 2026-10-01 13:02:28 UTC 1,424 bytes, 1 lines download raw bytes

1import{af as C,aM as m,O as f,Q as p,lW as u,bs as c,mC as P,bL as S,mD as R,hG as h,mE as v,je as D,jf as E,bJ as I,P as L}from"./4c290a1e.CvCmFIo_.js";import{f as d}from"./2c1ab0fe.DYQSH7bT.js";import{bL as l,dj as O,bz as T}from"./164ad2e3.BcELPLd1.js";const y=C("ShopCashContext"),g=y.Provider,q=()=>m(y),B=()=>{const{shopPay:e}=f(),t=l(),n=O(),o=p().paymentLines;return d(()=>{const r=o.value,a=e.user.paymentMethods.value,i=e.session.selectedPaymentMethod.value;if(!t.value)return;const s=u(r);return s&&s!=="CREDIT_CARD"?s:n.value?.payment?u(r)==="CREDIT_CARD"?"CREDIT_CARD":b(i,a):u(r)})},b=(e,t)=>{if(!(!e&&!t.length))return e&&c(e)||P(t)?"APPLE_PAY":e&&S(e)||R(t)?"IDEAL":e&&h(e)||v(t)?"CUSTOM_ONSITE":"CREDIT_CARD"},A=new Set(["giftCard","freeOrder","storeCredit","redeemables"]);function U(e){return e!==null&&A.has(e)}function N(){const e=l(),t=D(),n=E("STORE_CREDIT"),o=I(["CUSTOM","STORE_CREDIT"]),r=T(),a=L().deferredTotal;return d(()=>{if(e.value){if(t.value)return"giftCard";if(n.value)return"storeCredit";if(o.value)return"redeemables"}else return"freeOrder";return r.value&&!a.value?.amount.amount?"deferred":null})}function M(e){return{value:e.amount.toString(),currency:e.currencyCode.toUpperCase()}}function G(e){if(!(e?.amount==null||!Number.isFinite(e.amount)||!e.currencyCode))return M({amount:e.amount,currencyCode:e.currencyCode})}export{y as S,N as a,q as b,g as c,G as d,U as i,M as t,B 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.