@carlonicora/nextjs-jsonapi 1.46.0 → 1.47.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 (53) hide show
  1. package/dist/{BlockNoteEditor-WBCUJKNR.mjs → BlockNoteEditor-J7R24CYB.mjs} +5 -5
  2. package/dist/{BlockNoteEditor-XFHT44IV.js → BlockNoteEditor-XMBFXTHB.js} +15 -15
  3. package/dist/{BlockNoteEditor-XFHT44IV.js.map → BlockNoteEditor-XMBFXTHB.js.map} +1 -1
  4. package/dist/JsonApiRequest-CRRH5B5V.js +24 -0
  5. package/dist/{JsonApiRequest-MUPAO7DI.js.map → JsonApiRequest-CRRH5B5V.js.map} +1 -1
  6. package/dist/{JsonApiRequest-XCQHVVYD.mjs → JsonApiRequest-I2S75QTJ.mjs} +2 -2
  7. package/dist/billing/index.js +347 -347
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-WLS4D6VG.js → chunk-4MN547K7.js} +8 -1
  10. package/dist/chunk-4MN547K7.js.map +1 -0
  11. package/dist/{chunk-GCQUTWZ2.mjs → chunk-BTKJFMFL.mjs} +8 -1
  12. package/dist/chunk-BTKJFMFL.mjs.map +1 -0
  13. package/dist/{chunk-4HMQNMP6.mjs → chunk-BUCV5VFT.mjs} +2 -2
  14. package/dist/{chunk-OMYDD2UE.js → chunk-HY357JCN.js} +565 -565
  15. package/dist/chunk-HY357JCN.js.map +1 -0
  16. package/dist/{chunk-LM4SDN4Y.mjs → chunk-IPVXH3VC.mjs} +43 -5
  17. package/dist/chunk-IPVXH3VC.mjs.map +1 -0
  18. package/dist/{chunk-YM7XSACC.mjs → chunk-LYQMDZO7.mjs} +6 -6
  19. package/dist/chunk-LYQMDZO7.mjs.map +1 -0
  20. package/dist/{chunk-5PUPWZB4.js → chunk-ULHMVHDS.js} +137 -99
  21. package/dist/chunk-ULHMVHDS.js.map +1 -0
  22. package/dist/{chunk-GP3MDKGE.js → chunk-V63TFESU.js} +3 -3
  23. package/dist/{chunk-GP3MDKGE.js.map → chunk-V63TFESU.js.map} +1 -1
  24. package/dist/client/index.js +5 -5
  25. package/dist/client/index.mjs +4 -4
  26. package/dist/components/index.js +5 -5
  27. package/dist/components/index.mjs +4 -4
  28. package/dist/contexts/index.js +5 -5
  29. package/dist/contexts/index.mjs +4 -4
  30. package/dist/core/index.d.mts +12 -0
  31. package/dist/core/index.d.ts +12 -0
  32. package/dist/core/index.js +3 -3
  33. package/dist/core/index.mjs +2 -2
  34. package/dist/index.js +4 -4
  35. package/dist/index.mjs +3 -3
  36. package/dist/server/index.js +12 -12
  37. package/dist/server/index.mjs +2 -2
  38. package/package.json +1 -1
  39. package/src/components/tables/cells/cell.date.tsx +1 -3
  40. package/src/core/abstracts/AbstractApiData.ts +56 -0
  41. package/src/core/abstracts/__tests__/readIncludedPolymorphic.spec.ts +195 -0
  42. package/src/core/registry/DataClassRegistry.ts +8 -0
  43. package/src/core/registry/__tests__/DataClassRegistry.getByJsonApiType.spec.ts +138 -0
  44. package/dist/JsonApiRequest-MUPAO7DI.js +0 -24
  45. package/dist/chunk-5PUPWZB4.js.map +0 -1
  46. package/dist/chunk-GCQUTWZ2.mjs.map +0 -1
  47. package/dist/chunk-LM4SDN4Y.mjs.map +0 -1
  48. package/dist/chunk-OMYDD2UE.js.map +0 -1
  49. package/dist/chunk-WLS4D6VG.js.map +0 -1
  50. package/dist/chunk-YM7XSACC.mjs.map +0 -1
  51. /package/dist/{BlockNoteEditor-WBCUJKNR.mjs.map → BlockNoteEditor-J7R24CYB.mjs.map} +0 -0
  52. /package/dist/{JsonApiRequest-XCQHVVYD.mjs.map → JsonApiRequest-I2S75QTJ.mjs.map} +0 -0
  53. /package/dist/{chunk-4HMQNMP6.mjs.map → chunk-BUCV5VFT.mjs.map} +0 -0
@@ -14,7 +14,7 @@ var _chunkIBS6NI7Djs = require('./chunk-IBS6NI7D.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkWLS4D6VGjs = require('./chunk-WLS4D6VG.js');
17
+ var _chunk4MN547K7js = require('./chunk-4MN547K7.js');
18
18
 
19
19
 
20
20
  var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
@@ -25,12 +25,12 @@ var RehydrationFactory = class {
25
25
  _chunk7QVYU63Ejs.__name.call(void 0, this, "RehydrationFactory");
26
26
  }
27
27
  static rehydrate(classKey, data) {
28
- const factoryClass = _chunkWLS4D6VGjs.DataClassRegistry.get(classKey);
28
+ const factoryClass = _chunk4MN547K7js.DataClassRegistry.get(classKey);
29
29
  const instance = new factoryClass();
30
30
  return instance.rehydrate(data);
31
31
  }
32
32
  static rehydrateList(classKey, data) {
33
- const factoryClass = _chunkWLS4D6VGjs.DataClassRegistry.get(classKey);
33
+ const factoryClass = _chunk4MN547K7js.DataClassRegistry.get(classKey);
34
34
  const response = data.map((item) => {
35
35
  const instance = new factoryClass();
36
36
  return instance.rehydrate(item);
@@ -119,6 +119,44 @@ var AbstractApiData = class {
119
119
  included: data.included
120
120
  });
121
121
  }
122
+ /**
123
+ * Read included relationships with polymorphic type resolution.
124
+ * Determines the correct model class based on the JSON:API type in included data.
125
+ */
126
+ _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])) {
128
+ return void 0;
129
+ }
130
+ const relData = data.jsonApi.relationships[relationshipKey].data;
131
+ const typeToModule = /* @__PURE__ */ new Map();
132
+ for (const mod of candidateModules) {
133
+ typeToModule.set(mod.name, mod);
134
+ }
135
+ if (Array.isArray(relData)) {
136
+ const result = [];
137
+ for (const item of relData) {
138
+ const includedItem2 = data.included.find((inc) => inc.id === item.id && inc.type === item.type);
139
+ if (!includedItem2) continue;
140
+ const module2 = typeToModule.get(includedItem2.type);
141
+ if (!module2) continue;
142
+ result.push(
143
+ RehydrationFactory.rehydrate(module2, {
144
+ jsonApi: includedItem2,
145
+ included: data.included
146
+ })
147
+ );
148
+ }
149
+ return result.length > 0 ? result : void 0;
150
+ }
151
+ const includedItem = data.included.find((inc) => inc.id === relData.id && inc.type === relData.type);
152
+ if (!includedItem) return void 0;
153
+ const module = typeToModule.get(includedItem.type);
154
+ if (!module) return void 0;
155
+ return RehydrationFactory.rehydrate(module, {
156
+ jsonApi: includedItem,
157
+ included: data.included
158
+ });
159
+ }
122
160
  /**
123
161
  * Read included relationship data and augment with relationship meta properties.
124
162
  * Handles both single relationships (one-to-one) and array relationships (one-to-many).
@@ -195,9 +233,9 @@ var AbstractApiData = class {
195
233
  this._included = data.included;
196
234
  this._type = this._jsonApi.type;
197
235
  this._id = this._jsonApi.id;
198
- this._createdAt = _optionalChain([this, 'access', _2 => _2._jsonApi, 'access', _3 => _3.meta, 'optionalAccess', _4 => _4.createdAt]) !== void 0 ? new Date(this._jsonApi.meta.createdAt) : void 0;
199
- this._updatedAt = _optionalChain([this, 'access', _5 => _5._jsonApi, 'access', _6 => _6.meta, 'optionalAccess', _7 => _7.updatedAt]) !== void 0 ? new Date(this._jsonApi.meta.updatedAt) : void 0;
200
- this._self = _nullishCoalesce(_optionalChain([this, 'access', _8 => _8._jsonApi, 'access', _9 => _9.links, 'optionalAccess', _10 => _10.self]), () => ( void 0));
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));
201
239
  return this;
202
240
  }
203
241
  };
@@ -283,7 +321,7 @@ var AbstractService = class {
283
321
  * Make an API call with automatic environment detection and error handling.
284
322
  */
285
323
  static async callApi(params) {
286
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-MUPAO7DI.js")));
324
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-CRRH5B5V.js")));
287
325
  let apiResponse;
288
326
  let language = "en";
289
327
  if (typeof window === "undefined") {
@@ -363,7 +401,7 @@ var AbstractService = class {
363
401
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
364
402
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
365
403
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
366
- if (_optionalChain([apiResponse, 'access', _11 => _11.meta, 'optionalAccess', _12 => _12.total]) !== void 0) {
404
+ if (_optionalChain([apiResponse, 'access', _17 => _17.meta, 'optionalAccess', _18 => _18.total]) !== void 0) {
367
405
  lastApiTotal = apiResponse.meta.total;
368
406
  if (params.total) params.total.total = apiResponse.meta.total;
369
407
  }
@@ -373,7 +411,7 @@ var AbstractService = class {
373
411
  * Make an API call and return both data and meta from the response.
374
412
  */
375
413
  static async callApiWithMeta(params) {
376
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-MUPAO7DI.js")));
414
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-CRRH5B5V.js")));
377
415
  let apiResponse;
378
416
  let language = "en";
379
417
  if (typeof window === "undefined") {
@@ -458,7 +496,7 @@ var AbstractService = class {
458
496
  * Get raw JSON:API response data without deserialization.
459
497
  */
460
498
  static async getRawData(params) {
461
- const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-MUPAO7DI.js")));
499
+ const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-CRRH5B5V.js")));
462
500
  let language = "en";
463
501
  if (typeof window === "undefined") {
464
502
  const { getLocale } = await Promise.resolve().then(() => _interopRequireWildcard(require("next-intl/server")));
@@ -492,13 +530,13 @@ var _clientConfig = null;
492
530
  function configureClientJsonApi(config) {
493
531
  _clientConfig = config;
494
532
  if (config.bootstrapper) {
495
- _chunkWLS4D6VGjs.setBootstrapper.call(void 0, config.bootstrapper);
533
+ _chunk4MN547K7js.setBootstrapper.call(void 0, config.bootstrapper);
496
534
  config.bootstrapper();
497
535
  }
498
536
  }
499
537
  _chunk7QVYU63Ejs.__name.call(void 0, configureClientJsonApi, "configureClientJsonApi");
500
538
  function getClientApiUrl() {
501
- if (_optionalChain([_clientConfig, 'optionalAccess', _13 => _13.apiUrl])) {
539
+ if (_optionalChain([_clientConfig, 'optionalAccess', _19 => _19.apiUrl])) {
502
540
  return _clientConfig.apiUrl;
503
541
  }
504
542
  const envUrl = process.env.NEXT_PUBLIC_API_URL;
@@ -511,7 +549,7 @@ function getClientApiUrl() {
511
549
  }
512
550
  _chunk7QVYU63Ejs.__name.call(void 0, getClientApiUrl, "getClientApiUrl");
513
551
  function getClientAppUrl() {
514
- if (_optionalChain([_clientConfig, 'optionalAccess', _14 => _14.appUrl])) {
552
+ if (_optionalChain([_clientConfig, 'optionalAccess', _20 => _20.appUrl])) {
515
553
  return _clientConfig.appUrl;
516
554
  }
517
555
  const envUrl = process.env.NEXT_PUBLIC_ADDRESS;
@@ -524,11 +562,11 @@ function getClientAppUrl() {
524
562
  }
525
563
  _chunk7QVYU63Ejs.__name.call(void 0, getClientAppUrl, "getClientAppUrl");
526
564
  function getClientTrackablePages() {
527
- return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _15 => _15.trackablePages]), () => ( []));
565
+ return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _21 => _21.trackablePages]), () => ( []));
528
566
  }
529
567
  _chunk7QVYU63Ejs.__name.call(void 0, getClientTrackablePages, "getClientTrackablePages");
530
568
  function runClientBootstrapper() {
531
- if (_optionalChain([_clientConfig, 'optionalAccess', _16 => _16.bootstrapper])) {
569
+ if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.bootstrapper])) {
532
570
  _clientConfig.bootstrapper();
533
571
  }
534
572
  }
@@ -547,9 +585,9 @@ async function ClientJsonApiGet(params) {
547
585
  token,
548
586
  companyId: params.companyId,
549
587
  language: params.language,
550
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _17 => _17.additionalHeaders])
588
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _23 => _23.additionalHeaders])
551
589
  });
552
- return _chunkWLS4D6VGjs.translateResponse.call(void 0, {
590
+ return _chunk4MN547K7js.translateResponse.call(void 0, {
553
591
  classKey: params.classKey,
554
592
  apiResponse,
555
593
  companyId: params.companyId,
@@ -570,7 +608,7 @@ async function ClientJsonApiPost(params) {
570
608
  if (!body) {
571
609
  body = {};
572
610
  } else if (params.overridesJsonApiCreation !== true) {
573
- body = _chunkWLS4D6VGjs.JsonApiDataFactory.create(params.classKey, body);
611
+ body = _chunk4MN547K7js.JsonApiDataFactory.create(params.classKey, body);
574
612
  }
575
613
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
576
614
  method: "POST",
@@ -580,9 +618,9 @@ async function ClientJsonApiPost(params) {
580
618
  files: params.files,
581
619
  companyId: params.companyId,
582
620
  language: params.language,
583
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _18 => _18.additionalHeaders])
621
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _24 => _24.additionalHeaders])
584
622
  });
585
- return _chunkWLS4D6VGjs.translateResponse.call(void 0, {
623
+ return _chunk4MN547K7js.translateResponse.call(void 0, {
586
624
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
587
625
  apiResponse,
588
626
  companyId: params.companyId,
@@ -597,7 +635,7 @@ async function ClientJsonApiPut(params) {
597
635
  if (!body) {
598
636
  body = {};
599
637
  } else {
600
- body = _chunkWLS4D6VGjs.JsonApiDataFactory.create(params.classKey, body);
638
+ body = _chunk4MN547K7js.JsonApiDataFactory.create(params.classKey, body);
601
639
  }
602
640
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
603
641
  method: "PUT",
@@ -607,9 +645,9 @@ async function ClientJsonApiPut(params) {
607
645
  files: params.files,
608
646
  companyId: params.companyId,
609
647
  language: params.language,
610
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _19 => _19.additionalHeaders])
648
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _25 => _25.additionalHeaders])
611
649
  });
612
- return _chunkWLS4D6VGjs.translateResponse.call(void 0, {
650
+ return _chunk4MN547K7js.translateResponse.call(void 0, {
613
651
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
614
652
  apiResponse,
615
653
  companyId: params.companyId,
@@ -624,7 +662,7 @@ async function ClientJsonApiPatch(params) {
624
662
  if (!body) {
625
663
  body = {};
626
664
  } else if (params.overridesJsonApiCreation !== true) {
627
- body = _chunkWLS4D6VGjs.JsonApiDataFactory.create(params.classKey, body);
665
+ body = _chunk4MN547K7js.JsonApiDataFactory.create(params.classKey, body);
628
666
  }
629
667
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
630
668
  method: "PATCH",
@@ -634,9 +672,9 @@ async function ClientJsonApiPatch(params) {
634
672
  files: params.files,
635
673
  companyId: params.companyId,
636
674
  language: params.language,
637
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _20 => _20.additionalHeaders])
675
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
638
676
  });
639
- return _chunkWLS4D6VGjs.translateResponse.call(void 0, {
677
+ return _chunk4MN547K7js.translateResponse.call(void 0, {
640
678
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
641
679
  apiResponse,
642
680
  companyId: params.companyId,
@@ -653,9 +691,9 @@ async function ClientJsonApiDelete(params) {
653
691
  token,
654
692
  companyId: params.companyId,
655
693
  language: params.language,
656
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _21 => _21.additionalHeaders])
694
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
657
695
  });
658
- return _chunkWLS4D6VGjs.translateResponse.call(void 0, {
696
+ return _chunk4MN547K7js.translateResponse.call(void 0, {
659
697
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
660
698
  apiResponse,
661
699
  companyId: params.companyId,
@@ -811,7 +849,7 @@ var ClientAbstractService = class {
811
849
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
812
850
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
813
851
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
814
- if (_optionalChain([apiResponse, 'access', _22 => _22.meta, 'optionalAccess', _23 => _23.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
852
+ if (_optionalChain([apiResponse, 'access', _28 => _28.meta, 'optionalAccess', _29 => _29.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
815
853
  return apiResponse.data;
816
854
  }
817
855
  /**
@@ -860,7 +898,7 @@ var ModuleRegistrar = (_class = class {
860
898
  }).map((key) => modulesClass[key]);
861
899
  data.forEach((item) => {
862
900
  if (item && item.model) {
863
- _chunkWLS4D6VGjs.DataClassRegistry.registerObjectClass(item, item.model);
901
+ _chunk4MN547K7js.DataClassRegistry.registerObjectClass(item, item.model);
864
902
  }
865
903
  });
866
904
  this._isBootstrapped = true;
@@ -870,7 +908,7 @@ var ModuleRegistrar = (_class = class {
870
908
  */
871
909
  static reset() {
872
910
  this._isBootstrapped = false;
873
- _chunkWLS4D6VGjs.DataClassRegistry.clear();
911
+ _chunk4MN547K7js.DataClassRegistry.clear();
874
912
  }
875
913
  }, _class.__initStatic(), _class);
876
914
 
@@ -893,20 +931,20 @@ var ModuleRegistryClass = class {
893
931
  get(name) {
894
932
  let module = this._modules.get(name);
895
933
  if (!module) {
896
- const didBootstrap = _chunkWLS4D6VGjs.tryBootstrap.call(void 0, );
934
+ const didBootstrap = _chunk4MN547K7js.tryBootstrap.call(void 0, );
897
935
  if (didBootstrap) {
898
936
  module = this._modules.get(name);
899
937
  }
900
938
  }
901
939
  if (!module) {
902
- const hint = _chunkWLS4D6VGjs.hasBootstrapper.call(void 0, ) ? "Bootstrap was called but module still not found. Check module registration." : "No bootstrapper registered. Ensure configureJsonApi({ bootstrapper }) is called before accessing modules.";
940
+ const hint = _chunk4MN547K7js.hasBootstrapper.call(void 0, ) ? "Bootstrap was called but module still not found. Check module registration." : "No bootstrapper registered. Ensure configureJsonApi({ bootstrapper }) is called before accessing modules.";
903
941
  throw new Error(`Module "${String(name)}" not registered. ${hint}`);
904
942
  }
905
943
  return module;
906
944
  }
907
945
  findByName(moduleName) {
908
946
  if (this._modules.size === 0) {
909
- _chunkWLS4D6VGjs.tryBootstrap.call(void 0, );
947
+ _chunk4MN547K7js.tryBootstrap.call(void 0, );
910
948
  }
911
949
  for (const module of this._modules.values()) {
912
950
  if (module.name === moduleName) {
@@ -918,7 +956,7 @@ var ModuleRegistryClass = class {
918
956
  findByModelName(modelName) {
919
957
  let module = this._modules.get(modelName);
920
958
  if (!module) {
921
- const didBootstrap = _chunkWLS4D6VGjs.tryBootstrap.call(void 0, );
959
+ const didBootstrap = _chunk4MN547K7js.tryBootstrap.call(void 0, );
922
960
  if (didBootstrap) {
923
961
  module = this._modules.get(modelName);
924
962
  }
@@ -1793,14 +1831,14 @@ var BlockNoteWordDiffRendererUtil = class {
1793
1831
  return diffBlocks.map((block) => {
1794
1832
  const updatedBlock = { ...block };
1795
1833
  if (updatedBlock.diffId) {
1796
- updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _24 => _24.has, 'call', _25 => _25(updatedBlock.diffId)]) || false;
1797
- updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _26 => _26.has, 'call', _27 => _27(updatedBlock.diffId)]) || false;
1834
+ updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _30 => _30.has, 'call', _31 => _31(updatedBlock.diffId)]) || false;
1835
+ updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _32 => _32.has, 'call', _33 => _33(updatedBlock.diffId)]) || false;
1798
1836
  }
1799
1837
  if (updatedBlock.wordDiffs) {
1800
1838
  updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
1801
1839
  ...wordDiff,
1802
- accepted: _optionalChain([acceptedChanges, 'optionalAccess', _28 => _28.has, 'call', _29 => _29(wordDiff.diffId)]) || false,
1803
- rejected: _optionalChain([rejectedChanges, 'optionalAccess', _30 => _30.has, 'call', _31 => _31(wordDiff.diffId)]) || false
1840
+ accepted: _optionalChain([acceptedChanges, 'optionalAccess', _34 => _34.has, 'call', _35 => _35(wordDiff.diffId)]) || false,
1841
+ rejected: _optionalChain([rejectedChanges, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(wordDiff.diffId)]) || false
1804
1842
  }));
1805
1843
  }
1806
1844
  if (updatedBlock.children) {
@@ -1825,7 +1863,7 @@ var BlockNoteWordDiffRendererUtil = class {
1825
1863
  type: block.type || "paragraph",
1826
1864
  props: this.getBlockProps(block),
1827
1865
  content: Array.isArray(block.content) ? block.content : [],
1828
- children: _optionalChain([block, 'access', _32 => _32.children, 'optionalAccess', _33 => _33.map, 'call', _34 => _34(
1866
+ children: _optionalChain([block, 'access', _38 => _38.children, 'optionalAccess', _39 => _39.map, 'call', _40 => _40(
1829
1867
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1830
1868
  )])
1831
1869
  };
@@ -1838,7 +1876,7 @@ var BlockNoteWordDiffRendererUtil = class {
1838
1876
  type: block.type || "paragraph",
1839
1877
  props: block.props || {},
1840
1878
  content: Array.isArray(block.content) ? block.content : [],
1841
- children: _optionalChain([block, 'access', _35 => _35.children, 'optionalAccess', _36 => _36.map, 'call', _37 => _37(
1879
+ children: _optionalChain([block, 'access', _41 => _41.children, 'optionalAccess', _42 => _42.map, 'call', _43 => _43(
1842
1880
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1843
1881
  )])
1844
1882
  };
@@ -1890,7 +1928,7 @@ var BlockNoteWordDiffRendererUtil = class {
1890
1928
  type: block.type || "paragraph",
1891
1929
  props: this.getBlockProps(block),
1892
1930
  content,
1893
- children: _optionalChain([block, 'access', _38 => _38.children, 'optionalAccess', _39 => _39.map, 'call', _40 => _40(
1931
+ children: _optionalChain([block, 'access', _44 => _44.children, 'optionalAccess', _45 => _45.map, 'call', _46 => _46(
1894
1932
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1895
1933
  )])
1896
1934
  };
@@ -1912,7 +1950,7 @@ var BlockNoteWordDiffRendererUtil = class {
1912
1950
  type: block.type || "paragraph",
1913
1951
  props: block.props || {},
1914
1952
  content: Array.isArray(content) ? content : [],
1915
- children: _optionalChain([block, 'access', _41 => _41.children, 'optionalAccess', _42 => _42.map, 'call', _43 => _43((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1953
+ children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1916
1954
  };
1917
1955
  }
1918
1956
  static groupAndRenderWordDiffs(wordDiffs) {
@@ -2753,14 +2791,14 @@ var AuthService = class extends AbstractService {
2753
2791
  }
2754
2792
  static async login(params) {
2755
2793
  const language = params.language || "en-US";
2756
- const apiResponse = await _chunkWLS4D6VGjs.JsonApiPost.call(void 0, {
2794
+ const apiResponse = await _chunk4MN547K7js.JsonApiPost.call(void 0, {
2757
2795
  classKey: Modules.Auth,
2758
2796
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "login" }).generate(),
2759
2797
  body: { email: params.email, password: params.password },
2760
2798
  language
2761
2799
  });
2762
2800
  if (!apiResponse.ok) throw new Error(apiResponse.error);
2763
- if (_optionalChain([apiResponse, 'access', _44 => _44.raw, 'optionalAccess', _45 => _45.data, 'optionalAccess', _46 => _46.type]) === "two-factor-challenge") {
2801
+ if (_optionalChain([apiResponse, 'access', _50 => _50.raw, 'optionalAccess', _51 => _51.data, 'optionalAccess', _52 => _52.type]) === "two-factor-challenge") {
2764
2802
  const challenge = rehydrate(Modules.TwoFactorChallenge, {
2765
2803
  jsonApi: apiResponse.raw.data,
2766
2804
  included: _nullishCoalesce(apiResponse.raw.included, () => ( []))
@@ -2774,9 +2812,9 @@ var AuthService = class extends AbstractService {
2774
2812
  token: auth.token,
2775
2813
  refreshToken: auth.refreshToken,
2776
2814
  userId: auth.user.id,
2777
- companyId: _optionalChain([auth, 'access', _47 => _47.user, 'access', _48 => _48.company, 'optionalAccess', _49 => _49.id]),
2815
+ companyId: _optionalChain([auth, 'access', _53 => _53.user, 'access', _54 => _54.company, 'optionalAccess', _55 => _55.id]),
2778
2816
  roles: auth.user.roles.map((role) => role.id),
2779
- features: _nullishCoalesce(_optionalChain([auth, 'access', _50 => _50.user, 'access', _51 => _51.company, 'optionalAccess', _52 => _52.features, 'optionalAccess', _53 => _53.map, 'call', _54 => _54((feature) => feature.id)]), () => ( [])),
2817
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _56 => _56.user, 'access', _57 => _57.company, 'optionalAccess', _58 => _58.features, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((feature) => feature.id)]), () => ( [])),
2780
2818
  modules: auth.user.modules.map((module) => ({
2781
2819
  id: module.id,
2782
2820
  permissions: module.permissions
@@ -2786,8 +2824,8 @@ var AuthService = class extends AbstractService {
2786
2824
  return auth.user;
2787
2825
  }
2788
2826
  static async logout(params) {
2789
- const language = _optionalChain([params, 'optionalAccess', _55 => _55.language]) || "en-US";
2790
- await _chunkWLS4D6VGjs.JsonApiDelete.call(void 0, {
2827
+ const language = _optionalChain([params, 'optionalAccess', _61 => _61.language]) || "en-US";
2828
+ await _chunk4MN547K7js.JsonApiDelete.call(void 0, {
2791
2829
  classKey: Modules.Auth,
2792
2830
  endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
2793
2831
  language
@@ -2799,7 +2837,7 @@ var AuthService = class extends AbstractService {
2799
2837
  }
2800
2838
  static async initialiseForgotPassword(params) {
2801
2839
  const language = params.language || "en-US";
2802
- const response = await _chunkWLS4D6VGjs.JsonApiPost.call(void 0, {
2840
+ const response = await _chunk4MN547K7js.JsonApiPost.call(void 0, {
2803
2841
  classKey: Modules.Auth,
2804
2842
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "forgot" }).generate(),
2805
2843
  body: { email: params.email },
@@ -2828,7 +2866,7 @@ var AuthService = class extends AbstractService {
2828
2866
  }
2829
2867
  static async validateCode(params) {
2830
2868
  const language = params.language || "en-US";
2831
- const apiResponse = await _chunkWLS4D6VGjs.JsonApiGet.call(void 0, {
2869
+ const apiResponse = await _chunk4MN547K7js.JsonApiGet.call(void 0, {
2832
2870
  classKey: Modules.Auth,
2833
2871
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
2834
2872
  language
@@ -2860,9 +2898,9 @@ var AuthService = class extends AbstractService {
2860
2898
  token: auth.token,
2861
2899
  refreshToken: auth.refreshToken,
2862
2900
  userId: auth.user.id,
2863
- companyId: _optionalChain([auth, 'access', _56 => _56.user, 'access', _57 => _57.company, 'optionalAccess', _58 => _58.id]),
2901
+ companyId: _optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.id]),
2864
2902
  roles: auth.user.roles.map((role) => role.id),
2865
- features: _nullishCoalesce(_optionalChain([auth, 'access', _59 => _59.user, 'access', _60 => _60.company, 'optionalAccess', _61 => _61.features, 'optionalAccess', _62 => _62.map, 'call', _63 => _63((feature) => feature.id)]), () => ( [])),
2903
+ 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)]), () => ( [])),
2866
2904
  modules: auth.user.modules.map((module) => ({
2867
2905
  id: module.id,
2868
2906
  permissions: module.permissions
@@ -2872,7 +2910,7 @@ var AuthService = class extends AbstractService {
2872
2910
  }
2873
2911
  static async completeOAuthRegistration(params) {
2874
2912
  const endpoint = new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" });
2875
- const response = await _chunkWLS4D6VGjs.JsonApiPost.call(void 0, {
2913
+ const response = await _chunk4MN547K7js.JsonApiPost.call(void 0, {
2876
2914
  classKey: Modules.Auth,
2877
2915
  endpoint: endpoint.generate(),
2878
2916
  body: params,
@@ -3110,9 +3148,9 @@ var TwoFactorService = class extends AbstractService {
3110
3148
  token: auth.token,
3111
3149
  refreshToken: auth.refreshToken,
3112
3150
  userId: auth.user.id,
3113
- companyId: _optionalChain([auth, 'access', _64 => _64.user, 'access', _65 => _65.company, 'optionalAccess', _66 => _66.id]),
3151
+ companyId: _optionalChain([auth, 'access', _70 => _70.user, 'access', _71 => _71.company, 'optionalAccess', _72 => _72.id]),
3114
3152
  roles: auth.user.roles.map((role) => role.id),
3115
- features: _nullishCoalesce(_optionalChain([auth, 'access', _67 => _67.user, 'access', _68 => _68.company, 'optionalAccess', _69 => _69.features, 'optionalAccess', _70 => _70.map, 'call', _71 => _71((feature) => feature.id)]), () => ( [])),
3153
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _73 => _73.user, 'access', _74 => _74.company, 'optionalAccess', _75 => _75.features, 'optionalAccess', _76 => _76.map, 'call', _77 => _77((feature) => feature.id)]), () => ( [])),
3116
3154
  modules: auth.user.modules.map((module) => ({
3117
3155
  id: module.id,
3118
3156
  permissions: module.permissions
@@ -3250,8 +3288,8 @@ var BillingService = class extends AbstractService {
3250
3288
  type: Modules.StripeUsage,
3251
3289
  method: "GET" /* GET */,
3252
3290
  endpoint: endpoint.generate(),
3253
- next: _optionalChain([params, 'optionalAccess', _72 => _72.next]),
3254
- previous: _optionalChain([params, 'optionalAccess', _73 => _73.prev])
3291
+ next: _optionalChain([params, 'optionalAccess', _78 => _78.next]),
3292
+ previous: _optionalChain([params, 'optionalAccess', _79 => _79.prev])
3255
3293
  });
3256
3294
  }
3257
3295
  /**
@@ -3483,8 +3521,8 @@ var StripeCustomerService = class extends AbstractService {
3483
3521
  type: Modules.StripePaymentMethod,
3484
3522
  method: "GET" /* GET */,
3485
3523
  endpoint: endpoint.generate(),
3486
- next: _optionalChain([params, 'optionalAccess', _74 => _74.next]),
3487
- previous: _optionalChain([params, 'optionalAccess', _75 => _75.prev])
3524
+ next: _optionalChain([params, 'optionalAccess', _80 => _80.next]),
3525
+ previous: _optionalChain([params, 'optionalAccess', _81 => _81.prev])
3488
3526
  });
3489
3527
  }
3490
3528
  /**
@@ -3698,15 +3736,15 @@ var StripeInvoiceService = class extends AbstractService {
3698
3736
  const endpoint = new EndpointCreator({
3699
3737
  endpoint: Modules.StripeInvoice
3700
3738
  });
3701
- if (_optionalChain([params, 'optionalAccess', _76 => _76.status])) {
3739
+ if (_optionalChain([params, 'optionalAccess', _82 => _82.status])) {
3702
3740
  endpoint.addAdditionalParam("status", params.status);
3703
3741
  }
3704
3742
  return this.callApi({
3705
3743
  type: Modules.StripeInvoice,
3706
3744
  method: "GET" /* GET */,
3707
3745
  endpoint: endpoint.generate(),
3708
- next: _optionalChain([params, 'optionalAccess', _77 => _77.next]),
3709
- previous: _optionalChain([params, 'optionalAccess', _78 => _78.prev])
3746
+ next: _optionalChain([params, 'optionalAccess', _83 => _83.next]),
3747
+ previous: _optionalChain([params, 'optionalAccess', _84 => _84.prev])
3710
3748
  });
3711
3749
  }
3712
3750
  /**
@@ -3911,18 +3949,18 @@ var StripePriceService = class extends AbstractService {
3911
3949
  const endpoint = new EndpointCreator({
3912
3950
  endpoint: Modules.StripePrice
3913
3951
  });
3914
- if (_optionalChain([params, 'optionalAccess', _79 => _79.productId])) {
3952
+ if (_optionalChain([params, 'optionalAccess', _85 => _85.productId])) {
3915
3953
  endpoint.addAdditionalParam("productId", params.productId);
3916
3954
  }
3917
- if (_optionalChain([params, 'optionalAccess', _80 => _80.active]) !== void 0) {
3955
+ if (_optionalChain([params, 'optionalAccess', _86 => _86.active]) !== void 0) {
3918
3956
  endpoint.addAdditionalParam("active", params.active.toString());
3919
3957
  }
3920
3958
  return this.callApi({
3921
3959
  type: Modules.StripePrice,
3922
3960
  method: "GET" /* GET */,
3923
3961
  endpoint: endpoint.generate(),
3924
- next: _optionalChain([params, 'optionalAccess', _81 => _81.next]),
3925
- previous: _optionalChain([params, 'optionalAccess', _82 => _82.prev])
3962
+ next: _optionalChain([params, 'optionalAccess', _87 => _87.next]),
3963
+ previous: _optionalChain([params, 'optionalAccess', _88 => _88.prev])
3926
3964
  });
3927
3965
  }
3928
3966
  /**
@@ -4081,15 +4119,15 @@ var StripeProductService = class extends AbstractService {
4081
4119
  const endpoint = new EndpointCreator({
4082
4120
  endpoint: Modules.StripeProduct
4083
4121
  });
4084
- if (_optionalChain([params, 'optionalAccess', _83 => _83.active]) !== void 0) {
4122
+ if (_optionalChain([params, 'optionalAccess', _89 => _89.active]) !== void 0) {
4085
4123
  endpoint.addAdditionalParam("active", params.active.toString());
4086
4124
  }
4087
4125
  return this.callApi({
4088
4126
  type: Modules.StripeProduct,
4089
4127
  method: "GET" /* GET */,
4090
4128
  endpoint: endpoint.generate(),
4091
- next: _optionalChain([params, 'optionalAccess', _84 => _84.next]),
4092
- previous: _optionalChain([params, 'optionalAccess', _85 => _85.prev])
4129
+ next: _optionalChain([params, 'optionalAccess', _90 => _90.next]),
4130
+ previous: _optionalChain([params, 'optionalAccess', _91 => _91.prev])
4093
4131
  });
4094
4132
  }
4095
4133
  /**
@@ -4308,8 +4346,8 @@ var StripeSubscriptionService = class extends AbstractService {
4308
4346
  type: Modules.StripeSubscription,
4309
4347
  method: "GET" /* GET */,
4310
4348
  endpoint: endpoint.generate(),
4311
- next: _optionalChain([params, 'optionalAccess', _86 => _86.next]),
4312
- previous: _optionalChain([params, 'optionalAccess', _87 => _87.prev])
4349
+ next: _optionalChain([params, 'optionalAccess', _92 => _92.next]),
4350
+ previous: _optionalChain([params, 'optionalAccess', _93 => _93.prev])
4313
4351
  });
4314
4352
  }
4315
4353
  /**
@@ -4536,8 +4574,8 @@ var StripeUsageService = class extends AbstractService {
4536
4574
  type: Modules.StripeUsage,
4537
4575
  method: "GET" /* GET */,
4538
4576
  endpoint: endpoint.generate(),
4539
- next: _optionalChain([params, 'optionalAccess', _88 => _88.next]),
4540
- previous: _optionalChain([params, 'optionalAccess', _89 => _89.prev])
4577
+ next: _optionalChain([params, 'optionalAccess', _94 => _94.next]),
4578
+ previous: _optionalChain([params, 'optionalAccess', _95 => _95.prev])
4541
4579
  });
4542
4580
  }
4543
4581
  /**
@@ -4585,8 +4623,8 @@ var StripeUsageService = class extends AbstractService {
4585
4623
  type: Modules.StripeUsage,
4586
4624
  method: "GET" /* GET */,
4587
4625
  endpoint: endpoint.generate(),
4588
- next: _optionalChain([params, 'optionalAccess', _90 => _90.next]),
4589
- previous: _optionalChain([params, 'optionalAccess', _91 => _91.prev])
4626
+ next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
4627
+ previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
4590
4628
  });
4591
4629
  }
4592
4630
  /**
@@ -4635,7 +4673,7 @@ var StripePromotionCodeService = class {
4635
4673
  * @returns Validation result with discount details if valid
4636
4674
  */
4637
4675
  static async validatePromotionCode(params) {
4638
- const response = await _chunkWLS4D6VGjs.JsonApiPost.call(void 0, {
4676
+ const response = await _chunk4MN547K7js.JsonApiPost.call(void 0, {
4639
4677
  classKey: Modules.StripePromotionCode,
4640
4678
  endpoint: `${STRIPE_PROMOTION_CODE_ENDPOINT}/validate`,
4641
4679
  body: {
@@ -5022,8 +5060,8 @@ var ContentService = class extends AbstractService {
5022
5060
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5023
5061
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5024
5062
  }
5025
- if (_optionalChain([Modules, 'access', _92 => _92.Content, 'access', _93 => _93.inclusions, 'optionalAccess', _94 => _94.lists, 'optionalAccess', _95 => _95.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5026
- if (_optionalChain([Modules, 'access', _96 => _96.Content, 'access', _97 => _97.inclusions, 'optionalAccess', _98 => _98.lists, 'optionalAccess', _99 => _99.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5063
+ if (_optionalChain([Modules, 'access', _98 => _98.Content, 'access', _99 => _99.inclusions, 'optionalAccess', _100 => _100.lists, 'optionalAccess', _101 => _101.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5064
+ if (_optionalChain([Modules, 'access', _102 => _102.Content, 'access', _103 => _103.inclusions, 'optionalAccess', _104 => _104.lists, 'optionalAccess', _105 => _105.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5027
5065
  return this.callApi({
5028
5066
  type: Modules.Content,
5029
5067
  method: "GET" /* GET */,
@@ -5037,8 +5075,8 @@ var ContentService = class extends AbstractService {
5037
5075
  id: params.id,
5038
5076
  childEndpoint: "relevance"
5039
5077
  });
5040
- if (_optionalChain([Modules, 'access', _100 => _100.Content, 'access', _101 => _101.inclusions, 'optionalAccess', _102 => _102.lists, 'optionalAccess', _103 => _103.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5041
- if (_optionalChain([Modules, 'access', _104 => _104.Content, 'access', _105 => _105.inclusions, 'optionalAccess', _106 => _106.lists, 'optionalAccess', _107 => _107.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5078
+ if (_optionalChain([Modules, 'access', _106 => _106.Content, 'access', _107 => _107.inclusions, 'optionalAccess', _108 => _108.lists, 'optionalAccess', _109 => _109.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5079
+ if (_optionalChain([Modules, 'access', _110 => _110.Content, 'access', _111 => _111.inclusions, 'optionalAccess', _112 => _112.lists, 'optionalAccess', _113 => _113.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5042
5080
  return this.callApi({
5043
5081
  type: Modules.Content,
5044
5082
  method: "GET" /* GET */,
@@ -5054,8 +5092,8 @@ var ContentService = class extends AbstractService {
5054
5092
  });
5055
5093
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5056
5094
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5057
- if (_optionalChain([Modules, 'access', _108 => _108.Content, 'access', _109 => _109.inclusions, 'optionalAccess', _110 => _110.lists, 'optionalAccess', _111 => _111.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5058
- if (_optionalChain([Modules, 'access', _112 => _112.Content, 'access', _113 => _113.inclusions, 'optionalAccess', _114 => _114.lists, 'optionalAccess', _115 => _115.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5095
+ if (_optionalChain([Modules, 'access', _114 => _114.Content, 'access', _115 => _115.inclusions, 'optionalAccess', _116 => _116.lists, 'optionalAccess', _117 => _117.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5096
+ if (_optionalChain([Modules, 'access', _118 => _118.Content, 'access', _119 => _119.inclusions, 'optionalAccess', _120 => _120.lists, 'optionalAccess', _121 => _121.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5059
5097
  return this.callApi({
5060
5098
  type: Modules.Content,
5061
5099
  method: "GET" /* GET */,
@@ -5757,8 +5795,8 @@ var UserService = class extends AbstractService {
5757
5795
  id: params.id,
5758
5796
  childEndpoint: "user-relevance"
5759
5797
  });
5760
- if (_optionalChain([Modules, 'access', _116 => _116.User, 'access', _117 => _117.inclusions, 'optionalAccess', _118 => _118.lists, 'optionalAccess', _119 => _119.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
5761
- if (_optionalChain([Modules, 'access', _120 => _120.User, 'access', _121 => _121.inclusions, 'optionalAccess', _122 => _122.lists, 'optionalAccess', _123 => _123.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
5798
+ if (_optionalChain([Modules, 'access', _122 => _122.User, 'access', _123 => _123.inclusions, 'optionalAccess', _124 => _124.lists, 'optionalAccess', _125 => _125.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
5799
+ if (_optionalChain([Modules, 'access', _126 => _126.User, 'access', _127 => _127.inclusions, 'optionalAccess', _128 => _128.lists, 'optionalAccess', _129 => _129.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
5762
5800
  return this.callApi({
5763
5801
  type: Modules.User,
5764
5802
  method: "GET" /* GET */,
@@ -5999,7 +6037,7 @@ var OAuthService = class extends AbstractService {
5999
6037
  type: Modules.OAuth,
6000
6038
  method: "GET" /* GET */,
6001
6039
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
6002
- next: _optionalChain([params, 'optionalAccess', _124 => _124.next])
6040
+ next: _optionalChain([params, 'optionalAccess', _130 => _130.next])
6003
6041
  });
6004
6042
  }
6005
6043
  /**
@@ -6025,7 +6063,7 @@ var OAuthService = class extends AbstractService {
6025
6063
  });
6026
6064
  return {
6027
6065
  client: result.data,
6028
- clientSecret: _optionalChain([result, 'access', _125 => _125.meta, 'optionalAccess', _126 => _126.clientSecret])
6066
+ clientSecret: _optionalChain([result, 'access', _131 => _131.meta, 'optionalAccess', _132 => _132.clientSecret])
6029
6067
  };
6030
6068
  }
6031
6069
  /**
@@ -6064,7 +6102,7 @@ var OAuthService = class extends AbstractService {
6064
6102
  }).generate()
6065
6103
  });
6066
6104
  return {
6067
- clientSecret: _optionalChain([result, 'access', _127 => _127.meta, 'optionalAccess', _128 => _128.clientSecret])
6105
+ clientSecret: _optionalChain([result, 'access', _133 => _133.meta, 'optionalAccess', _134 => _134.clientSecret])
6068
6106
  };
6069
6107
  }
6070
6108
  // ==========================================
@@ -6108,7 +6146,7 @@ var OAuthService = class extends AbstractService {
6108
6146
  overridesJsonApiCreation: true
6109
6147
  });
6110
6148
  return {
6111
- redirectUrl: _optionalChain([result, 'access', _129 => _129.meta, 'optionalAccess', _130 => _130.redirectUrl])
6149
+ redirectUrl: _optionalChain([result, 'access', _135 => _135.meta, 'optionalAccess', _136 => _136.redirectUrl])
6112
6150
  };
6113
6151
  }
6114
6152
  /**
@@ -6128,7 +6166,7 @@ var OAuthService = class extends AbstractService {
6128
6166
  overridesJsonApiCreation: true
6129
6167
  });
6130
6168
  return {
6131
- redirectUrl: _optionalChain([result, 'access', _131 => _131.meta, 'optionalAccess', _132 => _132.redirectUrl])
6169
+ redirectUrl: _optionalChain([result, 'access', _137 => _137.meta, 'optionalAccess', _138 => _138.redirectUrl])
6132
6170
  };
6133
6171
  }
6134
6172
  };
@@ -6312,15 +6350,15 @@ var WaitlistService = class extends AbstractService {
6312
6350
  */
6313
6351
  static async findMany(params) {
6314
6352
  const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
6315
- if (_optionalChain([params, 'optionalAccess', _133 => _133.status])) endpoint.addAdditionalParam("status", params.status);
6316
- if (_optionalChain([params, 'optionalAccess', _134 => _134.search])) endpoint.addAdditionalParam("search", params.search);
6317
- if (_optionalChain([params, 'optionalAccess', _135 => _135.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6353
+ if (_optionalChain([params, 'optionalAccess', _139 => _139.status])) endpoint.addAdditionalParam("status", params.status);
6354
+ if (_optionalChain([params, 'optionalAccess', _140 => _140.search])) endpoint.addAdditionalParam("search", params.search);
6355
+ if (_optionalChain([params, 'optionalAccess', _141 => _141.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6318
6356
  return this.callApi({
6319
6357
  type: Modules.Waitlist,
6320
6358
  method: "GET" /* GET */,
6321
6359
  endpoint: endpoint.generate(),
6322
- next: _optionalChain([params, 'optionalAccess', _136 => _136.next]),
6323
- previous: _optionalChain([params, 'optionalAccess', _137 => _137.prev])
6360
+ next: _optionalChain([params, 'optionalAccess', _142 => _142.next]),
6361
+ previous: _optionalChain([params, 'optionalAccess', _143 => _143.prev])
6324
6362
  });
6325
6363
  }
6326
6364
  /**
@@ -6388,10 +6426,10 @@ var WaitlistService = class extends AbstractService {
6388
6426
  method: "GET" /* GET */,
6389
6427
  endpoint: endpoint.generate()
6390
6428
  });
6391
- const attributes = _optionalChain([response, 'access', _138 => _138.data, 'optionalAccess', _139 => _139._jsonApi, 'optionalAccess', _140 => _140.attributes]);
6429
+ const attributes = _optionalChain([response, 'access', _144 => _144.data, 'optionalAccess', _145 => _145._jsonApi, 'optionalAccess', _146 => _146.attributes]);
6392
6430
  return {
6393
- email: _optionalChain([attributes, 'optionalAccess', _141 => _141.email]),
6394
- valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _142 => _142.valid]), () => ( false))
6431
+ email: _optionalChain([attributes, 'optionalAccess', _147 => _147.email]),
6432
+ valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _148 => _148.valid]), () => ( false))
6395
6433
  };
6396
6434
  } catch (_error) {
6397
6435
  return null;
@@ -6697,4 +6735,4 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
6697
6735
 
6698
6736
 
6699
6737
  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.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.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.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule;
6700
- //# sourceMappingURL=chunk-5PUPWZB4.js.map
6738
+ //# sourceMappingURL=chunk-ULHMVHDS.js.map