PageSourceSearch

https://www.grasswarehouse.co.uk/cdn/shopifycloud/checkout-web/ass…/checkout-as-guest-amazon-pay.8gnTMI4a.js

js grasswarehouse.co.uk collected 2026-09-29 12:35:01 UTC 1,387 bytes, 1 lines download raw bytes

1import{q as r}from"./esnext-vendor.7EcvH7tF.js";import{fx as o,ac as u,a4 as i,mm as m,Q as l,mn as f}from"./utilities-previous.BNOUhCqt.js";import{g as c,ix as y,fG as p}from"./hydrate.CvWSYK3c.js";function C(t){return!(!t||t.type!=="customOnsite")}function L(t,n,e){return!!(C(t)||(e?.paymentMethod==="IDEAL"||e?.paymentMethod==="CUSTOM_ONSITE"&&"paymentBrands"in e&&e.paymentBrands?.some(a=>a.toLowerCase()==="ideal"))&&n?.some(d)||e?.paymentMethod==="CUSTOM_ONSITE"&&"paymentBrands"in e&&n?.some(a=>A(a,e.paymentBrands??[])))}function d(t){return t.type==="local"?t.name==="IDEAL":t.type!=="customOnsite"?!1:(t.paymentBrands?.map(e=>e.toLowerCase())??[]).includes("ideal")}function A(t,n){if(t.type!=="customOnsite")return!1;const e=n.map(s=>s.toLowerCase());if(e.length===0)return!1;const a=t.paymentBrands?.map(s=>s.toLowerCase())??[];return e.length===a.length&&e.every(s=>a.includes(s))}function B(){const{clearForcedCheckoutLayout:t}=c(o),{inMemoryAmazonPayParts:{serializedAmazonParams:n,buyerDetails:e}}=u(),a=r(()=>{t({wallet:i.AmazonPay}),m(n),e.value={loading:!1,error:!1,details:void 0}},[t,n,e]);return y({shouldResetCustomerInfo:!0,skipRedirect:!0,shouldRemovePaymentLine:!0,onClick:a})}function S(){const{isOnePage:t}=l().checkout.configuration.layout,n=f(),e=p();return r(()=>{t.value?e({shouldResetCustomerInfo:!0}):n()},[t,n,e])}export{S as a,C as i,L as s,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.