PageSourceSearch

https://shop.voiceinsport.com/cdn/shopifycloud/checkout-web/assets…out-sdk-MobileCheckoutSdkClient.CVSnUTrf.js

js voiceinsport.com collected 2026-09-24 09:53:44 UTC 3,005 bytes, 1 lines download raw bytes

1import{fD as d}from"./addresses-is-address-empty.-MuOhIyI.js";const u={ACCEPTED:"yes",DECLINED:"no",NO_INTERACTION:"no_interaction",NO_VALUE:""},c="/shoppay_login";function a(o){return o.replace(/\/+$/,"").endsWith(c)}function _(o){return o.searchParams.has(d)&&a(o.pathname)}const r=50;function l(o){return Array.isArray(o?.lines)?o.lines.length:void 0}class p{constructor(e){this.customEventNamespace="MobileCheckoutSdk",this.#t=new Map,this.#n=new Map,this.#e=e}#e;#t;#n;postMessageToConsumer(e){try{if(window.webkit&&typeof window.webkit.messageHandlers?.mobileCheckoutSdk?.postMessage=="function"){const t={name:e.handlerId,body:JSON.stringify(e.body)};return this.#e.log("mobile_checkout_sdk_client_message_posted","Posting message to webkit client.",{handleId:e.handlerId}),this.#o(e,"webkit"),window.webkit.messageHandlers.mobileCheckoutSdk.postMessage(JSON.stringify(t)),!0}return window.android&&typeof window.android.postMessage=="function"?(this.#e.log("mobile_checkout_sdk_client_message_posted","Posting message to android client."),this.#o(e,"android"),window.android.postMessage(JSON.stringify({name:e.handlerId,body:JSON.stringify(e.body)})),!0):(this.#e.log("mobile_checkout_sdk_client_no_message_posted","Neither window.android or window.webkit postMessage found, cannot post message."),!1)}catch(t){return this.#e.log("mobile_checkout_sdk_client_no_message_posted",`Error received when posting message to CSK', ${e}, ${t}`),!1}}#o(e,t){if(e.handlerId!=="completed"||e.body==null)return;const s=e.body.orderDetails?.cart;l(s)===0&&this.#e.log("mobile_checkout_sdk_completed_event_empty_cart_lines","Mobile Checkout SDK completed event has an empty cart lines array.",{client:t,cartPresent:s!=null},{exportImmediately:!0})}addEventListener(e,t){window.addEventListener(`${this.customEventNamespace}.${e}`,t,!1);let n=this.#t.get(e);n==null&&(n=new Set,this.#t.set(e,n)),n.add(t);const s=this.#n.get(e);if(s?.length){this.#n.delete(e),this.#e.log("mobile_checkout_sdk_client_message_replayed",`Replaying ${s.length} buffered '${e}' message(s) on first listener attach.`,{messageKey:e,queueDepth:s.length});for(const i of s)window.dispatchEvent(new CustomEvent(`${this.customEventNamespace}.${e}`,i))}}removeEventListener(e,t){window.removeEventListener(`${this.customEventNamespace}.${e}`,t);const n=this.#t.get(e);n!=null&&(n.delete(t),n.size===0&&this.#t.delete(e))}postMessage(e,t){const n=`${this.customEventNamespace}.${e}`;if((this.#t.get(e)?.size??0)===0){const i=this.#n.get(e)??[];i.length>=r&&(i.shift(),this.#e.log("mobile_checkout_sdk_client_message_buffer_overflow",`Inbound message buffer for '${e}' exceeded ${r} entries; dropping oldest.`,{messageKey:e,cap:r})),i.push(t),this.#n.set(e,i),this.#e.log("mobile_checkout_sdk_client_message_buffered",`Buffered '${e}' message — no listener attached yet.`,{messageKey:e,queueDepth:i.length});return}window.dispatchEvent(new CustomEvent(n,t))}dispatchMessage(e,t){this.postMessage(e,t)}}export{u as C,p as M,c as S,a,_ as i};

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.