@orbit-software/sdk 1.93.3 → 1.93.6

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.6";
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.6", 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.6", 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.6", 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.6", 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.6", 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.6", 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.6", 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",
@@ -51750,7 +51762,7 @@ function createIframeSdk() {
51750
51762
  }
51751
51763
  });
51752
51764
  }
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;
51765
+ var define_process_env_default = { NODE_ENV: "production", version: "1.93.6", 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
51766
  const _isThirdPartyIframe = window.parent !== window && !((Kr = (qr = window.Telegram) == null ? void 0 : qr.WebApp) != null && Kr.initData);
51755
51767
  _isThirdPartyIframe || (ensureViewportMetaTag(), initSentry());
51756
51768
  const adLog = createAdLogger("SDK");
@@ -51937,118 +51949,112 @@ function startGameTimeTrack() {
51937
51949
  CryptoSteamSDK.trackGameTimeTick();
51938
51950
  }, trackTimeEveryS * 1e3);
51939
51951
  }
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
51952
  const CryptoSteamSDK = {
51948
51953
  version: define_process_env_default.version,
51949
51954
  onAdStart: null,
51950
51955
  onAdEnd: null,
51951
51956
  initialize: async (e, t) => {
51952
- var s, o;
51957
+ var s, o, a, l;
51953
51958
  const i = await ensureTelegramWebApp();
51954
- isPortal = (t == null ? void 0 : t.mode) === "portal";
51959
+ initAnalytics(), isPortal = (t == null ? void 0 : t.mode) === "portal";
51955
51960
  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());
51961
+ const c = (o = (s = i == null ? void 0 : i.initDataUnsafe) == null ? void 0 : s.user) == null ? void 0 : o.id;
51962
+ 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();
51963
+ const u = await CryptoSteamSDK.getProfile(), f = await CryptoSteamSDK.getConfig();
51964
+ 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 });
51965
+ const d = await makeRequest("launch", "POST");
51966
+ launchResponseCache = d, await new Promise((p) => {
51967
+ document.readyState === "complete" ? p() : window.addEventListener("load", () => p());
51962
51968
  });
51963
- const { ads: u } = c;
51969
+ const { ads: h } = d;
51964
51970
  try {
51965
51971
  await initOrbitAds(), orbitInitialized = !0;
51966
- } catch (f) {
51967
- adLog.error("Orbit failed to initialize", f);
51972
+ } catch (p) {
51973
+ adLog.error("Orbit failed to initialize", p);
51968
51974
  }
51969
- if ((u == null ? void 0 : u.type) === "tma" && u.tmaAdsKey)
51975
+ if ((h == null ? void 0 : h.type) === "tma" && h.tmaAdsKey)
51970
51976
  if (adType = "tma", await loadTMANetworkScript(), window.TMANetwork)
51971
- await window.TMANetwork.init(c.tma_ads_key), adLog.info("TMANetwork initialized successfully");
51977
+ await window.TMANetwork.init(d.tma_ads_key), adLog.info("TMANetwork initialized successfully");
51972
51978
  else
51973
51979
  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) {
51980
+ else if ((h == null ? void 0 : h.type) === "monetag" && h.monetag)
51981
+ adType = "monetag", monetagShowAdFnName = await initMonetagAds(h.monetag);
51982
+ else if ((h == null ? void 0 : h.type) === "adsgram" && h.adsgram) {
51977
51983
  adType = "adsgram", adLog.info("Adsgram: initialization started");
51978
51984
  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 = () => {
51985
+ const p = document.createElement("script");
51986
+ p.src = "https://sad.adsgram.ai/js/sad.min.js", p.async = !0, await new Promise((m, g) => {
51987
+ p.onload = () => {
51982
51988
  adLog.info("Adsgram: script loaded, waiting for window.Adsgram...");
51983
- const p = Date.now(), m = setInterval(() => {
51989
+ const v = Date.now(), b = setInterval(() => {
51984
51990
  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
51991
+ if (clearInterval(b), adLog.info("Adsgram: window.Adsgram found, initializing..."), adsgramAdController = window.Adsgram.init({
51992
+ blockId: h.adsgram
51987
51993
  }), adsgramAdController)
51988
- adLog.info("Adsgram: initialized successfully"), d();
51994
+ adLog.info("Adsgram: initialized successfully"), m();
51989
51995
  else {
51990
- const g = new Error("Adsgram: init returned null or undefined.");
51991
- adLog.error("Adsgram: init returned null", g), h(g);
51996
+ const y = new Error("Adsgram: init returned null or undefined.");
51997
+ adLog.error("Adsgram: init returned null", y), g(y);
51992
51998
  }
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);
51999
+ else if (Date.now() - v > 5e3) {
52000
+ clearInterval(b);
52001
+ const y = new Error("Adsgram: window.Adsgram did not appear within 5 seconds.");
52002
+ adLog.error("Adsgram: init timeout after 5s", y), g(y);
51997
52003
  }
51998
52004
  }, 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");
52005
+ }, p.onerror = (v) => {
52006
+ adLog.error("Adsgram: script failed to load", v), g(new Error("Adsgram: script failed to load."));
52007
+ }, document.head.appendChild(p), adLog.info("Adsgram: script appended to head");
52002
52008
  });
52003
- } catch (f) {
52004
- adLog.error("Adsgram: failed to initialize", f);
52009
+ } catch (p) {
52010
+ adLog.error("Adsgram: failed to initialize", p);
52005
52011
  }
52006
- } else if ((u == null ? void 0 : u.type) === "gigapub" && u.gigapub) {
52012
+ } else if ((h == null ? void 0 : h.type) === "gigapub" && h.gigapub) {
52007
52013
  adType = "gigapub";
52008
52014
  try {
52009
- await initGigapubAds(u.gigapub);
52010
- } catch (f) {
52011
- adLog.error("Gigapub: failed to initialize", f);
52015
+ await initGigapubAds(h.gigapub);
52016
+ } catch (p) {
52017
+ adLog.error("Gigapub: failed to initialize", p);
52012
52018
  }
52013
- if (u.monetag)
52019
+ if (h.monetag)
52014
52020
  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);
52021
+ monetagShowAdFnName = await initMonetagAds(h.monetag), adLog.info("Monetag fallback initialized for Gigapub");
52022
+ } catch (p) {
52023
+ adLog.error("Monetag fallback: failed to initialize", p);
52018
52024
  }
52019
52025
  }
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", {
52026
+ 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
52027
  "Experiment name": "start_page_ab",
52022
- "Variant name": (o = a == null ? void 0 : a.audiences) == null ? void 0 : o[0]
52028
+ "Variant name": (l = u == null ? void 0 : u.audiences) == null ? void 0 : l[0]
52023
52029
  });
52024
- } catch (a) {
52025
- adLog.timeEnd("fullInit"), adLog.error("Error during ads initialization", a), adLog.groupEnd();
52030
+ } catch (c) {
52031
+ adLog.timeEnd("fullInit"), adLog.error("Error during ads initialization", c), adLog.groupEnd();
52026
52032
  }
52027
52033
  try {
52028
- const a = await CryptoSteamSDK.getProfile(), l = await CryptoSteamSDK.getConfig();
52029
- if (t != null && t.authData && console.log("externalAuthData", externalAuthData), !a) {
52034
+ const c = await CryptoSteamSDK.getProfile(), u = await CryptoSteamSDK.getConfig();
52035
+ if (t != null && t.authData && console.log("externalAuthData", externalAuthData), !c) {
52030
52036
  console.error("Profile not found");
52031
52037
  return;
52032
52038
  }
52033
- if (!l) {
52039
+ if (!u) {
52034
52040
  console.error("Config not found");
52035
52041
  return;
52036
52042
  }
52037
- analytics.identify(String(a.id)), window.game_id = a.game_id, window.game_title = l.title, ReactGA.initialize(G_MEASUREMENT_ID, {
52043
+ analytics.identify(String(c.id)), window.game_id = c.game_id, window.game_title = u.title, ReactGA.initialize(G_MEASUREMENT_ID, {
52038
52044
  gaOptions: {
52039
- userId: a.id,
52040
- gameId: a.game_id
52045
+ userId: c.id,
52046
+ gameId: c.game_id
52041
52047
  }
52042
52048
  }), ReactGA.event("init", {
52043
- gameId: a.game_id
52049
+ gameId: c.game_id
52044
52050
  }), 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);
52051
+ game_id: c.game_id,
52052
+ game_title: u.title
52053
+ }), !isPortal && !(t != null && t.disable_startup_ads) && CryptoSteamSDK.requestAd().catch((f) => {
52054
+ adLog.error("Error requesting initial ad", f);
52049
52055
  });
52050
- } catch (a) {
52051
- console.error("Error during GA initialization:", a);
52056
+ } catch (c) {
52057
+ console.error("Error during GA initialization:", c);
52052
52058
  }
52053
52059
  },
52054
52060
  getLaunchResponse: () => launchResponseCache,
@@ -52080,31 +52086,32 @@ const CryptoSteamSDK = {
52080
52086
  }), (i = CryptoSteamSDK.onAdEnd) == null || i.call(CryptoSteamSDK, !1), adLog.timeEnd("requestAd"), adLog.groupEnd(), !1;
52081
52087
  if (l.ads_free && !isPortal)
52082
52088
  return adLog.warn("Skipped: profile has ads_free flag"), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, !1), adLog.timeEnd("requestAd"), adLog.groupEnd(), !1;
52089
+ const f = e.placementId ?? consumeTutorialPlacement();
52083
52090
  analytics.track("ad_show_requested", {
52084
52091
  ...getBaseAnalyticsParams(),
52085
52092
  ad_type: orbitInitialized ? "orbit" : adType,
52086
52093
  provider: orbitInitialized ? "orbit" : adType,
52087
- placement_id: e.placementId
52094
+ placement_id: f
52088
52095
  });
52089
- const f = async () => {
52096
+ const d = async () => {
52090
52097
  if (adType === "tma")
52091
52098
  try {
52092
52099
  return await showAd(e), !0;
52093
- } catch (h) {
52094
- return adLog.error("Error showing TMA ad", h), !1;
52100
+ } catch (p) {
52101
+ return adLog.error("Error showing TMA ad", p), !1;
52095
52102
  }
52096
52103
  if (adType === "monetag") {
52097
- const p = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52098
- return await showMonetagAd(monetagShowAdFnName, p, e.placementId);
52104
+ const m = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52105
+ return await showMonetagAd(monetagShowAdFnName, m, f);
52099
52106
  }
52100
52107
  if (adType === "adsgram")
52101
52108
  return await showAdsgramAdWithTimeout(adsgramAdController);
52102
52109
  if (adType === "gigapub") {
52103
- const h = createMonetagFallbackFunction(
52110
+ const p = createMonetagFallbackFunction(
52104
52111
  monetagShowAdFnName,
52105
- e.placementId
52112
+ f
52106
52113
  );
52107
- return await showGigapubAd(h, e.placementId);
52114
+ return await showGigapubAd(p, f);
52108
52115
  }
52109
52116
  return adLog.error("Ad network not initialized or not supported", { adType }), analytics.track("ad_show_error", {
52110
52117
  ...getBaseAnalyticsParams(),
@@ -52113,24 +52120,24 @@ const CryptoSteamSDK = {
52113
52120
  provider: adType,
52114
52121
  error_type: "unsupported_network",
52115
52122
  error_code: "unsupported_network",
52116
- placement_id: e.placementId
52123
+ placement_id: f
52117
52124
  }), !1;
52118
52125
  };
52119
52126
  countRequestAd = ++countRequestAd;
52120
- let d;
52127
+ let h;
52121
52128
  if (adLog.info("Dispatching ad request", {
52122
52129
  orbitInitialized,
52123
52130
  adType,
52124
- placementId: e.placementId
52131
+ placementId: f
52125
52132
  }), 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
52133
+ const p = l.game_id ? Number(l.game_id) : void 0;
52134
+ h = await showOrbitAd(d, {
52135
+ zoneId: p,
52136
+ placementId: f
52130
52137
  });
52131
52138
  } 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;
52139
+ h = await d();
52140
+ return adLog.timeEnd("requestAd"), adLog.info("Ad request completed", { result: h }), adLog.groupEnd(), (o = CryptoSteamSDK.onAdEnd) == null || o.call(CryptoSteamSDK, h), h;
52134
52141
  } catch (l) {
52135
52142
  return adLog.timeEnd("requestAd"), adLog.error("Error in requestAd", l), adLog.groupEnd(), analytics.track("ad_show_error", {
52136
52143
  ...getBaseAnalyticsParams(),
@@ -52145,37 +52152,40 @@ const CryptoSteamSDK = {
52145
52152
  }
52146
52153
  },
52147
52154
  requestRewardAd: async (e = {}) => {
52148
- var t, i, s;
52155
+ var t, i, s, o;
52149
52156
  adLog.group("requestRewardAd"), adLog.time("requestRewardAd"), (t = CryptoSteamSDK.onAdStart) == null || t.call(CryptoSteamSDK);
52150
52157
  try {
52158
+ if ((await CryptoSteamSDK.getProfile()).ads_free)
52159
+ return adLog.warn("Skipped: profile has ads_free flag"), (i = CryptoSteamSDK.onAdEnd) == null || i.call(CryptoSteamSDK, !0), adLog.timeEnd("requestRewardAd"), adLog.groupEnd(), !0;
52160
+ const l = e.placementId ?? consumeTutorialPlacement();
52151
52161
  analytics.track("ad_show_requested", {
52152
52162
  ...getBaseAnalyticsParams(),
52153
52163
  ad_type: orbitInitialized ? "orbit" : adType,
52154
52164
  provider: orbitInitialized ? "orbit" : adType,
52155
- placement_id: e.placementId
52165
+ placement_id: l
52156
52166
  });
52157
- const o = async () => {
52167
+ const c = async () => {
52158
52168
  if (adType === "tma")
52159
52169
  try {
52160
- const l = await showAd(e);
52170
+ const f = await showAd(e);
52161
52171
  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;
52172
+ const d = await checkAdStatus(f.id);
52173
+ return d === "SHOWED" || d === "CLICKED";
52174
+ } catch (f) {
52175
+ return adLog.error("Error showing TMA reward ad", f), !1;
52166
52176
  }
52167
52177
  if (adType === "monetag") {
52168
- const c = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52169
- return await showMonetagAd(monetagShowAdFnName, c, e.placementId);
52178
+ const d = `${(await CryptoSteamSDK.getProfile()).game_id}`;
52179
+ return await showMonetagAd(monetagShowAdFnName, d, l);
52170
52180
  }
52171
52181
  if (adType === "adsgram")
52172
52182
  return await showAdsgramAdWithTimeout(adsgramAdController);
52173
52183
  if (adType === "gigapub") {
52174
- const l = createMonetagFallbackFunction(
52184
+ const f = createMonetagFallbackFunction(
52175
52185
  monetagShowAdFnName,
52176
- e.placementId
52177
- ), c = await showGigapubAd(l, e.placementId);
52178
- return await delay(2e3), c;
52186
+ l
52187
+ ), d = await showGigapubAd(f, l);
52188
+ return await delay(2e3), d;
52179
52189
  }
52180
52190
  return adLog.error("Ad network not initialized or not supported", { adType }), analytics.track("ad_show_error", {
52181
52191
  ...getBaseAnalyticsParams(),
@@ -52184,34 +52194,34 @@ const CryptoSteamSDK = {
52184
52194
  provider: adType,
52185
52195
  error_type: "unsupported_network",
52186
52196
  error_code: "unsupported_network",
52187
- placement_id: e.placementId
52197
+ placement_id: l
52188
52198
  }), !1;
52189
52199
  };
52190
- let a;
52200
+ let u;
52191
52201
  if (adLog.info("Dispatching reward ad request", {
52192
52202
  orbitInitialized,
52193
52203
  adType,
52194
- placementId: e.placementId
52204
+ placementId: l
52195
52205
  }), 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
52206
+ const f = window.game_id ? Number(window.game_id) : void 0;
52207
+ u = await showOrbitAd(c, {
52208
+ zoneId: f,
52209
+ placementId: l
52200
52210
  });
52201
52211
  } 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", {
52212
+ u = await c();
52213
+ return adLog.timeEnd("requestRewardAd"), adLog.info("Reward ad request completed", { result: u }), adLog.groupEnd(), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, u), u;
52214
+ } catch (a) {
52215
+ return adLog.timeEnd("requestRewardAd"), adLog.error("Error in requestRewardAd", a), adLog.groupEnd(), analytics.track("ad_show_error", {
52206
52216
  ...getBaseAnalyticsParams(),
52207
- message: o instanceof Error ? o.message : "Unknown error in requestRewardAd",
52217
+ message: a instanceof Error ? a.message : "Unknown error in requestRewardAd",
52208
52218
  error_type: "sdk_exception",
52209
52219
  error_code: "sdk_exception",
52210
52220
  ad_type: adType,
52211
52221
  provider: adType,
52212
- error: o instanceof Error ? o.toString() : String(o),
52222
+ error: a instanceof Error ? a.toString() : String(a),
52213
52223
  placement_id: e.placementId
52214
- }), (s = CryptoSteamSDK.onAdEnd) == null || s.call(CryptoSteamSDK, !1), !1;
52224
+ }), (o = CryptoSteamSDK.onAdEnd) == null || o.call(CryptoSteamSDK, !1), !1;
52215
52225
  }
52216
52226
  },
52217
52227
  getProfile: async () => await makeRequest("profile", "GET"),