import{JD as e}from"./6ec9a0fa.rdcQt2v8.js";var t="shopify.checkout.payment_approvals.AgentPaymentApprovalEnteredEvent",r="shopify.buyer_activity.checkout.CreditCardNetworkSelectionEvent",o="shopify.buyer_activity.checkout.ShopPayExternalPayNowAttemptEvent",a="shopify.buyer_activity.checkout.ShopPayExternalMerchantMessageEvent";function n(t){return"universal_checkout"===t.scope?t:{shopId:e(t.shopId),checkoutToken:t.checkoutSessionIdentifier?e(t.checkoutSessionIdentifier):void 0,customerId:t.customerId?e(t.customerId):void 0}}function c(e,t){try{return{event:e,context:n(t),__brand:"PreparedEventRefineryPayload"}}catch(r){return{__brand:"PreparedEventRefineryPayload",error:r}}}export{a,r as i,n,o,t as r,c as t};