import{t as n}from"./chunk.window_CAbVMZox.esm.js";import{O as r,_ as i}from"./chunk.register_cLcgCW8c.esm.js";function o(){const{notify:o}=i();return r((({recognized:r})=>{try{n.Shopify||(n.Shopify={}),n.Shopify.SignInWithShop||(n.Shopify.SignInWithShop={}),n.Shopify.SignInWithShop.User||(n.Shopify.SignInWithShop.User={}),n.Shopify.SignInWithShop.User.recognized=r,n.dispatchEvent(new CustomEvent("shop-user-recognition-changed",{detail:{recognized:r}}))}catch(n){o(function(n){var r;if(n instanceof Error)return n;if("string"==typeof n)return new Error(n);try{return new Error(null!==(r=JSON.stringify(n))&&void 0!==r?r:String(n))}catch(n){return new Error("Unserializable thrown value")}}(n))}}),[o])}export{o as t}; //# sourceMappingURL=chunk.useUserRecognitionSignal_Cxwlw7Gj.esm.js.map