@carlonicora/nextjs-jsonapi 5.5.0 → 5.7.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.
Files changed (152) hide show
  1. package/dist/{BlockNoteEditor-GVQCKRMU.mjs → BlockNoteEditor-R3WXUFHX.mjs} +4 -4
  2. package/dist/{BlockNoteEditor-THBJH2UR.js → BlockNoteEditor-ZHXXFWUJ.js} +19 -19
  3. package/dist/{BlockNoteEditor-THBJH2UR.js.map → BlockNoteEditor-ZHXXFWUJ.js.map} +1 -1
  4. package/dist/{BlockNoteViewer-U6E3DS4F.mjs → BlockNoteViewer-BVVN6D3T.mjs} +2 -2
  5. package/dist/{BlockNoteViewer-VZOVKTFO.js → BlockNoteViewer-SD3ZFIXD.js} +3 -3
  6. package/dist/{BlockNoteViewer-VZOVKTFO.js.map → BlockNoteViewer-SD3ZFIXD.js.map} +1 -1
  7. package/dist/billing/index.d.mts +197 -46
  8. package/dist/billing/index.d.ts +197 -46
  9. package/dist/billing/index.js +1166 -589
  10. package/dist/billing/index.js.map +1 -1
  11. package/dist/billing/index.mjs +803 -226
  12. package/dist/billing/index.mjs.map +1 -1
  13. package/dist/{chunk-WPYT4UKJ.js → chunk-2TXE57LE.js} +3 -3
  14. package/dist/{chunk-WPYT4UKJ.js.map → chunk-2TXE57LE.js.map} +1 -1
  15. package/dist/{chunk-G6UE6MEP.js → chunk-5TH2DSAH.js} +901 -204
  16. package/dist/chunk-5TH2DSAH.js.map +1 -0
  17. package/dist/{chunk-X5WIUUNG.mjs → chunk-CFB6FHIY.mjs} +3342 -2377
  18. package/dist/chunk-CFB6FHIY.mjs.map +1 -0
  19. package/dist/{chunk-VC5A3AUZ.mjs → chunk-FK26NX3S.mjs} +701 -4
  20. package/dist/chunk-FK26NX3S.mjs.map +1 -0
  21. package/dist/{chunk-YDYVJM4I.js → chunk-IJME5SAM.js} +4 -4
  22. package/dist/{chunk-YDYVJM4I.js.map → chunk-IJME5SAM.js.map} +1 -1
  23. package/dist/{chunk-W7F5BDSV.mjs → chunk-OKCV4GPJ.mjs} +2 -2
  24. package/dist/{chunk-3CGROPF3.mjs → chunk-RGQYFSJF.mjs} +2 -2
  25. package/dist/{chunk-6SQYXUVP.mjs → chunk-WCHLCOZG.mjs} +2 -2
  26. package/dist/{chunk-S4YJ5WCW.js → chunk-XOSC3FFP.js} +8 -8
  27. package/dist/{chunk-S4YJ5WCW.js.map → chunk-XOSC3FFP.js.map} +1 -1
  28. package/dist/{chunk-TY5FYP3G.js → chunk-ZCOPOO7T.js} +2024 -1059
  29. package/dist/chunk-ZCOPOO7T.js.map +1 -0
  30. package/dist/client/index.js +4 -4
  31. package/dist/client/index.mjs +3 -3
  32. package/dist/components/index.js +4 -4
  33. package/dist/components/index.mjs +3 -3
  34. package/dist/contexts/index.js +4 -4
  35. package/dist/contexts/index.mjs +3 -3
  36. package/dist/core/index.d.mts +248 -3
  37. package/dist/core/index.d.ts +248 -3
  38. package/dist/core/index.js +42 -2
  39. package/dist/core/index.js.map +1 -1
  40. package/dist/core/index.mjs +41 -1
  41. package/dist/{stripe-promotion-code.interface-ClZ7DxS9.d.mts → currency-DT_dveBx.d.mts} +137 -1
  42. package/dist/{stripe-promotion-code.interface-C3qqh3mi.d.ts → currency-pK9eRYRC.d.ts} +137 -1
  43. package/dist/email-automations/index.js +92 -92
  44. package/dist/email-automations/index.mjs +3 -3
  45. package/dist/features/analytics/index.js +121 -121
  46. package/dist/features/analytics/index.mjs +4 -4
  47. package/dist/features/analytics/server.js +4 -4
  48. package/dist/features/analytics/server.mjs +2 -2
  49. package/dist/features/blog/index.js +150 -150
  50. package/dist/features/blog/index.mjs +3 -3
  51. package/dist/features/blog/server.js +16 -16
  52. package/dist/features/blog/server.mjs +1 -1
  53. package/dist/features/help/index.js +37 -37
  54. package/dist/features/help/index.mjs +3 -3
  55. package/dist/features/tokenusage/index.js +124 -124
  56. package/dist/features/tokenusage/index.mjs +4 -4
  57. package/dist/index.d.mts +2 -2
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +43 -3
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.mjs +42 -2
  62. package/dist/server/index.js +3 -3
  63. package/dist/server/index.mjs +2 -2
  64. package/messages/en.json +125 -3
  65. package/messages/it.json +125 -3
  66. package/package.json +1 -1
  67. package/scripts/validate-messages.mjs +1 -0
  68. package/src/billing/index.ts +1 -0
  69. package/src/client/index.ts +4 -0
  70. package/src/core/index.ts +4 -0
  71. package/src/core/registry/ModuleRegistry.ts +3 -0
  72. package/src/features/billing/components/cards/InvoicesSummaryCard.tsx +3 -2
  73. package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +4 -3
  74. package/src/features/billing/components/containers/BillingDashboardContainer.tsx +22 -5
  75. package/src/features/billing/components/utils/__tests__/discount.spec.ts +59 -0
  76. package/src/features/billing/components/utils/__tests__/url.spec.ts +32 -0
  77. package/src/features/billing/components/utils/discount.ts +38 -0
  78. package/src/features/billing/components/utils/index.ts +2 -0
  79. package/src/features/billing/components/utils/url.ts +12 -0
  80. package/src/features/billing/contexts/CouponContext.tsx +209 -0
  81. package/src/features/billing/contexts/index.ts +1 -0
  82. package/src/features/billing/i18n-keys.ts +79 -0
  83. package/src/features/billing/stripe-coupon/components/containers/CouponContainer.tsx +38 -0
  84. package/src/features/billing/stripe-coupon/components/containers/index.ts +1 -0
  85. package/src/features/billing/stripe-coupon/components/details/CouponDetails.tsx +72 -0
  86. package/src/features/billing/stripe-coupon/components/details/index.ts +1 -0
  87. package/src/features/billing/stripe-coupon/components/forms/CouponCodeEditor.tsx +80 -0
  88. package/src/features/billing/stripe-coupon/components/forms/CouponCodeFields.tsx +214 -0
  89. package/src/features/billing/stripe-coupon/components/forms/CouponEditor.tsx +425 -0
  90. package/src/features/billing/stripe-coupon/components/forms/CouponRefresher.tsx +45 -0
  91. package/src/features/billing/stripe-coupon/components/forms/index.ts +6 -0
  92. package/src/features/billing/stripe-coupon/components/index.ts +5 -0
  93. package/src/features/billing/stripe-coupon/components/lists/CouponCodesList.tsx +61 -0
  94. package/src/features/billing/stripe-coupon/components/lists/CouponsList.tsx +67 -0
  95. package/src/features/billing/stripe-coupon/components/lists/index.ts +2 -0
  96. package/src/features/billing/stripe-coupon/components/widgets/CouponCodeActions.tsx +81 -0
  97. package/src/features/billing/stripe-coupon/components/widgets/index.ts +1 -0
  98. package/src/features/billing/stripe-coupon/data/__tests__/stripe-coupon-models.spec.ts +114 -0
  99. package/src/features/billing/stripe-coupon/data/index.ts +10 -0
  100. package/src/features/billing/stripe-coupon/data/stripe-coupon-code.fields.ts +8 -0
  101. package/src/features/billing/stripe-coupon/data/stripe-coupon-code.interface.ts +44 -0
  102. package/src/features/billing/stripe-coupon/data/stripe-coupon-code.service.ts +92 -0
  103. package/src/features/billing/stripe-coupon/data/stripe-coupon-code.ts +132 -0
  104. package/src/features/billing/stripe-coupon/data/stripe-coupon-offer.interface.ts +17 -0
  105. package/src/features/billing/stripe-coupon/data/stripe-coupon-offer.ts +70 -0
  106. package/src/features/billing/stripe-coupon/data/stripe-coupon.fields.ts +7 -0
  107. package/src/features/billing/stripe-coupon/data/stripe-coupon.interface.ts +55 -0
  108. package/src/features/billing/stripe-coupon/data/stripe-coupon.service.ts +93 -0
  109. package/src/features/billing/stripe-coupon/data/stripe-coupon.ts +167 -0
  110. package/src/features/billing/stripe-coupon/hooks/useStripeCouponCodeTableStructure.tsx +161 -0
  111. package/src/features/billing/stripe-coupon/hooks/useStripeCouponTableStructure.tsx +113 -0
  112. package/src/features/billing/stripe-coupon/index.ts +5 -0
  113. package/src/features/billing/stripe-coupon/stripe-coupon-code.module.ts +15 -0
  114. package/src/features/billing/stripe-coupon/stripe-coupon-offer.module.ts +10 -0
  115. package/src/features/billing/stripe-coupon/stripe-coupon.module.ts +25 -0
  116. package/src/features/billing/stripe-coupon/utils/__tests__/coupon-places.spec.ts +19 -0
  117. package/src/features/billing/stripe-coupon/utils/__tests__/to-promotion-code-result.spec.ts +41 -0
  118. package/src/features/billing/stripe-coupon/utils/coupon-places.ts +23 -0
  119. package/src/features/billing/stripe-coupon/utils/format-coupon-discount.ts +36 -0
  120. package/src/features/billing/stripe-coupon/utils/index.ts +3 -0
  121. package/src/features/billing/stripe-coupon/utils/to-promotion-code-result.ts +23 -0
  122. package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +24 -8
  123. package/src/features/billing/stripe-product/components/containers/ProductsListContainer.tsx +21 -6
  124. package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +60 -19
  125. package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.interface.ts +2 -0
  126. package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +24 -5
  127. package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +21 -2
  128. package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +1 -1
  129. package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +1 -1
  130. package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +60 -49
  131. package/src/features/billing/stripe-subscription/components/wizards/__tests__/review-card.spec.ts +34 -0
  132. package/src/features/billing/stripe-subscription/components/wizards/review-card.ts +24 -0
  133. package/src/features/billing/stripe-subscription/data/__tests__/stripe-subscription.discount.spec.ts +67 -0
  134. package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +14 -0
  135. package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +39 -0
  136. package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +21 -0
  137. package/src/features/billing/stripe-subscription/hooks/__tests__/wizard-payment.spec.ts +48 -0
  138. package/src/features/billing/stripe-subscription/hooks/__tests__/wizard-promotion.spec.ts +132 -0
  139. package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +138 -12
  140. package/src/features/billing/stripe-subscription/hooks/wizard-payment.ts +30 -0
  141. package/src/features/billing/stripe-subscription/hooks/wizard-promotion.ts +61 -0
  142. package/src/features/user/contexts/CurrentUserContext.tsx +25 -0
  143. package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +121 -2
  144. package/dist/chunk-G6UE6MEP.js.map +0 -1
  145. package/dist/chunk-TY5FYP3G.js.map +0 -1
  146. package/dist/chunk-VC5A3AUZ.mjs.map +0 -1
  147. package/dist/chunk-X5WIUUNG.mjs.map +0 -1
  148. /package/dist/{BlockNoteEditor-GVQCKRMU.mjs.map → BlockNoteEditor-R3WXUFHX.mjs.map} +0 -0
  149. /package/dist/{BlockNoteViewer-U6E3DS4F.mjs.map → BlockNoteViewer-BVVN6D3T.mjs.map} +0 -0
  150. /package/dist/{chunk-W7F5BDSV.mjs.map → chunk-OKCV4GPJ.mjs.map} +0 -0
  151. /package/dist/{chunk-3CGROPF3.mjs.map → chunk-RGQYFSJF.mjs.map} +0 -0
  152. /package/dist/{chunk-6SQYXUVP.mjs.map → chunk-WCHLCOZG.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40; var _class41; var _class42; var _class43;
2
2
 
3
3
 
4
4
 
@@ -4571,6 +4571,7 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
4571
4571
 
4572
4572
 
4573
4573
 
4574
+
4574
4575
  get stripeSubscriptionId() {
4575
4576
  if (!this._stripeSubscriptionId) throw new Error("stripeSubscriptionId is not defined");
4576
4577
  return this._stripeSubscriptionId;
@@ -4602,6 +4603,9 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
4602
4603
  get price() {
4603
4604
  return this._price;
4604
4605
  }
4606
+ get discount() {
4607
+ return this._discount;
4608
+ }
4605
4609
  rehydrate(data) {
4606
4610
  super.rehydrate(data);
4607
4611
  this._stripeSubscriptionId = data.jsonApi.attributes.stripeSubscriptionId;
@@ -4612,6 +4616,17 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
4612
4616
  this._canceledAt = data.jsonApi.attributes.canceledAt ? new Date(data.jsonApi.attributes.canceledAt) : void 0;
4613
4617
  this._trialStart = data.jsonApi.attributes.trialStart ? new Date(data.jsonApi.attributes.trialStart) : void 0;
4614
4618
  this._trialEnd = data.jsonApi.attributes.trialEnd ? new Date(data.jsonApi.attributes.trialEnd) : void 0;
4619
+ const attributes = data.jsonApi.attributes;
4620
+ const percentOff = _nullishCoalesce(attributes.discountPercentOff, () => ( void 0));
4621
+ const amountOff = _nullishCoalesce(attributes.discountAmountOff, () => ( void 0));
4622
+ this._discount = attributes.discountDuration && (percentOff !== void 0 || amountOff !== void 0) ? {
4623
+ percentOff,
4624
+ amountOff,
4625
+ currency: _nullishCoalesce(attributes.discountCurrency, () => ( void 0)),
4626
+ duration: attributes.discountDuration,
4627
+ durationInMonths: _nullishCoalesce(attributes.discountDurationInMonths, () => ( void 0)),
4628
+ end: attributes.discountEnd ? new Date(attributes.discountEnd) : void 0
4629
+ } : void 0;
4615
4630
  this._price = this._readIncluded(data, "price", Modules.StripePrice);
4616
4631
  return this;
4617
4632
  }
@@ -4720,7 +4735,9 @@ var StripeSubscriptionService = class extends AbstractService {
4720
4735
  type: Modules.StripeSubscription,
4721
4736
  method: "POST" /* POST */,
4722
4737
  endpoint: endpoint.generate(),
4723
- input: params
4738
+ input: params,
4739
+ // The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
4740
+ suppressGlobalError: true
4724
4741
  });
4725
4742
  return {
4726
4743
  subscription: result.data,
@@ -4744,8 +4761,40 @@ var StripeSubscriptionService = class extends AbstractService {
4744
4761
  type: Modules.StripeSubscription,
4745
4762
  method: "POST" /* POST */,
4746
4763
  endpoint: endpoint.generate(),
4747
- input: params
4764
+ input: params,
4765
+ // The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
4766
+ suppressGlobalError: true
4767
+ });
4768
+ }
4769
+ /**
4770
+ * Change the plan of an existing subscription, with the payment meta.
4771
+ *
4772
+ * A trial upgrade charges at once; when the card asks for 3D Secure the API
4773
+ * answers with `meta.requiresAction` and the `clientSecret` to confirm in the
4774
+ * browser. Without that meta the change needs nothing more.
4775
+ */
4776
+ static async changePlanWithMeta(params) {
4777
+ const endpoint = new EndpointCreator({
4778
+ endpoint: Modules.StripeSubscription,
4779
+ id: params.id,
4780
+ childEndpoint: "change-plan"
4781
+ });
4782
+ const result = await this.callApiWithMeta({
4783
+ type: Modules.StripeSubscription,
4784
+ method: "POST" /* POST */,
4785
+ endpoint: endpoint.generate(),
4786
+ input: params,
4787
+ // The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
4788
+ suppressGlobalError: true
4748
4789
  });
4790
+ return {
4791
+ subscription: result.data,
4792
+ meta: _nullishCoalesce(result.meta, () => ( {
4793
+ clientSecret: null,
4794
+ paymentIntentId: null,
4795
+ requiresAction: false
4796
+ }))
4797
+ };
4749
4798
  }
4750
4799
  /**
4751
4800
  * Get a proration preview for a plan change
@@ -4825,7 +4874,9 @@ var StripeSubscriptionService = class extends AbstractService {
4825
4874
  return this.callApi({
4826
4875
  type: Modules.StripeSubscription,
4827
4876
  method: "POST" /* POST */,
4828
- endpoint: endpoint.generate()
4877
+ endpoint: endpoint.generate(),
4878
+ // The wizard logs a failed sync and carries on (the webhook catches up): no global error after a paid subscription
4879
+ suppressGlobalError: true
4829
4880
  });
4830
4881
  }
4831
4882
  };
@@ -5120,6 +5171,631 @@ var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
5120
5171
  moduleId: "b8e4f6a2-9d0c-5b3f-c7e8-4g2d9f0a5c6e"
5121
5172
  }), "StripePromotionCodeModule");
5122
5173
 
5174
+ // src/features/billing/stripe-coupon/data/stripe-coupon.ts
5175
+ var StripeCoupon = (_class18 = class _StripeCoupon extends AbstractApiData {constructor(...args15) { super(...args15); _class18.prototype.__init36.call(this);_class18.prototype.__init37.call(this);_class18.prototype.__init38.call(this);_class18.prototype.__init39.call(this); }
5176
+ static {
5177
+ _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCoupon");
5178
+ }
5179
+
5180
+
5181
+
5182
+
5183
+
5184
+
5185
+
5186
+
5187
+ __init36() {this._stripeProductIds = []}
5188
+
5189
+
5190
+ __init37() {this._timesRedeemed = 0}
5191
+ __init38() {this._valid = true}
5192
+ __init39() {this._codes = []}
5193
+ get stripeCouponId() {
5194
+ if (!this._stripeCouponId) throw new Error("stripeCouponId is not defined");
5195
+ return this._stripeCouponId;
5196
+ }
5197
+ get name() {
5198
+ return _nullishCoalesce(this._name, () => ( ""));
5199
+ }
5200
+ get discountType() {
5201
+ if (!this._discountType) throw new Error("discountType is not defined");
5202
+ return this._discountType;
5203
+ }
5204
+ get percentOff() {
5205
+ return this._percentOff;
5206
+ }
5207
+ get amountOff() {
5208
+ return this._amountOff;
5209
+ }
5210
+ get currency() {
5211
+ return this._currency;
5212
+ }
5213
+ get duration() {
5214
+ if (!this._duration) throw new Error("duration is not defined");
5215
+ return this._duration;
5216
+ }
5217
+ get durationInMonths() {
5218
+ return this._durationInMonths;
5219
+ }
5220
+ get stripeProductIds() {
5221
+ return this._stripeProductIds;
5222
+ }
5223
+ get redeemBy() {
5224
+ return this._redeemBy;
5225
+ }
5226
+ get maxRedemptions() {
5227
+ return this._maxRedemptions;
5228
+ }
5229
+ get timesRedeemed() {
5230
+ return this._timesRedeemed;
5231
+ }
5232
+ get valid() {
5233
+ return this._valid;
5234
+ }
5235
+ get codes() {
5236
+ return this._codes;
5237
+ }
5238
+ rehydrate(data) {
5239
+ super.rehydrate(data);
5240
+ const attributes = data.jsonApi.attributes;
5241
+ this._stripeCouponId = attributes.stripeCouponId;
5242
+ this._name = attributes.name;
5243
+ this._discountType = attributes.discountType;
5244
+ this._percentOff = _nullishCoalesce(attributes.percentOff, () => ( void 0));
5245
+ this._amountOff = _nullishCoalesce(attributes.amountOff, () => ( void 0));
5246
+ this._currency = _nullishCoalesce(attributes.currency, () => ( void 0));
5247
+ this._duration = attributes.duration;
5248
+ this._durationInMonths = _nullishCoalesce(attributes.durationInMonths, () => ( void 0));
5249
+ this._stripeProductIds = _nullishCoalesce(attributes.stripeProductIds, () => ( []));
5250
+ this._redeemBy = attributes.redeemBy ? new Date(attributes.redeemBy) : void 0;
5251
+ this._maxRedemptions = _nullishCoalesce(attributes.maxRedemptions, () => ( void 0));
5252
+ this._timesRedeemed = _nullishCoalesce(attributes.timesRedeemed, () => ( 0));
5253
+ this._valid = _nullishCoalesce(attributes.valid, () => ( true));
5254
+ this._codes = _nullishCoalesce(this._readIncluded(data, "codes", Modules.StripeCouponCode), () => ( []));
5255
+ return this;
5256
+ }
5257
+ createJsonApi(data) {
5258
+ const response = {
5259
+ data: {
5260
+ type: Modules.StripeCoupon.name,
5261
+ id: data.id,
5262
+ attributes: {
5263
+ name: data.name,
5264
+ discountType: data.discountType,
5265
+ duration: data.duration,
5266
+ firstCode: _StripeCoupon.codeAttributes(data.firstCode)
5267
+ }
5268
+ }
5269
+ };
5270
+ const attributes = response.data.attributes;
5271
+ if (data.stripeCouponId) attributes.stripeCouponId = data.stripeCouponId;
5272
+ if (data.discountType === "percent_off") attributes.percentOff = data.percentOff;
5273
+ else {
5274
+ attributes.amountOff = data.amountOff;
5275
+ attributes.currency = data.currency;
5276
+ }
5277
+ if (data.duration === "repeating") attributes.durationInMonths = data.durationInMonths;
5278
+ if (data.productIds && data.productIds.length > 0) attributes.productIds = data.productIds;
5279
+ if (data.redeemBy !== void 0) attributes.redeemBy = data.redeemBy.toISOString();
5280
+ if (data.maxRedemptions !== void 0) attributes.maxRedemptions = data.maxRedemptions;
5281
+ return response;
5282
+ }
5283
+ /**
5284
+ * Rename is the only change Stripe allows on a coupon after creation.
5285
+ * Dedicated method so the service never needs a generic override.
5286
+ */
5287
+ createRenameJsonApi(data) {
5288
+ return {
5289
+ data: {
5290
+ type: Modules.StripeCoupon.name,
5291
+ id: data.id,
5292
+ attributes: { name: data.name }
5293
+ }
5294
+ };
5295
+ }
5296
+ /** Attributes of a code, shared by the coupon's first code and StripeCouponCode.createJsonApi. */
5297
+ static codeAttributes(code) {
5298
+ const attributes = {};
5299
+ if (code.code) attributes.code = code.code;
5300
+ if (code.firstTimeTransaction !== void 0) attributes.firstTimeTransaction = code.firstTimeTransaction;
5301
+ if (code.minimumAmount !== void 0) attributes.minimumAmount = code.minimumAmount;
5302
+ if (code.minimumAmountCurrency) attributes.minimumAmountCurrency = code.minimumAmountCurrency;
5303
+ if (code.stripeCustomerId) attributes.stripeCustomerId = code.stripeCustomerId;
5304
+ if (code.expiresAt !== void 0) attributes.expiresAt = code.expiresAt.toISOString();
5305
+ if (code.maxRedemptions !== void 0) attributes.maxRedemptions = code.maxRedemptions;
5306
+ if (code.automatic !== void 0) attributes.automatic = code.automatic;
5307
+ return attributes;
5308
+ }
5309
+ }, _class18);
5310
+
5311
+ // src/features/billing/stripe-coupon/data/stripe-coupon.fields.ts
5312
+ var StripeCouponFields = /* @__PURE__ */ ((StripeCouponFields2) => {
5313
+ StripeCouponFields2["name"] = "name";
5314
+ StripeCouponFields2["discount"] = "discount";
5315
+ StripeCouponFields2["places"] = "places";
5316
+ StripeCouponFields2["codes"] = "codes";
5317
+ StripeCouponFields2["status"] = "status";
5318
+ return StripeCouponFields2;
5319
+ })(StripeCouponFields || {});
5320
+
5321
+ // src/features/billing/stripe-coupon/stripe-coupon.module.ts
5322
+
5323
+ var STRIPE_COUPON_REFRESH_SEGMENT = "refresh";
5324
+ var STRIPE_COUPON_DETAIL_PAGE_URL = "/administration/coupons";
5325
+ var StripeCouponModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
5326
+ name: "stripe-coupons",
5327
+ // The coupons list lives on the products page (Codes tab), so the module
5328
+ // points there, same value as StripeProductModule. Links to a single coupon
5329
+ // use STRIPE_COUPON_DETAIL_PAGE_URL.
5330
+ pageUrl: "/administration/products",
5331
+ model: StripeCoupon,
5332
+ moduleId: "50bdb0d2-539c-4358-b609-d6beab248bdb",
5333
+ icon: _lucidereact.TicketPercentIcon
5334
+ }), "StripeCouponModule");
5335
+
5336
+ // src/features/billing/stripe-coupon/data/stripe-coupon.service.ts
5337
+ var StripeCouponService = class extends AbstractService {
5338
+ static {
5339
+ _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponService");
5340
+ }
5341
+ /**
5342
+ * List all coupons with their codes (admin)
5343
+ */
5344
+ static async listCoupons(params) {
5345
+ const endpoint = new EndpointCreator({
5346
+ endpoint: Modules.StripeCoupon
5347
+ });
5348
+ return this.callApi({
5349
+ type: Modules.StripeCoupon,
5350
+ method: "GET" /* GET */,
5351
+ endpoint: endpoint.generate(),
5352
+ next: _optionalChain([params, 'optionalAccess', _116 => _116.next]),
5353
+ previous: _optionalChain([params, 'optionalAccess', _117 => _117.prev])
5354
+ });
5355
+ }
5356
+ /**
5357
+ * Get a specific coupon by ID (admin)
5358
+ */
5359
+ static async getCoupon(params) {
5360
+ const endpoint = new EndpointCreator({
5361
+ endpoint: Modules.StripeCoupon,
5362
+ id: params.id
5363
+ });
5364
+ return this.callApi({
5365
+ type: Modules.StripeCoupon,
5366
+ method: "GET" /* GET */,
5367
+ endpoint: endpoint.generate()
5368
+ });
5369
+ }
5370
+ /**
5371
+ * Create a coupon and its first code (admin)
5372
+ */
5373
+ static async createCoupon(params) {
5374
+ const endpoint = new EndpointCreator({
5375
+ endpoint: Modules.StripeCoupon
5376
+ });
5377
+ return this.callApi({
5378
+ type: Modules.StripeCoupon,
5379
+ method: "POST" /* POST */,
5380
+ endpoint: endpoint.generate(),
5381
+ input: params
5382
+ });
5383
+ }
5384
+ /**
5385
+ * Rename a coupon (admin). The only coupon field Stripe allows to change.
5386
+ */
5387
+ static async renameCoupon(params) {
5388
+ const endpoint = new EndpointCreator({
5389
+ endpoint: Modules.StripeCoupon,
5390
+ id: params.id
5391
+ });
5392
+ return this.callApi({
5393
+ type: Modules.StripeCoupon,
5394
+ method: "PATCH" /* PATCH */,
5395
+ endpoint: endpoint.generate(),
5396
+ input: new StripeCoupon().createRenameJsonApi(params),
5397
+ overridesJsonApiCreation: true
5398
+ });
5399
+ }
5400
+ /**
5401
+ * Re-read the coupon and its codes from Stripe and store the counts (admin)
5402
+ */
5403
+ static async refreshCounts(params) {
5404
+ const endpoint = new EndpointCreator({
5405
+ endpoint: Modules.StripeCoupon,
5406
+ id: params.id,
5407
+ childEndpoint: STRIPE_COUPON_REFRESH_SEGMENT
5408
+ });
5409
+ return this.callApi({
5410
+ type: Modules.StripeCoupon,
5411
+ method: "POST" /* POST */,
5412
+ endpoint: endpoint.generate()
5413
+ });
5414
+ }
5415
+ };
5416
+
5417
+ // src/features/billing/stripe-coupon/data/stripe-coupon-code.ts
5418
+ var StripeCouponCode = (_class19 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this);_class19.prototype.__init41.call(this);_class19.prototype.__init42.call(this);_class19.prototype.__init43.call(this);_class19.prototype.__init44.call(this); }
5419
+ static {
5420
+ _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponCode");
5421
+ }
5422
+
5423
+ __init40() {this._code = ""}
5424
+ __init41() {this._active = true}
5425
+ __init42() {this._automatic = false}
5426
+ __init43() {this._firstTimeTransaction = false}
5427
+
5428
+
5429
+
5430
+
5431
+
5432
+ __init44() {this._timesRedeemed = 0}
5433
+
5434
+ get stripePromotionCodeId() {
5435
+ if (!this._stripePromotionCodeId) throw new Error("stripePromotionCodeId is not defined");
5436
+ return this._stripePromotionCodeId;
5437
+ }
5438
+ get code() {
5439
+ return this._code;
5440
+ }
5441
+ get active() {
5442
+ return this._active;
5443
+ }
5444
+ get automatic() {
5445
+ return this._automatic;
5446
+ }
5447
+ get firstTimeTransaction() {
5448
+ return this._firstTimeTransaction;
5449
+ }
5450
+ get minimumAmount() {
5451
+ return this._minimumAmount;
5452
+ }
5453
+ get minimumAmountCurrency() {
5454
+ return this._minimumAmountCurrency;
5455
+ }
5456
+ get stripeCustomerId() {
5457
+ return this._stripeCustomerId;
5458
+ }
5459
+ get expiresAt() {
5460
+ return this._expiresAt;
5461
+ }
5462
+ get maxRedemptions() {
5463
+ return this._maxRedemptions;
5464
+ }
5465
+ get timesRedeemed() {
5466
+ return this._timesRedeemed;
5467
+ }
5468
+ get coupon() {
5469
+ return this._coupon;
5470
+ }
5471
+ rehydrate(data) {
5472
+ super.rehydrate(data);
5473
+ const attributes = data.jsonApi.attributes;
5474
+ this._stripePromotionCodeId = attributes.stripePromotionCodeId;
5475
+ this._code = _nullishCoalesce(attributes.code, () => ( ""));
5476
+ this._active = _nullishCoalesce(attributes.active, () => ( true));
5477
+ this._automatic = _nullishCoalesce(attributes.automatic, () => ( false));
5478
+ this._firstTimeTransaction = _nullishCoalesce(attributes.firstTimeTransaction, () => ( false));
5479
+ this._minimumAmount = _nullishCoalesce(attributes.minimumAmount, () => ( void 0));
5480
+ this._minimumAmountCurrency = _nullishCoalesce(attributes.minimumAmountCurrency, () => ( void 0));
5481
+ this._stripeCustomerId = _nullishCoalesce(attributes.stripeCustomerId, () => ( void 0));
5482
+ this._expiresAt = attributes.expiresAt ? new Date(attributes.expiresAt) : void 0;
5483
+ this._maxRedemptions = _nullishCoalesce(attributes.maxRedemptions, () => ( void 0));
5484
+ this._timesRedeemed = _nullishCoalesce(attributes.timesRedeemed, () => ( 0));
5485
+ this._coupon = this._readIncluded(data, "coupon", Modules.StripeCoupon);
5486
+ return this;
5487
+ }
5488
+ createJsonApi(data) {
5489
+ const { id, couponId, ...code } = data;
5490
+ return {
5491
+ data: {
5492
+ type: Modules.StripeCouponCode.name,
5493
+ id,
5494
+ attributes: StripeCoupon.codeAttributes(code),
5495
+ relationships: {
5496
+ coupon: {
5497
+ data: {
5498
+ type: Modules.StripeCoupon.name,
5499
+ id: couponId
5500
+ }
5501
+ }
5502
+ }
5503
+ }
5504
+ };
5505
+ }
5506
+ /**
5507
+ * PATCH body for the flags a code can still change after creation.
5508
+ * Only the flags that are set are sent, so switching one never touches the other.
5509
+ */
5510
+ createFlagsJsonApi(data) {
5511
+ const attributes = {};
5512
+ if (data.active !== void 0) attributes.active = data.active;
5513
+ if (data.automatic !== void 0) attributes.automatic = data.automatic;
5514
+ return {
5515
+ data: {
5516
+ type: Modules.StripeCouponCode.name,
5517
+ id: data.id,
5518
+ attributes
5519
+ }
5520
+ };
5521
+ }
5522
+ }, _class19);
5523
+
5524
+ // src/features/billing/stripe-coupon/data/stripe-coupon-code.fields.ts
5525
+ var StripeCouponCodeFields = /* @__PURE__ */ ((StripeCouponCodeFields2) => {
5526
+ StripeCouponCodeFields2["code"] = "code";
5527
+ StripeCouponCodeFields2["places"] = "places";
5528
+ StripeCouponCodeFields2["expiresAt"] = "expiresAt";
5529
+ StripeCouponCodeFields2["automatic"] = "automatic";
5530
+ StripeCouponCodeFields2["status"] = "status";
5531
+ StripeCouponCodeFields2["actions"] = "actions";
5532
+ return StripeCouponCodeFields2;
5533
+ })(StripeCouponCodeFields || {});
5534
+
5535
+ // src/features/billing/stripe-coupon/stripe-coupon-code.module.ts
5536
+ var STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = "automatic";
5537
+ var StripeCouponCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
5538
+ name: "stripe-coupon-codes",
5539
+ // Codes are listed on the products page (Codes tab), same value as
5540
+ // StripeProductModule. A code has no page of its own.
5541
+ pageUrl: "/administration/products",
5542
+ model: StripeCouponCode,
5543
+ moduleId: "85feb4c7-ff22-416a-b856-8dafcf28ff26"
5544
+ }), "StripeCouponCodeModule");
5545
+
5546
+ // src/features/billing/stripe-coupon/data/stripe-coupon-code.service.ts
5547
+ var StripeCouponCodeService = class extends AbstractService {
5548
+ static {
5549
+ _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponCodeService");
5550
+ }
5551
+ /**
5552
+ * List the codes of a coupon (admin)
5553
+ */
5554
+ static async listByCoupon(params) {
5555
+ const endpoint = new EndpointCreator({
5556
+ endpoint: Modules.StripeCoupon,
5557
+ id: params.couponId,
5558
+ childEndpoint: Modules.StripeCouponCode
5559
+ });
5560
+ return this.callApi({
5561
+ type: Modules.StripeCouponCode,
5562
+ method: "GET" /* GET */,
5563
+ endpoint: endpoint.generate(),
5564
+ next: params.next,
5565
+ previous: params.prev
5566
+ });
5567
+ }
5568
+ /**
5569
+ * Create a code on an existing coupon (admin)
5570
+ */
5571
+ static async createCode(params) {
5572
+ const endpoint = new EndpointCreator({
5573
+ endpoint: Modules.StripeCouponCode
5574
+ });
5575
+ return this.callApi({
5576
+ type: Modules.StripeCouponCode,
5577
+ method: "POST" /* POST */,
5578
+ endpoint: endpoint.generate(),
5579
+ input: params
5580
+ });
5581
+ }
5582
+ /**
5583
+ * Switch "Apply automatically" and / or deactivate / reactivate a code (admin)
5584
+ */
5585
+ static async updateFlags(params) {
5586
+ const endpoint = new EndpointCreator({
5587
+ endpoint: Modules.StripeCouponCode,
5588
+ id: params.id
5589
+ });
5590
+ return this.callApi({
5591
+ type: Modules.StripeCouponCode,
5592
+ method: "PATCH" /* PATCH */,
5593
+ endpoint: endpoint.generate(),
5594
+ input: new StripeCouponCode().createFlagsJsonApi(params),
5595
+ overridesJsonApiCreation: true
5596
+ });
5597
+ }
5598
+ /**
5599
+ * The code the server would apply automatically for this price at a first
5600
+ * payment, or null when none applies (logged-in company administrator)
5601
+ */
5602
+ static async findAutomatic(params) {
5603
+ const endpoint = new EndpointCreator({
5604
+ endpoint: Modules.StripeCouponCode,
5605
+ id: STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT
5606
+ });
5607
+ endpoint.addAdditionalParam("priceId", params.priceId);
5608
+ const codes = await this.callApi({
5609
+ type: Modules.StripeCouponCode,
5610
+ method: "GET" /* GET */,
5611
+ endpoint: endpoint.generate(),
5612
+ // A failed lookup must reach the wizard, which then refuses to show full price as the truth
5613
+ suppressGlobalError: true
5614
+ });
5615
+ return _nullishCoalesce(_optionalChain([codes, 'optionalAccess', _118 => _118[0]]), () => ( null));
5616
+ }
5617
+ };
5618
+
5619
+ // src/features/billing/stripe-coupon/data/stripe-coupon-offer.ts
5620
+ var StripeCouponOffer = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init45.call(this);_class20.prototype.__init46.call(this); }
5621
+ static {
5622
+ _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponOffer");
5623
+ }
5624
+
5625
+
5626
+
5627
+
5628
+
5629
+
5630
+ __init45() {this._placesLeft = 0}
5631
+ __init46() {this._placesTotal = 0}
5632
+ get discountType() {
5633
+ if (!this._discountType) throw new Error("discountType is not defined");
5634
+ return this._discountType;
5635
+ }
5636
+ get percentOff() {
5637
+ return this._percentOff;
5638
+ }
5639
+ get amountOff() {
5640
+ return this._amountOff;
5641
+ }
5642
+ get currency() {
5643
+ return this._currency;
5644
+ }
5645
+ get duration() {
5646
+ if (!this._duration) throw new Error("duration is not defined");
5647
+ return this._duration;
5648
+ }
5649
+ get durationInMonths() {
5650
+ return this._durationInMonths;
5651
+ }
5652
+ get placesLeft() {
5653
+ return this._placesLeft;
5654
+ }
5655
+ get placesTotal() {
5656
+ return this._placesTotal;
5657
+ }
5658
+ rehydrate(data) {
5659
+ super.rehydrate(data);
5660
+ const attributes = data.jsonApi.attributes;
5661
+ this._discountType = attributes.discountType;
5662
+ this._percentOff = _nullishCoalesce(attributes.percentOff, () => ( void 0));
5663
+ this._amountOff = _nullishCoalesce(attributes.amountOff, () => ( void 0));
5664
+ this._currency = _nullishCoalesce(attributes.currency, () => ( void 0));
5665
+ this._duration = attributes.duration;
5666
+ this._durationInMonths = _nullishCoalesce(attributes.durationInMonths, () => ( void 0));
5667
+ this._placesLeft = _nullishCoalesce(attributes.placesLeft, () => ( 0));
5668
+ this._placesTotal = _nullishCoalesce(attributes.placesTotal, () => ( 0));
5669
+ return this;
5670
+ }
5671
+ createJsonApi(_data) {
5672
+ throw new Error("StripeCouponOffer is declared by the API and is read-only");
5673
+ }
5674
+ }, _class20);
5675
+
5676
+ // src/features/billing/stripe-coupon/utils/coupon-places.ts
5677
+ function couponPlacesLeft(code, coupon) {
5678
+ const remaining = [code, coupon].filter((item) => typeof item.maxRedemptions === "number").map((item) => Math.max(0, item.maxRedemptions - (_nullishCoalesce(item.timesRedeemed, () => ( 0)))));
5679
+ return remaining.length === 0 ? null : Math.min(...remaining);
5680
+ }
5681
+ _chunk7QVYU63Ejs.__name.call(void 0, couponPlacesLeft, "couponPlacesLeft");
5682
+ function couponPlacesTotal(code, coupon) {
5683
+ const limits = [code.maxRedemptions, coupon.maxRedemptions].filter(
5684
+ (limit) => typeof limit === "number"
5685
+ );
5686
+ return limits.length === 0 ? null : Math.min(...limits);
5687
+ }
5688
+ _chunk7QVYU63Ejs.__name.call(void 0, couponPlacesTotal, "couponPlacesTotal");
5689
+
5690
+ // src/features/billing/components/utils/format-options.ts
5691
+ var DEFAULT_BILLING_LOCALE = "en-US";
5692
+
5693
+ // src/features/billing/components/utils/currency.ts
5694
+ function formatIntervalEnglish(price) {
5695
+ if (price.priceType === "one_time" || !price.recurring) {
5696
+ return "one-time";
5697
+ }
5698
+ const { interval, intervalCount } = price.recurring;
5699
+ if (intervalCount === 1) {
5700
+ return `/${interval}`;
5701
+ }
5702
+ const pluralInterval = interval === "day" ? "days" : interval === "week" ? "weeks" : interval === "month" ? "months" : "years";
5703
+ return `/${intervalCount} ${pluralInterval}`;
5704
+ }
5705
+ _chunk7QVYU63Ejs.__name.call(void 0, formatIntervalEnglish, "formatIntervalEnglish");
5706
+ function formatInterval(price, options = {}) {
5707
+ const { t } = options;
5708
+ if (!t) return formatIntervalEnglish(price);
5709
+ if (price.priceType === "one_time" || !price.recurring) {
5710
+ return t("billing.ui.interval.one_time");
5711
+ }
5712
+ const { interval, intervalCount } = price.recurring;
5713
+ if (intervalCount === 1) {
5714
+ switch (interval) {
5715
+ case "day":
5716
+ return t("billing.ui.interval.per_day");
5717
+ case "week":
5718
+ return t("billing.ui.interval.per_week");
5719
+ case "month":
5720
+ return t("billing.ui.interval.per_month");
5721
+ default:
5722
+ return t("billing.ui.interval.per_year");
5723
+ }
5724
+ }
5725
+ switch (interval) {
5726
+ case "day":
5727
+ return t("billing.ui.interval.per_days", { count: intervalCount });
5728
+ case "week":
5729
+ return t("billing.ui.interval.per_weeks", { count: intervalCount });
5730
+ case "month":
5731
+ return t("billing.ui.interval.per_months", { count: intervalCount });
5732
+ default:
5733
+ return t("billing.ui.interval.per_years", { count: intervalCount });
5734
+ }
5735
+ }
5736
+ _chunk7QVYU63Ejs.__name.call(void 0, formatInterval, "formatInterval");
5737
+ function formatCurrency(amount, currency2, options = {}) {
5738
+ const { locale } = options;
5739
+ if (amount === void 0 && !locale) return "$0.00";
5740
+ const dollars = (_nullishCoalesce(amount, () => ( 0))) / 100;
5741
+ try {
5742
+ return new Intl.NumberFormat(_nullishCoalesce(locale, () => ( DEFAULT_BILLING_LOCALE)), {
5743
+ style: "currency",
5744
+ currency: currency2.toUpperCase(),
5745
+ minimumFractionDigits: 2,
5746
+ maximumFractionDigits: 2
5747
+ }).format(dollars);
5748
+ } catch (error) {
5749
+ console.error("Error formatting currency:", error);
5750
+ return `$${dollars.toFixed(2)}`;
5751
+ }
5752
+ }
5753
+ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
5754
+ function formatFixed(value, locale, digits) {
5755
+ return new Intl.NumberFormat(_nullishCoalesce(locale, () => ( DEFAULT_BILLING_LOCALE)), {
5756
+ minimumFractionDigits: digits,
5757
+ maximumFractionDigits: digits,
5758
+ useGrouping: false
5759
+ }).format(value);
5760
+ }
5761
+ _chunk7QVYU63Ejs.__name.call(void 0, formatFixed, "formatFixed");
5762
+
5763
+ // src/features/billing/stripe-coupon/utils/format-coupon-discount.ts
5764
+ function formatCouponDiscount(coupon, t, fmt = {}) {
5765
+ const amount = coupon.discountType === "percent_off" ? t("billing.admin.coupons.discount.percent", { value: String(_nullishCoalesce(coupon.percentOff, () => ( 0))) }) : t("billing.admin.coupons.discount.amount", {
5766
+ amount: formatCurrency(coupon.amountOff, _nullishCoalesce(coupon.currency, () => ( "eur")), fmt)
5767
+ });
5768
+ const duration = coupon.duration === "repeating" ? t("billing.admin.coupons.discount.repeating", { months: String(_nullishCoalesce(coupon.durationInMonths, () => ( 0))) }) : coupon.duration === "once" ? t("billing.admin.coupons.discount.once") : t("billing.admin.coupons.discount.forever");
5769
+ return `${amount} ${duration}`;
5770
+ }
5771
+ _chunk7QVYU63Ejs.__name.call(void 0, formatCouponDiscount, "formatCouponDiscount");
5772
+
5773
+ // src/features/billing/stripe-coupon/utils/to-promotion-code-result.ts
5774
+ function toPromotionCodeResult(code) {
5775
+ const coupon = code.coupon;
5776
+ const discountType = _optionalChain([coupon, 'optionalAccess', _119 => _119.discountType]);
5777
+ return {
5778
+ valid: true,
5779
+ automatic: true,
5780
+ promotionCodeId: code.stripePromotionCodeId,
5781
+ code: code.code,
5782
+ discountType,
5783
+ discountValue: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _120 => _120.amountOff]) : _optionalChain([coupon, 'optionalAccess', _121 => _121.percentOff]),
5784
+ currency: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _122 => _122.currency]) : void 0,
5785
+ duration: _optionalChain([coupon, 'optionalAccess', _123 => _123.duration]),
5786
+ durationInMonths: _optionalChain([coupon, 'optionalAccess', _124 => _124.durationInMonths])
5787
+ };
5788
+ }
5789
+ _chunk7QVYU63Ejs.__name.call(void 0, toPromotionCodeResult, "toPromotionCodeResult");
5790
+
5791
+ // src/features/billing/stripe-coupon/stripe-coupon-offer.module.ts
5792
+ var StripeCouponOfferModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
5793
+ name: "stripe-coupon-offers",
5794
+ pageUrl: "/pricing",
5795
+ model: StripeCouponOffer,
5796
+ moduleId: "6859d6cc-b94c-4cf7-8a02-b71ad59d75d2"
5797
+ }), "StripeCouponOfferModule");
5798
+
5123
5799
  // src/features/ai-connection/data/ai-connection.ts
5124
5800
  var AiConnection = class extends AbstractApiData {
5125
5801
  static {
@@ -5406,8 +6082,8 @@ var AiConnectionService = class extends AbstractService {
5406
6082
  });
5407
6083
  return {
5408
6084
  connections: _nullishCoalesce(data, () => ( [])),
5409
- providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _116 => _116.providerRegistry]), () => ( {})),
5410
- envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _117 => _117.envDefaults]), () => ( {}))
6085
+ providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _125 => _125.providerRegistry]), () => ( {})),
6086
+ envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _126 => _126.envDefaults]), () => ( {}))
5411
6087
  };
5412
6088
  }
5413
6089
  /**
@@ -5481,7 +6157,7 @@ var AiConnectionModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (f
5481
6157
 
5482
6158
 
5483
6159
  // src/features/company/data/company.ts
5484
- var Company = (_class18 = class extends AbstractApiData {constructor(...args15) { super(...args15); _class18.prototype.__init36.call(this);_class18.prototype.__init37.call(this);_class18.prototype.__init38.call(this);_class18.prototype.__init39.call(this); }
6160
+ var Company = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init47.call(this);_class21.prototype.__init48.call(this);_class21.prototype.__init49.call(this);_class21.prototype.__init50.call(this); }
5485
6161
  static {
5486
6162
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
5487
6163
  }
@@ -5489,10 +6165,10 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
5489
6165
 
5490
6166
 
5491
6167
 
5492
- __init36() {this._isActiveSubscription = false}
5493
- __init37() {this._monthlyCredits = 0}
5494
- __init38() {this._availableMonthlyCredits = 0}
5495
- __init39() {this._availableExtraCredits = 0}
6168
+ __init47() {this._isActiveSubscription = false}
6169
+ __init48() {this._monthlyCredits = 0}
6170
+ __init49() {this._availableMonthlyCredits = 0}
6171
+ __init50() {this._availableExtraCredits = 0}
5496
6172
 
5497
6173
 
5498
6174
 
@@ -5643,7 +6319,7 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
5643
6319
  }
5644
6320
  return response;
5645
6321
  }
5646
- }, _class18);
6322
+ }, _class21);
5647
6323
 
5648
6324
  // src/features/company/data/company.fields.ts
5649
6325
  var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
@@ -5843,8 +6519,8 @@ var ContentService = class extends AbstractService {
5843
6519
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5844
6520
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5845
6521
  }
5846
- if (_optionalChain([Modules, 'access', _118 => _118.Content, 'access', _119 => _119.inclusions, 'optionalAccess', _120 => _120.lists, 'optionalAccess', _121 => _121.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5847
- if (_optionalChain([Modules, 'access', _122 => _122.Content, 'access', _123 => _123.inclusions, 'optionalAccess', _124 => _124.lists, 'optionalAccess', _125 => _125.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
6522
+ if (_optionalChain([Modules, 'access', _127 => _127.Content, 'access', _128 => _128.inclusions, 'optionalAccess', _129 => _129.lists, 'optionalAccess', _130 => _130.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
6523
+ if (_optionalChain([Modules, 'access', _131 => _131.Content, 'access', _132 => _132.inclusions, 'optionalAccess', _133 => _133.lists, 'optionalAccess', _134 => _134.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5848
6524
  return this.callApi({
5849
6525
  type: Modules.Content,
5850
6526
  method: "GET" /* GET */,
@@ -5858,8 +6534,8 @@ var ContentService = class extends AbstractService {
5858
6534
  id: params.id,
5859
6535
  childEndpoint: "relevance"
5860
6536
  });
5861
- if (_optionalChain([Modules, 'access', _126 => _126.Content, 'access', _127 => _127.inclusions, 'optionalAccess', _128 => _128.lists, 'optionalAccess', _129 => _129.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5862
- if (_optionalChain([Modules, 'access', _130 => _130.Content, 'access', _131 => _131.inclusions, 'optionalAccess', _132 => _132.lists, 'optionalAccess', _133 => _133.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
6537
+ if (_optionalChain([Modules, 'access', _135 => _135.Content, 'access', _136 => _136.inclusions, 'optionalAccess', _137 => _137.lists, 'optionalAccess', _138 => _138.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
6538
+ if (_optionalChain([Modules, 'access', _139 => _139.Content, 'access', _140 => _140.inclusions, 'optionalAccess', _141 => _141.lists, 'optionalAccess', _142 => _142.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5863
6539
  return this.callApi({
5864
6540
  type: Modules.Content,
5865
6541
  method: "GET" /* GET */,
@@ -5875,8 +6551,8 @@ var ContentService = class extends AbstractService {
5875
6551
  });
5876
6552
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5877
6553
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5878
- if (_optionalChain([Modules, 'access', _134 => _134.Content, 'access', _135 => _135.inclusions, 'optionalAccess', _136 => _136.lists, 'optionalAccess', _137 => _137.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5879
- if (_optionalChain([Modules, 'access', _138 => _138.Content, 'access', _139 => _139.inclusions, 'optionalAccess', _140 => _140.lists, 'optionalAccess', _141 => _141.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
6554
+ if (_optionalChain([Modules, 'access', _143 => _143.Content, 'access', _144 => _144.inclusions, 'optionalAccess', _145 => _145.lists, 'optionalAccess', _146 => _146.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
6555
+ if (_optionalChain([Modules, 'access', _147 => _147.Content, 'access', _148 => _148.inclusions, 'optionalAccess', _149 => _149.lists, 'optionalAccess', _150 => _150.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5880
6556
  return this.callApi({
5881
6557
  type: Modules.Content,
5882
6558
  method: "GET" /* GET */,
@@ -6069,8 +6745,8 @@ var HowToService = class extends AbstractService {
6069
6745
  const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
6070
6746
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
6071
6747
  if (params.search) endpoint.addAdditionalParam("search", params.search);
6072
- if (_optionalChain([Modules, 'access', _142 => _142.HowTo, 'access', _143 => _143.inclusions, 'optionalAccess', _144 => _144.lists, 'optionalAccess', _145 => _145.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
6073
- if (_optionalChain([Modules, 'access', _146 => _146.HowTo, 'access', _147 => _147.inclusions, 'optionalAccess', _148 => _148.lists, 'optionalAccess', _149 => _149.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
6748
+ if (_optionalChain([Modules, 'access', _151 => _151.HowTo, 'access', _152 => _152.inclusions, 'optionalAccess', _153 => _153.lists, 'optionalAccess', _154 => _154.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
6749
+ if (_optionalChain([Modules, 'access', _155 => _155.HowTo, 'access', _156 => _156.inclusions, 'optionalAccess', _157 => _157.lists, 'optionalAccess', _158 => _158.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
6074
6750
  return this.callApi({
6075
6751
  type: Modules.HowTo,
6076
6752
  method: "GET" /* GET */,
@@ -6175,7 +6851,7 @@ var HowToService = class extends AbstractService {
6175
6851
 
6176
6852
 
6177
6853
  // src/features/email-automation/data/EmailAutomation.ts
6178
- var EmailAutomation = (_class19 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this); }
6854
+ var EmailAutomation = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init51.call(this); }
6179
6855
  static {
6180
6856
  _chunk7QVYU63Ejs.__name.call(void 0, this, "EmailAutomation");
6181
6857
  }
@@ -6183,7 +6859,7 @@ var EmailAutomation = (_class19 = class extends AbstractApiData {constructor(...
6183
6859
 
6184
6860
 
6185
6861
 
6186
- __init40() {this._isActive = false}
6862
+ __init51() {this._isActive = false}
6187
6863
 
6188
6864
 
6189
6865
 
@@ -6246,7 +6922,7 @@ var EmailAutomation = (_class19 = class extends AbstractApiData {constructor(...
6246
6922
  if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
6247
6923
  return response;
6248
6924
  }
6249
- }, _class19);
6925
+ }, _class22);
6250
6926
 
6251
6927
  // src/features/email-automation/EmailAutomationModule.ts
6252
6928
  var EmailAutomationModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6378,13 +7054,13 @@ var EmailAutomationStepModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
6378
7054
 
6379
7055
  // src/features/email-automation/data/EmailAutomationEnrollment.ts
6380
7056
  var EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = "email-automation-unsubscribes";
6381
- var EmailAutomationEnrollment = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this); }
7057
+ var EmailAutomationEnrollment = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init52.call(this); }
6382
7058
  static {
6383
7059
  _chunk7QVYU63Ejs.__name.call(void 0, this, "EmailAutomationEnrollment");
6384
7060
  }
6385
7061
 
6386
7062
 
6387
- __init41() {this._status = "active"}
7063
+ __init52() {this._status = "active"}
6388
7064
 
6389
7065
 
6390
7066
 
@@ -6458,7 +7134,7 @@ var EmailAutomationEnrollment = (_class20 = class extends AbstractApiData {const
6458
7134
  }
6459
7135
  };
6460
7136
  }
6461
- }, _class20);
7137
+ }, _class23);
6462
7138
 
6463
7139
  // src/features/email-automation/EmailAutomationEnrollmentModule.ts
6464
7140
  var EmailAutomationEnrollmentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6510,9 +7186,9 @@ var EmailAutomationService = class extends AbstractService {
6510
7186
  }
6511
7187
  static async findMany(params = {}) {
6512
7188
  const endpoint = new EndpointCreator({ endpoint: Modules.EmailAutomation });
6513
- if (_optionalChain([Modules, 'access', _150 => _150.EmailAutomation, 'access', _151 => _151.inclusions, 'optionalAccess', _152 => _152.lists, 'optionalAccess', _153 => _153.fields]))
7189
+ if (_optionalChain([Modules, 'access', _159 => _159.EmailAutomation, 'access', _160 => _160.inclusions, 'optionalAccess', _161 => _161.lists, 'optionalAccess', _162 => _162.fields]))
6514
7190
  endpoint.limitToFields(Modules.EmailAutomation.inclusions.lists.fields);
6515
- if (_optionalChain([Modules, 'access', _154 => _154.EmailAutomation, 'access', _155 => _155.inclusions, 'optionalAccess', _156 => _156.lists, 'optionalAccess', _157 => _157.types]))
7191
+ if (_optionalChain([Modules, 'access', _163 => _163.EmailAutomation, 'access', _164 => _164.inclusions, 'optionalAccess', _165 => _165.lists, 'optionalAccess', _166 => _166.types]))
6516
7192
  endpoint.limitToType(Modules.EmailAutomation.inclusions.lists.types);
6517
7193
  return this.callApi({
6518
7194
  type: Modules.EmailAutomation,
@@ -7112,7 +7788,7 @@ var BlogSettings = class extends AbstractApiData {
7112
7788
  }
7113
7789
  rehydrate(data) {
7114
7790
  super.rehydrate(data);
7115
- const listLayout = _optionalChain([data, 'access', _158 => _158.jsonApi, 'access', _159 => _159.attributes, 'optionalAccess', _160 => _160.listLayout]);
7791
+ const listLayout = _optionalChain([data, 'access', _167 => _167.jsonApi, 'access', _168 => _168.attributes, 'optionalAccess', _169 => _169.listLayout]);
7116
7792
  this._listLayout = BLOG_LIST_LAYOUTS.includes(listLayout) ? listLayout : void 0;
7117
7793
  return this;
7118
7794
  }
@@ -7609,7 +8285,7 @@ var HandbookSectionModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
7609
8285
 
7610
8286
  // src/features/handbook/data/HandbookThreadMessage.ts
7611
8287
 
7612
- var HandbookThreadMessage = (_class21 = class _HandbookThreadMessage extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init42.call(this); }
8288
+ var HandbookThreadMessage = (_class24 = class _HandbookThreadMessage extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init53.call(this); }
7613
8289
  static {
7614
8290
  _chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThreadMessage");
7615
8291
  }
@@ -7617,7 +8293,7 @@ var HandbookThreadMessage = (_class21 = class _HandbookThreadMessage extends Abs
7617
8293
 
7618
8294
 
7619
8295
 
7620
- __init42() {this._isOptimistic = false}
8296
+ __init53() {this._isOptimistic = false}
7621
8297
  get role() {
7622
8298
  return _nullishCoalesce(this._role, () => ( "assistant"));
7623
8299
  }
@@ -7715,7 +8391,7 @@ var HandbookThreadMessage = (_class21 = class _HandbookThreadMessage extends Abs
7715
8391
  message._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
7716
8392
  return message;
7717
8393
  }
7718
- }, _class21);
8394
+ }, _class24);
7719
8395
 
7720
8396
  // src/features/handbook/HandbookThreadMessageModule.ts
7721
8397
  var HandbookThreadMessageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -7769,7 +8445,7 @@ var HandbookThread = class extends AbstractApiData {
7769
8445
  super.rehydrate(data);
7770
8446
  const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
7771
8447
  this._title = attributes.title;
7772
- const fromMeta = _optionalChain([data, 'access', _161 => _161.jsonApi, 'access', _162 => _162.meta, 'optionalAccess', _163 => _163.messageCount]);
8448
+ const fromMeta = _optionalChain([data, 'access', _170 => _170.jsonApi, 'access', _171 => _171.meta, 'optionalAccess', _172 => _172.messageCount]);
7773
8449
  this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof attributes.messageCount === "number" ? attributes.messageCount : 0;
7774
8450
  const messages = this._readIncluded(
7775
8451
  data,
@@ -7892,9 +8568,9 @@ var HandbookPageService = class extends AbstractService {
7892
8568
  const endpoint = new EndpointCreator({ endpoint: Modules.HandbookPage });
7893
8569
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
7894
8570
  if (params.search) endpoint.addAdditionalParam("search", params.search);
7895
- if (_optionalChain([Modules, 'access', _164 => _164.HandbookPage, 'access', _165 => _165.inclusions, 'optionalAccess', _166 => _166.lists, 'optionalAccess', _167 => _167.fields]))
8571
+ if (_optionalChain([Modules, 'access', _173 => _173.HandbookPage, 'access', _174 => _174.inclusions, 'optionalAccess', _175 => _175.lists, 'optionalAccess', _176 => _176.fields]))
7896
8572
  endpoint.limitToFields(Modules.HandbookPage.inclusions.lists.fields);
7897
- if (_optionalChain([Modules, 'access', _168 => _168.HandbookPage, 'access', _169 => _169.inclusions, 'optionalAccess', _170 => _170.lists, 'optionalAccess', _171 => _171.types]))
8573
+ if (_optionalChain([Modules, 'access', _177 => _177.HandbookPage, 'access', _178 => _178.inclusions, 'optionalAccess', _179 => _179.lists, 'optionalAccess', _180 => _180.types]))
7898
8574
  endpoint.limitToType(Modules.HandbookPage.inclusions.lists.types);
7899
8575
  return this.callApi({
7900
8576
  type: Modules.HandbookPage,
@@ -7943,7 +8619,7 @@ var HandbookSectionService = class extends AbstractService {
7943
8619
  static async findMany() {
7944
8620
  const endpoint = new EndpointCreator({ endpoint: Modules.HandbookSection });
7945
8621
  endpoint.addAdditionalParam("fetchAll", "true");
7946
- if (_optionalChain([Modules, 'access', _172 => _172.HandbookSection, 'access', _173 => _173.inclusions, 'optionalAccess', _174 => _174.lists, 'optionalAccess', _175 => _175.fields]))
8622
+ if (_optionalChain([Modules, 'access', _181 => _181.HandbookSection, 'access', _182 => _182.inclusions, 'optionalAccess', _183 => _183.lists, 'optionalAccess', _184 => _184.fields]))
7947
8623
  endpoint.limitToFields(Modules.HandbookSection.inclusions.lists.fields);
7948
8624
  return this.callApi({
7949
8625
  type: Modules.HandbookSection,
@@ -8000,9 +8676,9 @@ var HandbookThreadService = class extends AbstractService {
8000
8676
  const endpoint = new EndpointCreator({ endpoint: Modules.HandbookThread });
8001
8677
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
8002
8678
  if (params.search) endpoint.addAdditionalParam("search", params.search);
8003
- if (_optionalChain([Modules, 'access', _176 => _176.HandbookThread, 'access', _177 => _177.inclusions, 'optionalAccess', _178 => _178.lists, 'optionalAccess', _179 => _179.fields]))
8679
+ if (_optionalChain([Modules, 'access', _185 => _185.HandbookThread, 'access', _186 => _186.inclusions, 'optionalAccess', _187 => _187.lists, 'optionalAccess', _188 => _188.fields]))
8004
8680
  endpoint.limitToFields(Modules.HandbookThread.inclusions.lists.fields);
8005
- if (_optionalChain([Modules, 'access', _180 => _180.HandbookThread, 'access', _181 => _181.inclusions, 'optionalAccess', _182 => _182.lists, 'optionalAccess', _183 => _183.types]))
8681
+ if (_optionalChain([Modules, 'access', _189 => _189.HandbookThread, 'access', _190 => _190.inclusions, 'optionalAccess', _191 => _191.lists, 'optionalAccess', _192 => _192.types]))
8006
8682
  endpoint.limitToType(Modules.HandbookThread.inclusions.lists.types);
8007
8683
  return this.callApi({
8008
8684
  type: Modules.HandbookThread,
@@ -8089,15 +8765,15 @@ var Assistant = class extends AbstractApiData {
8089
8765
  }
8090
8766
  rehydrate(data) {
8091
8767
  super.rehydrate(data);
8092
- this._title = _optionalChain([data, 'access', _184 => _184.jsonApi, 'access', _185 => _185.attributes, 'optionalAccess', _186 => _186.title]);
8093
- this._engine = _optionalChain([data, 'access', _187 => _187.jsonApi, 'access', _188 => _188.attributes, 'optionalAccess', _189 => _189.engine]);
8094
- const fromMeta = _optionalChain([data, 'access', _190 => _190.jsonApi, 'access', _191 => _191.meta, 'optionalAccess', _192 => _192.messageCount]);
8095
- const fromAttrs = _optionalChain([data, 'access', _193 => _193.jsonApi, 'access', _194 => _194.attributes, 'optionalAccess', _195 => _195.messageCount]);
8768
+ this._title = _optionalChain([data, 'access', _193 => _193.jsonApi, 'access', _194 => _194.attributes, 'optionalAccess', _195 => _195.title]);
8769
+ this._engine = _optionalChain([data, 'access', _196 => _196.jsonApi, 'access', _197 => _197.attributes, 'optionalAccess', _198 => _198.engine]);
8770
+ const fromMeta = _optionalChain([data, 'access', _199 => _199.jsonApi, 'access', _200 => _200.meta, 'optionalAccess', _201 => _201.messageCount]);
8771
+ const fromAttrs = _optionalChain([data, 'access', _202 => _202.jsonApi, 'access', _203 => _203.attributes, 'optionalAccess', _204 => _204.messageCount]);
8096
8772
  this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
8097
- const contentLinkage = _optionalChain([data, 'access', _196 => _196.jsonApi, 'access', _197 => _197.relationships, 'optionalAccess', _198 => _198.content, 'optionalAccess', _199 => _199.data]);
8773
+ const contentLinkage = _optionalChain([data, 'access', _205 => _205.jsonApi, 'access', _206 => _206.relationships, 'optionalAccess', _207 => _207.content, 'optionalAccess', _208 => _208.data]);
8098
8774
  const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
8099
- this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _200 => _200.type]);
8100
- this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _201 => _201.id]);
8775
+ this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _209 => _209.type]);
8776
+ this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _210 => _210.id]);
8101
8777
  return this;
8102
8778
  }
8103
8779
  createJsonApi(data) {
@@ -8155,7 +8831,7 @@ function resolveReferenceableModules() {
8155
8831
  _chunk7QVYU63Ejs.__name.call(void 0, resolveReferenceableModules, "resolveReferenceableModules");
8156
8832
 
8157
8833
  // src/features/assistant-message/data/AssistantMessage.ts
8158
- var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init43.call(this); }
8834
+ var AssistantMessage = (_class25 = class _AssistantMessage extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init54.call(this); }
8159
8835
  static {
8160
8836
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AssistantMessage");
8161
8837
  }
@@ -8167,7 +8843,7 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
8167
8843
 
8168
8844
 
8169
8845
 
8170
- __init43() {this._isOptimistic = false}
8846
+ __init54() {this._isOptimistic = false}
8171
8847
 
8172
8848
 
8173
8849
  get role() {
@@ -8213,11 +8889,11 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
8213
8889
  this._inputTokens = attrs.inputTokens;
8214
8890
  this._outputTokens = attrs.outputTokens;
8215
8891
  this._messageType = attrs.messageType;
8216
- const actionRelationship = _optionalChain([data, 'access', _202 => _202.jsonApi, 'access', _203 => _203.relationships, 'optionalAccess', _204 => _204.action, 'optionalAccess', _205 => _205.data]);
8217
- this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _206 => _206[0], 'optionalAccess', _207 => _207.id]) : _optionalChain([actionRelationship, 'optionalAccess', _208 => _208.id]);
8892
+ const actionRelationship = _optionalChain([data, 'access', _211 => _211.jsonApi, 'access', _212 => _212.relationships, 'optionalAccess', _213 => _213.action, 'optionalAccess', _214 => _214.data]);
8893
+ this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _215 => _215[0], 'optionalAccess', _216 => _216.id]) : _optionalChain([actionRelationship, 'optionalAccess', _217 => _217.id]);
8218
8894
  const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
8219
8895
  this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
8220
- if (_optionalChain([data, 'access', _209 => _209.jsonApi, 'access', _210 => _210.relationships, 'optionalAccess', _211 => _211.citations, 'optionalAccess', _212 => _212.data])) {
8896
+ if (_optionalChain([data, 'access', _218 => _218.jsonApi, 'access', _219 => _219.relationships, 'optionalAccess', _220 => _220.citations, 'optionalAccess', _221 => _221.data])) {
8221
8897
  const citations = this._readIncludedWithMeta(
8222
8898
  data,
8223
8899
  "citations",
@@ -8304,7 +8980,7 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
8304
8980
  msg._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
8305
8981
  return msg;
8306
8982
  }
8307
- }, _class22);
8983
+ }, _class25);
8308
8984
 
8309
8985
  // src/features/assistant/data/AssistantService.ts
8310
8986
  var AssistantService = class extends AbstractService {
@@ -8473,9 +9149,9 @@ var AssistantMessageService = class extends AbstractService {
8473
9149
  id: params.assistantId,
8474
9150
  childEndpoint: Modules.AssistantMessage
8475
9151
  });
8476
- if (_optionalChain([Modules, 'access', _213 => _213.AssistantMessage, 'access', _214 => _214.inclusions, 'optionalAccess', _215 => _215.lists, 'optionalAccess', _216 => _216.fields]))
9152
+ if (_optionalChain([Modules, 'access', _222 => _222.AssistantMessage, 'access', _223 => _223.inclusions, 'optionalAccess', _224 => _224.lists, 'optionalAccess', _225 => _225.fields]))
8477
9153
  endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
8478
- if (_optionalChain([Modules, 'access', _217 => _217.AssistantMessage, 'access', _218 => _218.inclusions, 'optionalAccess', _219 => _219.lists, 'optionalAccess', _220 => _220.types]))
9154
+ if (_optionalChain([Modules, 'access', _226 => _226.AssistantMessage, 'access', _227 => _227.inclusions, 'optionalAccess', _228 => _228.lists, 'optionalAccess', _229 => _229.types]))
8479
9155
  endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
8480
9156
  return this.callApi({
8481
9157
  type: Modules.AssistantMessage,
@@ -8489,9 +9165,9 @@ var AssistantMessageService = class extends AbstractService {
8489
9165
  endpoint: Modules.AssistantMessage,
8490
9166
  id: params.id
8491
9167
  });
8492
- if (_optionalChain([Modules, 'access', _221 => _221.AssistantMessage, 'access', _222 => _222.inclusions, 'optionalAccess', _223 => _223.lists, 'optionalAccess', _224 => _224.fields]))
9168
+ if (_optionalChain([Modules, 'access', _230 => _230.AssistantMessage, 'access', _231 => _231.inclusions, 'optionalAccess', _232 => _232.lists, 'optionalAccess', _233 => _233.fields]))
8493
9169
  endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
8494
- if (_optionalChain([Modules, 'access', _225 => _225.AssistantMessage, 'access', _226 => _226.inclusions, 'optionalAccess', _227 => _227.lists, 'optionalAccess', _228 => _228.types]))
9170
+ if (_optionalChain([Modules, 'access', _234 => _234.AssistantMessage, 'access', _235 => _235.inclusions, 'optionalAccess', _236 => _236.lists, 'optionalAccess', _237 => _237.types]))
8495
9171
  endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
8496
9172
  return this.callApi({
8497
9173
  type: Modules.AssistantMessage,
@@ -8697,13 +9373,13 @@ var ChunkModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
8697
9373
  }), "ChunkModule");
8698
9374
 
8699
9375
  // src/features/feature/data/feature.ts
8700
- var Feature = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init44.call(this); }
9376
+ var Feature = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init55.call(this); }
8701
9377
  static {
8702
9378
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
8703
9379
  }
8704
9380
 
8705
9381
 
8706
- __init44() {this._modules = []}
9382
+ __init55() {this._modules = []}
8707
9383
  get name() {
8708
9384
  return _nullishCoalesce(this._name, () => ( ""));
8709
9385
  }
@@ -8720,7 +9396,7 @@ var Feature = (_class23 = class extends AbstractApiData {constructor(...args20)
8720
9396
  this._modules = this._readIncluded(data, `modules`, Modules.Module);
8721
9397
  return this;
8722
9398
  }
8723
- }, _class23);
9399
+ }, _class26);
8724
9400
 
8725
9401
  // src/features/feature/data/feature.service.ts
8726
9402
  var FeatureService = class extends AbstractService {
@@ -8816,10 +9492,10 @@ var Notification = class extends AbstractApiData {
8816
9492
  this._message = data.jsonApi.attributes.message;
8817
9493
  this._actionUrl = data.jsonApi.attributes.actionUrl;
8818
9494
  const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
8819
- const actorType = _optionalChain([rels, 'access', _229 => _229.actor, 'optionalAccess', _230 => _230.data, 'optionalAccess', _231 => _231.type]);
9495
+ const actorType = _optionalChain([rels, 'access', _238 => _238.actor, 'optionalAccess', _239 => _239.data, 'optionalAccess', _240 => _240.type]);
8820
9496
  this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
8821
- const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _232 => _232[name], 'optionalAccess', _233 => _233.data, 'optionalAccess', _234 => _234.type]));
8822
- const subjectType = subjectName ? _optionalChain([rels, 'access', _235 => _235[subjectName], 'optionalAccess', _236 => _236.data, 'optionalAccess', _237 => _237.type]) : void 0;
9497
+ const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _241 => _241[name], 'optionalAccess', _242 => _242.data, 'optionalAccess', _243 => _243.type]));
9498
+ const subjectType = subjectName ? _optionalChain([rels, 'access', _244 => _244[subjectName], 'optionalAccess', _245 => _245.data, 'optionalAccess', _246 => _246.type]) : void 0;
8823
9499
  this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
8824
9500
  return this;
8825
9501
  }
@@ -9200,7 +9876,7 @@ var S3Service = class extends AbstractService {
9200
9876
  };
9201
9877
 
9202
9878
  // src/features/user/data/user.ts
9203
- var User = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init45.call(this);_class24.prototype.__init46.call(this);_class24.prototype.__init47.call(this); }
9879
+ var User = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init56.call(this);_class27.prototype.__init57.call(this);_class27.prototype.__init58.call(this); }
9204
9880
  static {
9205
9881
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
9206
9882
  }
@@ -9215,12 +9891,12 @@ var User = (_class24 = class extends AbstractApiData {constructor(...args21) { s
9215
9891
 
9216
9892
 
9217
9893
 
9218
- __init45() {this._twoFactorEnabled = false}
9894
+ __init56() {this._twoFactorEnabled = false}
9219
9895
 
9220
9896
 
9221
- __init46() {this._roles = []}
9897
+ __init57() {this._roles = []}
9222
9898
 
9223
- __init47() {this._modules = []}
9899
+ __init58() {this._modules = []}
9224
9900
  get searchResult() {
9225
9901
  return _nullishCoalesce(this._name, () => ( ""));
9226
9902
  }
@@ -9336,7 +10012,7 @@ var User = (_class24 = class extends AbstractApiData {constructor(...args21) { s
9336
10012
  }
9337
10013
  return response;
9338
10014
  }
9339
- }, _class24);
10015
+ }, _class27);
9340
10016
 
9341
10017
  // src/features/user/data/user.fields.ts
9342
10018
  var UserFields = /* @__PURE__ */ ((UserFields2) => {
@@ -9406,8 +10082,8 @@ var UserService = class extends AbstractService {
9406
10082
  id: params.id,
9407
10083
  childEndpoint: "user-relevance"
9408
10084
  });
9409
- if (_optionalChain([Modules, 'access', _238 => _238.User, 'access', _239 => _239.inclusions, 'optionalAccess', _240 => _240.lists, 'optionalAccess', _241 => _241.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
9410
- if (_optionalChain([Modules, 'access', _242 => _242.User, 'access', _243 => _243.inclusions, 'optionalAccess', _244 => _244.lists, 'optionalAccess', _245 => _245.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
10085
+ if (_optionalChain([Modules, 'access', _247 => _247.User, 'access', _248 => _248.inclusions, 'optionalAccess', _249 => _249.lists, 'optionalAccess', _250 => _250.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
10086
+ if (_optionalChain([Modules, 'access', _251 => _251.User, 'access', _252 => _252.inclusions, 'optionalAccess', _253 => _253.lists, 'optionalAccess', _254 => _254.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
9411
10087
  return this.callApi({
9412
10088
  type: Modules.User,
9413
10089
  method: "GET" /* GET */,
@@ -9585,18 +10261,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
9585
10261
  }), "UserModule");
9586
10262
 
9587
10263
  // src/features/oauth/data/oauth.ts
9588
- var OAuthClient = (_class25 = class extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init48.call(this);_class25.prototype.__init49.call(this);_class25.prototype.__init50.call(this);_class25.prototype.__init51.call(this);_class25.prototype.__init52.call(this); }
10264
+ var OAuthClient = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init59.call(this);_class28.prototype.__init60.call(this);_class28.prototype.__init61.call(this);_class28.prototype.__init62.call(this);_class28.prototype.__init63.call(this); }
9589
10265
  static {
9590
10266
  _chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
9591
10267
  }
9592
10268
 
9593
10269
 
9594
10270
 
9595
- __init48() {this._redirectUris = []}
9596
- __init49() {this._allowedScopes = []}
9597
- __init50() {this._allowedGrantTypes = []}
9598
- __init51() {this._isConfidential = true}
9599
- __init52() {this._isActive = true}
10271
+ __init59() {this._redirectUris = []}
10272
+ __init60() {this._allowedScopes = []}
10273
+ __init61() {this._allowedGrantTypes = []}
10274
+ __init62() {this._isConfidential = true}
10275
+ __init63() {this._isActive = true}
9600
10276
  get clientId() {
9601
10277
  return _nullishCoalesce(this._clientId, () => ( this.id));
9602
10278
  }
@@ -9679,7 +10355,7 @@ var OAuthClient = (_class25 = class extends AbstractApiData {constructor(...args
9679
10355
  state: params.state
9680
10356
  };
9681
10357
  }
9682
- }, _class25);
10358
+ }, _class28);
9683
10359
 
9684
10360
  // src/features/oauth/oauth.module.ts
9685
10361
  var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -9704,7 +10380,7 @@ var OAuthService = class extends AbstractService {
9704
10380
  type: Modules.OAuth,
9705
10381
  method: "GET" /* GET */,
9706
10382
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
9707
- next: _optionalChain([params, 'optionalAccess', _246 => _246.next])
10383
+ next: _optionalChain([params, 'optionalAccess', _255 => _255.next])
9708
10384
  });
9709
10385
  }
9710
10386
  /**
@@ -9730,7 +10406,7 @@ var OAuthService = class extends AbstractService {
9730
10406
  });
9731
10407
  return {
9732
10408
  client: result.data,
9733
- clientSecret: _optionalChain([result, 'access', _247 => _247.meta, 'optionalAccess', _248 => _248.clientSecret])
10409
+ clientSecret: _optionalChain([result, 'access', _256 => _256.meta, 'optionalAccess', _257 => _257.clientSecret])
9734
10410
  };
9735
10411
  }
9736
10412
  /**
@@ -9769,7 +10445,7 @@ var OAuthService = class extends AbstractService {
9769
10445
  }).generate()
9770
10446
  });
9771
10447
  return {
9772
- clientSecret: _optionalChain([result, 'access', _249 => _249.meta, 'optionalAccess', _250 => _250.clientSecret])
10448
+ clientSecret: _optionalChain([result, 'access', _258 => _258.meta, 'optionalAccess', _259 => _259.clientSecret])
9773
10449
  };
9774
10450
  }
9775
10451
  // ==========================================
@@ -9806,7 +10482,7 @@ var OAuthService = class extends AbstractService {
9806
10482
  overridesJsonApiCreation: true
9807
10483
  });
9808
10484
  return {
9809
- redirectUrl: _optionalChain([result, 'access', _251 => _251.meta, 'optionalAccess', _252 => _252.redirectUrl])
10485
+ redirectUrl: _optionalChain([result, 'access', _260 => _260.meta, 'optionalAccess', _261 => _261.redirectUrl])
9810
10486
  };
9811
10487
  }
9812
10488
  /**
@@ -9822,7 +10498,7 @@ var OAuthService = class extends AbstractService {
9822
10498
  overridesJsonApiCreation: true
9823
10499
  });
9824
10500
  return {
9825
- redirectUrl: _optionalChain([result, 'access', _253 => _253.meta, 'optionalAccess', _254 => _254.redirectUrl])
10501
+ redirectUrl: _optionalChain([result, 'access', _262 => _262.meta, 'optionalAccess', _263 => _263.redirectUrl])
9826
10502
  };
9827
10503
  }
9828
10504
  };
@@ -9864,17 +10540,17 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
9864
10540
  var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
9865
10541
 
9866
10542
  // src/features/waitlist/data/Waitlist.ts
9867
- var Waitlist = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init53.call(this);_class26.prototype.__init54.call(this); }
10543
+ var Waitlist = (_class29 = class extends AbstractApiData {constructor(...args26) { super(...args26); _class29.prototype.__init64.call(this);_class29.prototype.__init65.call(this); }
9868
10544
  static {
9869
10545
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
9870
10546
  }
9871
10547
 
9872
- __init53() {this._gdprConsent = false}
10548
+ __init64() {this._gdprConsent = false}
9873
10549
 
9874
10550
 
9875
10551
 
9876
10552
 
9877
- __init54() {this._status = "pending"}
10553
+ __init65() {this._status = "pending"}
9878
10554
 
9879
10555
 
9880
10556
 
@@ -9988,7 +10664,7 @@ var Waitlist = (_class26 = class extends AbstractApiData {constructor(...args23)
9988
10664
  }
9989
10665
  return response;
9990
10666
  }
9991
- }, _class26);
10667
+ }, _class29);
9992
10668
 
9993
10669
  // src/features/waitlist/data/WaitlistService.ts
9994
10670
  var WaitlistService = class extends AbstractService {
@@ -10028,15 +10704,15 @@ var WaitlistService = class extends AbstractService {
10028
10704
  */
10029
10705
  static async findMany(params) {
10030
10706
  const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
10031
- if (_optionalChain([params, 'optionalAccess', _255 => _255.status])) endpoint.addAdditionalParam("status", params.status);
10032
- if (_optionalChain([params, 'optionalAccess', _256 => _256.search])) endpoint.addAdditionalParam("search", params.search);
10033
- if (_optionalChain([params, 'optionalAccess', _257 => _257.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
10707
+ if (_optionalChain([params, 'optionalAccess', _264 => _264.status])) endpoint.addAdditionalParam("status", params.status);
10708
+ if (_optionalChain([params, 'optionalAccess', _265 => _265.search])) endpoint.addAdditionalParam("search", params.search);
10709
+ if (_optionalChain([params, 'optionalAccess', _266 => _266.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
10034
10710
  return this.callApi({
10035
10711
  type: Modules.Waitlist,
10036
10712
  method: "GET" /* GET */,
10037
10713
  endpoint: endpoint.generate(),
10038
- next: _optionalChain([params, 'optionalAccess', _258 => _258.next]),
10039
- previous: _optionalChain([params, 'optionalAccess', _259 => _259.previous])
10714
+ next: _optionalChain([params, 'optionalAccess', _267 => _267.next]),
10715
+ previous: _optionalChain([params, 'optionalAccess', _268 => _268.previous])
10040
10716
  });
10041
10717
  }
10042
10718
  /**
@@ -10105,10 +10781,10 @@ var WaitlistService = class extends AbstractService {
10105
10781
  method: "GET" /* GET */,
10106
10782
  endpoint: endpoint.generate()
10107
10783
  });
10108
- const attributes = _optionalChain([response, 'access', _260 => _260.data, 'optionalAccess', _261 => _261._jsonApi, 'optionalAccess', _262 => _262.attributes]);
10784
+ const attributes = _optionalChain([response, 'access', _269 => _269.data, 'optionalAccess', _270 => _270._jsonApi, 'optionalAccess', _271 => _271.attributes]);
10109
10785
  return {
10110
- email: _optionalChain([attributes, 'optionalAccess', _263 => _263.email]),
10111
- valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _264 => _264.valid]), () => ( false))
10786
+ email: _optionalChain([attributes, 'optionalAccess', _272 => _272.email]),
10787
+ valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _273 => _273.valid]), () => ( false))
10112
10788
  };
10113
10789
  } catch (_error) {
10114
10790
  return null;
@@ -10117,15 +10793,15 @@ var WaitlistService = class extends AbstractService {
10117
10793
  };
10118
10794
 
10119
10795
  // src/features/waitlist/data/waitlist-stats.ts
10120
- var WaitlistStats = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init55.call(this);_class27.prototype.__init56.call(this);_class27.prototype.__init57.call(this);_class27.prototype.__init58.call(this);_class27.prototype.__init59.call(this); }
10796
+ var WaitlistStats = (_class30 = class extends AbstractApiData {constructor(...args27) { super(...args27); _class30.prototype.__init66.call(this);_class30.prototype.__init67.call(this);_class30.prototype.__init68.call(this);_class30.prototype.__init69.call(this);_class30.prototype.__init70.call(this); }
10121
10797
  static {
10122
10798
  _chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
10123
10799
  }
10124
- __init55() {this._pending = 0}
10125
- __init56() {this._confirmed = 0}
10126
- __init57() {this._invited = 0}
10127
- __init58() {this._registered = 0}
10128
- __init59() {this._total = 0}
10800
+ __init66() {this._pending = 0}
10801
+ __init67() {this._confirmed = 0}
10802
+ __init68() {this._invited = 0}
10803
+ __init69() {this._registered = 0}
10804
+ __init70() {this._total = 0}
10129
10805
  get pending() {
10130
10806
  return this._pending;
10131
10807
  }
@@ -10154,7 +10830,7 @@ var WaitlistStats = (_class27 = class extends AbstractApiData {constructor(...ar
10154
10830
  createJsonApi(_data) {
10155
10831
  throw new Error("WaitlistStats is read-only and cannot be created");
10156
10832
  }
10157
- }, _class27);
10833
+ }, _class30);
10158
10834
 
10159
10835
  // src/features/waitlist/data/waitlist.fields.ts
10160
10836
  var WaitlistFields = /* @__PURE__ */ ((WaitlistFields2) => {
@@ -10206,7 +10882,7 @@ var PermissionMapping = class extends AbstractApiData {
10206
10882
  super.rehydrate(data);
10207
10883
  this._roleId = data.jsonApi.attributes.roleId;
10208
10884
  this._moduleId = data.jsonApi.attributes.moduleId;
10209
- this._permissions = _optionalChain([data, 'access', _265 => _265.jsonApi, 'access', _266 => _266.meta, 'optionalAccess', _267 => _267.permissions]);
10885
+ this._permissions = _optionalChain([data, 'access', _274 => _274.jsonApi, 'access', _275 => _275.meta, 'optionalAccess', _276 => _276.permissions]);
10210
10886
  return this;
10211
10887
  }
10212
10888
  };
@@ -10385,18 +11061,18 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
10385
11061
 
10386
11062
 
10387
11063
  // src/features/tokenusage/data/tokenusage-admin-breakdown.ts
10388
- var TokenUsageAdminBreakdown = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init60.call(this);_class28.prototype.__init61.call(this);_class28.prototype.__init62.call(this);_class28.prototype.__init63.call(this);_class28.prototype.__init64.call(this);_class28.prototype.__init65.call(this);_class28.prototype.__init66.call(this); }
11064
+ var TokenUsageAdminBreakdown = (_class31 = class extends AbstractApiData {constructor(...args28) { super(...args28); _class31.prototype.__init71.call(this);_class31.prototype.__init72.call(this);_class31.prototype.__init73.call(this);_class31.prototype.__init74.call(this);_class31.prototype.__init75.call(this);_class31.prototype.__init76.call(this);_class31.prototype.__init77.call(this); }
10389
11065
  static {
10390
11066
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminBreakdown");
10391
11067
  }
10392
- __init60() {this._label = ""}
11068
+ __init71() {this._label = ""}
10393
11069
 
10394
- __init61() {this._cost = 0}
10395
- __init62() {this._credits = 0}
10396
- __init63() {this._tokensIn = 0}
10397
- __init64() {this._tokensOut = 0}
10398
- __init65() {this._cached = 0}
10399
- __init66() {this._calls = 0}
11070
+ __init72() {this._cost = 0}
11071
+ __init73() {this._credits = 0}
11072
+ __init74() {this._tokensIn = 0}
11073
+ __init75() {this._tokensOut = 0}
11074
+ __init76() {this._cached = 0}
11075
+ __init77() {this._calls = 0}
10400
11076
 
10401
11077
 
10402
11078
 
@@ -10473,21 +11149,21 @@ var TokenUsageAdminBreakdown = (_class28 = class extends AbstractApiData {constr
10473
11149
  response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
10474
11150
  return response;
10475
11151
  }
10476
- }, _class28);
11152
+ }, _class31);
10477
11153
 
10478
11154
  // src/features/tokenusage/data/tokenusage-admin-summary.ts
10479
- var TokenUsageAdminSummary = (_class29 = class extends AbstractApiData {constructor(...args26) { super(...args26); _class29.prototype.__init67.call(this);_class29.prototype.__init68.call(this);_class29.prototype.__init69.call(this);_class29.prototype.__init70.call(this);_class29.prototype.__init71.call(this);_class29.prototype.__init72.call(this);_class29.prototype.__init73.call(this);_class29.prototype.__init74.call(this); }
11155
+ var TokenUsageAdminSummary = (_class32 = class extends AbstractApiData {constructor(...args29) { super(...args29); _class32.prototype.__init78.call(this);_class32.prototype.__init79.call(this);_class32.prototype.__init80.call(this);_class32.prototype.__init81.call(this);_class32.prototype.__init82.call(this);_class32.prototype.__init83.call(this);_class32.prototype.__init84.call(this);_class32.prototype.__init85.call(this); }
10480
11156
  static {
10481
11157
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminSummary");
10482
11158
  }
10483
- __init67() {this._scope = ""}
10484
- __init68() {this._window = ""}
10485
- __init69() {this._cost = 0}
10486
- __init70() {this._credits = 0}
10487
- __init71() {this._tokensIn = 0}
10488
- __init72() {this._tokensOut = 0}
10489
- __init73() {this._cached = 0}
10490
- __init74() {this._calls = 0}
11159
+ __init78() {this._scope = ""}
11160
+ __init79() {this._window = ""}
11161
+ __init80() {this._cost = 0}
11162
+ __init81() {this._credits = 0}
11163
+ __init82() {this._tokensIn = 0}
11164
+ __init83() {this._tokensOut = 0}
11165
+ __init84() {this._cached = 0}
11166
+ __init85() {this._calls = 0}
10491
11167
  get scope() {
10492
11168
  return this._scope;
10493
11169
  }
@@ -10545,21 +11221,21 @@ var TokenUsageAdminSummary = (_class29 = class extends AbstractApiData {construc
10545
11221
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
10546
11222
  return response;
10547
11223
  }
10548
- }, _class29);
11224
+ }, _class32);
10549
11225
 
10550
11226
  // src/features/tokenusage/data/tokenusage-admin-timeline.ts
10551
- var TokenUsageAdminTimeline = (_class30 = class extends AbstractApiData {constructor(...args27) { super(...args27); _class30.prototype.__init75.call(this);_class30.prototype.__init76.call(this);_class30.prototype.__init77.call(this);_class30.prototype.__init78.call(this);_class30.prototype.__init79.call(this);_class30.prototype.__init80.call(this);_class30.prototype.__init81.call(this);_class30.prototype.__init82.call(this); }
11227
+ var TokenUsageAdminTimeline = (_class33 = class extends AbstractApiData {constructor(...args30) { super(...args30); _class33.prototype.__init86.call(this);_class33.prototype.__init87.call(this);_class33.prototype.__init88.call(this);_class33.prototype.__init89.call(this);_class33.prototype.__init90.call(this);_class33.prototype.__init91.call(this);_class33.prototype.__init92.call(this);_class33.prototype.__init93.call(this); }
10552
11228
  static {
10553
11229
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminTimeline");
10554
11230
  }
10555
- __init75() {this._bucket = /* @__PURE__ */ new Date(0)}
10556
- __init76() {this._series = ""}
10557
- __init77() {this._cost = 0}
10558
- __init78() {this._credits = 0}
10559
- __init79() {this._tokensIn = 0}
10560
- __init80() {this._tokensOut = 0}
10561
- __init81() {this._cached = 0}
10562
- __init82() {this._calls = 0}
11231
+ __init86() {this._bucket = /* @__PURE__ */ new Date(0)}
11232
+ __init87() {this._series = ""}
11233
+ __init88() {this._cost = 0}
11234
+ __init89() {this._credits = 0}
11235
+ __init90() {this._tokensIn = 0}
11236
+ __init91() {this._tokensOut = 0}
11237
+ __init92() {this._cached = 0}
11238
+ __init93() {this._calls = 0}
10563
11239
  get bucket() {
10564
11240
  return this._bucket;
10565
11241
  }
@@ -10617,7 +11293,7 @@ var TokenUsageAdminTimeline = (_class30 = class extends AbstractApiData {constru
10617
11293
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
10618
11294
  return response;
10619
11295
  }
10620
- }, _class30);
11296
+ }, _class33);
10621
11297
 
10622
11298
  // src/features/tokenusage/tokenusage-admin.module.ts
10623
11299
  var TokenUsageAdminSummaryModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary, icon: _lucidereact.CoinsIcon }), "TokenUsageAdminSummaryModule");
@@ -10628,18 +11304,18 @@ var TokenUsageAdminBreakdownModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
10628
11304
 
10629
11305
 
10630
11306
  // src/features/tokenusage/data/tokenusage-report-breakdown.ts
10631
- var TokenUsageReportBreakdown = (_class31 = class extends AbstractApiData {constructor(...args28) { super(...args28); _class31.prototype.__init83.call(this);_class31.prototype.__init84.call(this);_class31.prototype.__init85.call(this);_class31.prototype.__init86.call(this);_class31.prototype.__init87.call(this);_class31.prototype.__init88.call(this);_class31.prototype.__init89.call(this); }
11307
+ var TokenUsageReportBreakdown = (_class34 = class extends AbstractApiData {constructor(...args31) { super(...args31); _class34.prototype.__init94.call(this);_class34.prototype.__init95.call(this);_class34.prototype.__init96.call(this);_class34.prototype.__init97.call(this);_class34.prototype.__init98.call(this);_class34.prototype.__init99.call(this);_class34.prototype.__init100.call(this); }
10632
11308
  static {
10633
11309
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportBreakdown");
10634
11310
  }
10635
- __init83() {this._label = ""}
11311
+ __init94() {this._label = ""}
10636
11312
 
10637
- __init84() {this._cost = 0}
10638
- __init85() {this._credits = 0}
10639
- __init86() {this._tokensIn = 0}
10640
- __init87() {this._tokensOut = 0}
10641
- __init88() {this._cached = 0}
10642
- __init89() {this._calls = 0}
11313
+ __init95() {this._cost = 0}
11314
+ __init96() {this._credits = 0}
11315
+ __init97() {this._tokensIn = 0}
11316
+ __init98() {this._tokensOut = 0}
11317
+ __init99() {this._cached = 0}
11318
+ __init100() {this._calls = 0}
10643
11319
  get label() {
10644
11320
  return this._label;
10645
11321
  }
@@ -10697,20 +11373,20 @@ var TokenUsageReportBreakdown = (_class31 = class extends AbstractApiData {const
10697
11373
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
10698
11374
  return response;
10699
11375
  }
10700
- }, _class31);
11376
+ }, _class34);
10701
11377
 
10702
11378
  // src/features/tokenusage/data/tokenusage-report-summary.ts
10703
- var TokenUsageReportSummary = (_class32 = class extends AbstractApiData {constructor(...args29) { super(...args29); _class32.prototype.__init90.call(this);_class32.prototype.__init91.call(this);_class32.prototype.__init92.call(this);_class32.prototype.__init93.call(this);_class32.prototype.__init94.call(this);_class32.prototype.__init95.call(this);_class32.prototype.__init96.call(this); }
11379
+ var TokenUsageReportSummary = (_class35 = class extends AbstractApiData {constructor(...args32) { super(...args32); _class35.prototype.__init101.call(this);_class35.prototype.__init102.call(this);_class35.prototype.__init103.call(this);_class35.prototype.__init104.call(this);_class35.prototype.__init105.call(this);_class35.prototype.__init106.call(this);_class35.prototype.__init107.call(this); }
10704
11380
  static {
10705
11381
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportSummary");
10706
11382
  }
10707
- __init90() {this._window = ""}
10708
- __init91() {this._cost = 0}
10709
- __init92() {this._credits = 0}
10710
- __init93() {this._tokensIn = 0}
10711
- __init94() {this._tokensOut = 0}
10712
- __init95() {this._cached = 0}
10713
- __init96() {this._calls = 0}
11383
+ __init101() {this._window = ""}
11384
+ __init102() {this._cost = 0}
11385
+ __init103() {this._credits = 0}
11386
+ __init104() {this._tokensIn = 0}
11387
+ __init105() {this._tokensOut = 0}
11388
+ __init106() {this._cached = 0}
11389
+ __init107() {this._calls = 0}
10714
11390
  get window() {
10715
11391
  return this._window;
10716
11392
  }
@@ -10763,21 +11439,21 @@ var TokenUsageReportSummary = (_class32 = class extends AbstractApiData {constru
10763
11439
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
10764
11440
  return response;
10765
11441
  }
10766
- }, _class32);
11442
+ }, _class35);
10767
11443
 
10768
11444
  // src/features/tokenusage/data/tokenusage-report-timeline.ts
10769
- var TokenUsageReportTimeline = (_class33 = class extends AbstractApiData {constructor(...args30) { super(...args30); _class33.prototype.__init97.call(this);_class33.prototype.__init98.call(this);_class33.prototype.__init99.call(this);_class33.prototype.__init100.call(this);_class33.prototype.__init101.call(this);_class33.prototype.__init102.call(this);_class33.prototype.__init103.call(this);_class33.prototype.__init104.call(this); }
11445
+ var TokenUsageReportTimeline = (_class36 = class extends AbstractApiData {constructor(...args33) { super(...args33); _class36.prototype.__init108.call(this);_class36.prototype.__init109.call(this);_class36.prototype.__init110.call(this);_class36.prototype.__init111.call(this);_class36.prototype.__init112.call(this);_class36.prototype.__init113.call(this);_class36.prototype.__init114.call(this);_class36.prototype.__init115.call(this); }
10770
11446
  static {
10771
11447
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportTimeline");
10772
11448
  }
10773
- __init97() {this._bucket = /* @__PURE__ */ new Date(0)}
10774
- __init98() {this._series = ""}
10775
- __init99() {this._cost = 0}
10776
- __init100() {this._credits = 0}
10777
- __init101() {this._tokensIn = 0}
10778
- __init102() {this._tokensOut = 0}
10779
- __init103() {this._cached = 0}
10780
- __init104() {this._calls = 0}
11449
+ __init108() {this._bucket = /* @__PURE__ */ new Date(0)}
11450
+ __init109() {this._series = ""}
11451
+ __init110() {this._cost = 0}
11452
+ __init111() {this._credits = 0}
11453
+ __init112() {this._tokensIn = 0}
11454
+ __init113() {this._tokensOut = 0}
11455
+ __init114() {this._cached = 0}
11456
+ __init115() {this._calls = 0}
10781
11457
  get bucket() {
10782
11458
  return this._bucket;
10783
11459
  }
@@ -10835,7 +11511,7 @@ var TokenUsageReportTimeline = (_class33 = class extends AbstractApiData {constr
10835
11511
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
10836
11512
  return response;
10837
11513
  }
10838
- }, _class33);
11514
+ }, _class36);
10839
11515
 
10840
11516
  // src/features/tokenusage/tokenusage.modules.ts
10841
11517
  var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
@@ -10863,15 +11539,15 @@ var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
10863
11539
 
10864
11540
 
10865
11541
  // src/features/analytics/data/analytics-breakdown.ts
10866
- var AnalyticsBreakdown = (_class34 = class extends AbstractApiData {constructor(...args31) { super(...args31); _class34.prototype.__init105.call(this);_class34.prototype.__init106.call(this);_class34.prototype.__init107.call(this);_class34.prototype.__init108.call(this);_class34.prototype.__init109.call(this); }
11542
+ var AnalyticsBreakdown = (_class37 = class extends AbstractApiData {constructor(...args34) { super(...args34); _class37.prototype.__init116.call(this);_class37.prototype.__init117.call(this);_class37.prototype.__init118.call(this);_class37.prototype.__init119.call(this);_class37.prototype.__init120.call(this); }
10867
11543
  static {
10868
11544
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsBreakdown");
10869
11545
  }
10870
- __init105() {this._dimension = ""}
10871
- __init106() {this._key = ""}
10872
- __init107() {this._visitors = 0}
10873
- __init108() {this._sessions = 0}
10874
- __init109() {this._pageViews = 0}
11546
+ __init116() {this._dimension = ""}
11547
+ __init117() {this._key = ""}
11548
+ __init118() {this._visitors = 0}
11549
+ __init119() {this._sessions = 0}
11550
+ __init120() {this._pageViews = 0}
10875
11551
  get dimension() {
10876
11552
  return this._dimension;
10877
11553
  }
@@ -10914,16 +11590,16 @@ var AnalyticsBreakdown = (_class34 = class extends AbstractApiData {constructor(
10914
11590
  if (data.pageViews !== void 0) response.data.attributes.pageViews = data.pageViews;
10915
11591
  return response;
10916
11592
  }
10917
- }, _class34);
11593
+ }, _class37);
10918
11594
 
10919
11595
  // src/features/analytics/data/analytics-event.ts
10920
11596
  var ANALYTICS_EVENT_TYPE = "analytics-events";
10921
- var AnalyticsEvent = (_class35 = class extends AbstractApiData {constructor(...args32) { super(...args32); _class35.prototype.__init110.call(this);_class35.prototype.__init111.call(this); }
11597
+ var AnalyticsEvent = (_class38 = class extends AbstractApiData {constructor(...args35) { super(...args35); _class38.prototype.__init121.call(this);_class38.prototype.__init122.call(this); }
10922
11598
  static {
10923
11599
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsEvent");
10924
11600
  }
10925
- __init110() {this._path = ""}
10926
- __init111() {this._section = ""}
11601
+ __init121() {this._path = ""}
11602
+ __init122() {this._section = ""}
10927
11603
  get path() {
10928
11604
  return this._path;
10929
11605
  }
@@ -10959,16 +11635,16 @@ var AnalyticsEvent = (_class35 = class extends AbstractApiData {constructor(...a
10959
11635
  if (data.screenWidth !== void 0) response.data.attributes.screenWidth = data.screenWidth;
10960
11636
  return response;
10961
11637
  }
10962
- }, _class35);
11638
+ }, _class38);
10963
11639
 
10964
11640
  // src/features/analytics/data/analytics-page-view.ts
10965
- var AnalyticsPageView = (_class36 = class extends AbstractApiData {constructor(...args33) { super(...args33); _class36.prototype.__init112.call(this);_class36.prototype.__init113.call(this);_class36.prototype.__init114.call(this); }
11641
+ var AnalyticsPageView = (_class39 = class extends AbstractApiData {constructor(...args36) { super(...args36); _class39.prototype.__init123.call(this);_class39.prototype.__init124.call(this);_class39.prototype.__init125.call(this); }
10966
11642
  static {
10967
11643
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsPageView");
10968
11644
  }
10969
- __init112() {this._path = ""}
10970
- __init113() {this._route = ""}
10971
- __init114() {this._section = ""}
11645
+ __init123() {this._path = ""}
11646
+ __init124() {this._route = ""}
11647
+ __init125() {this._section = ""}
10972
11648
  get path() {
10973
11649
  return this._path;
10974
11650
  }
@@ -11003,27 +11679,27 @@ var AnalyticsPageView = (_class36 = class extends AbstractApiData {constructor(.
11003
11679
  if (data.section !== void 0) response.data.attributes.section = data.section;
11004
11680
  return response;
11005
11681
  }
11006
- }, _class36);
11682
+ }, _class39);
11007
11683
 
11008
11684
  // src/features/analytics/data/analytics-session.ts
11009
- var AnalyticsSession = (_class37 = class extends AbstractApiData {constructor(...args34) { super(...args34); _class37.prototype.__init115.call(this);_class37.prototype.__init116.call(this);_class37.prototype.__init117.call(this);_class37.prototype.__init118.call(this);_class37.prototype.__init119.call(this);_class37.prototype.__init120.call(this);_class37.prototype.__init121.call(this);_class37.prototype.__init122.call(this); }
11685
+ var AnalyticsSession = (_class40 = class extends AbstractApiData {constructor(...args37) { super(...args37); _class40.prototype.__init126.call(this);_class40.prototype.__init127.call(this);_class40.prototype.__init128.call(this);_class40.prototype.__init129.call(this);_class40.prototype.__init130.call(this);_class40.prototype.__init131.call(this);_class40.prototype.__init132.call(this);_class40.prototype.__init133.call(this); }
11010
11686
  static {
11011
11687
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsSession");
11012
11688
  }
11013
- __init115() {this._visitorId = ""}
11014
- __init116() {this._consented = false}
11015
- __init117() {this._startedAt = /* @__PURE__ */ new Date(0)}
11016
- __init118() {this._lastSeenAt = /* @__PURE__ */ new Date(0)}
11017
- __init119() {this._pageViews = 0}
11018
- __init120() {this._section = ""}
11019
- __init121() {this._landingRoute = ""}
11689
+ __init126() {this._visitorId = ""}
11690
+ __init127() {this._consented = false}
11691
+ __init128() {this._startedAt = /* @__PURE__ */ new Date(0)}
11692
+ __init129() {this._lastSeenAt = /* @__PURE__ */ new Date(0)}
11693
+ __init130() {this._pageViews = 0}
11694
+ __init131() {this._section = ""}
11695
+ __init132() {this._landingRoute = ""}
11020
11696
 
11021
11697
 
11022
11698
 
11023
11699
 
11024
11700
 
11025
11701
 
11026
- __init122() {this._deviceType = ""}
11702
+ __init133() {this._deviceType = ""}
11027
11703
 
11028
11704
  get visitorId() {
11029
11705
  return this._visitorId;
@@ -11121,20 +11797,20 @@ var AnalyticsSession = (_class37 = class extends AbstractApiData {constructor(..
11121
11797
  }
11122
11798
  return response;
11123
11799
  }
11124
- }, _class37);
11800
+ }, _class40);
11125
11801
 
11126
11802
  // src/features/analytics/data/analytics-summary.ts
11127
- var AnalyticsSummary = (_class38 = class extends AbstractApiData {constructor(...args35) { super(...args35); _class38.prototype.__init123.call(this);_class38.prototype.__init124.call(this);_class38.prototype.__init125.call(this);_class38.prototype.__init126.call(this);_class38.prototype.__init127.call(this);_class38.prototype.__init128.call(this);_class38.prototype.__init129.call(this); }
11803
+ var AnalyticsSummary = (_class41 = class extends AbstractApiData {constructor(...args38) { super(...args38); _class41.prototype.__init134.call(this);_class41.prototype.__init135.call(this);_class41.prototype.__init136.call(this);_class41.prototype.__init137.call(this);_class41.prototype.__init138.call(this);_class41.prototype.__init139.call(this);_class41.prototype.__init140.call(this); }
11128
11804
  static {
11129
11805
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsSummary");
11130
11806
  }
11131
- __init123() {this._section = ""}
11132
- __init124() {this._window = ""}
11133
- __init125() {this._visitors = 0}
11134
- __init126() {this._sessions = 0}
11135
- __init127() {this._pageViews = 0}
11136
- __init128() {this._pagesPerSession = 0}
11137
- __init129() {this._consentShare = 0}
11807
+ __init134() {this._section = ""}
11808
+ __init135() {this._window = ""}
11809
+ __init136() {this._visitors = 0}
11810
+ __init137() {this._sessions = 0}
11811
+ __init138() {this._pageViews = 0}
11812
+ __init139() {this._pagesPerSession = 0}
11813
+ __init140() {this._consentShare = 0}
11138
11814
  get section() {
11139
11815
  return this._section;
11140
11816
  }
@@ -11187,18 +11863,18 @@ var AnalyticsSummary = (_class38 = class extends AbstractApiData {constructor(..
11187
11863
  if (data.consentShare !== void 0) response.data.attributes.consentShare = data.consentShare;
11188
11864
  return response;
11189
11865
  }
11190
- }, _class38);
11866
+ }, _class41);
11191
11867
 
11192
11868
  // src/features/analytics/data/analytics-timeline.ts
11193
- var AnalyticsTimeline = (_class39 = class extends AbstractApiData {constructor(...args36) { super(...args36); _class39.prototype.__init130.call(this);_class39.prototype.__init131.call(this);_class39.prototype.__init132.call(this);_class39.prototype.__init133.call(this);_class39.prototype.__init134.call(this); }
11869
+ var AnalyticsTimeline = (_class42 = class extends AbstractApiData {constructor(...args39) { super(...args39); _class42.prototype.__init141.call(this);_class42.prototype.__init142.call(this);_class42.prototype.__init143.call(this);_class42.prototype.__init144.call(this);_class42.prototype.__init145.call(this); }
11194
11870
  static {
11195
11871
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsTimeline");
11196
11872
  }
11197
- __init130() {this._bucket = /* @__PURE__ */ new Date(0)}
11198
- __init131() {this._section = ""}
11199
- __init132() {this._visitors = 0}
11200
- __init133() {this._sessions = 0}
11201
- __init134() {this._pageViews = 0}
11873
+ __init141() {this._bucket = /* @__PURE__ */ new Date(0)}
11874
+ __init142() {this._section = ""}
11875
+ __init143() {this._visitors = 0}
11876
+ __init144() {this._sessions = 0}
11877
+ __init145() {this._pageViews = 0}
11202
11878
  get bucket() {
11203
11879
  return this._bucket;
11204
11880
  }
@@ -11241,7 +11917,7 @@ var AnalyticsTimeline = (_class39 = class extends AbstractApiData {constructor(.
11241
11917
  if (data.pageViews !== void 0) response.data.attributes.pageViews = data.pageViews;
11242
11918
  return response;
11243
11919
  }
11244
- }, _class39);
11920
+ }, _class42);
11245
11921
 
11246
11922
  // src/features/analytics/analytics.modules.ts
11247
11923
  var analyticsModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
@@ -11281,11 +11957,11 @@ function getTokenUsageCurrency() {
11281
11957
  _chunk7QVYU63Ejs.__name.call(void 0, getTokenUsageCurrency, "getTokenUsageCurrency");
11282
11958
 
11283
11959
  // src/features/audit-log/data/audit-log.ts
11284
- var AuditLog = (_class40 = class extends AbstractApiData {constructor(...args37) { super(...args37); _class40.prototype.__init135.call(this); }
11960
+ var AuditLog = (_class43 = class extends AbstractApiData {constructor(...args40) { super(...args40); _class43.prototype.__init146.call(this); }
11285
11961
  static {
11286
11962
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
11287
11963
  }
11288
- __init135() {this._kind = "audit"}
11964
+ __init146() {this._kind = "audit"}
11289
11965
 
11290
11966
 
11291
11967
 
@@ -11332,7 +12008,7 @@ var AuditLog = (_class40 = class extends AbstractApiData {constructor(...args37)
11332
12008
  createJsonApi() {
11333
12009
  throw new Error("AuditLog is read-only");
11334
12010
  }
11335
- }, _class40);
12011
+ }, _class43);
11336
12012
 
11337
12013
  // src/features/audit-log/data/audit-log.service.ts
11338
12014
  var AuditLogService = class extends AbstractService {
@@ -11666,5 +12342,26 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
11666
12342
 
11667
12343
 
11668
12344
 
11669
- exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.configureI18n = configureI18n; exports.useI18nRouter = useI18nRouter; exports.useI18nTranslations = useI18nTranslations; exports.getI18nLink = getI18nLink; exports.useI18nLocale = useI18nLocale; exports.useI18nDateFnsLocale = useI18nDateFnsLocale; exports.getI18nSupportedLocales = getI18nSupportedLocales; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.mergeMessages = mergeMessages; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.dateFormatLocale = dateFormatLocale; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.EmailAutomation = EmailAutomation; exports.EmailAutomationModule = EmailAutomationModule; exports.EmailAutomationStep = EmailAutomationStep; exports.EmailAutomationStepModule = EmailAutomationStepModule; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EmailAutomationEnrollment = EmailAutomationEnrollment; exports.EmailAutomationEnrollmentModule = EmailAutomationEnrollmentModule; exports.EmailAutomationTrigger = EmailAutomationTrigger; exports.EmailAutomationTriggerModule = EmailAutomationTriggerModule; exports.EmailAutomationService = EmailAutomationService; exports.EmailAutomationStepService = EmailAutomationStepService; exports.EmailAutomationEnrollmentService = EmailAutomationEnrollmentService; exports.EmailAutomationFields = EmailAutomationFields; exports.EmailAutomationEnrollmentFields = EmailAutomationEnrollmentFields; exports.BlogCategory = BlogCategory; exports.BlogCategoryTranslation = BlogCategoryTranslation; exports.BlogPost = BlogPost; exports.BlogPostTranslation = BlogPostTranslation; exports.BLOG_LIST_LAYOUTS = BLOG_LIST_LAYOUTS; exports.BLOG_POST_STATUSES = BLOG_POST_STATUSES; exports.BLOG_TRANSLATION_SOURCES = BLOG_TRANSLATION_SOURCES; exports.BLOG_SETTINGS_ID = BLOG_SETTINGS_ID; exports.BLOG_MODULE_ID = BLOG_MODULE_ID; exports.BLOG_UPLOAD_ROOT = BLOG_UPLOAD_ROOT; exports.BLOG_POST_UPLOAD_PREFIX = BLOG_POST_UPLOAD_PREFIX; exports.BLOG_CATEGORY_UPLOAD_PREFIX = BLOG_CATEGORY_UPLOAD_PREFIX; exports.BLOG_PUBLIC_PREFIX = BLOG_PUBLIC_PREFIX; exports.BLOG_ACTION = BLOG_ACTION; exports.BlogSettings = BlogSettings; exports.BlogPostModule = BlogPostModule; exports.BlogPostTranslationModule = BlogPostTranslationModule; exports.BlogCategoryModule = BlogCategoryModule; exports.BlogCategoryTranslationModule = BlogCategoryTranslationModule; exports.BlogSettingsModule = BlogSettingsModule; exports.BlogPostService = BlogPostService; exports.BlogPostTranslationService = BlogPostTranslationService; exports.BlogCategoryService = BlogCategoryService; exports.BlogCategoryTranslationService = BlogCategoryTranslationService; exports.BlogSettingsService = BlogSettingsService; exports.BlogPostFields = BlogPostFields; exports.BlogCategoryFields = BlogCategoryFields; exports.HandbookPage = HandbookPage; exports.HandbookPageModule = HandbookPageModule; exports.HandbookSection = HandbookSection; exports.HandbookSectionModule = HandbookSectionModule; exports.HandbookThreadMessage = HandbookThreadMessage; exports.HandbookThreadMessageModule = HandbookThreadMessageModule; exports.HandbookThread = HandbookThread; exports.HandbookThreadModule = HandbookThreadModule; exports.handbookPageTitle = handbookPageTitle; exports.handbookPageSummary = handbookPageSummary; exports.handbookPageContent = handbookPageContent; exports.handbookSectionTitle = handbookSectionTitle; exports.handbookSectionSummary = handbookSectionSummary; exports.HandbookPageFields = HandbookPageFields; exports.HandbookPageService = HandbookPageService; exports.HandbookSectionService = HandbookSectionService; exports.HandbookThreadMessageService = HandbookThreadMessageService; exports.HandbookThreadService = HandbookThreadService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistFields = WaitlistFields; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.AnalyticsBreakdown = AnalyticsBreakdown; exports.AnalyticsEvent = AnalyticsEvent; exports.AnalyticsPageView = AnalyticsPageView; exports.AnalyticsSession = AnalyticsSession; exports.AnalyticsSummary = AnalyticsSummary; exports.AnalyticsTimeline = AnalyticsTimeline; exports.analyticsModules = analyticsModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
11670
- //# sourceMappingURL=chunk-G6UE6MEP.js.map
12345
+
12346
+
12347
+
12348
+
12349
+
12350
+
12351
+
12352
+
12353
+
12354
+
12355
+
12356
+
12357
+
12358
+
12359
+
12360
+
12361
+
12362
+
12363
+
12364
+
12365
+
12366
+ exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.configureI18n = configureI18n; exports.useI18nRouter = useI18nRouter; exports.useI18nTranslations = useI18nTranslations; exports.getI18nLink = getI18nLink; exports.useI18nLocale = useI18nLocale; exports.useI18nDateFnsLocale = useI18nDateFnsLocale; exports.getI18nSupportedLocales = getI18nSupportedLocales; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.mergeMessages = mergeMessages; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.dateFormatLocale = dateFormatLocale; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.StripeCoupon = StripeCoupon; exports.StripeCouponFields = StripeCouponFields; exports.STRIPE_COUPON_REFRESH_SEGMENT = STRIPE_COUPON_REFRESH_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = STRIPE_COUPON_DETAIL_PAGE_URL; exports.StripeCouponModule = StripeCouponModule; exports.StripeCouponService = StripeCouponService; exports.StripeCouponCode = StripeCouponCode; exports.StripeCouponCodeFields = StripeCouponCodeFields; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.StripeCouponCodeModule = StripeCouponCodeModule; exports.StripeCouponCodeService = StripeCouponCodeService; exports.StripeCouponOffer = StripeCouponOffer; exports.couponPlacesLeft = couponPlacesLeft; exports.couponPlacesTotal = couponPlacesTotal; exports.DEFAULT_BILLING_LOCALE = DEFAULT_BILLING_LOCALE; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.formatFixed = formatFixed; exports.formatCouponDiscount = formatCouponDiscount; exports.toPromotionCodeResult = toPromotionCodeResult; exports.StripeCouponOfferModule = StripeCouponOfferModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.EmailAutomation = EmailAutomation; exports.EmailAutomationModule = EmailAutomationModule; exports.EmailAutomationStep = EmailAutomationStep; exports.EmailAutomationStepModule = EmailAutomationStepModule; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EmailAutomationEnrollment = EmailAutomationEnrollment; exports.EmailAutomationEnrollmentModule = EmailAutomationEnrollmentModule; exports.EmailAutomationTrigger = EmailAutomationTrigger; exports.EmailAutomationTriggerModule = EmailAutomationTriggerModule; exports.EmailAutomationService = EmailAutomationService; exports.EmailAutomationStepService = EmailAutomationStepService; exports.EmailAutomationEnrollmentService = EmailAutomationEnrollmentService; exports.EmailAutomationFields = EmailAutomationFields; exports.EmailAutomationEnrollmentFields = EmailAutomationEnrollmentFields; exports.BlogCategory = BlogCategory; exports.BlogCategoryTranslation = BlogCategoryTranslation; exports.BlogPost = BlogPost; exports.BlogPostTranslation = BlogPostTranslation; exports.BLOG_LIST_LAYOUTS = BLOG_LIST_LAYOUTS; exports.BLOG_POST_STATUSES = BLOG_POST_STATUSES; exports.BLOG_TRANSLATION_SOURCES = BLOG_TRANSLATION_SOURCES; exports.BLOG_SETTINGS_ID = BLOG_SETTINGS_ID; exports.BLOG_MODULE_ID = BLOG_MODULE_ID; exports.BLOG_UPLOAD_ROOT = BLOG_UPLOAD_ROOT; exports.BLOG_POST_UPLOAD_PREFIX = BLOG_POST_UPLOAD_PREFIX; exports.BLOG_CATEGORY_UPLOAD_PREFIX = BLOG_CATEGORY_UPLOAD_PREFIX; exports.BLOG_PUBLIC_PREFIX = BLOG_PUBLIC_PREFIX; exports.BLOG_ACTION = BLOG_ACTION; exports.BlogSettings = BlogSettings; exports.BlogPostModule = BlogPostModule; exports.BlogPostTranslationModule = BlogPostTranslationModule; exports.BlogCategoryModule = BlogCategoryModule; exports.BlogCategoryTranslationModule = BlogCategoryTranslationModule; exports.BlogSettingsModule = BlogSettingsModule; exports.BlogPostService = BlogPostService; exports.BlogPostTranslationService = BlogPostTranslationService; exports.BlogCategoryService = BlogCategoryService; exports.BlogCategoryTranslationService = BlogCategoryTranslationService; exports.BlogSettingsService = BlogSettingsService; exports.BlogPostFields = BlogPostFields; exports.BlogCategoryFields = BlogCategoryFields; exports.HandbookPage = HandbookPage; exports.HandbookPageModule = HandbookPageModule; exports.HandbookSection = HandbookSection; exports.HandbookSectionModule = HandbookSectionModule; exports.HandbookThreadMessage = HandbookThreadMessage; exports.HandbookThreadMessageModule = HandbookThreadMessageModule; exports.HandbookThread = HandbookThread; exports.HandbookThreadModule = HandbookThreadModule; exports.handbookPageTitle = handbookPageTitle; exports.handbookPageSummary = handbookPageSummary; exports.handbookPageContent = handbookPageContent; exports.handbookSectionTitle = handbookSectionTitle; exports.handbookSectionSummary = handbookSectionSummary; exports.HandbookPageFields = HandbookPageFields; exports.HandbookPageService = HandbookPageService; exports.HandbookSectionService = HandbookSectionService; exports.HandbookThreadMessageService = HandbookThreadMessageService; exports.HandbookThreadService = HandbookThreadService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistFields = WaitlistFields; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.AnalyticsBreakdown = AnalyticsBreakdown; exports.AnalyticsEvent = AnalyticsEvent; exports.AnalyticsPageView = AnalyticsPageView; exports.AnalyticsSession = AnalyticsSession; exports.AnalyticsSummary = AnalyticsSummary; exports.AnalyticsTimeline = AnalyticsTimeline; exports.analyticsModules = analyticsModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
12367
+ //# sourceMappingURL=chunk-5TH2DSAH.js.map