PageSourceSearch

https://www.dondrummstudios.com/cdn/shopifycloud/checkout-web/assets/c1/7ee73f43.BDuSjxVB.js

js dondrummstudios.com collected 2026-10-02 10:54:14 UTC 2,398 bytes, 1 lines download raw bytes

1import{T as o,u as e,X as n,E as t,m as s,t as a,s as r}from"./2c1ab0fe.GMbxnz74.js";import{al as i,am as l,a1 as c,an as u,ao as p,ap as h,S as y,W as d,aq as f,_ as P}from"./4c290a1e.C6TDJ9Fn.js";const m=i("CheckoutSheetProtocolSchemaContext");function v(o,e){o.postMessageToConsumer(e)}var w=(o=>(o.Continue="continue",o.Cancel="cancel",o))(w||{});class T{constructor(){this.listeners=new Set}listen(o){return this.listeners.add(o),()=>{this.listeners.delete(o)}}emit(o="continue"){this.listeners.forEach(e=>e(o))}}const _=n(void 0);function E(){const o=t(_);if(null==o)throw new l("Missing CheckoutProtocolEventContext");return o}function S(o){const e=E();s(()=>e.listen(o),[o,e])}function g({children:n}){const t=o(()=>new T,[]);return e(_.Provider,{value:t,children:n})}const b=i("MobileCheckoutSdkSchemaContext");function C(){const o=t(m),e=t(b);if(!o&&!e)throw new l("No Checkout Sheet Protocol or Mobile Checkout SDK Schema context found");return o||e}const M=[{brand:"APPLE_PAY",flowType:"applePay"},{brand:"GOOGLE_PAY",flowType:"googlePay"},{brand:"PAYPAL_EXPRESS",flowType:"payPal"},{brand:"SHOPIFY_INSTALLMENTS",flowType:"shopifyInstallments"},{brand:c.AmazonPay,flowType:"amazonPay"},{brand:c.BuyWithPrime,flowType:"buyWithPrime"}];function k(){const{checkout:{identity:o},router:e,shopPay:n}=y(),t=d().paymentLines;return a(()=>{const s="shopPay"===o.current.value,a=e.currentUrlMatches("/shoppay_login"),r=t.value,i=n.session.paymentMethodOption.value,l=[{condition:a,flowType:"shopPayLogin"},{condition:"SHOPIFY_INSTALLMENTS"===i?.name.toUpperCase(),flowType:"shopifyInstallments"},{condition:s,flowType:"shopPay"},...M.map(({brand:o,flowType:e})=>{return{condition:(n=o,Object.values(c).includes(n)?Boolean(f(r,o)):Boolean(P(r,o))),flowType:e};var n})];return l.find(({condition:o})=>o)?.flowType??"regular"})}const L=()=>{const{schema:{postMessageHandler:o}}=C(),{observability:e}=y();return{handleViolationEvent:r((n,t)=>{e.log("checkout_sheet_protocol_violation_event_emitted","Emitting event: `violation`."),o({type:"violation",flowType:t,violationErrors:n})},[o,e]),handleJourneyProgressionErrorEvent:r((n,t)=>{e.log("checkout_sheet_protocol_journey_progression_error_event_emitted","Emitting event: `journeyProgressionError`."),o({type:"journeyProgressionError",flowType:t,reasons:n})},[o,e])}};export{m as C,w as E,b as M,g as P,C as a,k as b,L as c,S as d,v as p,E 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.