@schematichq/schematic-components 2.25.1 → 3.0.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.
@@ -2322,9 +2322,9 @@ var init_stream = __esm({
2322
2322
  }
2323
2323
  });
2324
2324
 
2325
- // node_modules/.pnpm/styled-components@6.5.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/styled-components/dist/styled-components.cjs.js
2325
+ // node_modules/.pnpm/styled-components@6.5.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/styled-components/dist/styled-components.cjs.js
2326
2326
  var require_styled_components_cjs = __commonJS({
2327
- "node_modules/.pnpm/styled-components@6.5.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/styled-components/dist/styled-components.cjs.js"(exports) {
2327
+ "node_modules/.pnpm/styled-components@6.5.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/styled-components/dist/styled-components.cjs.js"(exports) {
2328
2328
  "use strict";
2329
2329
  Object.defineProperty(exports, "__esModule", { value: true });
2330
2330
  var e = (init_emotion_is_prop_valid_esm(), __toCommonJS(emotion_is_prop_valid_esm_exports));
@@ -3491,7 +3491,7 @@ var require_debounce = __commonJS({
3491
3491
  var FUNC_ERROR_TEXT = "Expected a function";
3492
3492
  var nativeMax = Math.max;
3493
3493
  var nativeMin = Math.min;
3494
- function debounce5(func, wait, options) {
3494
+ function debounce6(func, wait, options) {
3495
3495
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
3496
3496
  if (typeof func != "function") {
3497
3497
  throw new TypeError(FUNC_ERROR_TEXT);
@@ -3572,7 +3572,7 @@ var require_debounce = __commonJS({
3572
3572
  debounced.flush = flush;
3573
3573
  return debounced;
3574
3574
  }
3575
- module2.exports = debounce5;
3575
+ module2.exports = debounce6;
3576
3576
  }
3577
3577
  });
3578
3578
 
@@ -3819,6 +3819,8 @@ var initialContext = {
3819
3819
  getUpcomingInvoice: stub,
3820
3820
  getCustomerBalance: stub,
3821
3821
  listInvoices: stub,
3822
+ getCreditUsageByUser: stub,
3823
+ getFeatureUsageByUser: stub,
3822
3824
  createSetupIntent: stub,
3823
3825
  updatePaymentMethod: stub,
3824
3826
  deletePaymentMethod: stub,
@@ -3843,7 +3845,7 @@ var initialContext = {
3843
3845
  };
3844
3846
  var EmbedContext = (0, import_react.createContext)(initialContext);
3845
3847
 
3846
- // node_modules/.pnpm/i18next@26.4.1_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
3848
+ // node_modules/.pnpm/i18next@26.4.2_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
3847
3849
  var isString = (obj) => typeof obj === "string";
3848
3850
  var defer = () => {
3849
3851
  let res;
@@ -5161,7 +5163,7 @@ var Interpolator = class {
5161
5163
  interpolationkey: match[1].trim()
5162
5164
  }), value.trim());
5163
5165
  }
5164
- str = str.replace(match[0], value);
5166
+ str = str.replace(match[0], regexSafe(makeString(value)));
5165
5167
  this.regexp.lastIndex = 0;
5166
5168
  }
5167
5169
  return str;
@@ -6119,16 +6121,16 @@ var hasLoadedNamespace = instance.hasLoadedNamespace;
6119
6121
  var loadNamespaces = instance.loadNamespaces;
6120
6122
  var loadLanguages = instance.loadLanguages;
6121
6123
 
6122
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/Trans.js
6124
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/Trans.js
6123
6125
  var import_react4 = require("react");
6124
6126
 
6125
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/TransWithoutContext.js
6127
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/TransWithoutContext.js
6126
6128
  var import_react2 = require("react");
6127
6129
 
6128
6130
  // node_modules/.pnpm/html-parse-stringify@3.1.0/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
6129
6131
  var import_void_elements = __toESM(require_void_elements());
6130
6132
 
6131
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/utils.js
6133
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/utils.js
6132
6134
  var warn = (i18n, code, msg, rest) => {
6133
6135
  const args = [msg, {
6134
6136
  code,
@@ -6191,7 +6193,7 @@ var hasLoadedNamespace2 = (ns, i18n, options = {}) => {
6191
6193
  var isString2 = (obj) => typeof obj === "string";
6192
6194
  var isObject = (obj) => typeof obj === "object" && obj !== null;
6193
6195
 
6194
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/unescape.js
6196
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/unescape.js
6195
6197
  var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
6196
6198
  var htmlEntities = {
6197
6199
  "&": "&",
@@ -6218,7 +6220,7 @@ var htmlEntities = {
6218
6220
  var unescapeHtmlEntity = (m) => htmlEntities[m];
6219
6221
  var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
6220
6222
 
6221
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/defaults.js
6223
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/defaults.js
6222
6224
  var defaultOptions = {
6223
6225
  bindI18n: "languageChanged",
6224
6226
  bindI18nStore: "",
@@ -6237,17 +6239,17 @@ var setDefaults = (options = {}) => {
6237
6239
  };
6238
6240
  var getDefaults = () => defaultOptions;
6239
6241
 
6240
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/i18nInstance.js
6242
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/i18nInstance.js
6241
6243
  var i18nInstance;
6242
6244
  var setI18n = (instance2) => {
6243
6245
  i18nInstance = instance2;
6244
6246
  };
6245
6247
  var getI18n = () => i18nInstance;
6246
6248
 
6247
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/context.js
6249
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/context.js
6248
6250
  var import_react3 = require("react");
6249
6251
 
6250
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/initReactI18next.js
6252
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/initReactI18next.js
6251
6253
  var initReactI18next = {
6252
6254
  type: "3rdParty",
6253
6255
  init(instance2) {
@@ -6256,7 +6258,7 @@ var initReactI18next = {
6256
6258
  }
6257
6259
  };
6258
6260
 
6259
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/context.js
6261
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/context.js
6260
6262
  var I18nContext = (0, import_react3.createContext)();
6261
6263
  var ReportNamespaces = class {
6262
6264
  constructor() {
@@ -6272,13 +6274,13 @@ var ReportNamespaces = class {
6272
6274
  }
6273
6275
  };
6274
6276
 
6275
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTrans.js
6277
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTrans.js
6276
6278
  var import_react7 = require("react");
6277
6279
 
6278
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js
6280
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js
6279
6281
  var import_react6 = __toESM(require("react"), 1);
6280
6282
 
6281
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/TranslationParserError.js
6283
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/TranslationParserError.js
6282
6284
  var TranslationParserError = class _TranslationParserError extends Error {
6283
6285
  constructor(message, position, translationString) {
6284
6286
  super(message);
@@ -6291,7 +6293,7 @@ var TranslationParserError = class _TranslationParserError extends Error {
6291
6293
  }
6292
6294
  };
6293
6295
 
6294
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js
6296
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js
6295
6297
  var commonEntities = {
6296
6298
  " ": "\xA0",
6297
6299
  "&": "&",
@@ -6504,7 +6506,7 @@ var commonEntities = {
6504
6506
  var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
6505
6507
  var decodeHtmlEntities = (text) => text.replace(entityPattern, (match) => commonEntities[match]).replace(/&#(\d+);/g, (_, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
6506
6508
 
6507
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js
6509
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js
6508
6510
  var tokenize = (translation) => {
6509
6511
  const tokens = [];
6510
6512
  let position = 0;
@@ -6557,7 +6559,7 @@ var tokenize = (translation) => {
6557
6559
  return tokens;
6558
6560
  };
6559
6561
 
6560
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/renderTranslation.js
6562
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransUtils/renderTranslation.js
6561
6563
  var import_react5 = __toESM(require("react"), 1);
6562
6564
  var renderDeclarationNode = (declaration, children, childDeclarations) => {
6563
6565
  const {
@@ -6662,7 +6664,7 @@ var renderTranslation = (translation, declarations = []) => {
6662
6664
  return result;
6663
6665
  };
6664
6666
 
6665
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js
6667
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js
6666
6668
  function IcuTransWithoutContext({
6667
6669
  i18nKey,
6668
6670
  defaultTranslation,
@@ -6709,7 +6711,7 @@ function IcuTransWithoutContext({
6709
6711
  }
6710
6712
  IcuTransWithoutContext.displayName = "IcuTransWithoutContext";
6711
6713
 
6712
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTrans.js
6714
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/IcuTrans.js
6713
6715
  function IcuTrans({
6714
6716
  i18nKey,
6715
6717
  defaultTranslation,
@@ -6737,7 +6739,7 @@ function IcuTrans({
6737
6739
  }
6738
6740
  IcuTrans.displayName = "IcuTrans";
6739
6741
 
6740
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/useTranslation.js
6742
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/useTranslation.js
6741
6743
  var import_react8 = require("react");
6742
6744
  var usePrevious = (value, ignore) => {
6743
6745
  const ref = (0, import_react8.useRef)();
@@ -6844,16 +6846,16 @@ var useTranslation = (ns, props = {}) => {
6844
6846
  });
6845
6847
  };
6846
6848
 
6847
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/withTranslation.js
6849
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/withTranslation.js
6848
6850
  var import_react9 = require("react");
6849
6851
 
6850
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/I18nextProvider.js
6852
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/I18nextProvider.js
6851
6853
  var import_react10 = require("react");
6852
6854
 
6853
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/withSSR.js
6855
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/withSSR.js
6854
6856
  var import_react12 = require("react");
6855
6857
 
6856
- // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.1_typescript@6.0.3__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/dist/es/useSSR.js
6858
+ // node_modules/.pnpm/react-i18next@16.1.6_i18next@26.4.2_typescript@6.0.3__react-dom@19.3.0_react@19.3.0__react@19.3.0_typescript@6.0.3/node_modules/react-i18next/dist/es/useSSR.js
6857
6859
  var import_react11 = require("react");
6858
6860
 
6859
6861
  // src/localization/en.json
@@ -7110,6 +7112,18 @@ var en_default = {
7110
7112
  "month, billed yearly": "month, billed yearly",
7111
7113
  "month, billed quarterly": "month, billed quarterly",
7112
7114
  purchased: "purchased {{date}}",
7115
+ "Usage by user": "Usage by user",
7116
+ "X used by your team this period": "{{amount}} used by your team this period",
7117
+ "Show all X users_one": "Show all {{count}} user",
7118
+ "Show all X users_other": "Show all {{count}} users",
7119
+ "Show top X users_one": "Show top {{count}} user",
7120
+ "Show top X users_other": "Show top {{count}} users",
7121
+ "Show all": "Show all",
7122
+ "Show fewer": "Show fewer",
7123
+ Unattributed: "Unattributed",
7124
+ "There was a problem retrieving usage by user.": "There was a problem retrieving usage by user.",
7125
+ "plus X more_one": "plus {{count}} more",
7126
+ "plus X more_other": "plus {{count}} more",
7113
7127
  usage: {
7114
7128
  limited: "{{amount}} of {{allocation}} used",
7115
7129
  unlimited: "{{amount}} used"
@@ -7129,13 +7143,13 @@ use(initReactI18next).init({
7129
7143
  }
7130
7144
  });
7131
7145
 
7132
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
7146
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
7133
7147
  var import_jsx_runtime = require("react/jsx-runtime");
7134
7148
 
7135
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
7149
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
7136
7150
  var import_styled_components = __toESM(require_styled_components_cjs(), 1);
7137
7151
 
7138
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@schematichq/schematic-icons/dist/types.js
7152
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/types.js
7139
7153
  var iconsList = {
7140
7154
  "workos": 61697,
7141
7155
  "wind": 61698,
@@ -7272,7 +7286,7 @@ var FONT_FACE_RULE = `@font-face {
7272
7286
  src: url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI97ktIAAABjAAAAGBjbWFwA5tULQAAA/QAAAhw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HY2FzaGFwcAZidXJnZXIEYnVsYgdib29sZWFuCmJvb2xlYW4tb24IYm9va21hcmsFYm9hcmQEYmVsbARiYW5rCWJhY2tzcGFjZQVhdXRoMAxhcnJvdy11cHdhcmQIYXJyb3ctdXALYXJyb3ctcmlnaHQKYXJyb3ctbGVmdAphcnJvdy1kb3duDGFycm93LWN1cnZlZA9hcnJvdy1hbmFseXRpY3MIYXBwbGVwYXkEYW1leAlhbWF6b25wYXkFYWxhcm0AAA==) format("truetype");
7273
7287
  }`;
7274
7288
 
7275
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
7289
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
7276
7290
  var IconStyles = import_styled_components.createGlobalStyle`
7277
7291
  ${FONT_FACE_RULE};
7278
7292
 
@@ -7296,13 +7310,13 @@ var StyledIcon = import_styled_components.styled.i`
7296
7310
  }
7297
7311
  `;
7298
7312
 
7299
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
7313
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
7300
7314
  var Icon = ({ name, className = "", ...rest }) => {
7301
7315
  return (0, import_jsx_runtime.jsx)(StyledIcon, { className: `icon icon-${name} ${className}`, "$name": name, ...rest });
7302
7316
  };
7303
7317
 
7304
7318
  // src/context/EmbedProvider.tsx
7305
- var import_debounce = __toESM(require_debounce());
7319
+ var import_debounce2 = __toESM(require_debounce());
7306
7320
  var import_merge3 = __toESM(require_merge());
7307
7321
  var import_react14 = require("react");
7308
7322
  var import_styled_components3 = __toESM(require_styled_components_cjs());
@@ -7892,6 +7906,7 @@ var BillingCreditGrantReason = {
7892
7906
  BillingCreditAutoTopup: "billing_credit_auto_topup",
7893
7907
  Free: "free",
7894
7908
  Plan: "plan",
7909
+ PostpaidOverdraft: "postpaid_overdraft",
7895
7910
  Purchased: "purchased",
7896
7911
  Rollover: "rollover"
7897
7912
  };
@@ -9589,6 +9604,8 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9589
9604
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["metered_yearly_price"]),
9590
9605
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
9591
9606
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
9607
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON(json["overage_billing_cadence"]),
9608
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON(json["overage_invoice_anchor"]),
9592
9609
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
9593
9610
  planId: json["plan_id"],
9594
9611
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
@@ -12153,17 +12170,17 @@ var JSONApiResponse2 = class {
12153
12170
 
12154
12171
  // src/api/componentspublic/models/BillingArrearsAnchor.ts
12155
12172
  function BillingArrearsAnchorFromJSON2(json) {
12156
- return BillingArrearsAnchorFromJSONTyped5(json, false);
12173
+ return BillingArrearsAnchorFromJSONTyped6(json, false);
12157
12174
  }
12158
- function BillingArrearsAnchorFromJSONTyped5(json, ignoreDiscriminator) {
12175
+ function BillingArrearsAnchorFromJSONTyped6(json, ignoreDiscriminator) {
12159
12176
  return json;
12160
12177
  }
12161
12178
 
12162
12179
  // src/api/componentspublic/models/BillingArrearsCadence.ts
12163
12180
  function BillingArrearsCadenceFromJSON2(json) {
12164
- return BillingArrearsCadenceFromJSONTyped6(json, false);
12181
+ return BillingArrearsCadenceFromJSONTyped7(json, false);
12165
12182
  }
12166
- function BillingArrearsCadenceFromJSONTyped6(json, ignoreDiscriminator) {
12183
+ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
12167
12184
  return json;
12168
12185
  }
12169
12186
 
@@ -13106,6 +13123,8 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
13106
13123
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["metered_yearly_price"]),
13107
13124
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON2(json["metric_period"]),
13108
13125
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON2(json["metric_period_month_reset"]),
13126
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON2(json["overage_billing_cadence"]),
13127
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON2(json["overage_invoice_anchor"]),
13109
13128
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
13110
13129
  planId: json["plan_id"],
13111
13130
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
@@ -13572,6 +13591,19 @@ function calculateTieredCost(quantity, priceTiers, tiersMode) {
13572
13591
  }
13573
13592
  return cost;
13574
13593
  }
13594
+ function calculateQuantityCost(billingPrice, quantity) {
13595
+ if (!billingPrice) {
13596
+ return 0;
13597
+ }
13598
+ if (isTieredPrice(billingPrice)) {
13599
+ return calculateTieredCost(
13600
+ quantity,
13601
+ billingPrice.priceTier,
13602
+ billingPrice.tiersMode
13603
+ );
13604
+ }
13605
+ return quantity * billingPrice.price;
13606
+ }
13575
13607
  function getEntitlementCost(entitlement, period = "month", currency) {
13576
13608
  const resolvedPeriod = period ?? "month";
13577
13609
  const source = currency ? getEntitlementPrice(entitlement, resolvedPeriod, currency) : selectPriceForPeriod(
@@ -14636,6 +14668,20 @@ function modifyDate(date, days) {
14636
14668
  return copy2;
14637
14669
  }
14638
14670
 
14671
+ // src/utils/debounce.ts
14672
+ var import_debounce = __toESM(require_debounce());
14673
+ function debounceByKey(fn, wait, settings) {
14674
+ const debouncedByKey = /* @__PURE__ */ new Map();
14675
+ return (key, ...args) => {
14676
+ let debounced = debouncedByKey.get(key);
14677
+ if (!debounced) {
14678
+ debounced = (0, import_debounce.default)(fn, wait, settings);
14679
+ debouncedByKey.set(key, debounced);
14680
+ }
14681
+ return debounced(key, ...args);
14682
+ };
14683
+ }
14684
+
14639
14685
  // src/utils/string.ts
14640
14686
  var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
14641
14687
  "BIF",
@@ -15640,7 +15686,7 @@ var reducer = (state, action) => {
15640
15686
  // src/context/EmbedProvider.tsx
15641
15687
  var import_jsx_runtime3 = require("react/jsx-runtime");
15642
15688
  var getCustomHeaders = (sessionId) => ({
15643
- "X-Schematic-Components-Version": "2.25.1",
15689
+ "X-Schematic-Components-Version": "3.0.0",
15644
15690
  "X-Schematic-Session-ID": sessionId
15645
15691
  });
15646
15692
  var normalizeCurrencyFilter = (filter) => {
@@ -15751,7 +15797,7 @@ var EmbedProvider = ({
15751
15797
  }
15752
15798
  }, [publicApi]);
15753
15799
  const debouncedHydratePublic = (0, import_react14.useMemo)(
15754
- () => (0, import_debounce.default)(
15800
+ () => (0, import_debounce2.default)(
15755
15801
  hydratePublic,
15756
15802
  FETCH_DEBOUNCE_TIMEOUT,
15757
15803
  LEADING_DEBOUNCE_SETTINGS
@@ -15777,7 +15823,7 @@ var EmbedProvider = ({
15777
15823
  }
15778
15824
  }, [checkoutApi]);
15779
15825
  const debouncedHydrate = (0, import_react14.useMemo)(
15780
- () => (0, import_debounce.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15826
+ () => (0, import_debounce2.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15781
15827
  [hydrate]
15782
15828
  );
15783
15829
  const hydrateComponent = (0, import_react14.useCallback)(
@@ -15804,7 +15850,7 @@ var EmbedProvider = ({
15804
15850
  [checkoutApi]
15805
15851
  );
15806
15852
  const debouncedHydrateComponent = (0, import_react14.useMemo)(
15807
- () => (0, import_debounce.default)(
15853
+ () => (0, import_debounce2.default)(
15808
15854
  hydrateComponent,
15809
15855
  FETCH_DEBOUNCE_TIMEOUT,
15810
15856
  LEADING_DEBOUNCE_SETTINGS
@@ -15828,7 +15874,7 @@ var EmbedProvider = ({
15828
15874
  }
15829
15875
  }, []);
15830
15876
  const debouncedHydrateExternal = (0, import_react14.useMemo)(
15831
- () => (0, import_debounce.default)(
15877
+ () => (0, import_debounce2.default)(
15832
15878
  hydrateExternal,
15833
15879
  FETCH_DEBOUNCE_TIMEOUT,
15834
15880
  LEADING_DEBOUNCE_SETTINGS
@@ -15839,7 +15885,7 @@ var EmbedProvider = ({
15839
15885
  return checkoutApi?.createSetupIntent();
15840
15886
  }, [checkoutApi]);
15841
15887
  const debouncedCreateSetupIntent = (0, import_react14.useMemo)(
15842
- () => (0, import_debounce.default)(
15888
+ () => (0, import_debounce2.default)(
15843
15889
  createSetupIntent,
15844
15890
  FETCH_DEBOUNCE_TIMEOUT,
15845
15891
  LEADING_DEBOUNCE_SETTINGS
@@ -15862,7 +15908,7 @@ var EmbedProvider = ({
15862
15908
  [checkoutApi]
15863
15909
  );
15864
15910
  const debouncedUpdatePaymentMethod = (0, import_react14.useMemo)(
15865
- () => (0, import_debounce.default)(
15911
+ () => (0, import_debounce2.default)(
15866
15912
  updatePaymentMethod,
15867
15913
  FETCH_DEBOUNCE_TIMEOUT,
15868
15914
  LEADING_DEBOUNCE_SETTINGS
@@ -15885,7 +15931,7 @@ var EmbedProvider = ({
15885
15931
  [checkoutApi]
15886
15932
  );
15887
15933
  const debouncedDeletePaymentMethod = (0, import_react14.useMemo)(
15888
- () => (0, import_debounce.default)(
15934
+ () => (0, import_debounce2.default)(
15889
15935
  deletePaymentMethod,
15890
15936
  FETCH_DEBOUNCE_TIMEOUT,
15891
15937
  LEADING_DEBOUNCE_SETTINGS
@@ -15908,7 +15954,7 @@ var EmbedProvider = ({
15908
15954
  [checkoutApi]
15909
15955
  );
15910
15956
  const debouncedCheckout = (0, import_react14.useMemo)(
15911
- () => (0, import_debounce.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15957
+ () => (0, import_debounce2.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15912
15958
  [checkout]
15913
15959
  );
15914
15960
  const previewCheckout = (0, import_react14.useCallback)(
@@ -15928,7 +15974,7 @@ var EmbedProvider = ({
15928
15974
  return response;
15929
15975
  }, [checkoutApi]);
15930
15976
  const debouncedUnsubscribe = (0, import_react14.useMemo)(
15931
- () => (0, import_debounce.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15977
+ () => (0, import_debounce2.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15932
15978
  [unsubscribe]
15933
15979
  );
15934
15980
  const updateCustomFieldValues = (0, import_react14.useCallback)(
@@ -15972,7 +16018,7 @@ var EmbedProvider = ({
15972
16018
  [checkoutApi]
15973
16019
  );
15974
16020
  const debouncedGetUpcomingInvoice = (0, import_react14.useMemo)(
15975
- () => (0, import_debounce.default)(
16021
+ () => (0, import_debounce2.default)(
15976
16022
  getUpcomingInvoice,
15977
16023
  FETCH_DEBOUNCE_TIMEOUT,
15978
16024
  LEADING_DEBOUNCE_SETTINGS
@@ -15983,7 +16029,7 @@ var EmbedProvider = ({
15983
16029
  return checkoutApi?.fetchCustomerBalance();
15984
16030
  }, [checkoutApi]);
15985
16031
  const debouncedGetCustomerBalance = (0, import_react14.useMemo)(
15986
- () => (0, import_debounce.default)(
16032
+ () => (0, import_debounce2.default)(
15987
16033
  getCustomerBalance,
15988
16034
  FETCH_DEBOUNCE_TIMEOUT,
15989
16035
  LEADING_DEBOUNCE_SETTINGS
@@ -15994,9 +16040,37 @@ var EmbedProvider = ({
15994
16040
  return checkoutApi?.listInvoices();
15995
16041
  }, [checkoutApi]);
15996
16042
  const debouncedListInvoices = (0, import_react14.useMemo)(
15997
- () => (0, import_debounce.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
16043
+ () => (0, import_debounce2.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15998
16044
  [listInvoices]
15999
16045
  );
16046
+ const getCreditUsageByUser = (0, import_react14.useCallback)(
16047
+ async (billingCreditId, limit) => {
16048
+ return checkoutApi?.getCreditUsageByUser({ billingCreditId, limit });
16049
+ },
16050
+ [checkoutApi]
16051
+ );
16052
+ const debouncedGetCreditUsageByUser = (0, import_react14.useMemo)(
16053
+ () => debounceByKey(
16054
+ getCreditUsageByUser,
16055
+ FETCH_DEBOUNCE_TIMEOUT,
16056
+ LEADING_DEBOUNCE_SETTINGS
16057
+ ),
16058
+ [getCreditUsageByUser]
16059
+ );
16060
+ const getFeatureUsageByUser = (0, import_react14.useCallback)(
16061
+ async (featureId, limit) => {
16062
+ return checkoutApi?.getFeatureUsageByUser({ featureId, limit });
16063
+ },
16064
+ [checkoutApi]
16065
+ );
16066
+ const debouncedGetFeatureUsageByUser = (0, import_react14.useMemo)(
16067
+ () => debounceByKey(
16068
+ getFeatureUsageByUser,
16069
+ FETCH_DEBOUNCE_TIMEOUT,
16070
+ LEADING_DEBOUNCE_SETTINGS
16071
+ ),
16072
+ [getFeatureUsageByUser]
16073
+ );
16000
16074
  const setError = (0, import_react14.useCallback)(
16001
16075
  (error) => {
16002
16076
  debug(error.message);
@@ -16162,6 +16236,8 @@ var EmbedProvider = ({
16162
16236
  getUpcomingInvoice: debouncedGetUpcomingInvoice,
16163
16237
  getCustomerBalance: debouncedGetCustomerBalance,
16164
16238
  listInvoices: debouncedListInvoices,
16239
+ getCreditUsageByUser: debouncedGetCreditUsageByUser,
16240
+ getFeatureUsageByUser: debouncedGetFeatureUsageByUser,
16165
16241
  finishCheckout,
16166
16242
  setError,
16167
16243
  setAccessToken,
@@ -17567,7 +17643,7 @@ var Toggle = import_styled_components14.styled.input.attrs({ type: "checkbox" })
17567
17643
  `;
17568
17644
 
17569
17645
  // src/components/ui/tooltip/Tooltip.tsx
17570
- var import_debounce2 = __toESM(require_debounce());
17646
+ var import_debounce3 = __toESM(require_debounce());
17571
17647
  var import_react28 = require("react");
17572
17648
  var import_react_dom = require("react-dom");
17573
17649
 
@@ -17752,7 +17828,7 @@ var Tooltip = ({
17752
17828
  }, [portal, position]);
17753
17829
  (0, import_react28.useLayoutEffect)(() => {
17754
17830
  updateCoords();
17755
- const handleResize = (0, import_debounce2.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17831
+ const handleResize = (0, import_debounce3.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17756
17832
  window.addEventListener("resize", handleResize);
17757
17833
  window.addEventListener("scroll", handleResize, true);
17758
17834
  return () => {
@@ -17912,7 +17988,7 @@ var Root = (0, import_react31.forwardRef)(
17912
17988
  Root.displayName = "Root";
17913
17989
 
17914
17990
  // src/components/layout/viewport/Viewport.tsx
17915
- var import_debounce4 = __toESM(require_debounce());
17991
+ var import_debounce5 = __toESM(require_debounce());
17916
17992
  var import_react49 = require("react");
17917
17993
  var import_react_dom3 = require("react-dom");
17918
17994
 
@@ -18860,11 +18936,10 @@ var Quantity = ({
18860
18936
  children: [
18861
18937
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Text, { children: [
18862
18938
  formatCurrency(
18863
- tiered && priceTiers ? calculateTieredCost(
18864
- entitlement.quantity,
18865
- priceTiers,
18866
- tiersMode
18867
- ) : (price ?? 0) * entitlement.quantity,
18939
+ calculateQuantityCost(
18940
+ entitlementBillingPrice,
18941
+ entitlement.quantity
18942
+ ),
18868
18943
  currency
18869
18944
  ),
18870
18945
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("sub", { children: [
@@ -19743,7 +19818,7 @@ var Checkout = ({
19743
19818
  };
19744
19819
 
19745
19820
  // src/components/shared/checkout-dialog/CheckoutDialog.tsx
19746
- var import_debounce3 = __toESM(require_debounce());
19821
+ var import_debounce4 = __toESM(require_debounce());
19747
19822
  var import_react38 = require("react");
19748
19823
 
19749
19824
  // src/components/shared/checkout-dialog/Navigation.tsx
@@ -20545,7 +20620,7 @@ var CheckoutDialog = ({ top }) => {
20545
20620
  }, [handlePreviewCheckout]);
20546
20621
  const debouncedPreviewCheckoutRef = (0, import_react38.useRef)(null);
20547
20622
  (0, import_react38.useEffect)(() => {
20548
- const debounced = (0, import_debounce3.default)(
20623
+ const debounced = (0, import_debounce4.default)(
20549
20624
  (updates) => handlePreviewCheckoutRef.current(updates),
20550
20625
  FETCH_DEBOUNCE_TIMEOUT,
20551
20626
  TRAILING_DEBOUNCE_SETTINGS
@@ -22656,6 +22731,29 @@ var EntitlementRow = (props) => {
22656
22731
  tiersMode
22657
22732
  } = entitlementPrice || {};
22658
22733
  const tiered = priceBehavior === EntitlementPriceBehavior.PayInAdvance && isTieredPrice(entitlementPrice);
22734
+ const tierLabel = /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
22735
+ Text,
22736
+ {
22737
+ style: { opacity: 0.54 },
22738
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22739
+ $color: settings.theme.typography.text.color,
22740
+ children: [
22741
+ t3("Tier-based"),
22742
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
22743
+ PricingTiersTooltip,
22744
+ {
22745
+ portal,
22746
+ feature,
22747
+ period: planPeriod,
22748
+ currency,
22749
+ priceTiers,
22750
+ tiersMode: tiersMode ?? void 0,
22751
+ position: "left"
22752
+ }
22753
+ )
22754
+ ]
22755
+ }
22756
+ );
22659
22757
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
22660
22758
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
22661
22759
  quantity,
@@ -22666,13 +22764,24 @@ var EntitlementRow = (props) => {
22666
22764
  " ",
22667
22765
  getFeatureName(feature, softLimit)
22668
22766
  ] }) : feature.name }) }),
22669
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22670
- formatCurrency((price ?? 0) * quantity, currency),
22671
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("sub", { children: [
22672
- "/",
22673
- shortenPeriod(planPeriod)
22767
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22768
+ // A tiered scheme still resolves to a fixed amount at the chosen
22769
+ // quantity, so the row shows it alongside the tier breakdown
22770
+ // rather than leaving the charge unpriced.
22771
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", $alignItems: "end", children: [
22772
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22773
+ formatCurrency(
22774
+ calculateQuantityCost(entitlementPrice, quantity),
22775
+ currency
22776
+ ),
22777
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("sub", { children: [
22778
+ "/",
22779
+ shortenPeriod(planPeriod)
22780
+ ] })
22781
+ ] }),
22782
+ tiered && tierLabel
22674
22783
  ] })
22675
- ] }) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22784
+ ) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22676
22785
  priceBehavior === EntitlementPriceBehavior.Overage && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
22677
22786
  t3("then"),
22678
22787
  " "
@@ -22690,29 +22799,7 @@ var EntitlementRow = (props) => {
22690
22799
  shortenPeriod(planPeriod)
22691
22800
  ] })
22692
22801
  ] })
22693
- ] }) : (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
22694
- Text,
22695
- {
22696
- style: { opacity: 0.54 },
22697
- $size: 0.875 * settings.theme.typography.text.fontSize,
22698
- $color: settings.theme.typography.text.color,
22699
- children: [
22700
- t3("Tier-based"),
22701
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
22702
- PricingTiersTooltip,
22703
- {
22704
- portal,
22705
- feature,
22706
- period: planPeriod,
22707
- currency,
22708
- priceTiers,
22709
- tiersMode: tiersMode ?? void 0,
22710
- position: "left"
22711
- }
22712
- )
22713
- ]
22714
- }
22715
- ) })
22802
+ ] }) : priceBehavior === EntitlementPriceBehavior.Tier && tierLabel })
22716
22803
  ] });
22717
22804
  }
22718
22805
  };
@@ -22908,12 +22995,18 @@ var SubscriptionSidebar = (0, import_react46.forwardRef)(
22908
22995
  }, 0);
22909
22996
  total += addOnCost;
22910
22997
  const payInAdvanceCost = payInAdvanceEntitlements.reduce(
22911
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22998
+ (sum, entitlement) => sum + calculateQuantityCost(
22999
+ getEntitlementPrice(entitlement, planPeriod, currency),
23000
+ entitlement.quantity
23001
+ ),
22912
23002
  0
22913
23003
  );
22914
23004
  total += payInAdvanceCost;
22915
23005
  const addOnPayInAdvanceCost = addOnPayInAdvanceEntitlements.reduce(
22916
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
23006
+ (sum, entitlement) => sum + calculateQuantityCost(
23007
+ getEntitlementPrice(entitlement, planPeriod, currency),
23008
+ entitlement.quantity
23009
+ ),
22917
23010
  0
22918
23011
  );
22919
23012
  total += addOnPayInAdvanceCost;
@@ -24377,7 +24470,7 @@ var Viewport = (0, import_react49.forwardRef)(
24377
24470
  const [top, setTop] = (0, import_react49.useState)(0);
24378
24471
  (0, import_react49.useLayoutEffect)(() => {
24379
24472
  const element = portalRef.current;
24380
- const setModalY = (0, import_debounce4.default)(() => {
24473
+ const setModalY = (0, import_debounce5.default)(() => {
24381
24474
  const value = Math.abs(
24382
24475
  (element === document.body ? window.scrollY : element.scrollTop) ?? 0
24383
24476
  );
@@ -25091,7 +25184,7 @@ var Invoices = (0, import_react53.forwardRef)(({ className, ...rest }, ref) => {
25091
25184
  Invoices.displayName = "Invoices";
25092
25185
 
25093
25186
  // src/components/elements/metered-features/MeteredFeatures.tsx
25094
- var import_react54 = require("react");
25187
+ var import_react55 = require("react");
25095
25188
 
25096
25189
  // src/components/elements/metered-features/Meter.tsx
25097
25190
  var import_jsx_runtime54 = require("react/jsx-runtime");
@@ -25219,6 +25312,190 @@ var PriceDetails = ({
25219
25312
  );
25220
25313
  };
25221
25314
 
25315
+ // src/components/elements/metered-features/UsageByUser.tsx
25316
+ var import_react54 = require("react");
25317
+ var import_jsx_runtime56 = require("react/jsx-runtime");
25318
+ var COLLAPSED_COUNT = 3;
25319
+ var EXPANDED_COUNT = 20;
25320
+ var toCreditSection = (data) => ({
25321
+ entries: data.entries.map((entry) => ({
25322
+ id: entry.userId,
25323
+ // An entry with no hydrated user record still has an id worth showing —
25324
+ // a blank row identifies nobody.
25325
+ label: entry.user?.name || entry.userId || "",
25326
+ amount: entry.creditsUsed
25327
+ })),
25328
+ total: data.total,
25329
+ totalUsers: data.totalUsers,
25330
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.creditsUsed } : null
25331
+ });
25332
+ var toFeatureSection = (data) => ({
25333
+ entries: data.rows.map((row) => ({
25334
+ id: row.userId,
25335
+ label: row.user?.name || row.userId || "",
25336
+ amount: row.value
25337
+ })),
25338
+ total: data.total,
25339
+ totalUsers: data.totalUsers,
25340
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.value } : null
25341
+ });
25342
+ var mutedColor = (isLight) => isLight ? "hsla(0, 0%, 0%, 0.46)" : "hsla(0, 0%, 100%, 0.46)";
25343
+ var InitialAvatar = ({ label }) => {
25344
+ const { settings } = useEmbed();
25345
+ const isLightBackground = useIsLightBackground();
25346
+ const initial = (label.trim()[0] ?? "?").toUpperCase();
25347
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25348
+ Flex,
25349
+ {
25350
+ $alignItems: "center",
25351
+ $justifyContent: "center",
25352
+ $width: "1.75rem",
25353
+ $height: "1.75rem",
25354
+ $flexShrink: 0,
25355
+ $borderRadius: "9999px",
25356
+ $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
25357
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25358
+ Text,
25359
+ {
25360
+ $size: 11,
25361
+ $weight: 500,
25362
+ $color: settings.theme.typography.text.color,
25363
+ children: initial
25364
+ }
25365
+ )
25366
+ }
25367
+ );
25368
+ };
25369
+ var UsageByUser = ({ source, unit }) => {
25370
+ const { t: t3 } = useTranslation();
25371
+ const isLightBackground = useIsLightBackground();
25372
+ const { getCreditUsageByUser, getFeatureUsageByUser } = useEmbed();
25373
+ const [expanded, setExpanded] = (0, import_react54.useState)(false);
25374
+ const [result, setResult] = (0, import_react54.useState)();
25375
+ const [attempt, setAttempt] = (0, import_react54.useState)(0);
25376
+ const { kind, id } = source;
25377
+ const sourceKey = `${kind}:${id}`;
25378
+ const current = result?.sourceKey === sourceKey ? result : void 0;
25379
+ (0, import_react54.useEffect)(() => {
25380
+ let active = true;
25381
+ const apply = (next) => {
25382
+ if (active) {
25383
+ setResult(next);
25384
+ }
25385
+ };
25386
+ const receive = (section) => {
25387
+ if (section) {
25388
+ apply({ sourceKey, section });
25389
+ }
25390
+ };
25391
+ const fail = (err) => apply({ sourceKey, error: isError(err) ? err : ERROR_UNKNOWN });
25392
+ if (kind === "credit") {
25393
+ getCreditUsageByUser(id, EXPANDED_COUNT)?.then(
25394
+ (response) => receive(response && toCreditSection(response.data))
25395
+ ).catch(fail);
25396
+ } else {
25397
+ getFeatureUsageByUser(id, EXPANDED_COUNT)?.then(
25398
+ (response) => receive(response && toFeatureSection(response.data))
25399
+ ).catch(fail);
25400
+ }
25401
+ return () => {
25402
+ active = false;
25403
+ };
25404
+ }, [
25405
+ attempt,
25406
+ getCreditUsageByUser,
25407
+ getFeatureUsageByUser,
25408
+ id,
25409
+ kind,
25410
+ sourceKey
25411
+ ]);
25412
+ const entries = current?.section?.entries;
25413
+ const attributed = (0, import_react54.useMemo)(
25414
+ () => [...entries ?? []].sort((a, b) => b.amount - a.amount),
25415
+ [entries]
25416
+ );
25417
+ const error = current?.error;
25418
+ const total = current?.section?.total ?? 0;
25419
+ const totalUsers = current?.section?.totalUsers ?? 0;
25420
+ const unattributed = current?.section?.unattributed;
25421
+ const formatAmount = (amount) => `${formatNumber(amount)} ${getFeatureName(unit, amount)}`;
25422
+ if (error) {
25423
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25424
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "heading4", children: t3("Usage by user") }),
25425
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving usage by user.") }),
25426
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25427
+ Button,
25428
+ {
25429
+ type: "button",
25430
+ onClick: () => setAttempt((prev) => prev + 1),
25431
+ $size: "sm",
25432
+ $variant: "ghost",
25433
+ $fullWidth: false,
25434
+ children: t3("Try again")
25435
+ }
25436
+ )
25437
+ ] });
25438
+ }
25439
+ if (attributed.length === 0 && !unattributed) {
25440
+ return null;
25441
+ }
25442
+ const visible = attributed.slice(
25443
+ 0,
25444
+ expanded ? EXPANDED_COUNT : COLLAPSED_COUNT
25445
+ );
25446
+ const remaining = Math.max(totalUsers - visible.length, 0);
25447
+ const expandedUserCount = Math.min(totalUsers, EXPANDED_COUNT);
25448
+ const hiddenUsers = Math.max(
25449
+ expandedUserCount - Math.min(attributed.length, COLLAPSED_COUNT),
25450
+ 0
25451
+ );
25452
+ const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25453
+ const expandLabel = totalUsers > EXPANDED_COUNT ? t3("Show top X users", { count: EXPANDED_COUNT }) : hiddenUsers > 0 ? t3("Show all X users", { count: totalUsers }) : t3("Show all");
25454
+ const row = (key, label, amount, muted) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25455
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InitialAvatar, { label: muted ? "?" : label }),
25456
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25457
+ Text,
25458
+ {
25459
+ display: "text",
25460
+ $color: muted ? mutedColor(isLightBackground) : void 0,
25461
+ children: label
25462
+ }
25463
+ ) }),
25464
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25465
+ Text,
25466
+ {
25467
+ display: "text",
25468
+ $align: "right",
25469
+ $color: mutedColor(isLightBackground),
25470
+ children: formatAmount(amount)
25471
+ }
25472
+ )
25473
+ ] }, key);
25474
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25475
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "heading4", children: t3("Usage by user") }),
25476
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("X used by your team this period", {
25477
+ amount: formatAmount(total)
25478
+ }) }) }),
25479
+ visible.map(
25480
+ (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25481
+ ),
25482
+ expanded && unattributed && row("unattributed", t3("Unattributed"), unattributed.amount, true),
25483
+ expanded && remaining > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $marginTop: "0.25rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "text", $color: mutedColor(isLightBackground), children: t3("plus X more", { count: remaining }) }) }),
25484
+ shouldShowToggle && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25485
+ ExpandListToggle,
25486
+ {
25487
+ isExpanded: expanded,
25488
+ onToggle: () => setExpanded((prev) => !prev),
25489
+ expandLabel,
25490
+ collapseLabel: t3("Show fewer"),
25491
+ iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)",
25492
+ $marginTop: "0.25rem"
25493
+ }
25494
+ )
25495
+ ] });
25496
+ };
25497
+ UsageByUser.displayName = "UsageByUser";
25498
+
25222
25499
  // src/components/elements/metered-features/styles.ts
25223
25500
  var import_styled_components22 = __toESM(require_styled_components_cjs());
25224
25501
  var Container2 = import_styled_components22.styled.div`
@@ -25238,7 +25515,7 @@ var Container2 = import_styled_components22.styled.div`
25238
25515
  `;
25239
25516
 
25240
25517
  // src/components/elements/metered-features/MeteredFeatures.tsx
25241
- var import_jsx_runtime56 = require("react/jsx-runtime");
25518
+ var import_jsx_runtime57 = require("react/jsx-runtime");
25242
25519
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25243
25520
  const { t: t3 } = useTranslation();
25244
25521
  const { data } = useEmbed();
@@ -25275,9 +25552,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25275
25552
  })
25276
25553
  );
25277
25554
  }
25278
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Text, { display: fontStyle, children: [
25555
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Text, { display: fontStyle, children: [
25279
25556
  acc.join(" \u2022 "),
25280
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25557
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25281
25558
  HardLimitTooltip,
25282
25559
  {
25283
25560
  feature: entitlement.feature,
@@ -25307,19 +25584,22 @@ function resolveDesignProps4(props) {
25307
25584
  isVisible: props.usage?.isVisible ?? true,
25308
25585
  fontStyle: props.usage?.fontStyle ?? "heading5"
25309
25586
  },
25587
+ usageByUser: {
25588
+ isVisible: props.usageByUser?.isVisible ?? true
25589
+ },
25310
25590
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
25311
25591
  visibleFeatures: props.visibleFeatures
25312
25592
  };
25313
25593
  }
25314
- var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, ref) => {
25594
+ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, ref) => {
25315
25595
  const props = resolveDesignProps4(rest);
25316
- const elementsRef = (0, import_react54.useRef)([]);
25596
+ const elementsRef = (0, import_react55.useRef)([]);
25317
25597
  const shouldWrapChildren = useWrapChildren(elementsRef);
25318
25598
  const { t: t3 } = useTranslation();
25319
25599
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
25320
25600
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
25321
25601
  const isLightBackground = useIsLightBackground();
25322
- const meteredFeatures = (0, import_react54.useMemo)(() => {
25602
+ const meteredFeatures = (0, import_react55.useMemo)(() => {
25323
25603
  const orderedFeatureUsage = props.visibleFeatures?.reduce(
25324
25604
  (acc, id) => {
25325
25605
  const mappedFeatureUsage = data?.featureUsage?.features.find(
@@ -25336,7 +25616,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25336
25616
  ({ feature }) => feature?.featureType === FeatureType.Event || feature?.featureType === FeatureType.Trait
25337
25617
  );
25338
25618
  }, [props.visibleFeatures, data?.featureUsage?.features]);
25339
- const creditGroups = (0, import_react54.useMemo)(
25619
+ const creditGroups = (0, import_react55.useMemo)(
25340
25620
  () => withEmptyPlanCreditBalances(
25341
25621
  aggregateActiveGrantsByCredit(data?.creditGrants || []),
25342
25622
  listPlanCredits(
@@ -25347,11 +25627,11 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25347
25627
  ),
25348
25628
  [data?.creditGrants, data?.featureUsage?.features, data?.company]
25349
25629
  );
25350
- const planCreditCompositions = (0, import_react54.useMemo)(
25630
+ const planCreditCompositions = (0, import_react55.useMemo)(
25351
25631
  () => groupPlanCreditGrants(data?.company?.plan?.includedCreditGrants ?? []),
25352
25632
  [data?.company?.plan?.includedCreditGrants]
25353
25633
  );
25354
- const resolveLicenseQuantity = (0, import_react54.useCallback)(
25634
+ const resolveLicenseQuantity = (0, import_react55.useCallback)(
25355
25635
  (licenseId) => {
25356
25636
  const allocation = findLicenseSource(
25357
25637
  data?.featureUsage?.features ?? [],
@@ -25361,17 +25641,17 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25361
25641
  },
25362
25642
  [data?.featureUsage?.features]
25363
25643
  );
25364
- const purchasableCreditIds = (0, import_react54.useMemo)(
25644
+ const purchasableCreditIds = (0, import_react55.useMemo)(
25365
25645
  () => getPurchasableCreditIds(data?.creditBundles, data?.company?.plan?.id),
25366
25646
  [data?.creditBundles, data?.company?.plan?.id]
25367
25647
  );
25368
- const [expandedCreditIds, setExpandedCreditIds] = (0, import_react54.useState)(
25648
+ const [expandedCreditIds, setExpandedCreditIds] = (0, import_react55.useState)(
25369
25649
  () => /* @__PURE__ */ new Set()
25370
25650
  );
25371
- const [fullLedgerCreditIds, setFullLedgerCreditIds] = (0, import_react54.useState)(
25651
+ const [fullLedgerCreditIds, setFullLedgerCreditIds] = (0, import_react55.useState)(
25372
25652
  () => /* @__PURE__ */ new Set()
25373
25653
  );
25374
- const toggleFullLedger = (0, import_react54.useCallback)((id) => {
25654
+ const toggleFullLedger = (0, import_react55.useCallback)((id) => {
25375
25655
  setFullLedgerCreditIds((prev) => {
25376
25656
  const next = new Set(prev);
25377
25657
  if (next.has(id)) {
@@ -25382,7 +25662,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25382
25662
  return next;
25383
25663
  });
25384
25664
  }, []);
25385
- const toggleBalanceDetails = (0, import_react54.useCallback)((id) => {
25665
+ const toggleBalanceDetails = (0, import_react55.useCallback)((id) => {
25386
25666
  setExpandedCreditIds((prev) => {
25387
25667
  const next = new Set(prev);
25388
25668
  if (next.has(id)) {
@@ -25408,7 +25688,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25408
25688
  const period = getSubscriptionPeriod(data?.company?.billingSubscription) ?? (typeof data?.company?.plan?.planPeriod === "string" ? data.company?.plan?.planPeriod : void 0);
25409
25689
  const canCheckout = data?.capabilities?.checkout ?? false;
25410
25690
  const showCredits = data?.displaySettings?.showCredits ?? true;
25411
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Container2, { ref, className, children: [
25691
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Container2, { ref, className, children: [
25412
25692
  meteredFeatures.reduce((acc, entitlement, index) => {
25413
25693
  if (!entitlement.feature) {
25414
25694
  return acc;
@@ -25419,9 +25699,9 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25419
25699
  });
25420
25700
  const { limit } = usageDetails;
25421
25701
  acc.push(
25422
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25423
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1.5rem", children: [
25424
- props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25702
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25703
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1.5rem", children: [
25704
+ props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25425
25705
  Icon3,
25426
25706
  {
25427
25707
  name: feature.icon,
@@ -25430,8 +25710,8 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25430
25710
  rounded: true
25431
25711
  }
25432
25712
  ),
25433
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25434
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25713
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25714
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25435
25715
  Flex,
25436
25716
  {
25437
25717
  ref: (el) => {
@@ -25442,31 +25722,31 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25442
25722
  $flexWrap: "wrap",
25443
25723
  $gap: "1rem",
25444
25724
  children: [
25445
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25446
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.header.fontStyle, children: feature.name }) }),
25447
- props.description.isVisible && feature.description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.description.fontStyle, children: feature.description }) })
25725
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25726
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: feature.name }) }),
25727
+ props.description.isVisible && feature.description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.description.fontStyle, children: feature.description }) })
25448
25728
  ] }),
25449
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25729
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25450
25730
  Box,
25451
25731
  {
25452
25732
  $flexBasis: "min-content",
25453
25733
  $flexGrow: 1,
25454
25734
  $textAlign: shouldWrapChildren ? "left" : "right",
25455
25735
  children: [
25456
- props.usage.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25457
- typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25736
+ props.usage.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25737
+ typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25458
25738
  formatNumber(limit),
25459
25739
  " "
25460
25740
  ] }),
25461
25741
  getFeatureName(feature, limit)
25462
- ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25742
+ ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25463
25743
  formatNumber(usage),
25464
25744
  " ",
25465
25745
  getFeatureName(feature, usage),
25466
25746
  " ",
25467
25747
  t3("used")
25468
25748
  ] }) }) }),
25469
- props.allocation.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25749
+ props.allocation.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25470
25750
  Limit,
25471
25751
  {
25472
25752
  entitlement,
@@ -25480,8 +25760,8 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25480
25760
  ]
25481
25761
  }
25482
25762
  ),
25483
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Meter, { entitlement }),
25484
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25763
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Meter, { entitlement }),
25764
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25485
25765
  Button,
25486
25766
  {
25487
25767
  type: "button",
@@ -25494,13 +25774,24 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25494
25774
  )
25495
25775
  ] })
25496
25776
  ] }),
25497
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25777
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25498
25778
  PriceDetails,
25499
25779
  {
25500
25780
  entitlement,
25501
25781
  usageDetails,
25502
25782
  period
25503
25783
  }
25784
+ ),
25785
+ props.usageByUser.isVisible && feature.featureType === FeatureType.Event && // The per-user amounts come from the feature usage endpoint, so
25786
+ // they are denominated in the feature's own unit — the same one
25787
+ // the usage line above uses. A credit-burndown feature's credit
25788
+ // spend is broken down separately, under its credit.
25789
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25790
+ UsageByUser,
25791
+ {
25792
+ source: { kind: "feature", id: feature.id },
25793
+ unit: feature
25794
+ }
25504
25795
  )
25505
25796
  ] }, index)
25506
25797
  );
@@ -25514,9 +25805,9 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25514
25805
  const visibleGrants = showAllGrants ? credit.grants : credit.grants.slice(0, VISIBLE_CREDIT_COUNT);
25515
25806
  const paddingX = settings.theme.card.padding / TEXT_BASE_SIZE;
25516
25807
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25517
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25518
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1.5rem", children: [
25519
- props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25808
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25809
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1.5rem", children: [
25810
+ props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25520
25811
  Icon3,
25521
25812
  {
25522
25813
  name: credit.icon,
@@ -25525,13 +25816,13 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25525
25816
  rounded: true
25526
25817
  }
25527
25818
  ),
25528
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25529
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25530
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.header.fontStyle, children: credit.name }) }),
25531
- props.description.isVisible && credit.description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.description.fontStyle, children: credit.description }) })
25819
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25820
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25821
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: credit.name }) }),
25822
+ props.description.isVisible && credit.description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.description.fontStyle, children: credit.description }) })
25532
25823
  ] }) }),
25533
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1rem", $alignItems: "center", children: [
25534
- props.usage.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
25824
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1rem", $alignItems: "center", children: [
25825
+ props.usage.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.usage.fontStyle, children: t3("X units remaining", {
25535
25826
  // Balances burn at rates with up to 10 decimal
25536
25827
  // places, so a small remainder must not round to 0.
25537
25828
  amount: formatNumber(credit.total.remaining, {
@@ -25542,7 +25833,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25542
25833
  credit.total.remaining
25543
25834
  )
25544
25835
  }) }) }),
25545
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25836
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25546
25837
  Button,
25547
25838
  {
25548
25839
  type: "button",
@@ -25595,7 +25886,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25595
25886
  const renewalDate = data?.upcomingInvoice?.dueDate;
25596
25887
  return (
25597
25888
  // Pulled up against the balance line despite the column's 2rem gap
25598
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25889
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25599
25890
  Text,
25600
25891
  {
25601
25892
  style: { opacity: 0.54 },
@@ -25608,7 +25899,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25608
25899
  period: shortenPeriod(composition.period),
25609
25900
  composition: ` \u2014 ${parts.join(" + ")}`
25610
25901
  }),
25611
- renewalDate && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25902
+ renewalDate && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25612
25903
  " ",
25613
25904
  t3("Renews on the day", {
25614
25905
  day: formatOrdinal(renewalDate.getDate())
@@ -25621,12 +25912,12 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25621
25912
  })()
25622
25913
  ] })
25623
25914
  ] }),
25624
- hasGrants && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25915
+ hasGrants && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25625
25916
  Box,
25626
25917
  {
25627
25918
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
25628
25919
  $margin: `0 0 0 -${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
25629
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25920
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25630
25921
  TransitionBox,
25631
25922
  {
25632
25923
  $backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.0375)" : "hsla(0, 0%, 100%, 0.075)",
@@ -25634,22 +25925,22 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25634
25925
  children: [
25635
25926
  visibleGrants.map((grant, index2) => {
25636
25927
  const padding = getRowPadding(index2);
25637
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25638
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t3("X items included in plan", {
25928
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25929
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t3("X items included in plan", {
25639
25930
  amount: grant.quantity,
25640
25931
  item: getFeatureName(
25641
25932
  credit,
25642
25933
  grant.quantity
25643
25934
  )
25644
25935
  }) }) }),
25645
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25936
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25646
25937
  Box,
25647
25938
  {
25648
25939
  $display: "table-cell",
25649
25940
  $padding: padding,
25650
25941
  $textAlign: "right",
25651
25942
  $whiteSpace: "nowrap",
25652
- children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t3("Resets", {
25943
+ children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t3("Resets", {
25653
25944
  date: toPrettyDate(
25654
25945
  modifyDate(grant.expiresAt, 1),
25655
25946
  { month: "short" }
@@ -25657,15 +25948,15 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25657
25948
  }) })
25658
25949
  }
25659
25950
  )
25660
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25661
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: t3("X item bundle", {
25951
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25952
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: t3("X item bundle", {
25662
25953
  amount: grant.quantity,
25663
25954
  item: getFeatureName(credit, 1),
25664
25955
  createdAt: toPrettyDate(
25665
25956
  grant.createdAt,
25666
25957
  { month: "short" }
25667
25958
  )
25668
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: t3("X item auto-topup", {
25959
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: t3("X item auto-topup", {
25669
25960
  amount: grant.quantity,
25670
25961
  item: getFeatureName(
25671
25962
  credit,
@@ -25675,7 +25966,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25675
25966
  grant.createdAt,
25676
25967
  { month: "short" }
25677
25968
  )
25678
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: t3("X item grant", {
25969
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: t3("X item grant", {
25679
25970
  amount: grant.quantity,
25680
25971
  item: getFeatureName(
25681
25972
  credit,
@@ -25686,14 +25977,14 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25686
25977
  { month: "short" }
25687
25978
  )
25688
25979
  }) }) }) }),
25689
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25980
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25690
25981
  Box,
25691
25982
  {
25692
25983
  $display: "table-cell",
25693
25984
  $padding: padding,
25694
25985
  $textAlign: "right",
25695
25986
  $whiteSpace: "nowrap",
25696
- children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t3("Expires", {
25987
+ children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t3("Expires", {
25697
25988
  date: toPrettyDate(
25698
25989
  modifyDate(grant.expiresAt, 1),
25699
25990
  { month: "short" }
@@ -25703,8 +25994,8 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25703
25994
  )
25704
25995
  ] }) }, grant.id);
25705
25996
  }),
25706
- canExpandLedger && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Box, { $display: "table-row", children: [
25707
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25997
+ canExpandLedger && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $display: "table-row", children: [
25998
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25708
25999
  ExpandListToggle,
25709
26000
  {
25710
26001
  isExpanded: showAllGrants,
@@ -25713,7 +26004,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25713
26004
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25714
26005
  }
25715
26006
  ) }),
25716
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
26007
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25717
26008
  Box,
25718
26009
  {
25719
26010
  $display: "table-cell",
@@ -25726,7 +26017,7 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25726
26017
  )
25727
26018
  }
25728
26019
  ),
25729
- hasGrants && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
26020
+ hasGrants && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25730
26021
  ExpandListToggle,
25731
26022
  {
25732
26023
  isExpanded,
@@ -25735,6 +26026,13 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25735
26026
  collapseLabel: t3("Hide balance details"),
25736
26027
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25737
26028
  }
26029
+ ),
26030
+ props.usageByUser.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26031
+ UsageByUser,
26032
+ {
26033
+ source: { kind: "credit", id: credit.id },
26034
+ unit: credit
26035
+ }
25738
26036
  )
25739
26037
  ] }, index);
25740
26038
  })
@@ -25743,11 +26041,11 @@ var MeteredFeatures = (0, import_react54.forwardRef)(({ className, ...rest }, re
25743
26041
  MeteredFeatures.displayName = "MeteredFeatures";
25744
26042
 
25745
26043
  // src/components/elements/payment-method/PaymentMethod.tsx
25746
- var import_react56 = require("react");
26044
+ var import_react57 = require("react");
25747
26045
 
25748
26046
  // src/components/elements/payment-method/PaymentMethodElement.tsx
25749
- var import_react55 = require("react");
25750
- var import_jsx_runtime57 = require("react/jsx-runtime");
26047
+ var import_react56 = require("react");
26048
+ var import_jsx_runtime58 = require("react/jsx-runtime");
25751
26049
  var PaymentElement2 = ({
25752
26050
  iconName,
25753
26051
  iconTitle,
@@ -25755,8 +26053,8 @@ var PaymentElement2 = ({
25755
26053
  paymentLast4
25756
26054
  }) => {
25757
26055
  const { settings } = useEmbed();
25758
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25759
- iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26056
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
26057
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25760
26058
  Icon3,
25761
26059
  {
25762
26060
  name: iconName,
@@ -25764,15 +26062,15 @@ var PaymentElement2 = ({
25764
26062
  color: settings.theme.typography.text.color
25765
26063
  }
25766
26064
  ),
25767
- (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $flexGrow: 1, children: [
25768
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: label }),
26065
+ (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Box, { $flexGrow: 1, children: [
26066
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: label }),
25769
26067
  " ",
25770
- paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: paymentLast4 })
26068
+ paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: paymentLast4 })
25771
26069
  ] })
25772
26070
  ] });
25773
26071
  };
25774
26072
  var EmptyPaymentElement = () => {
25775
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Flex, { $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $lineHeight: 1, children: t("No payment method added yet") }) }) }) });
26073
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Flex, { $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Box, { $lineHeight: 1, children: t("No payment method added yet") }) }) }) });
25776
26074
  };
25777
26075
  var getPaymentMethodData = ({
25778
26076
  accountLast4,
@@ -25852,12 +26150,12 @@ var PaymentMethodElement = ({
25852
26150
  const isLightBackground = useIsLightBackground();
25853
26151
  const sizeFactor = size === "lg" ? 1.5 : size === "md" ? 1 : 0.5;
25854
26152
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
25855
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25856
- props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25857
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
25858
- props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t3("Expires in X months", { months: monthsToExpiration }) : t3("Expired") })
26153
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
26154
+ props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
26155
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { display: props.header.fontStyle, children: t3("Payment Details") }),
26156
+ props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t3("Expires in X months", { months: monthsToExpiration }) : t3("Expired") })
25859
26157
  ] }),
25860
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
26158
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
25861
26159
  Flex,
25862
26160
  {
25863
26161
  $justifyContent: "space-between",
@@ -25866,8 +26164,8 @@ var PaymentMethodElement = ({
25866
26164
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
25867
26165
  $borderRadius: "9999px",
25868
26166
  children: [
25869
- paymentMethod ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(EmptyPaymentElement, {}),
25870
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26167
+ paymentMethod ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(EmptyPaymentElement, {}),
26168
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25871
26169
  Text,
25872
26170
  {
25873
26171
  onClick: onRemove,
@@ -25877,7 +26175,7 @@ var PaymentMethodElement = ({
25877
26175
  children: t3("Remove")
25878
26176
  }
25879
26177
  ),
25880
- props.functions.allowEdit && onEdit && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26178
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25881
26179
  Text,
25882
26180
  {
25883
26181
  onClick: onEdit,
@@ -25890,8 +26188,8 @@ var PaymentMethodElement = ({
25890
26188
  ]
25891
26189
  }
25892
26190
  ),
25893
- hasCustomFields && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
25894
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26191
+ hasCustomFields && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
26192
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25895
26193
  Text,
25896
26194
  {
25897
26195
  $size: 12,
@@ -25899,7 +26197,7 @@ var PaymentMethodElement = ({
25899
26197
  children: field.name
25900
26198
  }
25901
26199
  ),
25902
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26200
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25903
26201
  "span",
25904
26202
  {
25905
26203
  style: {
@@ -25920,7 +26218,7 @@ var PaymentListElement = ({
25920
26218
  const { settings } = useEmbed();
25921
26219
  const isLightBackground = useIsLightBackground();
25922
26220
  const { iconName, iconTitle, label, paymentLast4 } = getPaymentMethodData(paymentMethod);
25923
- const expirationDate = (0, import_react55.useMemo)(() => {
26221
+ const expirationDate = (0, import_react56.useMemo)(() => {
25924
26222
  const { cardExpMonth, cardExpYear } = paymentMethod;
25925
26223
  if (!cardExpMonth || !cardExpYear) {
25926
26224
  return;
@@ -25931,7 +26229,7 @@ var PaymentListElement = ({
25931
26229
  }
25932
26230
  return `${cardExpMonth}/${formatedYear}`;
25933
26231
  }, [paymentMethod]);
25934
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
26232
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
25935
26233
  Flex,
25936
26234
  {
25937
26235
  $flexDirection: "row",
@@ -25943,7 +26241,7 @@ var PaymentListElement = ({
25943
26241
  $borderStyle: "solid",
25944
26242
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
25945
26243
  children: [
25946
- iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26244
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25947
26245
  Icon3,
25948
26246
  {
25949
26247
  name: iconName,
@@ -25951,20 +26249,20 @@ var PaymentListElement = ({
25951
26249
  color: settings.theme.typography.text.color
25952
26250
  }
25953
26251
  ),
25954
- (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $flexGrow: 1, children: [
25955
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: label }),
26252
+ (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Box, { $flexGrow: 1, children: [
26253
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: label }),
25956
26254
  " ",
25957
- paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: paymentLast4 })
26255
+ paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: paymentLast4 })
25958
26256
  ] }),
25959
- expirationDate && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26257
+ expirationDate && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25960
26258
  Box,
25961
26259
  {
25962
26260
  $flexGrow: 1,
25963
26261
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
25964
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t("Expires", { date: expirationDate }) })
26262
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: t("Expires", { date: expirationDate }) })
25965
26263
  }
25966
26264
  ),
25967
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26265
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25968
26266
  Text,
25969
26267
  {
25970
26268
  onClick: () => {
@@ -25977,7 +26275,7 @@ var PaymentListElement = ({
25977
26275
  children: t("Set default")
25978
26276
  }
25979
26277
  ) }),
25980
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
26278
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25981
26279
  Icon3,
25982
26280
  {
25983
26281
  tabIndex: 0,
@@ -25999,7 +26297,7 @@ var PaymentListElement = ({
25999
26297
  };
26000
26298
 
26001
26299
  // src/components/elements/payment-method/PaymentMethod.tsx
26002
- var import_jsx_runtime58 = require("react/jsx-runtime");
26300
+ var import_jsx_runtime59 = require("react/jsx-runtime");
26003
26301
  var resolveDesignProps5 = (props) => {
26004
26302
  return {
26005
26303
  header: {
@@ -26012,10 +26310,10 @@ var resolveDesignProps5 = (props) => {
26012
26310
  }
26013
26311
  };
26014
26312
  };
26015
- var PaymentMethod = (0, import_react56.forwardRef)(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
26313
+ var PaymentMethod = (0, import_react57.forwardRef)(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
26016
26314
  const props = resolveDesignProps5(rest);
26017
26315
  const { data, setLayout } = useEmbed();
26018
- const { paymentMethod, monthsToExpiration } = (0, import_react56.useMemo)(() => {
26316
+ const { paymentMethod, monthsToExpiration } = (0, import_react57.useMemo)(() => {
26019
26317
  const paymentMethod2 = data?.subscription?.paymentMethod || data?.company?.defaultPaymentMethod;
26020
26318
  let monthsToExpiration2;
26021
26319
  if (typeof paymentMethod2?.cardExpYear === "number" && typeof paymentMethod2?.cardExpMonth === "number") {
@@ -26034,7 +26332,7 @@ var PaymentMethod = (0, import_react56.forwardRef)(({ children, className, porta
26034
26332
  monthsToExpiration: monthsToExpiration2
26035
26333
  };
26036
26334
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
26037
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Element, { ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
26335
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Element, { ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26038
26336
  PaymentMethodElement,
26039
26337
  {
26040
26338
  customCheckoutFields: data?.customCheckoutFields,
@@ -26050,7 +26348,7 @@ PaymentMethod.displayName = "PaymentMethod";
26050
26348
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26051
26349
  var import_react_stripe_js2 = require("@stripe/react-stripe-js");
26052
26350
 
26053
- // node_modules/.pnpm/@stripe+stripe-js@9.15.0/node_modules/@stripe/stripe-js/dist/index.mjs
26351
+ // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
26054
26352
  function _typeof(obj) {
26055
26353
  "@babel/helpers - typeof";
26056
26354
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -26104,7 +26402,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
26104
26402
  }
26105
26403
  stripe._registerWrapper({
26106
26404
  name: "stripe-js",
26107
- version: "9.15.0",
26405
+ version: "9.16.0",
26108
26406
  startTime
26109
26407
  });
26110
26408
  };
@@ -26182,7 +26480,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
26182
26480
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
26183
26481
  var expectedVersion = RELEASE_TRAIN;
26184
26482
  if (isTestKey && version !== expectedVersion) {
26185
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.15.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
26483
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
26186
26484
  }
26187
26485
  var stripe = maybeStripe.apply(void 0, args);
26188
26486
  registerWrapper(stripe, startTime);
@@ -26219,8 +26517,8 @@ var loadStripe = function loadStripe2() {
26219
26517
  };
26220
26518
 
26221
26519
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26222
- var import_react57 = require("react");
26223
- var import_jsx_runtime59 = require("react/jsx-runtime");
26520
+ var import_react58 = require("react");
26521
+ var import_jsx_runtime60 = require("react/jsx-runtime");
26224
26522
  var resolveDesignProps6 = () => {
26225
26523
  return {
26226
26524
  header: {
@@ -26248,7 +26546,7 @@ var PaymentMethodDetails = ({
26248
26546
  updatePaymentMethod,
26249
26547
  deletePaymentMethod
26250
26548
  } = useEmbed();
26251
- const { defaultPaymentMethod, paymentMethods, subscription } = (0, import_react57.useMemo)(() => {
26549
+ const { defaultPaymentMethod, paymentMethods, subscription } = (0, import_react58.useMemo)(() => {
26252
26550
  return {
26253
26551
  defaultPaymentMethod: data?.company?.defaultPaymentMethod,
26254
26552
  paymentMethods: data?.company?.paymentMethods || [],
@@ -26261,13 +26559,13 @@ var PaymentMethodDetails = ({
26261
26559
  ]);
26262
26560
  const isLightBackground = useIsLightBackground();
26263
26561
  const initialPaymentMethod = subscription?.paymentMethod || defaultPaymentMethod;
26264
- const [isLoading, setIsLoading] = (0, import_react57.useState)(!initialPaymentMethod);
26265
- const [error, setError] = (0, import_react57.useState)();
26266
- const [showPaymentForm, setShowPaymentForm] = (0, import_react57.useState)(false);
26267
- const [stripe, setStripe] = (0, import_react57.useState)(null);
26268
- const [setupIntent, setSetupIntent] = (0, import_react57.useState)();
26269
- const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = (0, import_react57.useState)(false);
26270
- const [currentPaymentMethod, setCurrentPaymentMethod] = (0, import_react57.useState)(initialPaymentMethod);
26562
+ const [isLoading, setIsLoading] = (0, import_react58.useState)(!initialPaymentMethod);
26563
+ const [error, setError] = (0, import_react58.useState)();
26564
+ const [showPaymentForm, setShowPaymentForm] = (0, import_react58.useState)(false);
26565
+ const [stripe, setStripe] = (0, import_react58.useState)(null);
26566
+ const [setupIntent, setSetupIntent] = (0, import_react58.useState)();
26567
+ const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = (0, import_react58.useState)(false);
26568
+ const [currentPaymentMethod, setCurrentPaymentMethod] = (0, import_react58.useState)(initialPaymentMethod);
26271
26569
  const { isConfirming: isConfirmingPayment } = usePaymentConfirmation({
26272
26570
  stripe,
26273
26571
  clientSecret: confirmPaymentIntentProps?.clientSecret,
@@ -26280,7 +26578,7 @@ var PaymentMethodDetails = ({
26280
26578
  },
26281
26579
  autoConfirm: true
26282
26580
  });
26283
- const monthsToExpiration = (0, import_react57.useMemo)(() => {
26581
+ const monthsToExpiration = (0, import_react58.useMemo)(() => {
26284
26582
  let expiration;
26285
26583
  if (typeof currentPaymentMethod?.cardExpYear === "number" && typeof currentPaymentMethod?.cardExpMonth === "number") {
26286
26584
  const now = /* @__PURE__ */ new Date();
@@ -26303,8 +26601,8 @@ var PaymentMethodDetails = ({
26303
26601
  const toggleShowPaymentMethods = () => {
26304
26602
  setShowDifferentPaymentMethods((prev) => !prev);
26305
26603
  };
26306
- const locale = (0, import_react57.useMemo)(() => stripeLocale(i18n.language), [i18n.language]);
26307
- const initializeStripe = (0, import_react57.useCallback)(() => {
26604
+ const locale = (0, import_react58.useMemo)(() => stripeLocale(i18n.language), [i18n.language]);
26605
+ const initializeStripe = (0, import_react58.useCallback)(() => {
26308
26606
  if (stripe || !setupIntent) {
26309
26607
  return;
26310
26608
  }
@@ -26327,7 +26625,7 @@ var PaymentMethodDetails = ({
26327
26625
  setShowPaymentForm(false);
26328
26626
  });
26329
26627
  }, [t3, stripe, setupIntent, locale]);
26330
- const initializePaymentMethod = (0, import_react57.useCallback)(() => {
26628
+ const initializePaymentMethod = (0, import_react58.useCallback)(() => {
26331
26629
  const pending = createSetupIntent() ?? Promise.resolve(void 0);
26332
26630
  return pending.then((response) => {
26333
26631
  if (response) {
@@ -26342,7 +26640,7 @@ var PaymentMethodDetails = ({
26342
26640
  setIsLoading(false);
26343
26641
  });
26344
26642
  }, [t3, createSetupIntent]);
26345
- const handleUpdatePaymentMethod = (0, import_react57.useCallback)(
26643
+ const handleUpdatePaymentMethod = (0, import_react58.useCallback)(
26346
26644
  async (paymentMethodId) => {
26347
26645
  try {
26348
26646
  setIsLoading(true);
@@ -26364,7 +26662,7 @@ var PaymentMethodDetails = ({
26364
26662
  },
26365
26663
  [t3, setPaymentMethodId, updatePaymentMethod, onPaymentMethodSaved]
26366
26664
  );
26367
- const handleDeletePaymentMethod = (0, import_react57.useCallback)(
26665
+ const handleDeletePaymentMethod = (0, import_react58.useCallback)(
26368
26666
  async (paymentMethodId) => {
26369
26667
  try {
26370
26668
  setIsLoading(true);
@@ -26380,10 +26678,10 @@ var PaymentMethodDetails = ({
26380
26678
  },
26381
26679
  [t3, deletePaymentMethod]
26382
26680
  );
26383
- (0, import_react57.useEffect)(() => {
26681
+ (0, import_react58.useEffect)(() => {
26384
26682
  initializeStripe();
26385
26683
  }, [initializeStripe]);
26386
- (0, import_react57.useEffect)(() => {
26684
+ (0, import_react58.useEffect)(() => {
26387
26685
  if (!setupIntent && (!currentPaymentMethod || showPaymentForm)) {
26388
26686
  initializePaymentMethod();
26389
26687
  }
@@ -26393,7 +26691,7 @@ var PaymentMethodDetails = ({
26393
26691
  showPaymentForm,
26394
26692
  initializePaymentMethod
26395
26693
  ]);
26396
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26694
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26397
26695
  Flex,
26398
26696
  {
26399
26697
  $position: "relative",
@@ -26401,7 +26699,7 @@ var PaymentMethodDetails = ({
26401
26699
  $flexGrow: 1,
26402
26700
  $gap: "1.5rem",
26403
26701
  children: [
26404
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26702
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26405
26703
  Flex,
26406
26704
  {
26407
26705
  $position: "absolute",
@@ -26410,7 +26708,7 @@ var PaymentMethodDetails = ({
26410
26708
  $alignItems: "center",
26411
26709
  $width: "100%",
26412
26710
  $height: "100%",
26413
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26711
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26414
26712
  Loader,
26415
26713
  {
26416
26714
  $color: settings.theme.primary,
@@ -26420,7 +26718,7 @@ var PaymentMethodDetails = ({
26420
26718
  )
26421
26719
  }
26422
26720
  ),
26423
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26721
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26424
26722
  Flex,
26425
26723
  {
26426
26724
  $zIndex: isLoading || isConfirmingPayment ? 0 : 1,
@@ -26437,7 +26735,7 @@ var PaymentMethodDetails = ({
26437
26735
  }
26438
26736
  },
26439
26737
  children: [
26440
- setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26738
+ setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26441
26739
  import_react_stripe_js2.Elements,
26442
26740
  {
26443
26741
  stripe,
@@ -26468,7 +26766,7 @@ var PaymentMethodDetails = ({
26468
26766
  clientSecret: setupIntent?.setupIntentClientSecret
26469
26767
  },
26470
26768
  children: [
26471
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26769
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26472
26770
  PaymentForm,
26473
26771
  {
26474
26772
  financeData,
@@ -26479,7 +26777,7 @@ var PaymentMethodDetails = ({
26479
26777
  }
26480
26778
  }
26481
26779
  ),
26482
- currentPaymentMethod && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26780
+ currentPaymentMethod && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26483
26781
  Text,
26484
26782
  {
26485
26783
  onClick: focusExistingPaymentMethods,
@@ -26492,8 +26790,8 @@ var PaymentMethodDetails = ({
26492
26790
  ) })
26493
26791
  ]
26494
26792
  }
26495
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26496
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26793
+ ) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26794
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26497
26795
  PaymentMethodElement,
26498
26796
  {
26499
26797
  paymentMethod: currentPaymentMethod,
@@ -26506,8 +26804,8 @@ var PaymentMethodDetails = ({
26506
26804
  ...props
26507
26805
  }
26508
26806
  ),
26509
- paymentMethods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26510
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26807
+ paymentMethods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26808
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26511
26809
  Text,
26512
26810
  {
26513
26811
  onClick: toggleShowPaymentMethods,
@@ -26518,7 +26816,7 @@ var PaymentMethodDetails = ({
26518
26816
  children: t3("Choose different payment method")
26519
26817
  }
26520
26818
  ),
26521
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26819
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26522
26820
  Icon3,
26523
26821
  {
26524
26822
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -26526,10 +26824,10 @@ var PaymentMethodDetails = ({
26526
26824
  }
26527
26825
  )
26528
26826
  ] }),
26529
- showDifferentPaymentMethods && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26530
- paymentMethods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26827
+ showDifferentPaymentMethods && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26828
+ paymentMethods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26531
26829
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
26532
- ) || []).map((paymentMethod) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26830
+ ) || []).map((paymentMethod) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26533
26831
  PaymentListElement,
26534
26832
  {
26535
26833
  paymentMethod,
@@ -26538,7 +26836,7 @@ var PaymentMethodDetails = ({
26538
26836
  },
26539
26837
  paymentMethod.id
26540
26838
  )) }),
26541
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26839
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26542
26840
  Button,
26543
26841
  {
26544
26842
  type: "button",
@@ -26553,7 +26851,7 @@ var PaymentMethodDetails = ({
26553
26851
  )
26554
26852
  ] })
26555
26853
  ] }),
26556
- !isLoading && error && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26854
+ !isLoading && error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26557
26855
  ]
26558
26856
  }
26559
26857
  )
@@ -26563,13 +26861,13 @@ var PaymentMethodDetails = ({
26563
26861
  };
26564
26862
 
26565
26863
  // src/components/elements/plan-manager/PlanManager.tsx
26566
- var import_react59 = require("react");
26864
+ var import_react60 = require("react");
26567
26865
 
26568
26866
  // src/components/elements/plan-manager/AddOn.tsx
26569
- var import_jsx_runtime60 = require("react/jsx-runtime");
26867
+ var import_jsx_runtime61 = require("react/jsx-runtime");
26570
26868
  var AddOn = ({ addOn, currency, period, layout }) => {
26571
26869
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
26572
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26870
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
26573
26871
  Flex,
26574
26872
  {
26575
26873
  $justifyContent: "space-between",
@@ -26577,10 +26875,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26577
26875
  $flexWrap: "wrap",
26578
26876
  $gap: "1rem",
26579
26877
  children: [
26580
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26581
- typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Text, { children: [
26878
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26879
+ typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Text, { children: [
26582
26880
  formatCurrency(addOn.planPrice, currency),
26583
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26881
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26584
26882
  ] })
26585
26883
  ]
26586
26884
  }
@@ -26588,8 +26886,8 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26588
26886
  };
26589
26887
 
26590
26888
  // src/components/elements/plan-manager/UsageDetails.tsx
26591
- var import_react58 = require("react");
26592
- var import_jsx_runtime61 = require("react/jsx-runtime");
26889
+ var import_react59 = require("react");
26890
+ var import_jsx_runtime62 = require("react/jsx-runtime");
26593
26891
  var UsageDetails2 = ({
26594
26892
  entitlement,
26595
26893
  period,
@@ -26604,40 +26902,40 @@ var UsageDetails2 = ({
26604
26902
  billingPrice,
26605
26903
  limit,
26606
26904
  cost = 0
26607
- } = (0, import_react58.useMemo)(
26905
+ } = (0, import_react59.useMemo)(
26608
26906
  () => getUsageDetails(entitlement, period, currency, {
26609
26907
  showWarningThresholdAsLimit
26610
26908
  }),
26611
26909
  [entitlement, period, currency, showWarningThresholdAsLimit]
26612
26910
  );
26613
- const description = (0, import_react58.useMemo)(() => {
26911
+ const description = (0, import_react59.useMemo)(() => {
26614
26912
  const acc = [];
26615
26913
  let index = 0;
26616
26914
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Overage) {
26617
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react58.Fragment, { children: [
26915
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react59.Fragment, { children: [
26618
26916
  t3("Additional"),
26619
26917
  ": "
26620
26918
  ] }, index));
26621
26919
  index += 1;
26622
26920
  }
26623
26921
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
26624
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react58.Fragment, { children: t3("Tier-based") }, index));
26922
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react59.Fragment, { children: t3("Tier-based") }, index));
26625
26923
  index += 1;
26626
26924
  }
26627
26925
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
26628
26926
  if ((entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo || entitlement.priceBehavior === EntitlementPriceBehavior.Overage) && entitlement.feature && typeof price === "number") {
26629
26927
  const packageSize = billingPrice?.packageSize ?? 1;
26630
26928
  acc.push(
26631
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react58.Fragment, { children: [
26929
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react59.Fragment, { children: [
26632
26930
  formatCurrency(price, billingPrice?.currency),
26633
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("sub", { children: [
26931
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
26634
26932
  "/",
26635
- packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26933
+ packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26636
26934
  packageSize,
26637
26935
  " "
26638
26936
  ] }),
26639
26937
  getFeatureName(entitlement.feature, packageSize),
26640
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26938
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26641
26939
  "/",
26642
26940
  shortenPeriod(period)
26643
26941
  ] })
@@ -26648,7 +26946,7 @@ var UsageDetails2 = ({
26648
26946
  }
26649
26947
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
26650
26948
  acc.push(
26651
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react58.Fragment, { children: [
26949
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react59.Fragment, { children: [
26652
26950
  formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
26653
26951
  " ",
26654
26952
  getFeatureName(
@@ -26676,7 +26974,7 @@ var UsageDetails2 = ({
26676
26974
  return null;
26677
26975
  }
26678
26976
  const quantity = entitlement.priceBehavior !== EntitlementPriceBehavior.CreditBurndown ? limit : void 0;
26679
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
26977
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26680
26978
  Flex,
26681
26979
  {
26682
26980
  $justifyContent: "space-between",
@@ -26684,13 +26982,13 @@ var UsageDetails2 = ({
26684
26982
  $flexWrap: "wrap",
26685
26983
  $gap: "0.5rem",
26686
26984
  children: [
26687
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26985
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26688
26986
  quantity,
26689
26987
  " ",
26690
26988
  getFeatureName(entitlement.feature, quantity, true)
26691
26989
  ] }) : entitlement.feature.name }),
26692
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Text, { children: [
26693
- description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
26990
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { children: [
26991
+ description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26694
26992
  Text,
26695
26993
  {
26696
26994
  style: { opacity: 0.54 },
@@ -26701,15 +26999,15 @@ var UsageDetails2 = ({
26701
26999
  ),
26702
27000
  // only show cost for pay-in-advance entitlements
26703
27001
  // `description` will include price for other price behaviors
26704
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
27002
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26705
27003
  " ",
26706
27004
  formatCurrency(cost, billingPrice?.currency),
26707
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("sub", { children: [
27005
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
26708
27006
  "/",
26709
27007
  shortenPeriod(period)
26710
27008
  ] })
26711
27009
  ] }),
26712
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
27010
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26713
27011
  PricingTiersTooltip,
26714
27012
  {
26715
27013
  feature: entitlement.feature,
@@ -26719,7 +27017,7 @@ var UsageDetails2 = ({
26719
27017
  tiersMode: billingPrice?.tiersMode ?? void 0
26720
27018
  }
26721
27019
  ),
26722
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
27020
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26723
27021
  HardLimitTooltip,
26724
27022
  {
26725
27023
  feature: entitlement.feature,
@@ -26733,7 +27031,7 @@ var UsageDetails2 = ({
26733
27031
  };
26734
27032
 
26735
27033
  // src/components/elements/plan-manager/PlanManager.tsx
26736
- var import_jsx_runtime62 = require("react/jsx-runtime");
27034
+ var import_jsx_runtime63 = require("react/jsx-runtime");
26737
27035
  var resolveDesignProps7 = (props) => {
26738
27036
  return {
26739
27037
  header: {
@@ -26762,7 +27060,7 @@ var resolveDesignProps7 = (props) => {
26762
27060
  }
26763
27061
  };
26764
27062
  };
26765
- var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal, ...rest }, ref) => {
27063
+ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal, ...rest }, ref) => {
26766
27064
  const props = resolveDesignProps7(rest);
26767
27065
  const { t: t3 } = useTranslation();
26768
27066
  const { data, settings, setCheckoutState, setLayout } = useEmbed();
@@ -26781,7 +27079,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26781
27079
  showCredits,
26782
27080
  showZeroPriceAsFree,
26783
27081
  trialPaymentMethodRequired
26784
- } = (0, import_react59.useMemo)(() => {
27082
+ } = (0, import_react60.useMemo)(() => {
26785
27083
  const planCreditOrder = /* @__PURE__ */ new Map();
26786
27084
  (data?.company?.plan?.includedCreditGrants ?? []).forEach((grant) => {
26787
27085
  if (!planCreditOrder.has(grant.creditId)) {
@@ -26841,15 +27139,15 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26841
27139
  data?.displaySettings?.showZeroPriceAsFree,
26842
27140
  data?.trialPaymentMethodRequired
26843
27141
  ]);
26844
- const usageBasedEntitlements = (0, import_react59.useMemo)(
27142
+ const usageBasedEntitlements = (0, import_react60.useMemo)(
26845
27143
  () => featureUsage.filter((usage) => typeof usage.priceBehavior === "string"),
26846
27144
  [featureUsage]
26847
27145
  );
26848
- const planCreditCompositions = (0, import_react59.useMemo)(
27146
+ const planCreditCompositions = (0, import_react60.useMemo)(
26849
27147
  () => groupPlanCreditGrants(currentPlan?.includedCreditGrants ?? []),
26850
27148
  [currentPlan?.includedCreditGrants]
26851
27149
  );
26852
- const resolveLicenseQuantity = (0, import_react59.useMemo)(() => {
27150
+ const resolveLicenseQuantity = (0, import_react60.useMemo)(() => {
26853
27151
  return (licenseId) => {
26854
27152
  const allocation = findLicenseSource(featureUsage, licenseId)?.allocation;
26855
27153
  return typeof allocation === "number" ? allocation : void 0;
@@ -26872,7 +27170,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26872
27170
  subscriptionCurrency,
26873
27171
  willSubscriptionCancel,
26874
27172
  isTrialSubscription
26875
- } = (0, import_react59.useMemo)(() => {
27173
+ } = (0, import_react60.useMemo)(() => {
26876
27174
  const subscriptionInterval2 = getSubscriptionPeriod(billingSubscription) ?? billingSubscription?.interval;
26877
27175
  const subscriptionCurrency2 = billingSubscription?.currency;
26878
27176
  const isTrialSubscription2 = billingSubscription?.status === "trialing";
@@ -26885,7 +27183,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26885
27183
  };
26886
27184
  }, [billingSubscription]);
26887
27185
  const currentPlanPeriod = getSubscriptionPeriod(billingSubscription) ?? currentPlan?.planPeriod ?? void 0;
26888
- const { isFreePlan, isUsageBasedPlan } = (0, import_react59.useMemo)(() => {
27186
+ const { isFreePlan, isUsageBasedPlan } = (0, import_react60.useMemo)(() => {
26889
27187
  const isFreePlan2 = currentPlan?.planPrice === 0;
26890
27188
  const isUsageBasedPlan2 = isFreePlan2 && usageBasedEntitlements.length > 0;
26891
27189
  return { isFreePlan: isFreePlan2, isUsageBasedPlan: isUsageBasedPlan2 };
@@ -26893,8 +27191,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26893
27191
  const hasAutoTopupSelfService = currentPlan?.includedCreditGrants.some(
26894
27192
  (grant) => isSelfServiceAutoTopupAvailable(grant)
26895
27193
  ) ?? false;
26896
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26897
- isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27194
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27195
+ isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26898
27196
  Notice,
26899
27197
  {
26900
27198
  as: Flex,
@@ -26904,8 +27202,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26904
27202
  $textAlign: "center",
26905
27203
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26906
27204
  children: [
26907
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
26908
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27205
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t3("Trial ends in", trialEnd) }),
27206
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26909
27207
  Text,
26910
27208
  {
26911
27209
  as: "p",
@@ -26919,7 +27217,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26919
27217
  )
26920
27218
  ]
26921
27219
  }
26922
- ) : willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27220
+ ) : willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26923
27221
  Notice,
26924
27222
  {
26925
27223
  as: Flex,
@@ -26929,8 +27227,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26929
27227
  $textAlign: "center",
26930
27228
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26931
27229
  children: [
26932
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
26933
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27230
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t3("Subscription canceled") }),
27231
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26934
27232
  Text,
26935
27233
  {
26936
27234
  as: "p",
@@ -26945,7 +27243,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26945
27243
  )
26946
27244
  ]
26947
27245
  }
26948
- ) : customPlanBilling ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27246
+ ) : customPlanBilling ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26949
27247
  Notice,
26950
27248
  {
26951
27249
  as: Flex,
@@ -26955,19 +27253,19 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26955
27253
  $textAlign: "center",
26956
27254
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26957
27255
  children: [
26958
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
27256
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment", {
26959
27257
  plan: customPlanBilling.planName ?? t3("your plan")
26960
27258
  }) : t3("Custom plan payment due", {
26961
27259
  plan: customPlanBilling.planName ?? t3("your plan"),
26962
27260
  date: toPrettyDate(customPlanBilling.deadline)
26963
27261
  }) }),
26964
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
27262
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t3("Custom plan awaiting payment description", {
26965
27263
  date: toPrettyDate(customPlanBilling.deadline)
26966
27264
  }) : t3("Custom plan payment due description", {
26967
27265
  plan: customPlanBilling.planName ?? t3("your plan"),
26968
27266
  date: toPrettyDate(customPlanBilling.deadline)
26969
27267
  }) }),
26970
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27268
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26971
27269
  Button,
26972
27270
  {
26973
27271
  as: "a",
@@ -26981,7 +27279,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26981
27279
  )
26982
27280
  ]
26983
27281
  }
26984
- ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27282
+ ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26985
27283
  Notice,
26986
27284
  {
26987
27285
  as: Flex,
@@ -26991,10 +27289,10 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
26991
27289
  $textAlign: "center",
26992
27290
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26993
27291
  children: [
26994
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
27292
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t3("Downgrade to plan scheduled", {
26995
27293
  plan: data.company.scheduledDowngrade.toPlanName
26996
27294
  }) }),
26997
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27295
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26998
27296
  Text,
26999
27297
  {
27000
27298
  as: "p",
@@ -27010,7 +27308,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27010
27308
  ]
27011
27309
  }
27012
27310
  ),
27013
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27311
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27014
27312
  Element,
27015
27313
  {
27016
27314
  as: Flex,
@@ -27019,19 +27317,19 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27019
27317
  $flexDirection: "column",
27020
27318
  $gap: "2rem",
27021
27319
  children: [
27022
- props.header.isVisible && currentPlan && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27320
+ props.header.isVisible && currentPlan && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27023
27321
  Flex,
27024
27322
  {
27025
27323
  $justifyContent: "space-between",
27026
27324
  $alignItems: "center",
27027
27325
  $gap: "1rem",
27028
27326
  children: [
27029
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
27030
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27031
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27327
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
27328
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27329
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27032
27330
  ] }),
27033
- props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Box, { children: [
27034
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27331
+ props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Box, { children: [
27332
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27035
27333
  Text,
27036
27334
  {
27037
27335
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -27041,7 +27339,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27041
27339
  )
27042
27340
  }
27043
27341
  ),
27044
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
27342
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("sub", { children: [
27045
27343
  "/",
27046
27344
  shortenPeriod(currentPlanPeriod)
27047
27345
  ] }) })
@@ -27049,8 +27347,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27049
27347
  ]
27050
27348
  }
27051
27349
  ),
27052
- props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27053
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27350
+ props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27351
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27054
27352
  Text,
27055
27353
  {
27056
27354
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27058,7 +27356,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27058
27356
  children: t3("Add-ons")
27059
27357
  }
27060
27358
  ),
27061
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27359
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27062
27360
  AddOn,
27063
27361
  {
27064
27362
  addOn,
@@ -27069,8 +27367,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27069
27367
  addOnIndex
27070
27368
  )) })
27071
27369
  ] }),
27072
- props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27073
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27370
+ props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27371
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27074
27372
  Text,
27075
27373
  {
27076
27374
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27078,8 +27376,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27078
27376
  children: t3("Usage-based")
27079
27377
  }
27080
27378
  ),
27081
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27082
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27379
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27380
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27083
27381
  UsageDetails2,
27084
27382
  {
27085
27383
  entitlement,
@@ -27092,8 +27390,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27092
27390
  );
27093
27391
  }) })
27094
27392
  ] }),
27095
- props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27096
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27393
+ props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27394
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27097
27395
  Text,
27098
27396
  {
27099
27397
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27101,7 +27399,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27101
27399
  children: t3("Credits in plan")
27102
27400
  }
27103
27401
  ),
27104
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27402
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27105
27403
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
27106
27404
  (grant) => grant.creditId === group.id
27107
27405
  );
@@ -27124,13 +27422,13 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27124
27422
  const licenseQuantity = perLicenseGrant?.licenseId ? resolveLicenseQuantity(perLicenseGrant.licenseId) : void 0;
27125
27423
  const creditPeriod = composition.period ?? subscriptionInterval;
27126
27424
  const showPerLicense = !!perLicenseGrant && !!licenseFeature;
27127
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27425
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27128
27426
  Flex,
27129
27427
  {
27130
27428
  $flexDirection: "column",
27131
27429
  $gap: "0.25rem",
27132
27430
  children: [
27133
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27431
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27134
27432
  Flex,
27135
27433
  {
27136
27434
  $justifyContent: "space-between",
@@ -27138,7 +27436,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27138
27436
  $flexWrap: "wrap",
27139
27437
  $gap: "0.5rem",
27140
27438
  children: [
27141
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27439
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27142
27440
  t3("X credits per license", {
27143
27441
  amount: perLicenseGrant.amount,
27144
27442
  creditName: getFeatureName(
@@ -27147,7 +27445,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27147
27445
  ),
27148
27446
  licenseName: getFeatureName(licenseFeature, 1)
27149
27447
  }),
27150
- composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27448
+ composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27151
27449
  " ",
27152
27450
  t3("Plus X credits per period", {
27153
27451
  amount: composition.fixedQuantity,
@@ -27158,18 +27456,18 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27158
27456
  period: t3(creditPeriod)
27159
27457
  })
27160
27458
  ] })
27161
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27459
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27162
27460
  group.total.value,
27163
27461
  " ",
27164
27462
  getFeatureName(group, group.total.value),
27165
27463
  " ",
27166
- subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27464
+ subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27167
27465
  t3("per"),
27168
27466
  " ",
27169
27467
  t3(subscriptionInterval)
27170
27468
  ] })
27171
27469
  ] }) }),
27172
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27470
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27173
27471
  Text,
27174
27472
  {
27175
27473
  style: { opacity: 0.54 },
@@ -27179,7 +27477,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27179
27477
  group.total.used,
27180
27478
  " ",
27181
27479
  t3("used"),
27182
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27480
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27183
27481
  AutoTopupNotice,
27184
27482
  {
27185
27483
  thresholdCredits,
@@ -27192,7 +27490,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27192
27490
  ]
27193
27491
  }
27194
27492
  ),
27195
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27493
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27196
27494
  Text,
27197
27495
  {
27198
27496
  style: { opacity: 0.54 },
@@ -27233,7 +27531,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27233
27531
  groupIndex
27234
27532
  );
27235
27533
  }) }),
27236
- planCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27534
+ planCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27237
27535
  ExpandListToggle,
27238
27536
  {
27239
27537
  isExpanded: planCredits.isExpanded,
@@ -27242,7 +27540,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27242
27540
  $marginTop: "0.5rem"
27243
27541
  }
27244
27542
  ),
27245
- hasAutoTopupSelfService && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27543
+ hasAutoTopupSelfService && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27246
27544
  Flex,
27247
27545
  {
27248
27546
  $justifyContent: "space-between",
@@ -27252,8 +27550,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27252
27550
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
27253
27551
  $borderRadius: "0.5rem",
27254
27552
  children: [
27255
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27256
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.addOns.fontStyle, children: t3("Auto top-up") }),
27553
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27554
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.addOns.fontStyle, children: t3("Auto top-up") }),
27257
27555
  currentPlan?.includedCreditGrants.reduce(
27258
27556
  (acc, grant) => {
27259
27557
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -27262,7 +27560,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27262
27560
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
27263
27561
  if (!autoTopupEnabled) {
27264
27562
  acc.push(
27265
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
27563
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
27266
27564
  unit: getFeatureName(grant.credit, 1)
27267
27565
  }) }, grant.id)
27268
27566
  );
@@ -27272,7 +27570,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27272
27570
  const autoTopupAmount = getAutoTopupAmount(grant);
27273
27571
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
27274
27572
  acc.push(
27275
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
27573
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
27276
27574
  unit: getFeatureName(
27277
27575
  grant.credit,
27278
27576
  autoTopupAmount
@@ -27287,7 +27585,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27287
27585
  []
27288
27586
  )
27289
27587
  ] }),
27290
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27588
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27291
27589
  Button,
27292
27590
  {
27293
27591
  type: "button",
@@ -27304,8 +27602,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27304
27602
  }
27305
27603
  )
27306
27604
  ] }),
27307
- props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27308
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27605
+ props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27606
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27309
27607
  Text,
27310
27608
  {
27311
27609
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27313,9 +27611,9 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27313
27611
  children: t3("Top-ups")
27314
27612
  }
27315
27613
  ),
27316
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27614
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27317
27615
  const bundle = group?.bundleId ? creditBundles.find((b) => b.id === group.bundleId) : void 0;
27318
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27616
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27319
27617
  Flex,
27320
27618
  {
27321
27619
  $justifyContent: "space-between",
@@ -27323,8 +27621,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27323
27621
  $flexWrap: "wrap",
27324
27622
  $gap: "0.5rem",
27325
27623
  children: [
27326
- bundle ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27327
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27624
+ bundle ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27625
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27328
27626
  "(",
27329
27627
  group.grants.length,
27330
27628
  ")",
@@ -27336,8 +27634,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27336
27634
  " ",
27337
27635
  getFeatureName(group, group.quantity),
27338
27636
  ")"
27339
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27340
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27637
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27638
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27341
27639
  "(",
27342
27640
  group.grants.length,
27343
27641
  ")",
@@ -27347,7 +27645,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27347
27645
  " ",
27348
27646
  getFeatureName(group, group.quantity)
27349
27647
  ] }),
27350
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27648
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27351
27649
  Text,
27352
27650
  {
27353
27651
  style: { opacity: 0.54 },
@@ -27365,7 +27663,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27365
27663
  groupIndex
27366
27664
  );
27367
27665
  }) }),
27368
- autoTopupCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27666
+ autoTopupCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27369
27667
  ExpandListToggle,
27370
27668
  {
27371
27669
  isExpanded: autoTopupCredits.isExpanded,
@@ -27375,8 +27673,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27375
27673
  }
27376
27674
  )
27377
27675
  ] }),
27378
- props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27379
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27676
+ props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27677
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27380
27678
  Text,
27381
27679
  {
27382
27680
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27384,9 +27682,9 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27384
27682
  children: t3("Credit bundles")
27385
27683
  }
27386
27684
  ),
27387
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27685
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27388
27686
  const bundle = group?.bundleId ? creditBundles.find((b) => b.id === group.bundleId) : void 0;
27389
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27687
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27390
27688
  Flex,
27391
27689
  {
27392
27690
  $justifyContent: "space-between",
@@ -27394,8 +27692,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27394
27692
  $flexWrap: "wrap",
27395
27693
  $gap: "0.5rem",
27396
27694
  children: [
27397
- bundle ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27398
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27695
+ bundle ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27696
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27399
27697
  "(",
27400
27698
  group.grants.length,
27401
27699
  ")",
@@ -27407,12 +27705,12 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27407
27705
  " ",
27408
27706
  getFeatureName(group, group.quantity),
27409
27707
  ")"
27410
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27708
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27411
27709
  group.quantity,
27412
27710
  " ",
27413
27711
  getFeatureName(group, group.quantity)
27414
27712
  ] }),
27415
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27713
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27416
27714
  Text,
27417
27715
  {
27418
27716
  style: { opacity: 0.54 },
@@ -27430,7 +27728,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27430
27728
  groupIndex
27431
27729
  );
27432
27730
  }) }),
27433
- bundleCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27731
+ bundleCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27434
27732
  ExpandListToggle,
27435
27733
  {
27436
27734
  isExpanded: bundleCredits.isExpanded,
@@ -27440,8 +27738,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27440
27738
  }
27441
27739
  )
27442
27740
  ] }),
27443
- props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27444
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27741
+ props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27742
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27445
27743
  Text,
27446
27744
  {
27447
27745
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27449,8 +27747,8 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27449
27747
  children: t3("Promotional credits")
27450
27748
  }
27451
27749
  ),
27452
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27453
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27750
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27751
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27454
27752
  Flex,
27455
27753
  {
27456
27754
  $justifyContent: "space-between",
@@ -27458,12 +27756,12 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27458
27756
  $flexWrap: "wrap",
27459
27757
  $gap: "0.5rem",
27460
27758
  children: [
27461
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27759
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27462
27760
  group.quantity,
27463
27761
  " ",
27464
27762
  getFeatureName(group, group.quantity)
27465
27763
  ] }),
27466
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27764
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27467
27765
  Text,
27468
27766
  {
27469
27767
  style: { opacity: 0.54 },
@@ -27481,7 +27779,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27481
27779
  groupIndex
27482
27780
  );
27483
27781
  }) }),
27484
- promotionalCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27782
+ promotionalCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27485
27783
  ExpandListToggle,
27486
27784
  {
27487
27785
  isExpanded: promotionalCredits.isExpanded,
@@ -27491,7 +27789,7 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27491
27789
  }
27492
27790
  )
27493
27791
  ] }),
27494
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27792
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27495
27793
  Button,
27496
27794
  {
27497
27795
  type: "button",
@@ -27512,11 +27810,11 @@ var PlanManager = (0, import_react59.forwardRef)(({ children, className, portal,
27512
27810
  PlanManager.displayName = "PlanManager";
27513
27811
 
27514
27812
  // src/components/elements/pricing-table/PricingTable.tsx
27515
- var import_react62 = require("react");
27813
+ var import_react63 = require("react");
27516
27814
 
27517
27815
  // src/components/elements/pricing-table/AddOn.tsx
27518
- var import_react60 = require("react");
27519
- var import_jsx_runtime63 = require("react/jsx-runtime");
27816
+ var import_react61 = require("react");
27817
+ var import_jsx_runtime64 = require("react/jsx-runtime");
27520
27818
  function renderMeteredEntitlementPricing2({
27521
27819
  priceBehavior,
27522
27820
  softLimit,
@@ -27528,7 +27826,7 @@ function renderMeteredEntitlementPricing2({
27528
27826
  isTiered
27529
27827
  }) {
27530
27828
  if (priceBehavior === EntitlementPriceBehavior.Overage && softLimit) {
27531
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27829
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27532
27830
  "Additional: ",
27533
27831
  formatCurrency(price, currency),
27534
27832
  "/",
@@ -27539,13 +27837,13 @@ function renderMeteredEntitlementPricing2({
27539
27837
  ] });
27540
27838
  }
27541
27839
  if (isTiered) {
27542
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: "Tier-based pricing" });
27840
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: "Tier-based pricing" });
27543
27841
  }
27544
27842
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
27545
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27843
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27546
27844
  formatCurrency(price, currency),
27547
27845
  "/",
27548
- packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27846
+ packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27549
27847
  packageSize,
27550
27848
  " "
27551
27849
  ] }),
@@ -27571,7 +27869,7 @@ var AddOn2 = ({
27571
27869
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
27572
27870
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
27573
27871
  const isLightBackground = useIsLightBackground();
27574
- const { currentAddOns, canCheckout, isStandalone } = (0, import_react60.useMemo)(() => {
27872
+ const { currentAddOns, canCheckout, isStandalone } = (0, import_react61.useMemo)(() => {
27575
27873
  const isStandalone2 = typeof data?.component === "undefined";
27576
27874
  return {
27577
27875
  currentAddOns: data?.company?.addOns || [],
@@ -27614,7 +27912,7 @@ var AddOn2 = ({
27614
27912
  isTiered: entitlement.priceBehavior === EntitlementPriceBehavior.Tier || isTieredPrice(priceData)
27615
27913
  };
27616
27914
  }) || [];
27617
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27915
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27618
27916
  Flex,
27619
27917
  {
27620
27918
  as: "li",
@@ -27634,7 +27932,7 @@ var AddOn2 = ({
27634
27932
  $boxShadow: cardBoxShadow
27635
27933
  },
27636
27934
  children: [
27637
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27935
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27638
27936
  Flex,
27639
27937
  {
27640
27938
  $flexDirection: "column",
@@ -27645,7 +27943,7 @@ var AddOn2 = ({
27645
27943
  $borderStyle: "solid",
27646
27944
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27647
27945
  children: [
27648
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27946
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27649
27947
  Text,
27650
27948
  {
27651
27949
  as: "h3",
@@ -27654,22 +27952,22 @@ var AddOn2 = ({
27654
27952
  children: addOn.name
27655
27953
  }
27656
27954
  ) }),
27657
- layout.addOns.showDescription && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27658
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27955
+ layout.addOns.showDescription && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27956
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27659
27957
  Text,
27660
27958
  {
27661
27959
  "data-testid": "sch-addon-price",
27662
27960
  display: layout.plans.name.fontStyle,
27663
- children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t3("Usage-based") : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27961
+ children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t3("Usage-based") : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27664
27962
  formatCurrency(addOnPrice ?? 0, addOnCurrency),
27665
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("sub", { children: [
27963
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("sub", { children: [
27666
27964
  "/",
27667
27965
  selectedPeriod
27668
27966
  ] })
27669
27967
  ] })
27670
27968
  }
27671
27969
  ) }),
27672
- isActiveAddOn && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27970
+ isActiveAddOn && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27673
27971
  Flex,
27674
27972
  {
27675
27973
  "data-testid": "sch-addon-active",
@@ -27679,7 +27977,7 @@ var AddOn2 = ({
27679
27977
  $backgroundColor: settings.theme.primary,
27680
27978
  $borderRadius: "9999px",
27681
27979
  $padding: "0.125rem 0.85rem",
27682
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27980
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27683
27981
  Text,
27684
27982
  {
27685
27983
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27692,7 +27990,7 @@ var AddOn2 = ({
27692
27990
  ]
27693
27991
  }
27694
27992
  ),
27695
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27993
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27696
27994
  Flex,
27697
27995
  {
27698
27996
  $flexDirection: "column",
@@ -27701,7 +27999,7 @@ var AddOn2 = ({
27701
27999
  $flexGrow: 1,
27702
28000
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27703
28001
  children: [
27704
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28002
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27705
28003
  Flex,
27706
28004
  {
27707
28005
  as: "ul",
@@ -27713,7 +28011,7 @@ var AddOn2 = ({
27713
28011
  $listStyle: "none",
27714
28012
  children: displayableEntitlements.map((entitlement, idx) => {
27715
28013
  if (entitlement.isUnlimited) {
27716
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
28014
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27717
28015
  Flex,
27718
28016
  {
27719
28017
  as: "li",
@@ -27722,8 +28020,8 @@ var AddOn2 = ({
27722
28020
  $alignItems: "center",
27723
28021
  $gap: "1rem",
27724
28022
  children: [
27725
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $gap: "1rem", children: [
27726
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28023
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $gap: "1rem", children: [
28024
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27727
28025
  Icon3,
27728
28026
  {
27729
28027
  name: entitlement.feature.icon,
@@ -27732,16 +28030,16 @@ var AddOn2 = ({
27732
28030
  rounded: true
27733
28031
  }
27734
28032
  ),
27735
- entitlement.feature && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28033
+ entitlement.feature && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27736
28034
  Flex,
27737
28035
  {
27738
28036
  $flexDirection: "column",
27739
28037
  $justifyContent: "center",
27740
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { children: getFeatureName(entitlement.feature) })
28038
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { children: getFeatureName(entitlement.feature) })
27741
28039
  }
27742
28040
  )
27743
28041
  ] }),
27744
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28042
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27745
28043
  Text,
27746
28044
  {
27747
28045
  style: { opacity: 0.54 },
@@ -27756,7 +28054,7 @@ var AddOn2 = ({
27756
28054
  );
27757
28055
  }
27758
28056
  const meteredEntitlement = entitlement;
27759
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
28057
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27760
28058
  Flex,
27761
28059
  {
27762
28060
  as: "li",
@@ -27766,8 +28064,8 @@ var AddOn2 = ({
27766
28064
  $gap: "1rem",
27767
28065
  $listStyle: "none",
27768
28066
  children: [
27769
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $gap: "1rem", children: [
27770
- meteredEntitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28067
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $gap: "1rem", children: [
28068
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27771
28069
  Icon3,
27772
28070
  {
27773
28071
  "data-testid": "sch-feature-icon",
@@ -27777,9 +28075,9 @@ var AddOn2 = ({
27777
28075
  rounded: true
27778
28076
  }
27779
28077
  ),
27780
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
28078
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
27781
28079
  ] }),
27782
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28080
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27783
28081
  Text,
27784
28082
  {
27785
28083
  style: { opacity: 0.54 },
@@ -27795,7 +28093,7 @@ var AddOn2 = ({
27795
28093
  })
27796
28094
  }
27797
28095
  ),
27798
- sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
28096
+ sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27799
28097
  Button,
27800
28098
  {
27801
28099
  type: "button",
@@ -27834,10 +28132,10 @@ var AddOn2 = ({
27834
28132
  };
27835
28133
 
27836
28134
  // src/components/elements/pricing-table/Plan.tsx
27837
- var import_react61 = require("react");
28135
+ var import_react62 = require("react");
27838
28136
 
27839
28137
  // src/components/elements/pricing-table/Entitlement.tsx
27840
- var import_jsx_runtime64 = require("react/jsx-runtime");
28138
+ var import_jsx_runtime65 = require("react/jsx-runtime");
27841
28139
  var Entitlement2 = ({
27842
28140
  entitlement,
27843
28141
  sharedProps,
@@ -27871,8 +28169,8 @@ var Entitlement2 = ({
27871
28169
  entitlement,
27872
28170
  credits
27873
28171
  );
27874
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27875
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28172
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
28173
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27876
28174
  Icon3,
27877
28175
  {
27878
28176
  "data-testid": "sch-feature-icon",
@@ -27882,31 +28180,31 @@ var Entitlement2 = ({
27882
28180
  rounded: true
27883
28181
  }
27884
28182
  ),
27885
- entitlement.feature?.name && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27886
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27887
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28183
+ entitlement.feature?.name && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28184
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
28185
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27888
28186
  formatCurrency(entitlementPrice, entitlementCurrency),
27889
28187
  " ",
27890
28188
  t3("per"),
27891
28189
  " ",
27892
- entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28190
+ entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27893
28191
  formatNumber(entitlementPackageSize),
27894
28192
  " "
27895
28193
  ] }),
27896
28194
  getFeatureName(entitlement.feature, entitlementPackageSize),
27897
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28195
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27898
28196
  " ",
27899
28197
  t3("per"),
27900
28198
  " ",
27901
28199
  selectedPeriod
27902
28200
  ] })
27903
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28201
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27904
28202
  TieredPricingDetails,
27905
28203
  {
27906
28204
  entitlement,
27907
28205
  period: selectedPeriod
27908
28206
  }
27909
- ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28207
+ ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27910
28208
  formatConsumptionRate(entitlement.consumptionRate),
27911
28209
  " ",
27912
28210
  getFeatureName(
@@ -27917,7 +28215,7 @@ var Entitlement2 = ({
27917
28215
  t3("per"),
27918
28216
  " ",
27919
28217
  getFeatureName(entitlement.feature, 1)
27920
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28218
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
27921
28219
  amount: formatNumber(creditBasedEntitlementLimit.limit),
27922
28220
  units: getFeatureName(
27923
28221
  entitlement.feature,
@@ -27930,25 +28228,25 @@ var Entitlement2 = ({
27930
28228
  entitlement.feature,
27931
28229
  creditBasedEntitlementLimit.limit
27932
28230
  )
27933
- }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28231
+ }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27934
28232
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t3("Unlimited", {
27935
28233
  item: getFeatureName(entitlement.feature)
27936
- }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27937
- typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28234
+ }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
28235
+ typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27938
28236
  formatNumber(limit),
27939
28237
  " "
27940
28238
  ] }),
27941
28239
  getFeatureName(entitlement.feature, limit)
27942
28240
  ] }),
27943
- metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28241
+ metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27944
28242
  " ",
27945
28243
  t3("per"),
27946
28244
  " ",
27947
28245
  t3(metricPeriodName)
27948
28246
  ] })
27949
28247
  ] }) : entitlement.feature.name }),
27950
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { children: [
27951
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
28248
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Text, { children: [
28249
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
27952
28250
  Text,
27953
28251
  {
27954
28252
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27958,7 +28256,7 @@ var Entitlement2 = ({
27958
28256
  " ",
27959
28257
  formatCurrency(entitlementPrice, entitlementCurrency),
27960
28258
  "/",
27961
- entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28259
+ entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27962
28260
  formatNumber(entitlementPackageSize),
27963
28261
  " "
27964
28262
  ] }),
@@ -27966,14 +28264,14 @@ var Entitlement2 = ({
27966
28264
  entitlement.feature,
27967
28265
  entitlementPackageSize
27968
28266
  ),
27969
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
28267
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27970
28268
  "/",
27971
28269
  shortenPeriod(selectedPeriod)
27972
28270
  ] })
27973
28271
  ]
27974
28272
  }
27975
- ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27976
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28273
+ ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
28274
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27977
28275
  Text,
27978
28276
  {
27979
28277
  style: { opacity: 0.54 },
@@ -27982,7 +28280,7 @@ var Entitlement2 = ({
27982
28280
  children: t3("Tier-based")
27983
28281
  }
27984
28282
  ),
27985
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28283
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27986
28284
  PricingTiersTooltip,
27987
28285
  {
27988
28286
  feature: entitlement.feature,
@@ -27993,14 +28291,14 @@ var Entitlement2 = ({
27993
28291
  }
27994
28292
  )
27995
28293
  ] }),
27996
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28294
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27997
28295
  HardLimitTooltip,
27998
28296
  {
27999
28297
  feature: entitlement.feature,
28000
28298
  limit: entitlement.valueNumeric
28001
28299
  }
28002
28300
  ),
28003
- entitlement.billingThreshold && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28301
+ entitlement.billingThreshold && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28004
28302
  BillingThresholdTooltip,
28005
28303
  {
28006
28304
  billingThreshold: entitlement.billingThreshold
@@ -28008,7 +28306,7 @@ var Entitlement2 = ({
28008
28306
  )
28009
28307
  ] })
28010
28308
  ] }),
28011
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
28309
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28012
28310
  Text,
28013
28311
  {
28014
28312
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -28021,7 +28319,7 @@ var Entitlement2 = ({
28021
28319
  };
28022
28320
 
28023
28321
  // src/components/elements/pricing-table/Plan.tsx
28024
- var import_jsx_runtime65 = require("react/jsx-runtime");
28322
+ var import_jsx_runtime66 = require("react/jsx-runtime");
28025
28323
  var Plan2 = ({
28026
28324
  plan,
28027
28325
  index,
@@ -28035,7 +28333,7 @@ var Plan2 = ({
28035
28333
  const { data, settings, setCheckoutState } = useEmbed();
28036
28334
  const isLightBackground = useIsLightBackground();
28037
28335
  const trialEnd = useTrialEnd();
28038
- const [entitlementVisibility, setEntitlementVisibility] = (0, import_react61.useState)({});
28336
+ const [entitlementVisibility, setEntitlementVisibility] = (0, import_react62.useState)({});
28039
28337
  const handleToggleShowAll = (id) => {
28040
28338
  setEntitlementVisibility((prev) => {
28041
28339
  const updated = !(prev[id] ?? false);
@@ -28064,7 +28362,7 @@ var Plan2 = ({
28064
28362
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
28065
28363
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
28066
28364
  const isExpanded = entitlementVisibility[plan.id] ?? false;
28067
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28365
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28068
28366
  Flex,
28069
28367
  {
28070
28368
  as: "li",
@@ -28084,7 +28382,7 @@ var Plan2 = ({
28084
28382
  $boxShadow: cardBoxShadow
28085
28383
  },
28086
28384
  children: [
28087
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28385
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28088
28386
  Flex,
28089
28387
  {
28090
28388
  $flexDirection: "column",
@@ -28095,7 +28393,7 @@ var Plan2 = ({
28095
28393
  $borderStyle: "solid",
28096
28394
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
28097
28395
  children: [
28098
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28396
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28099
28397
  Text,
28100
28398
  {
28101
28399
  as: "h3",
@@ -28104,8 +28402,8 @@ var Plan2 = ({
28104
28402
  children: plan.name
28105
28403
  }
28106
28404
  ) }),
28107
- layout.plans.description.isVisible && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28108
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28405
+ layout.plans.description.isVisible && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28406
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28109
28407
  Text,
28110
28408
  {
28111
28409
  "data-testid": "sch-plan-price",
@@ -28121,14 +28419,14 @@ var Plan2 = ({
28121
28419
  currency: planCurrency,
28122
28420
  testSignificantDigits: false
28123
28421
  }) : formatCurrency(planPrice ?? 0, planCurrency),
28124
- !plan.custom && !isFreePlan && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("sub", { children: [
28422
+ !plan.custom && !isFreePlan && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("sub", { children: [
28125
28423
  "/",
28126
28424
  showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? t3("month, billed yearly") : showAsMonthlyPrices && selectedPeriod === "quarter" ? t3("month, billed quarterly") : t3(selectedPeriod)
28127
28425
  ] })
28128
28426
  ]
28129
28427
  }
28130
28428
  ) }),
28131
- showCredits && credits.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28429
+ showCredits && credits.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28132
28430
  Flex,
28133
28431
  {
28134
28432
  as: "ul",
@@ -28140,8 +28438,8 @@ var Plan2 = ({
28140
28438
  $margin: 0,
28141
28439
  $listStyle: "none",
28142
28440
  children: credits.map((credit, idx) => {
28143
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28144
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28441
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28442
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28145
28443
  Icon3,
28146
28444
  {
28147
28445
  "data-testid": "sch-feature-icon",
@@ -28151,13 +28449,13 @@ var Plan2 = ({
28151
28449
  rounded: true
28152
28450
  }
28153
28451
  ),
28154
- credit.name && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28452
+ credit.name && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28155
28453
  Flex,
28156
28454
  {
28157
28455
  $flexDirection: "column",
28158
28456
  $justifyContent: "center",
28159
28457
  $gap: "0.5rem",
28160
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28458
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28161
28459
  PlanCreditText,
28162
28460
  {
28163
28461
  credit,
@@ -28170,7 +28468,7 @@ var Plan2 = ({
28170
28468
  })
28171
28469
  }
28172
28470
  ),
28173
- isActivePlan && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28471
+ isActivePlan && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28174
28472
  Flex,
28175
28473
  {
28176
28474
  "data-testid": "sch-plan-active",
@@ -28180,7 +28478,7 @@ var Plan2 = ({
28180
28478
  $backgroundColor: settings.theme.primary,
28181
28479
  $borderRadius: "9999px",
28182
28480
  $padding: "0.125rem 0.85rem",
28183
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28481
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28184
28482
  Text,
28185
28483
  {
28186
28484
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28193,7 +28491,7 @@ var Plan2 = ({
28193
28491
  ]
28194
28492
  }
28195
28493
  ),
28196
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28494
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28197
28495
  Flex,
28198
28496
  {
28199
28497
  $flexDirection: "column",
@@ -28202,7 +28500,7 @@ var Plan2 = ({
28202
28500
  $gap: `${cardPadding}rem`,
28203
28501
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
28204
28502
  children: [
28205
- layout.plans.showEntitlements && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28503
+ layout.plans.showEntitlements && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28206
28504
  Flex,
28207
28505
  {
28208
28506
  as: "ul",
@@ -28213,14 +28511,14 @@ var Plan2 = ({
28213
28511
  $margin: 0,
28214
28512
  $listStyle: "none",
28215
28513
  children: [
28216
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: t3("Everything in", {
28514
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { children: t3("Everything in", {
28217
28515
  plan: plans[index - 1].name
28218
28516
  }) }) }),
28219
28517
  (plan.entitlements ?? []).reduce(
28220
28518
  (acc, entitlement, idx) => {
28221
28519
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
28222
28520
  acc.push(
28223
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28521
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28224
28522
  Entitlement2,
28225
28523
  {
28226
28524
  entitlement,
@@ -28238,7 +28536,7 @@ var Plan2 = ({
28238
28536
  },
28239
28537
  []
28240
28538
  ),
28241
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28539
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28242
28540
  ExpandListToggle,
28243
28541
  {
28244
28542
  as: "li",
@@ -28253,7 +28551,7 @@ var Plan2 = ({
28253
28551
  ]
28254
28552
  }
28255
28553
  ),
28256
- isActivePlan ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28554
+ isActivePlan ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28257
28555
  Flex,
28258
28556
  {
28259
28557
  $justifyContent: "center",
@@ -28261,7 +28559,7 @@ var Plan2 = ({
28261
28559
  $gap: "0.25rem",
28262
28560
  $padding: "0.625rem 0",
28263
28561
  children: [
28264
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28562
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28265
28563
  Icon3,
28266
28564
  {
28267
28565
  name: "check-rounded",
@@ -28269,11 +28567,11 @@ var Plan2 = ({
28269
28567
  color: settings.theme.primary
28270
28568
  }
28271
28569
  ),
28272
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
28570
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { $size: 15, $leading: "none", children: t3("Current plan") })
28273
28571
  ]
28274
28572
  }
28275
- ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28276
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28573
+ ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28574
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28277
28575
  Button,
28278
28576
  {
28279
28577
  type: "button",
@@ -28311,10 +28609,10 @@ var Plan2 = ({
28311
28609
  }
28312
28610
  },
28313
28611
  $fullWidth: true,
28314
- children: plan.custom ? plan.customPlanConfig?.ctaText ?? t3("Talk to support") : !plan.valid ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { as: Box, $align: "center", children: t3("Over plan limit") }) : t3("Choose plan")
28612
+ children: plan.custom ? plan.customPlanConfig?.ctaText ?? t3("Talk to support") : !plan.valid ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { as: Box, $align: "center", children: t3("Over plan limit") }) : t3("Choose plan")
28315
28613
  }
28316
28614
  ),
28317
- !plan.valid && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(UsageViolationText, { violations: plan.usageViolations })
28615
+ !plan.valid && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UsageViolationText, { violations: plan.usageViolations })
28318
28616
  ] })
28319
28617
  ]
28320
28618
  }
@@ -28325,7 +28623,7 @@ var Plan2 = ({
28325
28623
  };
28326
28624
 
28327
28625
  // src/components/elements/pricing-table/PricingTable.tsx
28328
- var import_jsx_runtime66 = require("react/jsx-runtime");
28626
+ var import_jsx_runtime67 = require("react/jsx-runtime");
28329
28627
  var resolveDesignProps8 = (props) => {
28330
28628
  return {
28331
28629
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -28368,11 +28666,11 @@ var resolveDesignProps8 = (props) => {
28368
28666
  }
28369
28667
  };
28370
28668
  };
28371
- var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref) => {
28669
+ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref) => {
28372
28670
  const props = resolveDesignProps8(rest);
28373
28671
  const { t: t3 } = useTranslation();
28374
28672
  const { data, settings, isPending, hydratePublic, currencyFilter } = useEmbed();
28375
- const getCallToActionTarget = (0, import_react62.useCallback)(
28673
+ const getCallToActionTarget = (0, import_react63.useCallback)(
28376
28674
  (url, target) => {
28377
28675
  if (target) {
28378
28676
  return target;
@@ -28390,11 +28688,11 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28390
28688
  },
28391
28689
  []
28392
28690
  );
28393
- const [selectedPeriod, setSelectedPeriod] = (0, import_react62.useState)(
28691
+ const [selectedPeriod, setSelectedPeriod] = (0, import_react63.useState)(
28394
28692
  () => getSubscriptionPeriod(data?.company?.billingSubscription) || data?.company?.plan?.planPeriod || "month"
28395
28693
  );
28396
28694
  const { currencies, invalidFilterEntries } = useAvailableCurrenciesWithInvalid();
28397
- const [selectedCurrency, setSelectedCurrency] = (0, import_react62.useState)(
28695
+ const [selectedCurrency, setSelectedCurrency] = (0, import_react63.useState)(
28398
28696
  () => currencies[0] ?? DEFAULT_CURRENCY
28399
28697
  );
28400
28698
  if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
@@ -28412,25 +28710,25 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28412
28710
  } = useAvailablePlans(selectedPeriod, {
28413
28711
  useSelectedPeriod: showPeriodToggle
28414
28712
  });
28415
- const plans = (0, import_react62.useMemo)(
28713
+ const plans = (0, import_react63.useMemo)(
28416
28714
  () => hasCurrency ? allPlans.filter(
28417
28715
  (plan) => planSupportsCurrency(plan, selectedCurrency)
28418
28716
  ) : allPlans,
28419
28717
  [allPlans, hasCurrency, selectedCurrency]
28420
28718
  );
28421
- const addOns = (0, import_react62.useMemo)(
28719
+ const addOns = (0, import_react63.useMemo)(
28422
28720
  () => hasCurrency ? allAddOns.filter(
28423
28721
  (addOn) => planSupportsCurrency(addOn, selectedCurrency)
28424
28722
  ) : allAddOns,
28425
28723
  [allAddOns, hasCurrency, selectedCurrency]
28426
28724
  );
28427
- (0, import_react62.useEffect)(() => {
28725
+ (0, import_react63.useEffect)(() => {
28428
28726
  if (typeof data?.component === "undefined") {
28429
28727
  hydratePublic();
28430
28728
  }
28431
28729
  }, [data?.component, hydratePublic]);
28432
28730
  if (isPending) {
28433
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28731
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28434
28732
  Flex,
28435
28733
  {
28436
28734
  $width: "100%",
@@ -28438,12 +28736,12 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28438
28736
  $alignItems: "center",
28439
28737
  $justifyContent: "center",
28440
28738
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28441
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
28739
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
28442
28740
  }
28443
28741
  );
28444
28742
  }
28445
28743
  if (hasNoUsableCurrency) {
28446
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Container, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28744
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Container, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28447
28745
  }
28448
28746
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28449
28747
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -28451,8 +28749,8 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28451
28749
  rest.callToActionUrl,
28452
28750
  rest.callToActionTarget
28453
28751
  );
28454
- const Wrapper = typeof data?.component === "undefined" ? Container : import_react62.Fragment;
28455
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28752
+ const Wrapper = typeof data?.component === "undefined" ? Container : import_react63.Fragment;
28753
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
28456
28754
  FussyChild,
28457
28755
  {
28458
28756
  ref,
@@ -28462,8 +28760,8 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28462
28760
  $flexDirection: "column",
28463
28761
  $gap: "2rem",
28464
28762
  children: [
28465
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Box, { children: [
28466
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28763
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Box, { children: [
28764
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
28467
28765
  Flex,
28468
28766
  {
28469
28767
  $flexDirection: "column",
@@ -28478,7 +28776,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28478
28776
  }
28479
28777
  },
28480
28778
  children: [
28481
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28779
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28482
28780
  Text,
28483
28781
  {
28484
28782
  as: "h2",
@@ -28487,8 +28785,8 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28487
28785
  children: props.header.isVisible && props.plans.isVisible && plans.length > 0 && t3("Plans")
28488
28786
  }
28489
28787
  ),
28490
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28491
- showCurrencySelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28788
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28789
+ showCurrencySelector && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28492
28790
  CurrencyToggle,
28493
28791
  {
28494
28792
  currencies,
@@ -28496,7 +28794,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28496
28794
  onSelect: setSelectedCurrency
28497
28795
  }
28498
28796
  ),
28499
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28797
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28500
28798
  PeriodToggle,
28501
28799
  {
28502
28800
  options: periods,
@@ -28513,7 +28811,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28513
28811
  ]
28514
28812
  }
28515
28813
  ),
28516
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28814
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28517
28815
  Box,
28518
28816
  {
28519
28817
  as: "ul",
@@ -28526,7 +28824,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28526
28824
  $listStyle: "none",
28527
28825
  children: plans.map((plan, index, self2) => {
28528
28826
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28529
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28827
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28530
28828
  Plan2,
28531
28829
  {
28532
28830
  plan,
@@ -28548,14 +28846,14 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28548
28846
  }
28549
28847
  )
28550
28848
  ] }),
28551
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28552
- props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28849
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
28850
+ props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28553
28851
  Flex,
28554
28852
  {
28555
28853
  $justifyContent: "space-between",
28556
28854
  $alignItems: "center",
28557
28855
  $marginBottom: "1rem",
28558
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28856
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28559
28857
  Text,
28560
28858
  {
28561
28859
  as: "h2",
@@ -28566,7 +28864,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28566
28864
  )
28567
28865
  }
28568
28866
  ),
28569
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28867
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28570
28868
  Box,
28571
28869
  {
28572
28870
  as: "ul",
@@ -28578,7 +28876,7 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28578
28876
  $listStyle: "none",
28579
28877
  children: addOns.map((addOn, index) => {
28580
28878
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28581
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28879
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28582
28880
  AddOn2,
28583
28881
  {
28584
28882
  addOn,
@@ -28605,8 +28903,8 @@ var PricingTable = (0, import_react62.forwardRef)(({ className, ...rest }, ref)
28605
28903
  PricingTable.displayName = "PricingTable";
28606
28904
 
28607
28905
  // src/components/elements/text/Text.tsx
28608
- var import_react63 = require("react");
28609
- var import_jsx_runtime67 = require("react/jsx-runtime");
28906
+ var import_react64 = require("react");
28907
+ var import_jsx_runtime68 = require("react/jsx-runtime");
28610
28908
  var resolveDesignProps9 = (props) => {
28611
28909
  return {
28612
28910
  text: {
@@ -28616,9 +28914,9 @@ var resolveDesignProps9 = (props) => {
28616
28914
  }
28617
28915
  };
28618
28916
  };
28619
- var TextElement = (0, import_react63.forwardRef)(({ children, className, ...rest }, ref) => {
28917
+ var TextElement = (0, import_react64.forwardRef)(({ children, className, ...rest }, ref) => {
28620
28918
  const props = resolveDesignProps9(rest);
28621
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Element, { as: Flex, ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28919
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Element, { as: Flex, ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28622
28920
  Text,
28623
28921
  {
28624
28922
  display: props.text.fontStyle,
@@ -28631,8 +28929,8 @@ var TextElement = (0, import_react63.forwardRef)(({ children, className, ...rest
28631
28929
  TextElement.displayName = "Text";
28632
28930
 
28633
28931
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
28634
- var import_react64 = require("react");
28635
- var import_jsx_runtime68 = require("react/jsx-runtime");
28932
+ var import_react65 = require("react");
28933
+ var import_jsx_runtime69 = require("react/jsx-runtime");
28636
28934
  var buttonStyles = {
28637
28935
  primary: {
28638
28936
  color: "primary",
@@ -28658,17 +28956,17 @@ var resolveDesignProps10 = (props) => {
28658
28956
  }
28659
28957
  };
28660
28958
  };
28661
- var UnsubscribeButton = (0, import_react64.forwardRef)(({ children, className, ...rest }, ref) => {
28959
+ var UnsubscribeButton = (0, import_react65.forwardRef)(({ children, className, ...rest }, ref) => {
28662
28960
  const props = resolveDesignProps10(rest);
28663
28961
  const { t: t3 } = useTranslation();
28664
28962
  const { data, setLayout } = useEmbed();
28665
- const hasActiveSubscription = (0, import_react64.useMemo)(() => {
28963
+ const hasActiveSubscription = (0, import_react65.useMemo)(() => {
28666
28964
  return data?.subscription && data.subscription.status !== "cancelled" && !data.subscription.cancelAt;
28667
28965
  }, [data?.subscription]);
28668
28966
  if (!hasActiveSubscription) {
28669
28967
  return null;
28670
28968
  }
28671
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28969
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28672
28970
  Element,
28673
28971
  {
28674
28972
  as: Flex,
@@ -28676,7 +28974,7 @@ var UnsubscribeButton = (0, import_react64.forwardRef)(({ children, className, .
28676
28974
  className,
28677
28975
  $flexDirection: "column",
28678
28976
  $gap: "2rem",
28679
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28977
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28680
28978
  Button,
28681
28979
  {
28682
28980
  type: "button",
@@ -28697,8 +28995,8 @@ var UnsubscribeButton = (0, import_react64.forwardRef)(({ children, className, .
28697
28995
  UnsubscribeButton.displayName = "UnsubscribeButton";
28698
28996
 
28699
28997
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
28700
- var import_react65 = require("react");
28701
- var import_jsx_runtime69 = require("react/jsx-runtime");
28998
+ var import_react66 = require("react");
28999
+ var import_jsx_runtime70 = require("react/jsx-runtime");
28702
29000
  function resolveDesignProps11(props) {
28703
29001
  return {
28704
29002
  header: {
@@ -28717,15 +29015,15 @@ function resolveDesignProps11(props) {
28717
29015
  }
28718
29016
  };
28719
29017
  }
28720
- var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref) => {
29018
+ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref) => {
28721
29019
  const props = resolveDesignProps11(rest);
28722
29020
  const { t: t3 } = useTranslation();
28723
29021
  const { data, settings, getUpcomingInvoice } = useEmbed();
28724
29022
  const isLightBackground = useIsLightBackground();
28725
- const [isLoading, setIsLoading] = (0, import_react65.useState)(false);
28726
- const [error, setError] = (0, import_react65.useState)();
28727
- const [upcomingInvoice, setUpcomingInvoice] = (0, import_react65.useState)(data?.upcomingInvoice);
28728
- const discounts = (0, import_react65.useMemo)(() => {
29023
+ const [isLoading, setIsLoading] = (0, import_react66.useState)(false);
29024
+ const [error, setError] = (0, import_react66.useState)();
29025
+ const [upcomingInvoice, setUpcomingInvoice] = (0, import_react66.useState)(data?.upcomingInvoice);
29026
+ const discounts = (0, import_react66.useMemo)(() => {
28729
29027
  return (data?.subscription?.discounts || []).filter(
28730
29028
  (discount) => (
28731
29029
  // Only surface discounts that are currently active and actually
@@ -28743,7 +29041,7 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28743
29041
  durationInMonths: discount.durationInMonths ?? void 0
28744
29042
  }));
28745
29043
  }, [data?.subscription?.discounts]);
28746
- const getInvoice = (0, import_react65.useCallback)(async () => {
29044
+ const getInvoice = (0, import_react66.useCallback)(async () => {
28747
29045
  if (data?.component?.id && data?.subscription && !data.subscription.cancelAt) {
28748
29046
  try {
28749
29047
  setError(void 0);
@@ -28759,15 +29057,15 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28759
29057
  }
28760
29058
  }
28761
29059
  }, [data?.component?.id, data?.subscription, getUpcomingInvoice]);
28762
- (0, import_react65.useEffect)(() => {
29060
+ (0, import_react66.useEffect)(() => {
28763
29061
  getInvoice();
28764
29062
  }, [getInvoice]);
28765
- (0, import_react65.useEffect)(() => {
29063
+ (0, import_react66.useEffect)(() => {
28766
29064
  if (data?.upcomingInvoice) {
28767
29065
  setUpcomingInvoice(data.upcomingInvoice);
28768
29066
  }
28769
29067
  }, [data?.upcomingInvoice]);
28770
- const { currency, applied, remaining } = (0, import_react65.useMemo)(() => {
29068
+ const { currency, applied, remaining } = (0, import_react66.useMemo)(() => {
28771
29069
  const currency2 = upcomingInvoice?.currency;
28772
29070
  const startingBalance = upcomingInvoice?.startingBalance ?? 0;
28773
29071
  const endingBalance = upcomingInvoice?.endingBalance ?? 0;
@@ -28786,9 +29084,9 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28786
29084
  if (!data?.subscription || data.subscription.cancelAt) {
28787
29085
  return null;
28788
29086
  }
28789
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Element, { ref, className, children: [
28790
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
28791
- error ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29087
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Element, { ref, className, children: [
29088
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
29089
+ error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28792
29090
  Flex,
28793
29091
  {
28794
29092
  as: TransitionBox,
@@ -28797,8 +29095,8 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28797
29095
  $alignItems: "center",
28798
29096
  $gap: "1rem",
28799
29097
  children: [
28800
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
28801
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
29098
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t3("There was a problem retrieving your upcoming invoice.") }),
29099
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28802
29100
  Button,
28803
29101
  {
28804
29102
  type: "button",
@@ -28811,28 +29109,28 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28811
29109
  )
28812
29110
  ]
28813
29111
  }
28814
- ) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28815
- props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Text, { display: props.header.fontStyle, children: [
29112
+ ) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
29113
+ props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Text, { display: props.header.fontStyle, children: [
28816
29114
  props.header.prefix,
28817
29115
  " ",
28818
29116
  toPrettyDate(upcomingInvoice.dueDate)
28819
29117
  ] }),
28820
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29118
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28821
29119
  Flex,
28822
29120
  {
28823
29121
  $justifyContent: "space-between",
28824
29122
  $alignItems: "start",
28825
29123
  $gap: "1rem",
28826
29124
  children: [
28827
- props.price.isVisible && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
29125
+ props.price.isVisible && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28828
29126
  upcomingInvoice.amountDue,
28829
29127
  upcomingInvoice.currency
28830
29128
  ) }),
28831
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
29129
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: props.contractEndDate.fontStyle, children: t3("Estimated bill") }) })
28832
29130
  ]
28833
29131
  }
28834
29132
  ),
28835
- hasApplied && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29133
+ hasApplied && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28836
29134
  Flex,
28837
29135
  {
28838
29136
  as: TransitionBox,
@@ -28840,12 +29138,12 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28840
29138
  $alignItems: "start",
28841
29139
  $gap: "1rem",
28842
29140
  children: [
28843
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
28844
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: formatCurrency(-applied, currency) })
29141
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t3("Applied balance towards next invoice") }),
29142
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: formatCurrency(-applied, currency) })
28845
29143
  ]
28846
29144
  }
28847
29145
  ),
28848
- hasBalance && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29146
+ hasBalance && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28849
29147
  Flex,
28850
29148
  {
28851
29149
  as: TransitionBox,
@@ -28853,20 +29151,20 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28853
29151
  $alignItems: "start",
28854
29152
  $gap: "1rem",
28855
29153
  children: [
28856
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
28857
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: formatCurrency(remaining, currency) })
29154
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t3("Remaining balance after next invoice") }),
29155
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: formatCurrency(remaining, currency) })
28858
29156
  ]
28859
29157
  }
28860
29158
  ),
28861
- discounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29159
+ discounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28862
29160
  Flex,
28863
29161
  {
28864
29162
  $justifyContent: "space-between",
28865
29163
  $alignItems: "start",
28866
29164
  $gap: "1rem",
28867
29165
  children: [
28868
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t3("Discount") }),
28869
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
29166
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t3("Discount") }),
29167
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28870
29168
  Flex,
28871
29169
  {
28872
29170
  $flexDirection: "column",
@@ -28882,13 +29180,13 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28882
29180
  discount?.currency
28883
29181
  )
28884
29182
  });
28885
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
29183
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28886
29184
  Flex,
28887
29185
  {
28888
29186
  $alignItems: "center",
28889
29187
  $gap: "0.5rem",
28890
29188
  children: [
28891
- discount.customerFacingCode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
29189
+ discount.customerFacingCode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28892
29190
  Flex,
28893
29191
  {
28894
29192
  $alignItems: "center",
@@ -28897,7 +29195,7 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28897
29195
  $borderStyle: "solid",
28898
29196
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
28899
29197
  $borderRadius: "0.3125rem",
28900
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
29198
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28901
29199
  Text,
28902
29200
  {
28903
29201
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28907,7 +29205,7 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28907
29205
  )
28908
29206
  }
28909
29207
  ),
28910
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
29208
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t3("Discount for months", {
28911
29209
  discount: label,
28912
29210
  count: discount.durationInMonths
28913
29211
  }) : label }) })
@@ -28921,12 +29219,12 @@ var UpcomingBill = (0, import_react65.forwardRef)(({ className, ...rest }, ref)
28921
29219
  ]
28922
29220
  }
28923
29221
  )
28924
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
29222
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: "heading2", children: t3("No upcoming invoice") }) })
28925
29223
  ] });
28926
29224
  });
28927
29225
  UpcomingBill.displayName = "UpcomingBill";
28928
29226
 
28929
- // node_modules/.pnpm/pako@3.0.1/node_modules/pako/dist/pako.mjs
29227
+ // node_modules/.pnpm/pako@3.0.2/node_modules/pako/dist/pako.mjs
28930
29228
  var Z_FIXED = 4;
28931
29229
  var Z_BINARY = 0;
28932
29230
  var Z_TEXT = 1;
@@ -29399,7 +29697,7 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
29399
29697
  max_blindex = build_bl_tree(s);
29400
29698
  opt_lenb = s.opt_len + 3 + 7 >>> 3;
29401
29699
  static_lenb = s.static_len + 3 + 7 >>> 3;
29402
- if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
29700
+ if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
29403
29701
  } else opt_lenb = static_lenb = stored_len + 5;
29404
29702
  if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
29405
29703
  else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
@@ -30640,7 +30938,7 @@ var inflate$1 = (strm, flush) => {
30640
30938
  hold += input[next++] << bits;
30641
30939
  bits += 8;
30642
30940
  }
30643
- if (state.head) state.head.time = hold;
30941
+ if (state.head) state.head.time = hold >>> 0;
30644
30942
  if (state.flags & 512 && state.wrap & 4) {
30645
30943
  hbuf[0] = hold & 255;
30646
30944
  hbuf[1] = hold >>> 8 & 255;
@@ -31557,11 +31855,11 @@ function inflate(input, options = {}) {
31557
31855
  }
31558
31856
 
31559
31857
  // src/components/embed/Embed.tsx
31560
- var import_react67 = require("react");
31858
+ var import_react68 = require("react");
31561
31859
  var import_styled_components23 = __toESM(require_styled_components_cjs());
31562
31860
 
31563
31861
  // src/components/embed/renderer.ts
31564
- var import_react66 = require("react");
31862
+ var import_react67 = require("react");
31565
31863
  var components = {
31566
31864
  Root,
31567
31865
  Viewport,
@@ -31625,7 +31923,7 @@ function createRenderer(options) {
31625
31923
  const { className, ...rest } = props;
31626
31924
  const resolvedProps = component === "div" ? rest : props;
31627
31925
  const resolvedChildren = children.map(renderNode);
31628
- return (0, import_react66.createElement)(
31926
+ return (0, import_react67.createElement)(
31629
31927
  component,
31630
31928
  {
31631
31929
  key: index,
@@ -31638,11 +31936,11 @@ function createRenderer(options) {
31638
31936
  }
31639
31937
 
31640
31938
  // src/components/embed/Embed.tsx
31641
- var import_jsx_runtime70 = require("react/jsx-runtime");
31939
+ var import_jsx_runtime71 = require("react/jsx-runtime");
31642
31940
  var renderer = createRenderer();
31643
31941
  var Loading = () => {
31644
31942
  const { settings } = useEmbed();
31645
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
31943
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
31646
31944
  Flex,
31647
31945
  {
31648
31946
  $width: "100%",
@@ -31650,13 +31948,13 @@ var Loading = () => {
31650
31948
  $alignItems: "center",
31651
31949
  $justifyContent: "center",
31652
31950
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
31653
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loader, { $color: settings.theme.primary, $size: "2xl" })
31951
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loader, { $color: settings.theme.primary, $size: "2xl" })
31654
31952
  }
31655
31953
  );
31656
31954
  };
31657
31955
  var Error2 = ({ message }) => {
31658
31956
  const { settings } = useEmbed();
31659
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
31957
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
31660
31958
  Flex,
31661
31959
  {
31662
31960
  $flexDirection: "column",
@@ -31667,14 +31965,14 @@ var Error2 = ({ message }) => {
31667
31965
  $alignItems: "center",
31668
31966
  $justifyContent: "center",
31669
31967
  children: [
31670
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: "heading1", children: "Error" }) }),
31671
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: message }) })
31968
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { display: "heading1", children: "Error" }) }),
31969
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { children: message }) })
31672
31970
  ]
31673
31971
  }
31674
31972
  );
31675
31973
  };
31676
31974
  var SchematicEmbed = ({ id, accessToken }) => {
31677
- const theme = (0, import_react67.useContext)(import_styled_components23.ThemeContext);
31975
+ const theme = (0, import_react68.useContext)(import_styled_components23.ThemeContext);
31678
31976
  const {
31679
31977
  data,
31680
31978
  error,
@@ -31686,7 +31984,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31686
31984
  setBuilderSettings
31687
31985
  } = useEmbed();
31688
31986
  const compressedAst = data?.component?.ast;
31689
- const { children, parsedSettings, parseError } = (0, import_react67.useMemo)(() => {
31987
+ const { children, parsedSettings, parseError } = (0, import_react68.useMemo)(() => {
31690
31988
  let children2 = null;
31691
31989
  let parsedSettings2 = null;
31692
31990
  let parseError2 = null;
@@ -31718,22 +32016,22 @@ var SchematicEmbed = ({ id, accessToken }) => {
31718
32016
  parseError: parseError2
31719
32017
  };
31720
32018
  }, [compressedAst]);
31721
- (0, import_react67.useEffect)(() => {
32019
+ (0, import_react68.useEffect)(() => {
31722
32020
  if (accessToken) {
31723
32021
  setAccessToken(accessToken);
31724
32022
  }
31725
32023
  }, [accessToken, setAccessToken]);
31726
- (0, import_react67.useEffect)(() => {
32024
+ (0, import_react68.useEffect)(() => {
31727
32025
  if (id && stale) {
31728
32026
  hydrateComponent(id);
31729
32027
  }
31730
32028
  }, [id, hydrateComponent, stale]);
31731
- (0, import_react67.useEffect)(() => {
32029
+ (0, import_react68.useEffect)(() => {
31732
32030
  if (parsedSettings) {
31733
32031
  setBuilderSettings(parsedSettings);
31734
32032
  }
31735
32033
  }, [parsedSettings, setBuilderSettings]);
31736
- (0, import_react67.useEffect)(() => {
32034
+ (0, import_react68.useEffect)(() => {
31737
32035
  if (parseError) {
31738
32036
  setError(parseError);
31739
32037
  }
@@ -31742,13 +32040,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
31742
32040
  return stub();
31743
32041
  }
31744
32042
  if (error) {
31745
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Error2, { message: error.message });
32043
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Error2, { message: error.message });
31746
32044
  }
31747
32045
  if (accessToken?.length === 0) {
31748
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Error2, { message: "Please provide an access token." });
32046
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Error2, { message: "Please provide an access token." });
31749
32047
  }
31750
32048
  if (!accessToken?.startsWith("token_")) {
31751
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
32049
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
31752
32050
  Error2,
31753
32051
  {
31754
32052
  message: 'Invalid access token; your temporary access token will start with "token_".'
@@ -31756,7 +32054,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31756
32054
  );
31757
32055
  }
31758
32056
  if (isPending) {
31759
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loading, {});
32057
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loading, {});
31760
32058
  }
31761
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loading, {}) });
32059
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loading, {}) });
31762
32060
  };