PageSourceSearch

https://www.cowpokesonline.com/cdn/shopifycloud/checkout-web/asset…ShopPayNewSignupLoginExperiment.dSEXfkxF.js

js cowpokesonline.com collected 2026-09-29 19:04:11 UTC 2,227 bytes, 1 lines download raw bytes

1import{eZ as f,gY as y,kg as a,eX as S,e_ as p,Q as k}from"./utilities-previous.C42MP_Mw.js";function w(t){return Array.isArray(t?.lines)?t.lines.length:void 0}function O(t,e){try{if(window.webkit&&typeof window.webkit.messageHandlers?.mobileCheckoutSdk?.postMessage=="function"){const n={name:e.handlerId,body:JSON.stringify(e.body)};return t.log("mobile_checkout_sdk_client_message_posted","Posting message to webkit client.",{handleId:e.handlerId}),_(t,e,"webkit"),window.webkit.messageHandlers.mobileCheckoutSdk.postMessage(JSON.stringify(n)),!0}return window.android&&typeof window.android.postMessage=="function"?(t.log("mobile_checkout_sdk_client_message_posted","Posting message to android client."),_(t,e,"android"),window.android.postMessage(JSON.stringify({name:e.handlerId,body:JSON.stringify(e.body)})),!0):(t.log("mobile_checkout_sdk_client_no_message_posted","Neither window.android or window.webkit postMessage found, cannot post message."),!1)}catch(n){return t.log("mobile_checkout_sdk_client_no_message_posted",`Error received when posting message to CSK', ${e}, ${n}`),!1}}function _(t,e,n){if(e.handlerId!=="completed"||e.body==null)return;const o=e.body.orderDetails?.cart;w(o)===0&&t.log("mobile_checkout_sdk_completed_event_empty_cart_lines","Mobile Checkout SDK completed event has an empty cart lines array.",{client:n,cartPresent:o!=null},{exportImmediately:!0})}const c=a.Control,g="shop_pay_new_signup_login_variant",E=["draftOrder","simulated"];function C({shop:t,checkout:e,source:n,router:s,client:o},{url:r=s.currentUrl.value}={}){const i=e.identity.current.value==="shopPay",d=r.searchParams.get(f),u=t.hasFlagEnabled(y),h=e.proposal.negotiated.fields.buyerIdentity.value?.customerProfile!=null,m=d!==p.ShopPayAsPaymentMethod&&d!==p.ShopPayInstallmentsAsPaymentMethod;if(!(i&&m&&!E.includes(n.type)&&(!h||u)))return c;const l=b({client:o},r);return l||(S(r.search)?c:u?a.UnauthenticatedCheckout:c)}function b({client:t},e){const n=Object.values(a),s=e.searchParams.get(g),o=n.find(i=>i===s);if(o)return o;const r=t.cookies.get(g);return n.find(i=>i===r)}const N=[a.UnauthenticatedCheckout];function A(){const t=k(),e=t.router.currentUrl.value;return C(t,{url:e})}export{N as U,O as p,A 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.