1import{a as o,b as d,g as c}from"./index-D5gHkNn-.js";(function(){try{var a=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};a.SENTRY_RELEASE={id:"8c3b9aa2b95acaad15d7da0cf7f36f5b8cfcd6d1"},a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(n){for(var l=1;l<arguments.length;l++){var t=arguments[l];if(t!=null)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])}return n})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(n){}})();const r=a=>{var n;if(!((n=o)!=null&&n.cwalletId))d.emit("open-cwalletbind");else{const l=window.open("about:blank");return c().post("/account/open/cwallet/challenge").then(t=>{if(t!=null&&t.challengeUrl&&(t!=null&&t.challenge)&&l&&(t!=null&&t.redirectUrl)){const e=a?t.redirectUrl+a:t.redirectUrl;l.location.href=(t==null?void 0:t.challengeUrl)+`login?auth_code=${t.challenge}&backurl=${encodeURIComponent(e)}`}else window.open("https://my.cwallet.com/")})}};export{r as default};
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.