PageSourceSearch

https://alternatehistories.com/cdn/shopifycloud/checkout-web/assets/c1/5fda1420.KYpufQ--.js

js alternatehistories.com collected 2026-10-02 10:16:49 UTC 3,105 bytes, 1 lines download raw bytes

1import{fA as e,n3 as o}from"./4c290a1e.C6TDJ9Fn.js";import{m as t}from"./2c1ab0fe.GMbxnz74.js";function n(e,o){try{if(window.webkit&&"function"==typeof window.webkit.messageHandlers?.mobileCheckoutSdk?.postMessage){const t={name:o.handlerId,body:JSON.stringify(o.body)};return e.log("mobile_checkout_sdk_client_message_posted","Posting message to webkit client.",{handleId:o.handlerId}),s(e,o,"webkit"),window.webkit.messageHandlers.mobileCheckoutSdk.postMessage(JSON.stringify(t)),!0}return window.android&&"function"==typeof window.android.postMessage?(e.log("mobile_checkout_sdk_client_message_posted","Posting message to android client."),s(e,o,"android"),window.android.postMessage(JSON.stringify({name:o.handlerId,body:JSON.stringify(o.body)})),!0):(e.log("mobile_checkout_sdk_client_no_message_posted","Neither window.android or window.webkit postMessage found, cannot post message."),!1)}catch(t){return e.log("mobile_checkout_sdk_client_no_message_posted",`Error received when posting message to CSK', ${o}, ${t}`),!1}}function s(e,o,t){if("completed"!==o.handlerId||null==o.body)return;const n=o.body,s=n.orderDetails?.cart,r=function(e){return Array.isArray(e?.lines)?e.lines.length:void 0}(s);0===r&&e.log("mobile_checkout_sdk_completed_event_empty_cart_lines","Mobile Checkout SDK completed event has an empty cart lines array.",{client:t,cartPresent:null!=s},{exportImmediately:!0})}function r(e,o,t){const n=window.webkit?.messageHandlers?.CheckoutSheetProtocolConsumer,s=[n,window.CheckoutSheetProtocolConsumer,t];for(const i of s)if(i&&"function"==typeof i?.postMessage)try{const t={name:o.handlerId,body:JSON.stringify(o.body)};return e.log("checkout_sheet_protocol_client_message_posted","Posting message to checkout sheet protocol consumer.",{handlerId:o.handlerId}),i.postMessage(JSON.stringify(t)),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(o.handlerId),status:"success"}}),!0}catch(r){return e.log("checkout_sheet_protocol_client_message_posting_failed","Error posting message to checkout sheet protocol consumer",{handlerId:o.handlerId,error:r instanceof Error?r.message:String(r)}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(o.handlerId),status:"failed"}}),console.info("Error received when posting message to checkout sheet protocol consumer",o,r),!1}return e.log("checkout_sheet_protocol_client_no_consumer_found","No checkout sheet protocol consumer found",{handlerId:o.handlerId}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(o.handlerId),status:"no_consumer"}}),!1}function i(){const e=window.opener||(window.parent===window?void 0:window.parent);return e?{postMessage(o){e.postMessage({_ecp:"2025-10",data:o},"*")}}:void 0}function a({shop:t,checkout:n,paymentMethods:s}){return e(s)&&t.hasFlagEnabled(o)&&n.configuration.layout.isOnePage.value&&!n.isCheckoutLayoutForcedToOnePage.value}function c(e){t(()=>{document.title=e},[e])}export{r as a,i as g,a as i,n as p,c 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.