@getsupertab/supertab-js 3.20.1 → 3.20.2

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.
@@ -1,4 +1,4 @@
1
- import { c as R, g as z } from "./supertab-Dk4sU75j.js";
1
+ import { c as R, g as z } from "./supertab-D_e6CwyR.js";
2
2
  function $(w, d) {
3
3
  for (var b = 0; b < d.length; b++) {
4
4
  const y = d[b];
@@ -1,4 +1,4 @@
1
- import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-Dk4sU75j.js";
1
+ import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-D_e6CwyR.js";
2
2
  const b = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = globalThis, at = "9.40.0";
3
3
  function ht() {
4
4
  return lr(q), q;
@@ -4855,7 +4855,7 @@ const bA = sr({
4855
4855
  VITE_STATIC_REDIRECT_URI: void 0,
4856
4856
  VITE_GTM_CONTAINER_ID: "GTM-NG9GT7FM",
4857
4857
  VITE_SENTRY_DSN: "https://d08f3f301f364ceba6345c393c538faf@o23455.ingest.us.sentry.io/4507736861573120",
4858
- VITE_BASE_URL: "https://js.supertab.co/v3.20.1/",
4858
+ VITE_BASE_URL: "https://js.supertab.co/v3.20.2/",
4859
4859
  VITE_DEMO_CLIENT_ID: void 0,
4860
4860
  VITE_API_BASE_URL: void 0,
4861
4861
  VITE_SSO_BASE_URL: void 0,
@@ -4864,7 +4864,7 @@ const bA = sr({
4864
4864
  VITE_CHECKOUT_URL: void 0,
4865
4865
  TAPPER_ENV: "prod",
4866
4866
  PACKAGE_NAME: "@getsupertab/supertab-js",
4867
- PACKAGE_VERSION: "3.20.1",
4867
+ PACKAGE_VERSION: "3.20.2",
4868
4868
  MONETIZATION_PROVIDER_SCRIPT_URL: void 0
4869
4869
  }), I3 = US === "ctl" || US === "sbx" || US === "stg" ? !0 : US === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1, Yt = {
4870
4870
  log: (...o) => {
@@ -5564,7 +5564,7 @@ const rr = /* @__PURE__ */ F_(M), g4 = /* @__PURE__ */ FP({
5564
5564
  default: rr
5565
5565
  }, [M]), IS = async (o) => {
5566
5566
  if (wA) {
5567
- const { captureException: a } = await import("./sentry-CuPHABMq.js");
5567
+ const { captureException: a } = await import("./sentry-BYhpcqg9.js");
5568
5568
  a(o);
5569
5569
  }
5570
5570
  }, qC = "tabjs";
@@ -5621,12 +5621,12 @@ function jA(o, a) {
5621
5621
  const s = a.reduce((f, d) => (f[d.id] = d, f), {});
5622
5622
  return o.map((f) => {
5623
5623
  const d = s[f.mainOffering] || null, g = s[f.upsellOffering] || null;
5624
- return {
5624
+ return !d || !g ? null : {
5625
5625
  mainOffering: d,
5626
5626
  upsellOffering: g,
5627
5627
  discount: f.discount
5628
5628
  };
5629
- }).filter(Boolean);
5629
+ }).filter((f) => f !== null);
5630
5630
  }
5631
5631
  function $_(o, a) {
5632
5632
  const s = o.experiences.find((f) => f.id === a);
@@ -64735,7 +64735,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
64735
64735
  typeof r0 != "function" && (r0 = void 0);
64736
64736
  if (!r0 && !mk && !z4)
64737
64737
  try {
64738
- import("./browser-ponyfill-Ds-pmj5h.js").then((o) => o.b).then(function(o) {
64738
+ import("./browser-ponyfill-BXK4rR1X.js").then((o) => o.b).then(function(o) {
64739
64739
  r0 = o.default;
64740
64740
  }).catch(function() {
64741
64741
  });
@@ -134,9 +134,9 @@ declare class ApiClient {
134
134
  configuration: {
135
135
  onClose: string | (string | null)[] | null;
136
136
  upsells: {
137
+ discount: number;
137
138
  mainOffering: string;
138
139
  upsellOffering: string;
139
- discount: number;
140
140
  }[];
141
141
  uiConfig?: unknown;
142
142
  };
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-Dk4sU75j.js";
1
+ import { S as e } from "./supertab-D_e6CwyR.js";
2
2
  export {
3
3
  e as Supertab
4
4
  };
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "engines": {
23
23
  "node": ">=22.13.1"
24
24
  },
25
- "version": "3.20.1",
25
+ "version": "3.20.2",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",