@getsupertab/supertab-js 3.41.0 → 3.42.0

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-GWPJ1w3u.js";
1
+ import { c as R, g as z } from "./supertab-BtM4mtxA.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-GWPJ1w3u.js";
1
+ import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-BtM4mtxA.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;
@@ -4859,7 +4859,7 @@ const SH = pr({
4859
4859
  VITE_STATIC_REDIRECT_URI: void 0,
4860
4860
  VITE_GTM_CONTAINER_ID: "GTM-NG9GT7FM",
4861
4861
  VITE_SENTRY_DSN: "https://d08f3f301f364ceba6345c393c538faf@o23455.ingest.us.sentry.io/4507736861573120",
4862
- VITE_BASE_URL: "https://js.supertab.co/v3.41.0/",
4862
+ VITE_BASE_URL: "https://js.supertab.co/v3.42.0/",
4863
4863
  VITE_DEMO_CLIENT_ID: void 0,
4864
4864
  VITE_API_BASE_URL: void 0,
4865
4865
  VITE_SSO_BASE_URL: void 0,
@@ -4868,7 +4868,7 @@ const SH = pr({
4868
4868
  VITE_CHECKOUT_URL: void 0,
4869
4869
  TAPPER_ENV: "prod",
4870
4870
  PACKAGE_NAME: "@getsupertab/supertab-js",
4871
- PACKAGE_VERSION: "3.41.0",
4871
+ PACKAGE_VERSION: "3.42.0",
4872
4872
  MONETIZATION_PROVIDER_SCRIPT_URL: void 0,
4873
4873
  VITE_POSTHOG_API_HOST: void 0,
4874
4874
  VITE_POSTHOG_API_KEY: void 0
@@ -9918,7 +9918,7 @@ function Xv(t) {
9918
9918
  }
9919
9919
  const G2 = async (t) => {
9920
9920
  if (EH) {
9921
- const { captureException: e } = await import("./sentry-CxQ8a3Pq.js");
9921
+ const { captureException: e } = await import("./sentry-BNfJ7Oph.js");
9922
9922
  e(t);
9923
9923
  }
9924
9924
  }, v5 = "tabjs";
@@ -72307,7 +72307,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
72307
72307
  typeof Tb != "function" && (Tb = void 0);
72308
72308
  if (!Tb && !K5 && !X7)
72309
72309
  try {
72310
- import("./browser-ponyfill-qFvxF7UP.js").then((t) => t.b).then(function(t) {
72310
+ import("./browser-ponyfill-m6MHpNFQ.js").then((t) => t.b).then(function(t) {
72311
72311
  Tb = t.default;
72312
72312
  }).catch(function() {
72313
72313
  });
@@ -73088,13 +73088,11 @@ const Uue = ({
73088
73088
  // TODO: salesModel is legacy now, we should remove it and not keep this abstraction
73089
73089
  salesModel: i != null && i.isRecurring ? "subscription" : "time_pass"
73090
73090
  };
73091
- }), Bue = (t, e) => {
73092
- const n = Js.getFeatureFlag(
73093
- "new-add-to-my-account-cta-button"
73094
- );
73091
+ }), Bue = (t, e, n) => {
73092
+ const i = !n && Js.getFeatureFlag("cta-button-copy-get-access-vs-create-account");
73095
73093
  return Wt.log(
73096
73094
  "Experiment CTA Button Copy Feature Flag:",
73097
- n
73095
+ i
73098
73096
  ), {
73099
73097
  title: (e == null ? void 0 : e.title) || /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.title" }),
73100
73098
  labelTooltip: /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.label_tooltip" }),
@@ -73104,7 +73102,7 @@ const Uue = ({
73104
73102
  loginButtonLabel: /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.login_button_label" }),
73105
73103
  ctaButton: {
73106
73104
  label: {
73107
- putItOnMyTab: n === "test" ? /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.cta_button.label.add_to_my_account" }) : /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.cta_button.label.get_access" }),
73105
+ putItOnMyTab: i === "test" ? /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.cta_button.label.create_account" }) : /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.cta_button.label.get_access" }),
73108
73106
  continueToCheckout: /* @__PURE__ */ pe.jsx(mn, { i18nKey: "paygate.cta_button.label.continue_to_checkout" })
73109
73107
  }
73110
73108
  },
@@ -73196,7 +73194,8 @@ const Uue = ({
73196
73194
  Q(fe === Is.VALID);
73197
73195
  }, q = N.useMemo(() => Sb(k.limit), [k]), ne = Wue(D == null ? void 0 : D.uiConfig, j), Y = (ne == null ? void 0 : ne.paywallCopy) && ((ae = ne.paywallCopy) == null ? void 0 : ae[d]), ee = Bue(
73198
73196
  q,
73199
- Y
73197
+ Y,
73198
+ W
73200
73199
  ), he = {
73201
73200
  onStartPurchase: e,
73202
73201
  onCancel: n,
@@ -1,4 +1,4 @@
1
- import { S as e } from "./supertab-GWPJ1w3u.js";
1
+ import { S as e } from "./supertab-BtM4mtxA.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.41.0",
25
+ "version": "3.42.0",
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite --config .vite/vite.dev.config.ts",