@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.browser.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.browser.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.browser.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.browser.esm.js
5914
5928
  var r;
5915
5929
  var i;
5916
5930
  var c = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
@@ -6686,7 +6700,7 @@ var It = `__sc-${c}__`;
6686
6700
  var Rt = `:not(style[${c}])`;
6687
6701
  var jt = `style[${c}]`;
6688
6702
 
6689
- // 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
6703
+ // 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
6690
6704
  var iconsList = {
6691
6705
  "workos": 61697,
6692
6706
  "wind": 61698,
@@ -6823,7 +6837,7 @@ var FONT_FACE_RULE = `@font-face {
6823
6837
  src: url(data:font/truetype;charset=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XZyb24tdXANY2hldnJvbi1yaWdodAxjaGV2cm9uLWxlZnQMY2hldnJvbi1kb3duBWNoZWNrDWNoZWNrLXJvdW5kZWQHY2FzaGFwcAZidXJnZXIEYnVsYgdib29sZWFuCmJvb2xlYW4tb24IYm9va21hcmsFYm9hcmQEYmVsbARiYW5rCWJhY2tzcGFjZQVhdXRoMAxhcnJvdy11cHdhcmQIYXJyb3ctdXALYXJyb3ctcmlnaHQKYXJyb3ctbGVmdAphcnJvdy1kb3duDGFycm93LWN1cnZlZA9hcnJvdy1hbmFseXRpY3MIYXBwbGVwYXkEYW1leAlhbWF6b25wYXkFYWxhcm0AAA==) format("truetype");
6824
6838
  }`;
6825
6839
 
6826
- // 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
6840
+ // 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
6827
6841
  var IconStyles = St`
6828
6842
  ${FONT_FACE_RULE};
6829
6843
 
@@ -6847,13 +6861,13 @@ var StyledIcon = gt.i`
6847
6861
  }
6848
6862
  `;
6849
6863
 
6850
- // 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
6864
+ // 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
6851
6865
  var Icon = ({ name, className = "", ...rest }) => {
6852
6866
  return _jsx(StyledIcon, { className: `icon icon-${name} ${className}`, "$name": name, ...rest });
6853
6867
  };
6854
6868
 
6855
6869
  // src/context/EmbedProvider.tsx
6856
- var import_debounce = __toESM(require_debounce());
6870
+ var import_debounce2 = __toESM(require_debounce());
6857
6871
  var import_merge3 = __toESM(require_merge());
6858
6872
  import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
6859
6873
 
@@ -7442,6 +7456,7 @@ var BillingCreditGrantReason = {
7442
7456
  BillingCreditAutoTopup: "billing_credit_auto_topup",
7443
7457
  Free: "free",
7444
7458
  Plan: "plan",
7459
+ PostpaidOverdraft: "postpaid_overdraft",
7445
7460
  Purchased: "purchased",
7446
7461
  Rollover: "rollover"
7447
7462
  };
@@ -9139,6 +9154,8 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9139
9154
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["metered_yearly_price"]),
9140
9155
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
9141
9156
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
9157
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON(json["overage_billing_cadence"]),
9158
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON(json["overage_invoice_anchor"]),
9142
9159
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
9143
9160
  planId: json["plan_id"],
9144
9161
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
@@ -11703,17 +11720,17 @@ var JSONApiResponse2 = class {
11703
11720
 
11704
11721
  // src/api/componentspublic/models/BillingArrearsAnchor.ts
11705
11722
  function BillingArrearsAnchorFromJSON2(json) {
11706
- return BillingArrearsAnchorFromJSONTyped5(json, false);
11723
+ return BillingArrearsAnchorFromJSONTyped6(json, false);
11707
11724
  }
11708
- function BillingArrearsAnchorFromJSONTyped5(json, ignoreDiscriminator) {
11725
+ function BillingArrearsAnchorFromJSONTyped6(json, ignoreDiscriminator) {
11709
11726
  return json;
11710
11727
  }
11711
11728
 
11712
11729
  // src/api/componentspublic/models/BillingArrearsCadence.ts
11713
11730
  function BillingArrearsCadenceFromJSON2(json) {
11714
- return BillingArrearsCadenceFromJSONTyped6(json, false);
11731
+ return BillingArrearsCadenceFromJSONTyped7(json, false);
11715
11732
  }
11716
- function BillingArrearsCadenceFromJSONTyped6(json, ignoreDiscriminator) {
11733
+ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11717
11734
  return json;
11718
11735
  }
11719
11736
 
@@ -12656,6 +12673,8 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
12656
12673
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["metered_yearly_price"]),
12657
12674
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON2(json["metric_period"]),
12658
12675
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON2(json["metric_period_month_reset"]),
12676
+ overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON2(json["overage_billing_cadence"]),
12677
+ overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON2(json["overage_invoice_anchor"]),
12659
12678
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
12660
12679
  planId: json["plan_id"],
12661
12680
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
@@ -13122,6 +13141,19 @@ function calculateTieredCost(quantity, priceTiers, tiersMode) {
13122
13141
  }
13123
13142
  return cost;
13124
13143
  }
13144
+ function calculateQuantityCost(billingPrice, quantity) {
13145
+ if (!billingPrice) {
13146
+ return 0;
13147
+ }
13148
+ if (isTieredPrice(billingPrice)) {
13149
+ return calculateTieredCost(
13150
+ quantity,
13151
+ billingPrice.priceTier,
13152
+ billingPrice.tiersMode
13153
+ );
13154
+ }
13155
+ return quantity * billingPrice.price;
13156
+ }
13125
13157
  function getEntitlementCost(entitlement, period = "month", currency) {
13126
13158
  const resolvedPeriod = period ?? "month";
13127
13159
  const source = currency ? getEntitlementPrice(entitlement, resolvedPeriod, currency) : selectPriceForPeriod(
@@ -14186,6 +14218,20 @@ function modifyDate(date, days) {
14186
14218
  return copy3;
14187
14219
  }
14188
14220
 
14221
+ // src/utils/debounce.ts
14222
+ var import_debounce = __toESM(require_debounce());
14223
+ function debounceByKey(fn, wait, settings) {
14224
+ const debouncedByKey = /* @__PURE__ */ new Map();
14225
+ return (key, ...args) => {
14226
+ let debounced = debouncedByKey.get(key);
14227
+ if (!debounced) {
14228
+ debounced = (0, import_debounce.default)(fn, wait, settings);
14229
+ debouncedByKey.set(key, debounced);
14230
+ }
14231
+ return debounced(key, ...args);
14232
+ };
14233
+ }
14234
+
14189
14235
  // src/utils/string.ts
14190
14236
  var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
14191
14237
  "BIF",
@@ -15189,7 +15235,7 @@ var reducer = (state, action) => {
15189
15235
  // src/context/EmbedProvider.tsx
15190
15236
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
15191
15237
  var getCustomHeaders = (sessionId) => ({
15192
- "X-Schematic-Components-Version": "2.25.1",
15238
+ "X-Schematic-Components-Version": "3.0.0",
15193
15239
  "X-Schematic-Session-ID": sessionId
15194
15240
  });
15195
15241
  var normalizeCurrencyFilter = (filter2) => {
@@ -15300,7 +15346,7 @@ var EmbedProvider = ({
15300
15346
  }
15301
15347
  }, [publicApi]);
15302
15348
  const debouncedHydratePublic = useMemo2(
15303
- () => (0, import_debounce.default)(
15349
+ () => (0, import_debounce2.default)(
15304
15350
  hydratePublic,
15305
15351
  FETCH_DEBOUNCE_TIMEOUT,
15306
15352
  LEADING_DEBOUNCE_SETTINGS
@@ -15326,7 +15372,7 @@ var EmbedProvider = ({
15326
15372
  }
15327
15373
  }, [checkoutApi]);
15328
15374
  const debouncedHydrate = useMemo2(
15329
- () => (0, import_debounce.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15375
+ () => (0, import_debounce2.default)(hydrate, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15330
15376
  [hydrate]
15331
15377
  );
15332
15378
  const hydrateComponent = useCallback2(
@@ -15353,7 +15399,7 @@ var EmbedProvider = ({
15353
15399
  [checkoutApi]
15354
15400
  );
15355
15401
  const debouncedHydrateComponent = useMemo2(
15356
- () => (0, import_debounce.default)(
15402
+ () => (0, import_debounce2.default)(
15357
15403
  hydrateComponent,
15358
15404
  FETCH_DEBOUNCE_TIMEOUT,
15359
15405
  LEADING_DEBOUNCE_SETTINGS
@@ -15377,7 +15423,7 @@ var EmbedProvider = ({
15377
15423
  }
15378
15424
  }, []);
15379
15425
  const debouncedHydrateExternal = useMemo2(
15380
- () => (0, import_debounce.default)(
15426
+ () => (0, import_debounce2.default)(
15381
15427
  hydrateExternal,
15382
15428
  FETCH_DEBOUNCE_TIMEOUT,
15383
15429
  LEADING_DEBOUNCE_SETTINGS
@@ -15388,7 +15434,7 @@ var EmbedProvider = ({
15388
15434
  return checkoutApi?.createSetupIntent();
15389
15435
  }, [checkoutApi]);
15390
15436
  const debouncedCreateSetupIntent = useMemo2(
15391
- () => (0, import_debounce.default)(
15437
+ () => (0, import_debounce2.default)(
15392
15438
  createSetupIntent,
15393
15439
  FETCH_DEBOUNCE_TIMEOUT,
15394
15440
  LEADING_DEBOUNCE_SETTINGS
@@ -15411,7 +15457,7 @@ var EmbedProvider = ({
15411
15457
  [checkoutApi]
15412
15458
  );
15413
15459
  const debouncedUpdatePaymentMethod = useMemo2(
15414
- () => (0, import_debounce.default)(
15460
+ () => (0, import_debounce2.default)(
15415
15461
  updatePaymentMethod,
15416
15462
  FETCH_DEBOUNCE_TIMEOUT,
15417
15463
  LEADING_DEBOUNCE_SETTINGS
@@ -15434,7 +15480,7 @@ var EmbedProvider = ({
15434
15480
  [checkoutApi]
15435
15481
  );
15436
15482
  const debouncedDeletePaymentMethod = useMemo2(
15437
- () => (0, import_debounce.default)(
15483
+ () => (0, import_debounce2.default)(
15438
15484
  deletePaymentMethod,
15439
15485
  FETCH_DEBOUNCE_TIMEOUT,
15440
15486
  LEADING_DEBOUNCE_SETTINGS
@@ -15457,7 +15503,7 @@ var EmbedProvider = ({
15457
15503
  [checkoutApi]
15458
15504
  );
15459
15505
  const debouncedCheckout = useMemo2(
15460
- () => (0, import_debounce.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15506
+ () => (0, import_debounce2.default)(checkout, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15461
15507
  [checkout]
15462
15508
  );
15463
15509
  const previewCheckout = useCallback2(
@@ -15477,7 +15523,7 @@ var EmbedProvider = ({
15477
15523
  return response;
15478
15524
  }, [checkoutApi]);
15479
15525
  const debouncedUnsubscribe = useMemo2(
15480
- () => (0, import_debounce.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15526
+ () => (0, import_debounce2.default)(unsubscribe, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15481
15527
  [unsubscribe]
15482
15528
  );
15483
15529
  const updateCustomFieldValues = useCallback2(
@@ -15521,7 +15567,7 @@ var EmbedProvider = ({
15521
15567
  [checkoutApi]
15522
15568
  );
15523
15569
  const debouncedGetUpcomingInvoice = useMemo2(
15524
- () => (0, import_debounce.default)(
15570
+ () => (0, import_debounce2.default)(
15525
15571
  getUpcomingInvoice,
15526
15572
  FETCH_DEBOUNCE_TIMEOUT,
15527
15573
  LEADING_DEBOUNCE_SETTINGS
@@ -15532,7 +15578,7 @@ var EmbedProvider = ({
15532
15578
  return checkoutApi?.fetchCustomerBalance();
15533
15579
  }, [checkoutApi]);
15534
15580
  const debouncedGetCustomerBalance = useMemo2(
15535
- () => (0, import_debounce.default)(
15581
+ () => (0, import_debounce2.default)(
15536
15582
  getCustomerBalance,
15537
15583
  FETCH_DEBOUNCE_TIMEOUT,
15538
15584
  LEADING_DEBOUNCE_SETTINGS
@@ -15543,9 +15589,37 @@ var EmbedProvider = ({
15543
15589
  return checkoutApi?.listInvoices();
15544
15590
  }, [checkoutApi]);
15545
15591
  const debouncedListInvoices = useMemo2(
15546
- () => (0, import_debounce.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15592
+ () => (0, import_debounce2.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
15547
15593
  [listInvoices]
15548
15594
  );
15595
+ const getCreditUsageByUser = useCallback2(
15596
+ async (billingCreditId, limit) => {
15597
+ return checkoutApi?.getCreditUsageByUser({ billingCreditId, limit });
15598
+ },
15599
+ [checkoutApi]
15600
+ );
15601
+ const debouncedGetCreditUsageByUser = useMemo2(
15602
+ () => debounceByKey(
15603
+ getCreditUsageByUser,
15604
+ FETCH_DEBOUNCE_TIMEOUT,
15605
+ LEADING_DEBOUNCE_SETTINGS
15606
+ ),
15607
+ [getCreditUsageByUser]
15608
+ );
15609
+ const getFeatureUsageByUser = useCallback2(
15610
+ async (featureId, limit) => {
15611
+ return checkoutApi?.getFeatureUsageByUser({ featureId, limit });
15612
+ },
15613
+ [checkoutApi]
15614
+ );
15615
+ const debouncedGetFeatureUsageByUser = useMemo2(
15616
+ () => debounceByKey(
15617
+ getFeatureUsageByUser,
15618
+ FETCH_DEBOUNCE_TIMEOUT,
15619
+ LEADING_DEBOUNCE_SETTINGS
15620
+ ),
15621
+ [getFeatureUsageByUser]
15622
+ );
15549
15623
  const setError = useCallback2(
15550
15624
  (error) => {
15551
15625
  debug(error.message);
@@ -15711,6 +15785,8 @@ var EmbedProvider = ({
15711
15785
  getUpcomingInvoice: debouncedGetUpcomingInvoice,
15712
15786
  getCustomerBalance: debouncedGetCustomerBalance,
15713
15787
  listInvoices: debouncedListInvoices,
15788
+ getCreditUsageByUser: debouncedGetCreditUsageByUser,
15789
+ getFeatureUsageByUser: debouncedGetFeatureUsageByUser,
15714
15790
  finishCheckout,
15715
15791
  setError,
15716
15792
  setAccessToken,
@@ -17109,7 +17185,7 @@ var Toggle = gt.input.attrs({ type: "checkbox" })`
17109
17185
  `;
17110
17186
 
17111
17187
  // src/components/ui/tooltip/Tooltip.tsx
17112
- var import_debounce2 = __toESM(require_debounce());
17188
+ var import_debounce3 = __toESM(require_debounce());
17113
17189
  import {
17114
17190
  cloneElement as cloneElement2,
17115
17191
  useCallback as useCallback7,
@@ -17299,7 +17375,7 @@ var Tooltip = ({
17299
17375
  }, [portal, position2]);
17300
17376
  useLayoutEffect3(() => {
17301
17377
  updateCoords();
17302
- const handleResize = (0, import_debounce2.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17378
+ const handleResize = (0, import_debounce3.default)(updateCoords, EVENT_DEBOUNCE_TIMEOUT);
17303
17379
  window.addEventListener("resize", handleResize);
17304
17380
  window.addEventListener("scroll", handleResize, true);
17305
17381
  return () => {
@@ -17456,7 +17532,7 @@ var Root = forwardRef6(
17456
17532
  Root.displayName = "Root";
17457
17533
 
17458
17534
  // src/components/layout/viewport/Viewport.tsx
17459
- var import_debounce4 = __toESM(require_debounce());
17535
+ var import_debounce5 = __toESM(require_debounce());
17460
17536
  import { forwardRef as forwardRef8, useLayoutEffect as useLayoutEffect8, useRef as useRef11, useState as useState16 } from "react";
17461
17537
  import { createPortal as createPortal3 } from "react-dom";
17462
17538
 
@@ -18404,11 +18480,10 @@ var Quantity = ({
18404
18480
  children: [
18405
18481
  /* @__PURE__ */ jsx20(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs11(Text, { children: [
18406
18482
  formatCurrency(
18407
- tiered && priceTiers ? calculateTieredCost(
18408
- entitlement.quantity,
18409
- priceTiers,
18410
- tiersMode
18411
- ) : (price ?? 0) * entitlement.quantity,
18483
+ calculateQuantityCost(
18484
+ entitlementBillingPrice,
18485
+ entitlement.quantity
18486
+ ),
18412
18487
  currency
18413
18488
  ),
18414
18489
  /* @__PURE__ */ jsxs11("sub", { children: [
@@ -19285,7 +19360,7 @@ var Checkout = ({
19285
19360
  };
19286
19361
 
19287
19362
  // src/components/shared/checkout-dialog/CheckoutDialog.tsx
19288
- var import_debounce3 = __toESM(require_debounce());
19363
+ var import_debounce4 = __toESM(require_debounce());
19289
19364
  import {
19290
19365
  useCallback as useCallback8,
19291
19366
  useEffect as useEffect4,
@@ -20094,7 +20169,7 @@ var CheckoutDialog = ({ top }) => {
20094
20169
  }, [handlePreviewCheckout]);
20095
20170
  const debouncedPreviewCheckoutRef = useRef6(null);
20096
20171
  useEffect4(() => {
20097
- const debounced = (0, import_debounce3.default)(
20172
+ const debounced = (0, import_debounce4.default)(
20098
20173
  (updates) => handlePreviewCheckoutRef.current(updates),
20099
20174
  FETCH_DEBOUNCE_TIMEOUT,
20100
20175
  TRAILING_DEBOUNCE_SETTINGS
@@ -22217,6 +22292,29 @@ var EntitlementRow = (props) => {
22217
22292
  tiersMode
22218
22293
  } = entitlementPrice || {};
22219
22294
  const tiered = priceBehavior === EntitlementPriceBehavior.PayInAdvance && isTieredPrice(entitlementPrice);
22295
+ const tierLabel = /* @__PURE__ */ jsxs30(
22296
+ Text,
22297
+ {
22298
+ style: { opacity: 0.54 },
22299
+ $size: 0.875 * settings.theme.typography.text.fontSize,
22300
+ $color: settings.theme.typography.text.color,
22301
+ children: [
22302
+ t4("Tier-based"),
22303
+ /* @__PURE__ */ jsx41(
22304
+ PricingTiersTooltip,
22305
+ {
22306
+ portal,
22307
+ feature,
22308
+ period: planPeriod,
22309
+ currency,
22310
+ priceTiers,
22311
+ tiersMode: tiersMode ?? void 0,
22312
+ position: "left"
22313
+ }
22314
+ )
22315
+ ]
22316
+ }
22317
+ );
22220
22318
  return /* @__PURE__ */ jsxs30(Fragment15, { children: [
22221
22319
  /* @__PURE__ */ jsx41(Box, { children: /* @__PURE__ */ jsx41(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs30(Fragment15, { children: [
22222
22320
  quantity,
@@ -22227,13 +22325,24 @@ var EntitlementRow = (props) => {
22227
22325
  " ",
22228
22326
  getFeatureName(feature, softLimit)
22229
22327
  ] }) : feature.name }) }),
22230
- /* @__PURE__ */ jsx41(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance && !tiered ? /* @__PURE__ */ jsxs30(Text, { children: [
22231
- formatCurrency((price ?? 0) * quantity, currency),
22232
- /* @__PURE__ */ jsxs30("sub", { children: [
22233
- "/",
22234
- shortenPeriod(planPeriod)
22328
+ /* @__PURE__ */ jsx41(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22329
+ // A tiered scheme still resolves to a fixed amount at the chosen
22330
+ // quantity, so the row shows it alongside the tier breakdown
22331
+ // rather than leaving the charge unpriced.
22332
+ /* @__PURE__ */ jsxs30(Flex, { $flexDirection: "column", $gap: "0.25rem", $alignItems: "end", children: [
22333
+ /* @__PURE__ */ jsxs30(Text, { children: [
22334
+ formatCurrency(
22335
+ calculateQuantityCost(entitlementPrice, quantity),
22336
+ currency
22337
+ ),
22338
+ /* @__PURE__ */ jsxs30("sub", { children: [
22339
+ "/",
22340
+ shortenPeriod(planPeriod)
22341
+ ] })
22342
+ ] }),
22343
+ tiered && tierLabel
22235
22344
  ] })
22236
- ] }) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs30(Text, { children: [
22345
+ ) : priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ jsxs30(Text, { children: [
22237
22346
  priceBehavior === EntitlementPriceBehavior.Overage && /* @__PURE__ */ jsxs30(Fragment15, { children: [
22238
22347
  t4("then"),
22239
22348
  " "
@@ -22251,29 +22360,7 @@ var EntitlementRow = (props) => {
22251
22360
  shortenPeriod(planPeriod)
22252
22361
  ] })
22253
22362
  ] })
22254
- ] }) : (priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs30(
22255
- Text,
22256
- {
22257
- style: { opacity: 0.54 },
22258
- $size: 0.875 * settings.theme.typography.text.fontSize,
22259
- $color: settings.theme.typography.text.color,
22260
- children: [
22261
- t4("Tier-based"),
22262
- /* @__PURE__ */ jsx41(
22263
- PricingTiersTooltip,
22264
- {
22265
- portal,
22266
- feature,
22267
- period: planPeriod,
22268
- currency,
22269
- priceTiers,
22270
- tiersMode: tiersMode ?? void 0,
22271
- position: "left"
22272
- }
22273
- )
22274
- ]
22275
- }
22276
- ) })
22363
+ ] }) : priceBehavior === EntitlementPriceBehavior.Tier && tierLabel })
22277
22364
  ] });
22278
22365
  }
22279
22366
  };
@@ -22469,12 +22556,18 @@ var SubscriptionSidebar = forwardRef7(
22469
22556
  }, 0);
22470
22557
  total += addOnCost;
22471
22558
  const payInAdvanceCost = payInAdvanceEntitlements.reduce(
22472
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22559
+ (sum, entitlement) => sum + calculateQuantityCost(
22560
+ getEntitlementPrice(entitlement, planPeriod, currency),
22561
+ entitlement.quantity
22562
+ ),
22473
22563
  0
22474
22564
  );
22475
22565
  total += payInAdvanceCost;
22476
22566
  const addOnPayInAdvanceCost = addOnPayInAdvanceEntitlements.reduce(
22477
- (sum, entitlement) => sum + entitlement.quantity * (getEntitlementPrice(entitlement, planPeriod, currency)?.price ?? 0),
22567
+ (sum, entitlement) => sum + calculateQuantityCost(
22568
+ getEntitlementPrice(entitlement, planPeriod, currency),
22569
+ entitlement.quantity
22570
+ ),
22478
22571
  0
22479
22572
  );
22480
22573
  total += addOnPayInAdvanceCost;
@@ -23937,7 +24030,7 @@ var Viewport = forwardRef8(
23937
24030
  const [top, setTop] = useState16(0);
23938
24031
  useLayoutEffect8(() => {
23939
24032
  const element = portalRef.current;
23940
- const setModalY = (0, import_debounce4.default)(() => {
24033
+ const setModalY = (0, import_debounce5.default)(() => {
23941
24034
  const value = Math.abs(
23942
24035
  (element === document.body ? window.scrollY : element.scrollTop) ?? 0
23943
24036
  );
@@ -24651,7 +24744,7 @@ var Invoices = forwardRef11(({ className, ...rest }, ref) => {
24651
24744
  Invoices.displayName = "Invoices";
24652
24745
 
24653
24746
  // src/components/elements/metered-features/MeteredFeatures.tsx
24654
- import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo27, useRef as useRef12, useState as useState18 } from "react";
24747
+ import { forwardRef as forwardRef12, useCallback as useCallback14, useMemo as useMemo28, useRef as useRef12, useState as useState19 } from "react";
24655
24748
 
24656
24749
  // src/components/elements/metered-features/Meter.tsx
24657
24750
  import { jsx as jsx53 } from "react/jsx-runtime";
@@ -24779,6 +24872,190 @@ var PriceDetails = ({
24779
24872
  );
24780
24873
  };
24781
24874
 
24875
+ // src/components/elements/metered-features/UsageByUser.tsx
24876
+ import { useEffect as useEffect7, useMemo as useMemo27, useState as useState18 } from "react";
24877
+ import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
24878
+ var COLLAPSED_COUNT = 3;
24879
+ var EXPANDED_COUNT = 20;
24880
+ var toCreditSection = (data) => ({
24881
+ entries: data.entries.map((entry) => ({
24882
+ id: entry.userId,
24883
+ // An entry with no hydrated user record still has an id worth showing —
24884
+ // a blank row identifies nobody.
24885
+ label: entry.user?.name || entry.userId || "",
24886
+ amount: entry.creditsUsed
24887
+ })),
24888
+ total: data.total,
24889
+ totalUsers: data.totalUsers,
24890
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.creditsUsed } : null
24891
+ });
24892
+ var toFeatureSection = (data) => ({
24893
+ entries: data.rows.map((row) => ({
24894
+ id: row.userId,
24895
+ label: row.user?.name || row.userId || "",
24896
+ amount: row.value
24897
+ })),
24898
+ total: data.total,
24899
+ totalUsers: data.totalUsers,
24900
+ unattributed: data.unattributed ? { id: null, label: "", amount: data.unattributed.value } : null
24901
+ });
24902
+ var mutedColor = (isLight) => isLight ? "hsla(0, 0%, 0%, 0.46)" : "hsla(0, 0%, 100%, 0.46)";
24903
+ var InitialAvatar = ({ label }) => {
24904
+ const { settings } = useEmbed();
24905
+ const isLightBackground = useIsLightBackground();
24906
+ const initial = (label.trim()[0] ?? "?").toUpperCase();
24907
+ return /* @__PURE__ */ jsx55(
24908
+ Flex,
24909
+ {
24910
+ $alignItems: "center",
24911
+ $justifyContent: "center",
24912
+ $width: "1.75rem",
24913
+ $height: "1.75rem",
24914
+ $flexShrink: 0,
24915
+ $borderRadius: "9999px",
24916
+ $background: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.15)",
24917
+ children: /* @__PURE__ */ jsx55(
24918
+ Text,
24919
+ {
24920
+ $size: 11,
24921
+ $weight: 500,
24922
+ $color: settings.theme.typography.text.color,
24923
+ children: initial
24924
+ }
24925
+ )
24926
+ }
24927
+ );
24928
+ };
24929
+ var UsageByUser = ({ source, unit }) => {
24930
+ const { t: t4 } = useTranslation();
24931
+ const isLightBackground = useIsLightBackground();
24932
+ const { getCreditUsageByUser, getFeatureUsageByUser } = useEmbed();
24933
+ const [expanded, setExpanded] = useState18(false);
24934
+ const [result, setResult] = useState18();
24935
+ const [attempt, setAttempt] = useState18(0);
24936
+ const { kind, id } = source;
24937
+ const sourceKey = `${kind}:${id}`;
24938
+ const current = result?.sourceKey === sourceKey ? result : void 0;
24939
+ useEffect7(() => {
24940
+ let active = true;
24941
+ const apply = (next2) => {
24942
+ if (active) {
24943
+ setResult(next2);
24944
+ }
24945
+ };
24946
+ const receive = (section) => {
24947
+ if (section) {
24948
+ apply({ sourceKey, section });
24949
+ }
24950
+ };
24951
+ const fail = (err) => apply({ sourceKey, error: isError(err) ? err : ERROR_UNKNOWN });
24952
+ if (kind === "credit") {
24953
+ getCreditUsageByUser(id, EXPANDED_COUNT)?.then(
24954
+ (response) => receive(response && toCreditSection(response.data))
24955
+ ).catch(fail);
24956
+ } else {
24957
+ getFeatureUsageByUser(id, EXPANDED_COUNT)?.then(
24958
+ (response) => receive(response && toFeatureSection(response.data))
24959
+ ).catch(fail);
24960
+ }
24961
+ return () => {
24962
+ active = false;
24963
+ };
24964
+ }, [
24965
+ attempt,
24966
+ getCreditUsageByUser,
24967
+ getFeatureUsageByUser,
24968
+ id,
24969
+ kind,
24970
+ sourceKey
24971
+ ]);
24972
+ const entries = current?.section?.entries;
24973
+ const attributed = useMemo27(
24974
+ () => [...entries ?? []].sort((a2, b2) => b2.amount - a2.amount),
24975
+ [entries]
24976
+ );
24977
+ const error = current?.error;
24978
+ const total = current?.section?.total ?? 0;
24979
+ const totalUsers = current?.section?.totalUsers ?? 0;
24980
+ const unattributed = current?.section?.unattributed;
24981
+ const formatAmount = (amount) => `${formatNumber(amount)} ${getFeatureName(unit, amount)}`;
24982
+ if (error) {
24983
+ return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
24984
+ /* @__PURE__ */ jsx55(Text, { display: "heading4", children: t4("Usage by user") }),
24985
+ /* @__PURE__ */ jsx55(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving usage by user.") }),
24986
+ /* @__PURE__ */ jsx55(
24987
+ Button,
24988
+ {
24989
+ type: "button",
24990
+ onClick: () => setAttempt((prev2) => prev2 + 1),
24991
+ $size: "sm",
24992
+ $variant: "ghost",
24993
+ $fullWidth: false,
24994
+ children: t4("Try again")
24995
+ }
24996
+ )
24997
+ ] });
24998
+ }
24999
+ if (attributed.length === 0 && !unattributed) {
25000
+ return null;
25001
+ }
25002
+ const visible = attributed.slice(
25003
+ 0,
25004
+ expanded ? EXPANDED_COUNT : COLLAPSED_COUNT
25005
+ );
25006
+ const remaining = Math.max(totalUsers - visible.length, 0);
25007
+ const expandedUserCount = Math.min(totalUsers, EXPANDED_COUNT);
25008
+ const hiddenUsers = Math.max(
25009
+ expandedUserCount - Math.min(attributed.length, COLLAPSED_COUNT),
25010
+ 0
25011
+ );
25012
+ const shouldShowToggle = hiddenUsers > 0 || Boolean(unattributed);
25013
+ 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");
25014
+ const row = (key, label, amount, muted) => /* @__PURE__ */ jsxs41(Flex, { $alignItems: "center", $gap: "0.75rem", $padding: "0.5rem 0", children: [
25015
+ /* @__PURE__ */ jsx55(InitialAvatar, { label: muted ? "?" : label }),
25016
+ /* @__PURE__ */ jsx55(Box, { $flexGrow: 1, $overflow: "hidden", children: /* @__PURE__ */ jsx55(
25017
+ Text,
25018
+ {
25019
+ display: "text",
25020
+ $color: muted ? mutedColor(isLightBackground) : void 0,
25021
+ children: label
25022
+ }
25023
+ ) }),
25024
+ /* @__PURE__ */ jsx55(
25025
+ Text,
25026
+ {
25027
+ display: "text",
25028
+ $align: "right",
25029
+ $color: mutedColor(isLightBackground),
25030
+ children: formatAmount(amount)
25031
+ }
25032
+ )
25033
+ ] }, key);
25034
+ return /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
25035
+ /* @__PURE__ */ jsx55(Text, { display: "heading4", children: t4("Usage by user") }),
25036
+ /* @__PURE__ */ jsx55(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx55(Text, { display: "text", $color: mutedColor(isLightBackground), children: t4("X used by your team this period", {
25037
+ amount: formatAmount(total)
25038
+ }) }) }),
25039
+ visible.map(
25040
+ (entry, index) => row(entry.id || `row-${index}`, entry.label, entry.amount)
25041
+ ),
25042
+ expanded && unattributed && row("unattributed", t4("Unattributed"), unattributed.amount, true),
25043
+ 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 }) }) }),
25044
+ shouldShowToggle && /* @__PURE__ */ jsx55(
25045
+ ExpandListToggle,
25046
+ {
25047
+ isExpanded: expanded,
25048
+ onToggle: () => setExpanded((prev2) => !prev2),
25049
+ expandLabel,
25050
+ collapseLabel: t4("Show fewer"),
25051
+ iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)",
25052
+ $marginTop: "0.25rem"
25053
+ }
25054
+ )
25055
+ ] });
25056
+ };
25057
+ UsageByUser.displayName = "UsageByUser";
25058
+
24782
25059
  // src/components/elements/metered-features/styles.ts
24783
25060
  var Container2 = gt.div`
24784
25061
  display: flex;
@@ -24797,7 +25074,7 @@ var Container2 = gt.div`
24797
25074
  `;
24798
25075
 
24799
25076
  // src/components/elements/metered-features/MeteredFeatures.tsx
24800
- import { Fragment as Fragment23, jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
25077
+ import { Fragment as Fragment23, jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
24801
25078
  var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24802
25079
  const { t: t4 } = useTranslation();
24803
25080
  const { data } = useEmbed();
@@ -24834,9 +25111,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
24834
25111
  })
24835
25112
  );
24836
25113
  }
24837
- return /* @__PURE__ */ jsxs41(Text, { display: fontStyle, children: [
25114
+ return /* @__PURE__ */ jsxs42(Text, { display: fontStyle, children: [
24838
25115
  acc.join(" \u2022 "),
24839
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx55(
25116
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx56(
24840
25117
  HardLimitTooltip,
24841
25118
  {
24842
25119
  feature: entitlement.feature,
@@ -24866,6 +25143,9 @@ function resolveDesignProps4(props) {
24866
25143
  isVisible: props.usage?.isVisible ?? true,
24867
25144
  fontStyle: props.usage?.fontStyle ?? "heading5"
24868
25145
  },
25146
+ usageByUser: {
25147
+ isVisible: props.usageByUser?.isVisible ?? true
25148
+ },
24869
25149
  // there is a typescript bug with `DeepPartial` so we must cast to `string[] | undefined`
24870
25150
  visibleFeatures: props.visibleFeatures
24871
25151
  };
@@ -24878,7 +25158,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24878
25158
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
24879
25159
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
24880
25160
  const isLightBackground = useIsLightBackground();
24881
- const meteredFeatures = useMemo27(() => {
25161
+ const meteredFeatures = useMemo28(() => {
24882
25162
  const orderedFeatureUsage = props.visibleFeatures?.reduce(
24883
25163
  (acc, id) => {
24884
25164
  const mappedFeatureUsage = data?.featureUsage?.features.find(
@@ -24895,7 +25175,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24895
25175
  ({ feature }) => feature?.featureType === FeatureType.Event || feature?.featureType === FeatureType.Trait
24896
25176
  );
24897
25177
  }, [props.visibleFeatures, data?.featureUsage?.features]);
24898
- const creditGroups = useMemo27(
25178
+ const creditGroups = useMemo28(
24899
25179
  () => withEmptyPlanCreditBalances(
24900
25180
  aggregateActiveGrantsByCredit(data?.creditGrants || []),
24901
25181
  listPlanCredits(
@@ -24906,7 +25186,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24906
25186
  ),
24907
25187
  [data?.creditGrants, data?.featureUsage?.features, data?.company]
24908
25188
  );
24909
- const planCreditCompositions = useMemo27(
25189
+ const planCreditCompositions = useMemo28(
24910
25190
  () => groupPlanCreditGrants(data?.company?.plan?.includedCreditGrants ?? []),
24911
25191
  [data?.company?.plan?.includedCreditGrants]
24912
25192
  );
@@ -24920,14 +25200,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24920
25200
  },
24921
25201
  [data?.featureUsage?.features]
24922
25202
  );
24923
- const purchasableCreditIds = useMemo27(
25203
+ const purchasableCreditIds = useMemo28(
24924
25204
  () => getPurchasableCreditIds(data?.creditBundles, data?.company?.plan?.id),
24925
25205
  [data?.creditBundles, data?.company?.plan?.id]
24926
25206
  );
24927
- const [expandedCreditIds, setExpandedCreditIds] = useState18(
25207
+ const [expandedCreditIds, setExpandedCreditIds] = useState19(
24928
25208
  () => /* @__PURE__ */ new Set()
24929
25209
  );
24930
- const [fullLedgerCreditIds, setFullLedgerCreditIds] = useState18(
25210
+ const [fullLedgerCreditIds, setFullLedgerCreditIds] = useState19(
24931
25211
  () => /* @__PURE__ */ new Set()
24932
25212
  );
24933
25213
  const toggleFullLedger = useCallback14((id) => {
@@ -24967,7 +25247,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24967
25247
  const period = getSubscriptionPeriod(data?.company?.billingSubscription) ?? (typeof data?.company?.plan?.planPeriod === "string" ? data.company?.plan?.planPeriod : void 0);
24968
25248
  const canCheckout = data?.capabilities?.checkout ?? false;
24969
25249
  const showCredits = data?.displaySettings?.showCredits ?? true;
24970
- return /* @__PURE__ */ jsxs41(Container2, { ref, className, children: [
25250
+ return /* @__PURE__ */ jsxs42(Container2, { ref, className, children: [
24971
25251
  meteredFeatures.reduce((acc, entitlement, index) => {
24972
25252
  if (!entitlement.feature) {
24973
25253
  return acc;
@@ -24978,9 +25258,9 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24978
25258
  });
24979
25259
  const { limit } = usageDetails;
24980
25260
  acc.push(
24981
- /* @__PURE__ */ jsxs41(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
24982
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1.5rem", children: [
24983
- props.icon.isVisible && /* @__PURE__ */ jsx55(
25261
+ /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1.5rem", children: [
25262
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25263
+ props.icon.isVisible && /* @__PURE__ */ jsx56(
24984
25264
  Icon3,
24985
25265
  {
24986
25266
  name: feature.icon,
@@ -24989,8 +25269,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
24989
25269
  rounded: true
24990
25270
  }
24991
25271
  ),
24992
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
24993
- /* @__PURE__ */ jsxs41(
25272
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25273
+ /* @__PURE__ */ jsxs42(
24994
25274
  Flex,
24995
25275
  {
24996
25276
  ref: (el) => {
@@ -25001,31 +25281,31 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25001
25281
  $flexWrap: "wrap",
25002
25282
  $gap: "1rem",
25003
25283
  children: [
25004
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25005
- /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.header.fontStyle, children: feature.name }) }),
25006
- props.description.isVisible && feature.description && /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.description.fontStyle, children: feature.description }) })
25284
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25285
+ /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: feature.name }) }),
25286
+ props.description.isVisible && feature.description && /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.description.fontStyle, children: feature.description }) })
25007
25287
  ] }),
25008
- /* @__PURE__ */ jsxs41(
25288
+ /* @__PURE__ */ jsxs42(
25009
25289
  Box,
25010
25290
  {
25011
25291
  $flexBasis: "min-content",
25012
25292
  $flexGrow: 1,
25013
25293
  $textAlign: shouldWrapChildren ? "left" : "right",
25014
25294
  children: [
25015
- props.usage.isVisible && /* @__PURE__ */ jsx55(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx55(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs41(Fragment23, { children: [
25016
- typeof limit === "number" && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25295
+ props.usage.isVisible && /* @__PURE__ */ jsx56(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx56(Text, { display: props.usage.fontStyle, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ jsxs42(Fragment23, { children: [
25296
+ typeof limit === "number" && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25017
25297
  formatNumber(limit),
25018
25298
  " "
25019
25299
  ] }),
25020
25300
  getFeatureName(feature, limit)
25021
- ] }) : typeof usage === "number" && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25301
+ ] }) : typeof usage === "number" && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25022
25302
  formatNumber(usage),
25023
25303
  " ",
25024
25304
  getFeatureName(feature, usage),
25025
25305
  " ",
25026
25306
  t4("used")
25027
25307
  ] }) }) }),
25028
- props.allocation.isVisible && /* @__PURE__ */ jsx55(
25308
+ props.allocation.isVisible && /* @__PURE__ */ jsx56(
25029
25309
  Limit,
25030
25310
  {
25031
25311
  entitlement,
@@ -25039,8 +25319,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25039
25319
  ]
25040
25320
  }
25041
25321
  ),
25042
- props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx55(Meter, { entitlement }),
25043
- canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx55(
25322
+ props.isVisible && priceBehavior !== EntitlementPriceBehavior.PayAsYouGo && priceBehavior !== EntitlementPriceBehavior.CreditBurndown && /* @__PURE__ */ jsx56(Meter, { entitlement }),
25323
+ canCheckout && priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsx56(
25044
25324
  Button,
25045
25325
  {
25046
25326
  type: "button",
@@ -25053,13 +25333,24 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25053
25333
  )
25054
25334
  ] })
25055
25335
  ] }),
25056
- (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx55(
25336
+ (priceBehavior === EntitlementPriceBehavior.Overage || priceBehavior === EntitlementPriceBehavior.Tier) && /* @__PURE__ */ jsx56(
25057
25337
  PriceDetails,
25058
25338
  {
25059
25339
  entitlement,
25060
25340
  usageDetails,
25061
25341
  period
25062
25342
  }
25343
+ ),
25344
+ props.usageByUser.isVisible && feature.featureType === FeatureType.Event && // The per-user amounts come from the feature usage endpoint, so
25345
+ // they are denominated in the feature's own unit — the same one
25346
+ // the usage line above uses. A credit-burndown feature's credit
25347
+ // spend is broken down separately, under its credit.
25348
+ /* @__PURE__ */ jsx56(
25349
+ UsageByUser,
25350
+ {
25351
+ source: { kind: "feature", id: feature.id },
25352
+ unit: feature
25353
+ }
25063
25354
  )
25064
25355
  ] }, index)
25065
25356
  );
@@ -25073,9 +25364,9 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25073
25364
  const visibleGrants = showAllGrants ? credit.grants : credit.grants.slice(0, VISIBLE_CREDIT_COUNT);
25074
25365
  const paddingX = settings.theme.card.padding / TEXT_BASE_SIZE;
25075
25366
  const getRowPadding = (rowIndex) => rowIndex === 0 ? `1rem ${paddingX}rem` : `0 ${paddingX}rem 1rem`;
25076
- return /* @__PURE__ */ jsxs41(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25077
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1.5rem", children: [
25078
- props.icon.isVisible && /* @__PURE__ */ jsx55(
25367
+ return /* @__PURE__ */ jsxs42(Element, { as: Flex, $flexDirection: "column", $gap: "1rem", children: [
25368
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1.5rem", children: [
25369
+ props.icon.isVisible && /* @__PURE__ */ jsx56(
25079
25370
  Icon3,
25080
25371
  {
25081
25372
  name: credit.icon,
@@ -25084,13 +25375,13 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25084
25375
  rounded: true
25085
25376
  }
25086
25377
  ),
25087
- /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25088
- /* @__PURE__ */ jsx55(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs41(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25089
- /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.header.fontStyle, children: credit.name }) }),
25090
- props.description.isVisible && credit.description && /* @__PURE__ */ jsx55(Box, { children: /* @__PURE__ */ jsx55(Text, { display: props.description.fontStyle, children: credit.description }) })
25378
+ /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "2rem", $flexGrow: 1, children: [
25379
+ /* @__PURE__ */ jsx56(Flex, { $flexWrap: "wrap", $gap: "1rem", children: /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
25380
+ /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: credit.name }) }),
25381
+ props.description.isVisible && credit.description && /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(Text, { display: props.description.fontStyle, children: credit.description }) })
25091
25382
  ] }) }),
25092
- /* @__PURE__ */ jsxs41(Flex, { $gap: "1rem", $alignItems: "center", children: [
25093
- props.usage.isVisible && /* @__PURE__ */ jsx55(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx55(Text, { display: props.usage.fontStyle, children: t4("X units remaining", {
25383
+ /* @__PURE__ */ jsxs42(Flex, { $gap: "1rem", $alignItems: "center", children: [
25384
+ props.usage.isVisible && /* @__PURE__ */ jsx56(Box, { $flexGrow: 1, $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx56(Text, { display: props.usage.fontStyle, children: t4("X units remaining", {
25094
25385
  // Balances burn at rates with up to 10 decimal
25095
25386
  // places, so a small remainder must not round to 0.
25096
25387
  amount: formatNumber(credit.total.remaining, {
@@ -25101,7 +25392,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25101
25392
  credit.total.remaining
25102
25393
  )
25103
25394
  }) }) }),
25104
- canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx55(
25395
+ canCheckout && purchasableCreditIds.has(credit.id) && /* @__PURE__ */ jsx56(
25105
25396
  Button,
25106
25397
  {
25107
25398
  type: "button",
@@ -25154,7 +25445,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25154
25445
  const renewalDate = data?.upcomingInvoice?.dueDate;
25155
25446
  return (
25156
25447
  // Pulled up against the balance line despite the column's 2rem gap
25157
- /* @__PURE__ */ jsx55(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs41(
25448
+ /* @__PURE__ */ jsx56(Box, { $marginTop: "-1.5rem", children: /* @__PURE__ */ jsxs42(
25158
25449
  Text,
25159
25450
  {
25160
25451
  style: { opacity: 0.54 },
@@ -25167,7 +25458,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25167
25458
  period: shortenPeriod(composition.period),
25168
25459
  composition: ` \u2014 ${parts.join(" + ")}`
25169
25460
  }),
25170
- renewalDate && /* @__PURE__ */ jsxs41(Fragment23, { children: [
25461
+ renewalDate && /* @__PURE__ */ jsxs42(Fragment23, { children: [
25171
25462
  " ",
25172
25463
  t4("Renews on the day", {
25173
25464
  day: formatOrdinal(renewalDate.getDate())
@@ -25180,12 +25471,12 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25180
25471
  })()
25181
25472
  ] })
25182
25473
  ] }),
25183
- hasGrants && /* @__PURE__ */ jsx55(
25474
+ hasGrants && /* @__PURE__ */ jsx56(
25184
25475
  Box,
25185
25476
  {
25186
25477
  $width: `calc(100% + ${2 * settings.theme.card.padding / TEXT_BASE_SIZE}rem)`,
25187
25478
  $margin: `0 0 0 -${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
25188
- children: /* @__PURE__ */ jsxs41(
25479
+ children: /* @__PURE__ */ jsxs42(
25189
25480
  TransitionBox,
25190
25481
  {
25191
25482
  $backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.0375)" : "hsla(0, 0%, 100%, 0.075)",
@@ -25193,22 +25484,22 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25193
25484
  children: [
25194
25485
  visibleGrants.map((grant, index2) => {
25195
25486
  const padding = getRowPadding(index2);
25196
- return /* @__PURE__ */ jsx55(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs41(Fragment23, { children: [
25197
- /* @__PURE__ */ jsx55(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx55(Text, { children: t4("X items included in plan", {
25487
+ return /* @__PURE__ */ jsx56(Box, { $display: "table-row", children: grant.grantReason === BillingCreditGrantReason.Plan ? /* @__PURE__ */ jsxs42(Fragment23, { children: [
25488
+ /* @__PURE__ */ jsx56(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ jsx56(Text, { children: t4("X items included in plan", {
25198
25489
  amount: grant.quantity,
25199
25490
  item: getFeatureName(
25200
25491
  credit,
25201
25492
  grant.quantity
25202
25493
  )
25203
25494
  }) }) }),
25204
- /* @__PURE__ */ jsx55(
25495
+ /* @__PURE__ */ jsx56(
25205
25496
  Box,
25206
25497
  {
25207
25498
  $display: "table-cell",
25208
25499
  $padding: padding,
25209
25500
  $textAlign: "right",
25210
25501
  $whiteSpace: "nowrap",
25211
- children: grant.expiresAt && /* @__PURE__ */ jsx55(Text, { children: t4("Resets", {
25502
+ children: grant.expiresAt && /* @__PURE__ */ jsx56(Text, { children: t4("Resets", {
25212
25503
  date: toPrettyDate(
25213
25504
  modifyDate(grant.expiresAt, 1),
25214
25505
  { month: "short" }
@@ -25216,15 +25507,15 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25216
25507
  }) })
25217
25508
  }
25218
25509
  )
25219
- ] }) : /* @__PURE__ */ jsxs41(Fragment23, { children: [
25220
- /* @__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", {
25510
+ ] }) : /* @__PURE__ */ jsxs42(Fragment23, { children: [
25511
+ /* @__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", {
25221
25512
  amount: grant.quantity,
25222
25513
  item: getFeatureName(credit, 1),
25223
25514
  createdAt: toPrettyDate(
25224
25515
  grant.createdAt,
25225
25516
  { month: "short" }
25226
25517
  )
25227
- }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx55(Fragment23, { children: t4("X item auto-topup", {
25518
+ }) }) : grant.grantReason === BillingCreditGrantReason.BillingCreditAutoTopup ? /* @__PURE__ */ jsx56(Fragment23, { children: t4("X item auto-topup", {
25228
25519
  amount: grant.quantity,
25229
25520
  item: getFeatureName(
25230
25521
  credit,
@@ -25234,7 +25525,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25234
25525
  grant.createdAt,
25235
25526
  { month: "short" }
25236
25527
  )
25237
- }) }) : /* @__PURE__ */ jsx55(Fragment23, { children: t4("X item grant", {
25528
+ }) }) : /* @__PURE__ */ jsx56(Fragment23, { children: t4("X item grant", {
25238
25529
  amount: grant.quantity,
25239
25530
  item: getFeatureName(
25240
25531
  credit,
@@ -25245,14 +25536,14 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25245
25536
  { month: "short" }
25246
25537
  )
25247
25538
  }) }) }) }),
25248
- /* @__PURE__ */ jsx55(
25539
+ /* @__PURE__ */ jsx56(
25249
25540
  Box,
25250
25541
  {
25251
25542
  $display: "table-cell",
25252
25543
  $padding: padding,
25253
25544
  $textAlign: "right",
25254
25545
  $whiteSpace: "nowrap",
25255
- children: grant.expiresAt && /* @__PURE__ */ jsx55(Text, { children: t4("Expires", {
25546
+ children: grant.expiresAt && /* @__PURE__ */ jsx56(Text, { children: t4("Expires", {
25256
25547
  date: toPrettyDate(
25257
25548
  modifyDate(grant.expiresAt, 1),
25258
25549
  { month: "short" }
@@ -25262,8 +25553,8 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25262
25553
  )
25263
25554
  ] }) }, grant.id);
25264
25555
  }),
25265
- canExpandLedger && /* @__PURE__ */ jsxs41(Box, { $display: "table-row", children: [
25266
- /* @__PURE__ */ jsx55(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx55(
25556
+ canExpandLedger && /* @__PURE__ */ jsxs42(Box, { $display: "table-row", children: [
25557
+ /* @__PURE__ */ jsx56(Box, { $display: "table-cell", $padding: getRowPadding(1), children: /* @__PURE__ */ jsx56(
25267
25558
  ExpandListToggle,
25268
25559
  {
25269
25560
  isExpanded: showAllGrants,
@@ -25272,7 +25563,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25272
25563
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25273
25564
  }
25274
25565
  ) }),
25275
- /* @__PURE__ */ jsx55(
25566
+ /* @__PURE__ */ jsx56(
25276
25567
  Box,
25277
25568
  {
25278
25569
  $display: "table-cell",
@@ -25285,7 +25576,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25285
25576
  )
25286
25577
  }
25287
25578
  ),
25288
- hasGrants && /* @__PURE__ */ jsx55(
25579
+ hasGrants && /* @__PURE__ */ jsx56(
25289
25580
  ExpandListToggle,
25290
25581
  {
25291
25582
  isExpanded,
@@ -25294,6 +25585,13 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25294
25585
  collapseLabel: t4("Hide balance details"),
25295
25586
  iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
25296
25587
  }
25588
+ ),
25589
+ props.usageByUser.isVisible && /* @__PURE__ */ jsx56(
25590
+ UsageByUser,
25591
+ {
25592
+ source: { kind: "credit", id: credit.id },
25593
+ unit: credit
25594
+ }
25297
25595
  )
25298
25596
  ] }, index);
25299
25597
  })
@@ -25302,11 +25600,11 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
25302
25600
  MeteredFeatures.displayName = "MeteredFeatures";
25303
25601
 
25304
25602
  // src/components/elements/payment-method/PaymentMethod.tsx
25305
- import { forwardRef as forwardRef13, useMemo as useMemo29 } from "react";
25603
+ import { forwardRef as forwardRef13, useMemo as useMemo30 } from "react";
25306
25604
 
25307
25605
  // src/components/elements/payment-method/PaymentMethodElement.tsx
25308
- import { useMemo as useMemo28 } from "react";
25309
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
25606
+ import { useMemo as useMemo29 } from "react";
25607
+ import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
25310
25608
  var PaymentElement2 = ({
25311
25609
  iconName,
25312
25610
  iconTitle,
@@ -25314,8 +25612,8 @@ var PaymentElement2 = ({
25314
25612
  paymentLast4
25315
25613
  }) => {
25316
25614
  const { settings } = useEmbed();
25317
- return /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25318
- iconName && /* @__PURE__ */ jsx56(
25615
+ return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
25616
+ iconName && /* @__PURE__ */ jsx57(
25319
25617
  Icon3,
25320
25618
  {
25321
25619
  name: iconName,
@@ -25323,15 +25621,15 @@ var PaymentElement2 = ({
25323
25621
  color: settings.theme.typography.text.color
25324
25622
  }
25325
25623
  ),
25326
- (label || paymentLast4) && /* @__PURE__ */ jsxs42(Box, { $flexGrow: 1, children: [
25327
- label && /* @__PURE__ */ jsx56(Text, { children: label }),
25624
+ (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
25625
+ label && /* @__PURE__ */ jsx57(Text, { children: label }),
25328
25626
  " ",
25329
- paymentLast4 && /* @__PURE__ */ jsx56(Text, { children: paymentLast4 })
25627
+ paymentLast4 && /* @__PURE__ */ jsx57(Text, { children: paymentLast4 })
25330
25628
  ] })
25331
25629
  ] });
25332
25630
  };
25333
25631
  var EmptyPaymentElement = () => {
25334
- 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") }) }) }) });
25632
+ 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") }) }) }) });
25335
25633
  };
25336
25634
  var getPaymentMethodData = ({
25337
25635
  accountLast4,
@@ -25411,12 +25709,12 @@ var PaymentMethodElement = ({
25411
25709
  const isLightBackground = useIsLightBackground();
25412
25710
  const sizeFactor = size === "lg" ? 1.5 : size === "md" ? 1 : 0.5;
25413
25711
  const hasCustomFields = customCheckoutFields && customCheckoutFields.length > 0;
25414
- return /* @__PURE__ */ jsxs42(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25415
- props.header.isVisible && /* @__PURE__ */ jsxs42(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25416
- /* @__PURE__ */ jsx56(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25417
- 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") })
25712
+ return /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
25713
+ props.header.isVisible && /* @__PURE__ */ jsxs43(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
25714
+ /* @__PURE__ */ jsx57(Text, { display: props.header.fontStyle, children: t4("Payment Details") }),
25715
+ 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") })
25418
25716
  ] }),
25419
- /* @__PURE__ */ jsxs42(
25717
+ /* @__PURE__ */ jsxs43(
25420
25718
  Flex,
25421
25719
  {
25422
25720
  $justifyContent: "space-between",
@@ -25425,8 +25723,8 @@ var PaymentMethodElement = ({
25425
25723
  $padding: `${sizeFactor / 2.25}rem ${sizeFactor}rem`,
25426
25724
  $borderRadius: "9999px",
25427
25725
  children: [
25428
- paymentMethod ? /* @__PURE__ */ jsx56(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx56(EmptyPaymentElement, {}),
25429
- onRemove && /* @__PURE__ */ jsx56(
25726
+ paymentMethod ? /* @__PURE__ */ jsx57(PaymentElement2, { ...getPaymentMethodData(paymentMethod) }) : /* @__PURE__ */ jsx57(EmptyPaymentElement, {}),
25727
+ onRemove && /* @__PURE__ */ jsx57(
25430
25728
  Text,
25431
25729
  {
25432
25730
  onClick: onRemove,
@@ -25436,7 +25734,7 @@ var PaymentMethodElement = ({
25436
25734
  children: t4("Remove")
25437
25735
  }
25438
25736
  ),
25439
- props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx56(
25737
+ props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx57(
25440
25738
  Text,
25441
25739
  {
25442
25740
  onClick: onEdit,
@@ -25449,8 +25747,8 @@ var PaymentMethodElement = ({
25449
25747
  ]
25450
25748
  }
25451
25749
  ),
25452
- 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: [
25453
- /* @__PURE__ */ jsx56(
25750
+ 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: [
25751
+ /* @__PURE__ */ jsx57(
25454
25752
  Text,
25455
25753
  {
25456
25754
  $size: 12,
@@ -25458,7 +25756,7 @@ var PaymentMethodElement = ({
25458
25756
  children: field.name
25459
25757
  }
25460
25758
  ),
25461
- /* @__PURE__ */ jsx56(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx56(
25759
+ /* @__PURE__ */ jsx57(Text, { $size: 14, children: field.value != null && field.value !== "" ? field.value : /* @__PURE__ */ jsx57(
25462
25760
  "span",
25463
25761
  {
25464
25762
  style: {
@@ -25479,7 +25777,7 @@ var PaymentListElement = ({
25479
25777
  const { settings } = useEmbed();
25480
25778
  const isLightBackground = useIsLightBackground();
25481
25779
  const { iconName, iconTitle, label, paymentLast4 } = getPaymentMethodData(paymentMethod);
25482
- const expirationDate = useMemo28(() => {
25780
+ const expirationDate = useMemo29(() => {
25483
25781
  const { cardExpMonth, cardExpYear } = paymentMethod;
25484
25782
  if (!cardExpMonth || !cardExpYear) {
25485
25783
  return;
@@ -25490,7 +25788,7 @@ var PaymentListElement = ({
25490
25788
  }
25491
25789
  return `${cardExpMonth}/${formatedYear}`;
25492
25790
  }, [paymentMethod]);
25493
- return /* @__PURE__ */ jsxs42(
25791
+ return /* @__PURE__ */ jsxs43(
25494
25792
  Flex,
25495
25793
  {
25496
25794
  $flexDirection: "row",
@@ -25502,7 +25800,7 @@ var PaymentListElement = ({
25502
25800
  $borderStyle: "solid",
25503
25801
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
25504
25802
  children: [
25505
- iconName && /* @__PURE__ */ jsx56(
25803
+ iconName && /* @__PURE__ */ jsx57(
25506
25804
  Icon3,
25507
25805
  {
25508
25806
  name: iconName,
@@ -25510,20 +25808,20 @@ var PaymentListElement = ({
25510
25808
  color: settings.theme.typography.text.color
25511
25809
  }
25512
25810
  ),
25513
- (label || paymentLast4) && /* @__PURE__ */ jsxs42(Box, { $flexGrow: 1, children: [
25514
- label && /* @__PURE__ */ jsx56(Text, { children: label }),
25811
+ (label || paymentLast4) && /* @__PURE__ */ jsxs43(Box, { $flexGrow: 1, children: [
25812
+ label && /* @__PURE__ */ jsx57(Text, { children: label }),
25515
25813
  " ",
25516
- paymentLast4 && /* @__PURE__ */ jsx56(Text, { children: paymentLast4 })
25814
+ paymentLast4 && /* @__PURE__ */ jsx57(Text, { children: paymentLast4 })
25517
25815
  ] }),
25518
- expirationDate && /* @__PURE__ */ jsx56(
25816
+ expirationDate && /* @__PURE__ */ jsx57(
25519
25817
  Box,
25520
25818
  {
25521
25819
  $flexGrow: 1,
25522
25820
  $color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
25523
- children: /* @__PURE__ */ jsx56(Text, { children: t("Expires", { date: expirationDate }) })
25821
+ children: /* @__PURE__ */ jsx57(Text, { children: t("Expires", { date: expirationDate }) })
25524
25822
  }
25525
25823
  ),
25526
- /* @__PURE__ */ jsx56(Box, { children: /* @__PURE__ */ jsx56(
25824
+ /* @__PURE__ */ jsx57(Box, { children: /* @__PURE__ */ jsx57(
25527
25825
  Text,
25528
25826
  {
25529
25827
  onClick: () => {
@@ -25536,7 +25834,7 @@ var PaymentListElement = ({
25536
25834
  children: t("Set default")
25537
25835
  }
25538
25836
  ) }),
25539
- /* @__PURE__ */ jsx56(
25837
+ /* @__PURE__ */ jsx57(
25540
25838
  Icon3,
25541
25839
  {
25542
25840
  tabIndex: 0,
@@ -25558,7 +25856,7 @@ var PaymentListElement = ({
25558
25856
  };
25559
25857
 
25560
25858
  // src/components/elements/payment-method/PaymentMethod.tsx
25561
- import { jsx as jsx57 } from "react/jsx-runtime";
25859
+ import { jsx as jsx58 } from "react/jsx-runtime";
25562
25860
  var resolveDesignProps5 = (props) => {
25563
25861
  return {
25564
25862
  header: {
@@ -25574,7 +25872,7 @@ var resolveDesignProps5 = (props) => {
25574
25872
  var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = true, ...rest }, ref) => {
25575
25873
  const props = resolveDesignProps5(rest);
25576
25874
  const { data, setLayout } = useEmbed();
25577
- const { paymentMethod, monthsToExpiration } = useMemo29(() => {
25875
+ const { paymentMethod, monthsToExpiration } = useMemo30(() => {
25578
25876
  const paymentMethod2 = data?.subscription?.paymentMethod || data?.company?.defaultPaymentMethod;
25579
25877
  let monthsToExpiration2;
25580
25878
  if (typeof paymentMethod2?.cardExpYear === "number" && typeof paymentMethod2?.cardExpMonth === "number") {
@@ -25593,7 +25891,7 @@ var PaymentMethod = forwardRef13(({ children, className, portal, allowEdit = tru
25593
25891
  monthsToExpiration: monthsToExpiration2
25594
25892
  };
25595
25893
  }, [data?.company?.defaultPaymentMethod, data?.subscription?.paymentMethod]);
25596
- return /* @__PURE__ */ jsx57(Element, { ref, className, children: /* @__PURE__ */ jsx57(
25894
+ return /* @__PURE__ */ jsx58(Element, { ref, className, children: /* @__PURE__ */ jsx58(
25597
25895
  PaymentMethodElement,
25598
25896
  {
25599
25897
  customCheckoutFields: data?.customCheckoutFields,
@@ -25609,7 +25907,7 @@ PaymentMethod.displayName = "PaymentMethod";
25609
25907
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25610
25908
  import { Elements } from "@stripe/react-stripe-js";
25611
25909
 
25612
- // node_modules/.pnpm/@stripe+stripe-js@9.15.0/node_modules/@stripe/stripe-js/dist/index.mjs
25910
+ // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
25613
25911
  function _typeof(obj) {
25614
25912
  "@babel/helpers - typeof";
25615
25913
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -25663,7 +25961,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
25663
25961
  }
25664
25962
  stripe._registerWrapper({
25665
25963
  name: "stripe-js",
25666
- version: "9.15.0",
25964
+ version: "9.16.0",
25667
25965
  startTime
25668
25966
  });
25669
25967
  };
@@ -25741,7 +26039,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
25741
26039
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
25742
26040
  var expectedVersion = RELEASE_TRAIN;
25743
26041
  if (isTestKey && version !== expectedVersion) {
25744
- 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"));
26042
+ 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"));
25745
26043
  }
25746
26044
  var stripe = maybeStripe.apply(void 0, args);
25747
26045
  registerWrapper(stripe, startTime);
@@ -25778,8 +26076,8 @@ var loadStripe = function loadStripe2() {
25778
26076
  };
25779
26077
 
25780
26078
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
25781
- import { useCallback as useCallback15, useEffect as useEffect7, useMemo as useMemo30, useState as useState19 } from "react";
25782
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
26079
+ import { useCallback as useCallback15, useEffect as useEffect8, useMemo as useMemo31, useState as useState20 } from "react";
26080
+ import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
25783
26081
  var resolveDesignProps6 = () => {
25784
26082
  return {
25785
26083
  header: {
@@ -25807,7 +26105,7 @@ var PaymentMethodDetails = ({
25807
26105
  updatePaymentMethod,
25808
26106
  deletePaymentMethod
25809
26107
  } = useEmbed();
25810
- const { defaultPaymentMethod, paymentMethods, subscription } = useMemo30(() => {
26108
+ const { defaultPaymentMethod, paymentMethods, subscription } = useMemo31(() => {
25811
26109
  return {
25812
26110
  defaultPaymentMethod: data?.company?.defaultPaymentMethod,
25813
26111
  paymentMethods: data?.company?.paymentMethods || [],
@@ -25820,13 +26118,13 @@ var PaymentMethodDetails = ({
25820
26118
  ]);
25821
26119
  const isLightBackground = useIsLightBackground();
25822
26120
  const initialPaymentMethod = subscription?.paymentMethod || defaultPaymentMethod;
25823
- const [isLoading, setIsLoading] = useState19(!initialPaymentMethod);
25824
- const [error, setError] = useState19();
25825
- const [showPaymentForm, setShowPaymentForm] = useState19(false);
25826
- const [stripe, setStripe] = useState19(null);
25827
- const [setupIntent, setSetupIntent] = useState19();
25828
- const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = useState19(false);
25829
- const [currentPaymentMethod, setCurrentPaymentMethod] = useState19(initialPaymentMethod);
26121
+ const [isLoading, setIsLoading] = useState20(!initialPaymentMethod);
26122
+ const [error, setError] = useState20();
26123
+ const [showPaymentForm, setShowPaymentForm] = useState20(false);
26124
+ const [stripe, setStripe] = useState20(null);
26125
+ const [setupIntent, setSetupIntent] = useState20();
26126
+ const [showDifferentPaymentMethods, setShowDifferentPaymentMethods] = useState20(false);
26127
+ const [currentPaymentMethod, setCurrentPaymentMethod] = useState20(initialPaymentMethod);
25830
26128
  const { isConfirming: isConfirmingPayment } = usePaymentConfirmation({
25831
26129
  stripe,
25832
26130
  clientSecret: confirmPaymentIntentProps?.clientSecret,
@@ -25839,7 +26137,7 @@ var PaymentMethodDetails = ({
25839
26137
  },
25840
26138
  autoConfirm: true
25841
26139
  });
25842
- const monthsToExpiration = useMemo30(() => {
26140
+ const monthsToExpiration = useMemo31(() => {
25843
26141
  let expiration;
25844
26142
  if (typeof currentPaymentMethod?.cardExpYear === "number" && typeof currentPaymentMethod?.cardExpMonth === "number") {
25845
26143
  const now = /* @__PURE__ */ new Date();
@@ -25862,7 +26160,7 @@ var PaymentMethodDetails = ({
25862
26160
  const toggleShowPaymentMethods = () => {
25863
26161
  setShowDifferentPaymentMethods((prev2) => !prev2);
25864
26162
  };
25865
- const locale = useMemo30(() => stripeLocale(i18n.language), [i18n.language]);
26163
+ const locale = useMemo31(() => stripeLocale(i18n.language), [i18n.language]);
25866
26164
  const initializeStripe = useCallback15(() => {
25867
26165
  if (stripe || !setupIntent) {
25868
26166
  return;
@@ -25939,10 +26237,10 @@ var PaymentMethodDetails = ({
25939
26237
  },
25940
26238
  [t4, deletePaymentMethod]
25941
26239
  );
25942
- useEffect7(() => {
26240
+ useEffect8(() => {
25943
26241
  initializeStripe();
25944
26242
  }, [initializeStripe]);
25945
- useEffect7(() => {
26243
+ useEffect8(() => {
25946
26244
  if (!setupIntent && (!currentPaymentMethod || showPaymentForm)) {
25947
26245
  initializePaymentMethod();
25948
26246
  }
@@ -25952,7 +26250,7 @@ var PaymentMethodDetails = ({
25952
26250
  showPaymentForm,
25953
26251
  initializePaymentMethod
25954
26252
  ]);
25955
- return /* @__PURE__ */ jsxs43(
26253
+ return /* @__PURE__ */ jsxs44(
25956
26254
  Flex,
25957
26255
  {
25958
26256
  $position: "relative",
@@ -25960,7 +26258,7 @@ var PaymentMethodDetails = ({
25960
26258
  $flexGrow: 1,
25961
26259
  $gap: "1.5rem",
25962
26260
  children: [
25963
- /* @__PURE__ */ jsx58(
26261
+ /* @__PURE__ */ jsx59(
25964
26262
  Flex,
25965
26263
  {
25966
26264
  $position: "absolute",
@@ -25969,7 +26267,7 @@ var PaymentMethodDetails = ({
25969
26267
  $alignItems: "center",
25970
26268
  $width: "100%",
25971
26269
  $height: "100%",
25972
- children: /* @__PURE__ */ jsx58(
26270
+ children: /* @__PURE__ */ jsx59(
25973
26271
  Loader,
25974
26272
  {
25975
26273
  $color: settings.theme.primary,
@@ -25979,7 +26277,7 @@ var PaymentMethodDetails = ({
25979
26277
  )
25980
26278
  }
25981
26279
  ),
25982
- /* @__PURE__ */ jsxs43(
26280
+ /* @__PURE__ */ jsxs44(
25983
26281
  Flex,
25984
26282
  {
25985
26283
  $zIndex: isLoading || isConfirmingPayment ? 0 : 1,
@@ -25996,7 +26294,7 @@ var PaymentMethodDetails = ({
25996
26294
  }
25997
26295
  },
25998
26296
  children: [
25999
- setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ jsxs43(
26297
+ setupIntent && showPaymentForm && stripe ? /* @__PURE__ */ jsxs44(
26000
26298
  Elements,
26001
26299
  {
26002
26300
  stripe,
@@ -26027,7 +26325,7 @@ var PaymentMethodDetails = ({
26027
26325
  clientSecret: setupIntent?.setupIntentClientSecret
26028
26326
  },
26029
26327
  children: [
26030
- /* @__PURE__ */ jsx58(
26328
+ /* @__PURE__ */ jsx59(
26031
26329
  PaymentForm,
26032
26330
  {
26033
26331
  financeData,
@@ -26038,7 +26336,7 @@ var PaymentMethodDetails = ({
26038
26336
  }
26039
26337
  }
26040
26338
  ),
26041
- currentPaymentMethod && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(
26339
+ currentPaymentMethod && /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(
26042
26340
  Text,
26043
26341
  {
26044
26342
  onClick: focusExistingPaymentMethods,
@@ -26051,8 +26349,8 @@ var PaymentMethodDetails = ({
26051
26349
  ) })
26052
26350
  ]
26053
26351
  }
26054
- ) : /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26055
- /* @__PURE__ */ jsx58(
26352
+ ) : /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", children: [
26353
+ /* @__PURE__ */ jsx59(
26056
26354
  PaymentMethodElement,
26057
26355
  {
26058
26356
  paymentMethod: currentPaymentMethod,
@@ -26065,8 +26363,8 @@ var PaymentMethodDetails = ({
26065
26363
  ...props
26066
26364
  }
26067
26365
  ),
26068
- paymentMethods.length > 0 && /* @__PURE__ */ jsxs43(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26069
- /* @__PURE__ */ jsx58(
26366
+ paymentMethods.length > 0 && /* @__PURE__ */ jsxs44(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
26367
+ /* @__PURE__ */ jsx59(
26070
26368
  Text,
26071
26369
  {
26072
26370
  onClick: toggleShowPaymentMethods,
@@ -26077,7 +26375,7 @@ var PaymentMethodDetails = ({
26077
26375
  children: t4("Choose different payment method")
26078
26376
  }
26079
26377
  ),
26080
- /* @__PURE__ */ jsx58(
26378
+ /* @__PURE__ */ jsx59(
26081
26379
  Icon3,
26082
26380
  {
26083
26381
  name: showDifferentPaymentMethods ? "chevron-up" : "chevron-down",
@@ -26085,10 +26383,10 @@ var PaymentMethodDetails = ({
26085
26383
  }
26086
26384
  )
26087
26385
  ] }),
26088
- showDifferentPaymentMethods && /* @__PURE__ */ jsxs43(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26089
- paymentMethods.length > 1 && /* @__PURE__ */ jsx58(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26386
+ showDifferentPaymentMethods && /* @__PURE__ */ jsxs44(Flex, { $flexDirection: "column", $gap: "2rem", $marginTop: "-1rem", children: [
26387
+ paymentMethods.length > 1 && /* @__PURE__ */ jsx59(Flex, { $flexDirection: "column", $overflow: "auto", children: (paymentMethods.filter(
26090
26388
  (paymentMethod) => paymentMethod.id !== currentPaymentMethod?.id
26091
- ) || []).map((paymentMethod) => /* @__PURE__ */ jsx58(
26389
+ ) || []).map((paymentMethod) => /* @__PURE__ */ jsx59(
26092
26390
  PaymentListElement,
26093
26391
  {
26094
26392
  paymentMethod,
@@ -26097,7 +26395,7 @@ var PaymentMethodDetails = ({
26097
26395
  },
26098
26396
  paymentMethod.id
26099
26397
  )) }),
26100
- /* @__PURE__ */ jsx58(
26398
+ /* @__PURE__ */ jsx59(
26101
26399
  Button,
26102
26400
  {
26103
26401
  type: "button",
@@ -26112,7 +26410,7 @@ var PaymentMethodDetails = ({
26112
26410
  )
26113
26411
  ] })
26114
26412
  ] }),
26115
- !isLoading && error && /* @__PURE__ */ jsx58(Box, { children: /* @__PURE__ */ jsx58(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26413
+ !isLoading && error && /* @__PURE__ */ jsx59(Box, { children: /* @__PURE__ */ jsx59(Text, { $weight: 500, $color: "#DB6669", children: error }) })
26116
26414
  ]
26117
26415
  }
26118
26416
  )
@@ -26122,13 +26420,13 @@ var PaymentMethodDetails = ({
26122
26420
  };
26123
26421
 
26124
26422
  // src/components/elements/plan-manager/PlanManager.tsx
26125
- import { forwardRef as forwardRef14, useMemo as useMemo32 } from "react";
26423
+ import { forwardRef as forwardRef14, useMemo as useMemo33 } from "react";
26126
26424
 
26127
26425
  // src/components/elements/plan-manager/AddOn.tsx
26128
- import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
26426
+ import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
26129
26427
  var AddOn = ({ addOn, currency, period, layout }) => {
26130
26428
  const resolvedPeriod = addOn.planPeriod === "one-time" ? addOn.planPeriod : period ?? addOn.planPeriod;
26131
- return /* @__PURE__ */ jsxs44(
26429
+ return /* @__PURE__ */ jsxs45(
26132
26430
  Flex,
26133
26431
  {
26134
26432
  $justifyContent: "space-between",
@@ -26136,10 +26434,10 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26136
26434
  $flexWrap: "wrap",
26137
26435
  $gap: "1rem",
26138
26436
  children: [
26139
- /* @__PURE__ */ jsx59(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26140
- typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs44(Text, { children: [
26437
+ /* @__PURE__ */ jsx60(Text, { display: layout.addOns.fontStyle, children: addOn.name }),
26438
+ typeof addOn.planPrice === "number" && resolvedPeriod && /* @__PURE__ */ jsxs45(Text, { children: [
26141
26439
  formatCurrency(addOn.planPrice, currency),
26142
- /* @__PURE__ */ jsx59("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26440
+ /* @__PURE__ */ jsx60("sub", { children: resolvedPeriod === "one-time" ? shortenPeriod(resolvedPeriod) : `/${shortenPeriod(resolvedPeriod)}` })
26143
26441
  ] })
26144
26442
  ]
26145
26443
  }
@@ -26147,8 +26445,8 @@ var AddOn = ({ addOn, currency, period, layout }) => {
26147
26445
  };
26148
26446
 
26149
26447
  // src/components/elements/plan-manager/UsageDetails.tsx
26150
- import { Fragment as Fragment24, useMemo as useMemo31 } from "react";
26151
- import { Fragment as Fragment25, jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
26448
+ import { Fragment as Fragment24, useMemo as useMemo32 } from "react";
26449
+ import { Fragment as Fragment25, jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
26152
26450
  var UsageDetails2 = ({
26153
26451
  entitlement,
26154
26452
  period,
@@ -26163,40 +26461,40 @@ var UsageDetails2 = ({
26163
26461
  billingPrice,
26164
26462
  limit,
26165
26463
  cost = 0
26166
- } = useMemo31(
26464
+ } = useMemo32(
26167
26465
  () => getUsageDetails(entitlement, period, currency, {
26168
26466
  showWarningThresholdAsLimit
26169
26467
  }),
26170
26468
  [entitlement, period, currency, showWarningThresholdAsLimit]
26171
26469
  );
26172
- const description = useMemo31(() => {
26470
+ const description = useMemo32(() => {
26173
26471
  const acc = [];
26174
26472
  let index = 0;
26175
26473
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Overage) {
26176
- acc.push(/* @__PURE__ */ jsxs45(Fragment24, { children: [
26474
+ acc.push(/* @__PURE__ */ jsxs46(Fragment24, { children: [
26177
26475
  t4("Additional"),
26178
26476
  ": "
26179
26477
  ] }, index));
26180
26478
  index += 1;
26181
26479
  }
26182
26480
  if (entitlement.priceBehavior === EntitlementPriceBehavior.Tier) {
26183
- acc.push(/* @__PURE__ */ jsx60(Fragment24, { children: t4("Tier-based") }, index));
26481
+ acc.push(/* @__PURE__ */ jsx61(Fragment24, { children: t4("Tier-based") }, index));
26184
26482
  index += 1;
26185
26483
  }
26186
26484
  const { price } = getEntitlementPrice(entitlement, period, currency) || {};
26187
26485
  if ((entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo || entitlement.priceBehavior === EntitlementPriceBehavior.Overage) && entitlement.feature && typeof price === "number") {
26188
26486
  const packageSize = billingPrice?.packageSize ?? 1;
26189
26487
  acc.push(
26190
- /* @__PURE__ */ jsxs45(Fragment24, { children: [
26488
+ /* @__PURE__ */ jsxs46(Fragment24, { children: [
26191
26489
  formatCurrency(price, billingPrice?.currency),
26192
- /* @__PURE__ */ jsxs45("sub", { children: [
26490
+ /* @__PURE__ */ jsxs46("sub", { children: [
26193
26491
  "/",
26194
- packageSize > 1 && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26492
+ packageSize > 1 && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26195
26493
  packageSize,
26196
26494
  " "
26197
26495
  ] }),
26198
26496
  getFeatureName(entitlement.feature, packageSize),
26199
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26497
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26200
26498
  "/",
26201
26499
  shortenPeriod(period)
26202
26500
  ] })
@@ -26207,7 +26505,7 @@ var UsageDetails2 = ({
26207
26505
  }
26208
26506
  if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
26209
26507
  acc.push(
26210
- /* @__PURE__ */ jsxs45(Fragment24, { children: [
26508
+ /* @__PURE__ */ jsxs46(Fragment24, { children: [
26211
26509
  formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
26212
26510
  " ",
26213
26511
  getFeatureName(
@@ -26235,7 +26533,7 @@ var UsageDetails2 = ({
26235
26533
  return null;
26236
26534
  }
26237
26535
  const quantity = entitlement.priceBehavior !== EntitlementPriceBehavior.CreditBurndown ? limit : void 0;
26238
- return /* @__PURE__ */ jsxs45(
26536
+ return /* @__PURE__ */ jsxs46(
26239
26537
  Flex,
26240
26538
  {
26241
26539
  $justifyContent: "space-between",
@@ -26243,13 +26541,13 @@ var UsageDetails2 = ({
26243
26541
  $flexWrap: "wrap",
26244
26542
  $gap: "0.5rem",
26245
26543
  children: [
26246
- /* @__PURE__ */ jsx60(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs45(Fragment25, { children: [
26544
+ /* @__PURE__ */ jsx61(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ jsxs46(Fragment25, { children: [
26247
26545
  quantity,
26248
26546
  " ",
26249
26547
  getFeatureName(entitlement.feature, quantity, true)
26250
26548
  ] }) : entitlement.feature.name }),
26251
- /* @__PURE__ */ jsxs45(Text, { children: [
26252
- description.length > 0 && /* @__PURE__ */ jsx60(
26549
+ /* @__PURE__ */ jsxs46(Text, { children: [
26550
+ description.length > 0 && /* @__PURE__ */ jsx61(
26253
26551
  Text,
26254
26552
  {
26255
26553
  style: { opacity: 0.54 },
@@ -26260,15 +26558,15 @@ var UsageDetails2 = ({
26260
26558
  ),
26261
26559
  // only show cost for pay-in-advance entitlements
26262
26560
  // `description` will include price for other price behaviors
26263
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs45(Fragment25, { children: [
26561
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs46(Fragment25, { children: [
26264
26562
  " ",
26265
26563
  formatCurrency(cost, billingPrice?.currency),
26266
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs45("sub", { children: [
26564
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs46("sub", { children: [
26267
26565
  "/",
26268
26566
  shortenPeriod(period)
26269
26567
  ] })
26270
26568
  ] }),
26271
- entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx60(
26569
+ entitlement.priceBehavior === EntitlementPriceBehavior.Tier && /* @__PURE__ */ jsx61(
26272
26570
  PricingTiersTooltip,
26273
26571
  {
26274
26572
  feature: entitlement.feature,
@@ -26278,7 +26576,7 @@ var UsageDetails2 = ({
26278
26576
  tiersMode: billingPrice?.tiersMode ?? void 0
26279
26577
  }
26280
26578
  ),
26281
- entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx60(
26579
+ entitlementHasHardLimit(entitlement) && entitlement.allocationType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx61(
26282
26580
  HardLimitTooltip,
26283
26581
  {
26284
26582
  feature: entitlement.feature,
@@ -26292,7 +26590,7 @@ var UsageDetails2 = ({
26292
26590
  };
26293
26591
 
26294
26592
  // src/components/elements/plan-manager/PlanManager.tsx
26295
- import { Fragment as Fragment26, jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
26593
+ import { Fragment as Fragment26, jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
26296
26594
  var resolveDesignProps7 = (props) => {
26297
26595
  return {
26298
26596
  header: {
@@ -26340,7 +26638,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26340
26638
  showCredits,
26341
26639
  showZeroPriceAsFree,
26342
26640
  trialPaymentMethodRequired
26343
- } = useMemo32(() => {
26641
+ } = useMemo33(() => {
26344
26642
  const planCreditOrder = /* @__PURE__ */ new Map();
26345
26643
  (data?.company?.plan?.includedCreditGrants ?? []).forEach((grant) => {
26346
26644
  if (!planCreditOrder.has(grant.creditId)) {
@@ -26400,15 +26698,15 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26400
26698
  data?.displaySettings?.showZeroPriceAsFree,
26401
26699
  data?.trialPaymentMethodRequired
26402
26700
  ]);
26403
- const usageBasedEntitlements = useMemo32(
26701
+ const usageBasedEntitlements = useMemo33(
26404
26702
  () => featureUsage.filter((usage) => typeof usage.priceBehavior === "string"),
26405
26703
  [featureUsage]
26406
26704
  );
26407
- const planCreditCompositions = useMemo32(
26705
+ const planCreditCompositions = useMemo33(
26408
26706
  () => groupPlanCreditGrants(currentPlan?.includedCreditGrants ?? []),
26409
26707
  [currentPlan?.includedCreditGrants]
26410
26708
  );
26411
- const resolveLicenseQuantity = useMemo32(() => {
26709
+ const resolveLicenseQuantity = useMemo33(() => {
26412
26710
  return (licenseId) => {
26413
26711
  const allocation = findLicenseSource(featureUsage, licenseId)?.allocation;
26414
26712
  return typeof allocation === "number" ? allocation : void 0;
@@ -26431,7 +26729,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26431
26729
  subscriptionCurrency,
26432
26730
  willSubscriptionCancel,
26433
26731
  isTrialSubscription
26434
- } = useMemo32(() => {
26732
+ } = useMemo33(() => {
26435
26733
  const subscriptionInterval2 = getSubscriptionPeriod(billingSubscription) ?? billingSubscription?.interval;
26436
26734
  const subscriptionCurrency2 = billingSubscription?.currency;
26437
26735
  const isTrialSubscription2 = billingSubscription?.status === "trialing";
@@ -26444,7 +26742,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26444
26742
  };
26445
26743
  }, [billingSubscription]);
26446
26744
  const currentPlanPeriod = getSubscriptionPeriod(billingSubscription) ?? currentPlan?.planPeriod ?? void 0;
26447
- const { isFreePlan, isUsageBasedPlan } = useMemo32(() => {
26745
+ const { isFreePlan, isUsageBasedPlan } = useMemo33(() => {
26448
26746
  const isFreePlan2 = currentPlan?.planPrice === 0;
26449
26747
  const isUsageBasedPlan2 = isFreePlan2 && usageBasedEntitlements.length > 0;
26450
26748
  return { isFreePlan: isFreePlan2, isUsageBasedPlan: isUsageBasedPlan2 };
@@ -26452,8 +26750,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26452
26750
  const hasAutoTopupSelfService = currentPlan?.includedCreditGrants.some(
26453
26751
  (grant) => isSelfServiceAutoTopupAvailable(grant)
26454
26752
  ) ?? false;
26455
- return /* @__PURE__ */ jsxs46(Fragment26, { children: [
26456
- isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ jsxs46(
26753
+ return /* @__PURE__ */ jsxs47(Fragment26, { children: [
26754
+ isTrialSubscription && !willSubscriptionCancel ? /* @__PURE__ */ jsxs47(
26457
26755
  Notice,
26458
26756
  {
26459
26757
  as: Flex,
@@ -26463,8 +26761,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26463
26761
  $textAlign: "center",
26464
26762
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26465
26763
  children: [
26466
- typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26467
- (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx61(
26764
+ typeof trialEnd.endDate !== "undefined" && /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Trial ends in", trialEnd) }),
26765
+ (trialPaymentMethodRequired || postTrialPlan || currentPlan) && /* @__PURE__ */ jsx62(
26468
26766
  Text,
26469
26767
  {
26470
26768
  as: "p",
@@ -26478,7 +26776,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26478
26776
  )
26479
26777
  ]
26480
26778
  }
26481
- ) : willSubscriptionCancel ? /* @__PURE__ */ jsxs46(
26779
+ ) : willSubscriptionCancel ? /* @__PURE__ */ jsxs47(
26482
26780
  Notice,
26483
26781
  {
26484
26782
  as: Flex,
@@ -26488,8 +26786,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26488
26786
  $textAlign: "center",
26489
26787
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26490
26788
  children: [
26491
- /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26492
- typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx61(
26789
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Subscription canceled") }),
26790
+ typeof billingSubscription?.cancelAt === "number" && /* @__PURE__ */ jsx62(
26493
26791
  Text,
26494
26792
  {
26495
26793
  as: "p",
@@ -26504,7 +26802,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26504
26802
  )
26505
26803
  ]
26506
26804
  }
26507
- ) : customPlanBilling ? /* @__PURE__ */ jsxs46(
26805
+ ) : customPlanBilling ? /* @__PURE__ */ jsxs47(
26508
26806
  Notice,
26509
26807
  {
26510
26808
  as: Flex,
@@ -26514,19 +26812,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26514
26812
  $textAlign: "center",
26515
26813
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26516
26814
  children: [
26517
- /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26815
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment", {
26518
26816
  plan: customPlanBilling.planName ?? t4("your plan")
26519
26817
  }) : t4("Custom plan payment due", {
26520
26818
  plan: customPlanBilling.planName ?? t4("your plan"),
26521
26819
  date: toPrettyDate(customPlanBilling.deadline)
26522
26820
  }) }),
26523
- /* @__PURE__ */ jsx61(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26821
+ /* @__PURE__ */ jsx62(Text, { as: "p", $size: 0.8125 * settings.theme.typography.text.fontSize, children: customPlanBilling.isAwaitingActivation ? t4("Custom plan awaiting payment description", {
26524
26822
  date: toPrettyDate(customPlanBilling.deadline)
26525
26823
  }) : t4("Custom plan payment due description", {
26526
26824
  plan: customPlanBilling.planName ?? t4("your plan"),
26527
26825
  date: toPrettyDate(customPlanBilling.deadline)
26528
26826
  }) }),
26529
- customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx61(
26827
+ customPlanBilling.billing.stripeInvoiceUrl && /* @__PURE__ */ jsx62(
26530
26828
  Button,
26531
26829
  {
26532
26830
  as: "a",
@@ -26540,7 +26838,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26540
26838
  )
26541
26839
  ]
26542
26840
  }
26543
- ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ jsxs46(
26841
+ ) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ jsxs47(
26544
26842
  Notice,
26545
26843
  {
26546
26844
  as: Flex,
@@ -26550,10 +26848,10 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26550
26848
  $textAlign: "center",
26551
26849
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26552
26850
  children: [
26553
- /* @__PURE__ */ jsx61(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26851
+ /* @__PURE__ */ jsx62(Text, { as: "h3", display: "heading3", children: t4("Downgrade to plan scheduled", {
26554
26852
  plan: data.company.scheduledDowngrade.toPlanName
26555
26853
  }) }),
26556
- typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx61(
26854
+ typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx62(
26557
26855
  Text,
26558
26856
  {
26559
26857
  as: "p",
@@ -26569,7 +26867,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26569
26867
  ]
26570
26868
  }
26571
26869
  ),
26572
- /* @__PURE__ */ jsxs46(
26870
+ /* @__PURE__ */ jsxs47(
26573
26871
  Element,
26574
26872
  {
26575
26873
  as: Flex,
@@ -26578,19 +26876,19 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26578
26876
  $flexDirection: "column",
26579
26877
  $gap: "2rem",
26580
26878
  children: [
26581
- props.header.isVisible && currentPlan && /* @__PURE__ */ jsxs46(
26879
+ props.header.isVisible && currentPlan && /* @__PURE__ */ jsxs47(
26582
26880
  Flex,
26583
26881
  {
26584
26882
  $justifyContent: "space-between",
26585
26883
  $alignItems: "center",
26586
26884
  $gap: "1rem",
26587
26885
  children: [
26588
- /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "1rem", children: [
26589
- /* @__PURE__ */ jsx61(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
26590
- props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx61(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
26886
+ /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "1rem", children: [
26887
+ /* @__PURE__ */ jsx62(Text, { display: props.header.title.fontStyle, $leading: "none", children: currentPlan.name }),
26888
+ props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx62(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
26591
26889
  ] }),
26592
- props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs46(Box, { children: [
26593
- /* @__PURE__ */ jsx61(
26890
+ props.header.price.isVisible && typeof currentPlan.planPrice === "number" && /* @__PURE__ */ jsxs47(Box, { children: [
26891
+ /* @__PURE__ */ jsx62(
26594
26892
  Text,
26595
26893
  {
26596
26894
  display: isUsageBasedPlan ? "heading3" : props.header.price.fontStyle,
@@ -26600,7 +26898,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26600
26898
  )
26601
26899
  }
26602
26900
  ),
26603
- !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx61(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs46("sub", { children: [
26901
+ !isFreePlan && currentPlanPeriod && /* @__PURE__ */ jsx62(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs47("sub", { children: [
26604
26902
  "/",
26605
26903
  shortenPeriod(currentPlanPeriod)
26606
26904
  ] }) })
@@ -26608,8 +26906,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26608
26906
  ]
26609
26907
  }
26610
26908
  ),
26611
- props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26612
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
26909
+ props.addOns.isVisible && currentAddOns.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26910
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26613
26911
  Text,
26614
26912
  {
26615
26913
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26617,7 +26915,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26617
26915
  children: t4("Add-ons")
26618
26916
  }
26619
26917
  ),
26620
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx61(
26918
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: currentAddOns.map((addOn, addOnIndex) => /* @__PURE__ */ jsx62(
26621
26919
  AddOn,
26622
26920
  {
26623
26921
  addOn,
@@ -26628,8 +26926,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26628
26926
  addOnIndex
26629
26927
  )) })
26630
26928
  ] }),
26631
- props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26632
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
26929
+ props.addOns.isVisible && usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26930
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26633
26931
  Text,
26634
26932
  {
26635
26933
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26637,8 +26935,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26637
26935
  children: t4("Usage-based")
26638
26936
  }
26639
26937
  ),
26640
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
26641
- return /* @__PURE__ */ jsx61(
26938
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: usageBasedEntitlements.map((entitlement, entitlementIndex) => {
26939
+ return /* @__PURE__ */ jsx62(
26642
26940
  UsageDetails2,
26643
26941
  {
26644
26942
  entitlement,
@@ -26651,8 +26949,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26651
26949
  );
26652
26950
  }) })
26653
26951
  ] }),
26654
- props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26655
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
26952
+ props.addOns.isVisible && showCredits && creditGroups.plan.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26953
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26656
26954
  Text,
26657
26955
  {
26658
26956
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26660,7 +26958,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26660
26958
  children: t4("Credits in plan")
26661
26959
  }
26662
26960
  ),
26663
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
26961
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: planCredits.items.map((group, groupIndex) => {
26664
26962
  const planCreditGrant = currentPlan?.includedCreditGrants.find(
26665
26963
  (grant) => grant.creditId === group.id
26666
26964
  );
@@ -26683,13 +26981,13 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26683
26981
  const licenseQuantity = perLicenseGrant?.licenseId ? resolveLicenseQuantity(perLicenseGrant.licenseId) : void 0;
26684
26982
  const creditPeriod = composition.period ?? subscriptionInterval;
26685
26983
  const showPerLicense = !!perLicenseGrant && !!licenseFeature;
26686
- return /* @__PURE__ */ jsxs46(
26984
+ return /* @__PURE__ */ jsxs47(
26687
26985
  Flex,
26688
26986
  {
26689
26987
  $flexDirection: "column",
26690
26988
  $gap: "0.25rem",
26691
26989
  children: [
26692
- /* @__PURE__ */ jsxs46(
26990
+ /* @__PURE__ */ jsxs47(
26693
26991
  Flex,
26694
26992
  {
26695
26993
  $justifyContent: "space-between",
@@ -26697,7 +26995,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26697
26995
  $flexWrap: "wrap",
26698
26996
  $gap: "0.5rem",
26699
26997
  children: [
26700
- /* @__PURE__ */ jsx61(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs46(Fragment26, { children: [
26998
+ /* @__PURE__ */ jsx62(Text, { display: props.addOns.fontStyle, children: showPerLicense ? /* @__PURE__ */ jsxs47(Fragment26, { children: [
26701
26999
  t4("X credits per license", {
26702
27000
  amount: perLicenseGrant.amount,
26703
27001
  creditName: getFeatureName(
@@ -26706,7 +27004,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26706
27004
  ),
26707
27005
  licenseName: getFeatureName(licenseFeature, 1)
26708
27006
  }),
26709
- composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ jsxs46(Fragment26, { children: [
27007
+ composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ jsxs47(Fragment26, { children: [
26710
27008
  " ",
26711
27009
  t4("Plus X credits per period", {
26712
27010
  amount: composition.fixedQuantity,
@@ -26717,18 +27015,18 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26717
27015
  period: t4(creditPeriod)
26718
27016
  })
26719
27017
  ] })
26720
- ] }) : /* @__PURE__ */ jsxs46(Fragment26, { children: [
27018
+ ] }) : /* @__PURE__ */ jsxs47(Fragment26, { children: [
26721
27019
  group.total.value,
26722
27020
  " ",
26723
27021
  getFeatureName(group, group.total.value),
26724
27022
  " ",
26725
- subscriptionInterval && /* @__PURE__ */ jsxs46(Fragment26, { children: [
27023
+ subscriptionInterval && /* @__PURE__ */ jsxs47(Fragment26, { children: [
26726
27024
  t4("per"),
26727
27025
  " ",
26728
27026
  t4(subscriptionInterval)
26729
27027
  ] })
26730
27028
  ] }) }),
26731
- group.total.used > 0 && /* @__PURE__ */ jsx61(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs46(
27029
+ group.total.used > 0 && /* @__PURE__ */ jsx62(Flex, { $alignItems: "baseline", children: /* @__PURE__ */ jsxs47(
26732
27030
  Text,
26733
27031
  {
26734
27032
  style: { opacity: 0.54 },
@@ -26738,7 +27036,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26738
27036
  group.total.used,
26739
27037
  " ",
26740
27038
  t4("used"),
26741
- hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx61(
27039
+ hasAutoTopup && planCreditGrant && !isAutoTopupOff(planCreditGrant) && /* @__PURE__ */ jsx62(
26742
27040
  AutoTopupNotice,
26743
27041
  {
26744
27042
  thresholdCredits,
@@ -26751,7 +27049,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26751
27049
  ]
26752
27050
  }
26753
27051
  ),
26754
- showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx61(
27052
+ showPerLicense && typeof licenseQuantity === "number" && typeof resolvedTotal === "number" && creditPeriod && /* @__PURE__ */ jsx62(
26755
27053
  Text,
26756
27054
  {
26757
27055
  style: { opacity: 0.54 },
@@ -26792,7 +27090,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26792
27090
  groupIndex
26793
27091
  );
26794
27092
  }) }),
26795
- planCredits.canExpand && /* @__PURE__ */ jsx61(
27093
+ planCredits.canExpand && /* @__PURE__ */ jsx62(
26796
27094
  ExpandListToggle,
26797
27095
  {
26798
27096
  isExpanded: planCredits.isExpanded,
@@ -26801,7 +27099,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26801
27099
  $marginTop: "0.5rem"
26802
27100
  }
26803
27101
  ),
26804
- hasAutoTopupSelfService && /* @__PURE__ */ jsxs46(
27102
+ hasAutoTopupSelfService && /* @__PURE__ */ jsxs47(
26805
27103
  Flex,
26806
27104
  {
26807
27105
  $justifyContent: "space-between",
@@ -26811,8 +27109,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26811
27109
  $backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
26812
27110
  $borderRadius: "0.5rem",
26813
27111
  children: [
26814
- /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26815
- /* @__PURE__ */ jsx61(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
27112
+ /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27113
+ /* @__PURE__ */ jsx62(Text, { display: props.addOns.fontStyle, children: t4("Auto top-up") }),
26816
27114
  currentPlan?.includedCreditGrants.reduce(
26817
27115
  (acc, grant) => {
26818
27116
  if (!grant.credit || !isSelfServiceAutoTopupAvailable(grant)) {
@@ -26821,7 +27119,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26821
27119
  const autoTopupEnabled = grant.companyAutoTopupEnabled ?? false;
26822
27120
  if (!autoTopupEnabled) {
26823
27121
  acc.push(
26824
- /* @__PURE__ */ jsx61(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
27122
+ /* @__PURE__ */ jsx62(Text, { $leading: "tight", children: t4("Auto top-up disabled for token", {
26825
27123
  unit: getFeatureName(grant.credit, 1)
26826
27124
  }) }, grant.id)
26827
27125
  );
@@ -26831,7 +27129,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26831
27129
  const autoTopupAmount = getAutoTopupAmount(grant);
26832
27130
  if (typeof autoTopupThresholdCredits === "number" && typeof autoTopupAmount === "number") {
26833
27131
  acc.push(
26834
- /* @__PURE__ */ jsx61(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
27132
+ /* @__PURE__ */ jsx62(Text, { $leading: "tight", children: t4("Adds X tokens when Y remaining in balance", {
26835
27133
  unit: getFeatureName(
26836
27134
  grant.credit,
26837
27135
  autoTopupAmount
@@ -26846,7 +27144,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26846
27144
  []
26847
27145
  )
26848
27146
  ] }),
26849
- /* @__PURE__ */ jsx61(
27147
+ /* @__PURE__ */ jsx62(
26850
27148
  Button,
26851
27149
  {
26852
27150
  type: "button",
@@ -26863,8 +27161,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26863
27161
  }
26864
27162
  )
26865
27163
  ] }),
26866
- props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26867
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27164
+ props.addOns.isVisible && showCredits && creditGroups.autoTopups.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27165
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26868
27166
  Text,
26869
27167
  {
26870
27168
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26872,9 +27170,9 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26872
27170
  children: t4("Top-ups")
26873
27171
  }
26874
27172
  ),
26875
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
27173
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: autoTopupCredits.items.map((group, groupIndex) => {
26876
27174
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
26877
- return /* @__PURE__ */ jsxs46(
27175
+ return /* @__PURE__ */ jsxs47(
26878
27176
  Flex,
26879
27177
  {
26880
27178
  $justifyContent: "space-between",
@@ -26882,8 +27180,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26882
27180
  $flexWrap: "wrap",
26883
27181
  $gap: "0.5rem",
26884
27182
  children: [
26885
- bundle ? /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
26886
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27183
+ bundle ? /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27184
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
26887
27185
  "(",
26888
27186
  group.grants.length,
26889
27187
  ")",
@@ -26895,8 +27193,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26895
27193
  " ",
26896
27194
  getFeatureName(group, group.quantity),
26897
27195
  ")"
26898
- ] }) : /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
26899
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27196
+ ] }) : /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27197
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
26900
27198
  "(",
26901
27199
  group.grants.length,
26902
27200
  ")",
@@ -26906,7 +27204,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26906
27204
  " ",
26907
27205
  getFeatureName(group, group.quantity)
26908
27206
  ] }),
26909
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27207
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
26910
27208
  Text,
26911
27209
  {
26912
27210
  style: { opacity: 0.54 },
@@ -26924,7 +27222,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26924
27222
  groupIndex
26925
27223
  );
26926
27224
  }) }),
26927
- autoTopupCredits.canExpand && /* @__PURE__ */ jsx61(
27225
+ autoTopupCredits.canExpand && /* @__PURE__ */ jsx62(
26928
27226
  ExpandListToggle,
26929
27227
  {
26930
27228
  isExpanded: autoTopupCredits.isExpanded,
@@ -26934,8 +27232,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26934
27232
  }
26935
27233
  )
26936
27234
  ] }),
26937
- props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
26938
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27235
+ props.addOns.isVisible && creditGroups.bundles.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27236
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
26939
27237
  Text,
26940
27238
  {
26941
27239
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -26943,9 +27241,9 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26943
27241
  children: t4("Credit bundles")
26944
27242
  }
26945
27243
  ),
26946
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
27244
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: bundleCredits.items.map((group, groupIndex) => {
26947
27245
  const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
26948
- return /* @__PURE__ */ jsxs46(
27246
+ return /* @__PURE__ */ jsxs47(
26949
27247
  Flex,
26950
27248
  {
26951
27249
  $justifyContent: "space-between",
@@ -26953,8 +27251,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26953
27251
  $flexWrap: "wrap",
26954
27252
  $gap: "0.5rem",
26955
27253
  children: [
26956
- bundle ? /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
26957
- group.grants.length > 1 && /* @__PURE__ */ jsxs46(Text, { style: { opacity: 0.5 }, children: [
27254
+ bundle ? /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27255
+ group.grants.length > 1 && /* @__PURE__ */ jsxs47(Text, { style: { opacity: 0.5 }, children: [
26958
27256
  "(",
26959
27257
  group.grants.length,
26960
27258
  ")",
@@ -26966,12 +27264,12 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26966
27264
  " ",
26967
27265
  getFeatureName(group, group.quantity),
26968
27266
  ")"
26969
- ] }) : /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27267
+ ] }) : /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
26970
27268
  group.quantity,
26971
27269
  " ",
26972
27270
  getFeatureName(group, group.quantity)
26973
27271
  ] }),
26974
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27272
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
26975
27273
  Text,
26976
27274
  {
26977
27275
  style: { opacity: 0.54 },
@@ -26989,7 +27287,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26989
27287
  groupIndex
26990
27288
  );
26991
27289
  }) }),
26992
- bundleCredits.canExpand && /* @__PURE__ */ jsx61(
27290
+ bundleCredits.canExpand && /* @__PURE__ */ jsx62(
26993
27291
  ExpandListToggle,
26994
27292
  {
26995
27293
  isExpanded: bundleCredits.isExpanded,
@@ -26999,8 +27297,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
26999
27297
  }
27000
27298
  )
27001
27299
  ] }),
27002
- props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs46(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27003
- props.addOns.showLabel && /* @__PURE__ */ jsx61(
27300
+ props.addOns.isVisible && creditGroups.promotional.length > 0 && /* @__PURE__ */ jsxs47(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27301
+ props.addOns.showLabel && /* @__PURE__ */ jsx62(
27004
27302
  Text,
27005
27303
  {
27006
27304
  $color: isLightBackground ? darken(settings.theme.card.background, 0.46) : lighten(settings.theme.card.background, 0.46),
@@ -27008,8 +27306,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27008
27306
  children: t4("Promotional credits")
27009
27307
  }
27010
27308
  ),
27011
- /* @__PURE__ */ jsx61(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27012
- return /* @__PURE__ */ jsxs46(
27309
+ /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "1rem", children: promotionalCredits.items.map((group, groupIndex) => {
27310
+ return /* @__PURE__ */ jsxs47(
27013
27311
  Flex,
27014
27312
  {
27015
27313
  $justifyContent: "space-between",
@@ -27017,12 +27315,12 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27017
27315
  $flexWrap: "wrap",
27018
27316
  $gap: "0.5rem",
27019
27317
  children: [
27020
- /* @__PURE__ */ jsxs46(Text, { display: props.addOns.fontStyle, children: [
27318
+ /* @__PURE__ */ jsxs47(Text, { display: props.addOns.fontStyle, children: [
27021
27319
  group.quantity,
27022
27320
  " ",
27023
27321
  getFeatureName(group, group.quantity)
27024
27322
  ] }),
27025
- group.total.used > 0 && /* @__PURE__ */ jsxs46(
27323
+ group.total.used > 0 && /* @__PURE__ */ jsxs47(
27026
27324
  Text,
27027
27325
  {
27028
27326
  style: { opacity: 0.54 },
@@ -27040,7 +27338,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27040
27338
  groupIndex
27041
27339
  );
27042
27340
  }) }),
27043
- promotionalCredits.canExpand && /* @__PURE__ */ jsx61(
27341
+ promotionalCredits.canExpand && /* @__PURE__ */ jsx62(
27044
27342
  ExpandListToggle,
27045
27343
  {
27046
27344
  isExpanded: promotionalCredits.isExpanded,
@@ -27050,7 +27348,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
27050
27348
  }
27051
27349
  )
27052
27350
  ] }),
27053
- canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx61(
27351
+ canCheckout && props.callToAction.isVisible && !customPlanBilling?.isAwaitingActivation && /* @__PURE__ */ jsx62(
27054
27352
  Button,
27055
27353
  {
27056
27354
  type: "button",
@@ -27075,14 +27373,14 @@ import {
27075
27373
  Fragment as Fragment29,
27076
27374
  forwardRef as forwardRef15,
27077
27375
  useCallback as useCallback16,
27078
- useEffect as useEffect8,
27079
- useMemo as useMemo34,
27080
- useState as useState21
27376
+ useEffect as useEffect9,
27377
+ useMemo as useMemo35,
27378
+ useState as useState22
27081
27379
  } from "react";
27082
27380
 
27083
27381
  // src/components/elements/pricing-table/AddOn.tsx
27084
- import { useMemo as useMemo33 } from "react";
27085
- import { Fragment as Fragment27, jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
27382
+ import { useMemo as useMemo34 } from "react";
27383
+ import { Fragment as Fragment27, jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
27086
27384
  function renderMeteredEntitlementPricing2({
27087
27385
  priceBehavior,
27088
27386
  softLimit,
@@ -27094,7 +27392,7 @@ function renderMeteredEntitlementPricing2({
27094
27392
  isTiered
27095
27393
  }) {
27096
27394
  if (priceBehavior === EntitlementPriceBehavior.Overage && softLimit) {
27097
- return /* @__PURE__ */ jsxs47(Fragment27, { children: [
27395
+ return /* @__PURE__ */ jsxs48(Fragment27, { children: [
27098
27396
  "Additional: ",
27099
27397
  formatCurrency(price, currency),
27100
27398
  "/",
@@ -27105,13 +27403,13 @@ function renderMeteredEntitlementPricing2({
27105
27403
  ] });
27106
27404
  }
27107
27405
  if (isTiered) {
27108
- return /* @__PURE__ */ jsx62(Fragment27, { children: "Tier-based pricing" });
27406
+ return /* @__PURE__ */ jsx63(Fragment27, { children: "Tier-based pricing" });
27109
27407
  }
27110
27408
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo || priceBehavior === EntitlementPriceBehavior.PayInAdvance) {
27111
- return /* @__PURE__ */ jsxs47(Fragment27, { children: [
27409
+ return /* @__PURE__ */ jsxs48(Fragment27, { children: [
27112
27410
  formatCurrency(price, currency),
27113
27411
  "/",
27114
- packageSize > 1 && /* @__PURE__ */ jsxs47(Fragment27, { children: [
27412
+ packageSize > 1 && /* @__PURE__ */ jsxs48(Fragment27, { children: [
27115
27413
  packageSize,
27116
27414
  " "
27117
27415
  ] }),
@@ -27137,7 +27435,7 @@ var AddOn2 = ({
27137
27435
  const { data, settings, setCheckoutState, warningThresholdConfig } = useEmbed();
27138
27436
  const showWarningThresholdAsLimit = warningThresholdConfig?.showAsLimit ?? false;
27139
27437
  const isLightBackground = useIsLightBackground();
27140
- const { currentAddOns, canCheckout, isStandalone } = useMemo33(() => {
27438
+ const { currentAddOns, canCheckout, isStandalone } = useMemo34(() => {
27141
27439
  const isStandalone2 = typeof data?.component === "undefined";
27142
27440
  return {
27143
27441
  currentAddOns: data?.company?.addOns || [],
@@ -27180,7 +27478,7 @@ var AddOn2 = ({
27180
27478
  isTiered: entitlement.priceBehavior === EntitlementPriceBehavior.Tier || isTieredPrice(priceData)
27181
27479
  };
27182
27480
  }) || [];
27183
- return /* @__PURE__ */ jsxs47(
27481
+ return /* @__PURE__ */ jsxs48(
27184
27482
  Flex,
27185
27483
  {
27186
27484
  as: "li",
@@ -27200,7 +27498,7 @@ var AddOn2 = ({
27200
27498
  $boxShadow: cardBoxShadow
27201
27499
  },
27202
27500
  children: [
27203
- /* @__PURE__ */ jsxs47(
27501
+ /* @__PURE__ */ jsxs48(
27204
27502
  Flex,
27205
27503
  {
27206
27504
  $flexDirection: "column",
@@ -27211,7 +27509,7 @@ var AddOn2 = ({
27211
27509
  $borderStyle: "solid",
27212
27510
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27213
27511
  children: [
27214
- /* @__PURE__ */ jsx62(Box, { children: /* @__PURE__ */ jsx62(
27512
+ /* @__PURE__ */ jsx63(Box, { children: /* @__PURE__ */ jsx63(
27215
27513
  Text,
27216
27514
  {
27217
27515
  as: "h3",
@@ -27220,22 +27518,22 @@ var AddOn2 = ({
27220
27518
  children: addOn.name
27221
27519
  }
27222
27520
  ) }),
27223
- layout.addOns.showDescription && /* @__PURE__ */ jsx62(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx62(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27224
- /* @__PURE__ */ jsx62(Box, { children: /* @__PURE__ */ jsx62(
27521
+ layout.addOns.showDescription && /* @__PURE__ */ jsx63(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx63(Text, { display: layout.plans.description.fontStyle, children: addOn.description }) }),
27522
+ /* @__PURE__ */ jsx63(Box, { children: /* @__PURE__ */ jsx63(
27225
27523
  Text,
27226
27524
  {
27227
27525
  "data-testid": "sch-addon-price",
27228
27526
  display: layout.plans.name.fontStyle,
27229
- children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ jsxs47(Fragment27, { children: [
27527
+ children: shouldShowUsageBased2(addOnPrice ?? 0, displayableEntitlements) ? t4("Usage-based") : /* @__PURE__ */ jsxs48(Fragment27, { children: [
27230
27528
  formatCurrency(addOnPrice ?? 0, addOnCurrency),
27231
- /* @__PURE__ */ jsxs47("sub", { children: [
27529
+ /* @__PURE__ */ jsxs48("sub", { children: [
27232
27530
  "/",
27233
27531
  selectedPeriod
27234
27532
  ] })
27235
27533
  ] })
27236
27534
  }
27237
27535
  ) }),
27238
- isActiveAddOn && /* @__PURE__ */ jsx62(
27536
+ isActiveAddOn && /* @__PURE__ */ jsx63(
27239
27537
  Flex,
27240
27538
  {
27241
27539
  "data-testid": "sch-addon-active",
@@ -27245,7 +27543,7 @@ var AddOn2 = ({
27245
27543
  $backgroundColor: settings.theme.primary,
27246
27544
  $borderRadius: "9999px",
27247
27545
  $padding: "0.125rem 0.85rem",
27248
- children: /* @__PURE__ */ jsx62(
27546
+ children: /* @__PURE__ */ jsx63(
27249
27547
  Text,
27250
27548
  {
27251
27549
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27258,7 +27556,7 @@ var AddOn2 = ({
27258
27556
  ]
27259
27557
  }
27260
27558
  ),
27261
- /* @__PURE__ */ jsxs47(
27559
+ /* @__PURE__ */ jsxs48(
27262
27560
  Flex,
27263
27561
  {
27264
27562
  $flexDirection: "column",
@@ -27267,7 +27565,7 @@ var AddOn2 = ({
27267
27565
  $flexGrow: 1,
27268
27566
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27269
27567
  children: [
27270
- layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx62(
27568
+ layout.addOns.showEntitlements && displayableEntitlements.length > 0 && /* @__PURE__ */ jsx63(
27271
27569
  Flex,
27272
27570
  {
27273
27571
  as: "ul",
@@ -27279,7 +27577,7 @@ var AddOn2 = ({
27279
27577
  $listStyle: "none",
27280
27578
  children: displayableEntitlements.map((entitlement, idx) => {
27281
27579
  if (entitlement.isUnlimited) {
27282
- return /* @__PURE__ */ jsxs47(
27580
+ return /* @__PURE__ */ jsxs48(
27283
27581
  Flex,
27284
27582
  {
27285
27583
  as: "li",
@@ -27288,8 +27586,8 @@ var AddOn2 = ({
27288
27586
  $alignItems: "center",
27289
27587
  $gap: "1rem",
27290
27588
  children: [
27291
- /* @__PURE__ */ jsxs47(Flex, { $gap: "1rem", children: [
27292
- layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx62(
27589
+ /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
27590
+ layout.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx63(
27293
27591
  Icon3,
27294
27592
  {
27295
27593
  name: entitlement.feature.icon,
@@ -27298,16 +27596,16 @@ var AddOn2 = ({
27298
27596
  rounded: true
27299
27597
  }
27300
27598
  ),
27301
- entitlement.feature && /* @__PURE__ */ jsx62(
27599
+ entitlement.feature && /* @__PURE__ */ jsx63(
27302
27600
  Flex,
27303
27601
  {
27304
27602
  $flexDirection: "column",
27305
27603
  $justifyContent: "center",
27306
- children: /* @__PURE__ */ jsx62(Text, { children: getFeatureName(entitlement.feature) })
27604
+ children: /* @__PURE__ */ jsx63(Text, { children: getFeatureName(entitlement.feature) })
27307
27605
  }
27308
27606
  )
27309
27607
  ] }),
27310
- /* @__PURE__ */ jsx62(
27608
+ /* @__PURE__ */ jsx63(
27311
27609
  Text,
27312
27610
  {
27313
27611
  style: { opacity: 0.54 },
@@ -27322,7 +27620,7 @@ var AddOn2 = ({
27322
27620
  );
27323
27621
  }
27324
27622
  const meteredEntitlement = entitlement;
27325
- return /* @__PURE__ */ jsxs47(
27623
+ return /* @__PURE__ */ jsxs48(
27326
27624
  Flex,
27327
27625
  {
27328
27626
  as: "li",
@@ -27332,8 +27630,8 @@ var AddOn2 = ({
27332
27630
  $gap: "1rem",
27333
27631
  $listStyle: "none",
27334
27632
  children: [
27335
- /* @__PURE__ */ jsxs47(Flex, { $gap: "1rem", children: [
27336
- meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx62(
27633
+ /* @__PURE__ */ jsxs48(Flex, { $gap: "1rem", children: [
27634
+ meteredEntitlement.feature?.icon && /* @__PURE__ */ jsx63(
27337
27635
  Icon3,
27338
27636
  {
27339
27637
  "data-testid": "sch-feature-icon",
@@ -27343,9 +27641,9 @@ var AddOn2 = ({
27343
27641
  rounded: true
27344
27642
  }
27345
27643
  ),
27346
- /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx62(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
27644
+ /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $justifyContent: "center", children: /* @__PURE__ */ jsx63(Text, { children: typeof meteredEntitlement.limit === "number" ? `${meteredEntitlement.limit} ${getEntitlementFeatureName(meteredEntitlement, "units")}` : getEntitlementFeatureName(meteredEntitlement) }) })
27347
27645
  ] }),
27348
- /* @__PURE__ */ jsx62(
27646
+ /* @__PURE__ */ jsx63(
27349
27647
  Text,
27350
27648
  {
27351
27649
  style: { opacity: 0.54 },
@@ -27361,7 +27659,7 @@ var AddOn2 = ({
27361
27659
  })
27362
27660
  }
27363
27661
  ),
27364
- sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx62(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx62(
27662
+ sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsx63(Flex, { $flexDirection: "column", $gap: "0.5rem", children: /* @__PURE__ */ jsx63(
27365
27663
  Button,
27366
27664
  {
27367
27665
  type: "button",
@@ -27400,10 +27698,10 @@ var AddOn2 = ({
27400
27698
  };
27401
27699
 
27402
27700
  // src/components/elements/pricing-table/Plan.tsx
27403
- import { useState as useState20 } from "react";
27701
+ import { useState as useState21 } from "react";
27404
27702
 
27405
27703
  // src/components/elements/pricing-table/Entitlement.tsx
27406
- import { Fragment as Fragment28, jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
27704
+ import { Fragment as Fragment28, jsx as jsx64, jsxs as jsxs49 } from "react/jsx-runtime";
27407
27705
  var Entitlement2 = ({
27408
27706
  entitlement,
27409
27707
  sharedProps,
@@ -27437,8 +27735,8 @@ var Entitlement2 = ({
27437
27735
  entitlement,
27438
27736
  credits
27439
27737
  );
27440
- return /* @__PURE__ */ jsxs48(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27441
- layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx63(
27738
+ return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", style: { listStyle: "none" }, children: [
27739
+ layout.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx64(
27442
27740
  Icon3,
27443
27741
  {
27444
27742
  "data-testid": "sch-feature-icon",
@@ -27448,31 +27746,31 @@ var Entitlement2 = ({
27448
27746
  rounded: true
27449
27747
  }
27450
27748
  ),
27451
- entitlement.feature?.name && /* @__PURE__ */ jsxs48(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27452
- /* @__PURE__ */ jsxs48(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27453
- /* @__PURE__ */ jsx63(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27749
+ entitlement.feature?.name && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27750
+ /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $justifyContent: "center", $flexGrow: 1, children: [
27751
+ /* @__PURE__ */ jsx64(Text, { children: typeof entitlementPrice === "number" && !tiered && (entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance || entitlement.priceBehavior === EntitlementPriceBehavior.PayAsYouGo) ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27454
27752
  formatCurrency(entitlementPrice, entitlementCurrency),
27455
27753
  " ",
27456
27754
  t4("per"),
27457
27755
  " ",
27458
- entitlementPackageSize > 1 && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27756
+ entitlementPackageSize > 1 && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27459
27757
  formatNumber(entitlementPackageSize),
27460
27758
  " "
27461
27759
  ] }),
27462
27760
  getFeatureName(entitlement.feature, entitlementPackageSize),
27463
- entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27761
+ entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27464
27762
  " ",
27465
27763
  t4("per"),
27466
27764
  " ",
27467
27765
  selectedPeriod
27468
27766
  ] })
27469
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx63(
27767
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered ? /* @__PURE__ */ jsx64(
27470
27768
  TieredPricingDetails,
27471
27769
  {
27472
27770
  entitlement,
27473
27771
  period: selectedPeriod
27474
27772
  }
27475
- ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27773
+ ) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27476
27774
  formatConsumptionRate(entitlement.consumptionRate),
27477
27775
  " ",
27478
27776
  getFeatureName(
@@ -27483,7 +27781,7 @@ var Entitlement2 = ({
27483
27781
  t4("per"),
27484
27782
  " ",
27485
27783
  getFeatureName(entitlement.feature, 1)
27486
- ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx63(Fragment28, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27784
+ ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ jsx64(Fragment28, { children: creditBasedEntitlementLimit?.period ? t4("Up to X units per period", {
27487
27785
  amount: formatNumber(creditBasedEntitlementLimit.limit),
27488
27786
  units: getFeatureName(
27489
27787
  entitlement.feature,
@@ -27496,25 +27794,25 @@ var Entitlement2 = ({
27496
27794
  entitlement.feature,
27497
27795
  creditBasedEntitlementLimit.limit
27498
27796
  )
27499
- }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ jsxs48(Fragment28, { children: [
27797
+ }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ jsxs49(Fragment28, { children: [
27500
27798
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t4("Unlimited", {
27501
27799
  item: getFeatureName(entitlement.feature)
27502
- }) : /* @__PURE__ */ jsxs48(Fragment28, { children: [
27503
- typeof limit === "number" && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27800
+ }) : /* @__PURE__ */ jsxs49(Fragment28, { children: [
27801
+ typeof limit === "number" && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27504
27802
  formatNumber(limit),
27505
27803
  " "
27506
27804
  ] }),
27507
27805
  getFeatureName(entitlement.feature, limit)
27508
27806
  ] }),
27509
- metricPeriodName && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27807
+ metricPeriodName && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27510
27808
  " ",
27511
27809
  t4("per"),
27512
27810
  " ",
27513
27811
  t4(metricPeriodName)
27514
27812
  ] })
27515
27813
  ] }) : entitlement.feature.name }),
27516
- /* @__PURE__ */ jsxs48(Text, { children: [
27517
- entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx63(Fragment28, { children: /* @__PURE__ */ jsxs48(
27814
+ /* @__PURE__ */ jsxs49(Text, { children: [
27815
+ entitlement.priceBehavior === EntitlementPriceBehavior.Overage && typeof entitlementPrice === "number" ? /* @__PURE__ */ jsx64(Fragment28, { children: /* @__PURE__ */ jsxs49(
27518
27816
  Text,
27519
27817
  {
27520
27818
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27524,7 +27822,7 @@ var Entitlement2 = ({
27524
27822
  " ",
27525
27823
  formatCurrency(entitlementPrice, entitlementCurrency),
27526
27824
  "/",
27527
- entitlementPackageSize > 1 && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27825
+ entitlementPackageSize > 1 && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27528
27826
  formatNumber(entitlementPackageSize),
27529
27827
  " "
27530
27828
  ] }),
@@ -27532,14 +27830,14 @@ var Entitlement2 = ({
27532
27830
  entitlement.feature,
27533
27831
  entitlementPackageSize
27534
27832
  ),
27535
- entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27833
+ entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27536
27834
  "/",
27537
27835
  shortenPeriod(selectedPeriod)
27538
27836
  ] })
27539
27837
  ]
27540
27838
  }
27541
- ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs48(Fragment28, { children: [
27542
- /* @__PURE__ */ jsx63(
27839
+ ) }) : (entitlement.priceBehavior === EntitlementPriceBehavior.Tier || tiered) && /* @__PURE__ */ jsxs49(Fragment28, { children: [
27840
+ /* @__PURE__ */ jsx64(
27543
27841
  Text,
27544
27842
  {
27545
27843
  style: { opacity: 0.54 },
@@ -27548,7 +27846,7 @@ var Entitlement2 = ({
27548
27846
  children: t4("Tier-based")
27549
27847
  }
27550
27848
  ),
27551
- /* @__PURE__ */ jsx63(
27849
+ /* @__PURE__ */ jsx64(
27552
27850
  PricingTiersTooltip,
27553
27851
  {
27554
27852
  feature: entitlement.feature,
@@ -27559,14 +27857,14 @@ var Entitlement2 = ({
27559
27857
  }
27560
27858
  )
27561
27859
  ] }),
27562
- entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx63(
27860
+ entitlementHasHardLimit(entitlement) && entitlement.valueType === EntitlementValueType.Numeric && /* @__PURE__ */ jsx64(
27563
27861
  HardLimitTooltip,
27564
27862
  {
27565
27863
  feature: entitlement.feature,
27566
27864
  limit: entitlement.valueNumeric
27567
27865
  }
27568
27866
  ),
27569
- entitlement.billingThreshold && /* @__PURE__ */ jsx63(
27867
+ entitlement.billingThreshold && /* @__PURE__ */ jsx64(
27570
27868
  BillingThresholdTooltip,
27571
27869
  {
27572
27870
  billingThreshold: entitlement.billingThreshold
@@ -27574,7 +27872,7 @@ var Entitlement2 = ({
27574
27872
  )
27575
27873
  ] })
27576
27874
  ] }),
27577
- layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx63(
27875
+ layout.plans.showFeatureDescriptions && entitlement.feature?.description && /* @__PURE__ */ jsx64(
27578
27876
  Text,
27579
27877
  {
27580
27878
  $size: 0.875 * settings.theme.typography.text.fontSize,
@@ -27587,7 +27885,7 @@ var Entitlement2 = ({
27587
27885
  };
27588
27886
 
27589
27887
  // src/components/elements/pricing-table/Plan.tsx
27590
- import { jsx as jsx64, jsxs as jsxs49 } from "react/jsx-runtime";
27888
+ import { jsx as jsx65, jsxs as jsxs50 } from "react/jsx-runtime";
27591
27889
  var Plan2 = ({
27592
27890
  plan,
27593
27891
  index,
@@ -27601,7 +27899,7 @@ var Plan2 = ({
27601
27899
  const { data, settings, setCheckoutState } = useEmbed();
27602
27900
  const isLightBackground = useIsLightBackground();
27603
27901
  const trialEnd = useTrialEnd();
27604
- const [entitlementVisibility, setEntitlementVisibility] = useState20({});
27902
+ const [entitlementVisibility, setEntitlementVisibility] = useState21({});
27605
27903
  const handleToggleShowAll = (id) => {
27606
27904
  setEntitlementVisibility((prev2) => {
27607
27905
  const updated = !(prev2[id] ?? false);
@@ -27630,7 +27928,7 @@ var Plan2 = ({
27630
27928
  const isUsageBasedPlan = isFreePlan && hasUsageBasedEntitlements;
27631
27929
  const headerPriceFontStyle = settings.theme.typography[layout.plans.name.fontStyle];
27632
27930
  const isExpanded = entitlementVisibility[plan.id] ?? false;
27633
- return /* @__PURE__ */ jsxs49(
27931
+ return /* @__PURE__ */ jsxs50(
27634
27932
  Flex,
27635
27933
  {
27636
27934
  as: "li",
@@ -27650,7 +27948,7 @@ var Plan2 = ({
27650
27948
  $boxShadow: cardBoxShadow
27651
27949
  },
27652
27950
  children: [
27653
- /* @__PURE__ */ jsxs49(
27951
+ /* @__PURE__ */ jsxs50(
27654
27952
  Flex,
27655
27953
  {
27656
27954
  $flexDirection: "column",
@@ -27661,7 +27959,7 @@ var Plan2 = ({
27661
27959
  $borderStyle: "solid",
27662
27960
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
27663
27961
  children: [
27664
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsx64(
27962
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsx65(
27665
27963
  Text,
27666
27964
  {
27667
27965
  as: "h3",
@@ -27670,8 +27968,8 @@ var Plan2 = ({
27670
27968
  children: plan.name
27671
27969
  }
27672
27970
  ) }),
27673
- layout.plans.description.isVisible && /* @__PURE__ */ jsx64(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx64(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
27674
- /* @__PURE__ */ jsx64(Box, { children: /* @__PURE__ */ jsxs49(
27971
+ layout.plans.description.isVisible && /* @__PURE__ */ jsx65(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx65(Text, { display: layout.plans.description.fontStyle, children: plan.description }) }),
27972
+ /* @__PURE__ */ jsx65(Box, { children: /* @__PURE__ */ jsxs50(
27675
27973
  Text,
27676
27974
  {
27677
27975
  "data-testid": "sch-plan-price",
@@ -27687,14 +27985,14 @@ var Plan2 = ({
27687
27985
  currency: planCurrency,
27688
27986
  testSignificantDigits: false
27689
27987
  }) : formatCurrency(planPrice ?? 0, planCurrency),
27690
- !plan.custom && !isFreePlan && /* @__PURE__ */ jsxs49("sub", { children: [
27988
+ !plan.custom && !isFreePlan && /* @__PURE__ */ jsxs50("sub", { children: [
27691
27989
  "/",
27692
27990
  showAsMonthlyPrices && selectedPeriod === BillingProductPriceInterval.Year ? t4("month, billed yearly") : showAsMonthlyPrices && selectedPeriod === "quarter" ? t4("month, billed quarterly") : t4(selectedPeriod)
27693
27991
  ] })
27694
27992
  ]
27695
27993
  }
27696
27994
  ) }),
27697
- showCredits && credits.length > 0 && /* @__PURE__ */ jsx64(
27995
+ showCredits && credits.length > 0 && /* @__PURE__ */ jsx65(
27698
27996
  Flex,
27699
27997
  {
27700
27998
  as: "ul",
@@ -27706,8 +28004,8 @@ var Plan2 = ({
27706
28004
  $margin: 0,
27707
28005
  $listStyle: "none",
27708
28006
  children: credits.map((credit, idx) => {
27709
- return /* @__PURE__ */ jsxs49(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
27710
- layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx64(
28007
+ return /* @__PURE__ */ jsxs50(Flex, { as: "li", $gap: "1rem", $listStyle: "none", children: [
28008
+ layout.plans.showFeatureIcons && credit.icon && /* @__PURE__ */ jsx65(
27711
28009
  Icon3,
27712
28010
  {
27713
28011
  "data-testid": "sch-feature-icon",
@@ -27717,13 +28015,13 @@ var Plan2 = ({
27717
28015
  rounded: true
27718
28016
  }
27719
28017
  ),
27720
- credit.name && /* @__PURE__ */ jsx64(
28018
+ credit.name && /* @__PURE__ */ jsx65(
27721
28019
  Flex,
27722
28020
  {
27723
28021
  $flexDirection: "column",
27724
28022
  $justifyContent: "center",
27725
28023
  $gap: "0.5rem",
27726
- children: /* @__PURE__ */ jsx64(
28024
+ children: /* @__PURE__ */ jsx65(
27727
28025
  PlanCreditText,
27728
28026
  {
27729
28027
  credit,
@@ -27736,7 +28034,7 @@ var Plan2 = ({
27736
28034
  })
27737
28035
  }
27738
28036
  ),
27739
- isActivePlan && /* @__PURE__ */ jsx64(
28037
+ isActivePlan && /* @__PURE__ */ jsx65(
27740
28038
  Flex,
27741
28039
  {
27742
28040
  "data-testid": "sch-plan-active",
@@ -27746,7 +28044,7 @@ var Plan2 = ({
27746
28044
  $backgroundColor: settings.theme.primary,
27747
28045
  $borderRadius: "9999px",
27748
28046
  $padding: "0.125rem 0.85rem",
27749
- children: /* @__PURE__ */ jsx64(
28047
+ children: /* @__PURE__ */ jsx65(
27750
28048
  Text,
27751
28049
  {
27752
28050
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -27759,7 +28057,7 @@ var Plan2 = ({
27759
28057
  ]
27760
28058
  }
27761
28059
  ),
27762
- /* @__PURE__ */ jsxs49(
28060
+ /* @__PURE__ */ jsxs50(
27763
28061
  Flex,
27764
28062
  {
27765
28063
  $flexDirection: "column",
@@ -27768,7 +28066,7 @@ var Plan2 = ({
27768
28066
  $gap: `${cardPadding}rem`,
27769
28067
  $padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
27770
28068
  children: [
27771
- layout.plans.showEntitlements && /* @__PURE__ */ jsxs49(
28069
+ layout.plans.showEntitlements && /* @__PURE__ */ jsxs50(
27772
28070
  Flex,
27773
28071
  {
27774
28072
  as: "ul",
@@ -27779,14 +28077,14 @@ var Plan2 = ({
27779
28077
  $margin: 0,
27780
28078
  $listStyle: "none",
27781
28079
  children: [
27782
- layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx64(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx64(Text, { children: t4("Everything in", {
28080
+ layout.plans.showInclusionText && index > 0 && /* @__PURE__ */ jsx65(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx65(Text, { children: t4("Everything in", {
27783
28081
  plan: plans[index - 1].name
27784
28082
  }) }) }),
27785
28083
  (plan.entitlements ?? []).reduce(
27786
28084
  (acc, entitlement, idx) => {
27787
28085
  if (isExpanded || idx < VISIBLE_ENTITLEMENT_COUNT) {
27788
28086
  acc.push(
27789
- /* @__PURE__ */ jsx64(
28087
+ /* @__PURE__ */ jsx65(
27790
28088
  Entitlement2,
27791
28089
  {
27792
28090
  entitlement,
@@ -27804,7 +28102,7 @@ var Plan2 = ({
27804
28102
  },
27805
28103
  []
27806
28104
  ),
27807
- (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx64(
28105
+ (plan.entitlements ?? []).length > VISIBLE_ENTITLEMENT_COUNT && /* @__PURE__ */ jsx65(
27808
28106
  ExpandListToggle,
27809
28107
  {
27810
28108
  as: "li",
@@ -27819,7 +28117,7 @@ var Plan2 = ({
27819
28117
  ]
27820
28118
  }
27821
28119
  ),
27822
- isActivePlan ? /* @__PURE__ */ jsxs49(
28120
+ isActivePlan ? /* @__PURE__ */ jsxs50(
27823
28121
  Flex,
27824
28122
  {
27825
28123
  $justifyContent: "center",
@@ -27827,7 +28125,7 @@ var Plan2 = ({
27827
28125
  $gap: "0.25rem",
27828
28126
  $padding: "0.625rem 0",
27829
28127
  children: [
27830
- /* @__PURE__ */ jsx64(
28128
+ /* @__PURE__ */ jsx65(
27831
28129
  Icon3,
27832
28130
  {
27833
28131
  name: "check-rounded",
@@ -27835,11 +28133,11 @@ var Plan2 = ({
27835
28133
  color: settings.theme.primary
27836
28134
  }
27837
28135
  ),
27838
- /* @__PURE__ */ jsx64(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
28136
+ /* @__PURE__ */ jsx65(Text, { $size: 15, $leading: "none", children: t4("Current plan") })
27839
28137
  ]
27840
28138
  }
27841
- ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs49(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
27842
- /* @__PURE__ */ jsx64(
28139
+ ) : sharedProps.showCallToAction && (layout.upgrade.isVisible || layout.downgrade.isVisible) && /* @__PURE__ */ jsxs50(Flex, { $flexDirection: "column", $gap: "0.5rem", children: [
28140
+ /* @__PURE__ */ jsx65(
27843
28141
  Button,
27844
28142
  {
27845
28143
  type: "button",
@@ -27877,10 +28175,10 @@ var Plan2 = ({
27877
28175
  }
27878
28176
  },
27879
28177
  $fullWidth: true,
27880
- 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")
28178
+ 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")
27881
28179
  }
27882
28180
  ),
27883
- !plan.valid && /* @__PURE__ */ jsx64(UsageViolationText, { violations: plan.usageViolations })
28181
+ !plan.valid && /* @__PURE__ */ jsx65(UsageViolationText, { violations: plan.usageViolations })
27884
28182
  ] })
27885
28183
  ]
27886
28184
  }
@@ -27891,7 +28189,7 @@ var Plan2 = ({
27891
28189
  };
27892
28190
 
27893
28191
  // src/components/elements/pricing-table/PricingTable.tsx
27894
- import { Fragment as Fragment30, jsx as jsx65, jsxs as jsxs50 } from "react/jsx-runtime";
28192
+ import { Fragment as Fragment30, jsx as jsx66, jsxs as jsxs51 } from "react/jsx-runtime";
27895
28193
  var resolveDesignProps8 = (props) => {
27896
28194
  return {
27897
28195
  showPeriodToggle: props.showPeriodToggle ?? true,
@@ -27956,11 +28254,11 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
27956
28254
  },
27957
28255
  []
27958
28256
  );
27959
- const [selectedPeriod, setSelectedPeriod] = useState21(
28257
+ const [selectedPeriod, setSelectedPeriod] = useState22(
27960
28258
  () => getSubscriptionPeriod(data?.company?.billingSubscription) || data?.company?.plan?.planPeriod || "month"
27961
28259
  );
27962
28260
  const { currencies, invalidFilterEntries } = useAvailableCurrenciesWithInvalid();
27963
- const [selectedCurrency, setSelectedCurrency] = useState21(
28261
+ const [selectedCurrency, setSelectedCurrency] = useState22(
27964
28262
  () => currencies[0] ?? DEFAULT_CURRENCY
27965
28263
  );
27966
28264
  if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
@@ -27978,25 +28276,25 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
27978
28276
  } = useAvailablePlans(selectedPeriod, {
27979
28277
  useSelectedPeriod: showPeriodToggle
27980
28278
  });
27981
- const plans = useMemo34(
28279
+ const plans = useMemo35(
27982
28280
  () => hasCurrency ? allPlans.filter(
27983
28281
  (plan) => planSupportsCurrency(plan, selectedCurrency)
27984
28282
  ) : allPlans,
27985
28283
  [allPlans, hasCurrency, selectedCurrency]
27986
28284
  );
27987
- const addOns = useMemo34(
28285
+ const addOns = useMemo35(
27988
28286
  () => hasCurrency ? allAddOns.filter(
27989
28287
  (addOn) => planSupportsCurrency(addOn, selectedCurrency)
27990
28288
  ) : allAddOns,
27991
28289
  [allAddOns, hasCurrency, selectedCurrency]
27992
28290
  );
27993
- useEffect8(() => {
28291
+ useEffect9(() => {
27994
28292
  if (typeof data?.component === "undefined") {
27995
28293
  hydratePublic();
27996
28294
  }
27997
28295
  }, [data?.component, hydratePublic]);
27998
28296
  if (isPending) {
27999
- return /* @__PURE__ */ jsx65(
28297
+ return /* @__PURE__ */ jsx66(
28000
28298
  Flex,
28001
28299
  {
28002
28300
  $width: "100%",
@@ -28004,12 +28302,12 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28004
28302
  $alignItems: "center",
28005
28303
  $justifyContent: "center",
28006
28304
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28007
- children: /* @__PURE__ */ jsx65(Loader, { "aria-label": "loading", $size: "2xl" })
28305
+ children: /* @__PURE__ */ jsx66(Loader, { "aria-label": "loading", $size: "2xl" })
28008
28306
  }
28009
28307
  );
28010
28308
  }
28011
28309
  if (hasNoUsableCurrency) {
28012
- return /* @__PURE__ */ jsx65(Container, { children: /* @__PURE__ */ jsx65(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx65(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28310
+ return /* @__PURE__ */ jsx66(Container, { children: /* @__PURE__ */ jsx66(Flex, { $justifyContent: "center", $padding: "2rem 0", children: /* @__PURE__ */ jsx66(InvalidCurrencyNotice, { invalidEntries: invalidFilterEntries }) }) });
28013
28311
  }
28014
28312
  const currentPlan = plans.find((plan) => plan.id === data?.company?.plan?.id);
28015
28313
  const showCallToAction = typeof data?.component !== "undefined" || typeof rest.callToActionUrl === "string" || typeof rest.onCallToAction === "function";
@@ -28018,7 +28316,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28018
28316
  rest.callToActionTarget
28019
28317
  );
28020
28318
  const Wrapper = typeof data?.component === "undefined" ? Container : Fragment29;
28021
- return /* @__PURE__ */ jsx65(Wrapper, { children: /* @__PURE__ */ jsxs50(
28319
+ return /* @__PURE__ */ jsx66(Wrapper, { children: /* @__PURE__ */ jsxs51(
28022
28320
  FussyChild,
28023
28321
  {
28024
28322
  ref,
@@ -28028,8 +28326,8 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28028
28326
  $flexDirection: "column",
28029
28327
  $gap: "2rem",
28030
28328
  children: [
28031
- /* @__PURE__ */ jsxs50(Box, { children: [
28032
- /* @__PURE__ */ jsxs50(
28329
+ /* @__PURE__ */ jsxs51(Box, { children: [
28330
+ /* @__PURE__ */ jsxs51(
28033
28331
  Flex,
28034
28332
  {
28035
28333
  $flexDirection: "column",
@@ -28044,7 +28342,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28044
28342
  }
28045
28343
  },
28046
28344
  children: [
28047
- /* @__PURE__ */ jsx65(
28345
+ /* @__PURE__ */ jsx66(
28048
28346
  Text,
28049
28347
  {
28050
28348
  as: "h2",
@@ -28053,8 +28351,8 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28053
28351
  children: props.header.isVisible && props.plans.isVisible && plans.length > 0 && t4("Plans")
28054
28352
  }
28055
28353
  ),
28056
- /* @__PURE__ */ jsxs50(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28057
- showCurrencySelector && /* @__PURE__ */ jsx65(
28354
+ /* @__PURE__ */ jsxs51(Flex, { $alignItems: "center", $gap: "0.75rem", children: [
28355
+ showCurrencySelector && /* @__PURE__ */ jsx66(
28058
28356
  CurrencyToggle,
28059
28357
  {
28060
28358
  currencies,
@@ -28062,7 +28360,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28062
28360
  onSelect: setSelectedCurrency
28063
28361
  }
28064
28362
  ),
28065
- showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx65(
28363
+ showPeriodToggle && periods.length > 1 && /* @__PURE__ */ jsx66(
28066
28364
  PeriodToggle,
28067
28365
  {
28068
28366
  options: periods,
@@ -28079,7 +28377,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28079
28377
  ]
28080
28378
  }
28081
28379
  ),
28082
- props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx65(
28380
+ props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx66(
28083
28381
  Box,
28084
28382
  {
28085
28383
  as: "ul",
@@ -28092,7 +28390,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28092
28390
  $listStyle: "none",
28093
28391
  children: plans.map((plan, index, self2) => {
28094
28392
  const planPeriod = showPeriodToggle ? selectedPeriod : plan.monthlyPrice ? BillingProductPriceInterval.Month : plan.quarterlyPrice ? "quarter" : plan.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28095
- return /* @__PURE__ */ jsx65(
28393
+ return /* @__PURE__ */ jsx66(
28096
28394
  Plan2,
28097
28395
  {
28098
28396
  plan,
@@ -28114,14 +28412,14 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28114
28412
  }
28115
28413
  )
28116
28414
  ] }),
28117
- /* @__PURE__ */ jsx65(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs50(Fragment30, { children: [
28118
- props.header.isVisible && /* @__PURE__ */ jsx65(
28415
+ /* @__PURE__ */ jsx66(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs51(Fragment30, { children: [
28416
+ props.header.isVisible && /* @__PURE__ */ jsx66(
28119
28417
  Flex,
28120
28418
  {
28121
28419
  $justifyContent: "space-between",
28122
28420
  $alignItems: "center",
28123
28421
  $marginBottom: "1rem",
28124
- children: /* @__PURE__ */ jsx65(
28422
+ children: /* @__PURE__ */ jsx66(
28125
28423
  Text,
28126
28424
  {
28127
28425
  as: "h2",
@@ -28132,7 +28430,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28132
28430
  )
28133
28431
  }
28134
28432
  ),
28135
- /* @__PURE__ */ jsx65(
28433
+ /* @__PURE__ */ jsx66(
28136
28434
  Box,
28137
28435
  {
28138
28436
  as: "ul",
@@ -28144,7 +28442,7 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
28144
28442
  $listStyle: "none",
28145
28443
  children: addOns.map((addOn, index) => {
28146
28444
  const addOnPeriod = showPeriodToggle ? selectedPeriod : addOn.monthlyPrice ? BillingProductPriceInterval.Month : addOn.quarterlyPrice ? "quarter" : addOn.yearlyPrice ? BillingProductPriceInterval.Year : BillingProductPriceInterval.Month;
28147
- return /* @__PURE__ */ jsx65(
28445
+ return /* @__PURE__ */ jsx66(
28148
28446
  AddOn2,
28149
28447
  {
28150
28448
  addOn,
@@ -28172,7 +28470,7 @@ PricingTable.displayName = "PricingTable";
28172
28470
 
28173
28471
  // src/components/elements/text/Text.tsx
28174
28472
  import { forwardRef as forwardRef16 } from "react";
28175
- import { jsx as jsx66 } from "react/jsx-runtime";
28473
+ import { jsx as jsx67 } from "react/jsx-runtime";
28176
28474
  var resolveDesignProps9 = (props) => {
28177
28475
  return {
28178
28476
  text: {
@@ -28184,7 +28482,7 @@ var resolveDesignProps9 = (props) => {
28184
28482
  };
28185
28483
  var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
28186
28484
  const props = resolveDesignProps9(rest);
28187
- return /* @__PURE__ */ jsx66(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx66(
28485
+ return /* @__PURE__ */ jsx67(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx67(
28188
28486
  Text,
28189
28487
  {
28190
28488
  display: props.text.fontStyle,
@@ -28197,8 +28495,8 @@ var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
28197
28495
  TextElement.displayName = "Text";
28198
28496
 
28199
28497
  // src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
28200
- import { forwardRef as forwardRef17, useMemo as useMemo35 } from "react";
28201
- import { jsx as jsx67 } from "react/jsx-runtime";
28498
+ import { forwardRef as forwardRef17, useMemo as useMemo36 } from "react";
28499
+ import { jsx as jsx68 } from "react/jsx-runtime";
28202
28500
  var buttonStyles = {
28203
28501
  primary: {
28204
28502
  color: "primary",
@@ -28228,13 +28526,13 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28228
28526
  const props = resolveDesignProps10(rest);
28229
28527
  const { t: t4 } = useTranslation();
28230
28528
  const { data, setLayout } = useEmbed();
28231
- const hasActiveSubscription = useMemo35(() => {
28529
+ const hasActiveSubscription = useMemo36(() => {
28232
28530
  return data?.subscription && data.subscription.status !== "cancelled" && !data.subscription.cancelAt;
28233
28531
  }, [data?.subscription]);
28234
28532
  if (!hasActiveSubscription) {
28235
28533
  return null;
28236
28534
  }
28237
- return /* @__PURE__ */ jsx67(
28535
+ return /* @__PURE__ */ jsx68(
28238
28536
  Element,
28239
28537
  {
28240
28538
  as: Flex,
@@ -28242,7 +28540,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28242
28540
  className,
28243
28541
  $flexDirection: "column",
28244
28542
  $gap: "2rem",
28245
- children: /* @__PURE__ */ jsx67(
28543
+ children: /* @__PURE__ */ jsx68(
28246
28544
  Button,
28247
28545
  {
28248
28546
  type: "button",
@@ -28263,8 +28561,8 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
28263
28561
  UnsubscribeButton.displayName = "UnsubscribeButton";
28264
28562
 
28265
28563
  // src/components/elements/upcoming-bill/UpcomingBill.tsx
28266
- import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect9, useMemo as useMemo36, useState as useState22 } from "react";
28267
- import { jsx as jsx68, jsxs as jsxs51 } from "react/jsx-runtime";
28564
+ import { forwardRef as forwardRef18, useCallback as useCallback17, useEffect as useEffect10, useMemo as useMemo37, useState as useState23 } from "react";
28565
+ import { jsx as jsx69, jsxs as jsxs52 } from "react/jsx-runtime";
28268
28566
  function resolveDesignProps11(props) {
28269
28567
  return {
28270
28568
  header: {
@@ -28288,10 +28586,10 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28288
28586
  const { t: t4 } = useTranslation();
28289
28587
  const { data, settings, getUpcomingInvoice } = useEmbed();
28290
28588
  const isLightBackground = useIsLightBackground();
28291
- const [isLoading, setIsLoading] = useState22(false);
28292
- const [error, setError] = useState22();
28293
- const [upcomingInvoice, setUpcomingInvoice] = useState22(data?.upcomingInvoice);
28294
- const discounts = useMemo36(() => {
28589
+ const [isLoading, setIsLoading] = useState23(false);
28590
+ const [error, setError] = useState23();
28591
+ const [upcomingInvoice, setUpcomingInvoice] = useState23(data?.upcomingInvoice);
28592
+ const discounts = useMemo37(() => {
28295
28593
  return (data?.subscription?.discounts || []).filter(
28296
28594
  (discount) => (
28297
28595
  // Only surface discounts that are currently active and actually
@@ -28325,15 +28623,15 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28325
28623
  }
28326
28624
  }
28327
28625
  }, [data?.component?.id, data?.subscription, getUpcomingInvoice]);
28328
- useEffect9(() => {
28626
+ useEffect10(() => {
28329
28627
  getInvoice();
28330
28628
  }, [getInvoice]);
28331
- useEffect9(() => {
28629
+ useEffect10(() => {
28332
28630
  if (data?.upcomingInvoice) {
28333
28631
  setUpcomingInvoice(data.upcomingInvoice);
28334
28632
  }
28335
28633
  }, [data?.upcomingInvoice]);
28336
- const { currency, applied, remaining } = useMemo36(() => {
28634
+ const { currency, applied, remaining } = useMemo37(() => {
28337
28635
  const currency2 = upcomingInvoice?.currency;
28338
28636
  const startingBalance = upcomingInvoice?.startingBalance ?? 0;
28339
28637
  const endingBalance = upcomingInvoice?.endingBalance ?? 0;
@@ -28352,9 +28650,9 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28352
28650
  if (!data?.subscription || data.subscription.cancelAt) {
28353
28651
  return null;
28354
28652
  }
28355
- return /* @__PURE__ */ jsxs51(Element, { ref, className, children: [
28356
- /* @__PURE__ */ jsx68(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx68(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
28357
- error ? /* @__PURE__ */ jsxs51(
28653
+ return /* @__PURE__ */ jsxs52(Element, { ref, className, children: [
28654
+ /* @__PURE__ */ jsx69(Flex, { as: TransitionBox, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ jsx69(Loader, { $color: settings.theme.primary, $isLoading: isLoading }) }),
28655
+ error ? /* @__PURE__ */ jsxs52(
28358
28656
  Flex,
28359
28657
  {
28360
28658
  as: TransitionBox,
@@ -28363,8 +28661,8 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28363
28661
  $alignItems: "center",
28364
28662
  $gap: "1rem",
28365
28663
  children: [
28366
- /* @__PURE__ */ jsx68(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28367
- /* @__PURE__ */ jsx68(
28664
+ /* @__PURE__ */ jsx69(Text, { $weight: 500, $color: "#DB6669", children: t4("There was a problem retrieving your upcoming invoice.") }),
28665
+ /* @__PURE__ */ jsx69(
28368
28666
  Button,
28369
28667
  {
28370
28668
  type: "button",
@@ -28377,28 +28675,28 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28377
28675
  )
28378
28676
  ]
28379
28677
  }
28380
- ) : !isLoading && /* @__PURE__ */ jsx68(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs51(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28381
- props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ jsxs51(Text, { display: props.header.fontStyle, children: [
28678
+ ) : !isLoading && /* @__PURE__ */ jsx69(TransitionBox, { children: upcomingInvoice ? /* @__PURE__ */ jsxs52(Flex, { $flexDirection: "column", $gap: "1rem", children: [
28679
+ props.header.isVisible && upcomingInvoice.dueDate && /* @__PURE__ */ jsxs52(Text, { display: props.header.fontStyle, children: [
28382
28680
  props.header.prefix,
28383
28681
  " ",
28384
28682
  toPrettyDate(upcomingInvoice.dueDate)
28385
28683
  ] }),
28386
- /* @__PURE__ */ jsxs51(
28684
+ /* @__PURE__ */ jsxs52(
28387
28685
  Flex,
28388
28686
  {
28389
28687
  $justifyContent: "space-between",
28390
28688
  $alignItems: "start",
28391
28689
  $gap: "1rem",
28392
28690
  children: [
28393
- props.price.isVisible && /* @__PURE__ */ jsx68(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28691
+ props.price.isVisible && /* @__PURE__ */ jsx69(Text, { display: props.price.fontStyle, $leading: "none", children: formatCurrency(
28394
28692
  upcomingInvoice.amountDue,
28395
28693
  upcomingInvoice.currency
28396
28694
  ) }),
28397
- /* @__PURE__ */ jsx68(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx68(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28695
+ /* @__PURE__ */ jsx69(Box, { $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx69(Text, { display: props.contractEndDate.fontStyle, children: t4("Estimated bill") }) })
28398
28696
  ]
28399
28697
  }
28400
28698
  ),
28401
- hasApplied && /* @__PURE__ */ jsxs51(
28699
+ hasApplied && /* @__PURE__ */ jsxs52(
28402
28700
  Flex,
28403
28701
  {
28404
28702
  as: TransitionBox,
@@ -28406,12 +28704,12 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28406
28704
  $alignItems: "start",
28407
28705
  $gap: "1rem",
28408
28706
  children: [
28409
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28410
- /* @__PURE__ */ jsx68(Text, { children: formatCurrency(-applied, currency) })
28707
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Applied balance towards next invoice") }),
28708
+ /* @__PURE__ */ jsx69(Text, { children: formatCurrency(-applied, currency) })
28411
28709
  ]
28412
28710
  }
28413
28711
  ),
28414
- hasBalance && /* @__PURE__ */ jsxs51(
28712
+ hasBalance && /* @__PURE__ */ jsxs52(
28415
28713
  Flex,
28416
28714
  {
28417
28715
  as: TransitionBox,
@@ -28419,20 +28717,20 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28419
28717
  $alignItems: "start",
28420
28718
  $gap: "1rem",
28421
28719
  children: [
28422
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28423
- /* @__PURE__ */ jsx68(Text, { children: formatCurrency(remaining, currency) })
28720
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Remaining balance after next invoice") }),
28721
+ /* @__PURE__ */ jsx69(Text, { children: formatCurrency(remaining, currency) })
28424
28722
  ]
28425
28723
  }
28426
28724
  ),
28427
- discounts.length > 0 && /* @__PURE__ */ jsxs51(
28725
+ discounts.length > 0 && /* @__PURE__ */ jsxs52(
28428
28726
  Flex,
28429
28727
  {
28430
28728
  $justifyContent: "space-between",
28431
28729
  $alignItems: "start",
28432
28730
  $gap: "1rem",
28433
28731
  children: [
28434
- /* @__PURE__ */ jsx68(Text, { $weight: 600, children: t4("Discount") }),
28435
- /* @__PURE__ */ jsx68(
28732
+ /* @__PURE__ */ jsx69(Text, { $weight: 600, children: t4("Discount") }),
28733
+ /* @__PURE__ */ jsx69(
28436
28734
  Flex,
28437
28735
  {
28438
28736
  $flexDirection: "column",
@@ -28448,13 +28746,13 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28448
28746
  discount?.currency
28449
28747
  )
28450
28748
  });
28451
- return /* @__PURE__ */ jsxs51(
28749
+ return /* @__PURE__ */ jsxs52(
28452
28750
  Flex,
28453
28751
  {
28454
28752
  $alignItems: "center",
28455
28753
  $gap: "0.5rem",
28456
28754
  children: [
28457
- discount.customerFacingCode && /* @__PURE__ */ jsx68(
28755
+ discount.customerFacingCode && /* @__PURE__ */ jsx69(
28458
28756
  Flex,
28459
28757
  {
28460
28758
  $alignItems: "center",
@@ -28463,7 +28761,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28463
28761
  $borderStyle: "solid",
28464
28762
  $borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
28465
28763
  $borderRadius: "0.3125rem",
28466
- children: /* @__PURE__ */ jsx68(
28764
+ children: /* @__PURE__ */ jsx69(
28467
28765
  Text,
28468
28766
  {
28469
28767
  $size: 0.75 * settings.theme.typography.text.fontSize,
@@ -28473,7 +28771,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28473
28771
  )
28474
28772
  }
28475
28773
  ),
28476
- /* @__PURE__ */ jsx68(Box, { children: /* @__PURE__ */ jsx68(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28774
+ /* @__PURE__ */ jsx69(Box, { children: /* @__PURE__ */ jsx69(Text, { children: discount.duration === "repeating" && discount.durationInMonths ? t4("Discount for months", {
28477
28775
  discount: label,
28478
28776
  count: discount.durationInMonths
28479
28777
  }) : label }) })
@@ -28487,12 +28785,12 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
28487
28785
  ]
28488
28786
  }
28489
28787
  )
28490
- ] }) : /* @__PURE__ */ jsx68(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28788
+ ] }) : /* @__PURE__ */ jsx69(Text, { display: "heading2", children: t4("No upcoming invoice") }) })
28491
28789
  ] });
28492
28790
  });
28493
28791
  UpcomingBill.displayName = "UpcomingBill";
28494
28792
 
28495
- // node_modules/.pnpm/pako@3.0.1/node_modules/pako/dist/pako.mjs
28793
+ // node_modules/.pnpm/pako@3.0.2/node_modules/pako/dist/pako.mjs
28496
28794
  var Z_FIXED = 4;
28497
28795
  var Z_BINARY = 0;
28498
28796
  var Z_TEXT = 1;
@@ -28965,7 +29263,7 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
28965
29263
  max_blindex = build_bl_tree(s);
28966
29264
  opt_lenb = s.opt_len + 3 + 7 >>> 3;
28967
29265
  static_lenb = s.static_len + 3 + 7 >>> 3;
28968
- if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
29266
+ if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
28969
29267
  } else opt_lenb = static_lenb = stored_len + 5;
28970
29268
  if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
28971
29269
  else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
@@ -30206,7 +30504,7 @@ var inflate$1 = (strm, flush) => {
30206
30504
  hold += input[next2++] << bits;
30207
30505
  bits += 8;
30208
30506
  }
30209
- if (state.head) state.head.time = hold;
30507
+ if (state.head) state.head.time = hold >>> 0;
30210
30508
  if (state.flags & 512 && state.wrap & 4) {
30211
30509
  hbuf[0] = hold & 255;
30212
30510
  hbuf[1] = hold >>> 8 & 255;
@@ -31123,7 +31421,7 @@ function inflate(input, options = {}) {
31123
31421
  }
31124
31422
 
31125
31423
  // src/components/embed/Embed.tsx
31126
- import { useContext as useContext6, useEffect as useEffect10, useMemo as useMemo37 } from "react";
31424
+ import { useContext as useContext6, useEffect as useEffect11, useMemo as useMemo38 } from "react";
31127
31425
 
31128
31426
  // src/components/embed/renderer.ts
31129
31427
  import { createElement as createElement5 } from "react";
@@ -31203,11 +31501,11 @@ function createRenderer(options) {
31203
31501
  }
31204
31502
 
31205
31503
  // src/components/embed/Embed.tsx
31206
- import { jsx as jsx69, jsxs as jsxs52 } from "react/jsx-runtime";
31504
+ import { jsx as jsx70, jsxs as jsxs53 } from "react/jsx-runtime";
31207
31505
  var renderer = createRenderer();
31208
31506
  var Loading = () => {
31209
31507
  const { settings } = useEmbed();
31210
- return /* @__PURE__ */ jsx69(
31508
+ return /* @__PURE__ */ jsx70(
31211
31509
  Flex,
31212
31510
  {
31213
31511
  $width: "100%",
@@ -31215,13 +31513,13 @@ var Loading = () => {
31215
31513
  $alignItems: "center",
31216
31514
  $justifyContent: "center",
31217
31515
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
31218
- children: /* @__PURE__ */ jsx69(Loader, { $color: settings.theme.primary, $size: "2xl" })
31516
+ children: /* @__PURE__ */ jsx70(Loader, { $color: settings.theme.primary, $size: "2xl" })
31219
31517
  }
31220
31518
  );
31221
31519
  };
31222
31520
  var Error2 = ({ message }) => {
31223
31521
  const { settings } = useEmbed();
31224
- return /* @__PURE__ */ jsxs52(
31522
+ return /* @__PURE__ */ jsxs53(
31225
31523
  Flex,
31226
31524
  {
31227
31525
  $flexDirection: "column",
@@ -31232,8 +31530,8 @@ var Error2 = ({ message }) => {
31232
31530
  $alignItems: "center",
31233
31531
  $justifyContent: "center",
31234
31532
  children: [
31235
- /* @__PURE__ */ jsx69(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx69(Text, { display: "heading1", children: "Error" }) }),
31236
- /* @__PURE__ */ jsx69(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx69(Text, { children: message }) })
31533
+ /* @__PURE__ */ jsx70(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx70(Text, { display: "heading1", children: "Error" }) }),
31534
+ /* @__PURE__ */ jsx70(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx70(Text, { children: message }) })
31237
31535
  ]
31238
31536
  }
31239
31537
  );
@@ -31251,7 +31549,7 @@ var SchematicEmbed = ({ id, accessToken }) => {
31251
31549
  setBuilderSettings
31252
31550
  } = useEmbed();
31253
31551
  const compressedAst = data?.component?.ast;
31254
- const { children, parsedSettings, parseError } = useMemo37(() => {
31552
+ const { children, parsedSettings, parseError } = useMemo38(() => {
31255
31553
  let children2 = null;
31256
31554
  let parsedSettings2 = null;
31257
31555
  let parseError2 = null;
@@ -31283,22 +31581,22 @@ var SchematicEmbed = ({ id, accessToken }) => {
31283
31581
  parseError: parseError2
31284
31582
  };
31285
31583
  }, [compressedAst]);
31286
- useEffect10(() => {
31584
+ useEffect11(() => {
31287
31585
  if (accessToken) {
31288
31586
  setAccessToken(accessToken);
31289
31587
  }
31290
31588
  }, [accessToken, setAccessToken]);
31291
- useEffect10(() => {
31589
+ useEffect11(() => {
31292
31590
  if (id && stale) {
31293
31591
  hydrateComponent(id);
31294
31592
  }
31295
31593
  }, [id, hydrateComponent, stale]);
31296
- useEffect10(() => {
31594
+ useEffect11(() => {
31297
31595
  if (parsedSettings) {
31298
31596
  setBuilderSettings(parsedSettings);
31299
31597
  }
31300
31598
  }, [parsedSettings, setBuilderSettings]);
31301
- useEffect10(() => {
31599
+ useEffect11(() => {
31302
31600
  if (parseError) {
31303
31601
  setError(parseError);
31304
31602
  }
@@ -31307,13 +31605,13 @@ var SchematicEmbed = ({ id, accessToken }) => {
31307
31605
  return stub();
31308
31606
  }
31309
31607
  if (error) {
31310
- return /* @__PURE__ */ jsx69(Error2, { message: error.message });
31608
+ return /* @__PURE__ */ jsx70(Error2, { message: error.message });
31311
31609
  }
31312
31610
  if (accessToken?.length === 0) {
31313
- return /* @__PURE__ */ jsx69(Error2, { message: "Please provide an access token." });
31611
+ return /* @__PURE__ */ jsx70(Error2, { message: "Please provide an access token." });
31314
31612
  }
31315
31613
  if (!accessToken?.startsWith("token_")) {
31316
- return /* @__PURE__ */ jsx69(
31614
+ return /* @__PURE__ */ jsx70(
31317
31615
  Error2,
31318
31616
  {
31319
31617
  message: 'Invalid access token; your temporary access token will start with "token_".'
@@ -31321,9 +31619,9 @@ var SchematicEmbed = ({ id, accessToken }) => {
31321
31619
  );
31322
31620
  }
31323
31621
  if (isPending) {
31324
- return /* @__PURE__ */ jsx69(Loading, {});
31622
+ return /* @__PURE__ */ jsx70(Loading, {});
31325
31623
  }
31326
- return /* @__PURE__ */ jsx69(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx69(Loading, {}) });
31624
+ return /* @__PURE__ */ jsx70(Box, { className: "sch-Embed", "data-testid": "sch-embed", children: children ?? /* @__PURE__ */ jsx70(Loading, {}) });
31327
31625
  };
31328
31626
  export {
31329
31627
  AddOns,