PageSourceSearch

https://roomlytham.co.uk/cdn/shopifycloud/checkout-web/assets/c1/bf513f9c.DfVLzm1y.js

js roomlytham.co.uk collected 2026-10-10 00:54:45 UTC 1,576 bytes, 1 lines download raw bytes

1import{ao as e,u as a,e as t,m7 as s,bo as r,oG as o,bF as n,oH as u,hz as i,oI as l,kT as c,jN as d,n_ as f,bD as m}from"./4b4bc88f.DkycdxSK.js";import{k as p}from"./2c1ab0fe.qpvfywqb.js";import{cg as v,dR as C,c4 as h}from"./164ad2e3.DcJn775M.js";const R=e("ShopCashContext"),T=R.Provider,D=()=>a(R),E=()=>{const{shopPay:e,checkout:{negotiator:a}}=t(),r=v(),o=C(),n=a.parts.paymentLines;return p(()=>{const a=n.value,t=e.user.paymentMethods.value,u=e.session.selectedPaymentMethod.value;if(!r.value)return;const i=s(a);return i&&"CREDIT_CARD"!==i?i:o.value?.payment?"CREDIT_CARD"===s(a)?"CREDIT_CARD":b(u,t):s(a)})},b=(e,a)=>{if(e||a.length)return e&&r(e)||o(a)?"APPLE_PAY":e&&n(e)||u(a)?"IDEAL":e&&i(e)||l(a)?"CUSTOM_ONSITE":"CREDIT_CARD"};function y({checkout:e,shopPay:a}){return"shopPay"===e.identity.current.value&&!a.isExternal&&"web"===a.app.config.surface&&!a.app.config.version&&!c(e.proposal.negotiated.fields.customAttributes.value)}function P(e){return"treatment"===e.shopPay.installments.paymentMethodRequirementRemovalVariant.value&&"authenticated_user"===e.shopPay.user.flow.value&&y(e)}const _=new Set(["giftCard","freeOrder","storeCredit","redeemables"]);function g(e){return null!==e&&_.has(e)}function I(){const e=v(),a=d(),s=f("STORE_CREDIT"),r=m(["CUSTOM","STORE_CREDIT"]),o=h(),{checkout:{negotiator:n}}=t(),u=n.current.fields.deferredTotal;return p(()=>e.value?a.value?"giftCard":s.value?"storeCredit":r.value?"redeemables":o.value&&!u.value?.amount.amount?"deferred":null:"freeOrder")}export{R as S,I as a,D as b,P as c,T as d,y as e,g as i,E 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.