import{g as e,k as t,x as n}from"./chunk.register_Cnn1s0Rw.esm.js";const o=new Set(["contextCode","shopPayAccessToken"]);function r(e){if(!e||"object"!=typeof e||Array.isArray(e))return e;const t={...e};for(const e of o)delete t[e];return t}function s(){const{notify:o}=e(),{element:s}=n();return t(((e,t,n=!1)=>{s?s.dispatchEvent(new CustomEvent(e,{bubbles:n,cancelable:!1,composed:!0,detail:r(t)})):o(new Error("dispatchEvent called without a reference to the custom element."))}),[s,o])}export{s as t}; //# sourceMappingURL=chunk.useDispatchEvent_D243iQEj.esm.js.map