@carlonicora/nextjs-jsonapi 1.73.0 → 1.75.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 (105) hide show
  1. package/dist/{ApiDataInterface-DPP8s46n.d.mts → ApiDataInterface-BcZeXy5X.d.mts} +1 -0
  2. package/dist/{ApiDataInterface-DPP8s46n.d.ts → ApiDataInterface-BcZeXy5X.d.ts} +1 -0
  3. package/dist/{ApiResponseInterface-CAIAeP5d.d.ts → ApiResponseInterface-CWLvSCvS.d.ts} +1 -1
  4. package/dist/{ApiResponseInterface-zeewugD7.d.mts → ApiResponseInterface-rsXRL_Hn.d.mts} +1 -1
  5. package/dist/{AuthComponent-Di8DsZ2I.d.ts → AuthComponent-Blbs06ud.d.ts} +2 -2
  6. package/dist/{AuthComponent-DXe3kPzb.d.mts → AuthComponent-huIaK5rm.d.mts} +2 -2
  7. package/dist/{BlockNoteEditor-MZ6G4XN4.mjs → BlockNoteEditor-NJMTHPO4.mjs} +4 -4
  8. package/dist/{BlockNoteEditor-ETTYTXDX.js → BlockNoteEditor-SLT4VOLL.js} +14 -14
  9. package/dist/{BlockNoteEditor-ETTYTXDX.js.map → BlockNoteEditor-SLT4VOLL.js.map} +1 -1
  10. package/dist/{HowToInterface-NaqSG9sE.d.ts → HowToInterface-BKhnkzBp.d.ts} +1 -1
  11. package/dist/{HowToInterface-DtVWAE1s.d.mts → HowToInterface-Cj8OuQFf.d.mts} +1 -1
  12. package/dist/{ModulePathsInterface-49EWvbWy.d.mts → ModulePathsInterface-BrdqgteS.d.mts} +1 -1
  13. package/dist/{ModulePathsInterface-wVS5Raa4.d.ts → ModulePathsInterface-DJKs7s_s.d.ts} +1 -1
  14. package/dist/{auth.interface-C4uJzBec.d.mts → auth.interface-Bdq7-8iV.d.mts} +2 -2
  15. package/dist/{auth.interface-BTco8PWs.d.ts → auth.interface-CQJ6A2Cj.d.ts} +2 -2
  16. package/dist/billing/index.d.mts +3 -3
  17. package/dist/billing/index.d.ts +3 -3
  18. package/dist/billing/index.js +346 -346
  19. package/dist/billing/index.mjs +3 -3
  20. package/dist/{chunk-OPUWDWFH.js → chunk-DTE6RZXF.js} +1208 -1128
  21. package/dist/chunk-DTE6RZXF.js.map +1 -0
  22. package/dist/{chunk-QLICTZL7.js → chunk-FKLP4NED.js} +134 -129
  23. package/dist/chunk-FKLP4NED.js.map +1 -0
  24. package/dist/{chunk-HP6AJBWE.mjs → chunk-JOJZRGZL.mjs} +2 -2
  25. package/dist/{chunk-5QTDS6V7.js → chunk-OTZEXASK.js} +11 -11
  26. package/dist/{chunk-5QTDS6V7.js.map → chunk-OTZEXASK.js.map} +1 -1
  27. package/dist/{chunk-6O3YOOQM.mjs → chunk-Q7JKB777.mjs} +2383 -2303
  28. package/dist/chunk-Q7JKB777.mjs.map +1 -0
  29. package/dist/{chunk-73ANSE3J.mjs → chunk-XI35ALWY.mjs} +6 -1
  30. package/dist/chunk-XI35ALWY.mjs.map +1 -0
  31. package/dist/client/index.d.mts +10 -10
  32. package/dist/client/index.d.ts +10 -10
  33. package/dist/client/index.js +4 -4
  34. package/dist/client/index.mjs +3 -3
  35. package/dist/components/index.d.mts +39 -13
  36. package/dist/components/index.d.ts +39 -13
  37. package/dist/components/index.js +6 -4
  38. package/dist/components/index.js.map +1 -1
  39. package/dist/components/index.mjs +5 -3
  40. package/dist/{config-n0lfSf27.d.ts → config-B3jKt9P7.d.ts} +1 -1
  41. package/dist/{config-Bmr_0qTn.d.mts → config-DkHF61xA.d.mts} +1 -1
  42. package/dist/contexts/index.d.mts +5 -5
  43. package/dist/contexts/index.d.ts +5 -5
  44. package/dist/contexts/index.js +4 -4
  45. package/dist/contexts/index.mjs +3 -3
  46. package/dist/core/index.d.mts +19 -17
  47. package/dist/core/index.d.ts +19 -17
  48. package/dist/core/index.js +2 -2
  49. package/dist/core/index.mjs +1 -1
  50. package/dist/{feature.interface-CIWxo8NP.d.ts → feature.interface-BO25VLlx.d.ts} +1 -1
  51. package/dist/{feature.interface-BxFFOPNq.d.mts → feature.interface-CXb1-vNq.d.mts} +1 -1
  52. package/dist/index.d.mts +17 -17
  53. package/dist/index.d.ts +17 -17
  54. package/dist/index.js +3 -3
  55. package/dist/index.mjs +2 -2
  56. package/dist/{notification.interface-DrHu_1MM.d.mts → notification.interface-DG6obXUH.d.mts} +3 -2
  57. package/dist/{notification.interface-DYDZENx2.d.ts → notification.interface-DcSuc9CL.d.ts} +3 -2
  58. package/dist/{oauth.interface-vL7za9Bz.d.ts → oauth.interface-B6xmfDzK.d.ts} +1 -1
  59. package/dist/{oauth.interface-DsZ5ecSX.d.mts → oauth.interface-o5FLpiN7.d.mts} +1 -1
  60. package/dist/{s3.service-TsN2unZr.d.mts → s3.service-DGilbikH.d.mts} +4 -4
  61. package/dist/{s3.service-DK2KKXbR.d.ts → s3.service-DjwEQJPe.d.ts} +4 -4
  62. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.d.ts.map +1 -1
  63. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js +14 -120
  64. package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js.map +1 -1
  65. package/dist/server/index.d.mts +6 -6
  66. package/dist/server/index.d.ts +6 -6
  67. package/dist/server/index.js +3 -3
  68. package/dist/server/index.mjs +1 -1
  69. package/dist/{stripe-promotion-code.interface-BcJty0rv.d.ts → stripe-promotion-code.interface-C3qqh3mi.d.ts} +2 -2
  70. package/dist/{stripe-promotion-code.interface-Dnm2DJKQ.d.mts → stripe-promotion-code.interface-ClZ7DxS9.d.mts} +2 -2
  71. package/dist/testing/index.d.mts +2 -2
  72. package/dist/testing/index.d.ts +2 -2
  73. package/dist/testing/index.js +5 -1
  74. package/dist/testing/index.js.map +1 -1
  75. package/dist/testing/index.mjs +5 -1
  76. package/dist/testing/index.mjs.map +1 -1
  77. package/dist/{useRbacState-BYaSdA78.d.ts → useRbacState-C88O-5L8.d.ts} +3 -3
  78. package/dist/{useRbacState-CQEJ_ysV.d.mts → useRbacState-mqYiRp3J.d.mts} +3 -3
  79. package/dist/{useSocket-Cjt_qvkI.d.ts → useSocket-8eUtnL7J.d.ts} +1 -1
  80. package/dist/{useSocket-VAGetcT3.d.mts → useSocket-CmzVtg32.d.mts} +1 -1
  81. package/package.json +1 -1
  82. package/scripts/generate-web-module/templates/components/multi-selector.template.ts +14 -120
  83. package/src/client/hooks/__tests__/useRehydration.test.ts +3 -0
  84. package/src/components/forms/EntityMultiSelector.tsx +325 -0
  85. package/src/components/forms/index.ts +1 -0
  86. package/src/components/navigations/RecentPagesNavigator.tsx +16 -13
  87. package/src/core/abstracts/AbstractApiData.ts +10 -0
  88. package/src/core/abstracts/__tests__/identifier.spec.ts +117 -0
  89. package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +3 -0
  90. package/src/core/factories/__tests__/RehydrationFactory.test.ts +3 -0
  91. package/src/core/interfaces/ApiDataInterface.ts +1 -0
  92. package/src/core/registry/__tests__/DataClassRegistry.getByJsonApiType.spec.ts +6 -0
  93. package/src/core/registry/__tests__/DataClassRegistry.test.ts +3 -0
  94. package/src/core/registry/__tests__/ModuleRegistrar.test.ts +6 -0
  95. package/src/features/how-to/components/forms/HowToMultiSelector.tsx +14 -120
  96. package/src/features/rbac/hooks/useRbacState.test.ts +2 -0
  97. package/src/features/user/components/forms/UserMultiSelect.tsx +34 -181
  98. package/src/permissions/types.ts +1 -0
  99. package/src/testing/factories/createMockApiData.ts +7 -0
  100. package/dist/chunk-6O3YOOQM.mjs.map +0 -1
  101. package/dist/chunk-73ANSE3J.mjs.map +0 -1
  102. package/dist/chunk-OPUWDWFH.js.map +0 -1
  103. package/dist/chunk-QLICTZL7.js.map +0 -1
  104. /package/dist/{BlockNoteEditor-MZ6G4XN4.mjs.map → BlockNoteEditor-NJMTHPO4.mjs.map} +0 -0
  105. /package/dist/{chunk-HP6AJBWE.mjs.map → chunk-JOJZRGZL.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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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;
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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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;
2
2
 
3
3
  var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
4
4
 
@@ -40,10 +40,15 @@ var RehydrationFactory = class {
40
40
  };
41
41
 
42
42
  // src/core/abstracts/AbstractApiData.ts
43
- var AbstractApiData = class {
43
+ var AbstractApiData = (_class = class {
44
44
  static {
45
45
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AbstractApiData");
46
46
  }
47
+ static __initStatic() {this.identifierFields = ["name"]}
48
+ get identifier() {
49
+ const fields = this.constructor.identifierFields;
50
+ return fields.map((field) => _optionalChain([this, 'access', _2 => _2._jsonApi, 'optionalAccess', _3 => _3.attributes, 'optionalAccess', _4 => _4[field]])).filter((v) => v != null && v !== "").join(" ");
51
+ }
47
52
 
48
53
 
49
54
 
@@ -124,7 +129,7 @@ var AbstractApiData = class {
124
129
  * Determines the correct model class based on the JSON:API type in included data.
125
130
  */
126
131
  _readIncludedPolymorphic(data, relationshipKey, candidateModules) {
127
- if (!_optionalChain([data, 'access', _2 => _2.included, 'optionalAccess', _3 => _3.length]) || !_optionalChain([data, 'access', _4 => _4.jsonApi, 'access', _5 => _5.relationships, 'optionalAccess', _6 => _6[relationshipKey], 'optionalAccess', _7 => _7.data])) {
132
+ if (!_optionalChain([data, 'access', _5 => _5.included, 'optionalAccess', _6 => _6.length]) || !_optionalChain([data, 'access', _7 => _7.jsonApi, 'access', _8 => _8.relationships, 'optionalAccess', _9 => _9[relationshipKey], 'optionalAccess', _10 => _10.data])) {
128
133
  return void 0;
129
134
  }
130
135
  const relData = data.jsonApi.relationships[relationshipKey].data;
@@ -233,12 +238,12 @@ var AbstractApiData = class {
233
238
  this._included = data.included;
234
239
  this._type = this._jsonApi.type;
235
240
  this._id = this._jsonApi.id;
236
- this._createdAt = _optionalChain([this, 'access', _8 => _8._jsonApi, 'access', _9 => _9.meta, 'optionalAccess', _10 => _10.createdAt]) !== void 0 ? new Date(this._jsonApi.meta.createdAt) : void 0;
237
- this._updatedAt = _optionalChain([this, 'access', _11 => _11._jsonApi, 'access', _12 => _12.meta, 'optionalAccess', _13 => _13.updatedAt]) !== void 0 ? new Date(this._jsonApi.meta.updatedAt) : void 0;
238
- this._self = _nullishCoalesce(_optionalChain([this, 'access', _14 => _14._jsonApi, 'access', _15 => _15.links, 'optionalAccess', _16 => _16.self]), () => ( void 0));
241
+ this._createdAt = _optionalChain([this, 'access', _11 => _11._jsonApi, 'access', _12 => _12.meta, 'optionalAccess', _13 => _13.createdAt]) !== void 0 ? new Date(this._jsonApi.meta.createdAt) : void 0;
242
+ this._updatedAt = _optionalChain([this, 'access', _14 => _14._jsonApi, 'access', _15 => _15.meta, 'optionalAccess', _16 => _16.updatedAt]) !== void 0 ? new Date(this._jsonApi.meta.updatedAt) : void 0;
243
+ this._self = _nullishCoalesce(_optionalChain([this, 'access', _17 => _17._jsonApi, 'access', _18 => _18.links, 'optionalAccess', _19 => _19.self]), () => ( void 0));
239
244
  return this;
240
245
  }
241
- };
246
+ }, _class.__initStatic(), _class);
242
247
 
243
248
  // src/core/abstracts/AbstractService.ts
244
249
  var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
@@ -401,7 +406,7 @@ var AbstractService = class {
401
406
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
402
407
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
403
408
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
404
- if (_optionalChain([apiResponse, 'access', _17 => _17.meta, 'optionalAccess', _18 => _18.total]) !== void 0) {
409
+ if (_optionalChain([apiResponse, 'access', _20 => _20.meta, 'optionalAccess', _21 => _21.total]) !== void 0) {
405
410
  lastApiTotal = apiResponse.meta.total;
406
411
  if (params.total) params.total.total = apiResponse.meta.total;
407
412
  }
@@ -536,7 +541,7 @@ function configureClientJsonApi(config) {
536
541
  }
537
542
  _chunk7QVYU63Ejs.__name.call(void 0, configureClientJsonApi, "configureClientJsonApi");
538
543
  function getClientApiUrl() {
539
- if (_optionalChain([_clientConfig, 'optionalAccess', _19 => _19.apiUrl])) {
544
+ if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.apiUrl])) {
540
545
  return _clientConfig.apiUrl;
541
546
  }
542
547
  const envUrl = process.env.NEXT_PUBLIC_API_URL;
@@ -549,7 +554,7 @@ function getClientApiUrl() {
549
554
  }
550
555
  _chunk7QVYU63Ejs.__name.call(void 0, getClientApiUrl, "getClientApiUrl");
551
556
  function getClientAppUrl() {
552
- if (_optionalChain([_clientConfig, 'optionalAccess', _20 => _20.appUrl])) {
557
+ if (_optionalChain([_clientConfig, 'optionalAccess', _23 => _23.appUrl])) {
553
558
  return _clientConfig.appUrl;
554
559
  }
555
560
  const envUrl = process.env.NEXT_PUBLIC_ADDRESS;
@@ -562,11 +567,11 @@ function getClientAppUrl() {
562
567
  }
563
568
  _chunk7QVYU63Ejs.__name.call(void 0, getClientAppUrl, "getClientAppUrl");
564
569
  function getClientTrackablePages() {
565
- return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _21 => _21.trackablePages]), () => ( []));
570
+ return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _24 => _24.trackablePages]), () => ( []));
566
571
  }
567
572
  _chunk7QVYU63Ejs.__name.call(void 0, getClientTrackablePages, "getClientTrackablePages");
568
573
  function runClientBootstrapper() {
569
- if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.bootstrapper])) {
574
+ if (_optionalChain([_clientConfig, 'optionalAccess', _25 => _25.bootstrapper])) {
570
575
  _clientConfig.bootstrapper();
571
576
  }
572
577
  }
@@ -585,7 +590,7 @@ async function ClientJsonApiGet(params) {
585
590
  token,
586
591
  companyId: params.companyId,
587
592
  language: params.language,
588
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _23 => _23.additionalHeaders])
593
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
589
594
  });
590
595
  return _chunk4MN547K7js.translateResponse.call(void 0, {
591
596
  classKey: params.classKey,
@@ -618,7 +623,7 @@ async function ClientJsonApiPost(params) {
618
623
  files: params.files,
619
624
  companyId: params.companyId,
620
625
  language: params.language,
621
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _24 => _24.additionalHeaders])
626
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
622
627
  });
623
628
  return _chunk4MN547K7js.translateResponse.call(void 0, {
624
629
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -645,7 +650,7 @@ async function ClientJsonApiPut(params) {
645
650
  files: params.files,
646
651
  companyId: params.companyId,
647
652
  language: params.language,
648
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _25 => _25.additionalHeaders])
653
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _28 => _28.additionalHeaders])
649
654
  });
650
655
  return _chunk4MN547K7js.translateResponse.call(void 0, {
651
656
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -672,7 +677,7 @@ async function ClientJsonApiPatch(params) {
672
677
  files: params.files,
673
678
  companyId: params.companyId,
674
679
  language: params.language,
675
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
680
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _29 => _29.additionalHeaders])
676
681
  });
677
682
  return _chunk4MN547K7js.translateResponse.call(void 0, {
678
683
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -691,7 +696,7 @@ async function ClientJsonApiDelete(params) {
691
696
  token,
692
697
  companyId: params.companyId,
693
698
  language: params.language,
694
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
699
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _30 => _30.additionalHeaders])
695
700
  });
696
701
  return _chunk4MN547K7js.translateResponse.call(void 0, {
697
702
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -849,7 +854,7 @@ var ClientAbstractService = class {
849
854
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
850
855
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
851
856
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
852
- if (_optionalChain([apiResponse, 'access', _28 => _28.meta, 'optionalAccess', _29 => _29.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
857
+ if (_optionalChain([apiResponse, 'access', _31 => _31.meta, 'optionalAccess', _32 => _32.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
853
858
  return apiResponse.data;
854
859
  }
855
860
  /**
@@ -879,11 +884,11 @@ var ClientAbstractService = class {
879
884
  };
880
885
 
881
886
  // src/core/registry/ModuleRegistrar.ts
882
- var ModuleRegistrar = (_class = class {
887
+ var ModuleRegistrar = (_class2 = class {
883
888
  static {
884
889
  _chunk7QVYU63Ejs.__name.call(void 0, this, "ModuleRegistrar");
885
890
  }
886
- static __initStatic() {this._isBootstrapped = false}
891
+ static __initStatic2() {this._isBootstrapped = false}
887
892
  /**
888
893
  * Bootstrap the registry from a Modules class.
889
894
  * Automatically detects static getters and registers their models.
@@ -910,7 +915,7 @@ var ModuleRegistrar = (_class = class {
910
915
  this._isBootstrapped = false;
911
916
  _chunk4MN547K7js.DataClassRegistry.clear();
912
917
  }
913
- }, _class.__initStatic(), _class);
918
+ }, _class2.__initStatic2(), _class2);
914
919
 
915
920
  // src/core/registry/ModuleRegistry.ts
916
921
  var MODULES_KEY = /* @__PURE__ */ Symbol.for("nextjs-jsonapi:modules");
@@ -1270,8 +1275,8 @@ var entityObjectSchema = _zod.z.object({
1270
1275
  // src/utils/getInitials.ts
1271
1276
  function getInitials(firstOrName, lastName) {
1272
1277
  if (lastName !== void 0) {
1273
- const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31(), 'optionalAccess', _32 => _32[0]]), () => ( ""));
1274
- const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _33 => _33.trim, 'call', _34 => _34(), 'optionalAccess', _35 => _35[0]]), () => ( ""));
1278
+ const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _33 => _33.trim, 'call', _34 => _34(), 'optionalAccess', _35 => _35[0]]), () => ( ""));
1279
+ const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _36 => _36.trim, 'call', _37 => _37(), 'optionalAccess', _38 => _38[0]]), () => ( ""));
1275
1280
  if (first && last) return (first + last).toUpperCase();
1276
1281
  return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
1277
1282
  }
@@ -1285,11 +1290,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, getInitials, "getInitials");
1285
1290
 
1286
1291
  // src/utils/blocknote-diff.util.ts
1287
1292
  var _uuid = require('uuid');
1288
- var BlockNoteDiffUtil = (_class2 = class {
1293
+ var BlockNoteDiffUtil = (_class3 = class {
1289
1294
  static {
1290
1295
  _chunk7QVYU63Ejs.__name.call(void 0, this, "BlockNoteDiffUtil");
1291
1296
  }
1292
- static __initStatic2() {this.DEFAULT_OPTIONS = {
1297
+ static __initStatic3() {this.DEFAULT_OPTIONS = {
1293
1298
  ignoreIds: false,
1294
1299
  compareContent: true,
1295
1300
  similarityThreshold: 0.8
@@ -1858,7 +1863,7 @@ var BlockNoteDiffUtil = (_class2 = class {
1858
1863
  const similarity = 1 - distance / maxLen;
1859
1864
  return similarity > 0.7;
1860
1865
  }
1861
- }, _class2.__initStatic2(), _class2);
1866
+ }, _class3.__initStatic3(), _class3);
1862
1867
 
1863
1868
  // src/utils/blocknote-word-diff-renderer.util.ts
1864
1869
 
@@ -1876,14 +1881,14 @@ var BlockNoteWordDiffRendererUtil = class {
1876
1881
  return diffBlocks.map((block) => {
1877
1882
  const updatedBlock = { ...block };
1878
1883
  if (updatedBlock.diffId) {
1879
- updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(updatedBlock.diffId)]) || false;
1880
- updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _38 => _38.has, 'call', _39 => _39(updatedBlock.diffId)]) || false;
1884
+ updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _39 => _39.has, 'call', _40 => _40(updatedBlock.diffId)]) || false;
1885
+ updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _41 => _41.has, 'call', _42 => _42(updatedBlock.diffId)]) || false;
1881
1886
  }
1882
1887
  if (updatedBlock.wordDiffs) {
1883
1888
  updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
1884
1889
  ...wordDiff,
1885
- accepted: _optionalChain([acceptedChanges, 'optionalAccess', _40 => _40.has, 'call', _41 => _41(wordDiff.diffId)]) || false,
1886
- rejected: _optionalChain([rejectedChanges, 'optionalAccess', _42 => _42.has, 'call', _43 => _43(wordDiff.diffId)]) || false
1890
+ accepted: _optionalChain([acceptedChanges, 'optionalAccess', _43 => _43.has, 'call', _44 => _44(wordDiff.diffId)]) || false,
1891
+ rejected: _optionalChain([rejectedChanges, 'optionalAccess', _45 => _45.has, 'call', _46 => _46(wordDiff.diffId)]) || false
1887
1892
  }));
1888
1893
  }
1889
1894
  if (updatedBlock.children) {
@@ -1908,7 +1913,7 @@ var BlockNoteWordDiffRendererUtil = class {
1908
1913
  type: block.type || "paragraph",
1909
1914
  props: this.getBlockProps(block),
1910
1915
  content: Array.isArray(block.content) ? block.content : [],
1911
- children: _optionalChain([block, 'access', _44 => _44.children, 'optionalAccess', _45 => _45.map, 'call', _46 => _46(
1916
+ children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49(
1912
1917
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1913
1918
  )])
1914
1919
  };
@@ -1921,7 +1926,7 @@ var BlockNoteWordDiffRendererUtil = class {
1921
1926
  type: block.type || "paragraph",
1922
1927
  props: block.props || {},
1923
1928
  content: Array.isArray(block.content) ? block.content : [],
1924
- children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49(
1929
+ children: _optionalChain([block, 'access', _50 => _50.children, 'optionalAccess', _51 => _51.map, 'call', _52 => _52(
1925
1930
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1926
1931
  )])
1927
1932
  };
@@ -1973,7 +1978,7 @@ var BlockNoteWordDiffRendererUtil = class {
1973
1978
  type: block.type || "paragraph",
1974
1979
  props: this.getBlockProps(block),
1975
1980
  content,
1976
- children: _optionalChain([block, 'access', _50 => _50.children, 'optionalAccess', _51 => _51.map, 'call', _52 => _52(
1981
+ children: _optionalChain([block, 'access', _53 => _53.children, 'optionalAccess', _54 => _54.map, 'call', _55 => _55(
1977
1982
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1978
1983
  )])
1979
1984
  };
@@ -1995,7 +2000,7 @@ var BlockNoteWordDiffRendererUtil = class {
1995
2000
  type: block.type || "paragraph",
1996
2001
  props: block.props || {},
1997
2002
  content: Array.isArray(content) ? content : [],
1998
- children: _optionalChain([block, 'access', _53 => _53.children, 'optionalAccess', _54 => _54.map, 'call', _55 => _55((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
2003
+ children: _optionalChain([block, 'access', _56 => _56.children, 'optionalAccess', _57 => _57.map, 'call', _58 => _58((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1999
2004
  };
2000
2005
  }
2001
2006
  static groupAndRenderWordDiffs(wordDiffs) {
@@ -2321,7 +2326,7 @@ function getValueFromPath(obj, path, userId) {
2321
2326
  _chunk7QVYU63Ejs.__name.call(void 0, getValueFromPath, "getValueFromPath");
2322
2327
 
2323
2328
  // src/features/auth/data/totp-authenticator.ts
2324
- var TotpAuthenticator = (_class3 = class extends AbstractApiData {constructor(...args) { super(...args); _class3.prototype.__init.call(this);_class3.prototype.__init2.call(this); }
2329
+ var TotpAuthenticator = (_class4 = class extends AbstractApiData {constructor(...args) { super(...args); _class4.prototype.__init.call(this);_class4.prototype.__init2.call(this); }
2325
2330
  static {
2326
2331
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TotpAuthenticator");
2327
2332
  }
@@ -2344,7 +2349,7 @@ var TotpAuthenticator = (_class3 = class extends AbstractApiData {constructor(..
2344
2349
  this._lastUsedAt = data.jsonApi.attributes.lastUsedAt ? new Date(data.jsonApi.attributes.lastUsedAt) : void 0;
2345
2350
  return this;
2346
2351
  }
2347
- }, _class3);
2352
+ }, _class4);
2348
2353
 
2349
2354
  // src/features/auth/totp-authenticator.module.ts
2350
2355
  var TotpAuthenticatorModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2354,7 +2359,7 @@ var TotpAuthenticatorModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
2354
2359
  }), "TotpAuthenticatorModule");
2355
2360
 
2356
2361
  // src/features/auth/data/totp-setup.ts
2357
- var TotpSetup = (_class4 = class extends AbstractApiData {constructor(...args2) { super(...args2); _class4.prototype.__init3.call(this);_class4.prototype.__init4.call(this);_class4.prototype.__init5.call(this); }
2362
+ var TotpSetup = (_class5 = class extends AbstractApiData {constructor(...args2) { super(...args2); _class5.prototype.__init3.call(this);_class5.prototype.__init4.call(this);_class5.prototype.__init5.call(this); }
2358
2363
  static {
2359
2364
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TotpSetup");
2360
2365
  }
@@ -2389,7 +2394,7 @@ var TotpSetup = (_class4 = class extends AbstractApiData {constructor(...args2)
2389
2394
  }
2390
2395
  };
2391
2396
  }
2392
- }, _class4);
2397
+ }, _class5);
2393
2398
 
2394
2399
  // src/features/auth/totp-setup.module.ts
2395
2400
  var TotpSetupModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2450,7 +2455,7 @@ var TotpVerifyLoginModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
2450
2455
  }), "TotpVerifyLoginModule");
2451
2456
 
2452
2457
  // src/features/auth/data/passkey.ts
2453
- var Passkey = (_class5 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class5.prototype.__init6.call(this);_class5.prototype.__init7.call(this);_class5.prototype.__init8.call(this);_class5.prototype.__init9.call(this); }
2458
+ var Passkey = (_class6 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class6.prototype.__init6.call(this);_class6.prototype.__init7.call(this);_class6.prototype.__init8.call(this);_class6.prototype.__init9.call(this); }
2454
2459
  static {
2455
2460
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Passkey");
2456
2461
  }
@@ -2483,7 +2488,7 @@ var Passkey = (_class5 = class extends AbstractApiData {constructor(...args3) {
2483
2488
  this._lastUsedAt = data.jsonApi.attributes.lastUsedAt ? new Date(data.jsonApi.attributes.lastUsedAt) : void 0;
2484
2489
  return this;
2485
2490
  }
2486
- }, _class5);
2491
+ }, _class6);
2487
2492
 
2488
2493
  // src/features/auth/passkey.module.ts
2489
2494
  var PasskeyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2493,7 +2498,7 @@ var PasskeyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
2493
2498
  }), "PasskeyModule");
2494
2499
 
2495
2500
  // src/features/auth/data/passkey-registration-options.ts
2496
- var PasskeyRegistrationOptions = (_class6 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class6.prototype.__init10.call(this);_class6.prototype.__init11.call(this); }
2501
+ var PasskeyRegistrationOptions = (_class7 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class7.prototype.__init10.call(this);_class7.prototype.__init11.call(this); }
2497
2502
  static {
2498
2503
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyRegistrationOptions");
2499
2504
  }
@@ -2523,7 +2528,7 @@ var PasskeyRegistrationOptions = (_class6 = class extends AbstractApiData {const
2523
2528
  }
2524
2529
  };
2525
2530
  }
2526
- }, _class6);
2531
+ }, _class7);
2527
2532
 
2528
2533
  // src/features/auth/passkey-registration-options.module.ts
2529
2534
  var PasskeyRegistrationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2533,7 +2538,7 @@ var PasskeyRegistrationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
2533
2538
  }), "PasskeyRegistrationOptionsModule");
2534
2539
 
2535
2540
  // src/features/auth/data/passkey-registration-verify.ts
2536
- var PasskeyRegistrationVerify = (_class7 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class7.prototype.__init12.call(this);_class7.prototype.__init13.call(this);_class7.prototype.__init14.call(this);_class7.prototype.__init15.call(this); }
2541
+ var PasskeyRegistrationVerify = (_class8 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class8.prototype.__init12.call(this);_class8.prototype.__init13.call(this);_class8.prototype.__init14.call(this);_class8.prototype.__init15.call(this); }
2537
2542
  static {
2538
2543
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyRegistrationVerify");
2539
2544
  }
@@ -2579,7 +2584,7 @@ var PasskeyRegistrationVerify = (_class7 = class extends AbstractApiData {constr
2579
2584
  }
2580
2585
  };
2581
2586
  }
2582
- }, _class7);
2587
+ }, _class8);
2583
2588
 
2584
2589
  // src/features/auth/passkey-registration-verify.module.ts
2585
2590
  var PasskeyRegistrationVerifyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2640,7 +2645,7 @@ var PasskeyVerifyLoginModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
2640
2645
  }), "PasskeyVerifyLoginModule");
2641
2646
 
2642
2647
  // src/features/auth/data/passkey-authentication-options.ts
2643
- var PasskeyAuthenticationOptions = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init16.call(this);_class8.prototype.__init17.call(this); }
2648
+ var PasskeyAuthenticationOptions = (_class9 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class9.prototype.__init16.call(this);_class9.prototype.__init17.call(this); }
2644
2649
  static {
2645
2650
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyAuthenticationOptions");
2646
2651
  }
@@ -2667,7 +2672,7 @@ var PasskeyAuthenticationOptions = (_class8 = class extends AbstractApiData {con
2667
2672
  }
2668
2673
  };
2669
2674
  }
2670
- }, _class8);
2675
+ }, _class9);
2671
2676
 
2672
2677
  // src/features/auth/passkey-authentication-options.module.ts
2673
2678
  var PasskeyAuthenticationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2702,7 +2707,7 @@ var TwoFactorEnableModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
2702
2707
  }), "TwoFactorEnableModule");
2703
2708
 
2704
2709
  // src/features/auth/data/two-factor-challenge.ts
2705
- var TwoFactorChallenge = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init18.call(this);_class9.prototype.__init19.call(this);_class9.prototype.__init20.call(this); }
2710
+ var TwoFactorChallenge = (_class10 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class10.prototype.__init18.call(this);_class10.prototype.__init19.call(this);_class10.prototype.__init20.call(this); }
2706
2711
  static {
2707
2712
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TwoFactorChallenge");
2708
2713
  }
@@ -2736,7 +2741,7 @@ var TwoFactorChallenge = (_class9 = class extends AbstractApiData {constructor(.
2736
2741
  }
2737
2742
  };
2738
2743
  }
2739
- }, _class9);
2744
+ }, _class10);
2740
2745
 
2741
2746
  // src/features/auth/two-factor-challenge.module.ts
2742
2747
  var TwoFactorChallengeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2843,7 +2848,7 @@ var AuthService = class extends AbstractService {
2843
2848
  language
2844
2849
  });
2845
2850
  if (!apiResponse.ok) throw new Error(apiResponse.error);
2846
- if (_optionalChain([apiResponse, 'access', _56 => _56.raw, 'optionalAccess', _57 => _57.data, 'optionalAccess', _58 => _58.type]) === "two-factor-challenge") {
2851
+ if (_optionalChain([apiResponse, 'access', _59 => _59.raw, 'optionalAccess', _60 => _60.data, 'optionalAccess', _61 => _61.type]) === "two-factor-challenge") {
2847
2852
  const challenge = rehydrate(Modules.TwoFactorChallenge, {
2848
2853
  jsonApi: apiResponse.raw.data,
2849
2854
  included: _nullishCoalesce(apiResponse.raw.included, () => ( []))
@@ -2857,9 +2862,9 @@ var AuthService = class extends AbstractService {
2857
2862
  token: auth.token,
2858
2863
  refreshToken: auth.refreshToken,
2859
2864
  userId: auth.user.id,
2860
- companyId: _optionalChain([auth, 'access', _59 => _59.user, 'access', _60 => _60.company, 'optionalAccess', _61 => _61.id]),
2865
+ companyId: _optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.id]),
2861
2866
  roles: auth.user.roles.map((role) => role.id),
2862
- features: _nullishCoalesce(_optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.features, 'optionalAccess', _65 => _65.map, 'call', _66 => _66((feature) => feature.id)]), () => ( [])),
2867
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _65 => _65.user, 'access', _66 => _66.company, 'optionalAccess', _67 => _67.features, 'optionalAccess', _68 => _68.map, 'call', _69 => _69((feature) => feature.id)]), () => ( [])),
2863
2868
  modules: auth.user.modules.map((module) => ({
2864
2869
  id: module.id,
2865
2870
  permissions: module.permissions
@@ -2869,7 +2874,7 @@ var AuthService = class extends AbstractService {
2869
2874
  return auth.user;
2870
2875
  }
2871
2876
  static async logout(params) {
2872
- const language = _optionalChain([params, 'optionalAccess', _67 => _67.language]) || "en-US";
2877
+ const language = _optionalChain([params, 'optionalAccess', _70 => _70.language]) || "en-US";
2873
2878
  await _chunk4MN547K7js.JsonApiDelete.call(void 0, {
2874
2879
  classKey: Modules.Auth,
2875
2880
  endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
@@ -2943,9 +2948,9 @@ var AuthService = class extends AbstractService {
2943
2948
  token: auth.token,
2944
2949
  refreshToken: auth.refreshToken,
2945
2950
  userId: auth.user.id,
2946
- companyId: _optionalChain([auth, 'access', _68 => _68.user, 'access', _69 => _69.company, 'optionalAccess', _70 => _70.id]),
2951
+ companyId: _optionalChain([auth, 'access', _71 => _71.user, 'access', _72 => _72.company, 'optionalAccess', _73 => _73.id]),
2947
2952
  roles: auth.user.roles.map((role) => role.id),
2948
- features: _nullishCoalesce(_optionalChain([auth, 'access', _71 => _71.user, 'access', _72 => _72.company, 'optionalAccess', _73 => _73.features, 'optionalAccess', _74 => _74.map, 'call', _75 => _75((feature) => feature.id)]), () => ( [])),
2953
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _74 => _74.user, 'access', _75 => _75.company, 'optionalAccess', _76 => _76.features, 'optionalAccess', _77 => _77.map, 'call', _78 => _78((feature) => feature.id)]), () => ( [])),
2949
2954
  modules: auth.user.modules.map((module) => ({
2950
2955
  id: module.id,
2951
2956
  permissions: module.permissions
@@ -2968,7 +2973,7 @@ var AuthService = class extends AbstractService {
2968
2973
  };
2969
2974
 
2970
2975
  // src/features/auth/data/two-factor-status.ts
2971
- var TwoFactorStatus = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init21.call(this);_class10.prototype.__init22.call(this);_class10.prototype.__init23.call(this);_class10.prototype.__init24.call(this); }
2976
+ var TwoFactorStatus = (_class11 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class11.prototype.__init21.call(this);_class11.prototype.__init22.call(this);_class11.prototype.__init23.call(this);_class11.prototype.__init24.call(this); }
2972
2977
  static {
2973
2978
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TwoFactorStatus");
2974
2979
  }
@@ -2999,7 +3004,7 @@ var TwoFactorStatus = (_class10 = class extends AbstractApiData {constructor(...
2999
3004
  this._backupCodesCount = _nullishCoalesce(data.jsonApi.attributes.backupCodesCount, () => ( 0));
3000
3005
  return this;
3001
3006
  }
3002
- }, _class10);
3007
+ }, _class11);
3003
3008
 
3004
3009
  // src/features/auth/data/two-factor.service.ts
3005
3010
  var TwoFactorService = class extends AbstractService {
@@ -3193,9 +3198,9 @@ var TwoFactorService = class extends AbstractService {
3193
3198
  token: auth.token,
3194
3199
  refreshToken: auth.refreshToken,
3195
3200
  userId: auth.user.id,
3196
- companyId: _optionalChain([auth, 'access', _76 => _76.user, 'access', _77 => _77.company, 'optionalAccess', _78 => _78.id]),
3201
+ companyId: _optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.id]),
3197
3202
  roles: auth.user.roles.map((role) => role.id),
3198
- features: _nullishCoalesce(_optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.features, 'optionalAccess', _82 => _82.map, 'call', _83 => _83((feature) => feature.id)]), () => ( [])),
3203
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _82 => _82.user, 'access', _83 => _83.company, 'optionalAccess', _84 => _84.features, 'optionalAccess', _85 => _85.map, 'call', _86 => _86((feature) => feature.id)]), () => ( [])),
3199
3204
  modules: auth.user.modules.map((module) => ({
3200
3205
  id: module.id,
3201
3206
  permissions: module.permissions
@@ -3333,8 +3338,8 @@ var BillingService = class extends AbstractService {
3333
3338
  type: Modules.StripeUsage,
3334
3339
  method: "GET" /* GET */,
3335
3340
  endpoint: endpoint.generate(),
3336
- next: _optionalChain([params, 'optionalAccess', _84 => _84.next]),
3337
- previous: _optionalChain([params, 'optionalAccess', _85 => _85.prev])
3341
+ next: _optionalChain([params, 'optionalAccess', _87 => _87.next]),
3342
+ previous: _optionalChain([params, 'optionalAccess', _88 => _88.prev])
3338
3343
  });
3339
3344
  }
3340
3345
  /**
@@ -3435,7 +3440,7 @@ var PaymentMethod = class extends AbstractApiData {
3435
3440
  };
3436
3441
 
3437
3442
  // src/features/billing/stripe-customer/data/stripe-customer.ts
3438
- var StripeCustomer = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init25.call(this); }
3443
+ var StripeCustomer = (_class12 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class12.prototype.__init25.call(this); }
3439
3444
  static {
3440
3445
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCustomer");
3441
3446
  }
@@ -3487,7 +3492,7 @@ var StripeCustomer = (_class11 = class extends AbstractApiData {constructor(...a
3487
3492
  createJsonApi(_data) {
3488
3493
  throw new Error("BillingCustomer is managed by Stripe and cannot be created directly");
3489
3494
  }
3490
- }, _class11);
3495
+ }, _class12);
3491
3496
 
3492
3497
  // src/features/billing/stripe-customer/data/stripe-customer.service.ts
3493
3498
  var StripeCustomerService = class extends AbstractService {
@@ -3566,8 +3571,8 @@ var StripeCustomerService = class extends AbstractService {
3566
3571
  type: Modules.StripePaymentMethod,
3567
3572
  method: "GET" /* GET */,
3568
3573
  endpoint: endpoint.generate(),
3569
- next: _optionalChain([params, 'optionalAccess', _86 => _86.next]),
3570
- previous: _optionalChain([params, 'optionalAccess', _87 => _87.prev])
3574
+ next: _optionalChain([params, 'optionalAccess', _89 => _89.next]),
3575
+ previous: _optionalChain([params, 'optionalAccess', _90 => _90.prev])
3571
3576
  });
3572
3577
  }
3573
3578
  /**
@@ -3617,7 +3622,7 @@ var StripePaymentMethodModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
3617
3622
  }), "StripePaymentMethodModule");
3618
3623
 
3619
3624
  // src/features/billing/stripe-invoice/data/stripe-invoice.ts
3620
- var StripeInvoice = (_class12 = class extends AbstractApiData {constructor(...args10) { super(...args10); _class12.prototype.__init26.call(this);_class12.prototype.__init27.call(this);_class12.prototype.__init28.call(this); }
3625
+ var StripeInvoice = (_class13 = class extends AbstractApiData {constructor(...args10) { super(...args10); _class13.prototype.__init26.call(this);_class13.prototype.__init27.call(this);_class13.prototype.__init28.call(this); }
3621
3626
  static {
3622
3627
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeInvoice");
3623
3628
  }
@@ -3757,7 +3762,7 @@ var StripeInvoice = (_class12 = class extends AbstractApiData {constructor(...ar
3757
3762
  createJsonApi(_data) {
3758
3763
  throw new Error("Invoice is managed by Stripe and cannot be created directly");
3759
3764
  }
3760
- }, _class12);
3765
+ }, _class13);
3761
3766
 
3762
3767
  // src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts
3763
3768
  var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
@@ -3781,15 +3786,15 @@ var StripeInvoiceService = class extends AbstractService {
3781
3786
  const endpoint = new EndpointCreator({
3782
3787
  endpoint: Modules.StripeInvoice
3783
3788
  });
3784
- if (_optionalChain([params, 'optionalAccess', _88 => _88.status])) {
3789
+ if (_optionalChain([params, 'optionalAccess', _91 => _91.status])) {
3785
3790
  endpoint.addAdditionalParam("status", params.status);
3786
3791
  }
3787
3792
  return this.callApi({
3788
3793
  type: Modules.StripeInvoice,
3789
3794
  method: "GET" /* GET */,
3790
3795
  endpoint: endpoint.generate(),
3791
- next: _optionalChain([params, 'optionalAccess', _89 => _89.next]),
3792
- previous: _optionalChain([params, 'optionalAccess', _90 => _90.prev])
3796
+ next: _optionalChain([params, 'optionalAccess', _92 => _92.next]),
3797
+ previous: _optionalChain([params, 'optionalAccess', _93 => _93.prev])
3793
3798
  });
3794
3799
  }
3795
3800
  /**
@@ -3831,7 +3836,7 @@ var StripeInvoiceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
3831
3836
  }), "StripeInvoiceModule");
3832
3837
 
3833
3838
  // src/features/billing/stripe-price/data/stripe-price.ts
3834
- var StripePrice = (_class13 = class extends AbstractApiData {constructor(...args11) { super(...args11); _class13.prototype.__init29.call(this);_class13.prototype.__init30.call(this); }
3839
+ var StripePrice = (_class14 = class extends AbstractApiData {constructor(...args11) { super(...args11); _class14.prototype.__init29.call(this);_class14.prototype.__init30.call(this); }
3835
3840
  static {
3836
3841
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripePrice");
3837
3842
  }
@@ -3980,7 +3985,7 @@ var StripePrice = (_class13 = class extends AbstractApiData {constructor(...args
3980
3985
  }
3981
3986
  return response;
3982
3987
  }
3983
- }, _class13);
3988
+ }, _class14);
3984
3989
 
3985
3990
  // src/features/billing/stripe-price/data/stripe-price.service.ts
3986
3991
  var StripePriceService = class extends AbstractService {
@@ -3994,18 +3999,18 @@ var StripePriceService = class extends AbstractService {
3994
3999
  const endpoint = new EndpointCreator({
3995
4000
  endpoint: Modules.StripePrice
3996
4001
  });
3997
- if (_optionalChain([params, 'optionalAccess', _91 => _91.productId])) {
4002
+ if (_optionalChain([params, 'optionalAccess', _94 => _94.productId])) {
3998
4003
  endpoint.addAdditionalParam("productId", params.productId);
3999
4004
  }
4000
- if (_optionalChain([params, 'optionalAccess', _92 => _92.active]) !== void 0) {
4005
+ if (_optionalChain([params, 'optionalAccess', _95 => _95.active]) !== void 0) {
4001
4006
  endpoint.addAdditionalParam("active", params.active.toString());
4002
4007
  }
4003
4008
  return this.callApi({
4004
4009
  type: Modules.StripePrice,
4005
4010
  method: "GET" /* GET */,
4006
4011
  endpoint: endpoint.generate(),
4007
- next: _optionalChain([params, 'optionalAccess', _93 => _93.next]),
4008
- previous: _optionalChain([params, 'optionalAccess', _94 => _94.prev])
4012
+ next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
4013
+ previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
4009
4014
  });
4010
4015
  }
4011
4016
  /**
@@ -4096,7 +4101,7 @@ var StripePriceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
4096
4101
  }), "StripePriceModule");
4097
4102
 
4098
4103
  // src/features/billing/stripe-product/data/stripe-product.ts
4099
- var StripeProduct = (_class14 = class extends AbstractApiData {constructor(...args12) { super(...args12); _class14.prototype.__init31.call(this);_class14.prototype.__init32.call(this); }
4104
+ var StripeProduct = (_class15 = class extends AbstractApiData {constructor(...args12) { super(...args12); _class15.prototype.__init31.call(this);_class15.prototype.__init32.call(this); }
4100
4105
  static {
4101
4106
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeProduct");
4102
4107
  }
@@ -4150,7 +4155,7 @@ var StripeProduct = (_class14 = class extends AbstractApiData {constructor(...ar
4150
4155
  if (data.metadata) response.data.attributes.metadata = data.metadata;
4151
4156
  return response;
4152
4157
  }
4153
- }, _class14);
4158
+ }, _class15);
4154
4159
 
4155
4160
  // src/features/billing/stripe-product/data/stripe-product.service.ts
4156
4161
  var StripeProductService = class extends AbstractService {
@@ -4164,15 +4169,15 @@ var StripeProductService = class extends AbstractService {
4164
4169
  const endpoint = new EndpointCreator({
4165
4170
  endpoint: Modules.StripeProduct
4166
4171
  });
4167
- if (_optionalChain([params, 'optionalAccess', _95 => _95.active]) !== void 0) {
4172
+ if (_optionalChain([params, 'optionalAccess', _98 => _98.active]) !== void 0) {
4168
4173
  endpoint.addAdditionalParam("active", params.active.toString());
4169
4174
  }
4170
4175
  return this.callApi({
4171
4176
  type: Modules.StripeProduct,
4172
4177
  method: "GET" /* GET */,
4173
4178
  endpoint: endpoint.generate(),
4174
- next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
4175
- previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
4179
+ next: _optionalChain([params, 'optionalAccess', _99 => _99.next]),
4180
+ previous: _optionalChain([params, 'optionalAccess', _100 => _100.prev])
4176
4181
  });
4177
4182
  }
4178
4183
  /**
@@ -4259,7 +4264,7 @@ var StripeProductModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
4259
4264
  }), "StripeProductModule");
4260
4265
 
4261
4266
  // src/features/billing/stripe-subscription/data/stripe-subscription.ts
4262
- var StripeSubscription = (_class15 = class extends AbstractApiData {constructor(...args13) { super(...args13); _class15.prototype.__init33.call(this); }
4267
+ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(...args13) { super(...args13); _class16.prototype.__init33.call(this); }
4263
4268
  static {
4264
4269
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeSubscription");
4265
4270
  }
@@ -4357,7 +4362,7 @@ var StripeSubscription = (_class15 = class extends AbstractApiData {constructor(
4357
4362
  }
4358
4363
  return response;
4359
4364
  }
4360
- }, _class15);
4365
+ }, _class16);
4361
4366
 
4362
4367
  // src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts
4363
4368
  var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
@@ -4391,8 +4396,8 @@ var StripeSubscriptionService = class extends AbstractService {
4391
4396
  type: Modules.StripeSubscription,
4392
4397
  method: "GET" /* GET */,
4393
4398
  endpoint: endpoint.generate(),
4394
- next: _optionalChain([params, 'optionalAccess', _98 => _98.next]),
4395
- previous: _optionalChain([params, 'optionalAccess', _99 => _99.prev])
4399
+ next: _optionalChain([params, 'optionalAccess', _101 => _101.next]),
4400
+ previous: _optionalChain([params, 'optionalAccess', _102 => _102.prev])
4396
4401
  });
4397
4402
  }
4398
4403
  /**
@@ -4619,8 +4624,8 @@ var StripeUsageService = class extends AbstractService {
4619
4624
  type: Modules.StripeUsage,
4620
4625
  method: "GET" /* GET */,
4621
4626
  endpoint: endpoint.generate(),
4622
- next: _optionalChain([params, 'optionalAccess', _100 => _100.next]),
4623
- previous: _optionalChain([params, 'optionalAccess', _101 => _101.prev])
4627
+ next: _optionalChain([params, 'optionalAccess', _103 => _103.next]),
4628
+ previous: _optionalChain([params, 'optionalAccess', _104 => _104.prev])
4624
4629
  });
4625
4630
  }
4626
4631
  /**
@@ -4668,8 +4673,8 @@ var StripeUsageService = class extends AbstractService {
4668
4673
  type: Modules.StripeUsage,
4669
4674
  method: "GET" /* GET */,
4670
4675
  endpoint: endpoint.generate(),
4671
- next: _optionalChain([params, 'optionalAccess', _102 => _102.next]),
4672
- previous: _optionalChain([params, 'optionalAccess', _103 => _103.prev])
4676
+ next: _optionalChain([params, 'optionalAccess', _105 => _105.next]),
4677
+ previous: _optionalChain([params, 'optionalAccess', _106 => _106.prev])
4673
4678
  });
4674
4679
  }
4675
4680
  /**
@@ -4756,7 +4761,7 @@ var StripePromotionCodeService = class {
4756
4761
  };
4757
4762
 
4758
4763
  // src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts
4759
- var StripePromotionCode = (_class16 = class extends AbstractApiData {constructor(...args14) { super(...args14); _class16.prototype.__init34.call(this);_class16.prototype.__init35.call(this); }
4764
+ var StripePromotionCode = (_class17 = class extends AbstractApiData {constructor(...args14) { super(...args14); _class17.prototype.__init34.call(this);_class17.prototype.__init35.call(this); }
4760
4765
  static {
4761
4766
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripePromotionCode");
4762
4767
  }
@@ -4809,7 +4814,7 @@ var StripePromotionCode = (_class16 = class extends AbstractApiData {constructor
4809
4814
  this._errorMessage = data.jsonApi.attributes.errorMessage;
4810
4815
  return this;
4811
4816
  }
4812
- }, _class16);
4817
+ }, _class17);
4813
4818
 
4814
4819
  // src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts
4815
4820
  var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -4823,7 +4828,7 @@ var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
4823
4828
  var _lucidereact = require('lucide-react');
4824
4829
 
4825
4830
  // src/features/company/data/company.ts
4826
- var Company = (_class17 = class extends AbstractApiData {constructor(...args15) { super(...args15); _class17.prototype.__init36.call(this);_class17.prototype.__init37.call(this);_class17.prototype.__init38.call(this);_class17.prototype.__init39.call(this); }
4831
+ 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); }
4827
4832
  static {
4828
4833
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
4829
4834
  }
@@ -4979,7 +4984,7 @@ var Company = (_class17 = class extends AbstractApiData {constructor(...args15)
4979
4984
  }
4980
4985
  return response;
4981
4986
  }
4982
- }, _class17);
4987
+ }, _class18);
4983
4988
 
4984
4989
  // src/features/company/data/company.fields.ts
4985
4990
  var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
@@ -5169,8 +5174,8 @@ var ContentService = class extends AbstractService {
5169
5174
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5170
5175
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5171
5176
  }
5172
- if (_optionalChain([Modules, 'access', _104 => _104.Content, 'access', _105 => _105.inclusions, 'optionalAccess', _106 => _106.lists, 'optionalAccess', _107 => _107.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5173
- if (_optionalChain([Modules, 'access', _108 => _108.Content, 'access', _109 => _109.inclusions, 'optionalAccess', _110 => _110.lists, 'optionalAccess', _111 => _111.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5177
+ if (_optionalChain([Modules, 'access', _107 => _107.Content, 'access', _108 => _108.inclusions, 'optionalAccess', _109 => _109.lists, 'optionalAccess', _110 => _110.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5178
+ if (_optionalChain([Modules, 'access', _111 => _111.Content, 'access', _112 => _112.inclusions, 'optionalAccess', _113 => _113.lists, 'optionalAccess', _114 => _114.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5174
5179
  return this.callApi({
5175
5180
  type: Modules.Content,
5176
5181
  method: "GET" /* GET */,
@@ -5184,8 +5189,8 @@ var ContentService = class extends AbstractService {
5184
5189
  id: params.id,
5185
5190
  childEndpoint: "relevance"
5186
5191
  });
5187
- if (_optionalChain([Modules, 'access', _112 => _112.Content, 'access', _113 => _113.inclusions, 'optionalAccess', _114 => _114.lists, 'optionalAccess', _115 => _115.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5188
- if (_optionalChain([Modules, 'access', _116 => _116.Content, 'access', _117 => _117.inclusions, 'optionalAccess', _118 => _118.lists, 'optionalAccess', _119 => _119.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5192
+ if (_optionalChain([Modules, 'access', _115 => _115.Content, 'access', _116 => _116.inclusions, 'optionalAccess', _117 => _117.lists, 'optionalAccess', _118 => _118.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5193
+ if (_optionalChain([Modules, 'access', _119 => _119.Content, 'access', _120 => _120.inclusions, 'optionalAccess', _121 => _121.lists, 'optionalAccess', _122 => _122.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5189
5194
  return this.callApi({
5190
5195
  type: Modules.Content,
5191
5196
  method: "GET" /* GET */,
@@ -5201,8 +5206,8 @@ var ContentService = class extends AbstractService {
5201
5206
  });
5202
5207
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5203
5208
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5204
- if (_optionalChain([Modules, 'access', _120 => _120.Content, 'access', _121 => _121.inclusions, 'optionalAccess', _122 => _122.lists, 'optionalAccess', _123 => _123.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5205
- if (_optionalChain([Modules, 'access', _124 => _124.Content, 'access', _125 => _125.inclusions, 'optionalAccess', _126 => _126.lists, 'optionalAccess', _127 => _127.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5209
+ if (_optionalChain([Modules, 'access', _123 => _123.Content, 'access', _124 => _124.inclusions, 'optionalAccess', _125 => _125.lists, 'optionalAccess', _126 => _126.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5210
+ if (_optionalChain([Modules, 'access', _127 => _127.Content, 'access', _128 => _128.inclusions, 'optionalAccess', _129 => _129.lists, 'optionalAccess', _130 => _130.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5206
5211
  return this.callApi({
5207
5212
  type: Modules.Content,
5208
5213
  method: "GET" /* GET */,
@@ -5329,8 +5334,8 @@ var HowToService = class extends AbstractService {
5329
5334
  const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
5330
5335
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5331
5336
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5332
- if (_optionalChain([Modules, 'access', _128 => _128.HowTo, 'access', _129 => _129.inclusions, 'optionalAccess', _130 => _130.lists, 'optionalAccess', _131 => _131.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
5333
- if (_optionalChain([Modules, 'access', _132 => _132.HowTo, 'access', _133 => _133.inclusions, 'optionalAccess', _134 => _134.lists, 'optionalAccess', _135 => _135.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
5337
+ if (_optionalChain([Modules, 'access', _131 => _131.HowTo, 'access', _132 => _132.inclusions, 'optionalAccess', _133 => _133.lists, 'optionalAccess', _134 => _134.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
5338
+ if (_optionalChain([Modules, 'access', _135 => _135.HowTo, 'access', _136 => _136.inclusions, 'optionalAccess', _137 => _137.lists, 'optionalAccess', _138 => _138.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
5334
5339
  return this.callApi({
5335
5340
  type: Modules.HowTo,
5336
5341
  method: "GET" /* GET */,
@@ -5364,7 +5369,7 @@ var HowToService = class extends AbstractService {
5364
5369
  };
5365
5370
 
5366
5371
  // src/features/feature/data/feature.ts
5367
- var Feature = (_class18 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class18.prototype.__init40.call(this); }
5372
+ var Feature = (_class19 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this); }
5368
5373
  static {
5369
5374
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
5370
5375
  }
@@ -5387,7 +5392,7 @@ var Feature = (_class18 = class extends AbstractApiData {constructor(...args16)
5387
5392
  this._modules = this._readIncluded(data, `modules`, Modules.Module);
5388
5393
  return this;
5389
5394
  }
5390
- }, _class18);
5395
+ }, _class19);
5391
5396
 
5392
5397
  // src/features/feature/data/feature.service.ts
5393
5398
  var FeatureService = class extends AbstractService {
@@ -5838,7 +5843,7 @@ var S3Service = class extends AbstractService {
5838
5843
  };
5839
5844
 
5840
5845
  // src/features/user/data/user.ts
5841
- var User = (_class19 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class19.prototype.__init41.call(this);_class19.prototype.__init42.call(this);_class19.prototype.__init43.call(this); }
5846
+ var User = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this);_class20.prototype.__init42.call(this);_class20.prototype.__init43.call(this); }
5842
5847
  static {
5843
5848
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
5844
5849
  }
@@ -5968,7 +5973,7 @@ var User = (_class19 = class extends AbstractApiData {constructor(...args17) { s
5968
5973
  }
5969
5974
  return response;
5970
5975
  }
5971
- }, _class19);
5976
+ }, _class20);
5972
5977
 
5973
5978
  // src/features/user/data/user.fields.ts
5974
5979
  var UserFields = /* @__PURE__ */ ((UserFields2) => {
@@ -6037,8 +6042,8 @@ var UserService = class extends AbstractService {
6037
6042
  id: params.id,
6038
6043
  childEndpoint: "user-relevance"
6039
6044
  });
6040
- if (_optionalChain([Modules, 'access', _136 => _136.User, 'access', _137 => _137.inclusions, 'optionalAccess', _138 => _138.lists, 'optionalAccess', _139 => _139.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
6041
- if (_optionalChain([Modules, 'access', _140 => _140.User, 'access', _141 => _141.inclusions, 'optionalAccess', _142 => _142.lists, 'optionalAccess', _143 => _143.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
6045
+ if (_optionalChain([Modules, 'access', _139 => _139.User, 'access', _140 => _140.inclusions, 'optionalAccess', _141 => _141.lists, 'optionalAccess', _142 => _142.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
6046
+ if (_optionalChain([Modules, 'access', _143 => _143.User, 'access', _144 => _144.inclusions, 'optionalAccess', _145 => _145.lists, 'optionalAccess', _146 => _146.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
6042
6047
  return this.callApi({
6043
6048
  type: Modules.User,
6044
6049
  method: "GET" /* GET */,
@@ -6205,7 +6210,7 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
6205
6210
  }), "UserModule");
6206
6211
 
6207
6212
  // src/features/oauth/data/oauth.ts
6208
- var OAuthClient = (_class20 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class20.prototype.__init44.call(this);_class20.prototype.__init45.call(this);_class20.prototype.__init46.call(this);_class20.prototype.__init47.call(this);_class20.prototype.__init48.call(this); }
6213
+ var OAuthClient = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init44.call(this);_class21.prototype.__init45.call(this);_class21.prototype.__init46.call(this);_class21.prototype.__init47.call(this);_class21.prototype.__init48.call(this); }
6209
6214
  static {
6210
6215
  _chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
6211
6216
  }
@@ -6272,7 +6277,7 @@ var OAuthClient = (_class20 = class extends AbstractApiData {constructor(...args
6272
6277
  if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
6273
6278
  return response;
6274
6279
  }
6275
- }, _class20);
6280
+ }, _class21);
6276
6281
 
6277
6282
  // src/features/oauth/oauth.module.ts
6278
6283
  var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6297,7 +6302,7 @@ var OAuthService = class extends AbstractService {
6297
6302
  type: Modules.OAuth,
6298
6303
  method: "GET" /* GET */,
6299
6304
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
6300
- next: _optionalChain([params, 'optionalAccess', _144 => _144.next])
6305
+ next: _optionalChain([params, 'optionalAccess', _147 => _147.next])
6301
6306
  });
6302
6307
  }
6303
6308
  /**
@@ -6323,7 +6328,7 @@ var OAuthService = class extends AbstractService {
6323
6328
  });
6324
6329
  return {
6325
6330
  client: result.data,
6326
- clientSecret: _optionalChain([result, 'access', _145 => _145.meta, 'optionalAccess', _146 => _146.clientSecret])
6331
+ clientSecret: _optionalChain([result, 'access', _148 => _148.meta, 'optionalAccess', _149 => _149.clientSecret])
6327
6332
  };
6328
6333
  }
6329
6334
  /**
@@ -6362,7 +6367,7 @@ var OAuthService = class extends AbstractService {
6362
6367
  }).generate()
6363
6368
  });
6364
6369
  return {
6365
- clientSecret: _optionalChain([result, 'access', _147 => _147.meta, 'optionalAccess', _148 => _148.clientSecret])
6370
+ clientSecret: _optionalChain([result, 'access', _150 => _150.meta, 'optionalAccess', _151 => _151.clientSecret])
6366
6371
  };
6367
6372
  }
6368
6373
  // ==========================================
@@ -6406,7 +6411,7 @@ var OAuthService = class extends AbstractService {
6406
6411
  overridesJsonApiCreation: true
6407
6412
  });
6408
6413
  return {
6409
- redirectUrl: _optionalChain([result, 'access', _149 => _149.meta, 'optionalAccess', _150 => _150.redirectUrl])
6414
+ redirectUrl: _optionalChain([result, 'access', _152 => _152.meta, 'optionalAccess', _153 => _153.redirectUrl])
6410
6415
  };
6411
6416
  }
6412
6417
  /**
@@ -6426,7 +6431,7 @@ var OAuthService = class extends AbstractService {
6426
6431
  overridesJsonApiCreation: true
6427
6432
  });
6428
6433
  return {
6429
- redirectUrl: _optionalChain([result, 'access', _151 => _151.meta, 'optionalAccess', _152 => _152.redirectUrl])
6434
+ redirectUrl: _optionalChain([result, 'access', _154 => _154.meta, 'optionalAccess', _155 => _155.redirectUrl])
6430
6435
  };
6431
6436
  }
6432
6437
  };
@@ -6486,7 +6491,7 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
6486
6491
  var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
6487
6492
 
6488
6493
  // src/features/waitlist/data/Waitlist.ts
6489
- var Waitlist = (_class21 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class21.prototype.__init49.call(this);_class21.prototype.__init50.call(this); }
6494
+ var Waitlist = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init49.call(this);_class22.prototype.__init50.call(this); }
6490
6495
  static {
6491
6496
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
6492
6497
  }
@@ -6570,7 +6575,7 @@ var Waitlist = (_class21 = class extends AbstractApiData {constructor(...args19)
6570
6575
  }
6571
6576
  return response;
6572
6577
  }
6573
- }, _class21);
6578
+ }, _class22);
6574
6579
 
6575
6580
  // src/features/waitlist/data/WaitlistService.ts
6576
6581
  var WaitlistService = class extends AbstractService {
@@ -6610,15 +6615,15 @@ var WaitlistService = class extends AbstractService {
6610
6615
  */
6611
6616
  static async findMany(params) {
6612
6617
  const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
6613
- if (_optionalChain([params, 'optionalAccess', _153 => _153.status])) endpoint.addAdditionalParam("status", params.status);
6614
- if (_optionalChain([params, 'optionalAccess', _154 => _154.search])) endpoint.addAdditionalParam("search", params.search);
6615
- if (_optionalChain([params, 'optionalAccess', _155 => _155.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6618
+ if (_optionalChain([params, 'optionalAccess', _156 => _156.status])) endpoint.addAdditionalParam("status", params.status);
6619
+ if (_optionalChain([params, 'optionalAccess', _157 => _157.search])) endpoint.addAdditionalParam("search", params.search);
6620
+ if (_optionalChain([params, 'optionalAccess', _158 => _158.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6616
6621
  return this.callApi({
6617
6622
  type: Modules.Waitlist,
6618
6623
  method: "GET" /* GET */,
6619
6624
  endpoint: endpoint.generate(),
6620
- next: _optionalChain([params, 'optionalAccess', _156 => _156.next]),
6621
- previous: _optionalChain([params, 'optionalAccess', _157 => _157.prev])
6625
+ next: _optionalChain([params, 'optionalAccess', _159 => _159.next]),
6626
+ previous: _optionalChain([params, 'optionalAccess', _160 => _160.prev])
6622
6627
  });
6623
6628
  }
6624
6629
  /**
@@ -6686,10 +6691,10 @@ var WaitlistService = class extends AbstractService {
6686
6691
  method: "GET" /* GET */,
6687
6692
  endpoint: endpoint.generate()
6688
6693
  });
6689
- const attributes = _optionalChain([response, 'access', _158 => _158.data, 'optionalAccess', _159 => _159._jsonApi, 'optionalAccess', _160 => _160.attributes]);
6694
+ const attributes = _optionalChain([response, 'access', _161 => _161.data, 'optionalAccess', _162 => _162._jsonApi, 'optionalAccess', _163 => _163.attributes]);
6690
6695
  return {
6691
- email: _optionalChain([attributes, 'optionalAccess', _161 => _161.email]),
6692
- valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _162 => _162.valid]), () => ( false))
6696
+ email: _optionalChain([attributes, 'optionalAccess', _164 => _164.email]),
6697
+ valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _165 => _165.valid]), () => ( false))
6693
6698
  };
6694
6699
  } catch (_error) {
6695
6700
  return null;
@@ -6698,7 +6703,7 @@ var WaitlistService = class extends AbstractService {
6698
6703
  };
6699
6704
 
6700
6705
  // src/features/waitlist/data/waitlist-stats.ts
6701
- var WaitlistStats = (_class22 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class22.prototype.__init51.call(this);_class22.prototype.__init52.call(this);_class22.prototype.__init53.call(this);_class22.prototype.__init54.call(this);_class22.prototype.__init55.call(this); }
6706
+ var WaitlistStats = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init51.call(this);_class23.prototype.__init52.call(this);_class23.prototype.__init53.call(this);_class23.prototype.__init54.call(this);_class23.prototype.__init55.call(this); }
6702
6707
  static {
6703
6708
  _chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
6704
6709
  }
@@ -6735,7 +6740,7 @@ var WaitlistStats = (_class22 = class extends AbstractApiData {constructor(...ar
6735
6740
  createJsonApi(_data) {
6736
6741
  throw new Error("WaitlistStats is read-only and cannot be created");
6737
6742
  }
6738
- }, _class22);
6743
+ }, _class23);
6739
6744
 
6740
6745
  // src/features/waitlist/waitlist.module.ts
6741
6746
  var WaitlistModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6775,7 +6780,7 @@ var PermissionMapping = class extends AbstractApiData {
6775
6780
  super.rehydrate(data);
6776
6781
  this._roleId = data.jsonApi.attributes.roleId;
6777
6782
  this._moduleId = data.jsonApi.attributes.moduleId;
6778
- this._permissions = _optionalChain([data, 'access', _163 => _163.jsonApi, 'access', _164 => _164.meta, 'optionalAccess', _165 => _165.permissions]);
6783
+ this._permissions = _optionalChain([data, 'access', _166 => _166.jsonApi, 'access', _167 => _167.meta, 'optionalAccess', _168 => _168.permissions]);
6779
6784
  return this;
6780
6785
  }
6781
6786
  };
@@ -6894,7 +6899,7 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
6894
6899
  }), "ReferralStatsModule");
6895
6900
 
6896
6901
  // src/features/audit-log/data/audit-log.ts
6897
- var AuditLog = (_class23 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class23.prototype.__init56.call(this); }
6902
+ var AuditLog = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init56.call(this); }
6898
6903
  static {
6899
6904
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
6900
6905
  }
@@ -6945,7 +6950,7 @@ var AuditLog = (_class23 = class extends AbstractApiData {constructor(...args21)
6945
6950
  createJsonApi() {
6946
6951
  throw new Error("AuditLog is read-only");
6947
6952
  }
6948
- }, _class23);
6953
+ }, _class24);
6949
6954
 
6950
6955
  // src/features/audit-log/data/audit-log.service.ts
6951
6956
  var AuditLogService = class extends AbstractService {
@@ -7155,4 +7160,4 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
7155
7160
 
7156
7161
 
7157
7162
  exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; 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.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; 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.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.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; 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.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; 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.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.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.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
7158
- //# sourceMappingURL=chunk-QLICTZL7.js.map
7163
+ //# sourceMappingURL=chunk-FKLP4NED.js.map