PageSourceSearch

https://copenhagenbamboo.se/cdn/shopifycloud/checkout-web/assets/c1/checkout-as-guest-amazon-pay.BDkrfUVE.js

js copenhagenbamboo.se collected 2026-09-27 06:38:48 UTC 1,577 bytes, 1 lines download raw bytes

1import{q as u}from"./esnext-vendor.B9Da21W6.js";import{fE as A,ae as C,a6 as L,mB as P,S as v,mC as y}from"./addresses-is-address-empty.Bn2lNY_L.js";import{g as h,im as E,fB as U}from"./hydrate.DZ4YTm7p.js";function R(e){return e?.assets?.main?.url!=null}function l(e,a){const t=new WebSocket(e),o=({data:r})=>{try{const{event:s,data:n}=JSON.parse(r);if(s!=="update")return;a(n)}catch(s){console.log(`error parsing update message from ${e} : ${s}`)}};return t.addEventListener("message",o),()=>{t.removeEventListener("message",o),t.close()}}function S(e,a){const t=new Map,o=new Map;return e.extensions.forEach(({uuid:r,assets:{main:{lastUpdated:s}},localization:n})=>{t.set(r,s),n&&o.set(r,n.lastUpdated)}),l(e.socket.url,({extensions:r})=>{r.forEach(({uuid:s,assets:{main:{lastUpdated:n}},localization:i})=>{const m=t.get(s),d=o.get(s),p=n&&m!==n,f=i?.lastUpdated&&d!==i.lastUpdated;let c;p&&(t.set(s,n),c=()=>a(s)),f&&(o.set(s,i.lastUpdated),c=()=>a(s,i)),c&&c()})})}function W(e,a){const{uuid:t,socketUrl:o}=e,r=l(o,({extensions:s})=>{s.find(({uuid:i})=>i===t)&&(r(),a())})}function x(){const{clearForcedCheckoutLayout:e}=h(A),{inMemoryAmazonPayParts:{serializedAmazonParams:a,buyerDetails:t}}=C(),o=u(()=>{e({wallet:L.AmazonPay}),P(a),t.value={loading:!1,error:!1,details:void 0}},[e,a,t]);return E({shouldResetCustomerInfo:!0,skipRedirect:!0,shouldRemovePaymentLine:!0,onClick:o})}function z(){const{isOnePage:e}=v().checkout.configuration.layout,a=y(),t=U();return u(()=>{e.value?t({shouldResetCustomerInfo:!0}):a()},[e,a,t])}export{z as a,W as b,R as i,S as s,x 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.