1var E=Object.defineProperty,m=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(n,r,a)=>r in n?E(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,s=(n,r)=>{for(var a in r||(r={}))h.call(r,a)&&f(n,a,r[a]);if(_)for(var a of _(r))w.call(r,a)&&f(n,a,r[a]);return n},c=(n,r)=>m(n,T(r));import{e as u,i as g,c as I,g as O,a as y}from"./index-CAfV-UFN.js";(function(){try{var n=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};n.SENTRY_RELEASE={id:"420f8684a1995e3f2f5e0ee465bb2f4c2d08a268"},n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[new n.Error().stack]=(function(r){for(var a=1;a<arguments.length;a++){var o=arguments[a];if(o!=null)for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])}return r})({},n._sentryModuleMetadata[new n.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(r){}})();function C(){const n=new URLSearchParams(u.initSearchParams);function r(){return g()&&u.app.isPWA?"pwa-ios":I()&&u.app.isPWA?"pwa-android":u.app.isAPP?"app":I()?"web-android":g()?"web-ios":"PC"}const a=r();function o(e=y.userId.toString()){let t={};try{t=JSON.parse(globalThis.localStorage.getItem("pixel_info")||"{}")}catch(p){}return{loginDomain:u.host,userId:e,platform:a,deviceId:n.get("deviceId")||"",launchId:n.get("launchId")||"",appId:n.get("appId")||"",code:y.currentInvitationCode||t.invite_code||"",ch:t.ch||""}}function i(e,t){const P=`/pwa/${e==="SIGNUP"||e==="LOGIN"||e==="SIGNUP_CLICK"?"signup-login":"payment"}/report/${e}`,S=Object.keys(t).map(l=>`${encodeURIComponent(l)}=${encodeURIComponent(t[l])}`).join("&");try{O().get(`${P}?${S}`)}catch(l){}}const d={login_success_track:({uid:e})=>{i("LOGIN",c(s({},o(e)),{accountType:"bc",result:"1"}))},sign_click:()=>{i("SIGNUP_CLICK",c(s({},o("")),{accountType:"bc",result:"0"}))},signup_registration_fail:({error:e})=>{let t=JSON.stringify(e);t.length>1e3&&(t=t.substring(0,1e3)),i("SIGNUP",c(s({},o("")),{accountType:"bc",result:"-1",reason:t}))},register_success_track:({uid:e})=>{i("SIGNUP",c(s({},o(e)),{accountType:"bc",result:"1"}))},account_third_login_success:({uid:e,account_type:t})=>{i("SIGNUP",c(s({},o(e)),{accountType:t,result:"1"}))},deposit_page_open:()=>{i("ENTER_DEPOSIT_PAGE",o())},deposit_page_enter:()=>{i("ENTER_DEPOSIT",o())},deposit_crypto_start:({currency:e,chain:t})=>{i("DEPOSIT_CRYPTO",c(s({},o()),{currency:e,channel:t}))},deposit_fiatpayment_confirm:({amount:e,currency:t,payment_method:p})=>{i("DEPOSIT_FIAT",c(s({},o()),{currency:t,channel:p,amount:e}))},deposit_recieved:({sales:e,order_id:t})=>{i("DEPOSIT_SUCCESS",c(s({},o()),{orderId:t,amount:e}))},deposit_window_open:({timestamp:e,extras:t})=>{i("PAYMENT_WINDOW_OPEN",c(s(s({},o()),t),{timestamp:e}))},deposit_window_close:({timestamp:e,duration:t,extras:p})=>{i("PAYMENT_WINDOW_CLOSED",c(s(s({},o()),p),{timestamp:e,duration:t}))}};return({event:e,data:t})=>{var p;return(p=d[e])==null?void 0:p.call(d,t)}}export{C as createAnalyticsHook};
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.