PageSourceSearch

https://nopalera.co/cdn/shopifycloud/checkout-web/assets/c1/87bfafec.Beljf8If.js

js nopalera.co collected 2026-10-02 16:36:31 UTC 1,363 bytes, 1 lines download raw bytes

1import{al as e,aS as a,S as r,W as t,mj as s,bz as n,m$ as u,bQ as o,n0 as d,hV as l,n1 as C,jx as c,jy as i,bO as m,T as f}from"./4c290a1e.2OXqqQwu.js";import{t as v}from"./2c1ab0fe.GMbxnz74.js";import{bX as T,dC as D,bD as R}from"./164ad2e3.BmqNdq2P.js";const p=e("ShopCashContext"),y=p.Provider,E=()=>a(p),S=()=>{const{shopPay:e}=r(),a=T(),n=D(),u=t().paymentLines;return v(()=>{const r=u.value,t=e.user.paymentMethods.value,o=e.session.selectedPaymentMethod.value;if(!a.value)return;const d=s(r);return d&&"CREDIT_CARD"!==d?d:n.value?.payment?"CREDIT_CARD"===s(r)?"CREDIT_CARD":b(o,t):s(r)})},b=(e,a)=>{if(e||a.length)return e&&n(e)||u(a)?"APPLE_PAY":e&&o(e)||d(a)?"IDEAL":e&&l(e)||C(a)?"CUSTOM_ONSITE":"CREDIT_CARD"},h=new Set(["giftCard","freeOrder","storeCredit","redeemables"]);function I(e){return null!==e&&h.has(e)}function O(){const e=T(),a=c(),r=i("STORE_CREDIT"),t=m(["CUSTOM","STORE_CREDIT"]),s=R(),n=f().deferredTotal;return v(()=>e.value?a.value?"giftCard":r.value?"storeCredit":t.value?"redeemables":s.value&&!n.value?.amount.amount?"deferred":null:"freeOrder")}function _(e){return{value:e.amount.toString(),currency:e.currencyCode.toUpperCase()}}function A(e){if(null!=e?.amount&&Number.isFinite(e.amount)&&e.currencyCode)return _({amount:e.amount,currencyCode:e.currencyCode})}export{p as S,O as a,E as b,y as c,A as d,I as i,_ as t,S 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.