@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.
@@ -1717,7 +1717,7 @@ var require_debounce = __commonJS({
1717
1717
  var FUNC_ERROR_TEXT = "Expected a function";
1718
1718
  var nativeMax = Math.max;
1719
1719
  var nativeMin = Math.min;
1720
- function debounce5(func, wait, options) {
1720
+ function debounce6(func, wait, options) {
1721
1721
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
1722
1722
  if (typeof func != "function") {
1723
1723
  throw new TypeError(FUNC_ERROR_TEXT);
@@ -1798,7 +1798,7 @@ var require_debounce = __commonJS({
1798
1798
  debounced.flush = flush;
1799
1799
  return debounced;
1800
1800
  }
1801
- module.exports = debounce5;
1801
+ module.exports = debounce6;
1802
1802
  }
1803
1803
  });
1804
1804
 
@@ -1957,6 +1957,8 @@ var initialContext = {
1957
1957
  getUpcomingInvoice: stub,
1958
1958
  getCustomerBalance: stub,
1959
1959
  listInvoices: stub,
1960
+ getCreditUsageByUser: stub,
1961
+ getFeatureUsageByUser: stub,
1960
1962
  createSetupIntent: stub,
1961
1963
  updatePaymentMethod: stub,
1962
1964
  deletePaymentMethod: stub,
@@ -1981,7 +1983,7 @@ var initialContext = {
1981
1983
  };
1982
1984
  var EmbedContext = createContext(initialContext);
1983
1985
 
1984
- // node_modules/.pnpm/i18next@26.4.1_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
1986
+ // node_modules/.pnpm/i18next@26.4.2_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
1985
1987
  var isString = (obj) => typeof obj === "string";
1986
1988
  var defer = () => {
1987
1989
  let res;
@@ -3299,7 +3301,7 @@ var Interpolator = class {
3299
3301
  interpolationkey: match2[1].trim()
3300
3302
  }), value.trim());
3301
3303
  }
3302
- str = str.replace(match2[0], value);
3304
+ str = str.replace(match2[0], regexSafe(makeString(value)));
3303
3305
  this.regexp.lastIndex = 0;
3304
3306
  }
3305
3307
  return str;
@@ -4257,16 +4259,16 @@ var hasLoadedNamespace = instance.hasLoadedNamespace;
4257
4259
  var loadNamespaces = instance.loadNamespaces;
4258
4260
  var loadLanguages = instance.loadLanguages;
4259
4261
 
4260
- // 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
4262
+ // 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
4261
4263
  import { useContext } from "react";
4262
4264
 
4263
- // 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
4265
+ // 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
4264
4266
  import { Fragment, isValidElement, cloneElement, createElement, Children } from "react";
4265
4267
 
4266
4268
  // node_modules/.pnpm/html-parse-stringify@3.1.0/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
4267
4269
  var import_void_elements = __toESM(require_void_elements());
4268
4270
 
4269
- // 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
4271
+ // 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
4270
4272
  var warn = (i18n, code, msg, rest) => {
4271
4273
  const args = [msg, {
4272
4274
  code,
@@ -4329,7 +4331,7 @@ var hasLoadedNamespace2 = (ns, i18n, options = {}) => {
4329
4331
  var isString2 = (obj) => typeof obj === "string";
4330
4332
  var isObject = (obj) => typeof obj === "object" && obj !== null;
4331
4333
 
4332
- // 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
4334
+ // 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
4333
4335
  var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
4334
4336
  var htmlEntities = {
4335
4337
  "&": "&",
@@ -4356,7 +4358,7 @@ var htmlEntities = {
4356
4358
  var unescapeHtmlEntity = (m2) => htmlEntities[m2];
4357
4359
  var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
4358
4360
 
4359
- // 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
4361
+ // 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
4360
4362
  var defaultOptions = {
4361
4363
  bindI18n: "languageChanged",
4362
4364
  bindI18nStore: "",
@@ -4375,17 +4377,17 @@ var setDefaults = (options = {}) => {
4375
4377
  };
4376
4378
  var getDefaults = () => defaultOptions;
4377
4379
 
4378
- // 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
4380
+ // 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
4379
4381
  var i18nInstance;
4380
4382
  var setI18n = (instance2) => {
4381
4383
  i18nInstance = instance2;
4382
4384
  };
4383
4385
  var getI18n = () => i18nInstance;
4384
4386
 
4385
- // 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
4387
+ // 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
4386
4388
  import { createContext as createContext2 } from "react";
4387
4389
 
4388
- // 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
4390
+ // 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
4389
4391
  var initReactI18next = {
4390
4392
  type: "3rdParty",
4391
4393
  init(instance2) {
@@ -4394,7 +4396,7 @@ var initReactI18next = {
4394
4396
  }
4395
4397
  };
4396
4398
 
4397
- // 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
4399
+ // 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
4398
4400
  var I18nContext = createContext2();
4399
4401
  var ReportNamespaces = class {
4400
4402
  constructor() {
@@ -4410,13 +4412,13 @@ var ReportNamespaces = class {
4410
4412
  }
4411
4413
  };
4412
4414
 
4413
- // 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
4415
+ // 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
4414
4416
  import { useContext as useContext2 } from "react";
4415
4417
 
4416
- // 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
4418
+ // 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
4417
4419
  import React2 from "react";
4418
4420
 
4419
- // 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
4421
+ // 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
4420
4422
  var TranslationParserError = class _TranslationParserError extends Error {
4421
4423
  constructor(message, position2, translationString) {
4422
4424
  super(message);
@@ -4429,7 +4431,7 @@ var TranslationParserError = class _TranslationParserError extends Error {
4429
4431
  }
4430
4432
  };
4431
4433
 
4432
- // 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
4434
+ // 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
4433
4435
  var commonEntities = {
4434
4436
  " ": "\xA0",
4435
4437
  "&": "&",
@@ -4642,7 +4644,7 @@ var commonEntities = {
4642
4644
  var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
4643
4645
  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)));
4644
4646
 
4645
- // 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
4647
+ // 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
4646
4648
  var tokenize = (translation) => {
4647
4649
  const tokens = [];
4648
4650
  let position2 = 0;
@@ -4695,7 +4697,7 @@ var tokenize = (translation) => {
4695
4697
  return tokens;
4696
4698
  };
4697
4699
 
4698
- // 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
4700
+ // 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
4699
4701
  import React from "react";
4700
4702
  var renderDeclarationNode = (declaration2, children, childDeclarations) => {
4701
4703
  const {
@@ -4800,7 +4802,7 @@ var renderTranslation = (translation, declarations = []) => {
4800
4802
  return result;
4801
4803
  };
4802
4804
 
4803
- // 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
4805
+ // 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
4804
4806
  function IcuTransWithoutContext({
4805
4807
  i18nKey,
4806
4808
  defaultTranslation,
@@ -4847,7 +4849,7 @@ function IcuTransWithoutContext({
4847
4849
  }
4848
4850
  IcuTransWithoutContext.displayName = "IcuTransWithoutContext";
4849
4851
 
4850
- // 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
4852
+ // 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
4851
4853
  function IcuTrans({
4852
4854
  i18nKey,
4853
4855
  defaultTranslation,
@@ -4875,7 +4877,7 @@ function IcuTrans({
4875
4877
  }
4876
4878
  IcuTrans.displayName = "IcuTrans";
4877
4879
 
4878
- // 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
4880
+ // 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
4879
4881
  import { useState, useEffect, useContext as useContext3, useRef, useCallback } from "react";
4880
4882
  var usePrevious = (value, ignore) => {
4881
4883
  const ref = useRef();
@@ -4982,16 +4984,16 @@ var useTranslation = (ns, props = {}) => {
4982
4984
  });
4983
4985
  };
4984
4986
 
4985
- // 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
4987
+ // 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
4986
4988
  import { createElement as createElement2, forwardRef as forwardRefReact } from "react";
4987
4989
 
4988
- // 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
4990
+ // 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
4989
4991
  import { createElement as createElement3, useMemo } from "react";
4990
4992
 
4991
- // 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
4993
+ // 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
4992
4994
  import { createElement as createElement4 } from "react";
4993
4995
 
4994
- // 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
4996
+ // 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
4995
4997
  import { useContext as useContext4 } from "react";
4996
4998
 
4997
4999
  // src/localization/en.json
@@ -5248,6 +5250,18 @@ var en_default = {
5248
5250
  "month, billed yearly": "month, billed yearly",
5249
5251
  "month, billed quarterly": "month, billed quarterly",
5250
5252
  purchased: "purchased {{date}}",
5253
+ "Usage by user": "Usage by user",
5254
+ "X used by your team this period": "{{amount}} used by your team this period",
5255
+ "Show all X users_one": "Show all {{count}} user",
5256
+ "Show all X users_other": "Show all {{count}} users",
5257
+ "Show top X users_one": "Show top {{count}} user",
5258
+ "Show top X users_other": "Show top {{count}} users",
5259
+ "Show all": "Show all",
5260
+ "Show fewer": "Show fewer",
5261
+ Unattributed: "Unattributed",
5262
+ "There was a problem retrieving usage by user.": "There was a problem retrieving usage by user.",
5263
+ "plus X more_one": "plus {{count}} more",
5264
+ "plus X more_other": "plus {{count}} more",
5251
5265
  usage: {
5252
5266
  limited: "{{amount}} of {{allocation}} used",
5253
5267
  unlimited: "{{amount}} used"
@@ -5267,7 +5281,7 @@ use(initReactI18next).init({
5267
5281
  }
5268
5282
  });
5269
5283
 
5270
- // 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
5284
+ // 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
5271
5285
  import { jsx as _jsx } from "react/jsx-runtime";
5272
5286
 
5273
5287
  // node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
@@ -5288,7 +5302,7 @@ var isPropValid = /* @__PURE__ */ memoize(
5288
5302
  /* Z+1 */
5289
5303
  );
5290
5304
 
5291
- // 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.esm.js
5305
+ // 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.esm.js
5292
5306
  import t3, { createElement as n } from "react";
5293
5307
 
5294
5308
  // node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js
@@ -5910,7 +5924,7 @@ function prefixer(element, index, children, callback) {
5910
5924
  }
5911
5925
  }
5912
5926
 
5913
- // 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.esm.js
5927
+ // 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.esm.js
5914
5928
  var r;
5915
5929
  var i;
5916
5930
  var l = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
@@ -6811,7 +6825,7 @@ var Xt = `__sc-${l}__`;
6811
6825
  var Kt = `:not(style[${l}])`;
6812
6826
  var Qt = `style[${l}]`;
6813
6827
 
6814
- // 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
6828
+ // 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
6815
6829
  var iconsList = {
6816
6830
  "workos": 61697,
6817
6831
  "wind": 61698,
@@ -6948,7 +6962,7 @@ var FONT_FACE_RULE = `@font-face {
6948
6962
  src: url(data:font/truetype;charset=utf-8;base64,A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Y2hldnJvbi1yaWdodAxjaGV2cm9uLWxlZnQMY2hldnJvbi1kb3duBWNoZWNrDWNoZWNrLXJvdW5kZWQHY2FzaGFwcAZidXJnZXIEYnVsYgdib29sZWFuCmJvb2xlYW4tb24IYm9va21hcmsFYm9hcmQEYmVsbARiYW5rCWJhY2tzcGFjZQVhdXRoMAxhcnJvdy11cHdhcmQIYXJyb3ctdXALYXJyb3ctcmlnaHQKYXJyb3ctbGVmdAphcnJvdy1kb3duDGFycm93LWN1cnZlZA9hcnJvdy1hbmFseXRpY3MIYXBwbGVwYXkEYW1leAlhbWF6b25wYXkFYWxhcm0AAA==) format("truetype");
6949
6963
  }`;
6950
6964
 
6951
- // 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
6965
+ // 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
6952
6966
  var IconStyles = Vt`
6953
6967
  ${FONT_FACE_RULE};
6954
6968
 
@@ -6972,13 +6986,13 @@ var StyledIcon = Tt.i`
6972
6986
  }
6973
6987
  `;
6974
6988
 
6975
- // 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
6989
+ // 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
6976
6990
  var Icon = ({ name, className = "", ...rest }) => {
6977
6991
  return _jsx(StyledIcon, { className: `icon icon-${name} ${className}`, "$name": name, ...rest });
6978
6992
  };
6979
6993
 
6980
6994
  // src/context/EmbedProvider.tsx
6981
- var import_debounce = __toESM(require_debounce());
6995
+ var import_debounce2 = __toESM(require_debounce());
6982
6996
  var import_merge3 = __toESM(require_merge());
6983
6997
  import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
6984
6998
 
@@ -7567,6 +7581,7 @@ var BillingCreditGrantReason = {
7567
7581
  BillingCreditAutoTopup: "billing_credit_auto_topup",
7568
7582
  Free: "free",
7569
7583
  Plan: "plan",
7584
+ PostpaidOverdraft: "postpaid_overdraft",
7570
7585
  Purchased: "purchased",
7571
7586
  Rollover: "rollover"
7572
7587
  };
@@ -9264,6 +9279,8 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9264
9279
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["metered_yearly_price"]),
9265
9280
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
9266
9281
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
9282
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON(json["overage_billing_cadence"]),
9283
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON(json["overage_invoice_anchor"]),
9267
9284
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
9268
9285
  planId: json["plan_id"],
9269
9286
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
@@ -11828,17 +11845,17 @@ var JSONApiResponse2 = class {
11828
11845
 
11829
11846
  // src/api/componentspublic/models/BillingArrearsAnchor.ts
11830
11847
  function BillingArrearsAnchorFromJSON2(json) {
11831
- return BillingArrearsAnchorFromJSONTyped5(json, false);
11848
+ return BillingArrearsAnchorFromJSONTyped6(json, false);
11832
11849
  }
11833
- function BillingArrearsAnchorFromJSONTyped5(json, ignoreDiscriminator) {
11850
+ function BillingArrearsAnchorFromJSONTyped6(json, ignoreDiscriminator) {
11834
11851
  return json;
11835
11852
  }
11836
11853
 
11837
11854
  // src/api/componentspublic/models/BillingArrearsCadence.ts
11838
11855
  function BillingArrearsCadenceFromJSON2(json) {
11839
- return BillingArrearsCadenceFromJSONTyped6(json, false);
11856
+ return BillingArrearsCadenceFromJSONTyped7(json, false);
11840
11857
  }
11841
- function BillingArrearsCadenceFromJSONTyped6(json, ignoreDiscriminator) {
11858
+ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11842
11859
  return json;
11843
11860
  }
11844
11861
 
@@ -12781,6 +12798,8 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
12781
12798
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["metered_yearly_price"]),
12782
12799
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON2(json["metric_period"]),
12783
12800
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON2(json["metric_period_month_reset"]),
12801
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON2(json["overage_billing_cadence"]),
12802
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON2(json["overage_invoice_anchor"]),
12784
12803
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
12785
12804
  planId: json["plan_id"],
12786
12805
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
@@ -13247,6 +13266,19 @@ function calculateTieredCost(quantity, priceTiers, tiersMode) {
13247
13266
  }
13248
13267
  return cost;
13249
13268
  }
13269
+ function calculateQuantityCost(billingPrice, quantity) {
13270
+ if (!billingPrice) {
13271
+ return 0;
13272
+ }
13273
+ if (isTieredPrice(billingPrice)) {
13274
+ return calculateTieredCost(
13275
+ quantity,
13276
+ billingPrice.priceTier,
13277
+ billingPrice.tiersMode
13278
+ );
13279
+ }
13280
+ return quantity * billingPrice.price;
13281
+ }
13250
13282
  function getEntitlementCost(entitlement, period = "month", currency) {
13251
13283
  const resolvedPeriod = period ?? "month";
13252
13284
  const source = currency ? getEntitlementPrice(entitlement, resolvedPeriod, currency) : selectPriceForPeriod(
@@ -14311,6 +14343,20 @@ function modifyDate(date, days) {
14311
14343
  return copy3;
14312
14344
  }
14313
14345
 
14346
+ // src/utils/debounce.ts
14347
+ var import_debounce = __toESM(require_debounce());
14348
+ function debounceByKey(fn, wait, settings) {
14349
+ const debouncedByKey = /* @__PURE__ */ new Map();
14350
+ return (key, ...args) => {
14351
+ let debounced = debouncedByKey.get(key);
14352
+ if (!debounced) {
14353
+ debounced = (0, import_debounce.default)(fn, wait, settings);
14354
+ debouncedByKey.set(key, debounced);
14355
+ }
14356
+ return debounced(key, ...args);
14357
+ };
14358
+ }
14359
+
14314
14360
  // src/utils/string.ts
14315
14361
  var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
14316
14362
  "BIF",
@@ -15314,7 +15360,7 @@ var reducer = (state, action) => {
15314
15360
  // src/context/EmbedProvider.tsx
15315
15361
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
15316
15362
  var getCustomHeaders = (sessionId) => ({
15317
- "X-Schematic-Components-Version": "2.25.1",
15363
+ "X-Schematic-Components-Version": "3.0.0",
15318
15364
  "X-Schematic-Session-ID": sessionId
15319
15365
  });
15320
15366
  var normalizeCurrencyFilter = (filter2) => {
@@ -15425,7 +15471,7 @@ var EmbedProvider = ({
15425
15471
  }
15426
15472
  }, [publicApi]);
15427
15473
  const debouncedHydratePublic = useMemo2(
15428
- () => (0, import_debounce.default)(
15474
+ () => (0, import_debounce2.default)(
15429
15475
  hydratePublic,
15430
15476
  FETCH_DEBOUNCE_TIMEOUT,
15431
15477
  LEADING_DEBOUNCE_SETTINGS
@@ -15451,7 +15497,7 @@ var EmbedProvider = ({
15451
15497
  }
15452
15498
  }, [checkoutApi]);
15453
15499
  const debouncedHydrate = useMemo2(
15454
- () => (0, import_debounce.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15500
+ () => (0, import_debounce2.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15455
15501
  [hydrate]
15456
15502
  );
15457
15503
  const hydrateComponent = useCallback2(
@@ -15478,7 +15524,7 @@ var EmbedProvider = ({
15478
15524
  [checkoutApi]
15479
15525
  );
15480
15526
  const debouncedHydrateComponent = useMemo2(
15481
- () => (0, import_debounce.default)(
15527
+ () => (0, import_debounce2.default)(
15482
15528
  hydrateComponent,
15483
15529
  FETCH_DEBOUNCE_TIMEOUT,
15484
15530
  LEADING_DEBOUNCE_SETTINGS
@@ -15502,7 +15548,7 @@ var EmbedProvider = ({
15502
15548
  }
15503
15549
  }, []);
15504
15550
  const debouncedHydrateExternal = useMemo2(
15505
- () => (0, import_debounce.default)(
15551
+ () => (0, import_debounce2.default)(
15506
15552
  hydrateExternal,
15507
15553
  FETCH_DEBOUNCE_TIMEOUT,
15508
15554
  LEADING_DEBOUNCE_SETTINGS
@@ -15513,7 +15559,7 @@ var EmbedProvider = ({
15513
15559
  return checkoutApi?.createSetupIntent();
15514
15560
  }, [checkoutApi]);
15515
15561
  const debouncedCreateSetupIntent = useMemo2(
15516
- () => (0, import_debounce.default)(
15562
+ () => (0, import_debounce2.default)(
15517
15563
  createSetupIntent,
15518
15564
  FETCH_DEBOUNCE_TIMEOUT,
15519
15565
  LEADING_DEBOUNCE_SETTINGS
@@ -15536,7 +15582,7 @@ var EmbedProvider = ({
15536
15582
  [checkoutApi]
15537
15583
  );
15538
15584
  const debouncedUpdatePaymentMethod = useMemo2(
15539
- () => (0, import_debounce.default)(
15585
+ () => (0, import_debounce2.default)(
15540
15586
  updatePaymentMethod,
15541
15587
  FETCH_DEBOUNCE_TIMEOUT,
15542
15588
  LEADING_DEBOUNCE_SETTINGS
@@ -15559,7 +15605,7 @@ var EmbedProvider = ({
15559
15605
  [checkoutApi]
15560
15606
  );
15561
15607
  const debouncedDeletePaymentMethod = useMemo2(
15562
- () => (0, import_debounce.default)(
15608
+ () => (0, import_debounce2.default)(
15563
15609
  deletePaymentMethod,
15564
15610
  FETCH_DEBOUNCE_TIMEOUT,
15565
15611
  LEADING_DEBOUNCE_SETTINGS
@@ -15582,7 +15628,7 @@ var EmbedProvider = ({
15582
15628
  [checkoutApi]
15583
15629
  );
15584
15630
  const debouncedCheckout = useMemo2(
15585
- () => (0, import_debounce.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15631
+ () => (0, import_debounce2.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15586
15632
  [checkout]
15587
15633
  );
15588
15634
  const previewCheckout = useCallback2(
@@ -15602,7 +15648,7 @@ var EmbedProvider = ({
15602
15648
  return response;
15603
15649
  }, [checkoutApi]);
15604
15650
  const debouncedUnsubscribe = useMemo2(
15605
- () => (0, import_debounce.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15651
+ () => (0, import_debounce2.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15606
15652
  [unsubscribe]
15607
15653
  );
15608
15654
  const updateCustomFieldValues = useCallback2(
@@ -15646,7 +15692,7 @@ var EmbedProvider = ({
15646
15692
  [checkoutApi]
15647
15693
  );
15648
15694
  const debouncedGetUpcomingInvoice = useMemo2(
15649
- () => (0, import_debounce.default)(
15695
+ () => (0, import_debounce2.default)(
15650
15696
  getUpcomingInvoice,
15651
15697
  FETCH_DEBOUNCE_TIMEOUT,
15652
15698
  LEADING_DEBOUNCE_SETTINGS
@@ -15657,7 +15703,7 @@ var EmbedProvider = ({
15657
15703
  return checkoutApi?.fetchCustomerBalance();
15658
15704
  }, [checkoutApi]);
15659
15705
  const debouncedGetCustomerBalance = useMemo2(
15660
- () => (0, import_debounce.default)(
15706
+ () => (0, import_debounce2.default)(
15661
15707
  getCustomerBalance,
15662
15708
  FETCH_DEBOUNCE_TIMEOUT,
15663
15709
  LEADING_DEBOUNCE_SETTINGS
@@ -15668,9 +15714,37 @@ var EmbedProvider = ({
15668
15714
  return checkoutApi?.listInvoices();
15669
15715
  }, [checkoutApi]);
15670
15716
  const debouncedListInvoices = useMemo2(
15671
- () => (0, import_debounce.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15717
+ () => (0, import_debounce2.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15672
15718
  [listInvoices]
15673
15719
  );
15720
+ const getCreditUsageByUser = useCallback2(
15721
+ async (billingCreditId, limit) => {
15722
+ return checkoutApi?.getCreditUsageByUser({ billingCreditId, limit });
15723
+ },
15724
+ [checkoutApi]
15725
+ );
15726
+ const debouncedGetCreditUsageByUser = useMemo2(
15727
+ () => debounceByKey(
15728
+ getCreditUsageByUser,
15729
+ FETCH_DEBOUNCE_TIMEOUT,
15730
+ LEADING_DEBOUNCE_SETTINGS
15731
+ ),
15732
+ [getCreditUsageByUser]
15733
+ );
15734
+ const getFeatureUsageByUser = useCallback2(
15735
+ async (featureId, limit) => {
15736
+ return checkoutApi?.getFeatureUsageByUser({ featureId, limit });
15737
+ },
15738
+ [checkoutApi]
15739
+ );
15740
+ const debouncedGetFeatureUsageByUser = useMemo2(
15741
+ () => debounceByKey(
15742
+ getFeatureUsageByUser,
15743
+ FETCH_DEBOUNCE_TIMEOUT,
15744
+ LEADING_DEBOUNCE_SETTINGS
15745
+ ),
15746
+ [getFeatureUsageByUser]
15747
+ );
15674
15748
  const setError = useCallback2(
15675
15749
  (error) => {
15676
15750
  debug(error.message);
@@ -15836,6 +15910,8 @@ var EmbedProvider = ({
15836
15910
  getUpcomingInvoice: debouncedGetUpcomingInvoice,
15837
15911
  getCustomerBalance: debouncedGetCustomerBalance,
15838
15912
  listInvoices: debouncedListInvoices,
15913
+ getCreditUsageByUser: debouncedGetCreditUsageByUser,
15914
+ getFeatureUsageByUser: debouncedGetFeatureUsageByUser,
15839
15915
  finishCheckout,
15840
15916
  setError,
15841
15917
  setAccessToken,
@@ -17234,7 +17310,7 @@ var Toggle = Tt.input.attrs({ type: "checkbox" })`
17234
17310
  `;
17235
17311
 
17236
17312
  // src/components/ui/tooltip/Tooltip.tsx
17237
- var import_debounce2 = __toESM(require_debounce());
17313
+ var import_debounce3 = __toESM(require_debounce());
17238
17314
  import {
17239
17315
  cloneElement as cloneElement2,
17240
17316
  useCallback as useCallback7,
@@ -17424,7 +17500,7 @@ var Tooltip = ({
17424
17500
  }, [portal, position2]);
17425
17501
  useLayoutEffect3(() => {
17426
17502
  updateCoords();
17427
- const handleResize = (0, import_debounce2.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17503
+ const handleResize = (0, import_debounce3.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17428
17504
  window.addEventListener("resize", handleResize);
17429
17505
  window.addEventListener("scroll", handleResize, true);
17430
17506
  return () => {
@@ -17581,7 +17657,7 @@ var Root = forwardRef6(
17581
17657
  Root.displayName = "Root";
17582
17658
 
17583
17659
  // src/components/layout/viewport/Viewport.tsx
17584
- var import_debounce4 = __toESM(require_debounce());
17660
+ var import_debounce5 = __toESM(require_debounce());
17585
17661
  import { forwardRef as forwardRef8, useLayoutEffect as useLayoutEffect8, useRef as useRef11, useState as useState16 } from "react";
17586
17662
  import { createPortal as createPortal3 } from "react-dom";
17587
17663
 
@@ -18529,11 +18605,10 @@ var Quantity = ({
18529
18605
  children: [
18530
18606
  /* @__PURE__ */ jsx20(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs11(Text, { children: [
18531
18607
  formatCurrency(
18532
- tiered && priceTiers ? calculateTieredCost(
18533
- entitlement.quantity,
18534
- priceTiers,
18535
- tiersMode
18536
- ) : (price ?? 0) * entitlement.quantity,
18608
+ calculateQuantityCost(
18609
+ entitlementBillingPrice,
18610
+ entitlement.quantity
18611
+ ),
18537
18612
  currency
18538
18613
  ),
18539
18614
  /* @__PURE__ */ jsxs11("sub", { children: [
@@ -19410,7 +19485,7 @@ var Checkout = ({
19410
19485
  };
19411
19486
 
19412
19487
  // src/components/shared/checkout-dialog/CheckoutDialog.tsx
19413
- var import_debounce3 = __toESM(require_debounce());
19488
+ var import_debounce4 = __toESM(require_debounce());
19414
19489
  import {
19415
19490
  useCallback as useCallback8,
19416
19491
  useEffect as useEffect4,
@@ -20219,7 +20294,7 @@ var CheckoutDialog = ({ top }) => {
20219
20294
  }, [handlePreviewCheckout]);
20220
20295
  const debouncedPreviewCheckoutRef = useRef6(null);
20221
20296
  useEffect4(() => {
20222
- const debounced = (0, import_debounce3.default)(
20297
+ const debounced = (0, import_debounce4.default)(
20223
20298
  (updates) => handlePreviewCheckoutRef.current(updates),
20224
20299
  FETCH_DEBOUNCE_TIMEOUT,
20225
20300
  TRAILING_DEBOUNCE_SETTINGS
@@ -22342,6 +22417,29 @@ var EntitlementRow = (props) => {
22342
22417
  tiersMode
22343
22418
  } = entitlementPrice || {};
22344
22419
  const tiered = priceBehavior === EntitlementPriceBehavior.PayInAdvance && isTieredPrice(entitlementPrice);
22420
+ const tierLabel = /* @__PURE__ */ jsxs30(
22421
+ Text,
22422
+ {
22423
+ style: { opacity: 0.54 },
22424
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22425
+ $color: settings.theme.typography.text.color,
22426
+ children: [
22427
+ t4("Tier-based"),
22428
+ /* @__PURE__ */ jsx41(
22429
+ PricingTiersTooltip,
22430
+ {
22431
+ portal,
22432
+ feature,
22433
+ period: planPeriod,
22434
+ currency,
22435
+ priceTiers,
22436
+ tiersMode: tiersMode ?? void 0,
22437
+ position: "left"
22438
+ }
22439
+ )
22440
+ ]
22441
+ }
22442
+ );
22345
22443
  return /* @__PURE__ */ jsxs30(Fragment15, { children: [
22346
22444
  /* @__PURE__ */ jsx41(Box, { children: /* @__PURE__ */ jsx41(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment15, { children: [
22347
22445
  quantity,
@@ -22352,13 +22450,24 @@ var EntitlementRow = (props) => {
22352
22450
  " ",
22353
22451
  getFeatureName(feature, softLimit)
22354
22452
  ] }) : feature.name }) }),
22355
- /* @__PURE__ */ jsx41(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered ? /* @__PURE__ */ jsxs30(Text, { children: [
22356
- formatCurrency((price ?? 0) * quantity, currency),
22357
- /* @__PURE__ */ jsxs30("sub", { children: [
22358
- "/",
22359
- shortenPeriod(planPeriod)
22453
+ /* @__PURE__ */ jsx41(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22454
+ // A tiered scheme still resolves to a fixed amount at the chosen
22455
+ // quantity, so the row shows it alongside the tier breakdown
22456
+ // rather than leaving the charge unpriced.
22457
+ /* @__PURE__ */ jsxs30(Flex, { $flexDirection: "column", $gap: "0.25rem", $alignItems: "end", children: [
22458
+ /* @__PURE__ */ jsxs30(Text, { children: [
22459
+ formatCurrency(
22460
+ calculateQuantityCost(entitlementPrice, quantity),
22461
+ currency
22462
+ ),
22463
+ /* @__PURE__ */ jsxs30("sub", { children: [
22464
+ "/",
22465
+ shortenPeriod(planPeriod)
22466
+ ] })
22467
+ ] }),
22468
+ tiered && tierLabel
22360
22469
  ] })
22361
- ] }) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs30(Text, { children: [
22470
+ ) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs30(Text, { children: [
22362
22471
  priceBehavior === EntitlementPriceBehavior.Overage && /* @__PURE__ */ jsxs30(Fragment15, { children: [
22363
22472
  t4("then"),
22364
22473
  " "
@@ -22376,29 +22485,7 @@ var EntitlementRow = (props) => {
22376
22485
  shortenPeriod(planPeriod)
22377
22486
  ] })
22378
22487
  ] })
22379
- ] }) : (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs30(
22380
- Text,
22381
- {
22382
- style: { opacity: 0.54 },
22383
- $size: 0.875 * settings.theme.typography.text.fontSize,
22384
- $color: settings.theme.typography.text.color,
22385
- children: [
22386
- t4("Tier-based"),
22387
- /* @__PURE__ */ jsx41(
22388
- PricingTiersTooltip,
22389
- {
22390
- portal,
22391
- feature,
22392
- period: planPeriod,
22393
- currency,
22394
- priceTiers,
22395
- tiersMode: tiersMode ?? void 0,
22396
- position: "left"
22397
- }
22398
- )
22399
- ]
22400
- }
22401
- ) })
22488
+ ] }) : priceBehavior === EntitlementPriceBehavior.Tier && tierLabel })
22402
22489
  ] });
22403
22490
  }
22404
22491
  };
@@ -22594,12 +22681,18 @@ var SubscriptionSidebar = forwardRef7(
22594
22681
  }, 0);
22595
22682
  total += addOnCost;
22596
22683
  const payInAdvanceCost = payInAdvanceEntitlements.reduce(
22597
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22684
+ (sum, entitlement) => sum + calculateQuantityCost(
22685
+ getEntitlementPrice(entitlement, planPeriod, currency),
22686
+ entitlement.quantity
22687
+ ),
22598
22688
  0
22599
22689
  );
22600
22690
  total += payInAdvanceCost;
22601
22691
  const addOnPayInAdvanceCost = addOnPayInAdvanceEntitlements.reduce(
22602
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22692
+ (sum, entitlement) => sum + calculateQuantityCost(
22693
+ getEntitlementPrice(entitlement, planPeriod, currency),
22694
+ entitlement.quantity
22695
+ ),
22603
22696
  0
22604
22697
  );
22605
22698
  total += addOnPayInAdvanceCost;
@@ -24062,7 +24155,7 @@ var Viewport = forwardRef8(
24062
24155
  const [top, setTop] = useState16(0);
24063
24156
  useLayoutEffect8(() => {
24064
24157
  const element = portalRef.current;
24065
- const setModalY = (0, import_debounce4.default)(() => {
24158
+ const setModalY = (0, import_debounce5.default)(() => {
24066
24159
  const value = Math.abs(
24067
24160
  (element === document.body ? window.scrollY : element.scrollTop) ?? 0
24068
24161
  );
@@ -24776,7 +24869,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
24776
24869
  Invoices.displayName = "Invoices";
24777
24870
 
24778
24871
  // src/components/elements/metered-features/MeteredFeatures.tsx
24779
- import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo27, useRef as useRef12, useState as useState18 } from "react";
24872
+ import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo28, useRef as useRef12, useState as useState19 } from "react";
24780
24873
 
24781
24874
  // src/components/elements/metered-features/Meter.tsx
24782
24875
  import { jsx as jsx53 } from "react/jsx-runtime";
@@ -24904,6 +24997,190 @@ var PriceDetails = ({
24904
24997
  );
24905
24998
  };
24906
24999
 
25000
+ // src/components/elements/metered-features/UsageByUser.tsx
25001
+ import { useEffect as useEffect7, useMemo as useMemo27, useState as useState18 } from "react";
25002
+ import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
25003
+ var COLLAPSED_COUNT = 3;
25004
+ var EXPANDED_COUNT = 20;
25005
+ var toCreditSection = (data) => ({
25006
+ entries: data.entries.map((entry) => ({
25007
+ id: entry.userId,
25008
+ // An entry with no hydrated user record still has an id worth showing —
25009
+ // a blank row identifies nobody.
25010
+ label: entry.user?.name || entry.userId || "",
25011
+ amount: entry.creditsUsed
25012
+ })),
25013
+ total: data.total,
25014
+ totalUsers: data.totalUsers,
25015
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.creditsUsed } : null
25016
+ });
25017
+ var toFeatureSection = (data) => ({
25018
+ entries: data.rows.map((row) => ({
25019
+ id: row.userId,
25020
+ label: row.user?.name || row.userId || "",
25021
+ amount: row.value
25022
+ })),
25023
+ total: data.total,
25024
+ totalUsers: data.totalUsers,
25025
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.value } : null
25026
+ });
25027
+ var mutedColor = (isLight) => isLight ? "hsla(0, 0%, 0%, 0.46)" : "hsla(0, 0%, 100%, 0.46)";
25028
+ var InitialAvatar = ({ label }) => {
25029
+ const { settings } = useEmbed();
25030
+ const isLightBackground = useIsLightBackground();
25031
+ const initial = (label.trim()[0] ?? "?").toUpperCase();
25032
+ return /* @__PURE__ */ jsx55(
25033
+ Flex,
25034
+ {
25035
+ $alignItems: "center",
25036
+ $justifyContent: "center",
25037
+ $width: "1.75rem",
25038
+ $height: "1.75rem",
25039
+ $flexShrink: 0,
25040
+ $borderRadius: "9999px",
25041
+ $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
25042
+ children: /* @__PURE__ */ jsx55(
25043
+ Text,
25044
+ {
25045
+ $size: 11,
25046
+ $weight: 500,
25047
+ $color: settings.theme.typography.text.color,
25048
+ children: initial
25049
+ }
25050
+ )
25051
+ }
25052
+ );
25053
+ };
25054
+ var UsageByUser = ({ source, unit }) => {
25055
+ const { t: t4 } = useTranslation();
25056
+ const isLightBackground = useIsLightBackground();
25057
+ const { getCreditUsageByUser, getFeatureUsageByUser } = useEmbed();
25058
+ const [expanded, setExpanded] = useState18(false);
25059
+ const [result, setResult] = useState18();
25060
+ const [attempt, setAttempt] = useState18(0);
25061
+ const { kind, id } = source;
25062
+ const sourceKey = `${kind}:${id}`;
25063
+ const current = result?.sourceKey === sourceKey ? result : void 0;
25064
+ useEffect7(() => {
25065
+ let active = true;
25066
+ const apply = (next2) => {
25067
+ if (active) {
25068
+ setResult(next2);
25069
+ }
25070
+ };
25071
+ const receive = (section) => {
25072
+ if (section) {
25073
+ apply({ sourceKey, section });
25074
+ }
25075
+ };
25076
+ const fail = (err) => apply({ sourceKey, error: isError(err) ? err : ERROR_UNKNOWN });
25077
+ if (kind === "credit") {
25078
+ getCreditUsageByUser(id, EXPANDED_COUNT)?.then(
25079
+ (response) => receive(response && toCreditSection(response.data))
25080
+ ).catch(fail);
25081
+ } else {
25082
+ getFeatureUsageByUser(id, EXPANDED_COUNT)?.then(
25083
+ (response) => receive(response && toFeatureSection(response.data))
25084
+ ).catch(fail);
25085
+ }
25086
+ return () => {
25087
+ active = false;
25088
+ };
25089
+ }, [
25090
+ attempt,
25091
+ getCreditUsageByUser,
25092
+ getFeatureUsageByUser,
25093
+ id,
25094
+ kind,
25095
+ sourceKey
25096
+ ]);
25097
+ const entries = current?.section?.entries;
25098
+ const attributed = useMemo27(
25099
+ () => [...entries ?? []].sort((a2, b2) => b2.amount - a2.amount),
25100
+ [entries]
25101
+ );
25102
+ const error = current?.error;
25103
+ const total = current?.section?.total ?? 0;
25104
+ const totalUsers = current?.section?.totalUsers ?? 0;
25105
+ const unattributed = current?.section?.unattributed;
25106
+ const formatAmount = (amount) => `${formatNumber(amount)} ${getFeatureName(unit, amount)}`;
25107
+ if (error) {
25108
+ return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25109
+ /* @__PURE__ */ jsx55(Text, { display: "heading4", children: t4("Usage by user") }),
25110
+ /* @__PURE__ */ jsx55(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving usage by user.") }),
25111
+ /* @__PURE__ */ jsx55(
25112
+ Button,
25113
+ {
25114
+ type: "button",
25115
+ onClick: () => setAttempt((prev2) => prev2 + 1),
25116
+ $size: "sm",
25117
+ $variant: "ghost",
25118
+ $fullWidth: false,
25119
+ children: t4("Try again")
25120
+ }
25121
+ )
25122
+ ] });
25123
+ }
25124
+ if (attributed.length === 0 && !unattributed) {
25125
+ return null;
25126
+ }
25127
+ const visible = attributed.slice(
25128
+ 0,
25129
+ expanded ? EXPANDED_COUNT : COLLAPSED_COUNT
25130
+ );
25131
+ const remaining = Math.max(totalUsers - visible.length, 0);
25132
+ const expandedUserCount = Math.min(totalUsers, EXPANDED_COUNT);
25133
+ const hiddenUsers = Math.max(
25134
+ expandedUserCount - Math.min(attributed.length, COLLAPSED_COUNT),
25135
+ 0
25136
+ );
25137
+ const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25138
+ 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");
25139
+ const row = (key, label, amount, muted) => /* @__PURE__ */ jsxs41(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25140
+ /* @__PURE__ */ jsx55(InitialAvatar, { label: muted ? "?" : label }),
25141
+ /* @__PURE__ */ jsx55(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx55(
25142
+ Text,
25143
+ {
25144
+ display: "text",
25145
+ $color: muted ? mutedColor(isLightBackground) : void 0,
25146
+ children: label
25147
+ }
25148
+ ) }),
25149
+ /* @__PURE__ */ jsx55(
25150
+ Text,
25151
+ {
25152
+ display: "text",
25153
+ $align: "right",
25154
+ $color: mutedColor(isLightBackground),
25155
+ children: formatAmount(amount)
25156
+ }
25157
+ )
25158
+ ] }, key);
25159
+ return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25160
+ /* @__PURE__ */ jsx55(Text, { display: "heading4", children: t4("Usage by user") }),
25161
+ /* @__PURE__ */ jsx55(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx55(Text, { display: "text", $color: mutedColor(isLightBackground), children: t4("X used by your team this period", {
25162
+ amount: formatAmount(total)
25163
+ }) }) }),
25164
+ visible.map(
25165
+ (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25166
+ ),
25167
+ expanded && unattributed && row("unattributed", t4("Unattributed"), unattributed.amount, true),
25168
+ expanded && remaining > 0 && /* @__PURE__ */ jsx55(Box, { $marginTop: "0.25rem", children: /* @__PURE__ */ jsx55(Text, { display: "text", $color: mutedColor(isLightBackground), children: t4("plus X more", { count: remaining }) }) }),
25169
+ shouldShowToggle && /* @__PURE__ */ jsx55(
25170
+ ExpandListToggle,
25171
+ {
25172
+ isExpanded: expanded,
25173
+ onToggle: () => setExpanded((prev2) => !prev2),
25174
+ expandLabel,
25175
+ collapseLabel: t4("Show fewer"),
25176
+ iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)",
25177
+ $marginTop: "0.25rem"
25178
+ }
25179
+ )
25180
+ ] });
25181
+ };
25182
+ UsageByUser.displayName = "UsageByUser";
25183
+
24907
25184
  // src/components/elements/metered-features/styles.ts
24908
25185
  var Container2 = Tt.div`
24909
25186
  display: flex;
@@ -24922,7 +25199,7 @@ var Container2 = Tt.div`
24922
25199
  `;
24923
25200
 
24924
25201
  // src/components/elements/metered-features/MeteredFeatures.tsx
24925
- import { Fragment as Fragment23, jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
25202
+ import { Fragment as Fragment23, jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
24926
25203
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24927
25204
  const { t: t4 } = useTranslation();
24928
25205
  const { data } = useEmbed();
@@ -24959,9 +25236,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24959
25236
  })
24960
25237
  );
24961
25238
  }
24962
- return /* @__PURE__ */ jsxs41(Text, { display: fontStyle, children: [
25239
+ return /* @__PURE__ */ jsxs42(Text, { display: fontStyle, children: [
24963
25240
  acc.join(" \u2022 "),
24964
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx55(
25241
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx56(
24965
25242
  HardLimitTooltip,
24966
25243
  {
24967
25244
  feature: entitlement.feature,
@@ -24991,6 +25268,9 @@ function resolveDesignProps4(props) {
24991
25268
  isVisible: props.usage?.isVisible ?? true,
24992
25269
  fontStyle: props.usage?.fontStyle ?? "heading5"
24993
25270
  },
25271
+ usageByUser: {
25272
+ isVisible: props.usageByUser?.isVisible ?? true
25273
+ },
24994
25274
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
24995
25275
  visibleFeatures: props.visibleFeatures
24996
25276
  };
@@ -25003,7 +25283,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25003
25283
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
25004
25284
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
25005
25285
  const isLightBackground = useIsLightBackground();
25006
- const meteredFeatures = useMemo27(() => {
25286
+ const meteredFeatures = useMemo28(() => {
25007
25287
  const orderedFeatureUsage = props.visibleFeatures?.reduce(
25008
25288
  (acc, id) => {
25009
25289
  const mappedFeatureUsage = data?.featureUsage?.features.find(
@@ -25020,7 +25300,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25020
25300
  ({ feature }) => feature?.featureType === FeatureType.Event || feature?.featureType === FeatureType.Trait
25021
25301
  );
25022
25302
  }, [props.visibleFeatures, data?.featureUsage?.features]);
25023
- const creditGroups = useMemo27(
25303
+ const creditGroups = useMemo28(
25024
25304
  () => withEmptyPlanCreditBalances(
25025
25305
  aggregateActiveGrantsByCredit(data?.creditGrants || []),
25026
25306
  listPlanCredits(
@@ -25031,7 +25311,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25031
25311
  ),
25032
25312
  [data?.creditGrants, data?.featureUsage?.features, data?.company]
25033
25313
  );
25034
- const planCreditCompositions = useMemo27(
25314
+ const planCreditCompositions = useMemo28(
25035
25315
  () => groupPlanCreditGrants(data?.company?.plan?.includedCreditGrants ?? []),
25036
25316
  [data?.company?.plan?.includedCreditGrants]
25037
25317
  );
@@ -25045,14 +25325,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25045
25325
  },
25046
25326
  [data?.featureUsage?.features]
25047
25327
  );
25048
- const purchasableCreditIds = useMemo27(
25328
+ const purchasableCreditIds = useMemo28(
25049
25329
  () => getPurchasableCreditIds(data?.creditBundles, data?.company?.plan?.id),
25050
25330
  [data?.creditBundles, data?.company?.plan?.id]
25051
25331
  );
25052
- const [expandedCreditIds, setExpandedCreditIds] = useState18(
25332
+ const [expandedCreditIds, setExpandedCreditIds] = useState19(
25053
25333
  () => /* @__PURE__ */ new Set()
25054
25334
  );
25055
- const [fullLedgerCreditIds, setFullLedgerCreditIds] = useState18(
25335
+ const [fullLedgerCreditIds, setFullLedgerCreditIds] = useState19(
25056
25336
  () => /* @__PURE__ */ new Set()
25057
25337
  );
25058
25338
  const toggleFullLedger = useCallback14((id) => {
@@ -25092,7 +25372,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25092
25372
  const period = getSubscriptionPeriod(data?.company?.billingSubscription) ?? (typeof data?.company?.plan?.planPeriod === "string" ? data.company?.plan?.planPeriod : void 0);
25093
25373
  const canCheckout = data?.capabilities?.checkout ?? false;
25094
25374
  const showCredits = data?.displaySettings?.showCredits ?? true;
25095
- return /* @__PURE__ */ jsxs41(Container2, { ref, className, children: [
25375
+ return /* @__PURE__ */ jsxs42(Container2, { ref, className, children: [
25096
25376
  meteredFeatures.reduce((acc, entitlement, index) => {
25097
25377
  if (!entitlement.feature) {
25098
25378
  return acc;
@@ -25103,9 +25383,9 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25103
25383
  });
25104
25384
  const { limit } = usageDetails;
25105
25385
  acc.push(
25106
- /* @__PURE__ */ jsxs41(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25107
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1.5rem", children: [
25108
- props.icon.isVisible && /* @__PURE__ */ jsx55(
25386
+ /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25387
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25388
+ props.icon.isVisible && /* @__PURE__ */ jsx56(
25109
25389
  Icon3,
25110
25390
  {
25111
25391
  name: feature.icon,
@@ -25114,8 +25394,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25114
25394
  rounded: true
25115
25395
  }
25116
25396
  ),
25117
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25118
- /* @__PURE__ */ jsxs41(
25397
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25398
+ /* @__PURE__ */ jsxs42(
25119
25399
  Flex,
25120
25400
  {
25121
25401
  ref: (el) => {
@@ -25126,31 +25406,31 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25126
25406
  $flexWrap: "wrap",
25127
25407
  $gap: "1rem",
25128
25408
  children: [
25129
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25130
- /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.header.fontStyle, children: feature.name }) }),
25131
- props.description.isVisible && feature.description && /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.description.fontStyle, children: feature.description }) })
25409
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25410
+ /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: feature.name }) }),
25411
+ props.description.isVisible && feature.description && /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.description.fontStyle, children: feature.description }) })
25132
25412
  ] }),
25133
- /* @__PURE__ */ jsxs41(
25413
+ /* @__PURE__ */ jsxs42(
25134
25414
  Box,
25135
25415
  {
25136
25416
  $flexBasis: "min-content",
25137
25417
  $flexGrow: 1,
25138
25418
  $textAlign: shouldWrapChildren ? "left" : "right",
25139
25419
  children: [
25140
- props.usage.isVisible && /* @__PURE__ */ jsx55(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx55(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs41(Fragment23, { children: [
25141
- typeof limit === "number" && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25420
+ props.usage.isVisible && /* @__PURE__ */ jsx56(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx56(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment23, { children: [
25421
+ typeof limit === "number" && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25142
25422
  formatNumber(limit),
25143
25423
  " "
25144
25424
  ] }),
25145
25425
  getFeatureName(feature, limit)
25146
- ] }) : typeof usage === "number" && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25426
+ ] }) : typeof usage === "number" && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25147
25427
  formatNumber(usage),
25148
25428
  " ",
25149
25429
  getFeatureName(feature, usage),
25150
25430
  " ",
25151
25431
  t4("used")
25152
25432
  ] }) }) }),
25153
- props.allocation.isVisible && /* @__PURE__ */ jsx55(
25433
+ props.allocation.isVisible && /* @__PURE__ */ jsx56(
25154
25434
  Limit,
25155
25435
  {
25156
25436
  entitlement,
@@ -25164,8 +25444,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25164
25444
  ]
25165
25445
  }
25166
25446
  ),
25167
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx55(Meter, { entitlement }),
25168
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx55(
25447
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx56(Meter, { entitlement }),
25448
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx56(
25169
25449
  Button,
25170
25450
  {
25171
25451
  type: "button",
@@ -25178,13 +25458,24 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25178
25458
  )
25179
25459
  ] })
25180
25460
  ] }),
25181
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx55(
25461
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx56(
25182
25462
  PriceDetails,
25183
25463
  {
25184
25464
  entitlement,
25185
25465
  usageDetails,
25186
25466
  period
25187
25467
  }
25468
+ ),
25469
+ props.usageByUser.isVisible && feature.featureType === FeatureType.Event && // The per-user amounts come from the feature usage endpoint, so
25470
+ // they are denominated in the feature's own unit — the same one
25471
+ // the usage line above uses. A credit-burndown feature's credit
25472
+ // spend is broken down separately, under its credit.
25473
+ /* @__PURE__ */ jsx56(
25474
+ UsageByUser,
25475
+ {
25476
+ source: { kind: "feature", id: feature.id },
25477
+ unit: feature
25478
+ }
25188
25479
  )
25189
25480
  ] }, index)
25190
25481
  );
@@ -25198,9 +25489,9 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25198
25489
  const visibleGrants = showAllGrants ? credit.grants : credit.grants.slice(0, VISIBLE_CREDIT_COUNT);
25199
25490
  const paddingX = settings.theme.card.padding / TEXT_BASE_SIZE;
25200
25491
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25201
- return /* @__PURE__ */ jsxs41(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25202
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1.5rem", children: [
25203
- props.icon.isVisible && /* @__PURE__ */ jsx55(
25492
+ return /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25493
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25494
+ props.icon.isVisible && /* @__PURE__ */ jsx56(
25204
25495
  Icon3,
25205
25496
  {
25206
25497
  name: credit.icon,
@@ -25209,13 +25500,13 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25209
25500
  rounded: true
25210
25501
  }
25211
25502
  ),
25212
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25213
- /* @__PURE__ */ jsx55(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25214
- /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.header.fontStyle, children: credit.name }) }),
25215
- props.description.isVisible && credit.description && /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.description.fontStyle, children: credit.description }) })
25503
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25504
+ /* @__PURE__ */ jsx56(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25505
+ /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: credit.name }) }),
25506
+ props.description.isVisible && credit.description && /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.description.fontStyle, children: credit.description }) })
25216
25507
  ] }) }),
25217
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1rem", $alignItems: "center", children: [
25218
- props.usage.isVisible && /* @__PURE__ */ jsx55(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx55(Text, { display: props.usage.fontStyle, children: t4("X units remaining", {
25508
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1rem", $alignItems: "center", children: [
25509
+ props.usage.isVisible && /* @__PURE__ */ jsx56(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx56(Text, { display: props.usage.fontStyle, children: t4("X units remaining", {
25219
25510
  // Balances burn at rates with up to 10 decimal
25220
25511
  // places, so a small remainder must not round to 0.
25221
25512
  amount: formatNumber(credit.total.remaining, {
@@ -25226,7 +25517,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25226
25517
  credit.total.remaining
25227
25518
  )
25228
25519
  }) }) }),
25229
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx55(
25520
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx56(
25230
25521
  Button,
25231
25522
  {
25232
25523
  type: "button",
@@ -25279,7 +25570,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25279
25570
  const renewalDate = data?.upcomingInvoice?.dueDate;
25280
25571
  return (
25281
25572
  // Pulled up against the balance line despite the column's 2rem gap
25282
- /* @__PURE__ */ jsx55(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs41(
25573
+ /* @__PURE__ */ jsx56(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
25283
25574
  Text,
25284
25575
  {
25285
25576
  style: { opacity: 0.54 },
@@ -25292,7 +25583,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25292
25583
  period: shortenPeriod(composition.period),
25293
25584
  composition: ` \u2014 ${parts.join(" + ")}`
25294
25585
  }),
25295
- renewalDate && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25586
+ renewalDate && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25296
25587
  " ",
25297
25588
  t4("Renews on the day", {
25298
25589
  day: formatOrdinal(renewalDate.getDate())
@@ -25305,12 +25596,12 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25305
25596
  })()
25306
25597
  ] })
25307
25598
  ] }),
25308
- hasGrants && /* @__PURE__ */ jsx55(
25599
+ hasGrants && /* @__PURE__ */ jsx56(
25309
25600
  Box,
25310
25601
  {
25311
25602
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
25312
25603
  $margin: `0 0 0 -${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
25313
- children: /* @__PURE__ */ jsxs41(
25604
+ children: /* @__PURE__ */ jsxs42(
25314
25605
  TransitionBox,
25315
25606
  {
25316
25607
  $backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.0375)" : "hsla(0, 0%, 100%, 0.075)",
@@ -25318,22 +25609,22 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25318
25609
  children: [
25319
25610
  visibleGrants.map((grant, index2) => {
25320
25611
  const padding = getRowPadding(index2);
25321
- return /* @__PURE__ */ jsx55(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs41(Fragment23, { children: [
25322
- /* @__PURE__ */ jsx55(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx55(Text, { children: t4("X items included in plan", {
25612
+ return /* @__PURE__ */ jsx56(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment23, { children: [
25613
+ /* @__PURE__ */ jsx56(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx56(Text, { children: t4("X items included in plan", {
25323
25614
  amount: grant.quantity,
25324
25615
  item: getFeatureName(
25325
25616
  credit,
25326
25617
  grant.quantity
25327
25618
  )
25328
25619
  }) }) }),
25329
- /* @__PURE__ */ jsx55(
25620
+ /* @__PURE__ */ jsx56(
25330
25621
  Box,
25331
25622
  {
25332
25623
  $display: "table-cell",
25333
25624
  $padding: padding,
25334
25625
  $textAlign: "right",
25335
25626
  $whiteSpace: "nowrap",
25336
- children: grant.expiresAt && /* @__PURE__ */ jsx55(Text, { children: t4("Resets", {
25627
+ children: grant.expiresAt && /* @__PURE__ */ jsx56(Text, { children: t4("Resets", {
25337
25628
  date: toPrettyDate(
25338
25629
  modifyDate(grant.expiresAt, 1),
25339
25630
  { month: "short" }
@@ -25341,15 +25632,15 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25341
25632
  }) })
25342
25633
  }
25343
25634
  )
25344
- ] }) : /* @__PURE__ */ jsxs41(Fragment23, { children: [
25345
- /* @__PURE__ */ jsx55(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx55(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ jsx55(Fragment23, { children: t4("X item bundle", {
25635
+ ] }) : /* @__PURE__ */ jsxs42(Fragment23, { children: [
25636
+ /* @__PURE__ */ jsx56(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx56(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ jsx56(Fragment23, { children: t4("X item bundle", {
25346
25637
  amount: grant.quantity,
25347
25638
  item: getFeatureName(credit, 1),
25348
25639
  createdAt: toPrettyDate(
25349
25640
  grant.createdAt,
25350
25641
  { month: "short" }
25351
25642
  )
25352
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx55(Fragment23, { children: t4("X item auto-topup", {
25643
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx56(Fragment23, { children: t4("X item auto-topup", {
25353
25644
  amount: grant.quantity,
25354
25645
  item: getFeatureName(
25355
25646
  credit,
@@ -25359,7 +25650,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25359
25650
  grant.createdAt,
25360
25651
  { month: "short" }
25361
25652
  )
25362
- }) }) : /* @__PURE__ */ jsx55(Fragment23, { children: t4("X item grant", {
25653
+ }) }) : /* @__PURE__ */ jsx56(Fragment23, { children: t4("X item grant", {
25363
25654
  amount: grant.quantity,
25364
25655
  item: getFeatureName(
25365
25656
  credit,
@@ -25370,14 +25661,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25370
25661
  { month: "short" }
25371
25662
  )
25372
25663
  }) }) }) }),
25373
- /* @__PURE__ */ jsx55(
25664
+ /* @__PURE__ */ jsx56(
25374
25665
  Box,
25375
25666
  {
25376
25667
  $display: "table-cell",
25377
25668
  $padding: padding,
25378
25669
  $textAlign: "right",
25379
25670
  $whiteSpace: "nowrap",
25380
- children: grant.expiresAt && /* @__PURE__ */ jsx55(Text, { children: t4("Expires", {
25671
+ children: grant.expiresAt && /* @__PURE__ */ jsx56(Text, { children: t4("Expires", {
25381
25672
  date: toPrettyDate(
25382
25673
  modifyDate(grant.expiresAt, 1),
25383
25674
  { month: "short" }
@@ -25387,8 +25678,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25387
25678
  )
25388
25679
  ] }) }, grant.id);
25389
25680
  }),
25390
- canExpandLedger && /* @__PURE__ */ jsxs41(Box, { $display: "table-row", children: [
25391
- /* @__PURE__ */ jsx55(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx55(
25681
+ canExpandLedger && /* @__PURE__ */ jsxs42(Box, { $display: "table-row", children: [
25682
+ /* @__PURE__ */ jsx56(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx56(
25392
25683
  ExpandListToggle,
25393
25684
  {
25394
25685
  isExpanded: showAllGrants,
@@ -25397,7 +25688,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25397
25688
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25398
25689
  }
25399
25690
  ) }),
25400
- /* @__PURE__ */ jsx55(
25691
+ /* @__PURE__ */ jsx56(
25401
25692
  Box,
25402
25693
  {
25403
25694
  $display: "table-cell",
@@ -25410,7 +25701,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25410
25701
  )
25411
25702
  }
25412
25703
  ),
25413
- hasGrants && /* @__PURE__ */ jsx55(
25704
+ hasGrants && /* @__PURE__ */ jsx56(
25414
25705
  ExpandListToggle,
25415
25706
  {
25416
25707
  isExpanded,
@@ -25419,6 +25710,13 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25419
25710
  collapseLabel: t4("Hide balance details"),
25420
25711
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25421
25712
  }
25713
+ ),
25714
+ props.usageByUser.isVisible && /* @__PURE__ */ jsx56(
25715
+ UsageByUser,
25716
+ {
25717
+ source: { kind: "credit", id: credit.id },
25718
+ unit: credit
25719
+ }
25422
25720
  )
25423
25721
  ] }, index);
25424
25722
  })
@@ -25427,11 +25725,11 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25427
25725
  MeteredFeatures.displayName = "MeteredFeatures";
25428
25726
 
25429
25727
  // src/components/elements/payment-method/PaymentMethod.tsx
25430
- import { forwardRef as forwardRef13, useMemo as useMemo29 } from "react";
25728
+ import { forwardRef as forwardRef13, useMemo as useMemo30 } from "react";
25431
25729
 
25432
25730
  // src/components/elements/payment-method/PaymentMethodElement.tsx
25433
- import { useMemo as useMemo28 } from "react";
25434
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
25731
+ import { useMemo as useMemo29 } from "react";
25732
+ import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
25435
25733
  var PaymentElement2 = ({
25436
25734
  iconName,
25437
25735
  iconTitle,
@@ -25439,8 +25737,8 @@ var PaymentElement2 = ({
25439
25737
  paymentLast4
25440
25738
  }) => {
25441
25739
  const { settings } = useEmbed();
25442
- return /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25443
- iconName && /* @__PURE__ */ jsx56(
25740
+ return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25741
+ iconName && /* @__PURE__ */ jsx57(
25444
25742
  Icon3,
25445
25743
  {
25446
25744
  name: iconName,
@@ -25448,15 +25746,15 @@ var PaymentElement2 = ({
25448
25746
  color: settings.theme.typography.text.color
25449
25747
  }
25450
25748
  ),
25451
- (label || paymentLast4) && /* @__PURE__ */ jsxs42(Box, { $flexGrow: 1, children: [
25452
- label && /* @__PURE__ */ jsx56(Text, { children: label }),
25749
+ (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
25750
+ label && /* @__PURE__ */ jsx57(Text, { children: label }),
25453
25751
  " ",
25454
- paymentLast4 && /* @__PURE__ */ jsx56(Text, { children: paymentLast4 })
25752
+ paymentLast4 && /* @__PURE__ */ jsx57(Text, { children: paymentLast4 })
25455
25753
  ] })
25456
25754
  ] });
25457
25755
  };
25458
25756
  var EmptyPaymentElement = () => {
25459
- return /* @__PURE__ */ jsx56(Text, { children: /* @__PURE__ */ jsx56(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ jsx56(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx56(Box, { $lineHeight: 1, children: t("No payment method added yet") }) }) }) });
25757
+ return /* @__PURE__ */ jsx57(Text, { children: /* @__PURE__ */ jsx57(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ jsx57(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx57(Box, { $lineHeight: 1, children: t("No payment method added yet") }) }) }) });
25460
25758
  };
25461
25759
  var getPaymentMethodData = ({
25462
25760
  accountLast4,
@@ -25536,12 +25834,12 @@ var PaymentMethodElement = ({
25536
25834
  const isLightBackground = useIsLightBackground();
25537
25835
  const sizeFactor = size === "lg" ? 1.5 : size === "md" ? 1 : 0.5;
25538
25836
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
25539
- return /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25540
- props.header.isVisible && /* @__PURE__ */ jsxs42(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25541
- /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25542
- props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ jsx56(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t4("Expires in X months", { months: monthsToExpiration }) : t4("Expired") })
25837
+ return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25838
+ props.header.isVisible && /* @__PURE__ */ jsxs43(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25839
+ /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25840
+ props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ jsx57(Text, { $size: 14, $color: "#DB6769", children: monthsToExpiration > 0 ? t4("Expires in X months", { months: monthsToExpiration }) : t4("Expired") })
25543
25841
  ] }),
25544
- /* @__PURE__ */ jsxs42(
25842
+ /* @__PURE__ */ jsxs43(
25545
25843
  Flex,
25546
25844
  {
25547
25845
  $justifyContent: "space-between",
@@ -25550,8 +25848,8 @@ var PaymentMethodElement = ({
25550
25848
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
25551
25849
  $borderRadius: "9999px",
25552
25850
  children: [
25553
- paymentMethod ? /* @__PURE__ */ jsx56(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx56(EmptyPaymentElement, {}),
25554
- onRemove && /* @__PURE__ */ jsx56(
25851
+ paymentMethod ? /* @__PURE__ */ jsx57(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx57(EmptyPaymentElement, {}),
25852
+ onRemove && /* @__PURE__ */ jsx57(
25555
25853
  Text,
25556
25854
  {
25557
25855
  onClick: onRemove,
@@ -25561,7 +25859,7 @@ var PaymentMethodElement = ({
25561
25859
  children: t4("Remove")
25562
25860
  }
25563
25861
  ),
25564
- props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx56(
25862
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx57(
25565
25863
  Text,
25566
25864
  {
25567
25865
  onClick: onEdit,
@@ -25574,8 +25872,8 @@ var PaymentMethodElement = ({
25574
25872
  ]
25575
25873
  }
25576
25874
  ),
25577
- hasCustomFields && /* @__PURE__ */ jsx56(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
25578
- /* @__PURE__ */ jsx56(
25875
+ hasCustomFields && /* @__PURE__ */ jsx57(Flex, { $flexDirection: "column", $gap: "0.75rem", $marginTop: "0.5rem", children: customCheckoutFields.map((field) => /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "0.125rem", children: [
25876
+ /* @__PURE__ */ jsx57(
25579
25877
  Text,
25580
25878
  {
25581
25879
  $size: 12,
@@ -25583,7 +25881,7 @@ var PaymentMethodElement = ({
25583
25881
  children: field.name
25584
25882
  }
25585
25883
  ),
25586
- /* @__PURE__ */ jsx56(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx56(
25884
+ /* @__PURE__ */ jsx57(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx57(
25587
25885
  "span",
25588
25886
  {
25589
25887
  style: {
@@ -25604,7 +25902,7 @@ var PaymentListElement = ({
25604
25902
  const { settings } = useEmbed();
25605
25903
  const isLightBackground = useIsLightBackground();
25606
25904
  const { iconName, iconTitle, label, paymentLast4 } = getPaymentMethodData(paymentMethod);
25607
- const expirationDate = useMemo28(() => {
25905
+ const expirationDate = useMemo29(() => {
25608
25906
  const { cardExpMonth, cardExpYear } = paymentMethod;
25609
25907
  if (!cardExpMonth || !cardExpYear) {
25610
25908
  return;
@@ -25615,7 +25913,7 @@ var PaymentListElement = ({
25615
25913
  }
25616
25914
  return `${cardExpMonth}/${formatedYear}`;
25617
25915
  }, [paymentMethod]);
25618
- return /* @__PURE__ */ jsxs42(
25916
+ return /* @__PURE__ */ jsxs43(
25619
25917
  Flex,
25620
25918
  {
25621
25919
  $flexDirection: "row",
@@ -25627,7 +25925,7 @@ var PaymentListElement = ({
25627
25925
  $borderStyle: "solid",
25628
25926
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
25629
25927
  children: [
25630
- iconName && /* @__PURE__ */ jsx56(
25928
+ iconName && /* @__PURE__ */ jsx57(
25631
25929
  Icon3,
25632
25930
  {
25633
25931
  name: iconName,
@@ -25635,20 +25933,20 @@ var PaymentListElement = ({
25635
25933
  color: settings.theme.typography.text.color
25636
25934
  }
25637
25935
  ),
25638
- (label || paymentLast4) && /* @__PURE__ */ jsxs42(Box, { $flexGrow: 1, children: [
25639
- label && /* @__PURE__ */ jsx56(Text, { children: label }),
25936
+ (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
25937
+ label && /* @__PURE__ */ jsx57(Text, { children: label }),
25640
25938
  " ",
25641
- paymentLast4 && /* @__PURE__ */ jsx56(Text, { children: paymentLast4 })
25939
+ paymentLast4 && /* @__PURE__ */ jsx57(Text, { children: paymentLast4 })
25642
25940
  ] }),
25643
- expirationDate && /* @__PURE__ */ jsx56(
25941
+ expirationDate && /* @__PURE__ */ jsx57(
25644
25942
  Box,
25645
25943
  {
25646
25944
  $flexGrow: 1,
25647
25945
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
25648
- children: /* @__PURE__ */ jsx56(Text, { children: t("Expires", { date: expirationDate }) })
25946
+ children: /* @__PURE__ */ jsx57(Text, { children: t("Expires", { date: expirationDate }) })
25649
25947
  }
25650
25948
  ),
25651
- /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(
25949
+ /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(
25652
25950
  Text,
25653
25951
  {
25654
25952
  onClick: () => {
@@ -25661,7 +25959,7 @@ var PaymentListElement = ({
25661
25959
  children: t("Set default")
25662
25960
  }
25663
25961
  ) }),
25664
- /* @__PURE__ */ jsx56(
25962
+ /* @__PURE__ */ jsx57(
25665
25963
  Icon3,
25666
25964
  {
25667
25965
  tabIndex: 0,
@@ -25683,7 +25981,7 @@ var PaymentListElement = ({
25683
25981
  };
25684
25982
 
25685
25983
  // src/components/elements/payment-method/PaymentMethod.tsx
25686
- import { jsx as jsx57 } from "react/jsx-runtime";
25984
+ import { jsx as jsx58 } from "react/jsx-runtime";
25687
25985
  var resolveDesignProps5 = (props) => {
25688
25986
  return {
25689
25987
  header: {
@@ -25699,7 +25997,7 @@ var resolveDesignProps5 = (props) => {
25699
25997
  var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
25700
25998
  const props = resolveDesignProps5(rest);
25701
25999
  const { data, setLayout } = useEmbed();
25702
- const { paymentMethod, monthsToExpiration } = useMemo29(() => {
26000
+ const { paymentMethod, monthsToExpiration } = useMemo30(() => {
25703
26001
  const paymentMethod2 = data?.subscription?.paymentMethod || data?.company?.defaultPaymentMethod;
25704
26002
  let monthsToExpiration2;
25705
26003
  if (typeof paymentMethod2?.cardExpYear === "number" && typeof paymentMethod2?.cardExpMonth === "number") {
@@ -25718,7 +26016,7 @@ var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = tru
25718
26016
  monthsToExpiration: monthsToExpiration2
25719
26017
  };
25720
26018
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
25721
- return /* @__PURE__ */ jsx57(Element, { ref, className, children: /* @__PURE__ */ jsx57(
26019
+ return /* @__PURE__ */ jsx58(Element, { ref, className, children: /* @__PURE__ */ jsx58(
25722
26020
  PaymentMethodElement,
25723
26021
  {
25724
26022
  customCheckoutFields: data?.customCheckoutFields,
@@ -25734,7 +26032,7 @@ PaymentMethod.displayName = "PaymentMethod";
25734
26032
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25735
26033
  import { Elements } from "@stripe/react-stripe-js";
25736
26034
 
25737
- // node_modules/.pnpm/@stripe+stripe-js@9.15.0/node_modules/@stripe/stripe-js/dist/index.mjs
26035
+ // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
25738
26036
  function _typeof(obj) {
25739
26037
  "@babel/helpers - typeof";
25740
26038
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -25788,7 +26086,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
25788
26086
  }
25789
26087
  stripe._registerWrapper({
25790
26088
  name: "stripe-js",
25791
- version: "9.15.0",
26089
+ version: "9.16.0",
25792
26090
  startTime
25793
26091
  });
25794
26092
  };
@@ -25866,7 +26164,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
25866
26164
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
25867
26165
  var expectedVersion = RELEASE_TRAIN;
25868
26166
  if (isTestKey && version !== expectedVersion) {
25869
- 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"));
26167
+ 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"));
25870
26168
  }
25871
26169
  var stripe = maybeStripe.apply(void 0, args);
25872
26170
  registerWrapper(stripe, startTime);
@@ -25903,8 +26201,8 @@ var loadStripe = function loadStripe2() {
25903
26201
  };
25904
26202
 
25905
26203
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25906
- import { useCallback as useCallback15, useEffect as useEffect7, useMemo as useMemo30, useState as useState19 } from "react";
25907
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
26204
+ import { useCallback as useCallback15, useEffect as useEffect8, useMemo as useMemo31, useState as useState20 } from "react";
26205
+ import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
25908
26206
  var resolveDesignProps6 = () => {
25909
26207
  return {
25910
26208
  header: {
@@ -25932,7 +26230,7 @@ var PaymentMethodDetails = ({
25932
26230
  updatePaymentMethod,
25933
26231
  deletePaymentMethod
25934
26232
  } = useEmbed();
25935
- const { defaultPaymentMethod, paymentMethods, subscription } = useMemo30(() => {
26233
+ const { defaultPaymentMethod, paymentMethods, subscription } = useMemo31(() => {
25936
26234
  return {
25937
26235
  defaultPaymentMethod: data?.company?.defaultPaymentMethod,
25938
26236
  paymentMethods: data?.company?.paymentMethods || [],
@@ -25945,13 +26243,13 @@ var PaymentMethodDetails = ({
25945
26243
  ]);
25946
26244
  const isLightBackground = useIsLightBackground();
25947
26245
  const initialPaymentMethod = subscription?.paymentMethod || defaultPaymentMethod;
25948
- const [isLoading, setIsLoading] = useState19(!initialPaymentMethod);
25949
- const [error, setError] = useState19();
25950
- const [showPaymentForm, setShowPaymentForm] = useState19(false);
25951
- const [stripe, setStripe] = useState19(null);
25952
- const [setupIntent, setSetupIntent] = useState19();
25953
- const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = useState19(false);
25954
- const [currentPaymentMethod, setCurrentPaymentMethod] = useState19(initialPaymentMethod);
26246
+ const [isLoading, setIsLoading] = useState20(!initialPaymentMethod);
26247
+ const [error, setError] = useState20();
26248
+ const [showPaymentForm, setShowPaymentForm] = useState20(false);
26249
+ const [stripe, setStripe] = useState20(null);
26250
+ const [setupIntent, setSetupIntent] = useState20();
26251
+ const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = useState20(false);
26252
+ const [currentPaymentMethod, setCurrentPaymentMethod] = useState20(initialPaymentMethod);
25955
26253
  const { isConfirming: isConfirmingPayment } = usePaymentConfirmation({
25956
26254
  stripe,
25957
26255
  clientSecret: confirmPaymentIntentProps?.clientSecret,
@@ -25964,7 +26262,7 @@ var PaymentMethodDetails = ({
25964
26262
  },
25965
26263
  autoConfirm: true
25966
26264
  });
25967
- const monthsToExpiration = useMemo30(() => {
26265
+ const monthsToExpiration = useMemo31(() => {
25968
26266
  let expiration;
25969
26267
  if (typeof currentPaymentMethod?.cardExpYear === "number" && typeof currentPaymentMethod?.cardExpMonth === "number") {
25970
26268
  const now = /* @__PURE__ */ new Date();
@@ -25987,7 +26285,7 @@ var PaymentMethodDetails = ({
25987
26285
  const toggleShowPaymentMethods = () => {
25988
26286
  setShowDifferentPaymentMethods((prev2) => !prev2);
25989
26287
  };
25990
- const locale = useMemo30(() => stripeLocale(i18n.language), [i18n.language]);
26288
+ const locale = useMemo31(() => stripeLocale(i18n.language), [i18n.language]);
25991
26289
  const initializeStripe = useCallback15(() => {
25992
26290
  if (stripe || !setupIntent) {
25993
26291
  return;
@@ -26064,10 +26362,10 @@ var PaymentMethodDetails = ({
26064
26362
  },
26065
26363
  [t4, deletePaymentMethod]
26066
26364
  );
26067
- useEffect7(() => {
26365
+ useEffect8(() => {
26068
26366
  initializeStripe();
26069
26367
  }, [initializeStripe]);
26070
- useEffect7(() => {
26368
+ useEffect8(() => {
26071
26369
  if (!setupIntent && (!currentPaymentMethod || showPaymentForm)) {
26072
26370
  initializePaymentMethod();
26073
26371
  }
@@ -26077,7 +26375,7 @@ var PaymentMethodDetails = ({
26077
26375
  showPaymentForm,
26078
26376
  initializePaymentMethod
26079
26377
  ]);
26080
- return /* @__PURE__ */ jsxs43(
26378
+ return /* @__PURE__ */ jsxs44(
26081
26379
  Flex,
26082
26380
  {
26083
26381
  $position: "relative",
@@ -26085,7 +26383,7 @@ var PaymentMethodDetails = ({
26085
26383
  $flexGrow: 1,
26086
26384
  $gap: "1.5rem",
26087
26385
  children: [
26088
- /* @__PURE__ */ jsx58(
26386
+ /* @__PURE__ */ jsx59(
26089
26387
  Flex,
26090
26388
  {
26091
26389
  $position: "absolute",
@@ -26094,7 +26392,7 @@ var PaymentMethodDetails = ({
26094
26392
  $alignItems: "center",
26095
26393
  $width: "100%",
26096
26394
  $height: "100%",
26097
- children: /* @__PURE__ */ jsx58(
26395
+ children: /* @__PURE__ */ jsx59(
26098
26396
  Loader,
26099
26397
  {
26100
26398
  $color: settings.theme.primary,
@@ -26104,7 +26402,7 @@ var PaymentMethodDetails = ({
26104
26402
  )
26105
26403
  }
26106
26404
  ),
26107
- /* @__PURE__ */ jsxs43(
26405
+ /* @__PURE__ */ jsxs44(
26108
26406
  Flex,
26109
26407
  {
26110
26408
  $zIndex: isLoading || isConfirmingPayment ? 0 : 1,
@@ -26121,7 +26419,7 @@ var PaymentMethodDetails = ({
26121
26419
  }
26122
26420
  },
26123
26421
  children: [
26124
- setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ jsxs43(
26422
+ setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ jsxs44(
26125
26423
  Elements,
26126
26424
  {
26127
26425
  stripe,
@@ -26152,7 +26450,7 @@ var PaymentMethodDetails = ({
26152
26450
  clientSecret: setupIntent?.setupIntentClientSecret
26153
26451
  },
26154
26452
  children: [
26155
- /* @__PURE__ */ jsx58(
26453
+ /* @__PURE__ */ jsx59(
26156
26454
  PaymentForm,
26157
26455
  {
26158
26456
  financeData,
@@ -26163,7 +26461,7 @@ var PaymentMethodDetails = ({
26163
26461
  }
26164
26462
  }
26165
26463
  ),
26166
- currentPaymentMethod && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(
26464
+ currentPaymentMethod && /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(
26167
26465
  Text,
26168
26466
  {
26169
26467
  onClick: focusExistingPaymentMethods,
@@ -26176,8 +26474,8 @@ var PaymentMethodDetails = ({
26176
26474
  ) })
26177
26475
  ]
26178
26476
  }
26179
- ) : /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26180
- /* @__PURE__ */ jsx58(
26477
+ ) : /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26478
+ /* @__PURE__ */ jsx59(
26181
26479
  PaymentMethodElement,
26182
26480
  {
26183
26481
  paymentMethod: currentPaymentMethod,
@@ -26190,8 +26488,8 @@ var PaymentMethodDetails = ({
26190
26488
  ...props
26191
26489
  }
26192
26490
  ),
26193
- paymentMethods.length > 0 && /* @__PURE__ */ jsxs43(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26194
- /* @__PURE__ */ jsx58(
26491
+ paymentMethods.length > 0 && /* @__PURE__ */ jsxs44(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26492
+ /* @__PURE__ */ jsx59(
26195
26493
  Text,
26196
26494
  {
26197
26495
  onClick: toggleShowPaymentMethods,
@@ -26202,7 +26500,7 @@ var PaymentMethodDetails = ({
26202
26500
  children: t4("Choose different payment method")
26203
26501
  }
26204
26502
  ),
26205
- /* @__PURE__ */ jsx58(
26503
+ /* @__PURE__ */ jsx59(
26206
26504
  Icon3,
26207
26505
  {
26208
26506
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -26210,10 +26508,10 @@ var PaymentMethodDetails = ({
26210
26508
  }
26211
26509
  )
26212
26510
  ] }),
26213
- showDifferentPaymentMethods && /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26214
- paymentMethods.length > 1 && /* @__PURE__ */ jsx58(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26511
+ showDifferentPaymentMethods && /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26512
+ paymentMethods.length > 1 && /* @__PURE__ */ jsx59(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26215
26513
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
26216
- ) || []).map((paymentMethod) => /* @__PURE__ */ jsx58(
26514
+ ) || []).map((paymentMethod) => /* @__PURE__ */ jsx59(
26217
26515
  PaymentListElement,
26218
26516
  {
26219
26517
  paymentMethod,
@@ -26222,7 +26520,7 @@ var PaymentMethodDetails = ({
26222
26520
  },
26223
26521
  paymentMethod.id
26224
26522
  )) }),
26225
- /* @__PURE__ */ jsx58(
26523
+ /* @__PURE__ */ jsx59(
26226
26524
  Button,
26227
26525
  {
26228
26526
  type: "button",
@@ -26237,7 +26535,7 @@ var PaymentMethodDetails = ({
26237
26535
  )
26238
26536
  ] })
26239
26537
  ] }),
26240
- !isLoading && error && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26538
+ !isLoading && error && /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26241
26539
  ]
26242
26540
  }
26243
26541
  )
@@ -26247,13 +26545,13 @@ var PaymentMethodDetails = ({
26247
26545
  };
26248
26546
 
26249
26547
  // src/components/elements/plan-manager/PlanManager.tsx
26250
- import { forwardRef as forwardRef14, useMemo as useMemo32 } from "react";
26548
+ import { forwardRef as forwardRef14, useMemo as useMemo33 } from "react";
26251
26549
 
26252
26550
  // src/components/elements/plan-manager/AddOn.tsx
26253
- import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
26551
+ import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
26254
26552
  var AddOn = ({ addOn, currency, period, layout }) => {
26255
26553
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
26256
- return /* @__PURE__ */ jsxs44(
26554
+ return /* @__PURE__ */ jsxs45(
26257
26555
  Flex,
26258
26556
  {
26259
26557
  $justifyContent: "space-between",
@@ -26261,10 +26559,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26261
26559
  $flexWrap: "wrap",
26262
26560
  $gap: "1rem",
26263
26561
  children: [
26264
- /* @__PURE__ */ jsx59(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26265
- typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs44(Text, { children: [
26562
+ /* @__PURE__ */ jsx60(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26563
+ typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs45(Text, { children: [
26266
26564
  formatCurrency(addOn.planPrice, currency),
26267
- /* @__PURE__ */ jsx59("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26565
+ /* @__PURE__ */ jsx60("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26268
26566
  ] })
26269
26567
  ]
26270
26568
  }
@@ -26272,8 +26570,8 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26272
26570
  };
26273
26571
 
26274
26572
  // src/components/elements/plan-manager/UsageDetails.tsx
26275
- import { Fragment as Fragment24, useMemo as useMemo31 } from "react";
26276
- import { Fragment as Fragment25, jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
26573
+ import { Fragment as Fragment24, useMemo as useMemo32 } from "react";
26574
+ import { Fragment as Fragment25, jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
26277
26575
  var UsageDetails2 = ({
26278
26576
  entitlement,
26279
26577
  period,
@@ -26288,40 +26586,40 @@ var UsageDetails2 = ({
26288
26586
  billingPrice,
26289
26587
  limit,
26290
26588
  cost = 0
26291
- } = useMemo31(
26589
+ } = useMemo32(
26292
26590
  () => getUsageDetails(entitlement, period, currency, {
26293
26591
  showWarningThresholdAsLimit
26294
26592
  }),
26295
26593
  [entitlement, period, currency, showWarningThresholdAsLimit]
26296
26594
  );
26297
- const description = useMemo31(() => {
26595
+ const description = useMemo32(() => {
26298
26596
  const acc = [];
26299
26597
  let index = 0;
26300
26598
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Overage) {
26301
- acc.push(/* @__PURE__ */ jsxs45(Fragment24, { children: [
26599
+ acc.push(/* @__PURE__ */ jsxs46(Fragment24, { children: [
26302
26600
  t4("Additional"),
26303
26601
  ": "
26304
26602
  ] }, index));
26305
26603
  index += 1;
26306
26604
  }
26307
26605
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
26308
- acc.push(/* @__PURE__ */ jsx60(Fragment24, { children: t4("Tier-based") }, index));
26606
+ acc.push(/* @__PURE__ */ jsx61(Fragment24, { children: t4("Tier-based") }, index));
26309
26607
  index += 1;
26310
26608
  }
26311
26609
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
26312
26610
  if ((entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo || entitlement.priceBehavior === EntitlementPriceBehavior.Overage) && entitlement.feature && typeof price === "number") {
26313
26611
  const packageSize = billingPrice?.packageSize ?? 1;
26314
26612
  acc.push(
26315
- /* @__PURE__ */ jsxs45(Fragment24, { children: [
26613
+ /* @__PURE__ */ jsxs46(Fragment24, { children: [
26316
26614
  formatCurrency(price, billingPrice?.currency),
26317
- /* @__PURE__ */ jsxs45("sub", { children: [
26615
+ /* @__PURE__ */ jsxs46("sub", { children: [
26318
26616
  "/",
26319
- packageSize > 1 && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26617
+ packageSize > 1 && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26320
26618
  packageSize,
26321
26619
  " "
26322
26620
  ] }),
26323
26621
  getFeatureName(entitlement.feature, packageSize),
26324
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26622
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26325
26623
  "/",
26326
26624
  shortenPeriod(period)
26327
26625
  ] })
@@ -26332,7 +26630,7 @@ var UsageDetails2 = ({
26332
26630
  }
26333
26631
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
26334
26632
  acc.push(
26335
- /* @__PURE__ */ jsxs45(Fragment24, { children: [
26633
+ /* @__PURE__ */ jsxs46(Fragment24, { children: [
26336
26634
  formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
26337
26635
  " ",
26338
26636
  getFeatureName(
@@ -26360,7 +26658,7 @@ var UsageDetails2 = ({
26360
26658
  return null;
26361
26659
  }
26362
26660
  const quantity = entitlement.priceBehavior !== EntitlementPriceBehavior.CreditBurndown ? limit : void 0;
26363
- return /* @__PURE__ */ jsxs45(
26661
+ return /* @__PURE__ */ jsxs46(
26364
26662
  Flex,
26365
26663
  {
26366
26664
  $justifyContent: "space-between",
@@ -26368,13 +26666,13 @@ var UsageDetails2 = ({
26368
26666
  $flexWrap: "wrap",
26369
26667
  $gap: "0.5rem",
26370
26668
  children: [
26371
- /* @__PURE__ */ jsx60(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs45(Fragment25, { children: [
26669
+ /* @__PURE__ */ jsx61(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment25, { children: [
26372
26670
  quantity,
26373
26671
  " ",
26374
26672
  getFeatureName(entitlement.feature, quantity, true)
26375
26673
  ] }) : entitlement.feature.name }),
26376
- /* @__PURE__ */ jsxs45(Text, { children: [
26377
- description.length > 0 && /* @__PURE__ */ jsx60(
26674
+ /* @__PURE__ */ jsxs46(Text, { children: [
26675
+ description.length > 0 && /* @__PURE__ */ jsx61(
26378
26676
  Text,
26379
26677
  {
26380
26678
  style: { opacity: 0.54 },
@@ -26385,15 +26683,15 @@ var UsageDetails2 = ({
26385
26683
  ),
26386
26684
  // only show cost for pay-in-advance entitlements
26387
26685
  // `description` will include price for other price behaviors
26388
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26686
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26389
26687
  " ",
26390
26688
  formatCurrency(cost, billingPrice?.currency),
26391
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs45("sub", { children: [
26689
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs46("sub", { children: [
26392
26690
  "/",
26393
26691
  shortenPeriod(period)
26394
26692
  ] })
26395
26693
  ] }),
26396
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx60(
26694
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx61(
26397
26695
  PricingTiersTooltip,
26398
26696
  {
26399
26697
  feature: entitlement.feature,
@@ -26403,7 +26701,7 @@ var UsageDetails2 = ({
26403
26701
  tiersMode: billingPrice?.tiersMode ?? void 0
26404
26702
  }
26405
26703
  ),
26406
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx60(
26704
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx61(
26407
26705
  HardLimitTooltip,
26408
26706
  {
26409
26707
  feature: entitlement.feature,
@@ -26417,7 +26715,7 @@ var UsageDetails2 = ({
26417
26715
  };
26418
26716
 
26419
26717
  // src/components/elements/plan-manager/PlanManager.tsx
26420
- import { Fragment as Fragment26, jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
26718
+ import { Fragment as Fragment26, jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
26421
26719
  var resolveDesignProps7 = (props) => {
26422
26720
  return {
26423
26721
  header: {
@@ -26465,7 +26763,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26465
26763
  showCredits,
26466
26764
  showZeroPriceAsFree,
26467
26765
  trialPaymentMethodRequired
26468
- } = useMemo32(() => {
26766
+ } = useMemo33(() => {
26469
26767
  const planCreditOrder = /* @__PURE__ */ new Map();
26470
26768
  (data?.company?.plan?.includedCreditGrants ?? []).forEach((grant) => {
26471
26769
  if (!planCreditOrder.has(grant.creditId)) {
@@ -26525,15 +26823,15 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26525
26823
  data?.displaySettings?.showZeroPriceAsFree,
26526
26824
  data?.trialPaymentMethodRequired
26527
26825
  ]);
26528
- const usageBasedEntitlements = useMemo32(
26826
+ const usageBasedEntitlements = useMemo33(
26529
26827
  () => featureUsage.filter((usage) => typeof usage.priceBehavior === "string"),
26530
26828
  [featureUsage]
26531
26829
  );
26532
- const planCreditCompositions = useMemo32(
26830
+ const planCreditCompositions = useMemo33(
26533
26831
  () => groupPlanCreditGrants(currentPlan?.includedCreditGrants ?? []),
26534
26832
  [currentPlan?.includedCreditGrants]
26535
26833
  );
26536
- const resolveLicenseQuantity = useMemo32(() => {
26834
+ const resolveLicenseQuantity = useMemo33(() => {
26537
26835
  return (licenseId) => {
26538
26836
  const allocation = findLicenseSource(featureUsage, licenseId)?.allocation;
26539
26837
  return typeof allocation === "number" ? allocation : void 0;
@@ -26556,7 +26854,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26556
26854
  subscriptionCurrency,
26557
26855
  willSubscriptionCancel,
26558
26856
  isTrialSubscription
26559
- } = useMemo32(() => {
26857
+ } = useMemo33(() => {
26560
26858
  const subscriptionInterval2 = getSubscriptionPeriod(billingSubscription) ?? billingSubscription?.interval;
26561
26859
  const subscriptionCurrency2 = billingSubscription?.currency;
26562
26860
  const isTrialSubscription2 = billingSubscription?.status === "trialing";
@@ -26569,7 +26867,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26569
26867
  };
26570
26868
  }, [billingSubscription]);
26571
26869
  const currentPlanPeriod = getSubscriptionPeriod(billingSubscription) ?? currentPlan?.planPeriod ?? void 0;
26572
- const { isFreePlan, isUsageBasedPlan } = useMemo32(() => {
26870
+ const { isFreePlan, isUsageBasedPlan } = useMemo33(() => {
26573
26871
  const isFreePlan2 = currentPlan?.planPrice === 0;
26574
26872
  const isUsageBasedPlan2 = isFreePlan2 && usageBasedEntitlements.length > 0;
26575
26873
  return { isFreePlan: isFreePlan2, isUsageBasedPlan: isUsageBasedPlan2 };
@@ -26577,8 +26875,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26577
26875
  const hasAutoTopupSelfService = currentPlan?.includedCreditGrants.some(
26578
26876
  (grant) => isSelfServiceAutoTopupAvailable(grant)
26579
26877
  ) ?? false;
26580
- return /* @__PURE__ */ jsxs46(Fragment26, { children: [
26581
- isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ jsxs46(
26878
+ return /* @__PURE__ */ jsxs47(Fragment26, { children: [
26879
+ isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ jsxs47(
26582
26880
  Notice,
26583
26881
  {
26584
26882
  as: Flex,
@@ -26588,8 +26886,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26588
26886
  $textAlign: "center",
26589
26887
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26590
26888
  children: [
26591
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26592
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx61(
26889
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26890
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx62(
26593
26891
  Text,
26594
26892
  {
26595
26893
  as: "p",
@@ -26603,7 +26901,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26603
26901
  )
26604
26902
  ]
26605
26903
  }
26606
- ) : willSubscriptionCancel ? /* @__PURE__ */ jsxs46(
26904
+ ) : willSubscriptionCancel ? /* @__PURE__ */ jsxs47(
26607
26905
  Notice,
26608
26906
  {
26609
26907
  as: Flex,
@@ -26613,8 +26911,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
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__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26617
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx61(
26914
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26915
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx62(
26618
26916
  Text,
26619
26917
  {
26620
26918
  as: "p",
@@ -26629,7 +26927,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26629
26927
  )
26630
26928
  ]
26631
26929
  }
26632
- ) : customPlanBilling ? /* @__PURE__ */ jsxs46(
26930
+ ) : customPlanBilling ? /* @__PURE__ */ jsxs47(
26633
26931
  Notice,
26634
26932
  {
26635
26933
  as: Flex,
@@ -26639,19 +26937,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26639
26937
  $textAlign: "center",
26640
26938
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26641
26939
  children: [
26642
- /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26940
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26643
26941
  plan: customPlanBilling.planName ?? t4("your plan")
26644
26942
  }) : t4("Custom plan payment due", {
26645
26943
  plan: customPlanBilling.planName ?? t4("your plan"),
26646
26944
  date: toPrettyDate(customPlanBilling.deadline)
26647
26945
  }) }),
26648
- /* @__PURE__ */ jsx61(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26946
+ /* @__PURE__ */ jsx62(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26649
26947
  date: toPrettyDate(customPlanBilling.deadline)
26650
26948
  }) : t4("Custom plan payment due description", {
26651
26949
  plan: customPlanBilling.planName ?? t4("your plan"),
26652
26950
  date: toPrettyDate(customPlanBilling.deadline)
26653
26951
  }) }),
26654
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx61(
26952
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx62(
26655
26953
  Button,
26656
26954
  {
26657
26955
  as: "a",
@@ -26665,7 +26963,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26665
26963
  )
26666
26964
  ]
26667
26965
  }
26668
- ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ jsxs46(
26966
+ ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ jsxs47(
26669
26967
  Notice,
26670
26968
  {
26671
26969
  as: Flex,
@@ -26675,10 +26973,10 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26675
26973
  $textAlign: "center",
26676
26974
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26677
26975
  children: [
26678
- /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26976
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26679
26977
  plan: data.company.scheduledDowngrade.toPlanName
26680
26978
  }) }),
26681
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx61(
26979
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx62(
26682
26980
  Text,
26683
26981
  {
26684
26982
  as: "p",
@@ -26694,7 +26992,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26694
26992
  ]
26695
26993
  }
26696
26994
  ),
26697
- /* @__PURE__ */ jsxs46(
26995
+ /* @__PURE__ */ jsxs47(
26698
26996
  Element,
26699
26997
  {
26700
26998
  as: Flex,
@@ -26703,19 +27001,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26703
27001
  $flexDirection: "column",
26704
27002
  $gap: "2rem",
26705
27003
  children: [
26706
- props.header.isVisible && currentPlan && /* @__PURE__ */ jsxs46(
27004
+ props.header.isVisible && currentPlan && /* @__PURE__ */ jsxs47(
26707
27005
  Flex,
26708
27006
  {
26709
27007
  $justifyContent: "space-between",
26710
27008
  $alignItems: "center",
26711
27009
  $gap: "1rem",
26712
27010
  children: [
26713
- /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "1rem", children: [
26714
- /* @__PURE__ */ jsx61(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
26715
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx61(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
27011
+ /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "1rem", children: [
27012
+ /* @__PURE__ */ jsx62(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
27013
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx62(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
26716
27014
  ] }),
26717
- props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs46(Box, { children: [
26718
- /* @__PURE__ */ jsx61(
27015
+ props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs47(Box, { children: [
27016
+ /* @__PURE__ */ jsx62(
26719
27017
  Text,
26720
27018
  {
26721
27019
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -26725,7 +27023,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26725
27023
  )
26726
27024
  }
26727
27025
  ),
26728
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx61(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs46("sub", { children: [
27026
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx62(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
26729
27027
  "/",
26730
27028
  shortenPeriod(currentPlanPeriod)
26731
27029
  ] }) })
@@ -26733,8 +27031,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26733
27031
  ]
26734
27032
  }
26735
27033
  ),
26736
- props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26737
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27034
+ props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27035
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26738
27036
  Text,
26739
27037
  {
26740
27038
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26742,7 +27040,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26742
27040
  children: t4("Add-ons")
26743
27041
  }
26744
27042
  ),
26745
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx61(
27043
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx62(
26746
27044
  AddOn,
26747
27045
  {
26748
27046
  addOn,
@@ -26753,8 +27051,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26753
27051
  addOnIndex
26754
27052
  )) })
26755
27053
  ] }),
26756
- props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26757
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27054
+ props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27055
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26758
27056
  Text,
26759
27057
  {
26760
27058
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26762,8 +27060,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26762
27060
  children: t4("Usage-based")
26763
27061
  }
26764
27062
  ),
26765
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
26766
- return /* @__PURE__ */ jsx61(
27063
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
27064
+ return /* @__PURE__ */ jsx62(
26767
27065
  UsageDetails2,
26768
27066
  {
26769
27067
  entitlement,
@@ -26776,8 +27074,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26776
27074
  );
26777
27075
  }) })
26778
27076
  ] }),
26779
- props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26780
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27077
+ props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27078
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26781
27079
  Text,
26782
27080
  {
26783
27081
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26785,7 +27083,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26785
27083
  children: t4("Credits in plan")
26786
27084
  }
26787
27085
  ),
26788
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
27086
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
26789
27087
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
26790
27088
  (grant) => grant.creditId === group.id
26791
27089
  );
@@ -26808,13 +27106,13 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26808
27106
  const licenseQuantity = perLicenseGrant?.licenseId ? resolveLicenseQuantity(perLicenseGrant.licenseId) : void 0;
26809
27107
  const creditPeriod = composition.period ?? subscriptionInterval;
26810
27108
  const showPerLicense = !!perLicenseGrant && !!licenseFeature;
26811
- return /* @__PURE__ */ jsxs46(
27109
+ return /* @__PURE__ */ jsxs47(
26812
27110
  Flex,
26813
27111
  {
26814
27112
  $flexDirection: "column",
26815
27113
  $gap: "0.25rem",
26816
27114
  children: [
26817
- /* @__PURE__ */ jsxs46(
27115
+ /* @__PURE__ */ jsxs47(
26818
27116
  Flex,
26819
27117
  {
26820
27118
  $justifyContent: "space-between",
@@ -26822,7 +27120,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26822
27120
  $flexWrap: "wrap",
26823
27121
  $gap: "0.5rem",
26824
27122
  children: [
26825
- /* @__PURE__ */ jsx61(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs46(Fragment26, { children: [
27123
+ /* @__PURE__ */ jsx62(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment26, { children: [
26826
27124
  t4("X credits per license", {
26827
27125
  amount: perLicenseGrant.amount,
26828
27126
  creditName: getFeatureName(
@@ -26831,7 +27129,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26831
27129
  ),
26832
27130
  licenseName: getFeatureName(licenseFeature, 1)
26833
27131
  }),
26834
- composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ jsxs46(Fragment26, { children: [
27132
+ composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ jsxs47(Fragment26, { children: [
26835
27133
  " ",
26836
27134
  t4("Plus X credits per period", {
26837
27135
  amount: composition.fixedQuantity,
@@ -26842,18 +27140,18 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26842
27140
  period: t4(creditPeriod)
26843
27141
  })
26844
27142
  ] })
26845
- ] }) : /* @__PURE__ */ jsxs46(Fragment26, { children: [
27143
+ ] }) : /* @__PURE__ */ jsxs47(Fragment26, { children: [
26846
27144
  group.total.value,
26847
27145
  " ",
26848
27146
  getFeatureName(group, group.total.value),
26849
27147
  " ",
26850
- subscriptionInterval && /* @__PURE__ */ jsxs46(Fragment26, { children: [
27148
+ subscriptionInterval && /* @__PURE__ */ jsxs47(Fragment26, { children: [
26851
27149
  t4("per"),
26852
27150
  " ",
26853
27151
  t4(subscriptionInterval)
26854
27152
  ] })
26855
27153
  ] }) }),
26856
- group.total.used > 0 && /* @__PURE__ */ jsx61(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs46(
27154
+ group.total.used > 0 && /* @__PURE__ */ jsx62(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
26857
27155
  Text,
26858
27156
  {
26859
27157
  style: { opacity: 0.54 },
@@ -26863,7 +27161,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26863
27161
  group.total.used,
26864
27162
  " ",
26865
27163
  t4("used"),
26866
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx61(
27164
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx62(
26867
27165
  AutoTopupNotice,
26868
27166
  {
26869
27167
  thresholdCredits,
@@ -26876,7 +27174,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26876
27174
  ]
26877
27175
  }
26878
27176
  ),
26879
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx61(
27177
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx62(
26880
27178
  Text,
26881
27179
  {
26882
27180
  style: { opacity: 0.54 },
@@ -26917,7 +27215,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26917
27215
  groupIndex
26918
27216
  );
26919
27217
  }) }),
26920
- planCredits.canExpand && /* @__PURE__ */ jsx61(
27218
+ planCredits.canExpand && /* @__PURE__ */ jsx62(
26921
27219
  ExpandListToggle,
26922
27220
  {
26923
27221
  isExpanded: planCredits.isExpanded,
@@ -26926,7 +27224,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26926
27224
  $marginTop: "0.5rem"
26927
27225
  }
26928
27226
  ),
26929
- hasAutoTopupSelfService && /* @__PURE__ */ jsxs46(
27227
+ hasAutoTopupSelfService && /* @__PURE__ */ jsxs47(
26930
27228
  Flex,
26931
27229
  {
26932
27230
  $justifyContent: "space-between",
@@ -26936,8 +27234,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26936
27234
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26937
27235
  $borderRadius: "0.5rem",
26938
27236
  children: [
26939
- /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26940
- /* @__PURE__ */ jsx61(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
27237
+ /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27238
+ /* @__PURE__ */ jsx62(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
26941
27239
  currentPlan?.includedCreditGrants.reduce(
26942
27240
  (acc, grant) => {
26943
27241
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -26946,7 +27244,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26946
27244
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
26947
27245
  if (!autoTopupEnabled) {
26948
27246
  acc.push(
26949
- /* @__PURE__ */ jsx61(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
27247
+ /* @__PURE__ */ jsx62(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
26950
27248
  unit: getFeatureName(grant.credit, 1)
26951
27249
  }) }, grant.id)
26952
27250
  );
@@ -26956,7 +27254,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26956
27254
  const autoTopupAmount = getAutoTopupAmount(grant);
26957
27255
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
26958
27256
  acc.push(
26959
- /* @__PURE__ */ jsx61(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
27257
+ /* @__PURE__ */ jsx62(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
26960
27258
  unit: getFeatureName(
26961
27259
  grant.credit,
26962
27260
  autoTopupAmount
@@ -26971,7 +27269,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26971
27269
  []
26972
27270
  )
26973
27271
  ] }),
26974
- /* @__PURE__ */ jsx61(
27272
+ /* @__PURE__ */ jsx62(
26975
27273
  Button,
26976
27274
  {
26977
27275
  type: "button",
@@ -26988,8 +27286,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26988
27286
  }
26989
27287
  )
26990
27288
  ] }),
26991
- props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26992
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27289
+ props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27290
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26993
27291
  Text,
26994
27292
  {
26995
27293
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26997,9 +27295,9 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26997
27295
  children: t4("Top-ups")
26998
27296
  }
26999
27297
  ),
27000
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27298
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27001
27299
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27002
- return /* @__PURE__ */ jsxs46(
27300
+ return /* @__PURE__ */ jsxs47(
27003
27301
  Flex,
27004
27302
  {
27005
27303
  $justifyContent: "space-between",
@@ -27007,8 +27305,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27007
27305
  $flexWrap: "wrap",
27008
27306
  $gap: "0.5rem",
27009
27307
  children: [
27010
- bundle ? /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27011
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27308
+ bundle ? /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27309
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
27012
27310
  "(",
27013
27311
  group.grants.length,
27014
27312
  ")",
@@ -27020,8 +27318,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27020
27318
  " ",
27021
27319
  getFeatureName(group, group.quantity),
27022
27320
  ")"
27023
- ] }) : /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27024
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27321
+ ] }) : /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27322
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
27025
27323
  "(",
27026
27324
  group.grants.length,
27027
27325
  ")",
@@ -27031,7 +27329,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27031
27329
  " ",
27032
27330
  getFeatureName(group, group.quantity)
27033
27331
  ] }),
27034
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27332
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
27035
27333
  Text,
27036
27334
  {
27037
27335
  style: { opacity: 0.54 },
@@ -27049,7 +27347,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27049
27347
  groupIndex
27050
27348
  );
27051
27349
  }) }),
27052
- autoTopupCredits.canExpand && /* @__PURE__ */ jsx61(
27350
+ autoTopupCredits.canExpand && /* @__PURE__ */ jsx62(
27053
27351
  ExpandListToggle,
27054
27352
  {
27055
27353
  isExpanded: autoTopupCredits.isExpanded,
@@ -27059,8 +27357,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27059
27357
  }
27060
27358
  )
27061
27359
  ] }),
27062
- props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27063
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27360
+ props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27361
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
27064
27362
  Text,
27065
27363
  {
27066
27364
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27068,9 +27366,9 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27068
27366
  children: t4("Credit bundles")
27069
27367
  }
27070
27368
  ),
27071
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27369
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27072
27370
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
27073
- return /* @__PURE__ */ jsxs46(
27371
+ return /* @__PURE__ */ jsxs47(
27074
27372
  Flex,
27075
27373
  {
27076
27374
  $justifyContent: "space-between",
@@ -27078,8 +27376,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27078
27376
  $flexWrap: "wrap",
27079
27377
  $gap: "0.5rem",
27080
27378
  children: [
27081
- bundle ? /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27082
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27379
+ bundle ? /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27380
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
27083
27381
  "(",
27084
27382
  group.grants.length,
27085
27383
  ")",
@@ -27091,12 +27389,12 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27091
27389
  " ",
27092
27390
  getFeatureName(group, group.quantity),
27093
27391
  ")"
27094
- ] }) : /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27392
+ ] }) : /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27095
27393
  group.quantity,
27096
27394
  " ",
27097
27395
  getFeatureName(group, group.quantity)
27098
27396
  ] }),
27099
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27397
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
27100
27398
  Text,
27101
27399
  {
27102
27400
  style: { opacity: 0.54 },
@@ -27114,7 +27412,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27114
27412
  groupIndex
27115
27413
  );
27116
27414
  }) }),
27117
- bundleCredits.canExpand && /* @__PURE__ */ jsx61(
27415
+ bundleCredits.canExpand && /* @__PURE__ */ jsx62(
27118
27416
  ExpandListToggle,
27119
27417
  {
27120
27418
  isExpanded: bundleCredits.isExpanded,
@@ -27124,8 +27422,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27124
27422
  }
27125
27423
  )
27126
27424
  ] }),
27127
- props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27128
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27425
+ props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27426
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
27129
27427
  Text,
27130
27428
  {
27131
27429
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27133,8 +27431,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27133
27431
  children: t4("Promotional credits")
27134
27432
  }
27135
27433
  ),
27136
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27137
- return /* @__PURE__ */ jsxs46(
27434
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27435
+ return /* @__PURE__ */ jsxs47(
27138
27436
  Flex,
27139
27437
  {
27140
27438
  $justifyContent: "space-between",
@@ -27142,12 +27440,12 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27142
27440
  $flexWrap: "wrap",
27143
27441
  $gap: "0.5rem",
27144
27442
  children: [
27145
- /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27443
+ /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27146
27444
  group.quantity,
27147
27445
  " ",
27148
27446
  getFeatureName(group, group.quantity)
27149
27447
  ] }),
27150
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27448
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
27151
27449
  Text,
27152
27450
  {
27153
27451
  style: { opacity: 0.54 },
@@ -27165,7 +27463,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27165
27463
  groupIndex
27166
27464
  );
27167
27465
  }) }),
27168
- promotionalCredits.canExpand && /* @__PURE__ */ jsx61(
27466
+ promotionalCredits.canExpand && /* @__PURE__ */ jsx62(
27169
27467
  ExpandListToggle,
27170
27468
  {
27171
27469
  isExpanded: promotionalCredits.isExpanded,
@@ -27175,7 +27473,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27175
27473
  }
27176
27474
  )
27177
27475
  ] }),
27178
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx61(
27476
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx62(
27179
27477
  Button,
27180
27478
  {
27181
27479
  type: "button",
@@ -27200,14 +27498,14 @@ import {
27200
27498
  Fragment as Fragment29,
27201
27499
  forwardRef as forwardRef15,
27202
27500
  useCallback as useCallback16,
27203
- useEffect as useEffect8,
27204
- useMemo as useMemo34,
27205
- useState as useState21
27501
+ useEffect as useEffect9,
27502
+ useMemo as useMemo35,
27503
+ useState as useState22
27206
27504
  } from "react";
27207
27505
 
27208
27506
  // src/components/elements/pricing-table/AddOn.tsx
27209
- import { useMemo as useMemo33 } from "react";
27210
- import { Fragment as Fragment27, jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
27507
+ import { useMemo as useMemo34 } from "react";
27508
+ import { Fragment as Fragment27, jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
27211
27509
  function renderMeteredEntitlementPricing2({
27212
27510
  priceBehavior,
27213
27511
  softLimit,
@@ -27219,7 +27517,7 @@ function renderMeteredEntitlementPricing2({
27219
27517
  isTiered
27220
27518
  }) {
27221
27519
  if (priceBehavior === EntitlementPriceBehavior.Overage && softLimit) {
27222
- return /* @__PURE__ */ jsxs47(Fragment27, { children: [
27520
+ return /* @__PURE__ */ jsxs48(Fragment27, { children: [
27223
27521
  "Additional: ",
27224
27522
  formatCurrency(price, currency),
27225
27523
  "/",
@@ -27230,13 +27528,13 @@ function renderMeteredEntitlementPricing2({
27230
27528
  ] });
27231
27529
  }
27232
27530
  if (isTiered) {
27233
- return /* @__PURE__ */ jsx62(Fragment27, { children: "Tier-based pricing" });
27531
+ return /* @__PURE__ */ jsx63(Fragment27, { children: "Tier-based pricing" });
27234
27532
  }
27235
27533
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
27236
- return /* @__PURE__ */ jsxs47(Fragment27, { children: [
27534
+ return /* @__PURE__ */ jsxs48(Fragment27, { children: [
27237
27535
  formatCurrency(price, currency),
27238
27536
  "/",
27239
- packageSize > 1 && /* @__PURE__ */ jsxs47(Fragment27, { children: [
27537
+ packageSize > 1 && /* @__PURE__ */ jsxs48(Fragment27, { children: [
27240
27538
  packageSize,
27241
27539
  " "
27242
27540
  ] }),
@@ -27262,7 +27560,7 @@ var AddOn2 = ({
27262
27560
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
27263
27561
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
27264
27562
  const isLightBackground = useIsLightBackground();
27265
- const { currentAddOns, canCheckout, isStandalone } = useMemo33(() => {
27563
+ const { currentAddOns, canCheckout, isStandalone } = useMemo34(() => {
27266
27564
  const isStandalone2 = typeof data?.component === "undefined";
27267
27565
  return {
27268
27566
  currentAddOns: data?.company?.addOns || [],
@@ -27305,7 +27603,7 @@ var AddOn2 = ({
27305
27603
  isTiered: entitlement.priceBehavior === EntitlementPriceBehavior.Tier || isTieredPrice(priceData)
27306
27604
  };
27307
27605
  }) || [];
27308
- return /* @__PURE__ */ jsxs47(
27606
+ return /* @__PURE__ */ jsxs48(
27309
27607
  Flex,
27310
27608
  {
27311
27609
  as: "li",
@@ -27325,7 +27623,7 @@ var AddOn2 = ({
27325
27623
  $boxShadow: cardBoxShadow
27326
27624
  },
27327
27625
  children: [
27328
- /* @__PURE__ */ jsxs47(
27626
+ /* @__PURE__ */ jsxs48(
27329
27627
  Flex,
27330
27628
  {
27331
27629
  $flexDirection: "column",
@@ -27336,7 +27634,7 @@ var AddOn2 = ({
27336
27634
  $borderStyle: "solid",
27337
27635
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27338
27636
  children: [
27339
- /* @__PURE__ */ jsx62(Box, { children: /* @__PURE__ */ jsx62(
27637
+ /* @__PURE__ */ jsx63(Box, { children: /* @__PURE__ */ jsx63(
27340
27638
  Text,
27341
27639
  {
27342
27640
  as: "h3",
@@ -27345,22 +27643,22 @@ var AddOn2 = ({
27345
27643
  children: addOn.name
27346
27644
  }
27347
27645
  ) }),
27348
- layout.addOns.showDescription && /* @__PURE__ */ jsx62(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx62(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27349
- /* @__PURE__ */ jsx62(Box, { children: /* @__PURE__ */ jsx62(
27646
+ layout.addOns.showDescription && /* @__PURE__ */ jsx63(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx63(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27647
+ /* @__PURE__ */ jsx63(Box, { children: /* @__PURE__ */ jsx63(
27350
27648
  Text,
27351
27649
  {
27352
27650
  "data-testid": "sch-addon-price",
27353
27651
  display: layout.plans.name.fontStyle,
27354
- children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ jsxs47(Fragment27, { children: [
27652
+ children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ jsxs48(Fragment27, { children: [
27355
27653
  formatCurrency(addOnPrice ?? 0, addOnCurrency),
27356
- /* @__PURE__ */ jsxs47("sub", { children: [
27654
+ /* @__PURE__ */ jsxs48("sub", { children: [
27357
27655
  "/",
27358
27656
  selectedPeriod
27359
27657
  ] })
27360
27658
  ] })
27361
27659
  }
27362
27660
  ) }),
27363
- isActiveAddOn && /* @__PURE__ */ jsx62(
27661
+ isActiveAddOn && /* @__PURE__ */ jsx63(
27364
27662
  Flex,
27365
27663
  {
27366
27664
  "data-testid": "sch-addon-active",
@@ -27370,7 +27668,7 @@ var AddOn2 = ({
27370
27668
  $backgroundColor: settings.theme.primary,
27371
27669
  $borderRadius: "9999px",
27372
27670
  $padding: "0.125rem 0.85rem",
27373
- children: /* @__PURE__ */ jsx62(
27671
+ children: /* @__PURE__ */ jsx63(
27374
27672
  Text,
27375
27673
  {
27376
27674
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27383,7 +27681,7 @@ var AddOn2 = ({
27383
27681
  ]
27384
27682
  }
27385
27683
  ),
27386
- /* @__PURE__ */ jsxs47(
27684
+ /* @__PURE__ */ jsxs48(
27387
27685
  Flex,
27388
27686
  {
27389
27687
  $flexDirection: "column",
@@ -27392,7 +27690,7 @@ var AddOn2 = ({
27392
27690
  $flexGrow: 1,
27393
27691
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27394
27692
  children: [
27395
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx62(
27693
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx63(
27396
27694
  Flex,
27397
27695
  {
27398
27696
  as: "ul",
@@ -27404,7 +27702,7 @@ var AddOn2 = ({
27404
27702
  $listStyle: "none",
27405
27703
  children: displayableEntitlements.map((entitlement, idx) => {
27406
27704
  if (entitlement.isUnlimited) {
27407
- return /* @__PURE__ */ jsxs47(
27705
+ return /* @__PURE__ */ jsxs48(
27408
27706
  Flex,
27409
27707
  {
27410
27708
  as: "li",
@@ -27413,8 +27711,8 @@ var AddOn2 = ({
27413
27711
  $alignItems: "center",
27414
27712
  $gap: "1rem",
27415
27713
  children: [
27416
- /* @__PURE__ */ jsxs47(Flex, { $gap: "1rem", children: [
27417
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx62(
27714
+ /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
27715
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx63(
27418
27716
  Icon3,
27419
27717
  {
27420
27718
  name: entitlement.feature.icon,
@@ -27423,16 +27721,16 @@ var AddOn2 = ({
27423
27721
  rounded: true
27424
27722
  }
27425
27723
  ),
27426
- entitlement.feature && /* @__PURE__ */ jsx62(
27724
+ entitlement.feature && /* @__PURE__ */ jsx63(
27427
27725
  Flex,
27428
27726
  {
27429
27727
  $flexDirection: "column",
27430
27728
  $justifyContent: "center",
27431
- children: /* @__PURE__ */ jsx62(Text, { children: getFeatureName(entitlement.feature) })
27729
+ children: /* @__PURE__ */ jsx63(Text, { children: getFeatureName(entitlement.feature) })
27432
27730
  }
27433
27731
  )
27434
27732
  ] }),
27435
- /* @__PURE__ */ jsx62(
27733
+ /* @__PURE__ */ jsx63(
27436
27734
  Text,
27437
27735
  {
27438
27736
  style: { opacity: 0.54 },
@@ -27447,7 +27745,7 @@ var AddOn2 = ({
27447
27745
  );
27448
27746
  }
27449
27747
  const meteredEntitlement = entitlement;
27450
- return /* @__PURE__ */ jsxs47(
27748
+ return /* @__PURE__ */ jsxs48(
27451
27749
  Flex,
27452
27750
  {
27453
27751
  as: "li",
@@ -27457,8 +27755,8 @@ var AddOn2 = ({
27457
27755
  $gap: "1rem",
27458
27756
  $listStyle: "none",
27459
27757
  children: [
27460
- /* @__PURE__ */ jsxs47(Flex, { $gap: "1rem", children: [
27461
- meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx62(
27758
+ /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
27759
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx63(
27462
27760
  Icon3,
27463
27761
  {
27464
27762
  "data-testid": "sch-feature-icon",
@@ -27468,9 +27766,9 @@ var AddOn2 = ({
27468
27766
  rounded: true
27469
27767
  }
27470
27768
  ),
27471
- /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx62(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
27769
+ /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx63(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
27472
27770
  ] }),
27473
- /* @__PURE__ */ jsx62(
27771
+ /* @__PURE__ */ jsx63(
27474
27772
  Text,
27475
27773
  {
27476
27774
  style: { opacity: 0.54 },
@@ -27486,7 +27784,7 @@ var AddOn2 = ({
27486
27784
  })
27487
27785
  }
27488
27786
  ),
27489
- sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx62(
27787
+ sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx63(
27490
27788
  Button,
27491
27789
  {
27492
27790
  type: "button",
@@ -27525,10 +27823,10 @@ var AddOn2 = ({
27525
27823
  };
27526
27824
 
27527
27825
  // src/components/elements/pricing-table/Plan.tsx
27528
- import { useState as useState20 } from "react";
27826
+ import { useState as useState21 } from "react";
27529
27827
 
27530
27828
  // src/components/elements/pricing-table/Entitlement.tsx
27531
- import { Fragment as Fragment28, jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
27829
+ import { Fragment as Fragment28, jsx as jsx64, jsxs as jsxs49 } from "react/jsx-runtime";
27532
27830
  var Entitlement2 = ({
27533
27831
  entitlement,
27534
27832
  sharedProps,
@@ -27562,8 +27860,8 @@ var Entitlement2 = ({
27562
27860
  entitlement,
27563
27861
  credits
27564
27862
  );
27565
- return /* @__PURE__ */ jsxs48(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27566
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx63(
27863
+ return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27864
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx64(
27567
27865
  Icon3,
27568
27866
  {
27569
27867
  "data-testid": "sch-feature-icon",
@@ -27573,31 +27871,31 @@ var Entitlement2 = ({
27573
27871
  rounded: true
27574
27872
  }
27575
27873
  ),
27576
- entitlement.feature?.name && /* @__PURE__ */ jsxs48(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27577
- /* @__PURE__ */ jsxs48(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27578
- /* @__PURE__ */ jsx63(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27874
+ entitlement.feature?.name && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27875
+ /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27876
+ /* @__PURE__ */ jsx64(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27579
27877
  formatCurrency(entitlementPrice, entitlementCurrency),
27580
27878
  " ",
27581
27879
  t4("per"),
27582
27880
  " ",
27583
- entitlementPackageSize > 1 && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27881
+ entitlementPackageSize > 1 && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27584
27882
  formatNumber(entitlementPackageSize),
27585
27883
  " "
27586
27884
  ] }),
27587
27885
  getFeatureName(entitlement.feature, entitlementPackageSize),
27588
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27886
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27589
27887
  " ",
27590
27888
  t4("per"),
27591
27889
  " ",
27592
27890
  selectedPeriod
27593
27891
  ] })
27594
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx63(
27892
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx64(
27595
27893
  TieredPricingDetails,
27596
27894
  {
27597
27895
  entitlement,
27598
27896
  period: selectedPeriod
27599
27897
  }
27600
- ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27898
+ ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27601
27899
  formatConsumptionRate(entitlement.consumptionRate),
27602
27900
  " ",
27603
27901
  getFeatureName(
@@ -27608,7 +27906,7 @@ var Entitlement2 = ({
27608
27906
  t4("per"),
27609
27907
  " ",
27610
27908
  getFeatureName(entitlement.feature, 1)
27611
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx63(Fragment28, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27909
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx64(Fragment28, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27612
27910
  amount: formatNumber(creditBasedEntitlementLimit.limit),
27613
27911
  units: getFeatureName(
27614
27912
  entitlement.feature,
@@ -27621,25 +27919,25 @@ var Entitlement2 = ({
27621
27919
  entitlement.feature,
27622
27920
  creditBasedEntitlementLimit.limit
27623
27921
  )
27624
- }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27922
+ }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27625
27923
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t4("Unlimited", {
27626
27924
  item: getFeatureName(entitlement.feature)
27627
- }) : /* @__PURE__ */ jsxs48(Fragment28, { children: [
27628
- typeof limit === "number" && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27925
+ }) : /* @__PURE__ */ jsxs49(Fragment28, { children: [
27926
+ typeof limit === "number" && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27629
27927
  formatNumber(limit),
27630
27928
  " "
27631
27929
  ] }),
27632
27930
  getFeatureName(entitlement.feature, limit)
27633
27931
  ] }),
27634
- metricPeriodName && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27932
+ metricPeriodName && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27635
27933
  " ",
27636
27934
  t4("per"),
27637
27935
  " ",
27638
27936
  t4(metricPeriodName)
27639
27937
  ] })
27640
27938
  ] }) : entitlement.feature.name }),
27641
- /* @__PURE__ */ jsxs48(Text, { children: [
27642
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx63(Fragment28, { children: /* @__PURE__ */ jsxs48(
27939
+ /* @__PURE__ */ jsxs49(Text, { children: [
27940
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx64(Fragment28, { children: /* @__PURE__ */ jsxs49(
27643
27941
  Text,
27644
27942
  {
27645
27943
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27649,7 +27947,7 @@ var Entitlement2 = ({
27649
27947
  " ",
27650
27948
  formatCurrency(entitlementPrice, entitlementCurrency),
27651
27949
  "/",
27652
- entitlementPackageSize > 1 && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27950
+ entitlementPackageSize > 1 && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27653
27951
  formatNumber(entitlementPackageSize),
27654
27952
  " "
27655
27953
  ] }),
@@ -27657,14 +27955,14 @@ var Entitlement2 = ({
27657
27955
  entitlement.feature,
27658
27956
  entitlementPackageSize
27659
27957
  ),
27660
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27958
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27661
27959
  "/",
27662
27960
  shortenPeriod(selectedPeriod)
27663
27961
  ] })
27664
27962
  ]
27665
27963
  }
27666
- ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27667
- /* @__PURE__ */ jsx63(
27964
+ ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27965
+ /* @__PURE__ */ jsx64(
27668
27966
  Text,
27669
27967
  {
27670
27968
  style: { opacity: 0.54 },
@@ -27673,7 +27971,7 @@ var Entitlement2 = ({
27673
27971
  children: t4("Tier-based")
27674
27972
  }
27675
27973
  ),
27676
- /* @__PURE__ */ jsx63(
27974
+ /* @__PURE__ */ jsx64(
27677
27975
  PricingTiersTooltip,
27678
27976
  {
27679
27977
  feature: entitlement.feature,
@@ -27684,14 +27982,14 @@ var Entitlement2 = ({
27684
27982
  }
27685
27983
  )
27686
27984
  ] }),
27687
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx63(
27985
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx64(
27688
27986
  HardLimitTooltip,
27689
27987
  {
27690
27988
  feature: entitlement.feature,
27691
27989
  limit: entitlement.valueNumeric
27692
27990
  }
27693
27991
  ),
27694
- entitlement.billingThreshold && /* @__PURE__ */ jsx63(
27992
+ entitlement.billingThreshold && /* @__PURE__ */ jsx64(
27695
27993
  BillingThresholdTooltip,
27696
27994
  {
27697
27995
  billingThreshold: entitlement.billingThreshold
@@ -27699,7 +27997,7 @@ var Entitlement2 = ({
27699
27997
  )
27700
27998
  ] })
27701
27999
  ] }),
27702
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx63(
28000
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx64(
27703
28001
  Text,
27704
28002
  {
27705
28003
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27712,7 +28010,7 @@ var Entitlement2 = ({
27712
28010
  };
27713
28011
 
27714
28012
  // src/components/elements/pricing-table/Plan.tsx
27715
- import { jsx as jsx64, jsxs as jsxs49 } from "react/jsx-runtime";
28013
+ import { jsx as jsx65, jsxs as jsxs50 } from "react/jsx-runtime";
27716
28014
  var Plan2 = ({
27717
28015
  plan,
27718
28016
  index,
@@ -27726,7 +28024,7 @@ var Plan2 = ({
27726
28024
  const { data, settings, setCheckoutState } = useEmbed();
27727
28025
  const isLightBackground = useIsLightBackground();
27728
28026
  const trialEnd = useTrialEnd();
27729
- const [entitlementVisibility, setEntitlementVisibility] = useState20({});
28027
+ const [entitlementVisibility, setEntitlementVisibility] = useState21({});
27730
28028
  const handleToggleShowAll = (id) => {
27731
28029
  setEntitlementVisibility((prev2) => {
27732
28030
  const updated = !(prev2[id] ?? false);
@@ -27755,7 +28053,7 @@ var Plan2 = ({
27755
28053
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
27756
28054
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
27757
28055
  const isExpanded = entitlementVisibility[plan.id] ?? false;
27758
- return /* @__PURE__ */ jsxs49(
28056
+ return /* @__PURE__ */ jsxs50(
27759
28057
  Flex,
27760
28058
  {
27761
28059
  as: "li",
@@ -27775,7 +28073,7 @@ var Plan2 = ({
27775
28073
  $boxShadow: cardBoxShadow
27776
28074
  },
27777
28075
  children: [
27778
- /* @__PURE__ */ jsxs49(
28076
+ /* @__PURE__ */ jsxs50(
27779
28077
  Flex,
27780
28078
  {
27781
28079
  $flexDirection: "column",
@@ -27786,7 +28084,7 @@ var Plan2 = ({
27786
28084
  $borderStyle: "solid",
27787
28085
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27788
28086
  children: [
27789
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
28087
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
27790
28088
  Text,
27791
28089
  {
27792
28090
  as: "h3",
@@ -27795,8 +28093,8 @@ var Plan2 = ({
27795
28093
  children: plan.name
27796
28094
  }
27797
28095
  ) }),
27798
- layout.plans.description.isVisible && /* @__PURE__ */ jsx64(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx64(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
27799
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsxs49(
28096
+ layout.plans.description.isVisible && /* @__PURE__ */ jsx65(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx65(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
28097
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsxs50(
27800
28098
  Text,
27801
28099
  {
27802
28100
  "data-testid": "sch-plan-price",
@@ -27812,14 +28110,14 @@ var Plan2 = ({
27812
28110
  currency: planCurrency,
27813
28111
  testSignificantDigits: false
27814
28112
  }) : formatCurrency(planPrice ?? 0, planCurrency),
27815
- !plan.custom && !isFreePlan && /* @__PURE__ */ jsxs49("sub", { children: [
28113
+ !plan.custom && !isFreePlan && /* @__PURE__ */ jsxs50("sub", { children: [
27816
28114
  "/",
27817
28115
  showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? t4("month, billed yearly") : showAsMonthlyPrices && selectedPeriod === "quarter" ? t4("month, billed quarterly") : t4(selectedPeriod)
27818
28116
  ] })
27819
28117
  ]
27820
28118
  }
27821
28119
  ) }),
27822
- showCredits && credits.length > 0 && /* @__PURE__ */ jsx64(
28120
+ showCredits && credits.length > 0 && /* @__PURE__ */ jsx65(
27823
28121
  Flex,
27824
28122
  {
27825
28123
  as: "ul",
@@ -27831,8 +28129,8 @@ var Plan2 = ({
27831
28129
  $margin: 0,
27832
28130
  $listStyle: "none",
27833
28131
  children: credits.map((credit, idx) => {
27834
- return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
27835
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx64(
28132
+ return /* @__PURE__ */ jsxs50(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28133
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx65(
27836
28134
  Icon3,
27837
28135
  {
27838
28136
  "data-testid": "sch-feature-icon",
@@ -27842,13 +28140,13 @@ var Plan2 = ({
27842
28140
  rounded: true
27843
28141
  }
27844
28142
  ),
27845
- credit.name && /* @__PURE__ */ jsx64(
28143
+ credit.name && /* @__PURE__ */ jsx65(
27846
28144
  Flex,
27847
28145
  {
27848
28146
  $flexDirection: "column",
27849
28147
  $justifyContent: "center",
27850
28148
  $gap: "0.5rem",
27851
- children: /* @__PURE__ */ jsx64(
28149
+ children: /* @__PURE__ */ jsx65(
27852
28150
  PlanCreditText,
27853
28151
  {
27854
28152
  credit,
@@ -27861,7 +28159,7 @@ var Plan2 = ({
27861
28159
  })
27862
28160
  }
27863
28161
  ),
27864
- isActivePlan && /* @__PURE__ */ jsx64(
28162
+ isActivePlan && /* @__PURE__ */ jsx65(
27865
28163
  Flex,
27866
28164
  {
27867
28165
  "data-testid": "sch-plan-active",
@@ -27871,7 +28169,7 @@ var Plan2 = ({
27871
28169
  $backgroundColor: settings.theme.primary,
27872
28170
  $borderRadius: "9999px",
27873
28171
  $padding: "0.125rem 0.85rem",
27874
- children: /* @__PURE__ */ jsx64(
28172
+ children: /* @__PURE__ */ jsx65(
27875
28173
  Text,
27876
28174
  {
27877
28175
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27884,7 +28182,7 @@ var Plan2 = ({
27884
28182
  ]
27885
28183
  }
27886
28184
  ),
27887
- /* @__PURE__ */ jsxs49(
28185
+ /* @__PURE__ */ jsxs50(
27888
28186
  Flex,
27889
28187
  {
27890
28188
  $flexDirection: "column",
@@ -27893,7 +28191,7 @@ var Plan2 = ({
27893
28191
  $gap: `${cardPadding}rem`,
27894
28192
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27895
28193
  children: [
27896
- layout.plans.showEntitlements && /* @__PURE__ */ jsxs49(
28194
+ layout.plans.showEntitlements && /* @__PURE__ */ jsxs50(
27897
28195
  Flex,
27898
28196
  {
27899
28197
  as: "ul",
@@ -27904,14 +28202,14 @@ var Plan2 = ({
27904
28202
  $margin: 0,
27905
28203
  $listStyle: "none",
27906
28204
  children: [
27907
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx64(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx64(Text, { children: t4("Everything in", {
28205
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx65(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx65(Text, { children: t4("Everything in", {
27908
28206
  plan: plans[index - 1].name
27909
28207
  }) }) }),
27910
28208
  (plan.entitlements ?? []).reduce(
27911
28209
  (acc, entitlement, idx) => {
27912
28210
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
27913
28211
  acc.push(
27914
- /* @__PURE__ */ jsx64(
28212
+ /* @__PURE__ */ jsx65(
27915
28213
  Entitlement2,
27916
28214
  {
27917
28215
  entitlement,
@@ -27929,7 +28227,7 @@ var Plan2 = ({
27929
28227
  },
27930
28228
  []
27931
28229
  ),
27932
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx64(
28230
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx65(
27933
28231
  ExpandListToggle,
27934
28232
  {
27935
28233
  as: "li",
@@ -27944,7 +28242,7 @@ var Plan2 = ({
27944
28242
  ]
27945
28243
  }
27946
28244
  ),
27947
- isActivePlan ? /* @__PURE__ */ jsxs49(
28245
+ isActivePlan ? /* @__PURE__ */ jsxs50(
27948
28246
  Flex,
27949
28247
  {
27950
28248
  $justifyContent: "center",
@@ -27952,7 +28250,7 @@ var Plan2 = ({
27952
28250
  $gap: "0.25rem",
27953
28251
  $padding: "0.625rem 0",
27954
28252
  children: [
27955
- /* @__PURE__ */ jsx64(
28253
+ /* @__PURE__ */ jsx65(
27956
28254
  Icon3,
27957
28255
  {
27958
28256
  name: "check-rounded",
@@ -27960,11 +28258,11 @@ var Plan2 = ({
27960
28258
  color: settings.theme.primary
27961
28259
  }
27962
28260
  ),
27963
- /* @__PURE__ */ jsx64(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
28261
+ /* @__PURE__ */ jsx65(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
27964
28262
  ]
27965
28263
  }
27966
- ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27967
- /* @__PURE__ */ jsx64(
28264
+ ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs50(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28265
+ /* @__PURE__ */ jsx65(
27968
28266
  Button,
27969
28267
  {
27970
28268
  type: "button",
@@ -28002,10 +28300,10 @@ var Plan2 = ({
28002
28300
  }
28003
28301
  },
28004
28302
  $fullWidth: true,
28005
- children: plan.custom ? plan.customPlanConfig?.ctaText ?? t4("Talk to support") : !plan.valid ? /* @__PURE__ */ jsx64(Text, { as: Box, $align: "center", children: t4("Over plan limit") }) : t4("Choose plan")
28303
+ children: plan.custom ? plan.customPlanConfig?.ctaText ?? t4("Talk to support") : !plan.valid ? /* @__PURE__ */ jsx65(Text, { as: Box, $align: "center", children: t4("Over plan limit") }) : t4("Choose plan")
28006
28304
  }
28007
28305
  ),
28008
- !plan.valid && /* @__PURE__ */ jsx64(UsageViolationText, { violations: plan.usageViolations })
28306
+ !plan.valid && /* @__PURE__ */ jsx65(UsageViolationText, { violations: plan.usageViolations })
28009
28307
  ] })
28010
28308
  ]
28011
28309
  }
@@ -28016,7 +28314,7 @@ var Plan2 = ({
28016
28314
  };
28017
28315
 
28018
28316
  // src/components/elements/pricing-table/PricingTable.tsx
28019
- import { Fragment as Fragment30, jsx as jsx65, jsxs as jsxs50 } from "react/jsx-runtime";
28317
+ import { Fragment as Fragment30, jsx as jsx66, jsxs as jsxs51 } from "react/jsx-runtime";
28020
28318
  var resolveDesignProps8 = (props) => {
28021
28319
  return {
28022
28320
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -28081,11 +28379,11 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28081
28379
  },
28082
28380
  []
28083
28381
  );
28084
- const [selectedPeriod, setSelectedPeriod] = useState21(
28382
+ const [selectedPeriod, setSelectedPeriod] = useState22(
28085
28383
  () => getSubscriptionPeriod(data?.company?.billingSubscription) || data?.company?.plan?.planPeriod || "month"
28086
28384
  );
28087
28385
  const { currencies, invalidFilterEntries } = useAvailableCurrenciesWithInvalid();
28088
- const [selectedCurrency, setSelectedCurrency] = useState21(
28386
+ const [selectedCurrency, setSelectedCurrency] = useState22(
28089
28387
  () => currencies[0] ?? DEFAULT_CURRENCY
28090
28388
  );
28091
28389
  if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
@@ -28103,25 +28401,25 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28103
28401
  } = useAvailablePlans(selectedPeriod, {
28104
28402
  useSelectedPeriod: showPeriodToggle
28105
28403
  });
28106
- const plans = useMemo34(
28404
+ const plans = useMemo35(
28107
28405
  () => hasCurrency ? allPlans.filter(
28108
28406
  (plan) => planSupportsCurrency(plan, selectedCurrency)
28109
28407
  ) : allPlans,
28110
28408
  [allPlans, hasCurrency, selectedCurrency]
28111
28409
  );
28112
- const addOns = useMemo34(
28410
+ const addOns = useMemo35(
28113
28411
  () => hasCurrency ? allAddOns.filter(
28114
28412
  (addOn) => planSupportsCurrency(addOn, selectedCurrency)
28115
28413
  ) : allAddOns,
28116
28414
  [allAddOns, hasCurrency, selectedCurrency]
28117
28415
  );
28118
- useEffect8(() => {
28416
+ useEffect9(() => {
28119
28417
  if (typeof data?.component === "undefined") {
28120
28418
  hydratePublic();
28121
28419
  }
28122
28420
  }, [data?.component, hydratePublic]);
28123
28421
  if (isPending) {
28124
- return /* @__PURE__ */ jsx65(
28422
+ return /* @__PURE__ */ jsx66(
28125
28423
  Flex,
28126
28424
  {
28127
28425
  $width: "100%",
@@ -28129,12 +28427,12 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28129
28427
  $alignItems: "center",
28130
28428
  $justifyContent: "center",
28131
28429
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28132
- children: /* @__PURE__ */ jsx65(Loader, { "aria-label": "loading", $size: "2xl" })
28430
+ children: /* @__PURE__ */ jsx66(Loader, { "aria-label": "loading", $size: "2xl" })
28133
28431
  }
28134
28432
  );
28135
28433
  }
28136
28434
  if (hasNoUsableCurrency) {
28137
- return /* @__PURE__ */ jsx65(Container, { children: /* @__PURE__ */ jsx65(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx65(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28435
+ return /* @__PURE__ */ jsx66(Container, { children: /* @__PURE__ */ jsx66(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx66(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28138
28436
  }
28139
28437
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28140
28438
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -28143,7 +28441,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28143
28441
  rest.callToActionTarget
28144
28442
  );
28145
28443
  const Wrapper = typeof data?.component === "undefined" ? Container : Fragment29;
28146
- return /* @__PURE__ */ jsx65(Wrapper, { children: /* @__PURE__ */ jsxs50(
28444
+ return /* @__PURE__ */ jsx66(Wrapper, { children: /* @__PURE__ */ jsxs51(
28147
28445
  FussyChild,
28148
28446
  {
28149
28447
  ref,
@@ -28153,8 +28451,8 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28153
28451
  $flexDirection: "column",
28154
28452
  $gap: "2rem",
28155
28453
  children: [
28156
- /* @__PURE__ */ jsxs50(Box, { children: [
28157
- /* @__PURE__ */ jsxs50(
28454
+ /* @__PURE__ */ jsxs51(Box, { children: [
28455
+ /* @__PURE__ */ jsxs51(
28158
28456
  Flex,
28159
28457
  {
28160
28458
  $flexDirection: "column",
@@ -28169,7 +28467,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28169
28467
  }
28170
28468
  },
28171
28469
  children: [
28172
- /* @__PURE__ */ jsx65(
28470
+ /* @__PURE__ */ jsx66(
28173
28471
  Text,
28174
28472
  {
28175
28473
  as: "h2",
@@ -28178,8 +28476,8 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28178
28476
  children: props.header.isVisible && props.plans.isVisible && plans.length > 0 && t4("Plans")
28179
28477
  }
28180
28478
  ),
28181
- /* @__PURE__ */ jsxs50(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28182
- showCurrencySelector && /* @__PURE__ */ jsx65(
28479
+ /* @__PURE__ */ jsxs51(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28480
+ showCurrencySelector && /* @__PURE__ */ jsx66(
28183
28481
  CurrencyToggle,
28184
28482
  {
28185
28483
  currencies,
@@ -28187,7 +28485,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28187
28485
  onSelect: setSelectedCurrency
28188
28486
  }
28189
28487
  ),
28190
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx65(
28488
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx66(
28191
28489
  PeriodToggle,
28192
28490
  {
28193
28491
  options: periods,
@@ -28204,7 +28502,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28204
28502
  ]
28205
28503
  }
28206
28504
  ),
28207
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx65(
28505
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx66(
28208
28506
  Box,
28209
28507
  {
28210
28508
  as: "ul",
@@ -28217,7 +28515,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28217
28515
  $listStyle: "none",
28218
28516
  children: plans.map((plan, index, self2) => {
28219
28517
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28220
- return /* @__PURE__ */ jsx65(
28518
+ return /* @__PURE__ */ jsx66(
28221
28519
  Plan2,
28222
28520
  {
28223
28521
  plan,
@@ -28239,14 +28537,14 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28239
28537
  }
28240
28538
  )
28241
28539
  ] }),
28242
- /* @__PURE__ */ jsx65(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs50(Fragment30, { children: [
28243
- props.header.isVisible && /* @__PURE__ */ jsx65(
28540
+ /* @__PURE__ */ jsx66(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment30, { children: [
28541
+ props.header.isVisible && /* @__PURE__ */ jsx66(
28244
28542
  Flex,
28245
28543
  {
28246
28544
  $justifyContent: "space-between",
28247
28545
  $alignItems: "center",
28248
28546
  $marginBottom: "1rem",
28249
- children: /* @__PURE__ */ jsx65(
28547
+ children: /* @__PURE__ */ jsx66(
28250
28548
  Text,
28251
28549
  {
28252
28550
  as: "h2",
@@ -28257,7 +28555,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28257
28555
  )
28258
28556
  }
28259
28557
  ),
28260
- /* @__PURE__ */ jsx65(
28558
+ /* @__PURE__ */ jsx66(
28261
28559
  Box,
28262
28560
  {
28263
28561
  as: "ul",
@@ -28269,7 +28567,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28269
28567
  $listStyle: "none",
28270
28568
  children: addOns.map((addOn, index) => {
28271
28569
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28272
- return /* @__PURE__ */ jsx65(
28570
+ return /* @__PURE__ */ jsx66(
28273
28571
  AddOn2,
28274
28572
  {
28275
28573
  addOn,
@@ -28297,7 +28595,7 @@ PricingTable.displayName = "PricingTable";
28297
28595
 
28298
28596
  // src/components/elements/text/Text.tsx
28299
28597
  import { forwardRef as forwardRef16 } from "react";
28300
- import { jsx as jsx66 } from "react/jsx-runtime";
28598
+ import { jsx as jsx67 } from "react/jsx-runtime";
28301
28599
  var resolveDesignProps9 = (props) => {
28302
28600
  return {
28303
28601
  text: {
@@ -28309,7 +28607,7 @@ var resolveDesignProps9 = (props) => {
28309
28607
  };
28310
28608
  var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
28311
28609
  const props = resolveDesignProps9(rest);
28312
- return /* @__PURE__ */ jsx66(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx66(
28610
+ return /* @__PURE__ */ jsx67(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx67(
28313
28611
  Text,
28314
28612
  {
28315
28613
  display: props.text.fontStyle,
@@ -28322,8 +28620,8 @@ var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
28322
28620
  TextElement.displayName = "Text";
28323
28621
 
28324
28622
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
28325
- import { forwardRef as forwardRef17, useMemo as useMemo35 } from "react";
28326
- import { jsx as jsx67 } from "react/jsx-runtime";
28623
+ import { forwardRef as forwardRef17, useMemo as useMemo36 } from "react";
28624
+ import { jsx as jsx68 } from "react/jsx-runtime";
28327
28625
  var buttonStyles = {
28328
28626
  primary: {
28329
28627
  color: "primary",
@@ -28353,13 +28651,13 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28353
28651
  const props = resolveDesignProps10(rest);
28354
28652
  const { t: t4 } = useTranslation();
28355
28653
  const { data, setLayout } = useEmbed();
28356
- const hasActiveSubscription = useMemo35(() => {
28654
+ const hasActiveSubscription = useMemo36(() => {
28357
28655
  return data?.subscription && data.subscription.status !== "cancelled" && !data.subscription.cancelAt;
28358
28656
  }, [data?.subscription]);
28359
28657
  if (!hasActiveSubscription) {
28360
28658
  return null;
28361
28659
  }
28362
- return /* @__PURE__ */ jsx67(
28660
+ return /* @__PURE__ */ jsx68(
28363
28661
  Element,
28364
28662
  {
28365
28663
  as: Flex,
@@ -28367,7 +28665,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28367
28665
  className,
28368
28666
  $flexDirection: "column",
28369
28667
  $gap: "2rem",
28370
- children: /* @__PURE__ */ jsx67(
28668
+ children: /* @__PURE__ */ jsx68(
28371
28669
  Button,
28372
28670
  {
28373
28671
  type: "button",
@@ -28388,8 +28686,8 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28388
28686
  UnsubscribeButton.displayName = "UnsubscribeButton";
28389
28687
 
28390
28688
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
28391
- import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect9, useMemo as useMemo36, useState as useState22 } from "react";
28392
- import { jsx as jsx68, jsxs as jsxs51 } from "react/jsx-runtime";
28689
+ import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect10, useMemo as useMemo37, useState as useState23 } from "react";
28690
+ import { jsx as jsx69, jsxs as jsxs52 } from "react/jsx-runtime";
28393
28691
  function resolveDesignProps11(props) {
28394
28692
  return {
28395
28693
  header: {
@@ -28413,10 +28711,10 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28413
28711
  const { t: t4 } = useTranslation();
28414
28712
  const { data, settings, getUpcomingInvoice } = useEmbed();
28415
28713
  const isLightBackground = useIsLightBackground();
28416
- const [isLoading, setIsLoading] = useState22(false);
28417
- const [error, setError] = useState22();
28418
- const [upcomingInvoice, setUpcomingInvoice] = useState22(data?.upcomingInvoice);
28419
- const discounts = useMemo36(() => {
28714
+ const [isLoading, setIsLoading] = useState23(false);
28715
+ const [error, setError] = useState23();
28716
+ const [upcomingInvoice, setUpcomingInvoice] = useState23(data?.upcomingInvoice);
28717
+ const discounts = useMemo37(() => {
28420
28718
  return (data?.subscription?.discounts || []).filter(
28421
28719
  (discount) => (
28422
28720
  // Only surface discounts that are currently active and actually
@@ -28450,15 +28748,15 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28450
28748
  }
28451
28749
  }
28452
28750
  }, [data?.component?.id, data?.subscription, getUpcomingInvoice]);
28453
- useEffect9(() => {
28751
+ useEffect10(() => {
28454
28752
  getInvoice();
28455
28753
  }, [getInvoice]);
28456
- useEffect9(() => {
28754
+ useEffect10(() => {
28457
28755
  if (data?.upcomingInvoice) {
28458
28756
  setUpcomingInvoice(data.upcomingInvoice);
28459
28757
  }
28460
28758
  }, [data?.upcomingInvoice]);
28461
- const { currency, applied, remaining } = useMemo36(() => {
28759
+ const { currency, applied, remaining } = useMemo37(() => {
28462
28760
  const currency2 = upcomingInvoice?.currency;
28463
28761
  const startingBalance = upcomingInvoice?.startingBalance ?? 0;
28464
28762
  const endingBalance = upcomingInvoice?.endingBalance ?? 0;
@@ -28477,9 +28775,9 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28477
28775
  if (!data?.subscription || data.subscription.cancelAt) {
28478
28776
  return null;
28479
28777
  }
28480
- return /* @__PURE__ */ jsxs51(Element, { ref, className, children: [
28481
- /* @__PURE__ */ jsx68(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx68(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
28482
- error ? /* @__PURE__ */ jsxs51(
28778
+ return /* @__PURE__ */ jsxs52(Element, { ref, className, children: [
28779
+ /* @__PURE__ */ jsx69(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx69(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
28780
+ error ? /* @__PURE__ */ jsxs52(
28483
28781
  Flex,
28484
28782
  {
28485
28783
  as: TransitionBox,
@@ -28488,8 +28786,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28488
28786
  $alignItems: "center",
28489
28787
  $gap: "1rem",
28490
28788
  children: [
28491
- /* @__PURE__ */ jsx68(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28492
- /* @__PURE__ */ jsx68(
28789
+ /* @__PURE__ */ jsx69(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28790
+ /* @__PURE__ */ jsx69(
28493
28791
  Button,
28494
28792
  {
28495
28793
  type: "button",
@@ -28502,28 +28800,28 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28502
28800
  )
28503
28801
  ]
28504
28802
  }
28505
- ) : !isLoading && /* @__PURE__ */ jsx68(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs51(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28506
- props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ jsxs51(Text, { display: props.header.fontStyle, children: [
28803
+ ) : !isLoading && /* @__PURE__ */ jsx69(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28804
+ props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ jsxs52(Text, { display: props.header.fontStyle, children: [
28507
28805
  props.header.prefix,
28508
28806
  " ",
28509
28807
  toPrettyDate(upcomingInvoice.dueDate)
28510
28808
  ] }),
28511
- /* @__PURE__ */ jsxs51(
28809
+ /* @__PURE__ */ jsxs52(
28512
28810
  Flex,
28513
28811
  {
28514
28812
  $justifyContent: "space-between",
28515
28813
  $alignItems: "start",
28516
28814
  $gap: "1rem",
28517
28815
  children: [
28518
- props.price.isVisible && /* @__PURE__ */ jsx68(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28816
+ props.price.isVisible && /* @__PURE__ */ jsx69(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28519
28817
  upcomingInvoice.amountDue,
28520
28818
  upcomingInvoice.currency
28521
28819
  ) }),
28522
- /* @__PURE__ */ jsx68(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx68(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28820
+ /* @__PURE__ */ jsx69(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx69(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28523
28821
  ]
28524
28822
  }
28525
28823
  ),
28526
- hasApplied && /* @__PURE__ */ jsxs51(
28824
+ hasApplied && /* @__PURE__ */ jsxs52(
28527
28825
  Flex,
28528
28826
  {
28529
28827
  as: TransitionBox,
@@ -28531,12 +28829,12 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28531
28829
  $alignItems: "start",
28532
28830
  $gap: "1rem",
28533
28831
  children: [
28534
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28535
- /* @__PURE__ */ jsx68(Text, { children: formatCurrency(-applied, currency) })
28832
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28833
+ /* @__PURE__ */ jsx69(Text, { children: formatCurrency(-applied, currency) })
28536
28834
  ]
28537
28835
  }
28538
28836
  ),
28539
- hasBalance && /* @__PURE__ */ jsxs51(
28837
+ hasBalance && /* @__PURE__ */ jsxs52(
28540
28838
  Flex,
28541
28839
  {
28542
28840
  as: TransitionBox,
@@ -28544,20 +28842,20 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28544
28842
  $alignItems: "start",
28545
28843
  $gap: "1rem",
28546
28844
  children: [
28547
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28548
- /* @__PURE__ */ jsx68(Text, { children: formatCurrency(remaining, currency) })
28845
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28846
+ /* @__PURE__ */ jsx69(Text, { children: formatCurrency(remaining, currency) })
28549
28847
  ]
28550
28848
  }
28551
28849
  ),
28552
- discounts.length > 0 && /* @__PURE__ */ jsxs51(
28850
+ discounts.length > 0 && /* @__PURE__ */ jsxs52(
28553
28851
  Flex,
28554
28852
  {
28555
28853
  $justifyContent: "space-between",
28556
28854
  $alignItems: "start",
28557
28855
  $gap: "1rem",
28558
28856
  children: [
28559
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Discount") }),
28560
- /* @__PURE__ */ jsx68(
28857
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Discount") }),
28858
+ /* @__PURE__ */ jsx69(
28561
28859
  Flex,
28562
28860
  {
28563
28861
  $flexDirection: "column",
@@ -28573,13 +28871,13 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28573
28871
  discount?.currency
28574
28872
  )
28575
28873
  });
28576
- return /* @__PURE__ */ jsxs51(
28874
+ return /* @__PURE__ */ jsxs52(
28577
28875
  Flex,
28578
28876
  {
28579
28877
  $alignItems: "center",
28580
28878
  $gap: "0.5rem",
28581
28879
  children: [
28582
- discount.customerFacingCode && /* @__PURE__ */ jsx68(
28880
+ discount.customerFacingCode && /* @__PURE__ */ jsx69(
28583
28881
  Flex,
28584
28882
  {
28585
28883
  $alignItems: "center",
@@ -28588,7 +28886,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28588
28886
  $borderStyle: "solid",
28589
28887
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
28590
28888
  $borderRadius: "0.3125rem",
28591
- children: /* @__PURE__ */ jsx68(
28889
+ children: /* @__PURE__ */ jsx69(
28592
28890
  Text,
28593
28891
  {
28594
28892
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28598,7 +28896,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28598
28896
  )
28599
28897
  }
28600
28898
  ),
28601
- /* @__PURE__ */ jsx68(Box, { children: /* @__PURE__ */ jsx68(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28899
+ /* @__PURE__ */ jsx69(Box, { children: /* @__PURE__ */ jsx69(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28602
28900
  discount: label,
28603
28901
  count: discount.durationInMonths
28604
28902
  }) : label }) })
@@ -28612,12 +28910,12 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28612
28910
  ]
28613
28911
  }
28614
28912
  )
28615
- ] }) : /* @__PURE__ */ jsx68(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28913
+ ] }) : /* @__PURE__ */ jsx69(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28616
28914
  ] });
28617
28915
  });
28618
28916
  UpcomingBill.displayName = "UpcomingBill";
28619
28917
 
28620
- // node_modules/.pnpm/pako@3.0.1/node_modules/pako/dist/pako.mjs
28918
+ // node_modules/.pnpm/pako@3.0.2/node_modules/pako/dist/pako.mjs
28621
28919
  var Z_FIXED = 4;
28622
28920
  var Z_BINARY = 0;
28623
28921
  var Z_TEXT = 1;
@@ -29090,7 +29388,7 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
29090
29388
  max_blindex = build_bl_tree(s);
29091
29389
  opt_lenb = s.opt_len + 3 + 7 >>> 3;
29092
29390
  static_lenb = s.static_len + 3 + 7 >>> 3;
29093
- if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
29391
+ if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
29094
29392
  } else opt_lenb = static_lenb = stored_len + 5;
29095
29393
  if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
29096
29394
  else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
@@ -30331,7 +30629,7 @@ var inflate$1 = (strm, flush) => {
30331
30629
  hold += input[next2++] << bits;
30332
30630
  bits += 8;
30333
30631
  }
30334
- if (state.head) state.head.time = hold;
30632
+ if (state.head) state.head.time = hold >>> 0;
30335
30633
  if (state.flags & 512 && state.wrap & 4) {
30336
30634
  hbuf[0] = hold & 255;
30337
30635
  hbuf[1] = hold >>> 8 & 255;
@@ -31248,7 +31546,7 @@ function inflate(input, options = {}) {
31248
31546
  }
31249
31547
 
31250
31548
  // src/components/embed/Embed.tsx
31251
- import { useContext as useContext6, useEffect as useEffect10, useMemo as useMemo37 } from "react";
31549
+ import { useContext as useContext6, useEffect as useEffect11, useMemo as useMemo38 } from "react";
31252
31550
 
31253
31551
  // src/components/embed/renderer.ts
31254
31552
  import { createElement as createElement5 } from "react";
@@ -31328,11 +31626,11 @@ function createRenderer(options) {
31328
31626
  }
31329
31627
 
31330
31628
  // src/components/embed/Embed.tsx
31331
- import { jsx as jsx69, jsxs as jsxs52 } from "react/jsx-runtime";
31629
+ import { jsx as jsx70, jsxs as jsxs53 } from "react/jsx-runtime";
31332
31630
  var renderer = createRenderer();
31333
31631
  var Loading = () => {
31334
31632
  const { settings } = useEmbed();
31335
- return /* @__PURE__ */ jsx69(
31633
+ return /* @__PURE__ */ jsx70(
31336
31634
  Flex,
31337
31635
  {
31338
31636
  $width: "100%",
@@ -31340,13 +31638,13 @@ var Loading = () => {
31340
31638
  $alignItems: "center",
31341
31639
  $justifyContent: "center",
31342
31640
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
31343
- children: /* @__PURE__ */ jsx69(Loader, { $color: settings.theme.primary, $size: "2xl" })
31641
+ children: /* @__PURE__ */ jsx70(Loader, { $color: settings.theme.primary, $size: "2xl" })
31344
31642
  }
31345
31643
  );
31346
31644
  };
31347
31645
  var Error2 = ({ message }) => {
31348
31646
  const { settings } = useEmbed();
31349
- return /* @__PURE__ */ jsxs52(
31647
+ return /* @__PURE__ */ jsxs53(
31350
31648
  Flex,
31351
31649
  {
31352
31650
  $flexDirection: "column",
@@ -31357,8 +31655,8 @@ var Error2 = ({ message }) => {
31357
31655
  $alignItems: "center",
31358
31656
  $justifyContent: "center",
31359
31657
  children: [
31360
- /* @__PURE__ */ jsx69(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx69(Text, { display: "heading1", children: "Error" }) }),
31361
- /* @__PURE__ */ jsx69(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx69(Text, { children: message }) })
31658
+ /* @__PURE__ */ jsx70(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx70(Text, { display: "heading1", children: "Error" }) }),
31659
+ /* @__PURE__ */ jsx70(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx70(Text, { children: message }) })
31362
31660
  ]
31363
31661
  }
31364
31662
  );
@@ -31376,7 +31674,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31376
31674
  setBuilderSettings
31377
31675
  } = useEmbed();
31378
31676
  const compressedAst = data?.component?.ast;
31379
- const { children, parsedSettings, parseError } = useMemo37(() => {
31677
+ const { children, parsedSettings, parseError } = useMemo38(() => {
31380
31678
  let children2 = null;
31381
31679
  let parsedSettings2 = null;
31382
31680
  let parseError2 = null;
@@ -31408,22 +31706,22 @@ var SchematicEmbed = ({ id, accessToken }) => {
31408
31706
  parseError: parseError2
31409
31707
  };
31410
31708
  }, [compressedAst]);
31411
- useEffect10(() => {
31709
+ useEffect11(() => {
31412
31710
  if (accessToken) {
31413
31711
  setAccessToken(accessToken);
31414
31712
  }
31415
31713
  }, [accessToken, setAccessToken]);
31416
- useEffect10(() => {
31714
+ useEffect11(() => {
31417
31715
  if (id && stale) {
31418
31716
  hydrateComponent(id);
31419
31717
  }
31420
31718
  }, [id, hydrateComponent, stale]);
31421
- useEffect10(() => {
31719
+ useEffect11(() => {
31422
31720
  if (parsedSettings) {
31423
31721
  setBuilderSettings(parsedSettings);
31424
31722
  }
31425
31723
  }, [parsedSettings, setBuilderSettings]);
31426
- useEffect10(() => {
31724
+ useEffect11(() => {
31427
31725
  if (parseError) {
31428
31726
  setError(parseError);
31429
31727
  }
@@ -31432,13 +31730,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
31432
31730
  return stub();
31433
31731
  }
31434
31732
  if (error) {
31435
- return /* @__PURE__ */ jsx69(Error2, { message: error.message });
31733
+ return /* @__PURE__ */ jsx70(Error2, { message: error.message });
31436
31734
  }
31437
31735
  if (accessToken?.length === 0) {
31438
- return /* @__PURE__ */ jsx69(Error2, { message: "Please provide an access token." });
31736
+ return /* @__PURE__ */ jsx70(Error2, { message: "Please provide an access token." });
31439
31737
  }
31440
31738
  if (!accessToken?.startsWith("token_")) {
31441
- return /* @__PURE__ */ jsx69(
31739
+ return /* @__PURE__ */ jsx70(
31442
31740
  Error2,
31443
31741
  {
31444
31742
  message: 'Invalid access token; your temporary access token will start with "token_".'
@@ -31446,9 +31744,9 @@ var SchematicEmbed = ({ id, accessToken }) => {
31446
31744
  );
31447
31745
  }
31448
31746
  if (isPending) {
31449
- return /* @__PURE__ */ jsx69(Loading, {});
31747
+ return /* @__PURE__ */ jsx70(Loading, {});
31450
31748
  }
31451
- return /* @__PURE__ */ jsx69(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx69(Loading, {}) });
31749
+ return /* @__PURE__ */ jsx70(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx70(Loading, {}) });
31452
31750
  };
31453
31751
  export {
31454
31752
  AddOns,