@orbit-software/sdk 1.93.3 → 1.93.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/sdk.mjs CHANGED
@@ -16,7 +16,7 @@ import * as React from "react";
16
16
  import React__default, { createContext, useContext, useState, useRef, useEffect, useCallback, useLayoutEffect, useMemo, forwardRef, isValidElement, useId as useId$1, useInsertionEffect, Children, Fragment, createElement, Component, version as version$1, memo as memo$1, Suspense } from "react";
17
17
  import * as ReactDOM from "react-dom";
18
18
  import ReactDOM__default, { createPortal } from "react-dom";
19
- const version = "1.93.3";
19
+ const version = "1.93.7";
20
20
  function getDefaultExportFromCjs$3(e) {
21
21
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
22
22
  }
@@ -11851,7 +11851,7 @@ function useAnimate() {
11851
11851
  e.animations.forEach((i) => i.stop()), e.animations.length = 0;
11852
11852
  }), [e, t];
11853
11853
  }
11854
- var define_process_env_default$7 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
11854
+ var define_process_env_default$7 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
11855
11855
  const ASSETS_BASE_URL = define_process_env_default$7.ASSETS_BASE_URL;
11856
11856
  function assetUrl(e) {
11857
11857
  return `${ASSETS_BASE_URL}/${e}`;
@@ -19474,7 +19474,7 @@ var Ot, jr, Removable = (jr = class {
19474
19474
  clearGcTimeout() {
19475
19475
  U(this, Ot) && (timeoutManager.clearTimeout(U(this, Ot)), ge(this, Ot, void 0));
19476
19476
  }
19477
- }, Ot = new WeakMap(), jr), define_process_env_default$6 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, kt, Gt, st, Lt, Xe, er, Dt, ot, dt, Br, Query = (Br = class extends Removable {
19477
+ }, Ot = new WeakMap(), jr), define_process_env_default$6 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, kt, Gt, st, Lt, Xe, er, Dt, ot, dt, Br, Query = (Br = class extends Removable {
19478
19478
  constructor(t) {
19479
19479
  super();
19480
19480
  we(this, ot);
@@ -19776,7 +19776,7 @@ function getDefaultState$1(e) {
19776
19776
  fetchStatus: "idle"
19777
19777
  };
19778
19778
  }
19779
- var rt, De, tr, Qe, Nt, zt, ht, Et, rr, Wt, Ht, $t, Ft, wt, qt, je, Zt, fr, dr, hr, pr, mr, gr, vr, Zr, Vr, QueryObserver = (Vr = class extends Subscribable {
19779
+ var rt, De, tr, Qe, Nt, zt, ht, Et, rr, Wt, Ht, $t, Ft, wt, qt, je, Zt, fr, dr, hr, pr, mr, gr, vr, Yr, Vr, QueryObserver = (Vr = class extends Subscribable {
19780
19780
  constructor(t, i) {
19781
19781
  super();
19782
19782
  we(this, je);
@@ -19986,7 +19986,7 @@ var rt, De, tr, Qe, Nt, zt, ht, Et, rr, Wt, Ht, $t, Ft, wt, qt, je, Zt, fr, dr,
19986
19986
  return U(this, Qe)[u] !== t[u] && l.has(u);
19987
19987
  });
19988
19988
  };
19989
- Me(this, je, Zr).call(this, { listeners: s() });
19989
+ Me(this, je, Yr).call(this, { listeners: s() });
19990
19990
  }
19991
19991
  onQueryUpdate() {
19992
19992
  this.updateResult(), this.hasListeners() && Me(this, je, pr).call(this);
@@ -20028,7 +20028,7 @@ var rt, De, tr, Qe, Nt, zt, ht, Et, rr, Wt, Ht, $t, Ft, wt, qt, je, Zt, fr, dr,
20028
20028
  return;
20029
20029
  const i = U(this, De);
20030
20030
  ge(this, De, t), ge(this, tr, t.state), this.hasListeners() && (i == null || i.removeObserver(this), t.addObserver(this));
20031
- }, Zr = function(t) {
20031
+ }, Yr = function(t) {
20032
20032
  notifyManager.batch(() => {
20033
20033
  t.listeners && this.listeners.forEach((i) => {
20034
20034
  i(U(this, Qe));
@@ -35208,7 +35208,7 @@ function getAnalytics(e) {
35208
35208
  const s = resolveConfig(e), o = createInstance(s);
35209
35209
  return t[KEY] = { instance: o, config: s }, o;
35210
35210
  }
35211
- var define_process_env_default$5 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, win;
35211
+ var define_process_env_default$5 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, win;
35212
35212
  if (typeof window > "u") {
35213
35213
  var loc = {
35214
35214
  hostname: ""
@@ -47779,9 +47779,9 @@ function init_as_module(e) {
47779
47779
  function loadNoop(e, t) {
47780
47780
  t();
47781
47781
  }
47782
- var mixpanel = init_as_module(loadNoop), define_process_env_default$4 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
47782
+ var mixpanel = init_as_module(loadNoop), define_process_env_default$4 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
47783
47783
  const BASE_URL = define_process_env_default$4.BASE_URL;
47784
- var define_process_env_default$3 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
47784
+ var define_process_env_default$3 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
47785
47785
  const MIXPANEL_TOKEN = "b0d7c97039e244366388b9a210c0b15a", ANALYTICS_ENDPOINT = `${BASE_URL.replace(/\/sdk\/?$/, "")}/api/analytics/events`;
47786
47786
  function getBaseAnalyticsParams() {
47787
47787
  return {
@@ -47795,24 +47795,27 @@ mixpanel.init(MIXPANEL_TOKEN, {
47795
47795
  track_pageview: !0,
47796
47796
  persistence: "localStorage"
47797
47797
  });
47798
- const biAnalytics = getAnalytics({
47799
- endpoint: ANALYTICS_ENDPOINT,
47800
- getHeaders: () => {
47801
- var i, s;
47802
- const e = (s = (i = window.Telegram) == null ? void 0 : i.WebApp) == null ? void 0 : s.initData, t = {};
47803
- return e && (t["X-Auth"] = e), window.game_id && (t["X-Game-Id"] = window.game_id), Object.keys(t).length ? t : null;
47804
- },
47805
- debug: define_process_env_default$3.NODE_ENV !== "production"
47806
- });
47798
+ let biAnalytics = null;
47799
+ function initAnalytics() {
47800
+ return biAnalytics || (biAnalytics = getAnalytics({
47801
+ endpoint: ANALYTICS_ENDPOINT,
47802
+ getHeaders: () => {
47803
+ var i, s;
47804
+ const e = (s = (i = window.Telegram) == null ? void 0 : i.WebApp) == null ? void 0 : s.initData, t = {};
47805
+ return e && (t["X-Auth"] = e), window.game_id && (t["X-Game-Id"] = window.game_id), Object.keys(t).length ? t : null;
47806
+ },
47807
+ debug: define_process_env_default$3.NODE_ENV !== "production"
47808
+ }), biAnalytics);
47809
+ }
47807
47810
  function getBiSessionId() {
47808
- return biAnalytics.getSessionId();
47811
+ return initAnalytics().getSessionId();
47809
47812
  }
47810
47813
  class AnalyticsServiceImpl {
47811
47814
  identify(t) {
47812
- mixpanel.identify(String(t)), biAnalytics.identify(Number(t));
47815
+ mixpanel.identify(String(t)), initAnalytics().identify(Number(t));
47813
47816
  }
47814
47817
  track(t, i = {}) {
47815
- mixpanel.track(t, i), biAnalytics.track(t, i);
47818
+ mixpanel.track(t, i), initAnalytics().track(t, i);
47816
47819
  }
47817
47820
  }
47818
47821
  const analytics = new AnalyticsServiceImpl(), SESSION_HEADER = "X-Session-Id";
@@ -48371,14 +48374,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48371
48374
  };
48372
48375
  };
48373
48376
  function ne(Z) {
48374
- var B = Z ? p(Z) : m, G = B.device, oe = B.browser, ue = B.engine, ke = B.os, He = B.ua, tt = q(G.type), or = tt.isBrowser, Qn = tt.isMobile, Zn = tt.isTablet, Mr = tt.isSmartTV, Or = tt.isConsole, kr = tt.isWearable, Lr = tt.isEmbedded;
48377
+ var B = Z ? p(Z) : m, G = B.device, oe = B.browser, ue = B.engine, ke = B.os, He = B.ua, tt = q(G.type), or = tt.isBrowser, Kn = tt.isMobile, Yn = tt.isTablet, Mr = tt.isSmartTV, Or = tt.isConsole, kr = tt.isWearable, Lr = tt.isEmbedded;
48375
48378
  if (or)
48376
48379
  return z(or, oe, ue, ke, He);
48377
48380
  if (Mr)
48378
48381
  return te(Mr, ue, ke, He);
48379
48382
  if (Or)
48380
48383
  return X(Or, ue, ke, He);
48381
- if (Qn || Zn)
48384
+ if (Kn || Yn)
48382
48385
  return J(tt, G, ke, He);
48383
48386
  if (kr)
48384
48387
  return se(kr, ue, ke, He);
@@ -48552,7 +48555,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48552
48555
  isSamsungBrowser: it(oe)
48553
48556
  };
48554
48557
  }
48555
- var br = Re(c), xr = me(c), Sr = ae(c), tn = Se(c), rn = Oe(a) || Ue(), nn = he(a), sr = ye(c) || Ue(), Er = pe(c), wr = _e(c) || Ue(), Cr = xe(c), sn = xe(c), Tr = Ie(f), Ar = Fe(f), Rr = Le(f) || Ue(), an = fe(a), ln = be(a), un = de(a), fn = ze(a), Ir = Je(a), dn = Ee(f), hn = ce(f), pn = Pe(a), mn = Be(a), gn = Ve(a), vn = Ae(c), yn = ve(c), _n = Ye(u), bn = It(u), xn = lt(d), Sn = Ce(a) || qe(d), En = le(a), wn = Te(c), Cn = Pt(), Tn = Ue(), An = et(), Rn = Qt(), In = We(), Pn = qe(d), Mn = Ce(a) && !qe(d), On = $e(f), kn = Ne(f), Ln = Ke(a), Dn = it(a), Nn = function(B) {
48558
+ var br = Re(c), xr = me(c), Sr = ae(c), Xr = Se(c), Jr = Oe(a) || Ue(), Qr = he(a), sr = ye(c) || Ue(), Er = pe(c), wr = _e(c) || Ue(), Cr = xe(c), Zr = xe(c), Tr = Ie(f), Ar = Fe(f), Rr = Le(f) || Ue(), tn = fe(a), rn = be(a), nn = de(a), sn = ze(a), Ir = Je(a), an = Ee(f), ln = ce(f), un = Pe(a), fn = Be(a), dn = Ve(a), hn = Ae(c), pn = ve(c), mn = Ye(u), gn = It(u), vn = lt(d), yn = Ce(a) || qe(d), _n = le(a), bn = Te(c), xn = Pt(), Sn = Ue(), En = et(), wn = Qt(), Cn = We(), Tn = qe(d), An = Ce(a) && !qe(d), Rn = $e(f), In = Ne(f), Pn = Ke(a), Mn = it(a), On = function(B) {
48556
48559
  if (!B || typeof B != "string") {
48557
48560
  console.error("No valid user agent string was provided");
48558
48561
  return;
@@ -48565,48 +48568,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48565
48568
  engine: He,
48566
48569
  ua: tt
48567
48570
  });
48568
- }, $n = function(B) {
48571
+ }, kn = function(B) {
48569
48572
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48570
48573
  return Tr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48571
- }, Fn = function(B) {
48574
+ }, Ln = function(B) {
48572
48575
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48573
48576
  return Cr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48574
- }, jn = function(B) {
48577
+ }, Dn = function(B) {
48575
48578
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48576
48579
  return Ir ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48577
- }, Bn = function(B) {
48580
+ }, Nn = function(B) {
48578
48581
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48579
48582
  return Rr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48580
- }, Vn = function(B) {
48583
+ }, $n = function(B) {
48581
48584
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48582
48585
  return sr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48583
- }, Un = function(B) {
48586
+ }, Fn = function(B) {
48584
48587
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48585
48588
  return wr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48586
- }, Gn = function(B) {
48589
+ }, jn = function(B) {
48587
48590
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48588
48591
  return Ar ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48589
- }, zn = function(B) {
48592
+ }, Bn = function(B) {
48590
48593
  var G = B.renderWithFragment, oe = B.children;
48591
48594
  B.viewClassName, B.style;
48592
48595
  var ue = $(B, ["renderWithFragment", "children", "viewClassName", "style"]);
48593
48596
  return Er ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48594
- }, Wn = function(B) {
48597
+ }, Vn = function(B) {
48595
48598
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48596
48599
  return br ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48597
- }, Hn = function(B) {
48600
+ }, Un = function(B) {
48598
48601
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48599
48602
  return xr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48600
- }, qn = function(B) {
48603
+ }, Gn = function(B) {
48601
48604
  var G = B.renderWithFragment, oe = B.children, ue = $(B, ["renderWithFragment", "children"]);
48602
48605
  return Sr ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ue, oe) : null;
48603
- }, Kn = function(B) {
48606
+ }, zn = function(B) {
48604
48607
  var G = B.renderWithFragment, oe = B.children;
48605
48608
  B.viewClassName, B.style;
48606
48609
  var ue = B.condition, ke = $(B, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
48607
48610
  return ue ? G ? i.createElement(t.Fragment, null, oe) : i.createElement("div", ke, oe) : null;
48608
48611
  };
48609
- function Yn(Z) {
48612
+ function Wn(Z) {
48610
48613
  return /* @__PURE__ */ function(B) {
48611
48614
  A(G, B);
48612
48615
  function G(oe) {
@@ -48657,7 +48660,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48657
48660
  }]), G;
48658
48661
  }(i.Component);
48659
48662
  }
48660
- function Xn() {
48663
+ function Hn() {
48661
48664
  var Z = t.useState(function() {
48662
48665
  var ke = window.innerWidth > window.innerHeight ? 90 : 0;
48663
48666
  return {
@@ -48683,11 +48686,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48683
48686
  var B = Z || window.navigator.userAgent;
48684
48687
  return p(B);
48685
48688
  }
48686
- function Jn(Z) {
48689
+ function qn(Z) {
48687
48690
  var B = Z || window.navigator.userAgent, G = Pr(B), oe = cr(G);
48688
48691
  return [oe, G];
48689
48692
  }
48690
- return lib.AndroidView = $n, lib.BrowserTypes = F, lib.BrowserView = Fn, lib.ConsoleView = Hn, lib.CustomView = Kn, lib.IEView = jn, lib.IOSView = Bn, lib.MobileOnlyView = zn, lib.MobileView = Vn, lib.OsTypes = N, lib.SmartTVView = Wn, lib.TabletView = Un, lib.WearableView = qn, lib.WinPhoneView = Gn, lib.browserName = gn, lib.browserVersion = mn, lib.deviceDetect = ne, lib.deviceType = wn, lib.engineName = _n, lib.engineVersion = bn, lib.fullBrowserVersion = pn, lib.getSelectorsByUserAgent = Nn, lib.getUA = xn, lib.isAndroid = Tr, lib.isBrowser = Cr, lib.isChrome = an, lib.isChromium = nn, lib.isConsole = xr, lib.isDesktop = sn, lib.isEdge = Sn, lib.isEdgeChromium = Pn, lib.isElectron = In, lib.isEmbedded = tn, lib.isFirefox = ln, lib.isIE = Ir, lib.isIOS = Rr, lib.isIOS13 = Cn, lib.isIPad13 = Tn, lib.isIPhone13 = An, lib.isIPod13 = Rn, lib.isLegacyEdge = Mn, lib.isMIUI = Ln, lib.isMacOs = kn, lib.isMobile = sr, lib.isMobileOnly = Er, lib.isMobileSafari = rn, lib.isOpera = fn, lib.isSafari = un, lib.isSamsungBrowser = Dn, lib.isSmartTV = br, lib.isTablet = wr, lib.isWearable = Sr, lib.isWinPhone = Ar, lib.isWindows = On, lib.isYandex = En, lib.mobileModel = yn, lib.mobileVendor = vn, lib.osName = hn, lib.osVersion = dn, lib.parseUserAgent = p, lib.setUserAgent = Y, lib.useDeviceData = Pr, lib.useDeviceSelectors = Jn, lib.useMobileOrientation = Xn, lib.withOrientationChange = Yn, lib;
48693
+ return lib.AndroidView = kn, lib.BrowserTypes = F, lib.BrowserView = Ln, lib.ConsoleView = Un, lib.CustomView = zn, lib.IEView = Dn, lib.IOSView = Nn, lib.MobileOnlyView = Bn, lib.MobileView = $n, lib.OsTypes = N, lib.SmartTVView = Vn, lib.TabletView = Fn, lib.WearableView = Gn, lib.WinPhoneView = jn, lib.browserName = dn, lib.browserVersion = fn, lib.deviceDetect = ne, lib.deviceType = bn, lib.engineName = mn, lib.engineVersion = gn, lib.fullBrowserVersion = un, lib.getSelectorsByUserAgent = On, lib.getUA = vn, lib.isAndroid = Tr, lib.isBrowser = Cr, lib.isChrome = tn, lib.isChromium = Qr, lib.isConsole = xr, lib.isDesktop = Zr, lib.isEdge = yn, lib.isEdgeChromium = Tn, lib.isElectron = Cn, lib.isEmbedded = Xr, lib.isFirefox = rn, lib.isIE = Ir, lib.isIOS = Rr, lib.isIOS13 = xn, lib.isIPad13 = Sn, lib.isIPhone13 = En, lib.isIPod13 = wn, lib.isLegacyEdge = An, lib.isMIUI = Pn, lib.isMacOs = In, lib.isMobile = sr, lib.isMobileOnly = Er, lib.isMobileSafari = Jr, lib.isOpera = sn, lib.isSafari = nn, lib.isSamsungBrowser = Mn, lib.isSmartTV = br, lib.isTablet = wr, lib.isWearable = Sr, lib.isWinPhone = Ar, lib.isWindows = Rn, lib.isYandex = _n, lib.mobileModel = pn, lib.mobileVendor = hn, lib.osName = ln, lib.osVersion = an, lib.parseUserAgent = p, lib.setUserAgent = Y, lib.useDeviceData = Pr, lib.useDeviceSelectors = qn, lib.useMobileOrientation = Hn, lib.withOrientationChange = Wn, lib;
48691
48694
  }
48692
48695
  var libExports = requireLib(), dist = {}, ga4 = {}, gtag = {}, hasRequiredGtag;
48693
48696
  function requireGtag() {
@@ -50614,7 +50617,7 @@ const balance$4 = "Balance", topUp$4 = "Top Up", ads$4 = "Ads", adsOn$4 = "On",
50614
50617
  topUpModal,
50615
50618
  inventoryModal
50616
50619
  };
50617
- var define_process_env_default$2 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
50620
+ var define_process_env_default$2 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
50618
50621
  const resources = {
50619
50622
  en: {
50620
50623
  translation: en
@@ -51366,7 +51369,7 @@ async function showMonetagAd(e, t, i) {
51366
51369
  });
51367
51370
  });
51368
51371
  }
51369
- var define_process_env_default$1 = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
51372
+ var define_process_env_default$1 = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" };
51370
51373
  const log$1 = createAdLogger("Orbit");
51371
51374
  async function initOrbitAds() {
51372
51375
  log$1.group("Initialization"), log$1.time("init"), log$1.info("Loading script...");
@@ -51614,6 +51617,15 @@ function loadTMANetworkScript() {
51614
51617
  }, document.head.appendChild(i);
51615
51618
  });
51616
51619
  }
51620
+ const TUTORIAL_PLACEMENT_CONSUMED_KEY = "cs_tutorial_placement_consumed";
51621
+ function consumeTutorialPlacement() {
51622
+ var e, t, i;
51623
+ try {
51624
+ return ((i = (t = (e = window.Telegram) == null ? void 0 : e.WebApp) == null ? void 0 : t.initDataUnsafe) == null ? void 0 : i.start_param) !== "tutorial" || window.localStorage.getItem(TUTORIAL_PLACEMENT_CONSUMED_KEY) ? void 0 : (window.localStorage.setItem(TUTORIAL_PLACEMENT_CONSUMED_KEY, "1"), "tutorial");
51625
+ } catch {
51626
+ return;
51627
+ }
51628
+ }
51617
51629
  function initSentry() {
51618
51630
  init({
51619
51631
  dsn: "https://15f2f3a80cbbee5f94c302756f8595d5@o4509677809172480.ingest.de.sentry.io/4509677817364560",
@@ -51629,6 +51641,21 @@ function initSentry() {
51629
51641
  }
51630
51642
  });
51631
51643
  }
51644
+ const GAME_INITIALIZED_LAUNCH_KEY = "cs_game_initialized_launch", GAME_READY_LAUNCH_KEY = "cs_game_ready_launch";
51645
+ function getLaunchId() {
51646
+ var t, i, s;
51647
+ const e = (i = (t = window.Telegram) == null ? void 0 : t.WebApp) == null ? void 0 : i.initDataUnsafe;
51648
+ return (e == null ? void 0 : e.hash) || ((s = e == null ? void 0 : e.auth_date) == null ? void 0 : s.toString()) || "";
51649
+ }
51650
+ function shouldTrackOncePerLaunch(e) {
51651
+ const t = getLaunchId();
51652
+ if (!t) return !0;
51653
+ try {
51654
+ return sessionStorage.getItem(e) === t ? !1 : (sessionStorage.setItem(e, t), !0);
51655
+ } catch {
51656
+ return !0;
51657
+ }
51658
+ }
51632
51659
  function validateCloudStorageValue(e) {
51633
51660
  if (e == null)
51634
51661
  return {
@@ -51750,7 +51777,7 @@ function createIframeSdk() {
51750
51777
  }
51751
51778
  });
51752
51779
  }
51753
- var define_process_env_default = { NODE_ENV: "production", version: "1.93.3", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, qr, Kr;
51780
+ var define_process_env_default = { NODE_ENV: "production", version: "1.93.7", BASE_URL: "https://app.portalapp.games/sdk", ADS_SCRIPT_URL: "https://ads-sdk.portalapp.games/script.js", ASSETS_BASE_URL: "https://sdk.portalapp.games/assets" }, qr, Kr;
51754
51781
  const _isThirdPartyIframe = window.parent !== window && !((Kr = (qr = window.Telegram) == null ? void 0 : qr.WebApp) != null && Kr.initData);
51755
51782
  _isThirdPartyIframe || (ensureViewportMetaTag(), initSentry());
51756
51783
  const adLog = createAdLogger("SDK");
@@ -51937,118 +51964,112 @@ function startGameTimeTrack() {
51937
51964
  CryptoSteamSDK.trackGameTimeTick();
51938
51965
  }, trackTimeEveryS * 1e3);
51939
51966
  }
51940
- var Yr, Xr, Jr, Qr;
51941
- try {
51942
- const e = (Qr = (Jr = (Xr = (Yr = window.Telegram) == null ? void 0 : Yr.WebApp) == null ? void 0 : Xr.initDataUnsafe) == null ? void 0 : Jr.user) == null ? void 0 : Qr.id;
51943
- e && analytics.identify(e), analytics.track("sdk_initialized", getBaseAnalyticsParams());
51944
- } catch (e) {
51945
- console.error(e);
51946
- }
51947
51967
  const CryptoSteamSDK = {
51948
51968
  version: define_process_env_default.version,
51949
51969
  onAdStart: null,
51950
51970
  onAdEnd: null,
51951
51971
  initialize: async (e, t) => {
51952
- var s, o;
51972
+ var s, o, a, l;
51953
51973
  const i = await ensureTelegramWebApp();
51954
- isPortal = (t == null ? void 0 : t.mode) === "portal";
51974
+ initAnalytics(), isPortal = (t == null ? void 0 : t.mode) === "portal";
51955
51975
  try {
51956
- t != null && t.authData && (console.error("USE AUTH_DATA FOR REQUESTS!!!"), console.log("options.authData", t.authData), externalAuthData = t.authData), e && (externalBotId = e, queryClient.invalidateQueries({ queryKey: [PROFILE_TAG] }), queryClient.invalidateQueries({ queryKey: [PRICES_TAG] })), isPortal || startSaveTick();
51957
- const a = await CryptoSteamSDK.getProfile(), l = await CryptoSteamSDK.getConfig();
51958
- libExports.isMobile && l.supported_screen_formats.includes("fullscreen") || !libExports.isMobile && l.supported_screen_formats.includes("fullscreen-desktop") ? (i == null || i.setHeaderColor("#000"), i == null || i.setBackgroundColor("#000"), i == null || i.requestFullscreen()) : i == null || i.exitFullscreen(), adLog.group("SDK & Ads Initialization"), adLog.time("fullInit"), adLog.info("Starting initialization", { version: define_process_env_default.version });
51959
- const c = await makeRequest("launch", "POST");
51960
- launchResponseCache = c, await new Promise((f) => {
51961
- document.readyState === "complete" ? f() : window.addEventListener("load", () => f());
51976
+ const c = (o = (s = i == null ? void 0 : i.initDataUnsafe) == null ? void 0 : s.user) == null ? void 0 : o.id;
51977
+ c && analytics.identify(c), analytics.track("sdk_initialized", getBaseAnalyticsParams()), t != null && t.authData && (console.error("USE AUTH_DATA FOR REQUESTS!!!"), console.log("options.authData", t.authData), externalAuthData = t.authData), e && (externalBotId = e, queryClient.invalidateQueries({ queryKey: [PROFILE_TAG] }), queryClient.invalidateQueries({ queryKey: [PRICES_TAG] })), isPortal || startSaveTick();
51978
+ const u = await CryptoSteamSDK.getProfile(), f = await CryptoSteamSDK.getConfig();
51979
+ libExports.isMobile && f.supported_screen_formats.includes("fullscreen") || !libExports.isMobile && f.supported_screen_formats.includes("fullscreen-desktop") ? (i == null || i.setHeaderColor("#000"), i == null || i.setBackgroundColor("#000"), i == null || i.requestFullscreen()) : i == null || i.exitFullscreen(), adLog.group("SDK & Ads Initialization"), adLog.time("fullInit"), adLog.info("Starting initialization", { version: define_process_env_default.version });
51980
+ const d = await makeRequest("launch", "POST");
51981
+ launchResponseCache = d, await new Promise((p) => {
51982
+ document.readyState === "complete" ? p() : window.addEventListener("load", () => p());
51962
51983
  });
51963
- const { ads: u } = c;
51984
+ const { ads: h } = d;
51964
51985
  try {
51965
51986
  await initOrbitAds(), orbitInitialized = !0;
51966
- } catch (f) {
51967
- adLog.error("Orbit failed to initialize", f);
51987
+ } catch (p) {
51988
+ adLog.error("Orbit failed to initialize", p);
51968
51989
  }
51969
- if ((u == null ? void 0 : u.type) === "tma" && u.tmaAdsKey)
51990
+ if ((h == null ? void 0 : h.type) === "tma" && h.tmaAdsKey)
51970
51991
  if (adType = "tma", await loadTMANetworkScript(), window.TMANetwork)
51971
- await window.TMANetwork.init(c.tma_ads_key), adLog.info("TMANetwork initialized successfully");
51992
+ await window.TMANetwork.init(d.tma_ads_key), adLog.info("TMANetwork initialized successfully");
51972
51993
  else
51973
51994
  throw new Error("TMANetwork object not found.");
51974
- else if ((u == null ? void 0 : u.type) === "monetag" && u.monetag)
51975
- adType = "monetag", monetagShowAdFnName = await initMonetagAds(u.monetag);
51976
- else if ((u == null ? void 0 : u.type) === "adsgram" && u.adsgram) {
51995
+ else if ((h == null ? void 0 : h.type) === "monetag" && h.monetag)
51996
+ adType = "monetag", monetagShowAdFnName = await initMonetagAds(h.monetag);
51997
+ else if ((h == null ? void 0 : h.type) === "adsgram" && h.adsgram) {
51977
51998
  adType = "adsgram", adLog.info("Adsgram: initialization started");
51978
51999
  try {
51979
- const f = document.createElement("script");
51980
- f.src = "https://sad.adsgram.ai/js/sad.min.js", f.async = !0, await new Promise((d, h) => {
51981
- f.onload = () => {
52000
+ const p = document.createElement("script");
52001
+ p.src = "https://sad.adsgram.ai/js/sad.min.js", p.async = !0, await new Promise((m, g) => {
52002
+ p.onload = () => {
51982
52003
  adLog.info("Adsgram: script loaded, waiting for window.Adsgram...");
51983
- const p = Date.now(), m = setInterval(() => {
52004
+ const v = Date.now(), b = setInterval(() => {
51984
52005
  if (window.Adsgram && typeof window.Adsgram.init == "function")
51985
- if (clearInterval(m), adLog.info("Adsgram: window.Adsgram found, initializing..."), adsgramAdController = window.Adsgram.init({
51986
- blockId: u.adsgram
52006
+ if (clearInterval(b), adLog.info("Adsgram: window.Adsgram found, initializing..."), adsgramAdController = window.Adsgram.init({
52007
+ blockId: h.adsgram
51987
52008
  }), adsgramAdController)
51988
- adLog.info("Adsgram: initialized successfully"), d();
52009
+ adLog.info("Adsgram: initialized successfully"), m();
51989
52010
  else {
51990
- const g = new Error("Adsgram: init returned null or undefined.");
51991
- adLog.error("Adsgram: init returned null", g), h(g);
52011
+ const y = new Error("Adsgram: init returned null or undefined.");
52012
+ adLog.error("Adsgram: init returned null", y), g(y);
51992
52013
  }
51993
- else if (Date.now() - p > 5e3) {
51994
- clearInterval(m);
51995
- const g = new Error("Adsgram: window.Adsgram did not appear within 5 seconds.");
51996
- adLog.error("Adsgram: init timeout after 5s", g), h(g);
52014
+ else if (Date.now() - v > 5e3) {
52015
+ clearInterval(b);
52016
+ const y = new Error("Adsgram: window.Adsgram did not appear within 5 seconds.");
52017
+ adLog.error("Adsgram: init timeout after 5s", y), g(y);
51997
52018
  }
51998
52019
  }, 100);
51999
- }, f.onerror = (p) => {
52000
- adLog.error("Adsgram: script failed to load", p), h(new Error("Adsgram: script failed to load."));
52001
- }, document.head.appendChild(f), adLog.info("Adsgram: script appended to head");
52020
+ }, p.onerror = (v) => {
52021
+ adLog.error("Adsgram: script failed to load", v), g(new Error("Adsgram: script failed to load."));
52022
+ }, document.head.appendChild(p), adLog.info("Adsgram: script appended to head");
52002
52023
  });
52003
- } catch (f) {
52004
- adLog.error("Adsgram: failed to initialize", f);
52024
+ } catch (p) {
52025
+ adLog.error("Adsgram: failed to initialize", p);
52005
52026
  }
52006
- } else if ((u == null ? void 0 : u.type) === "gigapub" && u.gigapub) {
52027
+ } else if ((h == null ? void 0 : h.type) === "gigapub" && h.gigapub) {
52007
52028
  adType = "gigapub";
52008
52029
  try {
52009
- await initGigapubAds(u.gigapub);
52010
- } catch (f) {
52011
- adLog.error("Gigapub: failed to initialize", f);
52030
+ await initGigapubAds(h.gigapub);
52031
+ } catch (p) {
52032
+ adLog.error("Gigapub: failed to initialize", p);
52012
52033
  }
52013
- if (u.monetag)
52034
+ if (h.monetag)
52014
52035
  try {
52015
- monetagShowAdFnName = await initMonetagAds(u.monetag), adLog.info("Monetag fallback initialized for Gigapub");
52016
- } catch (f) {
52017
- adLog.error("Monetag fallback: failed to initialize", f);
52036
+ monetagShowAdFnName = await initMonetagAds(h.monetag), adLog.info("Monetag fallback initialized for Gigapub");
52037
+ } catch (p) {
52038
+ adLog.error("Monetag fallback: failed to initialize", p);
52018
52039
  }
52019
52040
  }
52020
- adLog.timeEnd("fullInit"), adLog.info("Ads network fully initialized", { provider: adType, orbitInitialized }), adLog.groupEnd(), (s = a == null ? void 0 : a.audiences) != null && s[0] && analytics.track("$experiment_started", {
52041
+ adLog.timeEnd("fullInit"), adLog.info("Ads network fully initialized", { provider: adType, orbitInitialized }), adLog.groupEnd(), (a = u == null ? void 0 : u.audiences) != null && a[0] && analytics.track("$experiment_started", {
52021
52042
  "Experiment name": "start_page_ab",
52022
- "Variant name": (o = a == null ? void 0 : a.audiences) == null ? void 0 : o[0]
52043
+ "Variant name": (l = u == null ? void 0 : u.audiences) == null ? void 0 : l[0]
52023
52044
  });
52024
- } catch (a) {
52025
- adLog.timeEnd("fullInit"), adLog.error("Error during ads initialization", a), adLog.groupEnd();
52045
+ } catch (c) {
52046
+ adLog.timeEnd("fullInit"), adLog.error("Error during ads initialization", c), adLog.groupEnd();
52026
52047
  }
52027
52048
  try {
52028
- const a = await CryptoSteamSDK.getProfile(), l = await CryptoSteamSDK.getConfig();
52029
- if (t != null && t.authData && console.log("externalAuthData", externalAuthData), !a) {
52049
+ const c = await CryptoSteamSDK.getProfile(), u = await CryptoSteamSDK.getConfig();
52050
+ if (t != null && t.authData && console.log("externalAuthData", externalAuthData), !c) {
52030
52051
  console.error("Profile not found");
52031
52052
  return;
52032
52053
  }
52033
- if (!l) {
52054
+ if (!u) {
52034
52055
  console.error("Config not found");
52035
52056
  return;
52036
52057
  }
52037
- analytics.identify(String(a.id)), window.game_id = a.game_id, window.game_title = l.title, ReactGA.initialize(G_MEASUREMENT_ID, {
52058
+ analytics.identify(String(c.id)), window.game_id = c.game_id, window.game_title = u.title, ReactGA.initialize(G_MEASUREMENT_ID, {
52038
52059
  gaOptions: {
52039
- userId: a.id,
52040
- gameId: a.game_id
52060
+ userId: c.id,
52061
+ gameId: c.game_id
52041
52062
  }
52042
52063
  }), ReactGA.event("init", {
52043
- gameId: a.game_id
52044
- }), gameInitializedAt = performance.now(), analytics.track("game_initialized", {
52045
- game_id: a.game_id,
52046
- game_title: l.title
52047
- }), !isPortal && !(t != null && t.disable_startup_ads) && CryptoSteamSDK.requestAd().catch((c) => {
52048
- adLog.error("Error requesting initial ad", c);
52064
+ gameId: c.game_id
52065
+ }), shouldTrackOncePerLaunch(GAME_INITIALIZED_LAUNCH_KEY) && (gameInitializedAt = performance.now(), analytics.track("game_initialized", {
52066
+ game_id: c.game_id,
52067
+ game_title: u.title
52068
+ })), !isPortal && !(t != null && t.disable_startup_ads) && CryptoSteamSDK.requestAd().catch((f) => {
52069
+ adLog.error("Error requesting initial ad", f);
52049
52070
  });
52050
- } catch (a) {
52051
- console.error("Error during GA initialization:", a);
52071
+ } catch (c) {
52072
+ console.error("Error during GA initialization:", c);
52052
52073
  }
52053
52074
  },
52054
52075
  getLaunchResponse: () => launchResponseCache,
@@ -52080,31 +52101,32 @@ const CryptoSteamSDK = {
52080
52101
  }), (i = CryptoSteamSDK.onAdEnd) == null || i.call(CryptoSteamSDK, !1), adLog.timeEnd("requestAd"), adLog.groupEnd(), !1;
52081
52102
  if (l.ads_free && !isPortal)
52082
52103
  return adLog.warn("Skipped: profile has ads_free flag"), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, !1), adLog.timeEnd("requestAd"), adLog.groupEnd(), !1;
52104
+ const f = e.placementId ?? consumeTutorialPlacement();
52083
52105
  analytics.track("ad_show_requested", {
52084
52106
  ...getBaseAnalyticsParams(),
52085
52107
  ad_type: orbitInitialized ? "orbit" : adType,
52086
52108
  provider: orbitInitialized ? "orbit" : adType,
52087
- placement_id: e.placementId
52109
+ placement_id: f
52088
52110
  });
52089
- const f = async () => {
52111
+ const d = async () => {
52090
52112
  if (adType === "tma")
52091
52113
  try {
52092
52114
  return await showAd(e), !0;
52093
- } catch (h) {
52094
- return adLog.error("Error showing TMA ad", h), !1;
52115
+ } catch (p) {
52116
+ return adLog.error("Error showing TMA ad", p), !1;
52095
52117
  }
52096
52118
  if (adType === "monetag") {
52097
- const p = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52098
- return await showMonetagAd(monetagShowAdFnName, p, e.placementId);
52119
+ const m = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52120
+ return await showMonetagAd(monetagShowAdFnName, m, f);
52099
52121
  }
52100
52122
  if (adType === "adsgram")
52101
52123
  return await showAdsgramAdWithTimeout(adsgramAdController);
52102
52124
  if (adType === "gigapub") {
52103
- const h = createMonetagFallbackFunction(
52125
+ const p = createMonetagFallbackFunction(
52104
52126
  monetagShowAdFnName,
52105
- e.placementId
52127
+ f
52106
52128
  );
52107
- return await showGigapubAd(h, e.placementId);
52129
+ return await showGigapubAd(p, f);
52108
52130
  }
52109
52131
  return adLog.error("Ad network not initialized or not supported", { adType }), analytics.track("ad_show_error", {
52110
52132
  ...getBaseAnalyticsParams(),
@@ -52113,24 +52135,24 @@ const CryptoSteamSDK = {
52113
52135
  provider: adType,
52114
52136
  error_type: "unsupported_network",
52115
52137
  error_code: "unsupported_network",
52116
- placement_id: e.placementId
52138
+ placement_id: f
52117
52139
  }), !1;
52118
52140
  };
52119
52141
  countRequestAd = ++countRequestAd;
52120
- let d;
52142
+ let h;
52121
52143
  if (adLog.info("Dispatching ad request", {
52122
52144
  orbitInitialized,
52123
52145
  adType,
52124
- placementId: e.placementId
52146
+ placementId: f
52125
52147
  }), orbitInitialized) {
52126
- const h = l.game_id ? Number(l.game_id) : void 0;
52127
- d = await showOrbitAd(f, {
52128
- zoneId: h,
52129
- placementId: e.placementId
52148
+ const p = l.game_id ? Number(l.game_id) : void 0;
52149
+ h = await showOrbitAd(d, {
52150
+ zoneId: p,
52151
+ placementId: f
52130
52152
  });
52131
52153
  } else
52132
- d = await f();
52133
- return adLog.timeEnd("requestAd"), adLog.info("Ad request completed", { result: d }), adLog.groupEnd(), (o = CryptoSteamSDK.onAdEnd) == null || o.call(CryptoSteamSDK, d), d;
52154
+ h = await d();
52155
+ return adLog.timeEnd("requestAd"), adLog.info("Ad request completed", { result: h }), adLog.groupEnd(), (o = CryptoSteamSDK.onAdEnd) == null || o.call(CryptoSteamSDK, h), h;
52134
52156
  } catch (l) {
52135
52157
  return adLog.timeEnd("requestAd"), adLog.error("Error in requestAd", l), adLog.groupEnd(), analytics.track("ad_show_error", {
52136
52158
  ...getBaseAnalyticsParams(),
@@ -52145,37 +52167,40 @@ const CryptoSteamSDK = {
52145
52167
  }
52146
52168
  },
52147
52169
  requestRewardAd: async (e = {}) => {
52148
- var t, i, s;
52170
+ var t, i, s, o;
52149
52171
  adLog.group("requestRewardAd"), adLog.time("requestRewardAd"), (t = CryptoSteamSDK.onAdStart) == null || t.call(CryptoSteamSDK);
52150
52172
  try {
52173
+ if ((await CryptoSteamSDK.getProfile()).ads_free)
52174
+ return adLog.warn("Skipped: profile has ads_free flag"), (i = CryptoSteamSDK.onAdEnd) == null || i.call(CryptoSteamSDK, !0), adLog.timeEnd("requestRewardAd"), adLog.groupEnd(), !0;
52175
+ const l = e.placementId ?? consumeTutorialPlacement();
52151
52176
  analytics.track("ad_show_requested", {
52152
52177
  ...getBaseAnalyticsParams(),
52153
52178
  ad_type: orbitInitialized ? "orbit" : adType,
52154
52179
  provider: orbitInitialized ? "orbit" : adType,
52155
- placement_id: e.placementId
52180
+ placement_id: l
52156
52181
  });
52157
- const o = async () => {
52182
+ const c = async () => {
52158
52183
  if (adType === "tma")
52159
52184
  try {
52160
- const l = await showAd(e);
52185
+ const f = await showAd(e);
52161
52186
  await delay(1e3);
52162
- const c = await checkAdStatus(l.id);
52163
- return c === "SHOWED" || c === "CLICKED";
52164
- } catch (l) {
52165
- return adLog.error("Error showing TMA reward ad", l), !1;
52187
+ const d = await checkAdStatus(f.id);
52188
+ return d === "SHOWED" || d === "CLICKED";
52189
+ } catch (f) {
52190
+ return adLog.error("Error showing TMA reward ad", f), !1;
52166
52191
  }
52167
52192
  if (adType === "monetag") {
52168
- const c = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52169
- return await showMonetagAd(monetagShowAdFnName, c, e.placementId);
52193
+ const d = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52194
+ return await showMonetagAd(monetagShowAdFnName, d, l);
52170
52195
  }
52171
52196
  if (adType === "adsgram")
52172
52197
  return await showAdsgramAdWithTimeout(adsgramAdController);
52173
52198
  if (adType === "gigapub") {
52174
- const l = createMonetagFallbackFunction(
52199
+ const f = createMonetagFallbackFunction(
52175
52200
  monetagShowAdFnName,
52176
- e.placementId
52177
- ), c = await showGigapubAd(l, e.placementId);
52178
- return await delay(2e3), c;
52201
+ l
52202
+ ), d = await showGigapubAd(f, l);
52203
+ return await delay(2e3), d;
52179
52204
  }
52180
52205
  return adLog.error("Ad network not initialized or not supported", { adType }), analytics.track("ad_show_error", {
52181
52206
  ...getBaseAnalyticsParams(),
@@ -52184,34 +52209,34 @@ const CryptoSteamSDK = {
52184
52209
  provider: adType,
52185
52210
  error_type: "unsupported_network",
52186
52211
  error_code: "unsupported_network",
52187
- placement_id: e.placementId
52212
+ placement_id: l
52188
52213
  }), !1;
52189
52214
  };
52190
- let a;
52215
+ let u;
52191
52216
  if (adLog.info("Dispatching reward ad request", {
52192
52217
  orbitInitialized,
52193
52218
  adType,
52194
- placementId: e.placementId
52219
+ placementId: l
52195
52220
  }), orbitInitialized) {
52196
- const l = window.game_id ? Number(window.game_id) : void 0;
52197
- a = await showOrbitAd(o, {
52198
- zoneId: l,
52199
- placementId: e.placementId
52221
+ const f = window.game_id ? Number(window.game_id) : void 0;
52222
+ u = await showOrbitAd(c, {
52223
+ zoneId: f,
52224
+ placementId: l
52200
52225
  });
52201
52226
  } else
52202
- a = await o();
52203
- return adLog.timeEnd("requestRewardAd"), adLog.info("Reward ad request completed", { result: a }), adLog.groupEnd(), (i = CryptoSteamSDK.onAdEnd) == null || i.call(CryptoSteamSDK, a), a;
52204
- } catch (o) {
52205
- return adLog.timeEnd("requestRewardAd"), adLog.error("Error in requestRewardAd", o), adLog.groupEnd(), analytics.track("ad_show_error", {
52227
+ u = await c();
52228
+ return adLog.timeEnd("requestRewardAd"), adLog.info("Reward ad request completed", { result: u }), adLog.groupEnd(), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, u), u;
52229
+ } catch (a) {
52230
+ return adLog.timeEnd("requestRewardAd"), adLog.error("Error in requestRewardAd", a), adLog.groupEnd(), analytics.track("ad_show_error", {
52206
52231
  ...getBaseAnalyticsParams(),
52207
- message: o instanceof Error ? o.message : "Unknown error in requestRewardAd",
52232
+ message: a instanceof Error ? a.message : "Unknown error in requestRewardAd",
52208
52233
  error_type: "sdk_exception",
52209
52234
  error_code: "sdk_exception",
52210
52235
  ad_type: adType,
52211
52236
  provider: adType,
52212
- error: o instanceof Error ? o.toString() : String(o),
52237
+ error: a instanceof Error ? a.toString() : String(a),
52213
52238
  placement_id: e.placementId
52214
- }), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, !1), !1;
52239
+ }), (o = CryptoSteamSDK.onAdEnd) == null || o.call(CryptoSteamSDK, !1), !1;
52215
52240
  }
52216
52241
  },
52217
52242
  getProfile: async () => await makeRequest("profile", "GET"),
@@ -52342,13 +52367,13 @@ const CryptoSteamSDK = {
52342
52367
  console.error("Config not found");
52343
52368
  return;
52344
52369
  }
52345
- analytics.track("game_ready", {
52370
+ shouldTrackOncePerLaunch(GAME_READY_LAUNCH_KEY) && (analytics.track("game_ready", {
52346
52371
  game_id: e.game_id,
52347
52372
  game_title: t.title,
52348
52373
  time_to_load_ms: gameInitializedAt !== null ? Math.round(performance.now() - gameInitializedAt) : void 0
52349
52374
  }), ReactGA.event("game_loaded", {
52350
52375
  gameId: e.game_id
52351
- });
52376
+ }));
52352
52377
  },
52353
52378
  getWages: async () => await makeRequest("v1/wages", "GET"),
52354
52379
  claimWage: async (e) => await makeRequest(`v1/wages/${e}/claim`, "POST"),