@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.
@@ -1723,7 +1723,7 @@ var require_debounce = __commonJS({
1723
1723
  var FUNC_ERROR_TEXT = "Expected a function";
1724
1724
  var nativeMax = Math.max;
1725
1725
  var nativeMin = Math.min;
1726
- function debounce5(func, wait, options) {
1726
+ function debounce6(func, wait, options) {
1727
1727
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
1728
1728
  if (typeof func != "function") {
1729
1729
  throw new TypeError(FUNC_ERROR_TEXT);
@@ -1804,7 +1804,7 @@ var require_debounce = __commonJS({
1804
1804
  debounced.flush = flush;
1805
1805
  return debounced;
1806
1806
  }
1807
- module2.exports = debounce5;
1807
+ module2.exports = debounce6;
1808
1808
  }
1809
1809
  });
1810
1810
 
@@ -2051,6 +2051,8 @@ var initialContext = {
2051
2051
  getUpcomingInvoice: stub,
2052
2052
  getCustomerBalance: stub,
2053
2053
  listInvoices: stub,
2054
+ getCreditUsageByUser: stub,
2055
+ getFeatureUsageByUser: stub,
2054
2056
  createSetupIntent: stub,
2055
2057
  updatePaymentMethod: stub,
2056
2058
  deletePaymentMethod: stub,
@@ -2075,7 +2077,7 @@ var initialContext = {
2075
2077
  };
2076
2078
  var EmbedContext = (0, import_react.createContext)(initialContext);
2077
2079
 
2078
- // node_modules/.pnpm/i18next@26.4.1_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
2080
+ // node_modules/.pnpm/i18next@26.4.2_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
2079
2081
  var isString = (obj) => typeof obj === "string";
2080
2082
  var defer = () => {
2081
2083
  let res;
@@ -3393,7 +3395,7 @@ var Interpolator = class {
3393
3395
  interpolationkey: match2[1].trim()
3394
3396
  }), value.trim());
3395
3397
  }
3396
- str = str.replace(match2[0], value);
3398
+ str = str.replace(match2[0], regexSafe(makeString(value)));
3397
3399
  this.regexp.lastIndex = 0;
3398
3400
  }
3399
3401
  return str;
@@ -4351,16 +4353,16 @@ var hasLoadedNamespace = instance.hasLoadedNamespace;
4351
4353
  var loadNamespaces = instance.loadNamespaces;
4352
4354
  var loadLanguages = instance.loadLanguages;
4353
4355
 
4354
- // 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
4356
+ // 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
4355
4357
  var import_react4 = require("react");
4356
4358
 
4357
- // 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
4359
+ // 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
4358
4360
  var import_react2 = require("react");
4359
4361
 
4360
4362
  // node_modules/.pnpm/html-parse-stringify@3.1.0/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
4361
4363
  var import_void_elements = __toESM(require_void_elements());
4362
4364
 
4363
- // 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
4365
+ // 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
4364
4366
  var warn = (i18n, code, msg, rest) => {
4365
4367
  const args = [msg, {
4366
4368
  code,
@@ -4423,7 +4425,7 @@ var hasLoadedNamespace2 = (ns, i18n, options = {}) => {
4423
4425
  var isString2 = (obj) => typeof obj === "string";
4424
4426
  var isObject = (obj) => typeof obj === "object" && obj !== null;
4425
4427
 
4426
- // 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
4428
+ // 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
4427
4429
  var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
4428
4430
  var htmlEntities = {
4429
4431
  "&": "&",
@@ -4450,7 +4452,7 @@ var htmlEntities = {
4450
4452
  var unescapeHtmlEntity = (m2) => htmlEntities[m2];
4451
4453
  var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
4452
4454
 
4453
- // 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
4455
+ // 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
4454
4456
  var defaultOptions = {
4455
4457
  bindI18n: "languageChanged",
4456
4458
  bindI18nStore: "",
@@ -4469,17 +4471,17 @@ var setDefaults = (options = {}) => {
4469
4471
  };
4470
4472
  var getDefaults = () => defaultOptions;
4471
4473
 
4472
- // 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
4474
+ // 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
4473
4475
  var i18nInstance;
4474
4476
  var setI18n = (instance2) => {
4475
4477
  i18nInstance = instance2;
4476
4478
  };
4477
4479
  var getI18n = () => i18nInstance;
4478
4480
 
4479
- // 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
4481
+ // 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
4480
4482
  var import_react3 = require("react");
4481
4483
 
4482
- // 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
4484
+ // 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
4483
4485
  var initReactI18next = {
4484
4486
  type: "3rdParty",
4485
4487
  init(instance2) {
@@ -4488,7 +4490,7 @@ var initReactI18next = {
4488
4490
  }
4489
4491
  };
4490
4492
 
4491
- // 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
4493
+ // 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
4492
4494
  var I18nContext = (0, import_react3.createContext)();
4493
4495
  var ReportNamespaces = class {
4494
4496
  constructor() {
@@ -4504,13 +4506,13 @@ var ReportNamespaces = class {
4504
4506
  }
4505
4507
  };
4506
4508
 
4507
- // 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
4509
+ // 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
4508
4510
  var import_react7 = require("react");
4509
4511
 
4510
- // 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
4512
+ // 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
4511
4513
  var import_react6 = __toESM(require("react"), 1);
4512
4514
 
4513
- // 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
4515
+ // 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
4514
4516
  var TranslationParserError = class _TranslationParserError extends Error {
4515
4517
  constructor(message, position2, translationString) {
4516
4518
  super(message);
@@ -4523,7 +4525,7 @@ var TranslationParserError = class _TranslationParserError extends Error {
4523
4525
  }
4524
4526
  };
4525
4527
 
4526
- // 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
4528
+ // 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
4527
4529
  var commonEntities = {
4528
4530
  " ": "\xA0",
4529
4531
  "&": "&",
@@ -4736,7 +4738,7 @@ var commonEntities = {
4736
4738
  var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
4737
4739
  var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (_2, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_2, hex) => String.fromCharCode(parseInt(hex, 16)));
4738
4740
 
4739
- // 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
4741
+ // 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
4740
4742
  var tokenize = (translation) => {
4741
4743
  const tokens = [];
4742
4744
  let position2 = 0;
@@ -4789,7 +4791,7 @@ var tokenize = (translation) => {
4789
4791
  return tokens;
4790
4792
  };
4791
4793
 
4792
- // 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
4794
+ // 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
4793
4795
  var import_react5 = __toESM(require("react"), 1);
4794
4796
  var renderDeclarationNode = (declaration2, children, childDeclarations) => {
4795
4797
  const {
@@ -4894,7 +4896,7 @@ var renderTranslation = (translation, declarations = []) => {
4894
4896
  return result;
4895
4897
  };
4896
4898
 
4897
- // 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
4899
+ // 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
4898
4900
  function IcuTransWithoutContext({
4899
4901
  i18nKey,
4900
4902
  defaultTranslation,
@@ -4941,7 +4943,7 @@ function IcuTransWithoutContext({
4941
4943
  }
4942
4944
  IcuTransWithoutContext.displayName = "IcuTransWithoutContext";
4943
4945
 
4944
- // 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
4946
+ // 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
4945
4947
  function IcuTrans({
4946
4948
  i18nKey,
4947
4949
  defaultTranslation,
@@ -4969,7 +4971,7 @@ function IcuTrans({
4969
4971
  }
4970
4972
  IcuTrans.displayName = "IcuTrans";
4971
4973
 
4972
- // 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
4974
+ // 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
4973
4975
  var import_react8 = require("react");
4974
4976
  var usePrevious = (value, ignore) => {
4975
4977
  const ref = (0, import_react8.useRef)();
@@ -5076,16 +5078,16 @@ var useTranslation = (ns, props = {}) => {
5076
5078
  });
5077
5079
  };
5078
5080
 
5079
- // 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
5081
+ // 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
5080
5082
  var import_react9 = require("react");
5081
5083
 
5082
- // 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
5084
+ // 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
5083
5085
  var import_react10 = require("react");
5084
5086
 
5085
- // 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
5087
+ // 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
5086
5088
  var import_react12 = require("react");
5087
5089
 
5088
- // 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
5090
+ // 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
5089
5091
  var import_react11 = require("react");
5090
5092
 
5091
5093
  // src/localization/en.json
@@ -5342,6 +5344,18 @@ var en_default = {
5342
5344
  "month, billed yearly": "month, billed yearly",
5343
5345
  "month, billed quarterly": "month, billed quarterly",
5344
5346
  purchased: "purchased {{date}}",
5347
+ "Usage by user": "Usage by user",
5348
+ "X used by your team this period": "{{amount}} used by your team this period",
5349
+ "Show all X users_one": "Show all {{count}} user",
5350
+ "Show all X users_other": "Show all {{count}} users",
5351
+ "Show top X users_one": "Show top {{count}} user",
5352
+ "Show top X users_other": "Show top {{count}} users",
5353
+ "Show all": "Show all",
5354
+ "Show fewer": "Show fewer",
5355
+ Unattributed: "Unattributed",
5356
+ "There was a problem retrieving usage by user.": "There was a problem retrieving usage by user.",
5357
+ "plus X more_one": "plus {{count}} more",
5358
+ "plus X more_other": "plus {{count}} more",
5345
5359
  usage: {
5346
5360
  limited: "{{amount}} of {{allocation}} used",
5347
5361
  unlimited: "{{amount}} used"
@@ -5361,7 +5375,7 @@ use(initReactI18next).init({
5361
5375
  }
5362
5376
  });
5363
5377
 
5364
- // 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
5378
+ // 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
5365
5379
  var import_jsx_runtime = require("react/jsx-runtime");
5366
5380
 
5367
5381
  // node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
@@ -5382,7 +5396,7 @@ var isPropValid = /* @__PURE__ */ memoize(
5382
5396
  /* Z+1 */
5383
5397
  );
5384
5398
 
5385
- // 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.browser.esm.js
5399
+ // 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.browser.esm.js
5386
5400
  var import_react13 = __toESM(require("react"));
5387
5401
 
5388
5402
  // node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js
@@ -6004,7 +6018,7 @@ function prefixer(element, index, children, callback) {
6004
6018
  }
6005
6019
  }
6006
6020
 
6007
- // 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.browser.esm.js
6021
+ // 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.browser.esm.js
6008
6022
  var r;
6009
6023
  var i;
6010
6024
  var c = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
@@ -6780,7 +6794,7 @@ var It = `__sc-${c}__`;
6780
6794
  var Rt = `:not(style[${c}])`;
6781
6795
  var jt = `style[${c}]`;
6782
6796
 
6783
- // 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
6797
+ // 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
6784
6798
  var iconsList = {
6785
6799
  "workos": 61697,
6786
6800
  "wind": 61698,
@@ -6917,7 +6931,7 @@ var FONT_FACE_RULE = `@font-face {
6917
6931
  src: url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQiCL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cm9uLWxlZnQMY2hldnJvbi1kb3duBWNoZWNrDWNoZWNrLXJvdW5kZWQHY2FzaGFwcAZidXJnZXIEYnVsYgdib29sZWFuCmJvb2xlYW4tb24IYm9va21hcmsFYm9hcmQEYmVsbARiYW5rCWJhY2tzcGFjZQVhdXRoMAxhcnJvdy11cHdhcmQIYXJyb3ctdXALYXJyb3ctcmlnaHQKYXJyb3ctbGVmdAphcnJvdy1kb3duDGFycm93LWN1cnZlZA9hcnJvdy1hbmFseXRpY3MIYXBwbGVwYXkEYW1leAlhbWF6b25wYXkFYWxhcm0AAA==) format("truetype");
6918
6932
  }`;
6919
6933
 
6920
- // 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
6934
+ // 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
6921
6935
  var IconStyles = St`
6922
6936
  ${FONT_FACE_RULE};
6923
6937
 
@@ -6941,13 +6955,13 @@ var StyledIcon = gt.i`
6941
6955
  }
6942
6956
  `;
6943
6957
 
6944
- // 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
6958
+ // 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
6945
6959
  var Icon = ({ name, className = "", ...rest }) => {
6946
6960
  return (0, import_jsx_runtime.jsx)(StyledIcon, { className: `icon icon-${name} ${className}`, "$name": name, ...rest });
6947
6961
  };
6948
6962
 
6949
6963
  // src/context/EmbedProvider.tsx
6950
- var import_debounce = __toESM(require_debounce());
6964
+ var import_debounce2 = __toESM(require_debounce());
6951
6965
  var import_merge3 = __toESM(require_merge());
6952
6966
  var import_react15 = require("react");
6953
6967
 
@@ -7536,6 +7550,7 @@ var BillingCreditGrantReason = {
7536
7550
  BillingCreditAutoTopup: "billing_credit_auto_topup",
7537
7551
  Free: "free",
7538
7552
  Plan: "plan",
7553
+ PostpaidOverdraft: "postpaid_overdraft",
7539
7554
  Purchased: "purchased",
7540
7555
  Rollover: "rollover"
7541
7556
  };
@@ -9233,6 +9248,8 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9233
9248
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["metered_yearly_price"]),
9234
9249
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
9235
9250
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
9251
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON(json["overage_billing_cadence"]),
9252
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON(json["overage_invoice_anchor"]),
9236
9253
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
9237
9254
  planId: json["plan_id"],
9238
9255
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
@@ -11797,17 +11814,17 @@ var JSONApiResponse2 = class {
11797
11814
 
11798
11815
  // src/api/componentspublic/models/BillingArrearsAnchor.ts
11799
11816
  function BillingArrearsAnchorFromJSON2(json) {
11800
- return BillingArrearsAnchorFromJSONTyped5(json, false);
11817
+ return BillingArrearsAnchorFromJSONTyped6(json, false);
11801
11818
  }
11802
- function BillingArrearsAnchorFromJSONTyped5(json, ignoreDiscriminator) {
11819
+ function BillingArrearsAnchorFromJSONTyped6(json, ignoreDiscriminator) {
11803
11820
  return json;
11804
11821
  }
11805
11822
 
11806
11823
  // src/api/componentspublic/models/BillingArrearsCadence.ts
11807
11824
  function BillingArrearsCadenceFromJSON2(json) {
11808
- return BillingArrearsCadenceFromJSONTyped6(json, false);
11825
+ return BillingArrearsCadenceFromJSONTyped7(json, false);
11809
11826
  }
11810
- function BillingArrearsCadenceFromJSONTyped6(json, ignoreDiscriminator) {
11827
+ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11811
11828
  return json;
11812
11829
  }
11813
11830
 
@@ -12750,6 +12767,8 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
12750
12767
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["metered_yearly_price"]),
12751
12768
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON2(json["metric_period"]),
12752
12769
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON2(json["metric_period_month_reset"]),
12770
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON2(json["overage_billing_cadence"]),
12771
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON2(json["overage_invoice_anchor"]),
12753
12772
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
12754
12773
  planId: json["plan_id"],
12755
12774
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
@@ -13216,6 +13235,19 @@ function calculateTieredCost(quantity, priceTiers, tiersMode) {
13216
13235
  }
13217
13236
  return cost;
13218
13237
  }
13238
+ function calculateQuantityCost(billingPrice, quantity) {
13239
+ if (!billingPrice) {
13240
+ return 0;
13241
+ }
13242
+ if (isTieredPrice(billingPrice)) {
13243
+ return calculateTieredCost(
13244
+ quantity,
13245
+ billingPrice.priceTier,
13246
+ billingPrice.tiersMode
13247
+ );
13248
+ }
13249
+ return quantity * billingPrice.price;
13250
+ }
13219
13251
  function getEntitlementCost(entitlement, period = "month", currency) {
13220
13252
  const resolvedPeriod = period ?? "month";
13221
13253
  const source = currency ? getEntitlementPrice(entitlement, resolvedPeriod, currency) : selectPriceForPeriod(
@@ -14280,6 +14312,20 @@ function modifyDate(date, days) {
14280
14312
  return copy3;
14281
14313
  }
14282
14314
 
14315
+ // src/utils/debounce.ts
14316
+ var import_debounce = __toESM(require_debounce());
14317
+ function debounceByKey(fn, wait, settings) {
14318
+ const debouncedByKey = /* @__PURE__ */ new Map();
14319
+ return (key, ...args) => {
14320
+ let debounced = debouncedByKey.get(key);
14321
+ if (!debounced) {
14322
+ debounced = (0, import_debounce.default)(fn, wait, settings);
14323
+ debouncedByKey.set(key, debounced);
14324
+ }
14325
+ return debounced(key, ...args);
14326
+ };
14327
+ }
14328
+
14283
14329
  // src/utils/string.ts
14284
14330
  var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
14285
14331
  "BIF",
@@ -15283,7 +15329,7 @@ var reducer = (state, action) => {
15283
15329
  // src/context/EmbedProvider.tsx
15284
15330
  var import_jsx_runtime3 = require("react/jsx-runtime");
15285
15331
  var getCustomHeaders = (sessionId) => ({
15286
- "X-Schematic-Components-Version": "2.25.1",
15332
+ "X-Schematic-Components-Version": "3.0.0",
15287
15333
  "X-Schematic-Session-ID": sessionId
15288
15334
  });
15289
15335
  var normalizeCurrencyFilter = (filter2) => {
@@ -15394,7 +15440,7 @@ var EmbedProvider = ({
15394
15440
  }
15395
15441
  }, [publicApi]);
15396
15442
  const debouncedHydratePublic = (0, import_react15.useMemo)(
15397
- () => (0, import_debounce.default)(
15443
+ () => (0, import_debounce2.default)(
15398
15444
  hydratePublic,
15399
15445
  FETCH_DEBOUNCE_TIMEOUT,
15400
15446
  LEADING_DEBOUNCE_SETTINGS
@@ -15420,7 +15466,7 @@ var EmbedProvider = ({
15420
15466
  }
15421
15467
  }, [checkoutApi]);
15422
15468
  const debouncedHydrate = (0, import_react15.useMemo)(
15423
- () => (0, import_debounce.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15469
+ () => (0, import_debounce2.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15424
15470
  [hydrate]
15425
15471
  );
15426
15472
  const hydrateComponent = (0, import_react15.useCallback)(
@@ -15447,7 +15493,7 @@ var EmbedProvider = ({
15447
15493
  [checkoutApi]
15448
15494
  );
15449
15495
  const debouncedHydrateComponent = (0, import_react15.useMemo)(
15450
- () => (0, import_debounce.default)(
15496
+ () => (0, import_debounce2.default)(
15451
15497
  hydrateComponent,
15452
15498
  FETCH_DEBOUNCE_TIMEOUT,
15453
15499
  LEADING_DEBOUNCE_SETTINGS
@@ -15471,7 +15517,7 @@ var EmbedProvider = ({
15471
15517
  }
15472
15518
  }, []);
15473
15519
  const debouncedHydrateExternal = (0, import_react15.useMemo)(
15474
- () => (0, import_debounce.default)(
15520
+ () => (0, import_debounce2.default)(
15475
15521
  hydrateExternal,
15476
15522
  FETCH_DEBOUNCE_TIMEOUT,
15477
15523
  LEADING_DEBOUNCE_SETTINGS
@@ -15482,7 +15528,7 @@ var EmbedProvider = ({
15482
15528
  return checkoutApi?.createSetupIntent();
15483
15529
  }, [checkoutApi]);
15484
15530
  const debouncedCreateSetupIntent = (0, import_react15.useMemo)(
15485
- () => (0, import_debounce.default)(
15531
+ () => (0, import_debounce2.default)(
15486
15532
  createSetupIntent,
15487
15533
  FETCH_DEBOUNCE_TIMEOUT,
15488
15534
  LEADING_DEBOUNCE_SETTINGS
@@ -15505,7 +15551,7 @@ var EmbedProvider = ({
15505
15551
  [checkoutApi]
15506
15552
  );
15507
15553
  const debouncedUpdatePaymentMethod = (0, import_react15.useMemo)(
15508
- () => (0, import_debounce.default)(
15554
+ () => (0, import_debounce2.default)(
15509
15555
  updatePaymentMethod,
15510
15556
  FETCH_DEBOUNCE_TIMEOUT,
15511
15557
  LEADING_DEBOUNCE_SETTINGS
@@ -15528,7 +15574,7 @@ var EmbedProvider = ({
15528
15574
  [checkoutApi]
15529
15575
  );
15530
15576
  const debouncedDeletePaymentMethod = (0, import_react15.useMemo)(
15531
- () => (0, import_debounce.default)(
15577
+ () => (0, import_debounce2.default)(
15532
15578
  deletePaymentMethod,
15533
15579
  FETCH_DEBOUNCE_TIMEOUT,
15534
15580
  LEADING_DEBOUNCE_SETTINGS
@@ -15551,7 +15597,7 @@ var EmbedProvider = ({
15551
15597
  [checkoutApi]
15552
15598
  );
15553
15599
  const debouncedCheckout = (0, import_react15.useMemo)(
15554
- () => (0, import_debounce.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15600
+ () => (0, import_debounce2.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15555
15601
  [checkout]
15556
15602
  );
15557
15603
  const previewCheckout = (0, import_react15.useCallback)(
@@ -15571,7 +15617,7 @@ var EmbedProvider = ({
15571
15617
  return response;
15572
15618
  }, [checkoutApi]);
15573
15619
  const debouncedUnsubscribe = (0, import_react15.useMemo)(
15574
- () => (0, import_debounce.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15620
+ () => (0, import_debounce2.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15575
15621
  [unsubscribe]
15576
15622
  );
15577
15623
  const updateCustomFieldValues = (0, import_react15.useCallback)(
@@ -15615,7 +15661,7 @@ var EmbedProvider = ({
15615
15661
  [checkoutApi]
15616
15662
  );
15617
15663
  const debouncedGetUpcomingInvoice = (0, import_react15.useMemo)(
15618
- () => (0, import_debounce.default)(
15664
+ () => (0, import_debounce2.default)(
15619
15665
  getUpcomingInvoice,
15620
15666
  FETCH_DEBOUNCE_TIMEOUT,
15621
15667
  LEADING_DEBOUNCE_SETTINGS
@@ -15626,7 +15672,7 @@ var EmbedProvider = ({
15626
15672
  return checkoutApi?.fetchCustomerBalance();
15627
15673
  }, [checkoutApi]);
15628
15674
  const debouncedGetCustomerBalance = (0, import_react15.useMemo)(
15629
- () => (0, import_debounce.default)(
15675
+ () => (0, import_debounce2.default)(
15630
15676
  getCustomerBalance,
15631
15677
  FETCH_DEBOUNCE_TIMEOUT,
15632
15678
  LEADING_DEBOUNCE_SETTINGS
@@ -15637,9 +15683,37 @@ var EmbedProvider = ({
15637
15683
  return checkoutApi?.listInvoices();
15638
15684
  }, [checkoutApi]);
15639
15685
  const debouncedListInvoices = (0, import_react15.useMemo)(
15640
- () => (0, import_debounce.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15686
+ () => (0, import_debounce2.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15641
15687
  [listInvoices]
15642
15688
  );
15689
+ const getCreditUsageByUser = (0, import_react15.useCallback)(
15690
+ async (billingCreditId, limit) => {
15691
+ return checkoutApi?.getCreditUsageByUser({ billingCreditId, limit });
15692
+ },
15693
+ [checkoutApi]
15694
+ );
15695
+ const debouncedGetCreditUsageByUser = (0, import_react15.useMemo)(
15696
+ () => debounceByKey(
15697
+ getCreditUsageByUser,
15698
+ FETCH_DEBOUNCE_TIMEOUT,
15699
+ LEADING_DEBOUNCE_SETTINGS
15700
+ ),
15701
+ [getCreditUsageByUser]
15702
+ );
15703
+ const getFeatureUsageByUser = (0, import_react15.useCallback)(
15704
+ async (featureId, limit) => {
15705
+ return checkoutApi?.getFeatureUsageByUser({ featureId, limit });
15706
+ },
15707
+ [checkoutApi]
15708
+ );
15709
+ const debouncedGetFeatureUsageByUser = (0, import_react15.useMemo)(
15710
+ () => debounceByKey(
15711
+ getFeatureUsageByUser,
15712
+ FETCH_DEBOUNCE_TIMEOUT,
15713
+ LEADING_DEBOUNCE_SETTINGS
15714
+ ),
15715
+ [getFeatureUsageByUser]
15716
+ );
15643
15717
  const setError = (0, import_react15.useCallback)(
15644
15718
  (error) => {
15645
15719
  debug(error.message);
@@ -15805,6 +15879,8 @@ var EmbedProvider = ({
15805
15879
  getUpcomingInvoice: debouncedGetUpcomingInvoice,
15806
15880
  getCustomerBalance: debouncedGetCustomerBalance,
15807
15881
  listInvoices: debouncedListInvoices,
15882
+ getCreditUsageByUser: debouncedGetCreditUsageByUser,
15883
+ getFeatureUsageByUser: debouncedGetFeatureUsageByUser,
15808
15884
  finishCheckout,
15809
15885
  setError,
15810
15886
  setAccessToken,
@@ -17197,7 +17273,7 @@ var Toggle = gt.input.attrs({ type: "checkbox" })`
17197
17273
  `;
17198
17274
 
17199
17275
  // src/components/ui/tooltip/Tooltip.tsx
17200
- var import_debounce2 = __toESM(require_debounce());
17276
+ var import_debounce3 = __toESM(require_debounce());
17201
17277
  var import_react29 = require("react");
17202
17278
  var import_react_dom = require("react-dom");
17203
17279
 
@@ -17381,7 +17457,7 @@ var Tooltip = ({
17381
17457
  }, [portal, position2]);
17382
17458
  (0, import_react29.useLayoutEffect)(() => {
17383
17459
  updateCoords();
17384
- const handleResize = (0, import_debounce2.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17460
+ const handleResize = (0, import_debounce3.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17385
17461
  window.addEventListener("resize", handleResize);
17386
17462
  window.addEventListener("scroll", handleResize, true);
17387
17463
  return () => {
@@ -17538,7 +17614,7 @@ var Root = (0, import_react32.forwardRef)(
17538
17614
  Root.displayName = "Root";
17539
17615
 
17540
17616
  // src/components/layout/viewport/Viewport.tsx
17541
- var import_debounce4 = __toESM(require_debounce());
17617
+ var import_debounce5 = __toESM(require_debounce());
17542
17618
  var import_react50 = require("react");
17543
17619
  var import_react_dom3 = require("react-dom");
17544
17620
 
@@ -18486,11 +18562,10 @@ var Quantity = ({
18486
18562
  children: [
18487
18563
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Text, { children: [
18488
18564
  formatCurrency(
18489
- tiered && priceTiers ? calculateTieredCost(
18490
- entitlement.quantity,
18491
- priceTiers,
18492
- tiersMode
18493
- ) : (price ?? 0) * entitlement.quantity,
18565
+ calculateQuantityCost(
18566
+ entitlementBillingPrice,
18567
+ entitlement.quantity
18568
+ ),
18494
18569
  currency
18495
18570
  ),
18496
18571
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("sub", { children: [
@@ -19367,7 +19442,7 @@ var Checkout = ({
19367
19442
  };
19368
19443
 
19369
19444
  // src/components/shared/checkout-dialog/CheckoutDialog.tsx
19370
- var import_debounce3 = __toESM(require_debounce());
19445
+ var import_debounce4 = __toESM(require_debounce());
19371
19446
  var import_react39 = require("react");
19372
19447
 
19373
19448
  // src/components/shared/checkout-dialog/Navigation.tsx
@@ -20169,7 +20244,7 @@ var CheckoutDialog = ({ top }) => {
20169
20244
  }, [handlePreviewCheckout]);
20170
20245
  const debouncedPreviewCheckoutRef = (0, import_react39.useRef)(null);
20171
20246
  (0, import_react39.useEffect)(() => {
20172
- const debounced = (0, import_debounce3.default)(
20247
+ const debounced = (0, import_debounce4.default)(
20173
20248
  (updates) => handlePreviewCheckoutRef.current(updates),
20174
20249
  FETCH_DEBOUNCE_TIMEOUT,
20175
20250
  TRAILING_DEBOUNCE_SETTINGS
@@ -22280,6 +22355,29 @@ var EntitlementRow = (props) => {
22280
22355
  tiersMode
22281
22356
  } = entitlementPrice || {};
22282
22357
  const tiered = priceBehavior === EntitlementPriceBehavior.PayInAdvance && isTieredPrice(entitlementPrice);
22358
+ const tierLabel = /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
22359
+ Text,
22360
+ {
22361
+ style: { opacity: 0.54 },
22362
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22363
+ $color: settings.theme.typography.text.color,
22364
+ children: [
22365
+ t4("Tier-based"),
22366
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
22367
+ PricingTiersTooltip,
22368
+ {
22369
+ portal,
22370
+ feature,
22371
+ period: planPeriod,
22372
+ currency,
22373
+ priceTiers,
22374
+ tiersMode: tiersMode ?? void 0,
22375
+ position: "left"
22376
+ }
22377
+ )
22378
+ ]
22379
+ }
22380
+ );
22283
22381
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
22284
22382
  /* @__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: [
22285
22383
  quantity,
@@ -22290,13 +22388,24 @@ var EntitlementRow = (props) => {
22290
22388
  " ",
22291
22389
  getFeatureName(feature, softLimit)
22292
22390
  ] }) : feature.name }) }),
22293
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22294
- formatCurrency((price ?? 0) * quantity, currency),
22295
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("sub", { children: [
22296
- "/",
22297
- shortenPeriod(planPeriod)
22391
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22392
+ // A tiered scheme still resolves to a fixed amount at the chosen
22393
+ // quantity, so the row shows it alongside the tier breakdown
22394
+ // rather than leaving the charge unpriced.
22395
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", $alignItems: "end", children: [
22396
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22397
+ formatCurrency(
22398
+ calculateQuantityCost(entitlementPrice, quantity),
22399
+ currency
22400
+ ),
22401
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("sub", { children: [
22402
+ "/",
22403
+ shortenPeriod(planPeriod)
22404
+ ] })
22405
+ ] }),
22406
+ tiered && tierLabel
22298
22407
  ] })
22299
- ] }) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22408
+ ) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Text, { children: [
22300
22409
  priceBehavior === EntitlementPriceBehavior.Overage && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
22301
22410
  t4("then"),
22302
22411
  " "
@@ -22314,29 +22423,7 @@ var EntitlementRow = (props) => {
22314
22423
  shortenPeriod(planPeriod)
22315
22424
  ] })
22316
22425
  ] })
22317
- ] }) : (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
22318
- Text,
22319
- {
22320
- style: { opacity: 0.54 },
22321
- $size: 0.875 * settings.theme.typography.text.fontSize,
22322
- $color: settings.theme.typography.text.color,
22323
- children: [
22324
- t4("Tier-based"),
22325
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
22326
- PricingTiersTooltip,
22327
- {
22328
- portal,
22329
- feature,
22330
- period: planPeriod,
22331
- currency,
22332
- priceTiers,
22333
- tiersMode: tiersMode ?? void 0,
22334
- position: "left"
22335
- }
22336
- )
22337
- ]
22338
- }
22339
- ) })
22426
+ ] }) : priceBehavior === EntitlementPriceBehavior.Tier && tierLabel })
22340
22427
  ] });
22341
22428
  }
22342
22429
  };
@@ -22532,12 +22619,18 @@ var SubscriptionSidebar = (0, import_react47.forwardRef)(
22532
22619
  }, 0);
22533
22620
  total += addOnCost;
22534
22621
  const payInAdvanceCost = payInAdvanceEntitlements.reduce(
22535
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22622
+ (sum, entitlement) => sum + calculateQuantityCost(
22623
+ getEntitlementPrice(entitlement, planPeriod, currency),
22624
+ entitlement.quantity
22625
+ ),
22536
22626
  0
22537
22627
  );
22538
22628
  total += payInAdvanceCost;
22539
22629
  const addOnPayInAdvanceCost = addOnPayInAdvanceEntitlements.reduce(
22540
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22630
+ (sum, entitlement) => sum + calculateQuantityCost(
22631
+ getEntitlementPrice(entitlement, planPeriod, currency),
22632
+ entitlement.quantity
22633
+ ),
22541
22634
  0
22542
22635
  );
22543
22636
  total += addOnPayInAdvanceCost;
@@ -24000,7 +24093,7 @@ var Viewport = (0, import_react50.forwardRef)(
24000
24093
  const [top, setTop] = (0, import_react50.useState)(0);
24001
24094
  (0, import_react50.useLayoutEffect)(() => {
24002
24095
  const element = portalRef.current;
24003
- const setModalY = (0, import_debounce4.default)(() => {
24096
+ const setModalY = (0, import_debounce5.default)(() => {
24004
24097
  const value = Math.abs(
24005
24098
  (element === document.body ? window.scrollY : element.scrollTop) ?? 0
24006
24099
  );
@@ -24714,7 +24807,7 @@ var Invoices = (0, import_react54.forwardRef)(({ className, ...rest }, ref) => {
24714
24807
  Invoices.displayName = "Invoices";
24715
24808
 
24716
24809
  // src/components/elements/metered-features/MeteredFeatures.tsx
24717
- var import_react55 = require("react");
24810
+ var import_react56 = require("react");
24718
24811
 
24719
24812
  // src/components/elements/metered-features/Meter.tsx
24720
24813
  var import_jsx_runtime54 = require("react/jsx-runtime");
@@ -24842,6 +24935,190 @@ var PriceDetails = ({
24842
24935
  );
24843
24936
  };
24844
24937
 
24938
+ // src/components/elements/metered-features/UsageByUser.tsx
24939
+ var import_react55 = require("react");
24940
+ var import_jsx_runtime56 = require("react/jsx-runtime");
24941
+ var COLLAPSED_COUNT = 3;
24942
+ var EXPANDED_COUNT = 20;
24943
+ var toCreditSection = (data) => ({
24944
+ entries: data.entries.map((entry) => ({
24945
+ id: entry.userId,
24946
+ // An entry with no hydrated user record still has an id worth showing —
24947
+ // a blank row identifies nobody.
24948
+ label: entry.user?.name || entry.userId || "",
24949
+ amount: entry.creditsUsed
24950
+ })),
24951
+ total: data.total,
24952
+ totalUsers: data.totalUsers,
24953
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.creditsUsed } : null
24954
+ });
24955
+ var toFeatureSection = (data) => ({
24956
+ entries: data.rows.map((row) => ({
24957
+ id: row.userId,
24958
+ label: row.user?.name || row.userId || "",
24959
+ amount: row.value
24960
+ })),
24961
+ total: data.total,
24962
+ totalUsers: data.totalUsers,
24963
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.value } : null
24964
+ });
24965
+ var mutedColor = (isLight) => isLight ? "hsla(0, 0%, 0%, 0.46)" : "hsla(0, 0%, 100%, 0.46)";
24966
+ var InitialAvatar = ({ label }) => {
24967
+ const { settings } = useEmbed();
24968
+ const isLightBackground = useIsLightBackground();
24969
+ const initial = (label.trim()[0] ?? "?").toUpperCase();
24970
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
24971
+ Flex,
24972
+ {
24973
+ $alignItems: "center",
24974
+ $justifyContent: "center",
24975
+ $width: "1.75rem",
24976
+ $height: "1.75rem",
24977
+ $flexShrink: 0,
24978
+ $borderRadius: "9999px",
24979
+ $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
24980
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
24981
+ Text,
24982
+ {
24983
+ $size: 11,
24984
+ $weight: 500,
24985
+ $color: settings.theme.typography.text.color,
24986
+ children: initial
24987
+ }
24988
+ )
24989
+ }
24990
+ );
24991
+ };
24992
+ var UsageByUser = ({ source, unit }) => {
24993
+ const { t: t4 } = useTranslation();
24994
+ const isLightBackground = useIsLightBackground();
24995
+ const { getCreditUsageByUser, getFeatureUsageByUser } = useEmbed();
24996
+ const [expanded, setExpanded] = (0, import_react55.useState)(false);
24997
+ const [result, setResult] = (0, import_react55.useState)();
24998
+ const [attempt, setAttempt] = (0, import_react55.useState)(0);
24999
+ const { kind, id } = source;
25000
+ const sourceKey = `${kind}:${id}`;
25001
+ const current = result?.sourceKey === sourceKey ? result : void 0;
25002
+ (0, import_react55.useEffect)(() => {
25003
+ let active = true;
25004
+ const apply = (next2) => {
25005
+ if (active) {
25006
+ setResult(next2);
25007
+ }
25008
+ };
25009
+ const receive = (section) => {
25010
+ if (section) {
25011
+ apply({ sourceKey, section });
25012
+ }
25013
+ };
25014
+ const fail = (err) => apply({ sourceKey, error: isError(err) ? err : ERROR_UNKNOWN });
25015
+ if (kind === "credit") {
25016
+ getCreditUsageByUser(id, EXPANDED_COUNT)?.then(
25017
+ (response) => receive(response && toCreditSection(response.data))
25018
+ ).catch(fail);
25019
+ } else {
25020
+ getFeatureUsageByUser(id, EXPANDED_COUNT)?.then(
25021
+ (response) => receive(response && toFeatureSection(response.data))
25022
+ ).catch(fail);
25023
+ }
25024
+ return () => {
25025
+ active = false;
25026
+ };
25027
+ }, [
25028
+ attempt,
25029
+ getCreditUsageByUser,
25030
+ getFeatureUsageByUser,
25031
+ id,
25032
+ kind,
25033
+ sourceKey
25034
+ ]);
25035
+ const entries = current?.section?.entries;
25036
+ const attributed = (0, import_react55.useMemo)(
25037
+ () => [...entries ?? []].sort((a2, b2) => b2.amount - a2.amount),
25038
+ [entries]
25039
+ );
25040
+ const error = current?.error;
25041
+ const total = current?.section?.total ?? 0;
25042
+ const totalUsers = current?.section?.totalUsers ?? 0;
25043
+ const unattributed = current?.section?.unattributed;
25044
+ const formatAmount = (amount) => `${formatNumber(amount)} ${getFeatureName(unit, amount)}`;
25045
+ if (error) {
25046
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25047
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "heading4", children: t4("Usage by user") }),
25048
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving usage by user.") }),
25049
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25050
+ Button,
25051
+ {
25052
+ type: "button",
25053
+ onClick: () => setAttempt((prev2) => prev2 + 1),
25054
+ $size: "sm",
25055
+ $variant: "ghost",
25056
+ $fullWidth: false,
25057
+ children: t4("Try again")
25058
+ }
25059
+ )
25060
+ ] });
25061
+ }
25062
+ if (attributed.length === 0 && !unattributed) {
25063
+ return null;
25064
+ }
25065
+ const visible = attributed.slice(
25066
+ 0,
25067
+ expanded ? EXPANDED_COUNT : COLLAPSED_COUNT
25068
+ );
25069
+ const remaining = Math.max(totalUsers - visible.length, 0);
25070
+ const expandedUserCount = Math.min(totalUsers, EXPANDED_COUNT);
25071
+ const hiddenUsers = Math.max(
25072
+ expandedUserCount - Math.min(attributed.length, COLLAPSED_COUNT),
25073
+ 0
25074
+ );
25075
+ const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25076
+ const expandLabel = totalUsers > EXPANDED_COUNT ? t4("Show top X users", { count: EXPANDED_COUNT }) : hiddenUsers > 0 ? t4("Show all X users", { count: totalUsers }) : t4("Show all");
25077
+ const row = (key, label, amount, muted) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25078
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InitialAvatar, { label: muted ? "?" : label }),
25079
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25080
+ Text,
25081
+ {
25082
+ display: "text",
25083
+ $color: muted ? mutedColor(isLightBackground) : void 0,
25084
+ children: label
25085
+ }
25086
+ ) }),
25087
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25088
+ Text,
25089
+ {
25090
+ display: "text",
25091
+ $align: "right",
25092
+ $color: mutedColor(isLightBackground),
25093
+ children: formatAmount(amount)
25094
+ }
25095
+ )
25096
+ ] }, key);
25097
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25098
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "heading4", children: t4("Usage by user") }),
25099
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: "text", $color: mutedColor(isLightBackground), children: t4("X used by your team this period", {
25100
+ amount: formatAmount(total)
25101
+ }) }) }),
25102
+ visible.map(
25103
+ (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25104
+ ),
25105
+ expanded && unattributed && row("unattributed", t4("Unattributed"), unattributed.amount, true),
25106
+ 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: t4("plus X more", { count: remaining }) }) }),
25107
+ shouldShowToggle && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25108
+ ExpandListToggle,
25109
+ {
25110
+ isExpanded: expanded,
25111
+ onToggle: () => setExpanded((prev2) => !prev2),
25112
+ expandLabel,
25113
+ collapseLabel: t4("Show fewer"),
25114
+ iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)",
25115
+ $marginTop: "0.25rem"
25116
+ }
25117
+ )
25118
+ ] });
25119
+ };
25120
+ UsageByUser.displayName = "UsageByUser";
25121
+
24845
25122
  // src/components/elements/metered-features/styles.ts
24846
25123
  var Container2 = gt.div`
24847
25124
  display: flex;
@@ -24860,7 +25137,7 @@ var Container2 = gt.div`
24860
25137
  `;
24861
25138
 
24862
25139
  // src/components/elements/metered-features/MeteredFeatures.tsx
24863
- var import_jsx_runtime56 = require("react/jsx-runtime");
25140
+ var import_jsx_runtime57 = require("react/jsx-runtime");
24864
25141
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24865
25142
  const { t: t4 } = useTranslation();
24866
25143
  const { data } = useEmbed();
@@ -24897,9 +25174,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24897
25174
  })
24898
25175
  );
24899
25176
  }
24900
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Text, { display: fontStyle, children: [
25177
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Text, { display: fontStyle, children: [
24901
25178
  acc.join(" \u2022 "),
24902
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25179
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
24903
25180
  HardLimitTooltip,
24904
25181
  {
24905
25182
  feature: entitlement.feature,
@@ -24929,19 +25206,22 @@ function resolveDesignProps4(props) {
24929
25206
  isVisible: props.usage?.isVisible ?? true,
24930
25207
  fontStyle: props.usage?.fontStyle ?? "heading5"
24931
25208
  },
25209
+ usageByUser: {
25210
+ isVisible: props.usageByUser?.isVisible ?? true
25211
+ },
24932
25212
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
24933
25213
  visibleFeatures: props.visibleFeatures
24934
25214
  };
24935
25215
  }
24936
- var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, ref) => {
25216
+ var MeteredFeatures = (0, import_react56.forwardRef)(({ className, ...rest }, ref) => {
24937
25217
  const props = resolveDesignProps4(rest);
24938
- const elementsRef = (0, import_react55.useRef)([]);
25218
+ const elementsRef = (0, import_react56.useRef)([]);
24939
25219
  const shouldWrapChildren = useWrapChildren(elementsRef);
24940
25220
  const { t: t4 } = useTranslation();
24941
25221
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
24942
25222
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
24943
25223
  const isLightBackground = useIsLightBackground();
24944
- const meteredFeatures = (0, import_react55.useMemo)(() => {
25224
+ const meteredFeatures = (0, import_react56.useMemo)(() => {
24945
25225
  const orderedFeatureUsage = props.visibleFeatures?.reduce(
24946
25226
  (acc, id) => {
24947
25227
  const mappedFeatureUsage = data?.featureUsage?.features.find(
@@ -24958,7 +25238,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
24958
25238
  ({ feature }) => feature?.featureType === FeatureType.Event || feature?.featureType === FeatureType.Trait
24959
25239
  );
24960
25240
  }, [props.visibleFeatures, data?.featureUsage?.features]);
24961
- const creditGroups = (0, import_react55.useMemo)(
25241
+ const creditGroups = (0, import_react56.useMemo)(
24962
25242
  () => withEmptyPlanCreditBalances(
24963
25243
  aggregateActiveGrantsByCredit(data?.creditGrants || []),
24964
25244
  listPlanCredits(
@@ -24969,11 +25249,11 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
24969
25249
  ),
24970
25250
  [data?.creditGrants, data?.featureUsage?.features, data?.company]
24971
25251
  );
24972
- const planCreditCompositions = (0, import_react55.useMemo)(
25252
+ const planCreditCompositions = (0, import_react56.useMemo)(
24973
25253
  () => groupPlanCreditGrants(data?.company?.plan?.includedCreditGrants ?? []),
24974
25254
  [data?.company?.plan?.includedCreditGrants]
24975
25255
  );
24976
- const resolveLicenseQuantity = (0, import_react55.useCallback)(
25256
+ const resolveLicenseQuantity = (0, import_react56.useCallback)(
24977
25257
  (licenseId) => {
24978
25258
  const allocation = findLicenseSource(
24979
25259
  data?.featureUsage?.features ?? [],
@@ -24983,17 +25263,17 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
24983
25263
  },
24984
25264
  [data?.featureUsage?.features]
24985
25265
  );
24986
- const purchasableCreditIds = (0, import_react55.useMemo)(
25266
+ const purchasableCreditIds = (0, import_react56.useMemo)(
24987
25267
  () => getPurchasableCreditIds(data?.creditBundles, data?.company?.plan?.id),
24988
25268
  [data?.creditBundles, data?.company?.plan?.id]
24989
25269
  );
24990
- const [expandedCreditIds, setExpandedCreditIds] = (0, import_react55.useState)(
25270
+ const [expandedCreditIds, setExpandedCreditIds] = (0, import_react56.useState)(
24991
25271
  () => /* @__PURE__ */ new Set()
24992
25272
  );
24993
- const [fullLedgerCreditIds, setFullLedgerCreditIds] = (0, import_react55.useState)(
25273
+ const [fullLedgerCreditIds, setFullLedgerCreditIds] = (0, import_react56.useState)(
24994
25274
  () => /* @__PURE__ */ new Set()
24995
25275
  );
24996
- const toggleFullLedger = (0, import_react55.useCallback)((id) => {
25276
+ const toggleFullLedger = (0, import_react56.useCallback)((id) => {
24997
25277
  setFullLedgerCreditIds((prev2) => {
24998
25278
  const next2 = new Set(prev2);
24999
25279
  if (next2.has(id)) {
@@ -25004,7 +25284,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25004
25284
  return next2;
25005
25285
  });
25006
25286
  }, []);
25007
- const toggleBalanceDetails = (0, import_react55.useCallback)((id) => {
25287
+ const toggleBalanceDetails = (0, import_react56.useCallback)((id) => {
25008
25288
  setExpandedCreditIds((prev2) => {
25009
25289
  const next2 = new Set(prev2);
25010
25290
  if (next2.has(id)) {
@@ -25030,7 +25310,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25030
25310
  const period = getSubscriptionPeriod(data?.company?.billingSubscription) ?? (typeof data?.company?.plan?.planPeriod === "string" ? data.company?.plan?.planPeriod : void 0);
25031
25311
  const canCheckout = data?.capabilities?.checkout ?? false;
25032
25312
  const showCredits = data?.displaySettings?.showCredits ?? true;
25033
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Container2, { ref, className, children: [
25313
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Container2, { ref, className, children: [
25034
25314
  meteredFeatures.reduce((acc, entitlement, index) => {
25035
25315
  if (!entitlement.feature) {
25036
25316
  return acc;
@@ -25041,9 +25321,9 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25041
25321
  });
25042
25322
  const { limit } = usageDetails;
25043
25323
  acc.push(
25044
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25045
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1.5rem", children: [
25046
- props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25324
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25325
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1.5rem", children: [
25326
+ props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25047
25327
  Icon3,
25048
25328
  {
25049
25329
  name: feature.icon,
@@ -25052,8 +25332,8 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25052
25332
  rounded: true
25053
25333
  }
25054
25334
  ),
25055
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25056
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25335
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25336
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25057
25337
  Flex,
25058
25338
  {
25059
25339
  ref: (el) => {
@@ -25064,31 +25344,31 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25064
25344
  $flexWrap: "wrap",
25065
25345
  $gap: "1rem",
25066
25346
  children: [
25067
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25068
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.header.fontStyle, children: feature.name }) }),
25069
- 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 }) })
25347
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25348
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: feature.name }) }),
25349
+ 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 }) })
25070
25350
  ] }),
25071
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25351
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25072
25352
  Box,
25073
25353
  {
25074
25354
  $flexBasis: "min-content",
25075
25355
  $flexGrow: 1,
25076
25356
  $textAlign: shouldWrapChildren ? "left" : "right",
25077
25357
  children: [
25078
- 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: [
25079
- typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25358
+ 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: [
25359
+ typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25080
25360
  formatNumber(limit),
25081
25361
  " "
25082
25362
  ] }),
25083
25363
  getFeatureName(feature, limit)
25084
- ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25364
+ ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25085
25365
  formatNumber(usage),
25086
25366
  " ",
25087
25367
  getFeatureName(feature, usage),
25088
25368
  " ",
25089
25369
  t4("used")
25090
25370
  ] }) }) }),
25091
- props.allocation.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25371
+ props.allocation.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25092
25372
  Limit,
25093
25373
  {
25094
25374
  entitlement,
@@ -25102,8 +25382,8 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25102
25382
  ]
25103
25383
  }
25104
25384
  ),
25105
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Meter, { entitlement }),
25106
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25385
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Meter, { entitlement }),
25386
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25107
25387
  Button,
25108
25388
  {
25109
25389
  type: "button",
@@ -25116,13 +25396,24 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25116
25396
  )
25117
25397
  ] })
25118
25398
  ] }),
25119
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25399
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25120
25400
  PriceDetails,
25121
25401
  {
25122
25402
  entitlement,
25123
25403
  usageDetails,
25124
25404
  period
25125
25405
  }
25406
+ ),
25407
+ props.usageByUser.isVisible && feature.featureType === FeatureType.Event && // The per-user amounts come from the feature usage endpoint, so
25408
+ // they are denominated in the feature's own unit — the same one
25409
+ // the usage line above uses. A credit-burndown feature's credit
25410
+ // spend is broken down separately, under its credit.
25411
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25412
+ UsageByUser,
25413
+ {
25414
+ source: { kind: "feature", id: feature.id },
25415
+ unit: feature
25416
+ }
25126
25417
  )
25127
25418
  ] }, index)
25128
25419
  );
@@ -25136,9 +25427,9 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25136
25427
  const visibleGrants = showAllGrants ? credit.grants : credit.grants.slice(0, VISIBLE_CREDIT_COUNT);
25137
25428
  const paddingX = settings.theme.card.padding / TEXT_BASE_SIZE;
25138
25429
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25139
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25140
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1.5rem", children: [
25141
- props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25430
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25431
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1.5rem", children: [
25432
+ props.icon.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25142
25433
  Icon3,
25143
25434
  {
25144
25435
  name: credit.icon,
@@ -25147,13 +25438,13 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25147
25438
  rounded: true
25148
25439
  }
25149
25440
  ),
25150
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25151
- /* @__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: [
25152
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { display: props.header.fontStyle, children: credit.name }) }),
25153
- 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 }) })
25441
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25442
+ /* @__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: [
25443
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: credit.name }) }),
25444
+ 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 }) })
25154
25445
  ] }) }),
25155
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { $gap: "1rem", $alignItems: "center", children: [
25156
- 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: t4("X units remaining", {
25446
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $gap: "1rem", $alignItems: "center", children: [
25447
+ 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: t4("X units remaining", {
25157
25448
  // Balances burn at rates with up to 10 decimal
25158
25449
  // places, so a small remainder must not round to 0.
25159
25450
  amount: formatNumber(credit.total.remaining, {
@@ -25164,7 +25455,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25164
25455
  credit.total.remaining
25165
25456
  )
25166
25457
  }) }) }),
25167
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25458
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25168
25459
  Button,
25169
25460
  {
25170
25461
  type: "button",
@@ -25217,7 +25508,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25217
25508
  const renewalDate = data?.upcomingInvoice?.dueDate;
25218
25509
  return (
25219
25510
  // Pulled up against the balance line despite the column's 2rem gap
25220
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25511
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25221
25512
  Text,
25222
25513
  {
25223
25514
  style: { opacity: 0.54 },
@@ -25230,7 +25521,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25230
25521
  period: shortenPeriod(composition.period),
25231
25522
  composition: ` \u2014 ${parts.join(" + ")}`
25232
25523
  }),
25233
- renewalDate && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25524
+ renewalDate && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25234
25525
  " ",
25235
25526
  t4("Renews on the day", {
25236
25527
  day: formatOrdinal(renewalDate.getDate())
@@ -25243,12 +25534,12 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25243
25534
  })()
25244
25535
  ] })
25245
25536
  ] }),
25246
- hasGrants && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25537
+ hasGrants && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25247
25538
  Box,
25248
25539
  {
25249
25540
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
25250
25541
  $margin: `0 0 0 -${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
25251
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
25542
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25252
25543
  TransitionBox,
25253
25544
  {
25254
25545
  $backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.0375)" : "hsla(0, 0%, 100%, 0.075)",
@@ -25256,22 +25547,22 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25256
25547
  children: [
25257
25548
  visibleGrants.map((grant, index2) => {
25258
25549
  const padding = getRowPadding(index2);
25259
- 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: [
25260
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t4("X items included in plan", {
25550
+ 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: [
25551
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t4("X items included in plan", {
25261
25552
  amount: grant.quantity,
25262
25553
  item: getFeatureName(
25263
25554
  credit,
25264
25555
  grant.quantity
25265
25556
  )
25266
25557
  }) }) }),
25267
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25558
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25268
25559
  Box,
25269
25560
  {
25270
25561
  $display: "table-cell",
25271
25562
  $padding: padding,
25272
25563
  $textAlign: "right",
25273
25564
  $whiteSpace: "nowrap",
25274
- children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t4("Resets", {
25565
+ children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t4("Resets", {
25275
25566
  date: toPrettyDate(
25276
25567
  modifyDate(grant.expiresAt, 1),
25277
25568
  { month: "short" }
@@ -25279,15 +25570,15 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25279
25570
  }) })
25280
25571
  }
25281
25572
  )
25282
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25283
- /* @__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: t4("X item bundle", {
25573
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
25574
+ /* @__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: t4("X item bundle", {
25284
25575
  amount: grant.quantity,
25285
25576
  item: getFeatureName(credit, 1),
25286
25577
  createdAt: toPrettyDate(
25287
25578
  grant.createdAt,
25288
25579
  { month: "short" }
25289
25580
  )
25290
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: t4("X item auto-topup", {
25581
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: t4("X item auto-topup", {
25291
25582
  amount: grant.quantity,
25292
25583
  item: getFeatureName(
25293
25584
  credit,
@@ -25297,7 +25588,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25297
25588
  grant.createdAt,
25298
25589
  { month: "short" }
25299
25590
  )
25300
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: t4("X item grant", {
25591
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: t4("X item grant", {
25301
25592
  amount: grant.quantity,
25302
25593
  item: getFeatureName(
25303
25594
  credit,
@@ -25308,14 +25599,14 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25308
25599
  { month: "short" }
25309
25600
  )
25310
25601
  }) }) }) }),
25311
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25602
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25312
25603
  Box,
25313
25604
  {
25314
25605
  $display: "table-cell",
25315
25606
  $padding: padding,
25316
25607
  $textAlign: "right",
25317
25608
  $whiteSpace: "nowrap",
25318
- children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { children: t4("Expires", {
25609
+ children: grant.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t4("Expires", {
25319
25610
  date: toPrettyDate(
25320
25611
  modifyDate(grant.expiresAt, 1),
25321
25612
  { month: "short" }
@@ -25325,8 +25616,8 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25325
25616
  )
25326
25617
  ] }) }, grant.id);
25327
25618
  }),
25328
- canExpandLedger && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Box, { $display: "table-row", children: [
25329
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25619
+ canExpandLedger && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $display: "table-row", children: [
25620
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25330
25621
  ExpandListToggle,
25331
25622
  {
25332
25623
  isExpanded: showAllGrants,
@@ -25335,7 +25626,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25335
25626
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25336
25627
  }
25337
25628
  ) }),
25338
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25629
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25339
25630
  Box,
25340
25631
  {
25341
25632
  $display: "table-cell",
@@ -25348,7 +25639,7 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25348
25639
  )
25349
25640
  }
25350
25641
  ),
25351
- hasGrants && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
25642
+ hasGrants && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25352
25643
  ExpandListToggle,
25353
25644
  {
25354
25645
  isExpanded,
@@ -25357,6 +25648,13 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25357
25648
  collapseLabel: t4("Hide balance details"),
25358
25649
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25359
25650
  }
25651
+ ),
25652
+ props.usageByUser.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25653
+ UsageByUser,
25654
+ {
25655
+ source: { kind: "credit", id: credit.id },
25656
+ unit: credit
25657
+ }
25360
25658
  )
25361
25659
  ] }, index);
25362
25660
  })
@@ -25365,11 +25663,11 @@ var MeteredFeatures = (0, import_react55.forwardRef)(({ className, ...rest }, re
25365
25663
  MeteredFeatures.displayName = "MeteredFeatures";
25366
25664
 
25367
25665
  // src/components/elements/payment-method/PaymentMethod.tsx
25368
- var import_react57 = require("react");
25666
+ var import_react58 = require("react");
25369
25667
 
25370
25668
  // src/components/elements/payment-method/PaymentMethodElement.tsx
25371
- var import_react56 = require("react");
25372
- var import_jsx_runtime57 = require("react/jsx-runtime");
25669
+ var import_react57 = require("react");
25670
+ var import_jsx_runtime58 = require("react/jsx-runtime");
25373
25671
  var PaymentElement2 = ({
25374
25672
  iconName,
25375
25673
  iconTitle,
@@ -25377,8 +25675,8 @@ var PaymentElement2 = ({
25377
25675
  paymentLast4
25378
25676
  }) => {
25379
25677
  const { settings } = useEmbed();
25380
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25381
- iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25678
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25679
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25382
25680
  Icon3,
25383
25681
  {
25384
25682
  name: iconName,
@@ -25386,15 +25684,15 @@ var PaymentElement2 = ({
25386
25684
  color: settings.theme.typography.text.color
25387
25685
  }
25388
25686
  ),
25389
- (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $flexGrow: 1, children: [
25390
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: label }),
25687
+ (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Box, { $flexGrow: 1, children: [
25688
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: label }),
25391
25689
  " ",
25392
- paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: paymentLast4 })
25690
+ paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: paymentLast4 })
25393
25691
  ] })
25394
25692
  ] });
25395
25693
  };
25396
25694
  var EmptyPaymentElement = () => {
25397
- 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") }) }) }) });
25695
+ 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") }) }) }) });
25398
25696
  };
25399
25697
  var getPaymentMethodData = ({
25400
25698
  accountLast4,
@@ -25474,12 +25772,12 @@ var PaymentMethodElement = ({
25474
25772
  const isLightBackground = useIsLightBackground();
25475
25773
  const sizeFactor = size === "lg" ? 1.5 : size === "md" ? 1 : 0.5;
25476
25774
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
25477
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25478
- props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25479
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25480
- props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t4("Expires in X months", { months: monthsToExpiration }) : t4("Expired") })
25775
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25776
+ props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25777
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25778
+ props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t4("Expires in X months", { months: monthsToExpiration }) : t4("Expired") })
25481
25779
  ] }),
25482
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25780
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
25483
25781
  Flex,
25484
25782
  {
25485
25783
  $justifyContent: "space-between",
@@ -25488,8 +25786,8 @@ var PaymentMethodElement = ({
25488
25786
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
25489
25787
  $borderRadius: "9999px",
25490
25788
  children: [
25491
- paymentMethod ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(EmptyPaymentElement, {}),
25492
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25789
+ paymentMethod ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(EmptyPaymentElement, {}),
25790
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25493
25791
  Text,
25494
25792
  {
25495
25793
  onClick: onRemove,
@@ -25499,7 +25797,7 @@ var PaymentMethodElement = ({
25499
25797
  children: t4("Remove")
25500
25798
  }
25501
25799
  ),
25502
- props.functions.allowEdit && onEdit && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25800
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25503
25801
  Text,
25504
25802
  {
25505
25803
  onClick: onEdit,
@@ -25512,8 +25810,8 @@ var PaymentMethodElement = ({
25512
25810
  ]
25513
25811
  }
25514
25812
  ),
25515
- 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: [
25516
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25813
+ 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: [
25814
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25517
25815
  Text,
25518
25816
  {
25519
25817
  $size: 12,
@@ -25521,7 +25819,7 @@ var PaymentMethodElement = ({
25521
25819
  children: field.name
25522
25820
  }
25523
25821
  ),
25524
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25822
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25525
25823
  "span",
25526
25824
  {
25527
25825
  style: {
@@ -25542,7 +25840,7 @@ var PaymentListElement = ({
25542
25840
  const { settings } = useEmbed();
25543
25841
  const isLightBackground = useIsLightBackground();
25544
25842
  const { iconName, iconTitle, label, paymentLast4 } = getPaymentMethodData(paymentMethod);
25545
- const expirationDate = (0, import_react56.useMemo)(() => {
25843
+ const expirationDate = (0, import_react57.useMemo)(() => {
25546
25844
  const { cardExpMonth, cardExpYear } = paymentMethod;
25547
25845
  if (!cardExpMonth || !cardExpYear) {
25548
25846
  return;
@@ -25553,7 +25851,7 @@ var PaymentListElement = ({
25553
25851
  }
25554
25852
  return `${cardExpMonth}/${formatedYear}`;
25555
25853
  }, [paymentMethod]);
25556
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
25854
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
25557
25855
  Flex,
25558
25856
  {
25559
25857
  $flexDirection: "row",
@@ -25565,7 +25863,7 @@ var PaymentListElement = ({
25565
25863
  $borderStyle: "solid",
25566
25864
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
25567
25865
  children: [
25568
- iconName && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25866
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25569
25867
  Icon3,
25570
25868
  {
25571
25869
  name: iconName,
@@ -25573,20 +25871,20 @@ var PaymentListElement = ({
25573
25871
  color: settings.theme.typography.text.color
25574
25872
  }
25575
25873
  ),
25576
- (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Box, { $flexGrow: 1, children: [
25577
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: label }),
25874
+ (label || paymentLast4) && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Box, { $flexGrow: 1, children: [
25875
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: label }),
25578
25876
  " ",
25579
- paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: paymentLast4 })
25877
+ paymentLast4 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: paymentLast4 })
25580
25878
  ] }),
25581
- expirationDate && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25879
+ expirationDate && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25582
25880
  Box,
25583
25881
  {
25584
25882
  $flexGrow: 1,
25585
25883
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
25586
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { children: t("Expires", { date: expirationDate }) })
25884
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: t("Expires", { date: expirationDate }) })
25587
25885
  }
25588
25886
  ),
25589
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25887
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25590
25888
  Text,
25591
25889
  {
25592
25890
  onClick: () => {
@@ -25599,7 +25897,7 @@ var PaymentListElement = ({
25599
25897
  children: t("Set default")
25600
25898
  }
25601
25899
  ) }),
25602
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
25900
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25603
25901
  Icon3,
25604
25902
  {
25605
25903
  tabIndex: 0,
@@ -25621,7 +25919,7 @@ var PaymentListElement = ({
25621
25919
  };
25622
25920
 
25623
25921
  // src/components/elements/payment-method/PaymentMethod.tsx
25624
- var import_jsx_runtime58 = require("react/jsx-runtime");
25922
+ var import_jsx_runtime59 = require("react/jsx-runtime");
25625
25923
  var resolveDesignProps5 = (props) => {
25626
25924
  return {
25627
25925
  header: {
@@ -25634,10 +25932,10 @@ var resolveDesignProps5 = (props) => {
25634
25932
  }
25635
25933
  };
25636
25934
  };
25637
- var PaymentMethod = (0, import_react57.forwardRef)(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
25935
+ var PaymentMethod = (0, import_react58.forwardRef)(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
25638
25936
  const props = resolveDesignProps5(rest);
25639
25937
  const { data, setLayout } = useEmbed();
25640
- const { paymentMethod, monthsToExpiration } = (0, import_react57.useMemo)(() => {
25938
+ const { paymentMethod, monthsToExpiration } = (0, import_react58.useMemo)(() => {
25641
25939
  const paymentMethod2 = data?.subscription?.paymentMethod || data?.company?.defaultPaymentMethod;
25642
25940
  let monthsToExpiration2;
25643
25941
  if (typeof paymentMethod2?.cardExpYear === "number" && typeof paymentMethod2?.cardExpMonth === "number") {
@@ -25656,7 +25954,7 @@ var PaymentMethod = (0, import_react57.forwardRef)(({ children, className, porta
25656
25954
  monthsToExpiration: monthsToExpiration2
25657
25955
  };
25658
25956
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
25659
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Element, { ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
25957
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Element, { ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
25660
25958
  PaymentMethodElement,
25661
25959
  {
25662
25960
  customCheckoutFields: data?.customCheckoutFields,
@@ -25672,7 +25970,7 @@ PaymentMethod.displayName = "PaymentMethod";
25672
25970
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25673
25971
  var import_react_stripe_js2 = require("@stripe/react-stripe-js");
25674
25972
 
25675
- // node_modules/.pnpm/@stripe+stripe-js@9.15.0/node_modules/@stripe/stripe-js/dist/index.mjs
25973
+ // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
25676
25974
  function _typeof(obj) {
25677
25975
  "@babel/helpers - typeof";
25678
25976
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -25726,7 +26024,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
25726
26024
  }
25727
26025
  stripe._registerWrapper({
25728
26026
  name: "stripe-js",
25729
- version: "9.15.0",
26027
+ version: "9.16.0",
25730
26028
  startTime
25731
26029
  });
25732
26030
  };
@@ -25804,7 +26102,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
25804
26102
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
25805
26103
  var expectedVersion = RELEASE_TRAIN;
25806
26104
  if (isTestKey && version !== expectedVersion) {
25807
- 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"));
26105
+ 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"));
25808
26106
  }
25809
26107
  var stripe = maybeStripe.apply(void 0, args);
25810
26108
  registerWrapper(stripe, startTime);
@@ -25841,8 +26139,8 @@ var loadStripe = function loadStripe2() {
25841
26139
  };
25842
26140
 
25843
26141
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25844
- var import_react58 = require("react");
25845
- var import_jsx_runtime59 = require("react/jsx-runtime");
26142
+ var import_react59 = require("react");
26143
+ var import_jsx_runtime60 = require("react/jsx-runtime");
25846
26144
  var resolveDesignProps6 = () => {
25847
26145
  return {
25848
26146
  header: {
@@ -25870,7 +26168,7 @@ var PaymentMethodDetails = ({
25870
26168
  updatePaymentMethod,
25871
26169
  deletePaymentMethod
25872
26170
  } = useEmbed();
25873
- const { defaultPaymentMethod, paymentMethods, subscription } = (0, import_react58.useMemo)(() => {
26171
+ const { defaultPaymentMethod, paymentMethods, subscription } = (0, import_react59.useMemo)(() => {
25874
26172
  return {
25875
26173
  defaultPaymentMethod: data?.company?.defaultPaymentMethod,
25876
26174
  paymentMethods: data?.company?.paymentMethods || [],
@@ -25883,13 +26181,13 @@ var PaymentMethodDetails = ({
25883
26181
  ]);
25884
26182
  const isLightBackground = useIsLightBackground();
25885
26183
  const initialPaymentMethod = subscription?.paymentMethod || defaultPaymentMethod;
25886
- const [isLoading, setIsLoading] = (0, import_react58.useState)(!initialPaymentMethod);
25887
- const [error, setError] = (0, import_react58.useState)();
25888
- const [showPaymentForm, setShowPaymentForm] = (0, import_react58.useState)(false);
25889
- const [stripe, setStripe] = (0, import_react58.useState)(null);
25890
- const [setupIntent, setSetupIntent] = (0, import_react58.useState)();
25891
- const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = (0, import_react58.useState)(false);
25892
- const [currentPaymentMethod, setCurrentPaymentMethod] = (0, import_react58.useState)(initialPaymentMethod);
26184
+ const [isLoading, setIsLoading] = (0, import_react59.useState)(!initialPaymentMethod);
26185
+ const [error, setError] = (0, import_react59.useState)();
26186
+ const [showPaymentForm, setShowPaymentForm] = (0, import_react59.useState)(false);
26187
+ const [stripe, setStripe] = (0, import_react59.useState)(null);
26188
+ const [setupIntent, setSetupIntent] = (0, import_react59.useState)();
26189
+ const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = (0, import_react59.useState)(false);
26190
+ const [currentPaymentMethod, setCurrentPaymentMethod] = (0, import_react59.useState)(initialPaymentMethod);
25893
26191
  const { isConfirming: isConfirmingPayment } = usePaymentConfirmation({
25894
26192
  stripe,
25895
26193
  clientSecret: confirmPaymentIntentProps?.clientSecret,
@@ -25902,7 +26200,7 @@ var PaymentMethodDetails = ({
25902
26200
  },
25903
26201
  autoConfirm: true
25904
26202
  });
25905
- const monthsToExpiration = (0, import_react58.useMemo)(() => {
26203
+ const monthsToExpiration = (0, import_react59.useMemo)(() => {
25906
26204
  let expiration;
25907
26205
  if (typeof currentPaymentMethod?.cardExpYear === "number" && typeof currentPaymentMethod?.cardExpMonth === "number") {
25908
26206
  const now = /* @__PURE__ */ new Date();
@@ -25925,8 +26223,8 @@ var PaymentMethodDetails = ({
25925
26223
  const toggleShowPaymentMethods = () => {
25926
26224
  setShowDifferentPaymentMethods((prev2) => !prev2);
25927
26225
  };
25928
- const locale = (0, import_react58.useMemo)(() => stripeLocale(i18n.language), [i18n.language]);
25929
- const initializeStripe = (0, import_react58.useCallback)(() => {
26226
+ const locale = (0, import_react59.useMemo)(() => stripeLocale(i18n.language), [i18n.language]);
26227
+ const initializeStripe = (0, import_react59.useCallback)(() => {
25930
26228
  if (stripe || !setupIntent) {
25931
26229
  return;
25932
26230
  }
@@ -25949,7 +26247,7 @@ var PaymentMethodDetails = ({
25949
26247
  setShowPaymentForm(false);
25950
26248
  });
25951
26249
  }, [t4, stripe, setupIntent, locale]);
25952
- const initializePaymentMethod = (0, import_react58.useCallback)(() => {
26250
+ const initializePaymentMethod = (0, import_react59.useCallback)(() => {
25953
26251
  const pending = createSetupIntent() ?? Promise.resolve(void 0);
25954
26252
  return pending.then((response) => {
25955
26253
  if (response) {
@@ -25964,7 +26262,7 @@ var PaymentMethodDetails = ({
25964
26262
  setIsLoading(false);
25965
26263
  });
25966
26264
  }, [t4, createSetupIntent]);
25967
- const handleUpdatePaymentMethod = (0, import_react58.useCallback)(
26265
+ const handleUpdatePaymentMethod = (0, import_react59.useCallback)(
25968
26266
  async (paymentMethodId) => {
25969
26267
  try {
25970
26268
  setIsLoading(true);
@@ -25986,7 +26284,7 @@ var PaymentMethodDetails = ({
25986
26284
  },
25987
26285
  [t4, setPaymentMethodId, updatePaymentMethod, onPaymentMethodSaved]
25988
26286
  );
25989
- const handleDeletePaymentMethod = (0, import_react58.useCallback)(
26287
+ const handleDeletePaymentMethod = (0, import_react59.useCallback)(
25990
26288
  async (paymentMethodId) => {
25991
26289
  try {
25992
26290
  setIsLoading(true);
@@ -26002,10 +26300,10 @@ var PaymentMethodDetails = ({
26002
26300
  },
26003
26301
  [t4, deletePaymentMethod]
26004
26302
  );
26005
- (0, import_react58.useEffect)(() => {
26303
+ (0, import_react59.useEffect)(() => {
26006
26304
  initializeStripe();
26007
26305
  }, [initializeStripe]);
26008
- (0, import_react58.useEffect)(() => {
26306
+ (0, import_react59.useEffect)(() => {
26009
26307
  if (!setupIntent && (!currentPaymentMethod || showPaymentForm)) {
26010
26308
  initializePaymentMethod();
26011
26309
  }
@@ -26015,7 +26313,7 @@ var PaymentMethodDetails = ({
26015
26313
  showPaymentForm,
26016
26314
  initializePaymentMethod
26017
26315
  ]);
26018
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26316
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26019
26317
  Flex,
26020
26318
  {
26021
26319
  $position: "relative",
@@ -26023,7 +26321,7 @@ var PaymentMethodDetails = ({
26023
26321
  $flexGrow: 1,
26024
26322
  $gap: "1.5rem",
26025
26323
  children: [
26026
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26324
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26027
26325
  Flex,
26028
26326
  {
26029
26327
  $position: "absolute",
@@ -26032,7 +26330,7 @@ var PaymentMethodDetails = ({
26032
26330
  $alignItems: "center",
26033
26331
  $width: "100%",
26034
26332
  $height: "100%",
26035
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26333
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26036
26334
  Loader,
26037
26335
  {
26038
26336
  $color: settings.theme.primary,
@@ -26042,7 +26340,7 @@ var PaymentMethodDetails = ({
26042
26340
  )
26043
26341
  }
26044
26342
  ),
26045
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26343
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26046
26344
  Flex,
26047
26345
  {
26048
26346
  $zIndex: isLoading || isConfirmingPayment ? 0 : 1,
@@ -26059,7 +26357,7 @@ var PaymentMethodDetails = ({
26059
26357
  }
26060
26358
  },
26061
26359
  children: [
26062
- setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
26360
+ setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26063
26361
  import_react_stripe_js2.Elements,
26064
26362
  {
26065
26363
  stripe,
@@ -26090,7 +26388,7 @@ var PaymentMethodDetails = ({
26090
26388
  clientSecret: setupIntent?.setupIntentClientSecret
26091
26389
  },
26092
26390
  children: [
26093
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26391
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26094
26392
  PaymentForm,
26095
26393
  {
26096
26394
  financeData,
@@ -26101,7 +26399,7 @@ var PaymentMethodDetails = ({
26101
26399
  }
26102
26400
  }
26103
26401
  ),
26104
- currentPaymentMethod && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26402
+ currentPaymentMethod && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26105
26403
  Text,
26106
26404
  {
26107
26405
  onClick: focusExistingPaymentMethods,
@@ -26114,8 +26412,8 @@ var PaymentMethodDetails = ({
26114
26412
  ) })
26115
26413
  ]
26116
26414
  }
26117
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26118
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26415
+ ) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26416
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26119
26417
  PaymentMethodElement,
26120
26418
  {
26121
26419
  paymentMethod: currentPaymentMethod,
@@ -26128,8 +26426,8 @@ var PaymentMethodDetails = ({
26128
26426
  ...props
26129
26427
  }
26130
26428
  ),
26131
- paymentMethods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26132
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26429
+ paymentMethods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26430
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26133
26431
  Text,
26134
26432
  {
26135
26433
  onClick: toggleShowPaymentMethods,
@@ -26140,7 +26438,7 @@ var PaymentMethodDetails = ({
26140
26438
  children: t4("Choose different payment method")
26141
26439
  }
26142
26440
  ),
26143
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26441
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26144
26442
  Icon3,
26145
26443
  {
26146
26444
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -26148,10 +26446,10 @@ var PaymentMethodDetails = ({
26148
26446
  }
26149
26447
  )
26150
26448
  ] }),
26151
- showDifferentPaymentMethods && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26152
- paymentMethods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26449
+ showDifferentPaymentMethods && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26450
+ paymentMethods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26153
26451
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
26154
- ) || []).map((paymentMethod) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26452
+ ) || []).map((paymentMethod) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26155
26453
  PaymentListElement,
26156
26454
  {
26157
26455
  paymentMethod,
@@ -26160,7 +26458,7 @@ var PaymentMethodDetails = ({
26160
26458
  },
26161
26459
  paymentMethod.id
26162
26460
  )) }),
26163
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
26461
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
26164
26462
  Button,
26165
26463
  {
26166
26464
  type: "button",
@@ -26175,7 +26473,7 @@ var PaymentMethodDetails = ({
26175
26473
  )
26176
26474
  ] })
26177
26475
  ] }),
26178
- !isLoading && error && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26476
+ !isLoading && error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26179
26477
  ]
26180
26478
  }
26181
26479
  )
@@ -26185,13 +26483,13 @@ var PaymentMethodDetails = ({
26185
26483
  };
26186
26484
 
26187
26485
  // src/components/elements/plan-manager/PlanManager.tsx
26188
- var import_react60 = require("react");
26486
+ var import_react61 = require("react");
26189
26487
 
26190
26488
  // src/components/elements/plan-manager/AddOn.tsx
26191
- var import_jsx_runtime60 = require("react/jsx-runtime");
26489
+ var import_jsx_runtime61 = require("react/jsx-runtime");
26192
26490
  var AddOn = ({ addOn, currency, period, layout }) => {
26193
26491
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
26194
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
26492
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
26195
26493
  Flex,
26196
26494
  {
26197
26495
  $justifyContent: "space-between",
@@ -26199,10 +26497,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26199
26497
  $flexWrap: "wrap",
26200
26498
  $gap: "1rem",
26201
26499
  children: [
26202
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26203
- typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Text, { children: [
26500
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26501
+ typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Text, { children: [
26204
26502
  formatCurrency(addOn.planPrice, currency),
26205
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26503
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26206
26504
  ] })
26207
26505
  ]
26208
26506
  }
@@ -26210,8 +26508,8 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26210
26508
  };
26211
26509
 
26212
26510
  // src/components/elements/plan-manager/UsageDetails.tsx
26213
- var import_react59 = require("react");
26214
- var import_jsx_runtime61 = require("react/jsx-runtime");
26511
+ var import_react60 = require("react");
26512
+ var import_jsx_runtime62 = require("react/jsx-runtime");
26215
26513
  var UsageDetails2 = ({
26216
26514
  entitlement,
26217
26515
  period,
@@ -26226,40 +26524,40 @@ var UsageDetails2 = ({
26226
26524
  billingPrice,
26227
26525
  limit,
26228
26526
  cost = 0
26229
- } = (0, import_react59.useMemo)(
26527
+ } = (0, import_react60.useMemo)(
26230
26528
  () => getUsageDetails(entitlement, period, currency, {
26231
26529
  showWarningThresholdAsLimit
26232
26530
  }),
26233
26531
  [entitlement, period, currency, showWarningThresholdAsLimit]
26234
26532
  );
26235
- const description = (0, import_react59.useMemo)(() => {
26533
+ const description = (0, import_react60.useMemo)(() => {
26236
26534
  const acc = [];
26237
26535
  let index = 0;
26238
26536
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Overage) {
26239
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react59.Fragment, { children: [
26537
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react60.Fragment, { children: [
26240
26538
  t4("Additional"),
26241
26539
  ": "
26242
26540
  ] }, index));
26243
26541
  index += 1;
26244
26542
  }
26245
26543
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
26246
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react59.Fragment, { children: t4("Tier-based") }, index));
26544
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react60.Fragment, { children: t4("Tier-based") }, index));
26247
26545
  index += 1;
26248
26546
  }
26249
26547
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
26250
26548
  if ((entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo || entitlement.priceBehavior === EntitlementPriceBehavior.Overage) && entitlement.feature && typeof price === "number") {
26251
26549
  const packageSize = billingPrice?.packageSize ?? 1;
26252
26550
  acc.push(
26253
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react59.Fragment, { children: [
26551
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react60.Fragment, { children: [
26254
26552
  formatCurrency(price, billingPrice?.currency),
26255
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("sub", { children: [
26553
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
26256
26554
  "/",
26257
- packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26555
+ packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26258
26556
  packageSize,
26259
26557
  " "
26260
26558
  ] }),
26261
26559
  getFeatureName(entitlement.feature, packageSize),
26262
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26560
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26263
26561
  "/",
26264
26562
  shortenPeriod(period)
26265
26563
  ] })
@@ -26270,7 +26568,7 @@ var UsageDetails2 = ({
26270
26568
  }
26271
26569
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
26272
26570
  acc.push(
26273
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react59.Fragment, { children: [
26571
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react60.Fragment, { children: [
26274
26572
  formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
26275
26573
  " ",
26276
26574
  getFeatureName(
@@ -26298,7 +26596,7 @@ var UsageDetails2 = ({
26298
26596
  return null;
26299
26597
  }
26300
26598
  const quantity = entitlement.priceBehavior !== EntitlementPriceBehavior.CreditBurndown ? limit : void 0;
26301
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
26599
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26302
26600
  Flex,
26303
26601
  {
26304
26602
  $justifyContent: "space-between",
@@ -26306,13 +26604,13 @@ var UsageDetails2 = ({
26306
26604
  $flexWrap: "wrap",
26307
26605
  $gap: "0.5rem",
26308
26606
  children: [
26309
- /* @__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: [
26607
+ /* @__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: [
26310
26608
  quantity,
26311
26609
  " ",
26312
26610
  getFeatureName(entitlement.feature, quantity, true)
26313
26611
  ] }) : entitlement.feature.name }),
26314
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Text, { children: [
26315
- description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
26612
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { children: [
26613
+ description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26316
26614
  Text,
26317
26615
  {
26318
26616
  style: { opacity: 0.54 },
@@ -26323,15 +26621,15 @@ var UsageDetails2 = ({
26323
26621
  ),
26324
26622
  // only show cost for pay-in-advance entitlements
26325
26623
  // `description` will include price for other price behaviors
26326
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
26624
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26327
26625
  " ",
26328
26626
  formatCurrency(cost, billingPrice?.currency),
26329
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("sub", { children: [
26627
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
26330
26628
  "/",
26331
26629
  shortenPeriod(period)
26332
26630
  ] })
26333
26631
  ] }),
26334
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
26632
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26335
26633
  PricingTiersTooltip,
26336
26634
  {
26337
26635
  feature: entitlement.feature,
@@ -26341,7 +26639,7 @@ var UsageDetails2 = ({
26341
26639
  tiersMode: billingPrice?.tiersMode ?? void 0
26342
26640
  }
26343
26641
  ),
26344
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
26642
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26345
26643
  HardLimitTooltip,
26346
26644
  {
26347
26645
  feature: entitlement.feature,
@@ -26355,7 +26653,7 @@ var UsageDetails2 = ({
26355
26653
  };
26356
26654
 
26357
26655
  // src/components/elements/plan-manager/PlanManager.tsx
26358
- var import_jsx_runtime62 = require("react/jsx-runtime");
26656
+ var import_jsx_runtime63 = require("react/jsx-runtime");
26359
26657
  var resolveDesignProps7 = (props) => {
26360
26658
  return {
26361
26659
  header: {
@@ -26384,7 +26682,7 @@ var resolveDesignProps7 = (props) => {
26384
26682
  }
26385
26683
  };
26386
26684
  };
26387
- var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal, ...rest }, ref) => {
26685
+ var PlanManager = (0, import_react61.forwardRef)(({ children, className, portal, ...rest }, ref) => {
26388
26686
  const props = resolveDesignProps7(rest);
26389
26687
  const { t: t4 } = useTranslation();
26390
26688
  const { data, settings, setCheckoutState, setLayout } = useEmbed();
@@ -26403,7 +26701,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26403
26701
  showCredits,
26404
26702
  showZeroPriceAsFree,
26405
26703
  trialPaymentMethodRequired
26406
- } = (0, import_react60.useMemo)(() => {
26704
+ } = (0, import_react61.useMemo)(() => {
26407
26705
  const planCreditOrder = /* @__PURE__ */ new Map();
26408
26706
  (data?.company?.plan?.includedCreditGrants ?? []).forEach((grant) => {
26409
26707
  if (!planCreditOrder.has(grant.creditId)) {
@@ -26463,15 +26761,15 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26463
26761
  data?.displaySettings?.showZeroPriceAsFree,
26464
26762
  data?.trialPaymentMethodRequired
26465
26763
  ]);
26466
- const usageBasedEntitlements = (0, import_react60.useMemo)(
26764
+ const usageBasedEntitlements = (0, import_react61.useMemo)(
26467
26765
  () => featureUsage.filter((usage) => typeof usage.priceBehavior === "string"),
26468
26766
  [featureUsage]
26469
26767
  );
26470
- const planCreditCompositions = (0, import_react60.useMemo)(
26768
+ const planCreditCompositions = (0, import_react61.useMemo)(
26471
26769
  () => groupPlanCreditGrants(currentPlan?.includedCreditGrants ?? []),
26472
26770
  [currentPlan?.includedCreditGrants]
26473
26771
  );
26474
- const resolveLicenseQuantity = (0, import_react60.useMemo)(() => {
26772
+ const resolveLicenseQuantity = (0, import_react61.useMemo)(() => {
26475
26773
  return (licenseId) => {
26476
26774
  const allocation = findLicenseSource(featureUsage, licenseId)?.allocation;
26477
26775
  return typeof allocation === "number" ? allocation : void 0;
@@ -26494,7 +26792,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26494
26792
  subscriptionCurrency,
26495
26793
  willSubscriptionCancel,
26496
26794
  isTrialSubscription
26497
- } = (0, import_react60.useMemo)(() => {
26795
+ } = (0, import_react61.useMemo)(() => {
26498
26796
  const subscriptionInterval2 = getSubscriptionPeriod(billingSubscription) ?? billingSubscription?.interval;
26499
26797
  const subscriptionCurrency2 = billingSubscription?.currency;
26500
26798
  const isTrialSubscription2 = billingSubscription?.status === "trialing";
@@ -26507,7 +26805,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26507
26805
  };
26508
26806
  }, [billingSubscription]);
26509
26807
  const currentPlanPeriod = getSubscriptionPeriod(billingSubscription) ?? currentPlan?.planPeriod ?? void 0;
26510
- const { isFreePlan, isUsageBasedPlan } = (0, import_react60.useMemo)(() => {
26808
+ const { isFreePlan, isUsageBasedPlan } = (0, import_react61.useMemo)(() => {
26511
26809
  const isFreePlan2 = currentPlan?.planPrice === 0;
26512
26810
  const isUsageBasedPlan2 = isFreePlan2 && usageBasedEntitlements.length > 0;
26513
26811
  return { isFreePlan: isFreePlan2, isUsageBasedPlan: isUsageBasedPlan2 };
@@ -26515,8 +26813,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26515
26813
  const hasAutoTopupSelfService = currentPlan?.includedCreditGrants.some(
26516
26814
  (grant) => isSelfServiceAutoTopupAvailable(grant)
26517
26815
  ) ?? false;
26518
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
26519
- isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26816
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26817
+ isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26520
26818
  Notice,
26521
26819
  {
26522
26820
  as: Flex,
@@ -26526,8 +26824,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26526
26824
  $textAlign: "center",
26527
26825
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26528
26826
  children: [
26529
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26530
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26827
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26828
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26531
26829
  Text,
26532
26830
  {
26533
26831
  as: "p",
@@ -26541,7 +26839,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26541
26839
  )
26542
26840
  ]
26543
26841
  }
26544
- ) : willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26842
+ ) : willSubscriptionCancel ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26545
26843
  Notice,
26546
26844
  {
26547
26845
  as: Flex,
@@ -26551,8 +26849,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26551
26849
  $textAlign: "center",
26552
26850
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26553
26851
  children: [
26554
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26555
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26852
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26853
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26556
26854
  Text,
26557
26855
  {
26558
26856
  as: "p",
@@ -26567,7 +26865,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26567
26865
  )
26568
26866
  ]
26569
26867
  }
26570
- ) : customPlanBilling ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26868
+ ) : customPlanBilling ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26571
26869
  Notice,
26572
26870
  {
26573
26871
  as: Flex,
@@ -26577,19 +26875,19 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26577
26875
  $textAlign: "center",
26578
26876
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26579
26877
  children: [
26580
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26878
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26581
26879
  plan: customPlanBilling.planName ?? t4("your plan")
26582
26880
  }) : t4("Custom plan payment due", {
26583
26881
  plan: customPlanBilling.planName ?? t4("your plan"),
26584
26882
  date: toPrettyDate(customPlanBilling.deadline)
26585
26883
  }) }),
26586
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26884
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26587
26885
  date: toPrettyDate(customPlanBilling.deadline)
26588
26886
  }) : t4("Custom plan payment due description", {
26589
26887
  plan: customPlanBilling.planName ?? t4("your plan"),
26590
26888
  date: toPrettyDate(customPlanBilling.deadline)
26591
26889
  }) }),
26592
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26890
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26593
26891
  Button,
26594
26892
  {
26595
26893
  as: "a",
@@ -26603,7 +26901,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26603
26901
  )
26604
26902
  ]
26605
26903
  }
26606
- ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26904
+ ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26607
26905
  Notice,
26608
26906
  {
26609
26907
  as: Flex,
@@ -26613,10 +26911,10 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26613
26911
  $textAlign: "center",
26614
26912
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26615
26913
  children: [
26616
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26914
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26617
26915
  plan: data.company.scheduledDowngrade.toPlanName
26618
26916
  }) }),
26619
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26917
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26620
26918
  Text,
26621
26919
  {
26622
26920
  as: "p",
@@ -26632,7 +26930,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26632
26930
  ]
26633
26931
  }
26634
26932
  ),
26635
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26933
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26636
26934
  Element,
26637
26935
  {
26638
26936
  as: Flex,
@@ -26641,19 +26939,19 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26641
26939
  $flexDirection: "column",
26642
26940
  $gap: "2rem",
26643
26941
  children: [
26644
- props.header.isVisible && currentPlan && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
26942
+ props.header.isVisible && currentPlan && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26645
26943
  Flex,
26646
26944
  {
26647
26945
  $justifyContent: "space-between",
26648
26946
  $alignItems: "center",
26649
26947
  $gap: "1rem",
26650
26948
  children: [
26651
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
26652
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
26653
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
26949
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
26950
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
26951
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
26654
26952
  ] }),
26655
- props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Box, { children: [
26656
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26953
+ props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Box, { children: [
26954
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26657
26955
  Text,
26658
26956
  {
26659
26957
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -26663,7 +26961,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26663
26961
  )
26664
26962
  }
26665
26963
  ),
26666
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("sub", { children: [
26964
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("sub", { children: [
26667
26965
  "/",
26668
26966
  shortenPeriod(currentPlanPeriod)
26669
26967
  ] }) })
@@ -26671,8 +26969,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26671
26969
  ]
26672
26970
  }
26673
26971
  ),
26674
- props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26675
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26972
+ props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26973
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26676
26974
  Text,
26677
26975
  {
26678
26976
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26680,7 +26978,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26680
26978
  children: t4("Add-ons")
26681
26979
  }
26682
26980
  ),
26683
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26981
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26684
26982
  AddOn,
26685
26983
  {
26686
26984
  addOn,
@@ -26691,8 +26989,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26691
26989
  addOnIndex
26692
26990
  )) })
26693
26991
  ] }),
26694
- props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26695
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
26992
+ props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26993
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26696
26994
  Text,
26697
26995
  {
26698
26996
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26700,8 +26998,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26700
26998
  children: t4("Usage-based")
26701
26999
  }
26702
27000
  ),
26703
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
26704
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27001
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27002
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26705
27003
  UsageDetails2,
26706
27004
  {
26707
27005
  entitlement,
@@ -26714,8 +27012,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26714
27012
  );
26715
27013
  }) })
26716
27014
  ] }),
26717
- props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26718
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27015
+ props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27016
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26719
27017
  Text,
26720
27018
  {
26721
27019
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26723,7 +27021,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26723
27021
  children: t4("Credits in plan")
26724
27022
  }
26725
27023
  ),
26726
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27024
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
26727
27025
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
26728
27026
  (grant) => grant.creditId === group.id
26729
27027
  );
@@ -26746,13 +27044,13 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26746
27044
  const licenseQuantity = perLicenseGrant?.licenseId ? resolveLicenseQuantity(perLicenseGrant.licenseId) : void 0;
26747
27045
  const creditPeriod = composition.period ?? subscriptionInterval;
26748
27046
  const showPerLicense = !!perLicenseGrant && !!licenseFeature;
26749
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27047
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26750
27048
  Flex,
26751
27049
  {
26752
27050
  $flexDirection: "column",
26753
27051
  $gap: "0.25rem",
26754
27052
  children: [
26755
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27053
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26756
27054
  Flex,
26757
27055
  {
26758
27056
  $justifyContent: "space-between",
@@ -26760,7 +27058,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26760
27058
  $flexWrap: "wrap",
26761
27059
  $gap: "0.5rem",
26762
27060
  children: [
26763
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27061
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26764
27062
  t4("X credits per license", {
26765
27063
  amount: perLicenseGrant.amount,
26766
27064
  creditName: getFeatureName(
@@ -26769,7 +27067,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26769
27067
  ),
26770
27068
  licenseName: getFeatureName(licenseFeature, 1)
26771
27069
  }),
26772
- composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27070
+ composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26773
27071
  " ",
26774
27072
  t4("Plus X credits per period", {
26775
27073
  amount: composition.fixedQuantity,
@@ -26780,18 +27078,18 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26780
27078
  period: t4(creditPeriod)
26781
27079
  })
26782
27080
  ] })
26783
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27081
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26784
27082
  group.total.value,
26785
27083
  " ",
26786
27084
  getFeatureName(group, group.total.value),
26787
27085
  " ",
26788
- subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
27086
+ subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26789
27087
  t4("per"),
26790
27088
  " ",
26791
27089
  t4(subscriptionInterval)
26792
27090
  ] })
26793
27091
  ] }) }),
26794
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27092
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26795
27093
  Text,
26796
27094
  {
26797
27095
  style: { opacity: 0.54 },
@@ -26801,7 +27099,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26801
27099
  group.total.used,
26802
27100
  " ",
26803
27101
  t4("used"),
26804
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27102
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26805
27103
  AutoTopupNotice,
26806
27104
  {
26807
27105
  thresholdCredits,
@@ -26814,7 +27112,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26814
27112
  ]
26815
27113
  }
26816
27114
  ),
26817
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27115
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26818
27116
  Text,
26819
27117
  {
26820
27118
  style: { opacity: 0.54 },
@@ -26855,7 +27153,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26855
27153
  groupIndex
26856
27154
  );
26857
27155
  }) }),
26858
- planCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27156
+ planCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26859
27157
  ExpandListToggle,
26860
27158
  {
26861
27159
  isExpanded: planCredits.isExpanded,
@@ -26864,7 +27162,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26864
27162
  $marginTop: "0.5rem"
26865
27163
  }
26866
27164
  ),
26867
- hasAutoTopupSelfService && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27165
+ hasAutoTopupSelfService && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26868
27166
  Flex,
26869
27167
  {
26870
27168
  $justifyContent: "space-between",
@@ -26874,8 +27172,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26874
27172
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26875
27173
  $borderRadius: "0.5rem",
26876
27174
  children: [
26877
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26878
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
27175
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27176
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
26879
27177
  currentPlan?.includedCreditGrants.reduce(
26880
27178
  (acc, grant) => {
26881
27179
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -26884,7 +27182,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26884
27182
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
26885
27183
  if (!autoTopupEnabled) {
26886
27184
  acc.push(
26887
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
27185
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
26888
27186
  unit: getFeatureName(grant.credit, 1)
26889
27187
  }) }, grant.id)
26890
27188
  );
@@ -26894,7 +27192,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26894
27192
  const autoTopupAmount = getAutoTopupAmount(grant);
26895
27193
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
26896
27194
  acc.push(
26897
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
27195
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
26898
27196
  unit: getFeatureName(
26899
27197
  grant.credit,
26900
27198
  autoTopupAmount
@@ -26909,7 +27207,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26909
27207
  []
26910
27208
  )
26911
27209
  ] }),
26912
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27210
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26913
27211
  Button,
26914
27212
  {
26915
27213
  type: "button",
@@ -26926,8 +27224,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26926
27224
  }
26927
27225
  )
26928
27226
  ] }),
26929
- props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26930
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27227
+ props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27228
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26931
27229
  Text,
26932
27230
  {
26933
27231
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26935,9 +27233,9 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26935
27233
  children: t4("Top-ups")
26936
27234
  }
26937
27235
  ),
26938
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27236
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
26939
27237
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
26940
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27238
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26941
27239
  Flex,
26942
27240
  {
26943
27241
  $justifyContent: "space-between",
@@ -26945,8 +27243,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26945
27243
  $flexWrap: "wrap",
26946
27244
  $gap: "0.5rem",
26947
27245
  children: [
26948
- bundle ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
26949
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27246
+ bundle ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27247
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
26950
27248
  "(",
26951
27249
  group.grants.length,
26952
27250
  ")",
@@ -26958,8 +27256,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26958
27256
  " ",
26959
27257
  getFeatureName(group, group.quantity),
26960
27258
  ")"
26961
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
26962
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27259
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27260
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
26963
27261
  "(",
26964
27262
  group.grants.length,
26965
27263
  ")",
@@ -26969,7 +27267,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26969
27267
  " ",
26970
27268
  getFeatureName(group, group.quantity)
26971
27269
  ] }),
26972
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27270
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26973
27271
  Text,
26974
27272
  {
26975
27273
  style: { opacity: 0.54 },
@@ -26987,7 +27285,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26987
27285
  groupIndex
26988
27286
  );
26989
27287
  }) }),
26990
- autoTopupCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27288
+ autoTopupCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26991
27289
  ExpandListToggle,
26992
27290
  {
26993
27291
  isExpanded: autoTopupCredits.isExpanded,
@@ -26997,8 +27295,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
26997
27295
  }
26998
27296
  )
26999
27297
  ] }),
27000
- props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27001
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27298
+ props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27299
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27002
27300
  Text,
27003
27301
  {
27004
27302
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27006,9 +27304,9 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27006
27304
  children: t4("Credit bundles")
27007
27305
  }
27008
27306
  ),
27009
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27307
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27010
27308
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27011
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27309
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27012
27310
  Flex,
27013
27311
  {
27014
27312
  $justifyContent: "space-between",
@@ -27016,8 +27314,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27016
27314
  $flexWrap: "wrap",
27017
27315
  $gap: "0.5rem",
27018
27316
  children: [
27019
- bundle ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27020
- group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27317
+ bundle ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27318
+ group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { style: { opacity: 0.5 }, children: [
27021
27319
  "(",
27022
27320
  group.grants.length,
27023
27321
  ")",
@@ -27029,12 +27327,12 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27029
27327
  " ",
27030
27328
  getFeatureName(group, group.quantity),
27031
27329
  ")"
27032
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27330
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27033
27331
  group.quantity,
27034
27332
  " ",
27035
27333
  getFeatureName(group, group.quantity)
27036
27334
  ] }),
27037
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27335
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27038
27336
  Text,
27039
27337
  {
27040
27338
  style: { opacity: 0.54 },
@@ -27052,7 +27350,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27052
27350
  groupIndex
27053
27351
  );
27054
27352
  }) }),
27055
- bundleCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27353
+ bundleCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27056
27354
  ExpandListToggle,
27057
27355
  {
27058
27356
  isExpanded: bundleCredits.isExpanded,
@@ -27062,8 +27360,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27062
27360
  }
27063
27361
  )
27064
27362
  ] }),
27065
- props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27066
- props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27363
+ props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27364
+ props.addOns.showLabel && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27067
27365
  Text,
27068
27366
  {
27069
27367
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27071,8 +27369,8 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27071
27369
  children: t4("Promotional credits")
27072
27370
  }
27073
27371
  ),
27074
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27075
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27372
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27373
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27076
27374
  Flex,
27077
27375
  {
27078
27376
  $justifyContent: "space-between",
@@ -27080,12 +27378,12 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27080
27378
  $flexWrap: "wrap",
27081
27379
  $gap: "0.5rem",
27082
27380
  children: [
27083
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27381
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27084
27382
  group.quantity,
27085
27383
  " ",
27086
27384
  getFeatureName(group, group.quantity)
27087
27385
  ] }),
27088
- group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
27386
+ group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27089
27387
  Text,
27090
27388
  {
27091
27389
  style: { opacity: 0.54 },
@@ -27103,7 +27401,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27103
27401
  groupIndex
27104
27402
  );
27105
27403
  }) }),
27106
- promotionalCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27404
+ promotionalCredits.canExpand && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27107
27405
  ExpandListToggle,
27108
27406
  {
27109
27407
  isExpanded: promotionalCredits.isExpanded,
@@ -27113,7 +27411,7 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27113
27411
  }
27114
27412
  )
27115
27413
  ] }),
27116
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
27414
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27117
27415
  Button,
27118
27416
  {
27119
27417
  type: "button",
@@ -27134,11 +27432,11 @@ var PlanManager = (0, import_react60.forwardRef)(({ children, className, portal,
27134
27432
  PlanManager.displayName = "PlanManager";
27135
27433
 
27136
27434
  // src/components/elements/pricing-table/PricingTable.tsx
27137
- var import_react63 = require("react");
27435
+ var import_react64 = require("react");
27138
27436
 
27139
27437
  // src/components/elements/pricing-table/AddOn.tsx
27140
- var import_react61 = require("react");
27141
- var import_jsx_runtime63 = require("react/jsx-runtime");
27438
+ var import_react62 = require("react");
27439
+ var import_jsx_runtime64 = require("react/jsx-runtime");
27142
27440
  function renderMeteredEntitlementPricing2({
27143
27441
  priceBehavior,
27144
27442
  softLimit,
@@ -27150,7 +27448,7 @@ function renderMeteredEntitlementPricing2({
27150
27448
  isTiered
27151
27449
  }) {
27152
27450
  if (priceBehavior === EntitlementPriceBehavior.Overage && softLimit) {
27153
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27451
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27154
27452
  "Additional: ",
27155
27453
  formatCurrency(price, currency),
27156
27454
  "/",
@@ -27161,13 +27459,13 @@ function renderMeteredEntitlementPricing2({
27161
27459
  ] });
27162
27460
  }
27163
27461
  if (isTiered) {
27164
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: "Tier-based pricing" });
27462
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: "Tier-based pricing" });
27165
27463
  }
27166
27464
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
27167
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27465
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27168
27466
  formatCurrency(price, currency),
27169
27467
  "/",
27170
- packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27468
+ packageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27171
27469
  packageSize,
27172
27470
  " "
27173
27471
  ] }),
@@ -27193,7 +27491,7 @@ var AddOn2 = ({
27193
27491
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
27194
27492
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
27195
27493
  const isLightBackground = useIsLightBackground();
27196
- const { currentAddOns, canCheckout, isStandalone } = (0, import_react61.useMemo)(() => {
27494
+ const { currentAddOns, canCheckout, isStandalone } = (0, import_react62.useMemo)(() => {
27197
27495
  const isStandalone2 = typeof data?.component === "undefined";
27198
27496
  return {
27199
27497
  currentAddOns: data?.company?.addOns || [],
@@ -27236,7 +27534,7 @@ var AddOn2 = ({
27236
27534
  isTiered: entitlement.priceBehavior === EntitlementPriceBehavior.Tier || isTieredPrice(priceData)
27237
27535
  };
27238
27536
  }) || [];
27239
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27537
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27240
27538
  Flex,
27241
27539
  {
27242
27540
  as: "li",
@@ -27256,7 +27554,7 @@ var AddOn2 = ({
27256
27554
  $boxShadow: cardBoxShadow
27257
27555
  },
27258
27556
  children: [
27259
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27557
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27260
27558
  Flex,
27261
27559
  {
27262
27560
  $flexDirection: "column",
@@ -27267,7 +27565,7 @@ var AddOn2 = ({
27267
27565
  $borderStyle: "solid",
27268
27566
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27269
27567
  children: [
27270
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27568
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27271
27569
  Text,
27272
27570
  {
27273
27571
  as: "h3",
@@ -27276,22 +27574,22 @@ var AddOn2 = ({
27276
27574
  children: addOn.name
27277
27575
  }
27278
27576
  ) }),
27279
- 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 }) }),
27280
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27577
+ 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 }) }),
27578
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27281
27579
  Text,
27282
27580
  {
27283
27581
  "data-testid": "sch-addon-price",
27284
27582
  display: layout.plans.name.fontStyle,
27285
- children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27583
+ children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27286
27584
  formatCurrency(addOnPrice ?? 0, addOnCurrency),
27287
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("sub", { children: [
27585
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("sub", { children: [
27288
27586
  "/",
27289
27587
  selectedPeriod
27290
27588
  ] })
27291
27589
  ] })
27292
27590
  }
27293
27591
  ) }),
27294
- isActiveAddOn && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27592
+ isActiveAddOn && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27295
27593
  Flex,
27296
27594
  {
27297
27595
  "data-testid": "sch-addon-active",
@@ -27301,7 +27599,7 @@ var AddOn2 = ({
27301
27599
  $backgroundColor: settings.theme.primary,
27302
27600
  $borderRadius: "9999px",
27303
27601
  $padding: "0.125rem 0.85rem",
27304
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27602
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27305
27603
  Text,
27306
27604
  {
27307
27605
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27314,7 +27612,7 @@ var AddOn2 = ({
27314
27612
  ]
27315
27613
  }
27316
27614
  ),
27317
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27615
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27318
27616
  Flex,
27319
27617
  {
27320
27618
  $flexDirection: "column",
@@ -27323,7 +27621,7 @@ var AddOn2 = ({
27323
27621
  $flexGrow: 1,
27324
27622
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27325
27623
  children: [
27326
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27624
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27327
27625
  Flex,
27328
27626
  {
27329
27627
  as: "ul",
@@ -27335,7 +27633,7 @@ var AddOn2 = ({
27335
27633
  $listStyle: "none",
27336
27634
  children: displayableEntitlements.map((entitlement, idx) => {
27337
27635
  if (entitlement.isUnlimited) {
27338
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27636
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27339
27637
  Flex,
27340
27638
  {
27341
27639
  as: "li",
@@ -27344,8 +27642,8 @@ var AddOn2 = ({
27344
27642
  $alignItems: "center",
27345
27643
  $gap: "1rem",
27346
27644
  children: [
27347
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $gap: "1rem", children: [
27348
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27645
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $gap: "1rem", children: [
27646
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27349
27647
  Icon3,
27350
27648
  {
27351
27649
  name: entitlement.feature.icon,
@@ -27354,16 +27652,16 @@ var AddOn2 = ({
27354
27652
  rounded: true
27355
27653
  }
27356
27654
  ),
27357
- entitlement.feature && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27655
+ entitlement.feature && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27358
27656
  Flex,
27359
27657
  {
27360
27658
  $flexDirection: "column",
27361
27659
  $justifyContent: "center",
27362
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { children: getFeatureName(entitlement.feature) })
27660
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { children: getFeatureName(entitlement.feature) })
27363
27661
  }
27364
27662
  )
27365
27663
  ] }),
27366
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27664
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27367
27665
  Text,
27368
27666
  {
27369
27667
  style: { opacity: 0.54 },
@@ -27378,7 +27676,7 @@ var AddOn2 = ({
27378
27676
  );
27379
27677
  }
27380
27678
  const meteredEntitlement = entitlement;
27381
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
27679
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27382
27680
  Flex,
27383
27681
  {
27384
27682
  as: "li",
@@ -27388,8 +27686,8 @@ var AddOn2 = ({
27388
27686
  $gap: "1rem",
27389
27687
  $listStyle: "none",
27390
27688
  children: [
27391
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Flex, { $gap: "1rem", children: [
27392
- meteredEntitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27689
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $gap: "1rem", children: [
27690
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27393
27691
  Icon3,
27394
27692
  {
27395
27693
  "data-testid": "sch-feature-icon",
@@ -27399,9 +27697,9 @@ var AddOn2 = ({
27399
27697
  rounded: true
27400
27698
  }
27401
27699
  ),
27402
- /* @__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) }) })
27700
+ /* @__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) }) })
27403
27701
  ] }),
27404
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
27702
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27405
27703
  Text,
27406
27704
  {
27407
27705
  style: { opacity: 0.54 },
@@ -27417,7 +27715,7 @@ var AddOn2 = ({
27417
27715
  })
27418
27716
  }
27419
27717
  ),
27420
- 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)(
27718
+ 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)(
27421
27719
  Button,
27422
27720
  {
27423
27721
  type: "button",
@@ -27456,10 +27754,10 @@ var AddOn2 = ({
27456
27754
  };
27457
27755
 
27458
27756
  // src/components/elements/pricing-table/Plan.tsx
27459
- var import_react62 = require("react");
27757
+ var import_react63 = require("react");
27460
27758
 
27461
27759
  // src/components/elements/pricing-table/Entitlement.tsx
27462
- var import_jsx_runtime64 = require("react/jsx-runtime");
27760
+ var import_jsx_runtime65 = require("react/jsx-runtime");
27463
27761
  var Entitlement2 = ({
27464
27762
  entitlement,
27465
27763
  sharedProps,
@@ -27493,8 +27791,8 @@ var Entitlement2 = ({
27493
27791
  entitlement,
27494
27792
  credits
27495
27793
  );
27496
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27497
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27794
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27795
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27498
27796
  Icon3,
27499
27797
  {
27500
27798
  "data-testid": "sch-feature-icon",
@@ -27504,31 +27802,31 @@ var Entitlement2 = ({
27504
27802
  rounded: true
27505
27803
  }
27506
27804
  ),
27507
- entitlement.feature?.name && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27508
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27509
- /* @__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: [
27805
+ entitlement.feature?.name && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27806
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27807
+ /* @__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: [
27510
27808
  formatCurrency(entitlementPrice, entitlementCurrency),
27511
27809
  " ",
27512
27810
  t4("per"),
27513
27811
  " ",
27514
- entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27812
+ entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27515
27813
  formatNumber(entitlementPackageSize),
27516
27814
  " "
27517
27815
  ] }),
27518
27816
  getFeatureName(entitlement.feature, entitlementPackageSize),
27519
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27817
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27520
27818
  " ",
27521
27819
  t4("per"),
27522
27820
  " ",
27523
27821
  selectedPeriod
27524
27822
  ] })
27525
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27823
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27526
27824
  TieredPricingDetails,
27527
27825
  {
27528
27826
  entitlement,
27529
27827
  period: selectedPeriod
27530
27828
  }
27531
- ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27829
+ ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27532
27830
  formatConsumptionRate(entitlement.consumptionRate),
27533
27831
  " ",
27534
27832
  getFeatureName(
@@ -27539,7 +27837,7 @@ var Entitlement2 = ({
27539
27837
  t4("per"),
27540
27838
  " ",
27541
27839
  getFeatureName(entitlement.feature, 1)
27542
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27840
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27543
27841
  amount: formatNumber(creditBasedEntitlementLimit.limit),
27544
27842
  units: getFeatureName(
27545
27843
  entitlement.feature,
@@ -27552,25 +27850,25 @@ var Entitlement2 = ({
27552
27850
  entitlement.feature,
27553
27851
  creditBasedEntitlementLimit.limit
27554
27852
  )
27555
- }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27853
+ }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27556
27854
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t4("Unlimited", {
27557
27855
  item: getFeatureName(entitlement.feature)
27558
- }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27559
- typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27856
+ }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27857
+ typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27560
27858
  formatNumber(limit),
27561
27859
  " "
27562
27860
  ] }),
27563
27861
  getFeatureName(entitlement.feature, limit)
27564
27862
  ] }),
27565
- metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27863
+ metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27566
27864
  " ",
27567
27865
  t4("per"),
27568
27866
  " ",
27569
27867
  t4(metricPeriodName)
27570
27868
  ] })
27571
27869
  ] }) : entitlement.feature.name }),
27572
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { children: [
27573
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27870
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Text, { children: [
27871
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
27574
27872
  Text,
27575
27873
  {
27576
27874
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27580,7 +27878,7 @@ var Entitlement2 = ({
27580
27878
  " ",
27581
27879
  formatCurrency(entitlementPrice, entitlementCurrency),
27582
27880
  "/",
27583
- entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27881
+ entitlementPackageSize > 1 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27584
27882
  formatNumber(entitlementPackageSize),
27585
27883
  " "
27586
27884
  ] }),
@@ -27588,14 +27886,14 @@ var Entitlement2 = ({
27588
27886
  entitlement.feature,
27589
27887
  entitlementPackageSize
27590
27888
  ),
27591
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27889
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27592
27890
  "/",
27593
27891
  shortenPeriod(selectedPeriod)
27594
27892
  ] })
27595
27893
  ]
27596
27894
  }
27597
- ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27598
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27895
+ ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
27896
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27599
27897
  Text,
27600
27898
  {
27601
27899
  style: { opacity: 0.54 },
@@ -27604,7 +27902,7 @@ var Entitlement2 = ({
27604
27902
  children: t4("Tier-based")
27605
27903
  }
27606
27904
  ),
27607
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27905
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27608
27906
  PricingTiersTooltip,
27609
27907
  {
27610
27908
  feature: entitlement.feature,
@@ -27615,14 +27913,14 @@ var Entitlement2 = ({
27615
27913
  }
27616
27914
  )
27617
27915
  ] }),
27618
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27916
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27619
27917
  HardLimitTooltip,
27620
27918
  {
27621
27919
  feature: entitlement.feature,
27622
27920
  limit: entitlement.valueNumeric
27623
27921
  }
27624
27922
  ),
27625
- entitlement.billingThreshold && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27923
+ entitlement.billingThreshold && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27626
27924
  BillingThresholdTooltip,
27627
27925
  {
27628
27926
  billingThreshold: entitlement.billingThreshold
@@ -27630,7 +27928,7 @@ var Entitlement2 = ({
27630
27928
  )
27631
27929
  ] })
27632
27930
  ] }),
27633
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
27931
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27634
27932
  Text,
27635
27933
  {
27636
27934
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27643,7 +27941,7 @@ var Entitlement2 = ({
27643
27941
  };
27644
27942
 
27645
27943
  // src/components/elements/pricing-table/Plan.tsx
27646
- var import_jsx_runtime65 = require("react/jsx-runtime");
27944
+ var import_jsx_runtime66 = require("react/jsx-runtime");
27647
27945
  var Plan2 = ({
27648
27946
  plan,
27649
27947
  index,
@@ -27657,7 +27955,7 @@ var Plan2 = ({
27657
27955
  const { data, settings, setCheckoutState } = useEmbed();
27658
27956
  const isLightBackground = useIsLightBackground();
27659
27957
  const trialEnd = useTrialEnd();
27660
- const [entitlementVisibility, setEntitlementVisibility] = (0, import_react62.useState)({});
27958
+ const [entitlementVisibility, setEntitlementVisibility] = (0, import_react63.useState)({});
27661
27959
  const handleToggleShowAll = (id) => {
27662
27960
  setEntitlementVisibility((prev2) => {
27663
27961
  const updated = !(prev2[id] ?? false);
@@ -27686,7 +27984,7 @@ var Plan2 = ({
27686
27984
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
27687
27985
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
27688
27986
  const isExpanded = entitlementVisibility[plan.id] ?? false;
27689
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
27987
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27690
27988
  Flex,
27691
27989
  {
27692
27990
  as: "li",
@@ -27706,7 +28004,7 @@ var Plan2 = ({
27706
28004
  $boxShadow: cardBoxShadow
27707
28005
  },
27708
28006
  children: [
27709
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28007
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27710
28008
  Flex,
27711
28009
  {
27712
28010
  $flexDirection: "column",
@@ -27717,7 +28015,7 @@ var Plan2 = ({
27717
28015
  $borderStyle: "solid",
27718
28016
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27719
28017
  children: [
27720
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28018
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27721
28019
  Text,
27722
28020
  {
27723
28021
  as: "h3",
@@ -27726,8 +28024,8 @@ var Plan2 = ({
27726
28024
  children: plan.name
27727
28025
  }
27728
28026
  ) }),
27729
- 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 }) }),
27730
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28027
+ 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 }) }),
28028
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27731
28029
  Text,
27732
28030
  {
27733
28031
  "data-testid": "sch-plan-price",
@@ -27743,14 +28041,14 @@ var Plan2 = ({
27743
28041
  currency: planCurrency,
27744
28042
  testSignificantDigits: false
27745
28043
  }) : formatCurrency(planPrice ?? 0, planCurrency),
27746
- !plan.custom && !isFreePlan && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("sub", { children: [
28044
+ !plan.custom && !isFreePlan && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("sub", { children: [
27747
28045
  "/",
27748
28046
  showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? t4("month, billed yearly") : showAsMonthlyPrices && selectedPeriod === "quarter" ? t4("month, billed quarterly") : t4(selectedPeriod)
27749
28047
  ] })
27750
28048
  ]
27751
28049
  }
27752
28050
  ) }),
27753
- showCredits && credits.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28051
+ showCredits && credits.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27754
28052
  Flex,
27755
28053
  {
27756
28054
  as: "ul",
@@ -27762,8 +28060,8 @@ var Plan2 = ({
27762
28060
  $margin: 0,
27763
28061
  $listStyle: "none",
27764
28062
  children: credits.map((credit, idx) => {
27765
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
27766
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28063
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28064
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27767
28065
  Icon3,
27768
28066
  {
27769
28067
  "data-testid": "sch-feature-icon",
@@ -27773,13 +28071,13 @@ var Plan2 = ({
27773
28071
  rounded: true
27774
28072
  }
27775
28073
  ),
27776
- credit.name && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28074
+ credit.name && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27777
28075
  Flex,
27778
28076
  {
27779
28077
  $flexDirection: "column",
27780
28078
  $justifyContent: "center",
27781
28079
  $gap: "0.5rem",
27782
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28080
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27783
28081
  PlanCreditText,
27784
28082
  {
27785
28083
  credit,
@@ -27792,7 +28090,7 @@ var Plan2 = ({
27792
28090
  })
27793
28091
  }
27794
28092
  ),
27795
- isActivePlan && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28093
+ isActivePlan && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27796
28094
  Flex,
27797
28095
  {
27798
28096
  "data-testid": "sch-plan-active",
@@ -27802,7 +28100,7 @@ var Plan2 = ({
27802
28100
  $backgroundColor: settings.theme.primary,
27803
28101
  $borderRadius: "9999px",
27804
28102
  $padding: "0.125rem 0.85rem",
27805
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28103
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27806
28104
  Text,
27807
28105
  {
27808
28106
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27815,7 +28113,7 @@ var Plan2 = ({
27815
28113
  ]
27816
28114
  }
27817
28115
  ),
27818
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28116
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27819
28117
  Flex,
27820
28118
  {
27821
28119
  $flexDirection: "column",
@@ -27824,7 +28122,7 @@ var Plan2 = ({
27824
28122
  $gap: `${cardPadding}rem`,
27825
28123
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27826
28124
  children: [
27827
- layout.plans.showEntitlements && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28125
+ layout.plans.showEntitlements && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27828
28126
  Flex,
27829
28127
  {
27830
28128
  as: "ul",
@@ -27835,14 +28133,14 @@ var Plan2 = ({
27835
28133
  $margin: 0,
27836
28134
  $listStyle: "none",
27837
28135
  children: [
27838
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: t4("Everything in", {
28136
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { children: t4("Everything in", {
27839
28137
  plan: plans[index - 1].name
27840
28138
  }) }) }),
27841
28139
  (plan.entitlements ?? []).reduce(
27842
28140
  (acc, entitlement, idx) => {
27843
28141
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
27844
28142
  acc.push(
27845
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28143
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27846
28144
  Entitlement2,
27847
28145
  {
27848
28146
  entitlement,
@@ -27860,7 +28158,7 @@ var Plan2 = ({
27860
28158
  },
27861
28159
  []
27862
28160
  ),
27863
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28161
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27864
28162
  ExpandListToggle,
27865
28163
  {
27866
28164
  as: "li",
@@ -27875,7 +28173,7 @@ var Plan2 = ({
27875
28173
  ]
27876
28174
  }
27877
28175
  ),
27878
- isActivePlan ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
28176
+ isActivePlan ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27879
28177
  Flex,
27880
28178
  {
27881
28179
  $justifyContent: "center",
@@ -27883,7 +28181,7 @@ var Plan2 = ({
27883
28181
  $gap: "0.25rem",
27884
28182
  $padding: "0.625rem 0",
27885
28183
  children: [
27886
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28184
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27887
28185
  Icon3,
27888
28186
  {
27889
28187
  name: "check-rounded",
@@ -27891,11 +28189,11 @@ var Plan2 = ({
27891
28189
  color: settings.theme.primary
27892
28190
  }
27893
28191
  ),
27894
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
28192
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
27895
28193
  ]
27896
28194
  }
27897
- ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27898
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
28195
+ ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28196
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
27899
28197
  Button,
27900
28198
  {
27901
28199
  type: "button",
@@ -27933,10 +28231,10 @@ var Plan2 = ({
27933
28231
  }
27934
28232
  },
27935
28233
  $fullWidth: true,
27936
- children: plan.custom ? plan.customPlanConfig?.ctaText ?? t4("Talk to support") : !plan.valid ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { as: Box, $align: "center", children: t4("Over plan limit") }) : t4("Choose plan")
28234
+ children: plan.custom ? plan.customPlanConfig?.ctaText ?? t4("Talk to support") : !plan.valid ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { as: Box, $align: "center", children: t4("Over plan limit") }) : t4("Choose plan")
27937
28235
  }
27938
28236
  ),
27939
- !plan.valid && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(UsageViolationText, { violations: plan.usageViolations })
28237
+ !plan.valid && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UsageViolationText, { violations: plan.usageViolations })
27940
28238
  ] })
27941
28239
  ]
27942
28240
  }
@@ -27947,7 +28245,7 @@ var Plan2 = ({
27947
28245
  };
27948
28246
 
27949
28247
  // src/components/elements/pricing-table/PricingTable.tsx
27950
- var import_jsx_runtime66 = require("react/jsx-runtime");
28248
+ var import_jsx_runtime67 = require("react/jsx-runtime");
27951
28249
  var resolveDesignProps8 = (props) => {
27952
28250
  return {
27953
28251
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -27990,11 +28288,11 @@ var resolveDesignProps8 = (props) => {
27990
28288
  }
27991
28289
  };
27992
28290
  };
27993
- var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref) => {
28291
+ var PricingTable = (0, import_react64.forwardRef)(({ className, ...rest }, ref) => {
27994
28292
  const props = resolveDesignProps8(rest);
27995
28293
  const { t: t4 } = useTranslation();
27996
28294
  const { data, settings, isPending, hydratePublic, currencyFilter } = useEmbed();
27997
- const getCallToActionTarget = (0, import_react63.useCallback)(
28295
+ const getCallToActionTarget = (0, import_react64.useCallback)(
27998
28296
  (url, target) => {
27999
28297
  if (target) {
28000
28298
  return target;
@@ -28012,11 +28310,11 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28012
28310
  },
28013
28311
  []
28014
28312
  );
28015
- const [selectedPeriod, setSelectedPeriod] = (0, import_react63.useState)(
28313
+ const [selectedPeriod, setSelectedPeriod] = (0, import_react64.useState)(
28016
28314
  () => getSubscriptionPeriod(data?.company?.billingSubscription) || data?.company?.plan?.planPeriod || "month"
28017
28315
  );
28018
28316
  const { currencies, invalidFilterEntries } = useAvailableCurrenciesWithInvalid();
28019
- const [selectedCurrency, setSelectedCurrency] = (0, import_react63.useState)(
28317
+ const [selectedCurrency, setSelectedCurrency] = (0, import_react64.useState)(
28020
28318
  () => currencies[0] ?? DEFAULT_CURRENCY
28021
28319
  );
28022
28320
  if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
@@ -28034,25 +28332,25 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28034
28332
  } = useAvailablePlans(selectedPeriod, {
28035
28333
  useSelectedPeriod: showPeriodToggle
28036
28334
  });
28037
- const plans = (0, import_react63.useMemo)(
28335
+ const plans = (0, import_react64.useMemo)(
28038
28336
  () => hasCurrency ? allPlans.filter(
28039
28337
  (plan) => planSupportsCurrency(plan, selectedCurrency)
28040
28338
  ) : allPlans,
28041
28339
  [allPlans, hasCurrency, selectedCurrency]
28042
28340
  );
28043
- const addOns = (0, import_react63.useMemo)(
28341
+ const addOns = (0, import_react64.useMemo)(
28044
28342
  () => hasCurrency ? allAddOns.filter(
28045
28343
  (addOn) => planSupportsCurrency(addOn, selectedCurrency)
28046
28344
  ) : allAddOns,
28047
28345
  [allAddOns, hasCurrency, selectedCurrency]
28048
28346
  );
28049
- (0, import_react63.useEffect)(() => {
28347
+ (0, import_react64.useEffect)(() => {
28050
28348
  if (typeof data?.component === "undefined") {
28051
28349
  hydratePublic();
28052
28350
  }
28053
28351
  }, [data?.component, hydratePublic]);
28054
28352
  if (isPending) {
28055
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28353
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28056
28354
  Flex,
28057
28355
  {
28058
28356
  $width: "100%",
@@ -28060,12 +28358,12 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28060
28358
  $alignItems: "center",
28061
28359
  $justifyContent: "center",
28062
28360
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28063
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
28361
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
28064
28362
  }
28065
28363
  );
28066
28364
  }
28067
28365
  if (hasNoUsableCurrency) {
28068
- 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 }) }) });
28366
+ 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 }) }) });
28069
28367
  }
28070
28368
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28071
28369
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -28073,8 +28371,8 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28073
28371
  rest.callToActionUrl,
28074
28372
  rest.callToActionTarget
28075
28373
  );
28076
- const Wrapper = typeof data?.component === "undefined" ? Container : import_react63.Fragment;
28077
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28374
+ const Wrapper = typeof data?.component === "undefined" ? Container : import_react64.Fragment;
28375
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
28078
28376
  FussyChild,
28079
28377
  {
28080
28378
  ref,
@@ -28084,8 +28382,8 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28084
28382
  $flexDirection: "column",
28085
28383
  $gap: "2rem",
28086
28384
  children: [
28087
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Box, { children: [
28088
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
28385
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Box, { children: [
28386
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
28089
28387
  Flex,
28090
28388
  {
28091
28389
  $flexDirection: "column",
@@ -28100,7 +28398,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28100
28398
  }
28101
28399
  },
28102
28400
  children: [
28103
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28401
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28104
28402
  Text,
28105
28403
  {
28106
28404
  as: "h2",
@@ -28109,8 +28407,8 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28109
28407
  children: props.header.isVisible && props.plans.isVisible && plans.length > 0 && t4("Plans")
28110
28408
  }
28111
28409
  ),
28112
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28113
- showCurrencySelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28410
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28411
+ showCurrencySelector && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28114
28412
  CurrencyToggle,
28115
28413
  {
28116
28414
  currencies,
@@ -28118,7 +28416,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28118
28416
  onSelect: setSelectedCurrency
28119
28417
  }
28120
28418
  ),
28121
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28419
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28122
28420
  PeriodToggle,
28123
28421
  {
28124
28422
  options: periods,
@@ -28135,7 +28433,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28135
28433
  ]
28136
28434
  }
28137
28435
  ),
28138
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28436
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28139
28437
  Box,
28140
28438
  {
28141
28439
  as: "ul",
@@ -28148,7 +28446,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28148
28446
  $listStyle: "none",
28149
28447
  children: plans.map((plan, index, self2) => {
28150
28448
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28151
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28449
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28152
28450
  Plan2,
28153
28451
  {
28154
28452
  plan,
@@ -28170,14 +28468,14 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28170
28468
  }
28171
28469
  )
28172
28470
  ] }),
28173
- /* @__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: [
28174
- props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28471
+ /* @__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: [
28472
+ props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28175
28473
  Flex,
28176
28474
  {
28177
28475
  $justifyContent: "space-between",
28178
28476
  $alignItems: "center",
28179
28477
  $marginBottom: "1rem",
28180
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28478
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28181
28479
  Text,
28182
28480
  {
28183
28481
  as: "h2",
@@ -28188,7 +28486,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28188
28486
  )
28189
28487
  }
28190
28488
  ),
28191
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28489
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28192
28490
  Box,
28193
28491
  {
28194
28492
  as: "ul",
@@ -28200,7 +28498,7 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28200
28498
  $listStyle: "none",
28201
28499
  children: addOns.map((addOn, index) => {
28202
28500
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28203
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
28501
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28204
28502
  AddOn2,
28205
28503
  {
28206
28504
  addOn,
@@ -28227,8 +28525,8 @@ var PricingTable = (0, import_react63.forwardRef)(({ className, ...rest }, ref)
28227
28525
  PricingTable.displayName = "PricingTable";
28228
28526
 
28229
28527
  // src/components/elements/text/Text.tsx
28230
- var import_react64 = require("react");
28231
- var import_jsx_runtime67 = require("react/jsx-runtime");
28528
+ var import_react65 = require("react");
28529
+ var import_jsx_runtime68 = require("react/jsx-runtime");
28232
28530
  var resolveDesignProps9 = (props) => {
28233
28531
  return {
28234
28532
  text: {
@@ -28238,9 +28536,9 @@ var resolveDesignProps9 = (props) => {
28238
28536
  }
28239
28537
  };
28240
28538
  };
28241
- var TextElement = (0, import_react64.forwardRef)(({ children, className, ...rest }, ref) => {
28539
+ var TextElement = (0, import_react65.forwardRef)(({ children, className, ...rest }, ref) => {
28242
28540
  const props = resolveDesignProps9(rest);
28243
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Element, { as: Flex, ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
28541
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Element, { as: Flex, ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28244
28542
  Text,
28245
28543
  {
28246
28544
  display: props.text.fontStyle,
@@ -28253,8 +28551,8 @@ var TextElement = (0, import_react64.forwardRef)(({ children, className, ...rest
28253
28551
  TextElement.displayName = "Text";
28254
28552
 
28255
28553
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
28256
- var import_react65 = require("react");
28257
- var import_jsx_runtime68 = require("react/jsx-runtime");
28554
+ var import_react66 = require("react");
28555
+ var import_jsx_runtime69 = require("react/jsx-runtime");
28258
28556
  var buttonStyles = {
28259
28557
  primary: {
28260
28558
  color: "primary",
@@ -28280,17 +28578,17 @@ var resolveDesignProps10 = (props) => {
28280
28578
  }
28281
28579
  };
28282
28580
  };
28283
- var UnsubscribeButton = (0, import_react65.forwardRef)(({ children, className, ...rest }, ref) => {
28581
+ var UnsubscribeButton = (0, import_react66.forwardRef)(({ children, className, ...rest }, ref) => {
28284
28582
  const props = resolveDesignProps10(rest);
28285
28583
  const { t: t4 } = useTranslation();
28286
28584
  const { data, setLayout } = useEmbed();
28287
- const hasActiveSubscription = (0, import_react65.useMemo)(() => {
28585
+ const hasActiveSubscription = (0, import_react66.useMemo)(() => {
28288
28586
  return data?.subscription && data.subscription.status !== "cancelled" && !data.subscription.cancelAt;
28289
28587
  }, [data?.subscription]);
28290
28588
  if (!hasActiveSubscription) {
28291
28589
  return null;
28292
28590
  }
28293
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28591
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28294
28592
  Element,
28295
28593
  {
28296
28594
  as: Flex,
@@ -28298,7 +28596,7 @@ var UnsubscribeButton = (0, import_react65.forwardRef)(({ children, className, .
28298
28596
  className,
28299
28597
  $flexDirection: "column",
28300
28598
  $gap: "2rem",
28301
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
28599
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28302
28600
  Button,
28303
28601
  {
28304
28602
  type: "button",
@@ -28319,8 +28617,8 @@ var UnsubscribeButton = (0, import_react65.forwardRef)(({ children, className, .
28319
28617
  UnsubscribeButton.displayName = "UnsubscribeButton";
28320
28618
 
28321
28619
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
28322
- var import_react66 = require("react");
28323
- var import_jsx_runtime69 = require("react/jsx-runtime");
28620
+ var import_react67 = require("react");
28621
+ var import_jsx_runtime70 = require("react/jsx-runtime");
28324
28622
  function resolveDesignProps11(props) {
28325
28623
  return {
28326
28624
  header: {
@@ -28339,15 +28637,15 @@ function resolveDesignProps11(props) {
28339
28637
  }
28340
28638
  };
28341
28639
  }
28342
- var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref) => {
28640
+ var UpcomingBill = (0, import_react67.forwardRef)(({ className, ...rest }, ref) => {
28343
28641
  const props = resolveDesignProps11(rest);
28344
28642
  const { t: t4 } = useTranslation();
28345
28643
  const { data, settings, getUpcomingInvoice } = useEmbed();
28346
28644
  const isLightBackground = useIsLightBackground();
28347
- const [isLoading, setIsLoading] = (0, import_react66.useState)(false);
28348
- const [error, setError] = (0, import_react66.useState)();
28349
- const [upcomingInvoice, setUpcomingInvoice] = (0, import_react66.useState)(data?.upcomingInvoice);
28350
- const discounts = (0, import_react66.useMemo)(() => {
28645
+ const [isLoading, setIsLoading] = (0, import_react67.useState)(false);
28646
+ const [error, setError] = (0, import_react67.useState)();
28647
+ const [upcomingInvoice, setUpcomingInvoice] = (0, import_react67.useState)(data?.upcomingInvoice);
28648
+ const discounts = (0, import_react67.useMemo)(() => {
28351
28649
  return (data?.subscription?.discounts || []).filter(
28352
28650
  (discount) => (
28353
28651
  // Only surface discounts that are currently active and actually
@@ -28365,7 +28663,7 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28365
28663
  durationInMonths: discount.durationInMonths ?? void 0
28366
28664
  }));
28367
28665
  }, [data?.subscription?.discounts]);
28368
- const getInvoice = (0, import_react66.useCallback)(async () => {
28666
+ const getInvoice = (0, import_react67.useCallback)(async () => {
28369
28667
  if (data?.component?.id && data?.subscription && !data.subscription.cancelAt) {
28370
28668
  try {
28371
28669
  setError(void 0);
@@ -28381,15 +28679,15 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28381
28679
  }
28382
28680
  }
28383
28681
  }, [data?.component?.id, data?.subscription, getUpcomingInvoice]);
28384
- (0, import_react66.useEffect)(() => {
28682
+ (0, import_react67.useEffect)(() => {
28385
28683
  getInvoice();
28386
28684
  }, [getInvoice]);
28387
- (0, import_react66.useEffect)(() => {
28685
+ (0, import_react67.useEffect)(() => {
28388
28686
  if (data?.upcomingInvoice) {
28389
28687
  setUpcomingInvoice(data.upcomingInvoice);
28390
28688
  }
28391
28689
  }, [data?.upcomingInvoice]);
28392
- const { currency, applied, remaining } = (0, import_react66.useMemo)(() => {
28690
+ const { currency, applied, remaining } = (0, import_react67.useMemo)(() => {
28393
28691
  const currency2 = upcomingInvoice?.currency;
28394
28692
  const startingBalance = upcomingInvoice?.startingBalance ?? 0;
28395
28693
  const endingBalance = upcomingInvoice?.endingBalance ?? 0;
@@ -28408,9 +28706,9 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28408
28706
  if (!data?.subscription || data.subscription.cancelAt) {
28409
28707
  return null;
28410
28708
  }
28411
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Element, { ref, className, children: [
28412
- /* @__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 }) }),
28413
- error ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28709
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Element, { ref, className, children: [
28710
+ /* @__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 }) }),
28711
+ error ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28414
28712
  Flex,
28415
28713
  {
28416
28714
  as: TransitionBox,
@@ -28419,8 +28717,8 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28419
28717
  $alignItems: "center",
28420
28718
  $gap: "1rem",
28421
28719
  children: [
28422
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28423
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28720
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28721
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28424
28722
  Button,
28425
28723
  {
28426
28724
  type: "button",
@@ -28433,28 +28731,28 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28433
28731
  )
28434
28732
  ]
28435
28733
  }
28436
- ) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28437
- props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Text, { display: props.header.fontStyle, children: [
28734
+ ) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28735
+ props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Text, { display: props.header.fontStyle, children: [
28438
28736
  props.header.prefix,
28439
28737
  " ",
28440
28738
  toPrettyDate(upcomingInvoice.dueDate)
28441
28739
  ] }),
28442
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28740
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28443
28741
  Flex,
28444
28742
  {
28445
28743
  $justifyContent: "space-between",
28446
28744
  $alignItems: "start",
28447
28745
  $gap: "1rem",
28448
28746
  children: [
28449
- props.price.isVisible && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28747
+ props.price.isVisible && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28450
28748
  upcomingInvoice.amountDue,
28451
28749
  upcomingInvoice.currency
28452
28750
  ) }),
28453
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28751
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28454
28752
  ]
28455
28753
  }
28456
28754
  ),
28457
- hasApplied && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28755
+ hasApplied && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28458
28756
  Flex,
28459
28757
  {
28460
28758
  as: TransitionBox,
@@ -28462,12 +28760,12 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28462
28760
  $alignItems: "start",
28463
28761
  $gap: "1rem",
28464
28762
  children: [
28465
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28466
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: formatCurrency(-applied, currency) })
28763
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28764
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: formatCurrency(-applied, currency) })
28467
28765
  ]
28468
28766
  }
28469
28767
  ),
28470
- hasBalance && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28768
+ hasBalance && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28471
28769
  Flex,
28472
28770
  {
28473
28771
  as: TransitionBox,
@@ -28475,20 +28773,20 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28475
28773
  $alignItems: "start",
28476
28774
  $gap: "1rem",
28477
28775
  children: [
28478
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28479
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: formatCurrency(remaining, currency) })
28776
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28777
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: formatCurrency(remaining, currency) })
28480
28778
  ]
28481
28779
  }
28482
28780
  ),
28483
- discounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28781
+ discounts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28484
28782
  Flex,
28485
28783
  {
28486
28784
  $justifyContent: "space-between",
28487
28785
  $alignItems: "start",
28488
28786
  $gap: "1rem",
28489
28787
  children: [
28490
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { $weight: 600, children: t4("Discount") }),
28491
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28788
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { $weight: 600, children: t4("Discount") }),
28789
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28492
28790
  Flex,
28493
28791
  {
28494
28792
  $flexDirection: "column",
@@ -28504,13 +28802,13 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28504
28802
  discount?.currency
28505
28803
  )
28506
28804
  });
28507
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
28805
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
28508
28806
  Flex,
28509
28807
  {
28510
28808
  $alignItems: "center",
28511
28809
  $gap: "0.5rem",
28512
28810
  children: [
28513
- discount.customerFacingCode && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28811
+ discount.customerFacingCode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28514
28812
  Flex,
28515
28813
  {
28516
28814
  $alignItems: "center",
@@ -28519,7 +28817,7 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28519
28817
  $borderStyle: "solid",
28520
28818
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
28521
28819
  $borderRadius: "0.3125rem",
28522
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
28820
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
28523
28821
  Text,
28524
28822
  {
28525
28823
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28529,7 +28827,7 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28529
28827
  )
28530
28828
  }
28531
28829
  ),
28532
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28830
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28533
28831
  discount: label,
28534
28832
  count: discount.durationInMonths
28535
28833
  }) : label }) })
@@ -28543,12 +28841,12 @@ var UpcomingBill = (0, import_react66.forwardRef)(({ className, ...rest }, ref)
28543
28841
  ]
28544
28842
  }
28545
28843
  )
28546
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28844
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28547
28845
  ] });
28548
28846
  });
28549
28847
  UpcomingBill.displayName = "UpcomingBill";
28550
28848
 
28551
- // node_modules/.pnpm/pako@3.0.1/node_modules/pako/dist/pako.mjs
28849
+ // node_modules/.pnpm/pako@3.0.2/node_modules/pako/dist/pako.mjs
28552
28850
  var Z_FIXED = 4;
28553
28851
  var Z_BINARY = 0;
28554
28852
  var Z_TEXT = 1;
@@ -29021,7 +29319,7 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
29021
29319
  max_blindex = build_bl_tree(s);
29022
29320
  opt_lenb = s.opt_len + 3 + 7 >>> 3;
29023
29321
  static_lenb = s.static_len + 3 + 7 >>> 3;
29024
- if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
29322
+ if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
29025
29323
  } else opt_lenb = static_lenb = stored_len + 5;
29026
29324
  if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
29027
29325
  else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
@@ -30262,7 +30560,7 @@ var inflate$1 = (strm, flush) => {
30262
30560
  hold += input[next2++] << bits;
30263
30561
  bits += 8;
30264
30562
  }
30265
- if (state.head) state.head.time = hold;
30563
+ if (state.head) state.head.time = hold >>> 0;
30266
30564
  if (state.flags & 512 && state.wrap & 4) {
30267
30565
  hbuf[0] = hold & 255;
30268
30566
  hbuf[1] = hold >>> 8 & 255;
@@ -31179,10 +31477,10 @@ function inflate(input, options = {}) {
31179
31477
  }
31180
31478
 
31181
31479
  // src/components/embed/Embed.tsx
31182
- var import_react68 = require("react");
31480
+ var import_react69 = require("react");
31183
31481
 
31184
31482
  // src/components/embed/renderer.ts
31185
- var import_react67 = require("react");
31483
+ var import_react68 = require("react");
31186
31484
  var components = {
31187
31485
  Root,
31188
31486
  Viewport,
@@ -31246,7 +31544,7 @@ function createRenderer(options) {
31246
31544
  const { className, ...rest } = props;
31247
31545
  const resolvedProps = component === "div" ? rest : props;
31248
31546
  const resolvedChildren = children.map(renderNode);
31249
- return (0, import_react67.createElement)(
31547
+ return (0, import_react68.createElement)(
31250
31548
  component,
31251
31549
  {
31252
31550
  key: index,
@@ -31259,11 +31557,11 @@ function createRenderer(options) {
31259
31557
  }
31260
31558
 
31261
31559
  // src/components/embed/Embed.tsx
31262
- var import_jsx_runtime70 = require("react/jsx-runtime");
31560
+ var import_jsx_runtime71 = require("react/jsx-runtime");
31263
31561
  var renderer = createRenderer();
31264
31562
  var Loading = () => {
31265
31563
  const { settings } = useEmbed();
31266
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
31564
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
31267
31565
  Flex,
31268
31566
  {
31269
31567
  $width: "100%",
@@ -31271,13 +31569,13 @@ var Loading = () => {
31271
31569
  $alignItems: "center",
31272
31570
  $justifyContent: "center",
31273
31571
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
31274
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loader, { $color: settings.theme.primary, $size: "2xl" })
31572
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loader, { $color: settings.theme.primary, $size: "2xl" })
31275
31573
  }
31276
31574
  );
31277
31575
  };
31278
31576
  var Error2 = ({ message }) => {
31279
31577
  const { settings } = useEmbed();
31280
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
31578
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
31281
31579
  Flex,
31282
31580
  {
31283
31581
  $flexDirection: "column",
@@ -31288,14 +31586,14 @@ var Error2 = ({ message }) => {
31288
31586
  $alignItems: "center",
31289
31587
  $justifyContent: "center",
31290
31588
  children: [
31291
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { display: "heading1", children: "Error" }) }),
31292
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Text, { children: message }) })
31589
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { display: "heading1", children: "Error" }) }),
31590
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Text, { children: message }) })
31293
31591
  ]
31294
31592
  }
31295
31593
  );
31296
31594
  };
31297
31595
  var SchematicEmbed = ({ id, accessToken }) => {
31298
- const theme = (0, import_react68.useContext)(nt);
31596
+ const theme = (0, import_react69.useContext)(nt);
31299
31597
  const {
31300
31598
  data,
31301
31599
  error,
@@ -31307,7 +31605,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31307
31605
  setBuilderSettings
31308
31606
  } = useEmbed();
31309
31607
  const compressedAst = data?.component?.ast;
31310
- const { children, parsedSettings, parseError } = (0, import_react68.useMemo)(() => {
31608
+ const { children, parsedSettings, parseError } = (0, import_react69.useMemo)(() => {
31311
31609
  let children2 = null;
31312
31610
  let parsedSettings2 = null;
31313
31611
  let parseError2 = null;
@@ -31339,22 +31637,22 @@ var SchematicEmbed = ({ id, accessToken }) => {
31339
31637
  parseError: parseError2
31340
31638
  };
31341
31639
  }, [compressedAst]);
31342
- (0, import_react68.useEffect)(() => {
31640
+ (0, import_react69.useEffect)(() => {
31343
31641
  if (accessToken) {
31344
31642
  setAccessToken(accessToken);
31345
31643
  }
31346
31644
  }, [accessToken, setAccessToken]);
31347
- (0, import_react68.useEffect)(() => {
31645
+ (0, import_react69.useEffect)(() => {
31348
31646
  if (id && stale) {
31349
31647
  hydrateComponent(id);
31350
31648
  }
31351
31649
  }, [id, hydrateComponent, stale]);
31352
- (0, import_react68.useEffect)(() => {
31650
+ (0, import_react69.useEffect)(() => {
31353
31651
  if (parsedSettings) {
31354
31652
  setBuilderSettings(parsedSettings);
31355
31653
  }
31356
31654
  }, [parsedSettings, setBuilderSettings]);
31357
- (0, import_react68.useEffect)(() => {
31655
+ (0, import_react69.useEffect)(() => {
31358
31656
  if (parseError) {
31359
31657
  setError(parseError);
31360
31658
  }
@@ -31363,13 +31661,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
31363
31661
  return stub();
31364
31662
  }
31365
31663
  if (error) {
31366
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Error2, { message: error.message });
31664
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Error2, { message: error.message });
31367
31665
  }
31368
31666
  if (accessToken?.length === 0) {
31369
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Error2, { message: "Please provide an access token." });
31667
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Error2, { message: "Please provide an access token." });
31370
31668
  }
31371
31669
  if (!accessToken?.startsWith("token_")) {
31372
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
31670
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
31373
31671
  Error2,
31374
31672
  {
31375
31673
  message: 'Invalid access token; your temporary access token will start with "token_".'
@@ -31377,7 +31675,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31377
31675
  );
31378
31676
  }
31379
31677
  if (isPending) {
31380
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loading, {});
31678
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loading, {});
31381
31679
  }
31382
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Loading, {}) });
31680
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Loading, {}) });
31383
31681
  };