@vc-shell/framework 2.1.0-pr254.42766e0 → 2.1.0-pr255.4dc5c0d

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 (160) hide show
  1. package/dist/ai-agent/index.js +11 -10
  2. package/dist/ai-agent/index.js.map +1 -1
  3. package/dist/charts/index.d.ts +2 -0
  4. package/dist/charts/index.d.ts.map +1 -0
  5. package/dist/charts/index.js +9 -0
  6. package/dist/charts/index.js.map +1 -0
  7. package/dist/chunks/DashboardDonutChart.vue_vue_type_script_setup_true_lang-hTcM33bM.js +446 -0
  8. package/dist/chunks/DashboardDonutChart.vue_vue_type_script_setup_true_lang-hTcM33bM.js.map +1 -0
  9. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js +1124 -0
  10. package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map +1 -0
  11. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js} +834 -1907
  12. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +1 -0
  13. package/dist/chunks/VcTableAdapter.vue_vue_type_script_setup_true_lang-BL653h9q.js +18282 -0
  14. package/dist/chunks/VcTableAdapter.vue_vue_type_script_setup_true_lang-BL653h9q.js.map +1 -0
  15. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CtkZR5a1.js +4227 -0
  16. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CtkZR5a1.js.map +1 -0
  17. package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cs-yidUE.js +641 -0
  18. package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cs-yidUE.js.map +1 -0
  19. package/dist/chunks/{index-DELXU1qy.js → index-CvSe3hjU.js} +11 -10
  20. package/dist/chunks/{index-DELXU1qy.js.map → index-CvSe3hjU.js.map} +1 -1
  21. package/dist/chunks/vendor-js-beautify-D-6mWVv0.js +1784 -0
  22. package/dist/chunks/vendor-js-beautify-D-6mWVv0.js.map +1 -0
  23. package/dist/chunks/{vendor-vueuse-core-CEdpDfzx.js → vendor-vueuse-core-BYWoPpF_.js} +5 -5
  24. package/dist/chunks/{vendor-vueuse-core-CEdpDfzx.js.map → vendor-vueuse-core-BYWoPpF_.js.map} +1 -1
  25. package/dist/core/blade-navigation/bladeConfigRegistry.d.ts +0 -11
  26. package/dist/core/blade-navigation/bladeConfigRegistry.d.ts.map +1 -1
  27. package/dist/core/blade-navigation/descriptorFactory.d.ts +2 -0
  28. package/dist/core/blade-navigation/descriptorFactory.d.ts.map +1 -0
  29. package/dist/core/blade-navigation/singletons.d.ts +0 -2
  30. package/dist/core/blade-navigation/singletons.d.ts.map +1 -1
  31. package/dist/core/blade-navigation/types/index.d.ts +12 -6
  32. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  33. package/dist/core/blade-navigation/useBladeMessaging.d.ts +1 -17
  34. package/dist/core/blade-navigation/useBladeMessaging.d.ts.map +1 -1
  35. package/dist/core/blade-navigation/useBladeStack.d.ts +1 -18
  36. package/dist/core/blade-navigation/useBladeStack.d.ts.map +1 -1
  37. package/dist/core/composables/createServiceRegistry.d.ts +42 -0
  38. package/dist/core/composables/createServiceRegistry.d.ts.map +1 -0
  39. package/dist/core/composables/useBladeNavigationAdapter/index.d.ts +0 -5
  40. package/dist/core/composables/useBladeNavigationAdapter/index.d.ts.map +1 -1
  41. package/dist/core/composables/useDashboard/index.d.ts.map +1 -1
  42. package/dist/core/composables/useEnvironmentName/index.d.ts +0 -5
  43. package/dist/core/composables/useEnvironmentName/index.d.ts.map +1 -1
  44. package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
  45. package/dist/core/composables/usePopup/index.d.ts.map +1 -1
  46. package/dist/core/composables/usePopup/preset-registry.d.ts +0 -2
  47. package/dist/core/composables/usePopup/preset-registry.d.ts.map +1 -1
  48. package/dist/core/composables/usePopup/singleton.d.ts +0 -2
  49. package/dist/core/composables/usePopup/singleton.d.ts.map +1 -1
  50. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  51. package/dist/core/composables/useSettingsMenu/index.d.ts.map +1 -1
  52. package/dist/core/composables/useSlowNetworkDetection/index.d.ts +0 -2
  53. package/dist/core/composables/useSlowNetworkDetection/index.d.ts.map +1 -1
  54. package/dist/core/composables/useTheme/index.d.ts.map +1 -1
  55. package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
  56. package/dist/core/composables/useUser/index.d.ts +0 -2
  57. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  58. package/dist/core/interceptors/index.d.ts.map +1 -1
  59. package/dist/core/notifications/notification.d.ts.map +1 -1
  60. package/dist/core/plugins/ai-agent/constants.d.ts.map +1 -1
  61. package/dist/core/plugins/ai-agent/services/message-transport.d.ts.map +1 -1
  62. package/dist/core/plugins/ai-agent/types.d.ts +12 -1
  63. package/dist/core/plugins/ai-agent/types.d.ts.map +1 -1
  64. package/dist/core/plugins/permissions/index.d.ts.map +1 -1
  65. package/dist/core/plugins/validation/rules.d.ts.map +1 -1
  66. package/dist/core/services/_internal/createGenericItemRegistry.d.ts +35 -0
  67. package/dist/core/services/_internal/createGenericItemRegistry.d.ts.map +1 -0
  68. package/dist/core/services/_internal/index.d.ts +1 -0
  69. package/dist/core/services/_internal/index.d.ts.map +1 -1
  70. package/dist/core/services/app-bar-menu-service.d.ts.map +1 -1
  71. package/dist/core/services/app-bar-mobile-buttons-service.d.ts +2 -0
  72. package/dist/core/services/app-bar-mobile-buttons-service.d.ts.map +1 -1
  73. package/dist/core/services/settings-menu-service.d.ts.map +1 -1
  74. package/dist/core/utilities/backendRegistry.d.ts +38 -0
  75. package/dist/core/utilities/backendRegistry.d.ts.map +1 -0
  76. package/dist/core/utilities/index.d.ts +1 -0
  77. package/dist/core/utilities/index.d.ts.map +1 -1
  78. package/dist/dashboard/index.d.ts +3 -0
  79. package/dist/dashboard/index.d.ts.map +1 -0
  80. package/dist/dashboard/index.js +16 -0
  81. package/dist/dashboard/index.js.map +1 -0
  82. package/dist/framework.js +2149 -3060
  83. package/dist/framework.js.map +1 -1
  84. package/dist/index.css +2 -2
  85. package/dist/index.d.ts +1 -1
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/locales/de.js +91 -3
  88. package/dist/locales/en.js +91 -3
  89. package/dist/locales/en.json +91 -3
  90. package/dist/locales/types.d.ts +88 -0
  91. package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
  92. package/dist/shell/_internal/notifications/components/notification-container/computeToastOffsets.d.ts +33 -0
  93. package/dist/shell/_internal/notifications/components/notification-container/computeToastOffsets.d.ts.map +1 -0
  94. package/dist/shell/_internal/notifications/components/notification-container/index.d.ts.map +1 -1
  95. package/dist/shell/_internal/notifications/components/notification-container/useToastStack.d.ts +17 -0
  96. package/dist/shell/_internal/notifications/components/notification-container/useToastStack.d.ts.map +1 -0
  97. package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  98. package/dist/shell/auth/utils.d.ts +6 -2
  99. package/dist/shell/auth/utils.d.ts.map +1 -1
  100. package/dist/tailwind.config.d.ts.map +1 -1
  101. package/dist/tsconfig.tsbuildinfo +1 -1
  102. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  103. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +8 -0
  104. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
  105. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  106. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +2 -0
  107. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  108. package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
  109. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +3 -0
  110. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  111. package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
  112. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts.map +1 -1
  113. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue.d.ts.map +1 -1
  114. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  115. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  116. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  117. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
  118. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +2 -0
  119. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
  120. package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts +2 -0
  121. package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
  122. package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
  123. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue.d.ts.map +1 -1
  124. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  125. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
  126. package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
  127. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  128. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  129. package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts.map +1 -1
  130. package/dist/ui/components/organisms/vc-data-table/components/DataTableBody.vue.d.ts.map +1 -1
  131. package/dist/ui/components/organisms/vc-data-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
  132. package/dist/ui/components/organisms/vc-data-table/components/DataTableHeader.vue.d.ts.map +1 -1
  133. package/dist/ui/components/organisms/vc-data-table/components/DataTableRow.vue.d.ts.map +1 -1
  134. package/dist/ui/components/organisms/vc-data-table/components/TableAddRowButton.vue.d.ts.map +1 -1
  135. package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +5 -1
  136. package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts.map +1 -1
  137. package/dist/ui/components/organisms/vc-data-table/components/TableGroupRow.vue.d.ts.map +1 -1
  138. package/dist/ui/components/organisms/vc-data-table/components/TableRow.vue.d.ts.map +1 -1
  139. package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts.map +1 -1
  140. package/dist/ui/components/organisms/vc-data-table/composables/createTableSelectionFacade.d.ts +50 -0
  141. package/dist/ui/components/organisms/vc-data-table/composables/createTableSelectionFacade.d.ts.map +1 -0
  142. package/dist/ui/components/organisms/vc-data-table/composables/index.d.ts +2 -0
  143. package/dist/ui/components/organisms/vc-data-table/composables/index.d.ts.map +1 -1
  144. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +0 -248
  145. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
  146. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
  147. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +3 -0
  148. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
  149. package/dist/ui/components/organisms/vc-data-table/vc-data-table.stories.helpers.d.ts +32 -0
  150. package/dist/ui/components/organisms/vc-data-table/vc-data-table.stories.helpers.d.ts.map +1 -0
  151. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
  152. package/dist/ui/index.js +142 -141
  153. package/dist/ui/index.js.map +1 -1
  154. package/package.json +19 -7
  155. package/tailwind.config.ts +0 -6
  156. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D077_c8I.js.map +0 -1
  157. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-BnbquDGw.js +0 -22319
  158. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-BnbquDGw.js.map +0 -1
  159. package/dist/chunks/vendor-prettier-2Sf6a5jB.js +0 -5309
  160. package/dist/chunks/vendor-prettier-2Sf6a5jB.js.map +0 -1
@@ -1,25 +1,24 @@
1
- import { ref as G, computed as d, shallowRef as ke, watch as X, getCurrentInstance as re, inject as J, isRef as Ge, provide as Pe, defineComponent as L, openBlock as S, createElementBlock as j, createElementVNode as R, createCommentVNode as Y, createStaticVNode as Fe, onMounted as ce, normalizeStyle as te, normalizeClass as q, toDisplayString as be, markRaw as Oe, createBlock as ee, resolveDynamicComponent as ge, mergeProps as oe, resolveComponent as pe, createVNode as K, unref as le, Transition as Ie, withCtx as Re, onUnmounted as De } from "vue";
2
- import { c as ne } from "./vendor-lodash-es-D2n90GJy.js";
3
- import { u as Me } from "./vendor-vueuse-core-CEdpDfzx.js";
4
- import { j as Le } from "./vendor-vueuse-shared-BlCOXw5g.js";
5
- import { L as Je } from "./vendor-lucide-vue-next-CwUrzD6N.js";
6
- const We = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
7
- function Ve(i, e) {
8
- if (typeof e == "string" && We.test(e)) {
1
+ import { ref as N, computed as u, defineComponent as T, onMounted as R, openBlock as E, createElementBlock as S, normalizeStyle as C, normalizeClass as P, toDisplayString as W, markRaw as K, createBlock as J, resolveDynamicComponent as F, createElementVNode as V, mergeProps as j, createCommentVNode as q, resolveComponent as G } from "vue";
2
+ import { u as H } from "./vendor-vueuse-core-BYWoPpF_.js";
3
+ import { j as Y } from "./vendor-vueuse-shared-BlCOXw5g.js";
4
+ import { L as X } from "./vendor-lucide-vue-next-CwUrzD6N.js";
5
+ const Z = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
6
+ function Q(i, e) {
7
+ if (typeof e == "string" && Z.test(e)) {
9
8
  const t = new Date(e);
10
9
  if (!isNaN(t.getTime()))
11
10
  return t;
12
11
  }
13
12
  return e;
14
13
  }
15
- class k {
14
+ class b {
16
15
  authToken = "";
17
16
  /**
18
17
  * JSON parse reviver for converting date strings to Date objects.
19
18
  * Subclasses use this when parsing API responses.
20
19
  * The dateReviver function is defined in File.Header.liquid template.
21
20
  */
22
- jsonParseReviver = Ve;
21
+ jsonParseReviver = Q;
23
22
  constructor() {
24
23
  }
25
24
  // Enforce always return empty string as baseUrl
@@ -33,7 +32,7 @@ class k {
33
32
  return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
34
33
  }
35
34
  }
36
- class Ke extends k {
35
+ class ee extends b {
37
36
  http;
38
37
  baseUrl;
39
38
  constructor(e, t) {
@@ -47,7 +46,7 @@ class Ke extends k {
47
46
  * @param callbackUrl (optional)
48
47
  * @return OK
49
48
  */
50
- signIn(e, t, n, r, a) {
49
+ signIn(e, t, n, r, s) {
51
50
  let o = this.baseUrl + "/externalsignin?";
52
51
  if (e === null)
53
52
  throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
@@ -57,20 +56,20 @@ class Ke extends k {
57
56
  throw new globalThis.Error("The parameter 'storeId' cannot be null.");
58
57
  if (n !== void 0 && (o += "StoreId=" + encodeURIComponent("" + n) + "&"), r === null)
59
58
  throw new globalThis.Error("The parameter 'oidcUrl' cannot be null.");
60
- if (r !== void 0 && (o += "OidcUrl=" + encodeURIComponent("" + r) + "&"), a === null)
59
+ if (r !== void 0 && (o += "OidcUrl=" + encodeURIComponent("" + r) + "&"), s === null)
61
60
  throw new globalThis.Error("The parameter 'callbackUrl' cannot be null.");
62
- a !== void 0 && (o += "CallbackUrl=" + encodeURIComponent("" + a) + "&"), o = o.replace(/[?&]$/, "");
61
+ s !== void 0 && (o += "CallbackUrl=" + encodeURIComponent("" + s) + "&"), o = o.replace(/[?&]$/, "");
63
62
  let l = {
64
63
  method: "GET",
65
64
  headers: {}
66
65
  };
67
- return this.transformOptions(l).then((c) => this.http.fetch(o, c)).then((c) => this.processSignIn(c));
66
+ return this.transformOptions(l).then((h) => this.http.fetch(o, h)).then((h) => this.processSignIn(h));
68
67
  }
69
68
  processSignIn(e) {
70
69
  const t = e.status;
71
70
  let n = {};
72
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
73
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
71
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
72
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
74
73
  }
75
74
  /**
76
75
  * @param authenticationType (optional)
@@ -88,13 +87,13 @@ class Ke extends k {
88
87
  method: "GET",
89
88
  headers: {}
90
89
  };
91
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processSignOut(a));
90
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processSignOut(s));
92
91
  }
93
92
  processSignOut(e) {
94
93
  const t = e.status;
95
94
  let n = {};
96
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
97
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
95
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
96
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
98
97
  }
99
98
  /**
100
99
  * @param returnUrl (optional)
@@ -114,8 +113,8 @@ class Ke extends k {
114
113
  processSignInCallback(e) {
115
114
  const t = e.status;
116
115
  let n = {};
117
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
118
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
116
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
117
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
119
118
  }
120
119
  /**
121
120
  * @return OK
@@ -134,13 +133,13 @@ class Ke extends k {
134
133
  processGetExternalLoginProviders(e) {
135
134
  const t = e.status;
136
135
  let n = {};
137
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
138
- let a = null;
139
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
140
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
136
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
137
+ let s = null;
138
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
139
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
141
140
  }
142
141
  }
143
- class fr extends k {
142
+ class we extends b {
144
143
  http;
145
144
  baseUrl;
146
145
  constructor(e, t) {
@@ -176,10 +175,10 @@ class fr extends k {
176
175
  processGetManifest(e) {
177
176
  const t = e.status;
178
177
  let n = {};
179
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
180
- let a = null;
181
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
182
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
178
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
179
+ let s = null;
180
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
181
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
183
182
  }
184
183
  /**
185
184
  * Force-invalidate the manifest cache for every `appId`. The next
@@ -205,11 +204,11 @@ class fr extends k {
205
204
  processInvalidateManifestCache(e) {
206
205
  const t = e.status;
207
206
  let n = {};
208
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
209
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
207
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
208
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
210
209
  }
211
210
  }
212
- class pr extends k {
211
+ class Ae extends b {
213
212
  http;
214
213
  baseUrl;
215
214
  constructor(e, t) {
@@ -233,13 +232,13 @@ class pr extends k {
233
232
  processGetApps(e) {
234
233
  const t = e.status;
235
234
  let n = {};
236
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
237
- let a = null;
238
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
239
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
235
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
236
+ let s = null;
237
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
238
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
240
239
  }
241
240
  }
242
- class mr extends k {
241
+ class je extends b {
243
242
  http;
244
243
  baseUrl;
245
244
  constructor(e, t) {
@@ -260,8 +259,8 @@ class mr extends k {
260
259
  processRevokeCurrentUserToken(e) {
261
260
  const t = e.status;
262
261
  let n = {};
263
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
264
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
262
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
263
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
265
264
  }
266
265
  /**
267
266
  * @return OK
@@ -270,25 +269,25 @@ class mr extends k {
270
269
  let t = this.baseUrl + "/connect/token";
271
270
  t = t.replace(/[?&]$/, "");
272
271
  let r = {
273
- body: Object.keys(e).map((a) => encodeURIComponent(a) + "=" + encodeURIComponent(e[a])).join("&"),
272
+ body: Object.keys(e).map((s) => encodeURIComponent(s) + "=" + encodeURIComponent(e[s])).join("&"),
274
273
  method: "POST",
275
274
  headers: {
276
275
  "Content-Type": "application/x-www-form-urlencoded",
277
276
  Accept: "application/json"
278
277
  }
279
278
  };
280
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processExchange(a));
279
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processExchange(s));
281
280
  }
282
281
  processExchange(e) {
283
282
  const t = e.status;
284
283
  let n = {};
285
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
286
- let a = null;
287
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
284
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
285
+ let s = null;
286
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
288
287
  }) : t === 400 ? e.text().then((r) => {
289
- let a = null;
290
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s("Bad Request", t, r, n, a);
291
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
288
+ let s = null;
289
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a("Bad Request", t, r, n, s);
290
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
292
291
  }
293
292
  /**
294
293
  * @return OK
@@ -305,8 +304,8 @@ class mr extends k {
305
304
  processAuthorizeGET(e) {
306
305
  const t = e.status;
307
306
  let n = {};
308
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
309
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
307
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
308
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
310
309
  }
311
310
  /**
312
311
  * @return OK
@@ -323,8 +322,8 @@ class mr extends k {
323
322
  processAuthorizePOST(e) {
324
323
  const t = e.status;
325
324
  let n = {};
326
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
327
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
325
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
326
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
328
327
  }
329
328
  /**
330
329
  * @return OK
@@ -341,8 +340,8 @@ class mr extends k {
341
340
  processUserinfoGET(e) {
342
341
  const t = e.status;
343
342
  let n = {};
344
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
345
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
343
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
344
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
346
345
  }
347
346
  /**
348
347
  * @return OK
@@ -359,8 +358,8 @@ class mr extends k {
359
358
  processUserinfoPOST(e) {
360
359
  const t = e.status;
361
360
  let n = {};
362
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
363
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
361
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
362
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
364
363
  }
365
364
  /**
366
365
  * @return OK
@@ -377,11 +376,11 @@ class mr extends k {
377
376
  processLogout(e) {
378
377
  const t = e.status;
379
378
  let n = {};
380
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
381
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
379
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
380
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
382
381
  }
383
382
  }
384
- class vr extends k {
383
+ class Re extends b {
385
384
  http;
386
385
  baseUrl;
387
386
  constructor(e, t) {
@@ -406,8 +405,8 @@ class vr extends k {
406
405
  processForceChanges(e) {
407
406
  const t = e.status;
408
407
  let n = {};
409
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
410
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
408
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
409
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
411
410
  }
412
411
  /**
413
412
  * @return No Content
@@ -424,8 +423,8 @@ class vr extends k {
424
423
  processResetPlatformCache(e) {
425
424
  const t = e.status;
426
425
  let n = {};
427
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
428
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
426
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
427
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
429
428
  }
430
429
  /**
431
430
  * Get last modified date for given scope
@@ -449,10 +448,10 @@ class vr extends k {
449
448
  processGetLastModifiedDate(e) {
450
449
  const t = e.status;
451
450
  let n = {};
452
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
453
- let a = null;
454
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
455
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
451
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
452
+ let s = null;
453
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
454
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
456
455
  }
457
456
  /**
458
457
  * @param body (optional)
@@ -469,15 +468,15 @@ class vr extends k {
469
468
  Accept: "application/json"
470
469
  }
471
470
  };
472
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetChangedEntities(a));
471
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processGetChangedEntities(s));
473
472
  }
474
473
  processGetChangedEntities(e) {
475
474
  const t = e.status;
476
475
  let n = {};
477
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
478
- let a = null;
479
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
480
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
476
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
477
+ let s = null;
478
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
479
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
481
480
  }
482
481
  /**
483
482
  * @param body (optional)
@@ -493,13 +492,13 @@ class vr extends k {
493
492
  "Content-Type": "application/json-patch+json"
494
493
  }
495
494
  };
496
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processResetChangedEntities(a));
495
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processResetChangedEntities(s));
497
496
  }
498
497
  processResetChangedEntities(e) {
499
498
  const t = e.status;
500
499
  let n = {};
501
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
502
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
500
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
501
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
503
502
  }
504
503
  /**
505
504
  * @param body (optional)
@@ -516,15 +515,15 @@ class vr extends k {
516
515
  Accept: "application/json"
517
516
  }
518
517
  };
519
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchChanges(a));
518
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchChanges(s));
520
519
  }
521
520
  processSearchChanges(e) {
522
521
  const t = e.status;
523
522
  let n = {};
524
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
525
- let a = null;
526
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
527
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
523
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
524
+ let s = null;
525
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
526
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
528
527
  }
529
528
  /**
530
529
  * @param body (optional)
@@ -541,15 +540,15 @@ class vr extends k {
541
540
  Accept: "application/json"
542
541
  }
543
542
  };
544
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchChangesV2(a));
543
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchChangesV2(s));
545
544
  }
546
545
  processSearchChangesV2(e) {
547
546
  const t = e.status;
548
547
  let n = {};
549
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
550
- let a = null;
551
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
552
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
548
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
549
+ let s = null;
550
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
551
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
553
552
  }
554
553
  /**
555
554
  * @param start (optional)
@@ -565,24 +564,24 @@ class vr extends k {
565
564
  if (t !== void 0 && (r += "start=" + encodeURIComponent(t ? "" + t.toISOString() : "") + "&"), n === null)
566
565
  throw new globalThis.Error("The parameter 'end' cannot be null.");
567
566
  n !== void 0 && (r += "end=" + encodeURIComponent(n ? "" + n.toISOString() : "") + "&"), r = r.replace(/[?&]$/, "");
568
- let a = {
567
+ let s = {
569
568
  method: "GET",
570
569
  headers: {
571
570
  Accept: "application/json"
572
571
  }
573
572
  };
574
- return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processSearchTypeChangeHistory(o));
573
+ return this.transformOptions(s).then((o) => this.http.fetch(r, o)).then((o) => this.processSearchTypeChangeHistory(o));
575
574
  }
576
575
  processSearchTypeChangeHistory(e) {
577
576
  const t = e.status;
578
577
  let n = {};
579
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
580
- let a = null;
581
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
582
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
578
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
579
+ let s = null;
580
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
581
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
583
582
  }
584
583
  }
585
- class gr extends k {
584
+ class Ce extends b {
586
585
  http;
587
586
  baseUrl;
588
587
  constructor(e, t) {
@@ -605,13 +604,13 @@ class gr extends k {
605
604
  processGetDeveloperTools(e) {
606
605
  const t = e.status;
607
606
  let n = {};
608
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
609
- let a = null;
610
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
611
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
607
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
608
+ let s = null;
609
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
610
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
612
611
  }
613
612
  }
614
- class br extends k {
613
+ class Ie extends b {
615
614
  http;
616
615
  baseUrl;
617
616
  constructor(e, t) {
@@ -634,10 +633,10 @@ class br extends k {
634
633
  processGetSystemInfo(e) {
635
634
  const t = e.status;
636
635
  let n = {};
637
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
638
- let a = null;
639
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
640
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
636
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
637
+ let s = null;
638
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
639
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
641
640
  }
642
641
  /**
643
642
  * Get installed modules with errors
@@ -657,13 +656,13 @@ class br extends k {
657
656
  processGetModulesErrors(e) {
658
657
  const t = e.status;
659
658
  let n = {};
660
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
661
- let a = null;
662
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
663
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
659
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
660
+ let s = null;
661
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
662
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
664
663
  }
665
664
  }
666
- class xr extends k {
665
+ class ze extends b {
667
666
  http;
668
667
  baseUrl;
669
668
  constructor(e, t) {
@@ -687,10 +686,10 @@ class xr extends k {
687
686
  processGetObjectTypes(e) {
688
687
  const t = e.status;
689
688
  let n = {};
690
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
691
- let a = null;
692
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
693
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
689
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
690
+ let s = null;
691
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
692
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
694
693
  }
695
694
  /**
696
695
  * @param id (optional)
@@ -712,10 +711,10 @@ class xr extends k {
712
711
  processGetAllDynamicProperties(e) {
713
712
  const t = e.status;
714
713
  let n = {};
715
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
716
- let a = null;
717
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
718
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
714
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
715
+ let s = null;
716
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
717
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
719
718
  }
720
719
  /**
721
720
  * Add new dynamic property
@@ -733,15 +732,15 @@ class xr extends k {
733
732
  Accept: "application/json"
734
733
  }
735
734
  };
736
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processCreateProperty(a));
735
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processCreateProperty(s));
737
736
  }
738
737
  processCreateProperty(e) {
739
738
  const t = e.status;
740
739
  let n = {};
741
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
742
- let a = null;
743
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
744
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
740
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
741
+ let s = null;
742
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
743
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
745
744
  }
746
745
  /**
747
746
  * Update existing dynamic property
@@ -758,13 +757,13 @@ class xr extends k {
758
757
  "Content-Type": "application/json-patch+json"
759
758
  }
760
759
  };
761
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateProperty(a));
760
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdateProperty(s));
762
761
  }
763
762
  processUpdateProperty(e) {
764
763
  const t = e.status;
765
764
  let n = {};
766
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
767
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
765
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
766
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
768
767
  }
769
768
  /**
770
769
  * Delete dynamic property
@@ -787,8 +786,8 @@ class xr extends k {
787
786
  processDeleteProperty(e) {
788
787
  const t = e.status;
789
788
  let n = {};
790
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
791
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
789
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
790
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
792
791
  }
793
792
  /**
794
793
  * Get dynamic properties registered for object type
@@ -806,15 +805,15 @@ class xr extends k {
806
805
  Accept: "application/json"
807
806
  }
808
807
  };
809
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchDynamicProperties(a));
808
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchDynamicProperties(s));
810
809
  }
811
810
  processSearchDynamicProperties(e) {
812
811
  const t = e.status;
813
812
  let n = {};
814
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
815
- let a = null;
816
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
817
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
813
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
814
+ let s = null;
815
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
816
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
818
817
  }
819
818
  /**
820
819
  * Does nothing. Just a way to expose DynamicObjectProperty thru Swagger.
@@ -834,10 +833,10 @@ class xr extends k {
834
833
  processExposeDynamicObjectProperty(e) {
835
834
  const t = e.status;
836
835
  let n = {};
837
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
838
- let a = null;
839
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
840
- }) : t === 204 ? e.text().then((r) => s("No Content", t, r, n)) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
836
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
837
+ let s = null;
838
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
839
+ }) : t === 204 ? e.text().then((r) => a("No Content", t, r, n)) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
841
840
  }
842
841
  /**
843
842
  * @param propertyId (optional)
@@ -859,10 +858,10 @@ class xr extends k {
859
858
  processGetAllDictionaryItems(e) {
860
859
  const t = e.status;
861
860
  let n = {};
862
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
863
- let a = null;
864
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
865
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
861
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
862
+ let s = null;
863
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
864
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
866
865
  }
867
866
  /**
868
867
  * Add or update dictionary items
@@ -879,13 +878,13 @@ class xr extends k {
879
878
  "Content-Type": "application/json-patch+json"
880
879
  }
881
880
  };
882
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSaveDictionaryItems(a));
881
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSaveDictionaryItems(s));
883
882
  }
884
883
  processSaveDictionaryItems(e) {
885
884
  const t = e.status;
886
885
  let n = {};
887
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
888
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
886
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
887
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
889
888
  }
890
889
  /**
891
890
  * Delete dictionary items
@@ -908,8 +907,8 @@ class xr extends k {
908
907
  processDeleteDictionaryItem(e) {
909
908
  const t = e.status;
910
909
  let n = {};
911
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
912
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
910
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
911
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
913
912
  }
914
913
  /**
915
914
  * Get dictionary items
@@ -927,18 +926,18 @@ class xr extends k {
927
926
  Accept: "application/json"
928
927
  }
929
928
  };
930
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchDictionaryItems(a));
929
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchDictionaryItems(s));
931
930
  }
932
931
  processSearchDictionaryItems(e) {
933
932
  const t = e.status;
934
933
  let n = {};
935
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
936
- let a = null;
937
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
938
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
934
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
935
+ let s = null;
936
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
937
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
939
938
  }
940
939
  }
941
- class Er extends k {
940
+ class $e extends b {
942
941
  http;
943
942
  baseUrl;
944
943
  constructor(e, t) {
@@ -965,13 +964,13 @@ class Er extends k {
965
964
  processGetStatus(e) {
966
965
  const t = e.status;
967
966
  let n = {};
968
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
969
- let a = null;
970
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
971
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
967
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
968
+ let s = null;
969
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
970
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
972
971
  }
973
972
  }
974
- class yr extends k {
973
+ class Ne extends b {
975
974
  http;
976
975
  baseUrl;
977
976
  constructor(e, t) {
@@ -994,10 +993,10 @@ class yr extends k {
994
993
  processGetSettingsAndLanguages(e) {
995
994
  const t = e.status;
996
995
  let n = {};
997
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
998
- let a = null;
999
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1000
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
996
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
997
+ let s = null;
998
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
999
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1001
1000
  }
1002
1001
  /**
1003
1002
  * @return OK
@@ -1015,15 +1014,15 @@ class yr extends k {
1015
1014
  Accept: "application/json"
1016
1015
  }
1017
1016
  };
1018
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetDictionaryValues(a));
1017
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetDictionaryValues(s));
1019
1018
  }
1020
1019
  processGetDictionaryValues(e) {
1021
1020
  const t = e.status;
1022
1021
  let n = {};
1023
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1024
- let a = null;
1025
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1026
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1022
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1023
+ let s = null;
1024
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1025
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1027
1026
  }
1028
1027
  /**
1029
1028
  * @param body (optional)
@@ -1034,20 +1033,20 @@ class yr extends k {
1034
1033
  if (e == null)
1035
1034
  throw new globalThis.Error("The parameter 'name' must be defined.");
1036
1035
  n = n.replace("{name}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1037
- let a = {
1036
+ let s = {
1038
1037
  body: JSON.stringify(t),
1039
1038
  method: "POST",
1040
1039
  headers: {
1041
1040
  "Content-Type": "application/json-patch+json"
1042
1041
  }
1043
1042
  };
1044
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveDictionaryItems(o));
1043
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveDictionaryItems(o));
1045
1044
  }
1046
1045
  processSaveDictionaryItems(e) {
1047
1046
  const t = e.status;
1048
1047
  let n = {};
1049
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1050
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1048
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1049
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1051
1050
  }
1052
1051
  /**
1053
1052
  * @param values (optional)
@@ -1059,23 +1058,23 @@ class yr extends k {
1059
1058
  throw new globalThis.Error("The parameter 'name' must be defined.");
1060
1059
  if (n = n.replace("{name}", encodeURIComponent("" + e)), t === null)
1061
1060
  throw new globalThis.Error("The parameter 'values' cannot be null.");
1062
- t !== void 0 && t && t.forEach((a) => {
1063
- n += "values=" + encodeURIComponent("" + a) + "&";
1061
+ t !== void 0 && t && t.forEach((s) => {
1062
+ n += "values=" + encodeURIComponent("" + s) + "&";
1064
1063
  }), n = n.replace(/[?&]$/, "");
1065
1064
  let r = {
1066
1065
  method: "DELETE",
1067
1066
  headers: {}
1068
1067
  };
1069
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processDeleteDictionaryItems(a));
1068
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processDeleteDictionaryItems(s));
1070
1069
  }
1071
1070
  processDeleteDictionaryItems(e) {
1072
1071
  const t = e.status;
1073
1072
  let n = {};
1074
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1075
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1073
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1074
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1076
1075
  }
1077
1076
  }
1078
- class _r extends k {
1077
+ class Ge extends b {
1079
1078
  http;
1080
1079
  baseUrl;
1081
1080
  constructor(e, t) {
@@ -1097,8 +1096,8 @@ class _r extends k {
1097
1096
  processReloadModules(e) {
1098
1097
  const t = e.status;
1099
1098
  let n = {};
1100
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1101
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1099
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1100
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1102
1101
  }
1103
1102
  /**
1104
1103
  * Get installed modules
@@ -1118,10 +1117,10 @@ class _r extends k {
1118
1117
  processGetModules(e) {
1119
1118
  const t = e.status;
1120
1119
  let n = {};
1121
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1122
- let a = null;
1123
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1124
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1120
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1121
+ let s = null;
1122
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1123
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1125
1124
  }
1126
1125
  /**
1127
1126
  * Get all dependent modules for a module
@@ -1139,15 +1138,15 @@ class _r extends k {
1139
1138
  Accept: "application/json"
1140
1139
  }
1141
1140
  };
1142
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetDependingModules(a));
1141
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processGetDependingModules(s));
1143
1142
  }
1144
1143
  processGetDependingModules(e) {
1145
1144
  const t = e.status;
1146
1145
  let n = {};
1147
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1148
- let a = null;
1149
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1150
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1146
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1147
+ let s = null;
1148
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1149
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1151
1150
  }
1152
1151
  /**
1153
1152
  * Returns a flat expanded list of modules that depend on passed modules
@@ -1165,15 +1164,15 @@ class _r extends k {
1165
1164
  Accept: "application/json"
1166
1165
  }
1167
1166
  };
1168
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetMissingDependencies(a));
1167
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processGetMissingDependencies(s));
1169
1168
  }
1170
1169
  processGetMissingDependencies(e) {
1171
1170
  const t = e.status;
1172
1171
  let n = {};
1173
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1174
- let a = null;
1175
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1176
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1172
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1173
+ let s = null;
1174
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1175
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1177
1176
  }
1178
1177
  /**
1179
1178
  * Upload module package for installation or update
@@ -1193,10 +1192,10 @@ class _r extends k {
1193
1192
  processUploadModuleArchive(e) {
1194
1193
  const t = e.status;
1195
1194
  let n = {};
1196
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1197
- let a = null;
1198
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1199
- }) : t === 400 ? e.text().then((r) => s("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1195
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1196
+ let s = null;
1197
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1198
+ }) : t === 400 ? e.text().then((r) => a("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1200
1199
  }
1201
1200
  /**
1202
1201
  * Install modules
@@ -1214,15 +1213,15 @@ class _r extends k {
1214
1213
  Accept: "application/json"
1215
1214
  }
1216
1215
  };
1217
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processInstallModules(a));
1216
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processInstallModules(s));
1218
1217
  }
1219
1218
  processInstallModules(e) {
1220
1219
  const t = e.status;
1221
1220
  let n = {};
1222
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1223
- let a = null;
1224
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1225
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1221
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1222
+ let s = null;
1223
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1224
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1226
1225
  }
1227
1226
  /**
1228
1227
  * Install modules using lightweight requests
@@ -1240,15 +1239,15 @@ class _r extends k {
1240
1239
  Accept: "application/json"
1241
1240
  }
1242
1241
  };
1243
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processInstallModuleRequests(a));
1242
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processInstallModuleRequests(s));
1244
1243
  }
1245
1244
  processInstallModuleRequests(e) {
1246
1245
  const t = e.status;
1247
1246
  let n = {};
1248
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1249
- let a = null;
1250
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1251
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1247
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1248
+ let s = null;
1249
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1250
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1252
1251
  }
1253
1252
  /**
1254
1253
  * Update modules
@@ -1266,15 +1265,15 @@ class _r extends k {
1266
1265
  Accept: "application/json"
1267
1266
  }
1268
1267
  };
1269
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateModules(a));
1268
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdateModules(s));
1270
1269
  }
1271
1270
  processUpdateModules(e) {
1272
1271
  const t = e.status;
1273
1272
  let n = {};
1274
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1275
- let a = null;
1276
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1277
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1273
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1274
+ let s = null;
1275
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1276
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1278
1277
  }
1279
1278
  /**
1280
1279
  * Update modules using lightweight requests
@@ -1292,15 +1291,15 @@ class _r extends k {
1292
1291
  Accept: "application/json"
1293
1292
  }
1294
1293
  };
1295
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateModuleRequests(a));
1294
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdateModuleRequests(s));
1296
1295
  }
1297
1296
  processUpdateModuleRequests(e) {
1298
1297
  const t = e.status;
1299
1298
  let n = {};
1300
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1301
- let a = null;
1302
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1303
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1299
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1300
+ let s = null;
1301
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1302
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1304
1303
  }
1305
1304
  /**
1306
1305
  * Uninstall module
@@ -1318,15 +1317,15 @@ class _r extends k {
1318
1317
  Accept: "application/json"
1319
1318
  }
1320
1319
  };
1321
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUninstallModule(a));
1320
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUninstallModule(s));
1322
1321
  }
1323
1322
  processUninstallModule(e) {
1324
1323
  const t = e.status;
1325
1324
  let n = {};
1326
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1327
- let a = null;
1328
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1329
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1325
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1326
+ let s = null;
1327
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1328
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1330
1329
  }
1331
1330
  /**
1332
1331
  * Uninstall modules using lightweight requests
@@ -1344,15 +1343,15 @@ class _r extends k {
1344
1343
  Accept: "application/json"
1345
1344
  }
1346
1345
  };
1347
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUninstallModuleRequests(a));
1346
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUninstallModuleRequests(s));
1348
1347
  }
1349
1348
  processUninstallModuleRequests(e) {
1350
1349
  const t = e.status;
1351
1350
  let n = {};
1352
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1353
- let a = null;
1354
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1355
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1351
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1352
+ let s = null;
1353
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1354
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1356
1355
  }
1357
1356
  /**
1358
1357
  * Restart web application
@@ -1370,8 +1369,8 @@ class _r extends k {
1370
1369
  processRestart(e) {
1371
1370
  const t = e.status;
1372
1371
  let n = {};
1373
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1374
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1372
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1373
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1375
1374
  }
1376
1375
  /**
1377
1376
  * Auto-install modules with specified groups
@@ -1391,10 +1390,10 @@ class _r extends k {
1391
1390
  processTryToAutoInstallModules(e) {
1392
1391
  const t = e.status;
1393
1392
  let n = {};
1394
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1395
- let a = null;
1396
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1397
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1393
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1394
+ let s = null;
1395
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1396
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1398
1397
  }
1399
1398
  /**
1400
1399
  * Get module loading order
@@ -1414,10 +1413,10 @@ class _r extends k {
1414
1413
  processGetModulesLoadingOrder(e) {
1415
1414
  const t = e.status;
1416
1415
  let n = {};
1417
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1418
- let a = null;
1419
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1420
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1416
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1417
+ let s = null;
1418
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1419
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1421
1420
  }
1422
1421
  /**
1423
1422
  * Validate that a specific module version package exists at the download URL.
@@ -1438,15 +1437,15 @@ class _r extends k {
1438
1437
  Accept: "application/json"
1439
1438
  }
1440
1439
  };
1441
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processValidateModuleVersion(a));
1440
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processValidateModuleVersion(s));
1442
1441
  }
1443
1442
  processValidateModuleVersion(e) {
1444
1443
  const t = e.status;
1445
1444
  let n = {};
1446
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1447
- let a = null;
1448
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1449
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1445
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1446
+ let s = null;
1447
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1448
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1450
1449
  }
1451
1450
  /**
1452
1451
  * Install a specific version of a module.
@@ -1468,15 +1467,15 @@ class _r extends k {
1468
1467
  Accept: "application/json"
1469
1468
  }
1470
1469
  };
1471
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processInstallModuleVersion(a));
1470
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processInstallModuleVersion(s));
1472
1471
  }
1473
1472
  processInstallModuleVersion(e) {
1474
1473
  const t = e.status;
1475
1474
  let n = {};
1476
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1477
- let a = null;
1478
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1479
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t === 404 ? e.text().then((r) => s("Not Found", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1475
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1476
+ let s = null;
1477
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1478
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t === 404 ? e.text().then((r) => a("Not Found", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1480
1479
  }
1481
1480
  /**
1482
1481
  * Install the latest available version of a module.
@@ -1499,10 +1498,10 @@ class _r extends k {
1499
1498
  processInstallModule(e) {
1500
1499
  const t = e.status;
1501
1500
  let n = {};
1502
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1503
- let a = null;
1504
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1505
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1501
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1502
+ let s = null;
1503
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1504
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1506
1505
  }
1507
1506
  /**
1508
1507
  * Uninstall a module.
@@ -1525,13 +1524,13 @@ class _r extends k {
1525
1524
  processUninstallSingleModule(e) {
1526
1525
  const t = e.status;
1527
1526
  let n = {};
1528
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1529
- let a = null;
1530
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1531
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1527
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1528
+ let s = null;
1529
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1530
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1532
1531
  }
1533
1532
  }
1534
- class Ur extends k {
1533
+ class ke extends b {
1535
1534
  http;
1536
1535
  baseUrl;
1537
1536
  constructor(e, t) {
@@ -1554,10 +1553,10 @@ class Ur extends k {
1554
1553
  processNew(e) {
1555
1554
  const t = e.status;
1556
1555
  let n = {};
1557
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1558
- let a = null;
1559
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1560
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1556
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1557
+ let s = null;
1558
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1559
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1561
1560
  }
1562
1561
  /**
1563
1562
  * @param body (optional)
@@ -1574,15 +1573,15 @@ class Ur extends k {
1574
1573
  Accept: "application/json"
1575
1574
  }
1576
1575
  };
1577
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSave(a));
1576
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSave(s));
1578
1577
  }
1579
1578
  processSave(e) {
1580
1579
  const t = e.status;
1581
1580
  let n = {};
1582
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1583
- let a = null;
1584
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1585
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1581
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1582
+ let s = null;
1583
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1584
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1586
1585
  }
1587
1586
  /**
1588
1587
  * @param clientIds (optional)
@@ -1604,8 +1603,8 @@ class Ur extends k {
1604
1603
  processDelete(e) {
1605
1604
  const t = e.status;
1606
1605
  let n = {};
1607
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1608
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1606
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1607
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1609
1608
  }
1610
1609
  /**
1611
1610
  * @param body (optional)
@@ -1622,18 +1621,18 @@ class Ur extends k {
1622
1621
  Accept: "application/json"
1623
1622
  }
1624
1623
  };
1625
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearch(a));
1624
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearch(s));
1626
1625
  }
1627
1626
  processSearch(e) {
1628
1627
  const t = e.status;
1629
1628
  let n = {};
1630
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1631
- let a = null;
1632
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1633
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1629
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1630
+ let s = null;
1631
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1632
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1634
1633
  }
1635
1634
  }
1636
- class Tr extends k {
1635
+ class Je extends b {
1637
1636
  http;
1638
1637
  baseUrl;
1639
1638
  constructor(e, t) {
@@ -1655,15 +1654,15 @@ class Tr extends k {
1655
1654
  Accept: "application/json"
1656
1655
  }
1657
1656
  };
1658
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchPushNotification(a));
1657
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchPushNotification(s));
1659
1658
  }
1660
1659
  processSearchPushNotification(e) {
1661
1660
  const t = e.status;
1662
1661
  let n = {};
1663
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1664
- let a = null;
1665
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1666
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1662
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1663
+ let s = null;
1664
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1665
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1667
1666
  }
1668
1667
  /**
1669
1668
  * Mark all notifications as read
@@ -1683,13 +1682,13 @@ class Tr extends k {
1683
1682
  processMarkAllAsRead(e) {
1684
1683
  const t = e.status;
1685
1684
  let n = {};
1686
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1687
- let a = null;
1688
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1689
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1685
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1686
+ let s = null;
1687
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1688
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1690
1689
  }
1691
1690
  }
1692
- class qe extends k {
1691
+ class te extends b {
1693
1692
  http;
1694
1693
  baseUrl;
1695
1694
  constructor(e, t) {
@@ -1704,7 +1703,7 @@ class qe extends k {
1704
1703
  if (e == null)
1705
1704
  throw new globalThis.Error("The parameter 'userId' must be defined.");
1706
1705
  n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1707
- let a = {
1706
+ let s = {
1708
1707
  body: JSON.stringify(t),
1709
1708
  method: "POST",
1710
1709
  headers: {
@@ -1712,15 +1711,15 @@ class qe extends k {
1712
1711
  Accept: "application/json"
1713
1712
  }
1714
1713
  };
1715
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSearchUserSessions(o));
1714
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processSearchUserSessions(o));
1716
1715
  }
1717
1716
  processSearchUserSessions(e) {
1718
1717
  const t = e.status;
1719
1718
  let n = {};
1720
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1721
- let a = null;
1722
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1723
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1719
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1720
+ let s = null;
1721
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1722
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1724
1723
  }
1725
1724
  /**
1726
1725
  * @return No Content
@@ -1736,13 +1735,13 @@ class qe extends k {
1736
1735
  method: "DELETE",
1737
1736
  headers: {}
1738
1737
  };
1739
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processTerminateUserSession(a));
1738
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processTerminateUserSession(s));
1740
1739
  }
1741
1740
  processTerminateUserSession(e) {
1742
1741
  const t = e.status;
1743
1742
  let n = {};
1744
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1745
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1743
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1744
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1746
1745
  }
1747
1746
  /**
1748
1747
  * @return No Content
@@ -1761,8 +1760,8 @@ class qe extends k {
1761
1760
  processTerminateAllUserSessions(e) {
1762
1761
  const t = e.status;
1763
1762
  let n = {};
1764
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1765
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1763
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1764
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1766
1765
  }
1767
1766
  /**
1768
1767
  * Sign in with user name and password
@@ -1780,15 +1779,15 @@ class qe extends k {
1780
1779
  Accept: "application/json"
1781
1780
  }
1782
1781
  };
1783
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processLogin(a));
1782
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processLogin(s));
1784
1783
  }
1785
1784
  processLogin(e) {
1786
1785
  const t = e.status;
1787
1786
  let n = {};
1788
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1789
- let a = null;
1790
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1791
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1787
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1788
+ let s = null;
1789
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1790
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1792
1791
  }
1793
1792
  /**
1794
1793
  * Sign out
@@ -1806,8 +1805,8 @@ class qe extends k {
1806
1805
  processLogout(e) {
1807
1806
  const t = e.status;
1808
1807
  let n = {};
1809
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1810
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1808
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1809
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1811
1810
  }
1812
1811
  /**
1813
1812
  * Get current user details
@@ -1827,10 +1826,10 @@ class qe extends k {
1827
1826
  processGetCurrentUser(e) {
1828
1827
  const t = e.status;
1829
1828
  let n = {};
1830
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1831
- let a = null;
1832
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1833
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1829
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1830
+ let s = null;
1831
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1832
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1834
1833
  }
1835
1834
  /**
1836
1835
  * @return OK
@@ -1849,10 +1848,10 @@ class qe extends k {
1849
1848
  processUserinfo(e) {
1850
1849
  const t = e.status;
1851
1850
  let n = {};
1852
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1853
- let a = null;
1854
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1855
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1851
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1852
+ let s = null;
1853
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1854
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1856
1855
  }
1857
1856
  /**
1858
1857
  * Get all registered permissions
@@ -1872,10 +1871,10 @@ class qe extends k {
1872
1871
  processGetAllRegisteredPermissions(e) {
1873
1872
  const t = e.status;
1874
1873
  let n = {};
1875
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1876
- let a = null;
1877
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1878
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1874
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1875
+ let s = null;
1876
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1877
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1879
1878
  }
1880
1879
  /**
1881
1880
  * SearchAsync roles by keyword
@@ -1893,15 +1892,15 @@ class qe extends k {
1893
1892
  Accept: "application/json"
1894
1893
  }
1895
1894
  };
1896
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchRoles(a));
1895
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchRoles(s));
1897
1896
  }
1898
1897
  processSearchRoles(e) {
1899
1898
  const t = e.status;
1900
1899
  let n = {};
1901
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1902
- let a = null;
1903
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1904
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1900
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1901
+ let s = null;
1902
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1903
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1905
1904
  }
1906
1905
  /**
1907
1906
  * Get role by ID
@@ -1923,10 +1922,10 @@ class qe extends k {
1923
1922
  processGetRole(e) {
1924
1923
  const t = e.status;
1925
1924
  let n = {};
1926
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1927
- let a = null;
1928
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1929
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1925
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1926
+ let s = null;
1927
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1928
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1930
1929
  }
1931
1930
  /**
1932
1931
  * Delete roles by ID
@@ -1949,8 +1948,8 @@ class qe extends k {
1949
1948
  processDeleteRoles(e) {
1950
1949
  const t = e.status;
1951
1950
  let n = {};
1952
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1953
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1951
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
1952
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1954
1953
  }
1955
1954
  /**
1956
1955
  * Update an existing role or create new
@@ -1968,15 +1967,15 @@ class qe extends k {
1968
1967
  Accept: "application/json"
1969
1968
  }
1970
1969
  };
1971
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateRole(a));
1970
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdateRole(s));
1972
1971
  }
1973
1972
  processUpdateRole(e) {
1974
1973
  const t = e.status;
1975
1974
  let n = {};
1976
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1977
- let a = null;
1978
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1979
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1975
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
1976
+ let s = null;
1977
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
1978
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1980
1979
  }
1981
1980
  /**
1982
1981
  * SearchAsync users by keyword
@@ -1994,15 +1993,15 @@ class qe extends k {
1994
1993
  Accept: "application/json"
1995
1994
  }
1996
1995
  };
1997
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchUsers(a));
1996
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSearchUsers(s));
1998
1997
  }
1999
1998
  processSearchUsers(e) {
2000
1999
  const t = e.status;
2001
2000
  let n = {};
2002
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2003
- let a = null;
2004
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2005
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2001
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2002
+ let s = null;
2003
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2004
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2006
2005
  }
2007
2006
  /**
2008
2007
  * Get users by IDs
@@ -2027,10 +2026,10 @@ class qe extends k {
2027
2026
  processGetUsersByIds(e) {
2028
2027
  const t = e.status;
2029
2028
  let n = {};
2030
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2031
- let a = null;
2032
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2033
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2029
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2030
+ let s = null;
2031
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2032
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2034
2033
  }
2035
2034
  /**
2036
2035
  * Update user details by user ID
@@ -2048,15 +2047,15 @@ class qe extends k {
2048
2047
  Accept: "application/json"
2049
2048
  }
2050
2049
  };
2051
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
2050
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdate(s));
2052
2051
  }
2053
2052
  processUpdate(e) {
2054
2053
  const t = e.status;
2055
2054
  let n = {};
2056
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2057
- let a = null;
2058
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2059
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2055
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2056
+ let s = null;
2057
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2058
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2060
2059
  }
2061
2060
  /**
2062
2061
  * Delete users by name
@@ -2079,8 +2078,8 @@ class qe extends k {
2079
2078
  processDelete(e) {
2080
2079
  const t = e.status;
2081
2080
  let n = {};
2082
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2083
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2081
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2082
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2084
2083
  }
2085
2084
  /**
2086
2085
  * Get user details by user name
@@ -2102,10 +2101,10 @@ class qe extends k {
2102
2101
  processGetUserByName(e) {
2103
2102
  const t = e.status;
2104
2103
  let n = {};
2105
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2106
- let a = null;
2107
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2108
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2104
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2105
+ let s = null;
2106
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2107
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2109
2108
  }
2110
2109
  /**
2111
2110
  * Get user details by user ID
@@ -2127,10 +2126,10 @@ class qe extends k {
2127
2126
  processGetUserById(e) {
2128
2127
  const t = e.status;
2129
2128
  let n = {};
2130
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2131
- let a = null;
2132
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2133
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2129
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2130
+ let s = null;
2131
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2132
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2134
2133
  }
2135
2134
  /**
2136
2135
  * Get user details by user email
@@ -2152,10 +2151,10 @@ class qe extends k {
2152
2151
  processGetUserByEmail(e) {
2153
2152
  const t = e.status;
2154
2153
  let n = {};
2155
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2156
- let a = null;
2157
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2158
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2154
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2155
+ let s = null;
2156
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2157
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2159
2158
  }
2160
2159
  /**
2161
2160
  * Get user details by external login provider
@@ -2174,15 +2173,15 @@ class qe extends k {
2174
2173
  Accept: "application/json"
2175
2174
  }
2176
2175
  };
2177
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetUserByLogin(a));
2176
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetUserByLogin(s));
2178
2177
  }
2179
2178
  processGetUserByLogin(e) {
2180
2179
  const t = e.status;
2181
2180
  let n = {};
2182
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2183
- let a = null;
2184
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2185
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2181
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2182
+ let s = null;
2183
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2184
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2186
2185
  }
2187
2186
  /**
2188
2187
  * Create new user
@@ -2200,15 +2199,15 @@ class qe extends k {
2200
2199
  Accept: "application/json"
2201
2200
  }
2202
2201
  };
2203
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processCreate(a));
2202
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processCreate(s));
2204
2203
  }
2205
2204
  processCreate(e) {
2206
2205
  const t = e.status;
2207
2206
  let n = {};
2208
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2209
- let a = null;
2210
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2211
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2207
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2208
+ let s = null;
2209
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2210
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2212
2211
  }
2213
2212
  /**
2214
2213
  * Change password for current user.
@@ -2226,15 +2225,15 @@ class qe extends k {
2226
2225
  Accept: "application/json"
2227
2226
  }
2228
2227
  };
2229
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processChangeCurrentUserPassword(a));
2228
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processChangeCurrentUserPassword(s));
2230
2229
  }
2231
2230
  processChangeCurrentUserPassword(e) {
2232
2231
  const t = e.status;
2233
2232
  let n = {};
2234
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2235
- let a = null;
2236
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2237
- }) : t === 400 ? e.text().then((r) => s("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2233
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2234
+ let s = null;
2235
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2236
+ }) : t === 400 ? e.text().then((r) => a("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2238
2237
  }
2239
2238
  /**
2240
2239
  * Change password
@@ -2247,7 +2246,7 @@ class qe extends k {
2247
2246
  if (e == null)
2248
2247
  throw new globalThis.Error("The parameter 'userName' must be defined.");
2249
2248
  n = n.replace("{userName}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2250
- let a = {
2249
+ let s = {
2251
2250
  body: JSON.stringify(t),
2252
2251
  method: "POST",
2253
2252
  headers: {
@@ -2255,15 +2254,15 @@ class qe extends k {
2255
2254
  Accept: "application/json"
2256
2255
  }
2257
2256
  };
2258
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processChangePassword(o));
2257
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processChangePassword(o));
2259
2258
  }
2260
2259
  processChangePassword(e) {
2261
2260
  const t = e.status;
2262
2261
  let n = {};
2263
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2264
- let a = null;
2265
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2266
- }) : t === 400 ? e.text().then((r) => s("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2262
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2263
+ let s = null;
2264
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2265
+ }) : t === 400 ? e.text().then((r) => a("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2267
2266
  }
2268
2267
  /**
2269
2268
  * Reset password confirmation
@@ -2275,7 +2274,7 @@ class qe extends k {
2275
2274
  if (e == null)
2276
2275
  throw new globalThis.Error("The parameter 'userName' must be defined.");
2277
2276
  n = n.replace("{userName}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2278
- let a = {
2277
+ let s = {
2279
2278
  body: JSON.stringify(t),
2280
2279
  method: "POST",
2281
2280
  headers: {
@@ -2283,15 +2282,15 @@ class qe extends k {
2283
2282
  Accept: "application/json"
2284
2283
  }
2285
2284
  };
2286
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPassword(o));
2285
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPassword(o));
2287
2286
  }
2288
2287
  processResetPassword(e) {
2289
2288
  const t = e.status;
2290
2289
  let n = {};
2291
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2292
- let a = null;
2293
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2294
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2290
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2291
+ let s = null;
2292
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2293
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2295
2294
  }
2296
2295
  /**
2297
2296
  * Reset password confirmation
@@ -2303,7 +2302,7 @@ class qe extends k {
2303
2302
  if (e == null)
2304
2303
  throw new globalThis.Error("The parameter 'userId' must be defined.");
2305
2304
  n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2306
- let a = {
2305
+ let s = {
2307
2306
  body: JSON.stringify(t),
2308
2307
  method: "POST",
2309
2308
  headers: {
@@ -2311,15 +2310,15 @@ class qe extends k {
2311
2310
  Accept: "application/json"
2312
2311
  }
2313
2312
  };
2314
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPasswordByToken(o));
2313
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPasswordByToken(o));
2315
2314
  }
2316
2315
  processResetPasswordByToken(e) {
2317
2316
  const t = e.status;
2318
2317
  let n = {};
2319
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2320
- let a = null;
2321
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2322
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2318
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2319
+ let s = null;
2320
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2321
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2323
2322
  }
2324
2323
  /**
2325
2324
  * Validate password reset token
@@ -2331,7 +2330,7 @@ class qe extends k {
2331
2330
  if (e == null)
2332
2331
  throw new globalThis.Error("The parameter 'userId' must be defined.");
2333
2332
  n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2334
- let a = {
2333
+ let s = {
2335
2334
  body: JSON.stringify(t),
2336
2335
  method: "POST",
2337
2336
  headers: {
@@ -2339,15 +2338,15 @@ class qe extends k {
2339
2338
  Accept: "application/json"
2340
2339
  }
2341
2340
  };
2342
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processValidatePasswordResetToken(o));
2341
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processValidatePasswordResetToken(o));
2343
2342
  }
2344
2343
  processValidatePasswordResetToken(e) {
2345
2344
  const t = e.status;
2346
2345
  let n = {};
2347
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2348
- let a = null;
2349
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2350
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2346
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2347
+ let s = null;
2348
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2349
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2351
2350
  }
2352
2351
  /**
2353
2352
  * Send email with instructions on how to reset user password.
@@ -2367,8 +2366,8 @@ class qe extends k {
2367
2366
  processRequestPasswordReset(e) {
2368
2367
  const t = e.status;
2369
2368
  let n = {};
2370
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2371
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2369
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2370
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2372
2371
  }
2373
2372
  /**
2374
2373
  * @param body (optional)
@@ -2385,15 +2384,15 @@ class qe extends k {
2385
2384
  Accept: "application/json"
2386
2385
  }
2387
2386
  };
2388
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processValidatePassword(a));
2387
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processValidatePassword(s));
2389
2388
  }
2390
2389
  processValidatePassword(e) {
2391
2390
  const t = e.status;
2392
2391
  let n = {};
2393
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2394
- let a = null;
2395
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2396
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2392
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2393
+ let s = null;
2394
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2395
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2397
2396
  }
2398
2397
  /**
2399
2398
  * @param body (optional)
@@ -2410,15 +2409,15 @@ class qe extends k {
2410
2409
  Accept: "application/json"
2411
2410
  }
2412
2411
  };
2413
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processValidateUserPassword(a));
2412
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processValidateUserPassword(s));
2414
2413
  }
2415
2414
  processValidateUserPassword(e) {
2416
2415
  const t = e.status;
2417
2416
  let n = {};
2418
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2419
- let a = null;
2420
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2421
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2417
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2418
+ let s = null;
2419
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2420
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2422
2421
  }
2423
2422
  /**
2424
2423
  * Checks if user locked
@@ -2441,10 +2440,10 @@ class qe extends k {
2441
2440
  processIsUserLocked(e) {
2442
2441
  const t = e.status;
2443
2442
  let n = {};
2444
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2445
- let a = null;
2446
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2447
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2443
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2444
+ let s = null;
2445
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2446
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2448
2447
  }
2449
2448
  /**
2450
2449
  * Checks if manual password change is enabled
@@ -2464,10 +2463,10 @@ class qe extends k {
2464
2463
  processPasswordChangeEnabled(e) {
2465
2464
  const t = e.status;
2466
2465
  let n = {};
2467
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2468
- let a = null;
2469
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2470
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2466
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2467
+ let s = null;
2468
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2469
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2471
2470
  }
2472
2471
  /**
2473
2472
  * Lock user
@@ -2490,10 +2489,10 @@ class qe extends k {
2490
2489
  processLockUser(e) {
2491
2490
  const t = e.status;
2492
2491
  let n = {};
2493
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2494
- let a = null;
2495
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2496
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2492
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2493
+ let s = null;
2494
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2495
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2497
2496
  }
2498
2497
  /**
2499
2498
  * Unlock user
@@ -2516,10 +2515,10 @@ class qe extends k {
2516
2515
  processUnlockUser(e) {
2517
2516
  const t = e.status;
2518
2517
  let n = {};
2519
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2520
- let a = null;
2521
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2522
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2518
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2519
+ let s = null;
2520
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2521
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2523
2522
  }
2524
2523
  /**
2525
2524
  * @return OK
@@ -2540,10 +2539,10 @@ class qe extends k {
2540
2539
  processGetUserApiKeys(e) {
2541
2540
  const t = e.status;
2542
2541
  let n = {};
2543
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2544
- let a = null;
2545
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2546
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2542
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2543
+ let s = null;
2544
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2545
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2547
2546
  }
2548
2547
  /**
2549
2548
  * @param body (optional)
@@ -2560,15 +2559,15 @@ class qe extends k {
2560
2559
  Accept: "application/json"
2561
2560
  }
2562
2561
  };
2563
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSaveUserApiKey(a));
2562
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processSaveUserApiKey(s));
2564
2563
  }
2565
2564
  processSaveUserApiKey(e) {
2566
2565
  const t = e.status;
2567
2566
  let n = {};
2568
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2569
- let a = null;
2570
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2571
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2567
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2568
+ let s = null;
2569
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2570
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2572
2571
  }
2573
2572
  /**
2574
2573
  * @param body (optional)
@@ -2585,15 +2584,15 @@ class qe extends k {
2585
2584
  Accept: "application/json"
2586
2585
  }
2587
2586
  };
2588
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateUserApiKey(a));
2587
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdateUserApiKey(s));
2589
2588
  }
2590
2589
  processUpdateUserApiKey(e) {
2591
2590
  const t = e.status;
2592
2591
  let n = {};
2593
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2594
- let a = null;
2595
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2596
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2592
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2593
+ let s = null;
2594
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2595
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2597
2596
  }
2598
2597
  /**
2599
2598
  * @param ids (optional)
@@ -2617,10 +2616,10 @@ class qe extends k {
2617
2616
  processDeleteUserApiKeys(e) {
2618
2617
  const t = e.status;
2619
2618
  let n = {};
2620
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2621
- let a = null;
2622
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2623
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2619
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2620
+ let s = null;
2621
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2622
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2624
2623
  }
2625
2624
  /**
2626
2625
  * Get allowed login types
@@ -2640,10 +2639,10 @@ class qe extends k {
2640
2639
  processGetLoginTypes(e) {
2641
2640
  const t = e.status;
2642
2641
  let n = {};
2643
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2644
- let a = null;
2645
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2646
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2642
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2643
+ let s = null;
2644
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2645
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2647
2646
  }
2648
2647
  /**
2649
2648
  * Verify user email
@@ -2663,8 +2662,8 @@ class qe extends k {
2663
2662
  processSendVerificationEmail(e) {
2664
2663
  const t = e.status;
2665
2664
  let n = {};
2666
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2667
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2665
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2666
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2668
2667
  }
2669
2668
  /**
2670
2669
  * @param body (optional)
@@ -2675,7 +2674,7 @@ class qe extends k {
2675
2674
  if (e == null)
2676
2675
  throw new globalThis.Error("The parameter 'userId' must be defined.");
2677
2676
  n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2678
- let a = {
2677
+ let s = {
2679
2678
  body: JSON.stringify(t),
2680
2679
  method: "POST",
2681
2680
  headers: {
@@ -2683,15 +2682,15 @@ class qe extends k {
2683
2682
  Accept: "application/json"
2684
2683
  }
2685
2684
  };
2686
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processConfirmEmail(o));
2685
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processConfirmEmail(o));
2687
2686
  }
2688
2687
  processConfirmEmail(e) {
2689
2688
  const t = e.status;
2690
2689
  let n = {};
2691
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2692
- let a = null;
2693
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2694
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2690
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2691
+ let s = null;
2692
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2693
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2695
2694
  }
2696
2695
  /**
2697
2696
  * @param newEmail (optional)
@@ -2710,15 +2709,15 @@ class qe extends k {
2710
2709
  Accept: "application/json"
2711
2710
  }
2712
2711
  };
2713
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGenerateChangeEmailToken(a));
2712
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGenerateChangeEmailToken(s));
2714
2713
  }
2715
2714
  processGenerateChangeEmailToken(e) {
2716
2715
  const t = e.status;
2717
2716
  let n = {};
2718
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2719
- let a = null;
2720
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2721
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2717
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2718
+ let s = null;
2719
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2720
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2722
2721
  }
2723
2722
  /**
2724
2723
  * @return OK
@@ -2739,10 +2738,10 @@ class qe extends k {
2739
2738
  processGenerateEmailConfirmationToken(e) {
2740
2739
  const t = e.status;
2741
2740
  let n = {};
2742
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2743
- let a = null;
2744
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2745
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2741
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2742
+ let s = null;
2743
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2744
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2746
2745
  }
2747
2746
  /**
2748
2747
  * @return OK
@@ -2763,10 +2762,10 @@ class qe extends k {
2763
2762
  processGeneratePasswordResetToken(e) {
2764
2763
  const t = e.status;
2765
2764
  let n = {};
2766
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2767
- let a = null;
2768
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2769
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2765
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2766
+ let s = null;
2767
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2768
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2770
2769
  }
2771
2770
  /**
2772
2771
  * @param tokenProvider (optional)
@@ -2782,21 +2781,21 @@ class qe extends k {
2782
2781
  if (t !== void 0 && (r += "tokenProvider=" + encodeURIComponent("" + t) + "&"), n === null)
2783
2782
  throw new globalThis.Error("The parameter 'purpose' cannot be null.");
2784
2783
  n !== void 0 && (r += "purpose=" + encodeURIComponent("" + n) + "&"), r = r.replace(/[?&]$/, "");
2785
- let a = {
2784
+ let s = {
2786
2785
  method: "GET",
2787
2786
  headers: {
2788
2787
  Accept: "application/json"
2789
2788
  }
2790
2789
  };
2791
- return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processGenerateUserToken(o));
2790
+ return this.transformOptions(s).then((o) => this.http.fetch(r, o)).then((o) => this.processGenerateUserToken(o));
2792
2791
  }
2793
2792
  processGenerateUserToken(e) {
2794
2793
  const t = e.status;
2795
2794
  let n = {};
2796
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2797
- let a = null;
2798
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2799
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2795
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2796
+ let s = null;
2797
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2798
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2800
2799
  }
2801
2800
  /**
2802
2801
  * @param body (optional)
@@ -2807,7 +2806,7 @@ class qe extends k {
2807
2806
  if (e == null)
2808
2807
  throw new globalThis.Error("The parameter 'userId' must be defined.");
2809
2808
  n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2810
- let a = {
2809
+ let s = {
2811
2810
  body: JSON.stringify(t),
2812
2811
  method: "POST",
2813
2812
  headers: {
@@ -2815,18 +2814,18 @@ class qe extends k {
2815
2814
  Accept: "application/json"
2816
2815
  }
2817
2816
  };
2818
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processVerifyUserToken(o));
2817
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processVerifyUserToken(o));
2819
2818
  }
2820
2819
  processVerifyUserToken(e) {
2821
2820
  const t = e.status;
2822
2821
  let n = {};
2823
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2824
- let a = null;
2825
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2826
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2822
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2823
+ let s = null;
2824
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2825
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2827
2826
  }
2828
2827
  }
2829
- class Cr extends k {
2828
+ class Fe extends b {
2830
2829
  http;
2831
2830
  baseUrl;
2832
2831
  constructor(e, t) {
@@ -2850,10 +2849,10 @@ class Cr extends k {
2850
2849
  processGetAllGlobalSettings(e) {
2851
2850
  const t = e.status;
2852
2851
  let n = {};
2853
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2854
- let a = null;
2855
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2856
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2852
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2853
+ let s = null;
2854
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2855
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2857
2856
  }
2858
2857
  /**
2859
2858
  * Update settings values
@@ -2870,13 +2869,13 @@ class Cr extends k {
2870
2869
  "Content-Type": "application/json-patch+json"
2871
2870
  }
2872
2871
  };
2873
- return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
2872
+ return this.transformOptions(r).then((s) => this.http.fetch(t, s)).then((s) => this.processUpdate(s));
2874
2873
  }
2875
2874
  processUpdate(e) {
2876
2875
  const t = e.status;
2877
2876
  let n = {};
2878
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
2879
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2877
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
2878
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2880
2879
  }
2881
2880
  /**
2882
2881
  * Get settings registered by specific module
@@ -2899,10 +2898,10 @@ class Cr extends k {
2899
2898
  processGetGlobalModuleSettings(e) {
2900
2899
  const t = e.status;
2901
2900
  let n = {};
2902
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2903
- let a = null;
2904
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2905
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2901
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2902
+ let s = null;
2903
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2904
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2906
2905
  }
2907
2906
  /**
2908
2907
  * Get setting details by name
@@ -2925,10 +2924,10 @@ class Cr extends k {
2925
2924
  processGetGlobalSetting(e) {
2926
2925
  const t = e.status;
2927
2926
  let n = {};
2928
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2929
- let a = null;
2930
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2931
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2927
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2928
+ let s = null;
2929
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2930
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2932
2931
  }
2933
2932
  /**
2934
2933
  * Get UI customization setting
@@ -2948,13 +2947,13 @@ class Cr extends k {
2948
2947
  processGetUICustomizationSetting(e) {
2949
2948
  const t = e.status;
2950
2949
  let n = {};
2951
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2952
- let a = null;
2953
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2954
- }) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2950
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2951
+ let s = null;
2952
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2953
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2955
2954
  }
2956
2955
  }
2957
- class Sr extends k {
2956
+ class Me extends b {
2958
2957
  http;
2959
2958
  baseUrl;
2960
2959
  constructor(e, t) {
@@ -2979,15 +2978,15 @@ class Sr extends k {
2979
2978
  Accept: "application/json"
2980
2979
  }
2981
2980
  };
2982
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetGlobalSchema(a));
2981
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetGlobalSchema(s));
2983
2982
  }
2984
2983
  processGetGlobalSchema(e) {
2985
2984
  const t = e.status;
2986
2985
  let n = {};
2987
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2988
- let a = null;
2989
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2990
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2986
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
2987
+ let s = null;
2988
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
2989
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2991
2990
  }
2992
2991
  /**
2993
2992
  * Get global settings values as a flat { name: value } dictionary.
@@ -3010,13 +3009,13 @@ class Sr extends k {
3010
3009
  method: "GET",
3011
3010
  headers: {}
3012
3011
  };
3013
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetGlobalValues(a));
3012
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetGlobalValues(s));
3014
3013
  }
3015
3014
  processGetGlobalValues(e) {
3016
3015
  const t = e.status;
3017
3016
  let n = {};
3018
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
3019
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3017
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
3018
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3020
3019
  }
3021
3020
  /**
3022
3021
  * @param replaceAll (optional)
@@ -3028,20 +3027,20 @@ class Sr extends k {
3028
3027
  if (e === null)
3029
3028
  throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
3030
3029
  e !== void 0 && (n += "replaceAll=" + encodeURIComponent("" + e) + "&"), n = n.replace(/[?&]$/, "");
3031
- let a = {
3030
+ let s = {
3032
3031
  body: JSON.stringify(t),
3033
3032
  method: "POST",
3034
3033
  headers: {
3035
3034
  "Content-Type": "application/json-patch+json"
3036
3035
  }
3037
3036
  };
3038
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveGlobalValues(o));
3037
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveGlobalValues(o));
3039
3038
  }
3040
3039
  processSaveGlobalValues(e) {
3041
3040
  const t = e.status;
3042
3041
  let n = {};
3043
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
3044
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3042
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
3043
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3045
3044
  }
3046
3045
  /**
3047
3046
  * Get tenant settings schema (metadata only, no values).
@@ -3059,21 +3058,21 @@ class Sr extends k {
3059
3058
  if (t !== void 0 && (r += "moduleId=" + encodeURIComponent("" + t) + "&"), n === null)
3060
3059
  throw new globalThis.Error("The parameter 'keyword' cannot be null.");
3061
3060
  n !== void 0 && (r += "keyword=" + encodeURIComponent("" + n) + "&"), r = r.replace(/[?&]$/, "");
3062
- let a = {
3061
+ let s = {
3063
3062
  method: "GET",
3064
3063
  headers: {
3065
3064
  Accept: "application/json"
3066
3065
  }
3067
3066
  };
3068
- return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processGetTenantSchema(o));
3067
+ return this.transformOptions(s).then((o) => this.http.fetch(r, o)).then((o) => this.processGetTenantSchema(o));
3069
3068
  }
3070
3069
  processGetTenantSchema(e) {
3071
3070
  const t = e.status;
3072
3071
  let n = {};
3073
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
3074
- let a = null;
3075
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
3076
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3072
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
3073
+ let s = null;
3074
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
3075
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3077
3076
  }
3078
3077
  /**
3079
3078
  * Get tenant settings values as a flat { name: value } dictionary.
@@ -3084,27 +3083,27 @@ class Sr extends k {
3084
3083
  * @return OK
3085
3084
  */
3086
3085
  getTenantValues(e, t, n, r) {
3087
- let a = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
3086
+ let s = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
3088
3087
  if (e == null)
3089
3088
  throw new globalThis.Error("The parameter 'tenantType' must be defined.");
3090
- if (a = a.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
3089
+ if (s = s.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
3091
3090
  throw new globalThis.Error("The parameter 'tenantId' must be defined.");
3092
- if (a = a.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
3091
+ if (s = s.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
3093
3092
  throw new globalThis.Error("The parameter 'modifiedOnly' cannot be null.");
3094
- if (n !== void 0 && (a += "modifiedOnly=" + encodeURIComponent("" + n) + "&"), r === null)
3093
+ if (n !== void 0 && (s += "modifiedOnly=" + encodeURIComponent("" + n) + "&"), r === null)
3095
3094
  throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
3096
- r !== void 0 && (a += "moduleId=" + encodeURIComponent("" + r) + "&"), a = a.replace(/[?&]$/, "");
3095
+ r !== void 0 && (s += "moduleId=" + encodeURIComponent("" + r) + "&"), s = s.replace(/[?&]$/, "");
3097
3096
  let o = {
3098
3097
  method: "GET",
3099
3098
  headers: {}
3100
3099
  };
3101
- return this.transformOptions(o).then((l) => this.http.fetch(a, l)).then((l) => this.processGetTenantValues(l));
3100
+ return this.transformOptions(o).then((l) => this.http.fetch(s, l)).then((l) => this.processGetTenantValues(l));
3102
3101
  }
3103
3102
  processGetTenantValues(e) {
3104
3103
  const t = e.status;
3105
3104
  let n = {};
3106
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
3107
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3105
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
3106
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3108
3107
  }
3109
3108
  /**
3110
3109
  * @param replaceAll (optional)
@@ -3112,14 +3111,14 @@ class Sr extends k {
3112
3111
  * @return No Content
3113
3112
  */
3114
3113
  saveTenantValues(e, t, n, r) {
3115
- let a = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
3114
+ let s = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
3116
3115
  if (e == null)
3117
3116
  throw new globalThis.Error("The parameter 'tenantType' must be defined.");
3118
- if (a = a.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
3117
+ if (s = s.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
3119
3118
  throw new globalThis.Error("The parameter 'tenantId' must be defined.");
3120
- if (a = a.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
3119
+ if (s = s.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
3121
3120
  throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
3122
- n !== void 0 && (a += "replaceAll=" + encodeURIComponent("" + n) + "&"), a = a.replace(/[?&]$/, "");
3121
+ n !== void 0 && (s += "replaceAll=" + encodeURIComponent("" + n) + "&"), s = s.replace(/[?&]$/, "");
3123
3122
  let l = {
3124
3123
  body: JSON.stringify(r),
3125
3124
  method: "POST",
@@ -3127,13 +3126,13 @@ class Sr extends k {
3127
3126
  "Content-Type": "application/json-patch+json"
3128
3127
  }
3129
3128
  };
3130
- return this.transformOptions(l).then((c) => this.http.fetch(a, c)).then((c) => this.processSaveTenantValues(c));
3129
+ return this.transformOptions(l).then((h) => this.http.fetch(s, h)).then((h) => this.processSaveTenantValues(h));
3131
3130
  }
3132
3131
  processSaveTenantValues(e) {
3133
3132
  const t = e.status;
3134
3133
  let n = {};
3135
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
3136
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3134
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
3135
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3137
3136
  }
3138
3137
  /**
3139
3138
  * Get the current user's UserProfile settings schema (metadata only).
@@ -3158,15 +3157,15 @@ class Sr extends k {
3158
3157
  Accept: "application/json"
3159
3158
  }
3160
3159
  };
3161
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetMeSchema(a));
3160
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetMeSchema(s));
3162
3161
  }
3163
3162
  processGetMeSchema(e) {
3164
3163
  const t = e.status;
3165
3164
  let n = {};
3166
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
3167
- let a = null;
3168
- return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
3169
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3165
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
3166
+ let s = null;
3167
+ return s = r === "" ? null : JSON.parse(r, this.jsonParseReviver), s;
3168
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3170
3169
  }
3171
3170
  /**
3172
3171
  * Get the current user's effective UserProfile settings values
@@ -3189,13 +3188,13 @@ class Sr extends k {
3189
3188
  method: "GET",
3190
3189
  headers: {}
3191
3190
  };
3192
- return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetMeValues(a));
3191
+ return this.transformOptions(r).then((s) => this.http.fetch(n, s)).then((s) => this.processGetMeValues(s));
3193
3192
  }
3194
3193
  processGetMeValues(e) {
3195
3194
  const t = e.status;
3196
3195
  let n = {};
3197
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
3198
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3196
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 200 ? e.text().then((r) => {
3197
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3199
3198
  }
3200
3199
  /**
3201
3200
  * @param replaceAll (optional)
@@ -3207,53 +3206,53 @@ class Sr extends k {
3207
3206
  if (e === null)
3208
3207
  throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
3209
3208
  e !== void 0 && (n += "replaceAll=" + encodeURIComponent("" + e) + "&"), n = n.replace(/[?&]$/, "");
3210
- let a = {
3209
+ let s = {
3211
3210
  body: JSON.stringify(t),
3212
3211
  method: "POST",
3213
3212
  headers: {
3214
3213
  "Content-Type": "application/json-patch+json"
3215
3214
  }
3216
3215
  };
3217
- return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveMeValues(o));
3216
+ return this.transformOptions(s).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveMeValues(o));
3218
3217
  }
3219
3218
  processSaveMeValues(e) {
3220
3219
  const t = e.status;
3221
3220
  let n = {};
3222
- return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
3223
- }) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3221
+ return e.headers && e.headers.forEach && e.headers.forEach((r, s) => n[s] = r), t === 204 ? e.text().then((r) => {
3222
+ }) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
3224
3223
  }
3225
3224
  }
3226
- var He = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(He || {}), Ze = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(Ze || {}), Xe = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Xe || {}), Ye = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Ye || {}), Qe = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Qe || {}), et = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(et || {}), tt = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(tt || {});
3227
- class rt extends Error {
3225
+ var re = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(ne || {}), se = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(se || {}), ae = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(ae || {}), ie = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(ie || {}), oe = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(oe || {}), le = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(le || {});
3226
+ class ue extends Error {
3228
3227
  message;
3229
3228
  status;
3230
3229
  response;
3231
3230
  headers;
3232
3231
  result;
3233
- constructor(e, t, n, r, a) {
3234
- super(), this.message = e, this.status = t, this.response = n, this.headers = r, this.result = a;
3232
+ constructor(e, t, n, r, s) {
3233
+ super(), this.message = e, this.status = t, this.response = n, this.headers = r, this.result = s;
3235
3234
  }
3236
3235
  isApiException = !0;
3237
3236
  static isApiException(e) {
3238
3237
  return e.isApiException === !0;
3239
3238
  }
3240
3239
  }
3241
- function s(i, e, t, n, r) {
3242
- throw r ?? new rt(i, e, t, n, null);
3240
+ function a(i, e, t, n, r) {
3241
+ throw r ?? new ue(i, e, t, n, null);
3243
3242
  }
3244
- const _e = {
3243
+ const D = {
3245
3244
  debug: 0,
3246
3245
  info: 1,
3247
3246
  warn: 2,
3248
3247
  error: 3,
3249
3248
  none: 4
3250
- }, nt = {
3249
+ }, he = {
3251
3250
  level: "warn",
3252
3251
  prefix: "@vc-shell/framework",
3253
3252
  enabled: !0
3254
3253
  };
3255
- function B(i) {
3256
- const e = { ...nt }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? _e[r] >= _e[e.level] : !1;
3254
+ function g(i) {
3255
+ const e = { ...he }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? D[r] >= D[e.level] : !1;
3257
3256
  return {
3258
3257
  /**
3259
3258
  * Log debug messages (only in development)
@@ -3282,7 +3281,7 @@ function B(i) {
3282
3281
  /**
3283
3282
  * Create a child logger with additional context
3284
3283
  */
3285
- child: (r) => B(i ? `${i}:${r}` : r),
3284
+ child: (r) => g(i ? `${i}:${r}` : r),
3286
3285
  /**
3287
3286
  * Set the log level for this logger instance
3288
3287
  */
@@ -3297,16 +3296,16 @@ function B(i) {
3297
3296
  }
3298
3297
  };
3299
3298
  }
3300
- const wr = B(), Ar = {
3301
- core: B("core"),
3302
- ui: B("ui"),
3303
- shared: B("shared"),
3304
- plugins: B("plugins"),
3305
- services: B("services"),
3306
- composables: B("composables")
3307
- }, me = B("use-external-provider"), at = "externalSignIn", st = () => {
3308
- const i = new Ke(), e = Me(
3309
- at,
3299
+ const De = g(), Be = {
3300
+ core: g("core"),
3301
+ ui: g("ui"),
3302
+ shared: g("shared"),
3303
+ plugins: g("plugins"),
3304
+ services: g("services"),
3305
+ composables: g("composables")
3306
+ }, k = g("use-external-provider"), ce = "externalSignIn", de = () => {
3307
+ const i = new ee(), e = H(
3308
+ ce,
3310
3309
  {},
3311
3310
  {
3312
3311
  listenToStorageChanges: !0,
@@ -3319,29 +3318,29 @@ const wr = B(), Ar = {
3319
3318
  }
3320
3319
  async function n(o) {
3321
3320
  try {
3322
- const l = window.location.origin, c = window.location.pathname ?? t() ?? "/";
3321
+ const l = window.location.origin, h = window.location.pathname ?? t() ?? "/";
3323
3322
  if (!o)
3324
3323
  throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
3325
- const p = new URL("/externalsignin", l);
3326
- p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(p);
3324
+ const x = new URL("/externalsignin", l);
3325
+ x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(x);
3327
3326
  } catch (l) {
3328
- throw me.error("External sign-in failed:", l), l;
3327
+ throw k.error("External sign-in failed:", l), l;
3329
3328
  }
3330
3329
  }
3331
3330
  async function r(o) {
3332
3331
  try {
3333
- const l = window.location.origin, c = window.location.pathname ?? "/", p = new URL("/externalsignin/signout", l);
3334
- p.searchParams.set("authenticationType", o), p.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(p);
3332
+ const l = window.location.origin, h = window.location.pathname ?? "/", x = new URL("/externalsignin/signout", l);
3333
+ x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(x);
3335
3334
  } catch (l) {
3336
- throw me.error("External sign-out failed:", l), l;
3335
+ throw k.error("External sign-out failed:", l), l;
3337
3336
  }
3338
3337
  }
3339
- async function a() {
3338
+ async function s() {
3340
3339
  let o;
3341
3340
  try {
3342
3341
  o = await i.getExternalLoginProviders();
3343
3342
  } catch (l) {
3344
- me.error("Failed to get external login providers:", l);
3343
+ k.error("Failed to get external login providers:", l);
3345
3344
  }
3346
3345
  return o;
3347
3346
  }
@@ -3349,34 +3348,34 @@ const wr = B(), Ar = {
3349
3348
  storage: e,
3350
3349
  signIn: n,
3351
3350
  signOut: r,
3352
- getProviders: a
3351
+ getProviders: s
3353
3352
  };
3354
- }, xe = "vc_auth_data", w = B("use-user");
3355
- function it() {
3353
+ }, M = "vc_auth_data", f = g("use-user");
3354
+ function fe() {
3356
3355
  try {
3357
- const i = localStorage.getItem(xe);
3356
+ const i = localStorage.getItem(M);
3358
3357
  if (i)
3359
3358
  return JSON.parse(i);
3360
3359
  } catch (i) {
3361
- w.error("Failed to read auth data from storage:", i);
3360
+ f.error("Failed to read auth data from storage:", i);
3362
3361
  }
3363
3362
  return null;
3364
3363
  }
3365
- function Ue(i) {
3364
+ function B(i) {
3366
3365
  try {
3367
- w.debug("storeAuthData - Saving:", i), localStorage.setItem(xe, JSON.stringify(i)), w.debug("storeAuthData - Saved successfully");
3366
+ f.debug("storeAuthData - Saving:", i), localStorage.setItem(M, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
3368
3367
  } catch (e) {
3369
- w.error("Failed to store auth data:", e);
3368
+ f.error("Failed to store auth data:", e);
3370
3369
  }
3371
3370
  }
3372
- function ot() {
3371
+ function pe() {
3373
3372
  try {
3374
- localStorage.removeItem(xe);
3373
+ localStorage.removeItem(M);
3375
3374
  } catch (i) {
3376
- w.error("Failed to clear auth data:", i);
3375
+ f.error("Failed to clear auth data:", i);
3377
3376
  }
3378
3377
  }
3379
- async function Te(i) {
3378
+ async function L(i) {
3380
3379
  try {
3381
3380
  const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
3382
3381
  method: "POST",
@@ -3386,177 +3385,177 @@ async function Te(i) {
3386
3385
  body: e
3387
3386
  });
3388
3387
  if (!t.ok) {
3389
- const c = await t.text();
3390
- return w.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
3388
+ const h = await t.text();
3389
+ return f.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
3391
3390
  }
3392
3391
  const n = await t.json();
3393
- w.debug("fetchToken - Response:", n);
3394
- const r = n.access_token, a = n.refresh_token, o = n.expires_in;
3392
+ f.debug("fetchToken - Response:", n);
3393
+ const r = n.access_token, s = n.refresh_token, o = n.expires_in;
3395
3394
  if (n.error || !r)
3396
- return w.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3395
+ return f.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
3397
3396
  const l = o ? Date.now() + o * 1e3 : null;
3398
3397
  return {
3399
3398
  token: r,
3400
3399
  access_token: r,
3401
- refresh_token: a ?? null,
3400
+ refresh_token: s ?? null,
3402
3401
  expires_at: l
3403
3402
  };
3404
3403
  } catch (e) {
3405
- return w.error("fetchToken - Exception:", e), null;
3404
+ return f.error("fetchToken - Exception:", e), null;
3406
3405
  }
3407
3406
  }
3408
- function lt() {
3409
- const i = G(!1), e = G(), t = G(null), { storage: n, signOut: r } = st(), a = new qe(), o = d(() => e.value?.userName != null);
3410
- async function l(m, C) {
3411
- let T = !1;
3407
+ function me() {
3408
+ const i = N(!1), e = N(), t = N(null), { storage: n, signOut: r } = de(), s = new te(), o = u(() => e.value?.userName != null);
3409
+ async function l(c, m) {
3410
+ let p = !1;
3412
3411
  try {
3413
- i.value = !0, T = await a.validatePasswordResetToken(m, {
3414
- token: C
3412
+ i.value = !0, p = await s.validatePasswordResetToken(c, {
3413
+ token: m
3415
3414
  });
3416
3415
  } catch {
3417
3416
  } finally {
3418
3417
  i.value = !1;
3419
3418
  }
3420
- return T;
3419
+ return p;
3421
3420
  }
3422
- async function c(m) {
3423
- return a.validatePassword(m);
3421
+ async function h(c) {
3422
+ return s.validatePassword(c);
3424
3423
  }
3425
- async function p(m, C, T) {
3426
- return a.resetPasswordByToken(m, {
3427
- newPassword: C,
3428
- token: T
3424
+ async function x(c, m, p) {
3425
+ return s.resetPasswordByToken(c, {
3426
+ newPassword: m,
3427
+ token: p
3429
3428
  });
3430
3429
  }
3431
- async function g(m, C) {
3432
- w.debug("signIn - Entry point");
3430
+ async function I(c, m) {
3431
+ f.debug("signIn - Entry point");
3433
3432
  try {
3434
3433
  i.value = !0;
3435
- const T = await a.login({ userName: m, password: C });
3436
- if (w.debug("signIn - Cookie login completed:", T), !T.succeeded)
3437
- return T;
3438
- w.debug("signIn - Requesting token...");
3439
- const P = await Te({
3434
+ const p = await s.login({ userName: c, password: m });
3435
+ if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
3436
+ return p;
3437
+ f.debug("signIn - Requesting token...");
3438
+ const v = await L({
3440
3439
  grant_type: "password",
3441
- username: m,
3442
- password: C,
3440
+ username: c,
3441
+ password: m,
3443
3442
  scope: "offline_access"
3444
3443
  });
3445
- P && (t.value = P, Ue(t.value), w.debug("signIn - Token saved:", t.value));
3446
- const F = await a.getCurrentUser();
3447
- if (F)
3448
- return e.value = F, T;
3444
+ v && (t.value = v, B(t.value), f.debug("signIn - Token saved:", t.value));
3445
+ const y = await s.getCurrentUser();
3446
+ if (y)
3447
+ return e.value = y, p;
3449
3448
  throw { succeeded: !1 };
3450
- } catch (T) {
3451
- w.error("signIn failed:", T);
3452
- let P = T.message;
3453
- if (T.response)
3449
+ } catch (p) {
3450
+ f.error("signIn failed:", p);
3451
+ let v = p.message;
3452
+ if (p.response)
3454
3453
  try {
3455
- const F = JSON.parse(T.response);
3456
- P = F.errorDescription || F.errors?.[0]?.description || F.error || P;
3454
+ const y = JSON.parse(p.response);
3455
+ v = y.errorDescription || y.errors?.[0]?.description || y.error || v;
3457
3456
  } catch {
3458
3457
  }
3459
- return { succeeded: !1, error: P, status: T.status };
3458
+ return { succeeded: !1, error: v, status: p.status };
3460
3459
  } finally {
3461
3460
  i.value = !1;
3462
3461
  }
3463
3462
  }
3464
- async function h() {
3465
- w.debug("signOut - Entry point"), e.value = void 0, ot(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
3463
+ async function O() {
3464
+ f.debug("signOut - Entry point"), e.value = void 0, pe(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
3466
3465
  }
3467
- let _ = null;
3468
- async function A() {
3469
- return _ || (_ = (async () => {
3470
- w.debug("loadUser - Entry point");
3466
+ let U = null;
3467
+ async function w() {
3468
+ return U || (U = (async () => {
3469
+ f.debug("loadUser - Entry point");
3471
3470
  try {
3472
3471
  i.value = !0, performance.mark("vc:auth-start");
3473
- const [m] = await Promise.all([a.getCurrentUser(), b()]);
3474
- e.value = m, performance.mark("vc:auth-done"), w.debug("User details loaded:", e.value);
3475
- } catch (m) {
3476
- w.error("loadUser failed:", m);
3472
+ const [c] = await Promise.all([s.getCurrentUser(), d()]);
3473
+ e.value = c, performance.mark("vc:auth-done"), f.debug("User details loaded:", e.value);
3474
+ } catch (c) {
3475
+ f.error("loadUser failed:", c);
3477
3476
  } finally {
3478
- i.value = !1, _ = null;
3477
+ i.value = !1, U = null;
3479
3478
  }
3480
3479
  return { ...e.value };
3481
- })(), _);
3480
+ })(), U);
3482
3481
  }
3483
- async function E(m) {
3482
+ async function z(c) {
3484
3483
  try {
3485
- return i.value = !0, await a.requestPasswordReset(m), { succeeded: !0 };
3486
- } catch (C) {
3487
- return { succeeded: !1, error: C };
3484
+ return i.value = !0, await s.requestPasswordReset(c), { succeeded: !0 };
3485
+ } catch (m) {
3486
+ return { succeeded: !1, error: m };
3488
3487
  } finally {
3489
3488
  i.value = !1;
3490
3489
  }
3491
3490
  }
3492
- async function O(m, C) {
3493
- let T;
3491
+ async function A(c, m) {
3492
+ let p;
3494
3493
  try {
3495
3494
  i.value = !0;
3496
- const P = {
3497
- oldPassword: m,
3498
- newPassword: C
3495
+ const v = {
3496
+ oldPassword: c,
3497
+ newPassword: m
3499
3498
  };
3500
- T = await a.changeCurrentUserPassword(P);
3501
- } catch (P) {
3502
- return { succeeded: !1, errors: [P.message] };
3499
+ p = await s.changeCurrentUserPassword(v);
3500
+ } catch (v) {
3501
+ return { succeeded: !1, errors: [v.message] };
3503
3502
  } finally {
3504
3503
  i.value = !1;
3505
3504
  }
3506
- return T;
3505
+ return p;
3507
3506
  }
3508
- async function z() {
3509
- let m = null;
3507
+ async function _() {
3508
+ let c = null;
3510
3509
  try {
3511
- m = await a.getLoginTypes();
3512
- } catch (C) {
3513
- throw w.error("getLoginType failed:", C), C;
3510
+ c = await s.getLoginTypes();
3511
+ } catch (m) {
3512
+ throw f.error("getLoginType failed:", m), m;
3514
3513
  }
3515
- return m;
3516
- }
3517
- const D = 60 * 1e3;
3518
- async function b() {
3519
- if (w.debug("getAccessToken - Entry point"), t.value || (t.value = it()), !t.value)
3520
- return w.debug("getAccessToken - No auth data available"), null;
3521
- const m = Date.now(), C = t.value.expires_at, T = C ? m >= C - D : !1;
3522
- if (w.debug("getAccessToken - Token status:", {
3514
+ return c;
3515
+ }
3516
+ const $ = 60 * 1e3;
3517
+ async function d() {
3518
+ if (f.debug("getAccessToken - Entry point"), t.value || (t.value = fe()), !t.value)
3519
+ return f.debug("getAccessToken - No auth data available"), null;
3520
+ const c = Date.now(), m = t.value.expires_at, p = m ? c >= m - $ : !1;
3521
+ if (f.debug("getAccessToken - Token status:", {
3523
3522
  hasToken: !!t.value.access_token,
3524
- expiresAt: C ? new Date(C).toISOString() : "not set",
3525
- now: new Date(m).toISOString(),
3526
- shouldRefresh: T,
3523
+ expiresAt: m ? new Date(m).toISOString() : "not set",
3524
+ now: new Date(c).toISOString(),
3525
+ shouldRefresh: p,
3527
3526
  hasRefreshToken: !!t.value.refresh_token
3528
- }), T && t.value.refresh_token) {
3529
- w.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3530
- const P = await Te({
3527
+ }), p && t.value.refresh_token) {
3528
+ f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
3529
+ const v = await L({
3531
3530
  grant_type: "refresh_token",
3532
3531
  refresh_token: t.value.refresh_token,
3533
3532
  scope: "offline_access"
3534
3533
  });
3535
- P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, Ue(t.value), w.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3536
- expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
3537
- })) : w.warn("getAccessToken - Failed to refresh token, returning existing token");
3534
+ v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, B(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
3535
+ expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
3536
+ })) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
3538
3537
  }
3539
3538
  return t.value?.access_token ?? t.value?.token ?? null;
3540
3539
  }
3541
3540
  return {
3542
- user: d(() => e.value),
3543
- loading: d(() => i.value),
3544
- isAdministrator: d(() => e.value?.isAdministrator),
3541
+ user: u(() => e.value),
3542
+ loading: u(() => i.value),
3543
+ isAdministrator: u(() => e.value?.isAdministrator),
3545
3544
  isAuthenticated: o,
3546
- loadUser: A,
3547
- signIn: g,
3548
- signOut: h,
3545
+ loadUser: w,
3546
+ signIn: I,
3547
+ signOut: O,
3549
3548
  validateToken: l,
3550
- validatePassword: c,
3551
- resetPasswordByToken: p,
3552
- requestPasswordReset: E,
3553
- changeUserPassword: O,
3554
- getLoginType: z,
3555
- getAccessToken: b
3549
+ validatePassword: h,
3550
+ resetPasswordByToken: x,
3551
+ requestPasswordReset: z,
3552
+ changeUserPassword: A,
3553
+ getLoginType: _,
3554
+ getAccessToken: d
3556
3555
  };
3557
3556
  }
3558
- const ut = Le(lt), ct = () => {
3559
- const i = ut();
3557
+ const ve = Y(me), Le = () => {
3558
+ const i = ve();
3560
3559
  return {
3561
3560
  user: i.user,
3562
3561
  loading: i.loading,
@@ -3566,890 +3565,7 @@ const ut = Le(lt), ct = () => {
3566
3565
  signOut: i.signOut,
3567
3566
  getAccessToken: i.getAccessToken
3568
3567
  };
3569
- }, je = Symbol("BladeStack"), ht = Symbol("BladeMessaging"), dt = Symbol("BladeDescriptor"), Pr = Symbol("BladeMaximized"), ft = Symbol("BladeData"), pt = Symbol("BladeBanners"), Or = Symbol("BladeBackButton"), Ir = Symbol("NotificationStore"), Rr = Symbol("WidgetService"), jr = Symbol("DashboardService"), $r = Symbol("MenuService"), Nr = Symbol("SettingsMenuService"), zr = Symbol("AppBarWidgetService"), Br = Symbol("AppBarMobileButtonsService"), mt = Symbol("LanguageService"), vt = Symbol("ToolbarService"), kr = Symbol("DynamicModules"), Gr = Symbol("ModulesReady"), Fr = Symbol("ModulesLoadError"), Dr = Symbol("AppRootElement"), gt = Symbol("EmbeddedMode"), Mr = Symbol("ShellIndicators"), Ee = Symbol("AiAgentService"), Lr = Symbol("IsMobile"), Jr = Symbol("IsDesktop"), Wr = Symbol("IsPhone"), Vr = Symbol("IsTablet"), Kr = Symbol("IsTouch"), qr = Symbol("BladeRoutes"), Hr = Symbol("InternalRoutes"), Zr = Symbol("CloseSettingsMenu"), Xr = Symbol("BladeContext"), Yr = Symbol("WidgetScope"), Qr = Symbol("BladeForm"), en = Symbol("BladeLoading"), bt = {
3570
- url: "",
3571
- title: "Virto OZ",
3572
- width: 362,
3573
- expandedWidth: 500,
3574
- allowedOrigins: ["*"]
3575
- }, tn = "APP_AI_AGENT_URL", rn = {
3576
- EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
3577
- AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
3578
- AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
3579
- AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
3580
- }, nn = {
3581
- EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
3582
- AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
3583
- }, xt = "ai-agent-toggle", Et = "lucide-sparkles", yt = "AI Assistant", ae = B("ai-agent-panel");
3584
- function _t() {
3585
- const i = G("closed"), e = G(!1), t = d(() => i.value !== "closed"), n = d(() => i.value === "expanded"), r = () => {
3586
- i.value === "closed" && (i.value = "open", ae.debug("Panel opened"));
3587
- }, a = () => {
3588
- i.value = "closed", e.value = !1, ae.debug("Panel closed, reset initialized state");
3589
- };
3590
- return {
3591
- panelState: i,
3592
- isOpen: t,
3593
- isExpanded: n,
3594
- isInitialized: e,
3595
- open: r,
3596
- close: a,
3597
- toggle: () => {
3598
- i.value === "closed" ? r() : a();
3599
- },
3600
- expand: () => {
3601
- i.value === "open" && (i.value = "expanded", ae.debug("Panel expanded"));
3602
- },
3603
- collapse: () => {
3604
- i.value === "expanded" && (i.value = "open", ae.debug("Panel collapsed"));
3605
- },
3606
- resetInitialized: () => {
3607
- e.value = !1;
3608
- }
3609
- };
3610
- }
3611
- const ve = B("ai-agent-context");
3612
- function Ce(i) {
3613
- return i ? {
3614
- id: i.id,
3615
- name: i.name,
3616
- title: i.title || i.name,
3617
- param: i.param
3618
- } : { id: "unknown", name: "unknown", title: "Unknown" };
3619
- }
3620
- function Ut(i) {
3621
- const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = i, a = G(/* @__PURE__ */ new Map()), o = () => {
3622
- const E = t();
3623
- return E ? a.value.get(E.id) ?? {
3624
- items: [],
3625
- type: "list",
3626
- suggestions: void 0
3627
- } : {
3628
- items: [],
3629
- type: "list",
3630
- suggestions: void 0
3631
- };
3632
- }, l = d(() => o().items), c = d(() => o().type), p = d(() => o().suggestions), g = d(() => l.value.length);
3633
- return {
3634
- contextItems: l,
3635
- contextType: c,
3636
- contextSuggestions: p,
3637
- totalItemsCount: g,
3638
- setContextData: (E, O, z, D) => {
3639
- const b = t()?.id || D;
3640
- return b ? E.length === 0 && !z ? (a.value.delete(b), ve.debug(`Context cleared for blade: ${b}`), { cleared: !0 }) : (a.value.set(b, { items: E, type: O, suggestions: z }), ve.debug(`Context set for blade: ${b}, items: ${E.length}, type: ${O}`), { cleared: !1 }) : (ve.warn("Cannot set context data: no blade id available"), { cleared: !1 });
3641
- },
3642
- buildInitPayload: async () => {
3643
- const E = r ? await r() ?? void 0 : void 0;
3644
- return {
3645
- userId: e()?.id || "",
3646
- locale: n(),
3647
- blade: Ce(t()),
3648
- contextType: c.value,
3649
- items: ne(l.value),
3650
- suggestions: p.value ? ne(p.value) : void 0,
3651
- accessToken: E
3652
- };
3653
- },
3654
- buildUpdatePayload: async () => {
3655
- const E = r ? await r() ?? void 0 : void 0;
3656
- return {
3657
- blade: Ce(t()),
3658
- contextType: c.value,
3659
- items: ne(l.value),
3660
- suggestions: p.value ? ne(p.value) : void 0,
3661
- locale: n(),
3662
- accessToken: E
3663
- };
3664
- }
3665
- };
3666
- }
3667
- const V = B("ai-agent-transport");
3668
- function Tt(i) {
3669
- const { getConfig: e, isEmbedded: t, navigateToBlade: n } = i, r = ke(null), a = G(!1), o = G(!1), l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
3670
- function p(h, _) {
3671
- switch (h) {
3672
- case "NAVIGATE_TO_APP": {
3673
- const E = _;
3674
- n && E?.bladeName && (n(E.bladeName, E.param, E.options), V.debug(`Navigation requested to: ${E.bladeName}`));
3675
- break;
3676
- }
3677
- }
3678
- const A = {
3679
- type: h,
3680
- payload: _,
3681
- timestamp: Date.now()
3682
- };
3683
- l.forEach((E) => {
3684
- try {
3685
- E(A);
3686
- } catch (O) {
3687
- V.error("Handler error:", O);
3688
- }
3689
- });
3690
- }
3691
- function g(h) {
3692
- const A = e().allowedOrigins || ["*"];
3693
- if (!A.includes("*") && !A.includes(h.origin))
3694
- return;
3695
- const E = h.data;
3696
- if (!(!E?.type || typeof E.type != "string"))
3697
- switch (V.debug(`Message received: ${E.type}`), E.type) {
3698
- // Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
3699
- case "AI_CHAT_MESSAGE": {
3700
- if (t) {
3701
- const O = E.payload;
3702
- O?.type && p(O.type, O.payload);
3703
- }
3704
- return;
3705
- }
3706
- // Normal: chatbot signals it's ready
3707
- case "CHAT_READY":
3708
- c.forEach((O) => {
3709
- try {
3710
- O();
3711
- } catch (z) {
3712
- V.error("ChatReady handler error:", z);
3713
- }
3714
- });
3715
- break;
3716
- // Normal: direct chat protocol messages
3717
- default:
3718
- p(E.type, E.payload);
3719
- break;
3720
- }
3721
- }
3722
- return {
3723
- iframeRef: r,
3724
- pendingInitContext: a,
3725
- isListenerRegistered: o,
3726
- setIframeRef(h) {
3727
- r.value = h, V.debug("Iframe ref set:", h ? "available" : "null");
3728
- },
3729
- sendToIframe(h) {
3730
- if (!r.value?.contentWindow) {
3731
- V.warn("Cannot send message: iframe not available");
3732
- return;
3733
- }
3734
- const A = e().allowedOrigins?.[0] || "*";
3735
- r.value.contentWindow.postMessage(h, A), V.debug(`Sent to iframe: ${h.type}`);
3736
- },
3737
- sendToParent(h) {
3738
- if (!window.parent || window.parent === window) {
3739
- V.warn("Cannot send to parent: not in iframe");
3740
- return;
3741
- }
3742
- window.parent.postMessage(h, "*"), V.debug(`Sent to parent: ${h.type}`);
3743
- },
3744
- startListening() {
3745
- o.value || (window.addEventListener("message", g), o.value = !0);
3746
- },
3747
- stopListening() {
3748
- o.value && (window.removeEventListener("message", g), o.value = !1);
3749
- },
3750
- onChatReady(h) {
3751
- return c.add(h), () => {
3752
- c.delete(h);
3753
- };
3754
- },
3755
- onMessage(h) {
3756
- return l.add(h), () => {
3757
- l.delete(h);
3758
- };
3759
- }
3760
- };
3761
- }
3762
- const se = B("ai-agent-service");
3763
- function Ct(i) {
3764
- const {
3765
- userGetter: e,
3766
- bladeGetter: t,
3767
- localeGetter: n,
3768
- tokenGetter: r,
3769
- navigateToBlade: a,
3770
- initialConfig: o,
3771
- isEmbedded: l = !1
3772
- } = i, c = G({ ...bt, ...o }), p = _t(), g = Ut({
3773
- userGetter: e,
3774
- bladeGetter: t,
3775
- localeGetter: n,
3776
- tokenGetter: r
3777
- }), h = Tt({
3778
- getConfig: () => c.value,
3779
- isEmbedded: l,
3780
- navigateToBlade: a
3781
- }), _ = d(() => ({
3782
- user: e(),
3783
- currentBlade: t(),
3784
- items: g.contextItems.value
3785
- })), A = async () => {
3786
- if (h.pendingInitContext.value && h.iframeRef.value?.contentWindow) {
3787
- h.pendingInitContext.value = !1, p.isInitialized.value = !0;
3788
- const m = await g.buildInitPayload();
3789
- h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), se.debug("Flushed pending INIT_CONTEXT");
3790
- }
3791
- };
3792
- h.onChatReady(() => {
3793
- h.iframeRef.value?.contentWindow ? (p.isInitialized.value = !0, g.buildInitPayload().then((m) => {
3794
- h.sendToIframe({ type: "INIT_CONTEXT", payload: m }), se.info("Chatbot ready, sent INIT_CONTEXT");
3795
- })) : (h.pendingInitContext.value = !0, se.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
3796
- }), X(h.iframeRef, () => A()), X(
3797
- () => ({ currentBlade: _.value.currentBlade, items: _.value.items }),
3798
- async () => {
3799
- if (l) {
3800
- const m = await g.buildInitPayload();
3801
- h.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: m });
3802
- return;
3803
- }
3804
- if (p.isOpen.value && p.isInitialized.value && h.iframeRef.value?.contentWindow) {
3805
- const m = await g.buildUpdatePayload();
3806
- h.sendToIframe({ type: "UPDATE_CONTEXT", payload: m });
3807
- }
3808
- },
3809
- { deep: !0 }
3810
- );
3811
- const E = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.open(), O = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.close(), z = () => l ? h.sendToParent({ type: "AI_TOGGLE_PANEL" }) : p.toggle(), D = (m) => {
3812
- h.setIframeRef(m), A();
3813
- }, b = (m, C, T, P) => {
3814
- const { cleared: F } = g.setContextData(m, C, T, P);
3815
- l && F && h.sendToParent({ type: "AI_CONTEXT_CLEAR" });
3816
- };
3817
- return h.startListening(), l && (h.sendToParent({
3818
- type: "EMBEDDED_APP_READY",
3819
- payload: { supportedFeatures: ["ai-agent"] }
3820
- }), se.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
3821
- // State
3822
- panelState: p.panelState,
3823
- config: c,
3824
- context: _,
3825
- isOpen: d(() => !l && p.isOpen.value),
3826
- isExpanded: p.isExpanded,
3827
- totalItemsCount: g.totalItemsCount,
3828
- // Panel control
3829
- openPanel: E,
3830
- closePanel: O,
3831
- togglePanel: z,
3832
- expandPanel: () => p.expand(),
3833
- collapsePanel: () => p.collapse(),
3834
- // Configuration
3835
- setConfig: (m) => {
3836
- c.value = { ...c.value, ...m };
3837
- },
3838
- // Communication
3839
- sendMessage: (m, C) => {
3840
- h.sendToIframe({ type: m, payload: C });
3841
- },
3842
- onMessage: h.onMessage,
3843
- // Internal API
3844
- iframeRef: h.iframeRef,
3845
- _setIframeRef: D,
3846
- _startListening: h.startListening,
3847
- _stopListening: h.stopListening,
3848
- _setContextData: b
3849
- };
3850
- }
3851
- let $e, Ne, ze, St;
3852
- function an(i) {
3853
- $e = i;
3854
- }
3855
- function sn(i) {
3856
- Ne = i;
3857
- }
3858
- function on(i) {
3859
- ze = i;
3860
- }
3861
- function ln(i) {
3862
- St = i;
3863
- }
3864
- function Se(i, e) {
3865
- if (e.length === 0)
3866
- return { path: i ? `/${i}` : "/", query: {} };
3867
- const t = e[0], n = we(t.url);
3868
- let r;
3869
- for (let l = e.length - 1; l >= 1; l--)
3870
- if (e[l].visible) {
3871
- r = e[l];
3872
- break;
3873
- }
3874
- let a = i ? `/${i}` : "";
3875
- if (n && (a += `/${n}`), r) {
3876
- const l = we(r.url);
3877
- l && (a += `/${l}`), r.param && (a += `/${r.param}`);
3878
- }
3879
- const o = {};
3880
- for (const l of e)
3881
- l.visible && l.query && Object.assign(o, l.query);
3882
- return { path: a || "/", query: o };
3883
- }
3884
- function un(i, e) {
3885
- let t = i.split("/").filter(Boolean);
3886
- return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
3887
- workspaceUrl: t[0],
3888
- bladeUrl: t[1],
3889
- param: t[2]
3890
- };
3891
- }
3892
- function we(i) {
3893
- if (i)
3894
- return i.replace(/^\/+|\/+$/g, "") || void 0;
3895
- }
3896
- function Ae(i) {
3897
- const e = i.currentRoute.value.params;
3898
- return Object.values(e).find((t) => typeof t == "string" && t) || "";
3899
- }
3900
- function wt(i, e) {
3901
- function t() {
3902
- const { path: r, query: a } = Se(Ae(i), e.blades.value);
3903
- i.push({ path: r, query: a });
3904
- }
3905
- function n() {
3906
- const { path: r, query: a } = Se(Ae(i), e.blades.value);
3907
- i.replace({ path: r, query: a });
3908
- }
3909
- return { syncUrlPush: t, syncUrlReplace: n };
3910
- }
3911
- const At = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
3912
- function I(i) {
3913
- throw new Error(`[vc-shell] ${i} requires blade context.
3914
- ${At}`);
3915
- }
3916
- function Pt() {
3917
- const i = (re() ? J(je, void 0) : void 0) ?? Ne, e = (re() ? J(ht, void 0) : void 0) ?? ze;
3918
- if (!i || !e)
3919
- throw new Error(
3920
- "[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
3921
- );
3922
- const t = i, n = e, r = re() ? J(dt, void 0) : void 0, a = re() ? J(pt, void 0) : void 0;
3923
- let o;
3924
- function l() {
3925
- if (o) return o;
3926
- const x = $e?.router;
3927
- return x && (o = wt(x, t)), o;
3928
- }
3929
- const c = d(() => (r || I("id"), r.value.id)), p = d(() => (r || I("param"), r.value.param)), g = d(() => (r || I("options"), r.value.options)), h = d(() => (r || I("query"), r.value.query)), _ = d(() => (r || I("closable"), r.value.parentId !== void 0)), A = d(() => (r || I("expanded"), t.activeBlade.value?.id === r.value.id)), E = d(() => (r || I("name"), r.value.name)), O = d(() => {
3930
- if (!r) return;
3931
- const x = r.value.id;
3932
- return t.blades.value.find((N) => N.parentId === x)?.param;
3933
- });
3934
- let z = !1;
3935
- function D(x) {
3936
- if (z) {
3937
- console.warn(
3938
- "[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
3939
- );
3940
- return;
3941
- }
3942
- z = !0;
3943
- const N = Ge(x) ? x : G(x);
3944
- Pe(ft, N);
3945
- }
3946
- async function b(x) {
3947
- const { isWorkspace: N, ...fe } = x;
3948
- if (N)
3949
- await t.openWorkspace(fe);
3950
- else {
3951
- const ye = r?.value.id;
3952
- ye ? await t.openBlade({ ...fe, parentId: ye }) : await t.openBlade(fe);
3953
- }
3954
- t.activeBlade.value?.url && l()?.syncUrlPush();
3955
- }
3956
- async function m() {
3957
- r || I("closeSelf()");
3958
- const x = await t.closeBlade(r.value.id);
3959
- return x || l()?.syncUrlReplace(), x;
3960
- }
3961
- async function C() {
3962
- r || I("closeChildren()"), await t.closeChildren(r.value.id), l()?.syncUrlReplace();
3963
- }
3964
- async function T(x) {
3965
- r || I("replaceWith()"), await t.replaceCurrentBlade({
3966
- ...x,
3967
- parentId: r.value.parentId
3968
- }), t.activeBlade.value?.url && l()?.syncUrlReplace();
3969
- }
3970
- async function P(x) {
3971
- r || I("coverWith()"), await t.coverCurrentBlade({
3972
- ...x,
3973
- parentId: r.value.parentId
3974
- }), t.activeBlade.value?.url && l()?.syncUrlPush();
3975
- }
3976
- async function F(x, N) {
3977
- return r || I("callParent()"), n.callParent(r.value.id, x, N);
3978
- }
3979
- function he(x) {
3980
- r || I("exposeToChildren()"), n.exposeToChildren(r.value.id, x);
3981
- }
3982
- function de(x) {
3983
- r || I("onBeforeClose()"), t.registerBeforeClose(r.value.id, x);
3984
- }
3985
- function u(x) {
3986
- r || I("setError()"), t.setBladeError(r.value.id, x);
3987
- }
3988
- function f() {
3989
- r || I("clearError()"), t.clearBladeError(r.value.id);
3990
- }
3991
- let v = 0;
3992
- function y(x) {
3993
- a || I("addBanner()");
3994
- const N = `banner-${r.value.id}-${++v}`;
3995
- return a.value.push({
3996
- ...x,
3997
- id: N,
3998
- dismissible: x.dismissible ?? !1
3999
- }), N;
4000
- }
4001
- function U(x) {
4002
- a || I("removeBanner()"), a.value = a.value.filter((N) => N.id !== x);
4003
- }
4004
- function $() {
4005
- a || I("clearBanners()"), a.value = a.value.filter((x) => x._system);
4006
- }
4007
- let M = !1, H = !1;
4008
- function W(x) {
4009
- if (r || I("onActivated()"), M) {
4010
- console.warn("[useBlade] onActivated() already registered in this blade.");
4011
- return;
4012
- }
4013
- M = !0, X(A, (N) => {
4014
- N && x();
4015
- });
4016
- }
4017
- function Q(x) {
4018
- if (r || I("onDeactivated()"), H) {
4019
- console.warn("[useBlade] onDeactivated() already registered in this blade.");
4020
- return;
4021
- }
4022
- H = !0, X(A, (N) => {
4023
- N || x();
4024
- });
4025
- }
4026
- return {
4027
- id: c,
4028
- param: p,
4029
- activeChildParam: O,
4030
- options: g,
4031
- query: h,
4032
- closable: _,
4033
- expanded: A,
4034
- name: E,
4035
- provideBladeData: D,
4036
- openBlade: b,
4037
- closeSelf: m,
4038
- closeChildren: C,
4039
- replaceWith: T,
4040
- coverWith: P,
4041
- callParent: F,
4042
- exposeToChildren: he,
4043
- onBeforeClose: de,
4044
- onActivated: W,
4045
- onDeactivated: Q,
4046
- setError: u,
4047
- clearError: f,
4048
- addBanner: y,
4049
- removeBanner: U,
4050
- clearBanners: $
4051
- };
4052
- }
4053
- let Ot = 0;
4054
- function ie() {
4055
- return `blade_${++Ot}_${Math.random().toString(36).slice(2, 8)}`;
4056
- }
4057
- function cn(i, e) {
4058
- const t = G([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = d(() => t.value[0]), l = d(() => t.value), c = d(() => {
4059
- for (let u = t.value.length - 1; u >= 0; u--)
4060
- if (t.value[u].visible) return t.value[u];
4061
- });
4062
- function p(u) {
4063
- n.delete(u), r.delete(u), a.delete(u);
4064
- }
4065
- function g(u) {
4066
- const f = i.getBlade(u);
4067
- if (f)
4068
- return f.route;
4069
- }
4070
- async function h(u) {
4071
- for (let f = u.length - 1; f >= 0; f--) {
4072
- const v = n.get(u[f].id);
4073
- if (v && await v())
4074
- return !0;
4075
- }
4076
- return !1;
4077
- }
4078
- function _(u) {
4079
- for (const f of u)
4080
- a.get(f.id)?.(), p(f.id);
4081
- }
4082
- async function A(u) {
4083
- if (o.value?.name === u.name) return;
4084
- const v = i.getBlade(u.name);
4085
- if (!v)
4086
- throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4087
- if (e && v.permissions && !e(v.permissions)) {
4088
- console.warn(`[BladeStack] Access denied to workspace '${u.name}'`);
4089
- return;
4090
- }
4091
- _([...t.value]);
4092
- const y = {
4093
- id: ie(),
4094
- name: u.name,
4095
- url: g(u.name),
4096
- // workspace blades don't have param when opened first
4097
- query: u.query,
4098
- options: u.options,
4099
- visible: !0
4100
- };
4101
- t.value = [y], u.onOpen && r.set(y.id, u.onOpen), u.onClose && a.set(y.id, u.onClose), u.onOpen?.();
4102
- }
4103
- async function E(u) {
4104
- if (!i.getBlade(u.name))
4105
- throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4106
- const f = u.parentId ?? c.value?.id ?? o.value?.id;
4107
- if (!f)
4108
- throw new Error("[BladeStack] Cannot open blade: no parent blade found");
4109
- const v = t.value.findIndex(($) => $.id === f);
4110
- if (v === -1)
4111
- throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
4112
- const y = t.value.slice(v + 1);
4113
- if (y.length > 0 && await h(y))
4114
- return;
4115
- _(y);
4116
- const U = {
4117
- id: ie(),
4118
- name: u.name,
4119
- url: g(u.name),
4120
- param: u.param,
4121
- query: u.query,
4122
- options: u.options,
4123
- parentId: f,
4124
- visible: !0
4125
- };
4126
- t.value = [...t.value.slice(0, v + 1), U], u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4127
- }
4128
- async function O(u) {
4129
- const f = t.value.findIndex(($) => $.id === u);
4130
- if (f === -1 || f === 0) return !1;
4131
- const v = t.value.slice(f);
4132
- if (await h(v)) return !0;
4133
- _(v), t.value = t.value.slice(0, f);
4134
- const U = t.value.length - 1;
4135
- if (U > 0 && !t.value[U].visible) {
4136
- const $ = [...t.value];
4137
- $[U] = { ...$[U], visible: !0 }, t.value = $;
4138
- }
4139
- return !1;
4140
- }
4141
- async function z(u) {
4142
- const f = c.value;
4143
- if (!f)
4144
- throw new Error("[BladeStack] No active blade to replace");
4145
- if (!i.getBlade(u.name))
4146
- throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4147
- const v = t.value.findIndex((M) => M.id === f.id);
4148
- if (v === -1)
4149
- throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
4150
- const y = t.value.slice(v + 1);
4151
- if (y.length > 0) {
4152
- if (await h(y)) return;
4153
- _(y);
4154
- }
4155
- const U = {
4156
- id: ie(),
4157
- name: u.name,
4158
- url: g(u.name),
4159
- param: u.param,
4160
- query: u.query,
4161
- options: u.options,
4162
- parentId: f.parentId,
4163
- visible: !0
4164
- };
4165
- _([f]);
4166
- const $ = [...t.value.slice(0, v), U, ...t.value.slice(v + 1)];
4167
- t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4168
- }
4169
- async function D(u) {
4170
- const f = c.value;
4171
- if (!f)
4172
- throw new Error("[BladeStack] No active blade to cover");
4173
- if (!i.getBlade(u.name))
4174
- throw new Error(`[BladeStack] Blade '${u.name}' not found in registry`);
4175
- const v = t.value.findIndex((M) => M.id === f.id);
4176
- if (v === -1)
4177
- throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
4178
- const y = t.value.slice(v + 1);
4179
- if (y.length > 0) {
4180
- if (await h(y)) return;
4181
- _(y);
4182
- }
4183
- const U = {
4184
- id: ie(),
4185
- name: u.name,
4186
- url: g(u.name),
4187
- param: u.param,
4188
- query: u.query,
4189
- options: u.options,
4190
- parentId: f.id,
4191
- visible: !0
4192
- }, $ = t.value.slice(0, v);
4193
- $.push({ ...f, visible: !1 }), $.push(U), t.value = $, u.onOpen && r.set(U.id, u.onOpen), u.onClose && a.set(U.id, u.onClose), u.onOpen?.();
4194
- }
4195
- async function b(u) {
4196
- const f = t.value.findIndex((U) => U.id === u);
4197
- if (f === -1) return;
4198
- const v = t.value.slice(f + 1);
4199
- v.length === 0 || await h(v) || (_(v), t.value = t.value.slice(0, f + 1));
4200
- }
4201
- function m(u, f) {
4202
- n.set(u, f);
4203
- }
4204
- function C(u) {
4205
- n.delete(u);
4206
- }
4207
- function T(u, f) {
4208
- const v = t.value.findIndex((U) => U.id === u);
4209
- if (v === -1) return;
4210
- const y = [...t.value];
4211
- y[v] = { ...y[v], error: f }, t.value = y;
4212
- }
4213
- function P(u) {
4214
- const f = t.value.findIndex((y) => y.id === u);
4215
- if (f === -1) return;
4216
- const v = [...t.value];
4217
- v[f] = { ...v[f], error: void 0 }, t.value = v;
4218
- }
4219
- function F(u, f) {
4220
- const v = t.value.findIndex((U) => U.id === u);
4221
- if (v === -1 || t.value[v].title === f) return;
4222
- const y = [...t.value];
4223
- y[v] = { ...y[v], title: f }, t.value = y;
4224
- }
4225
- function he(u, f) {
4226
- const v = t.value.findIndex((W) => W.id === u);
4227
- if (v === -1) return;
4228
- const y = t.value[v].query ?? {}, U = { ...y };
4229
- for (const [W, Q] of Object.entries(f))
4230
- Q === "" || Q == null ? delete U[W] : U[W] = Q;
4231
- const $ = Object.keys(y), M = Object.keys(U);
4232
- if ($.length === M.length && M.every((W) => y[W] === U[W]))
4233
- return;
4234
- const H = [...t.value];
4235
- H[v] = { ...H[v], query: U }, t.value = H;
4236
- }
4237
- function de(u) {
4238
- for (const f of t.value)
4239
- p(f.id);
4240
- t.value = u;
4241
- }
4242
- return {
4243
- workspace: o,
4244
- blades: l,
4245
- activeBlade: c,
4246
- openWorkspace: A,
4247
- openBlade: E,
4248
- closeBlade: O,
4249
- closeChildren: b,
4250
- replaceCurrentBlade: z,
4251
- coverCurrentBlade: D,
4252
- registerBeforeClose: m,
4253
- unregisterBeforeClose: C,
4254
- setBladeError: T,
4255
- clearBladeError: P,
4256
- setBladeTitle: F,
4257
- updateBladeQuery: he,
4258
- _restoreStack: de
4259
- };
4260
- }
4261
- function It() {
4262
- const i = J(je);
4263
- if (!i)
4264
- throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
4265
- return i;
4266
- }
4267
- const Z = B("use-ai-agent");
4268
- function hn(i) {
4269
- const e = J(mt), { user: t, getAccessToken: n } = ct(), { openBlade: r } = Pt(), { blades: a, activeBlade: o } = It(), l = i?.isEmbedded, c = Ct({
4270
- userGetter: () => {
4271
- if (t.value)
4272
- return {
4273
- id: t.value.id,
4274
- userName: t.value.userName,
4275
- isAdministrator: t.value.isAdministrator,
4276
- permissions: t.value.permissions
4277
- };
4278
- },
4279
- bladeGetter: () => {
4280
- const g = o.value ?? a.value[a.value.length - 1];
4281
- return g ? {
4282
- id: g.id,
4283
- name: g.name,
4284
- title: g.title,
4285
- param: g.param,
4286
- options: g.options
4287
- } : null;
4288
- },
4289
- localeGetter: () => e?.currentLocale.value ?? "en",
4290
- tokenGetter: n,
4291
- navigateToBlade: (g, h, _) => {
4292
- r({ name: g, param: h, options: _ }).then(() => {
4293
- Z.debug(`Navigated to blade: ${g}`);
4294
- }).catch((A) => {
4295
- Z.warn(`Blade not found or cannot be opened: ${g}`, A);
4296
- });
4297
- },
4298
- initialConfig: i?.config,
4299
- isEmbedded: l
4300
- });
4301
- if (Pe(Ee, c), Z.debug("AiAgentService provided"), i?.addGlobalToolbarButton ?? !0) {
4302
- const g = J(vt, null);
4303
- g ? (g.registerToolbarItem(
4304
- {
4305
- id: xt,
4306
- icon: Et,
4307
- title: yt,
4308
- clickHandler: () => {
4309
- c.togglePanel();
4310
- }
4311
- },
4312
- "*"
4313
- // Wildcard for all blades
4314
- ), Z.debug("Global AI toolbar button registered with wildcard '*'")) : Z.warn("Toolbar service not available, AI button not registered");
4315
- }
4316
- return c;
4317
- }
4318
- function dn() {
4319
- const i = J(Ee);
4320
- if (!i) {
4321
- Z.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
4322
- return;
4323
- }
4324
- return {
4325
- // State
4326
- panelState: i.panelState,
4327
- config: i.config,
4328
- context: i.context,
4329
- isOpen: i.isOpen,
4330
- isExpanded: i.isExpanded,
4331
- totalItemsCount: i.totalItemsCount,
4332
- // Panel control
4333
- openPanel: i.openPanel,
4334
- closePanel: i.closePanel,
4335
- togglePanel: i.togglePanel,
4336
- expandPanel: i.expandPanel,
4337
- collapsePanel: i.collapsePanel,
4338
- // Configuration
4339
- setConfig: i.setConfig,
4340
- // Communication
4341
- sendMessage: i.sendMessage,
4342
- onMessage: i.onMessage
4343
- };
4344
- }
4345
- function fn(i) {
4346
- return {
4347
- id: "ai-agent-toggle",
4348
- icon: i?.icon ?? "lucide-sparkles",
4349
- title: i?.title ?? "AI Assistant",
4350
- clickHandler: () => {
4351
- console.warn("[ai-agent] createAiAgentToolbarButton is deprecated. Use useAiAgent().togglePanel instead.");
4352
- }
4353
- };
4354
- }
4355
- const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4356
- key: 1,
4357
- d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z",
4358
- fill: "url(#virto-oz-gradient-animated)"
4359
- }, Nt = ["id"], zt = {
4360
- key: 1,
4361
- id: "virto-oz-gradient-animated",
4362
- gradientUnits: "userSpaceOnUse",
4363
- x1: "0",
4364
- y1: "0",
4365
- x2: "99",
4366
- y2: "108"
4367
- }, Be = /* @__PURE__ */ L({
4368
- __name: "VcVirtoOzLogo",
4369
- props: {
4370
- width: { default: 22 },
4371
- height: { default: 24 },
4372
- animated: { type: Boolean, default: !1 }
4373
- },
4374
- setup(i) {
4375
- const e = d(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
4376
- return (t, n) => (S(), j("svg", {
4377
- width: i.width,
4378
- height: i.height,
4379
- viewBox: "0 0 99 108",
4380
- fill: "none",
4381
- xmlns: "http://www.w3.org/2000/svg",
4382
- class: "vc-virto-oz-logo"
4383
- }, [
4384
- n[3] || (n[3] = R("path", {
4385
- d: "M40.1199 2.41576C45.6989 -0.805254 52.5724 -0.805253 58.1514 2.41576L89.2556 20.3738C94.8345 23.5948 98.2713 29.5475 98.2713 35.9895V71.9055C98.2713 78.3475 94.8345 84.3002 89.2556 87.5212L58.1514 105.479C52.5724 108.7 45.6989 108.7 40.1199 105.479L9.01574 87.5212C3.43678 84.3002 0 78.3475 0 71.9055V35.9895C0 29.5475 3.43678 23.5948 9.01574 20.3738L40.1199 2.41576Z",
4386
- fill: "white"
4387
- }, null, -1)),
4388
- i.animated ? (S(), j("path", $t)) : (S(), j("g", {
4389
- key: 0,
4390
- "clip-path": `url(#${e.value})`
4391
- }, [...n[0] || (n[0] = [
4392
- R("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
4393
- R("foreignObject", {
4394
- x: "-334.01",
4395
- y: "-334.01",
4396
- width: "668.02",
4397
- height: "668.02"
4398
- }, [
4399
- R("div", {
4400
- xmlns: "http://www.w3.org/1999/xhtml",
4401
- style: { background: `conic-gradient(
4402
- from 90deg,
4403
- rgba(255, 149, 51, 1) 0deg,
4404
- rgba(255, 79, 187, 1) 43.2deg,
4405
- rgba(234, 255, 79, 1) 143.654deg,
4406
- rgba(28, 145, 252, 1) 252.692deg,
4407
- rgba(154, 45, 248, 1) 316.8deg,
4408
- rgba(255, 149, 51, 1) 360deg
4409
- )`, height: "100%", width: "100%", opacity: "1" }
4410
- })
4411
- ])
4412
- ], -1)
4413
- ])], 8, jt)),
4414
- n[4] || (n[4] = R("path", {
4415
- d: "M72.1266 54.0945C72.1266 60.0873 74.3028 71.0379 60.6238 82.8517C65.2871 73.0587 55.8339 77.1002 49.1209 77.1002C36.4152 77.1002 26.1152 66.8002 26.1152 54.0945C26.1152 41.3889 36.4152 31.0889 49.1209 31.0889C61.8266 31.0889 72.1266 41.3889 72.1266 54.0945Z",
4416
- fill: "white"
4417
- }, null, -1)),
4418
- n[5] || (n[5] = R("ellipse", {
4419
- cx: "49.12",
4420
- cy: "54.09",
4421
- rx: "4.05",
4422
- ry: "4.05",
4423
- fill: "#6C6C6C"
4424
- }, null, -1)),
4425
- n[6] || (n[6] = R("ellipse", {
4426
- cx: "60.62",
4427
- cy: "54.09",
4428
- rx: "4.05",
4429
- ry: "4.05",
4430
- fill: "#6C6C6C"
4431
- }, null, -1)),
4432
- n[7] || (n[7] = R("ellipse", {
4433
- cx: "37.62",
4434
- cy: "54.09",
4435
- rx: "4.05",
4436
- ry: "4.05",
4437
- fill: "#6C6C6C"
4438
- }, null, -1)),
4439
- R("defs", null, [
4440
- i.animated ? Y("", !0) : (S(), j("clipPath", {
4441
- key: 0,
4442
- id: e.value
4443
- }, [...n[1] || (n[1] = [
4444
- R("path", { d: "M72.9199 46.4165C73.2527 46.9495 73.5831 47.4996 73.9092 48.0679C78.4022 55.8976 79.0605 66.3551 76.7793 76.6079C74.5635 86.5668 69.6096 96.1504 62.9795 102.692L58.1514 105.48C52.5725 108.701 45.699 108.701 40.1201 105.48L21.665 94.8247C29.1398 95.4723 37.0781 94.4072 44.3848 91.9233C54.5984 88.4512 63.7463 82.1497 68.6807 73.6548C75.124 62.5619 75.4351 53.2694 72.9199 46.4165ZM56.5205 29.5093C65.5697 29.5331 75.1259 33.9964 83.0215 40.8853C89.9848 46.9608 95.5441 54.8286 98.2715 62.9478V71.9058C98.2715 78.3478 94.8348 84.301 89.2559 87.522L69.4658 98.9468C74.0688 92.6731 77.4601 84.9996 79.207 77.1479C81.5723 66.517 80.9666 55.3703 76.0654 46.8296C69.6817 35.7054 61.7917 30.789 54.6006 29.5396C55.2271 29.5179 55.867 29.5076 56.5205 29.5093ZM0 50.688C3.16812 57.476 8.04614 63.7935 13.8389 68.853C21.9305 75.9204 31.9368 80.6465 41.7578 80.6724C54.5833 80.706 62.7851 76.3308 67.4629 70.728C67.1684 71.2812 66.8584 71.8408 66.5303 72.4058C61.9844 80.2318 53.417 86.2251 43.584 89.5679C34.4355 92.6779 24.3375 93.4401 15.6328 91.3423L9.01562 87.522C3.43667 84.301 0 78.3478 0 71.9058V50.688ZM26.7559 10.1313C22.5672 16.2131 19.6599 23.483 18.2695 30.9126C16.3077 41.3962 17.3358 52.3558 22.2188 60.8647C28.6034 71.9905 36.4946 76.9061 43.6865 78.1548C43.0594 78.1765 42.4188 78.1868 41.7646 78.1851C32.7113 78.1612 23.2602 73.7801 15.4746 66.98C8.2197 60.6434 2.52684 52.3035 0 43.7075V35.9897C6.33247e-05 29.5479 3.43687 23.5955 9.01562 20.3745L26.7559 10.1313ZM51.2432 31.6978C54.0287 31.7659 57.0796 32.4389 60.1875 33.9976C58.8529 33.7029 57.5584 33.677 56.3965 33.9722L57.0088 36.3833C58.4774 36.0102 60.6741 36.4134 63.0332 37.8237C65.3553 39.212 67.6865 41.4953 69.375 44.5923C70.7081 47.0376 71.6489 50.015 71.8535 53.4839C71.4414 52.1828 70.818 51.0505 69.9824 50.1929L68.2012 51.9282C69.2585 53.0135 70.0076 55.1176 69.9658 57.8657C69.9246 60.5708 69.1121 63.731 67.2744 66.7417C65.8225 69.1203 63.7129 71.4251 60.8086 73.3374C61.7311 72.329 62.4012 71.2217 62.7266 70.0679L60.333 69.3931C59.9218 70.8514 58.4742 72.5523 56.0732 73.8901C53.71 75.207 50.5672 76.0837 47.041 75.9976C44.2551 75.9294 41.204 75.2549 38.0957 73.6958C39.4307 73.9907 40.7254 74.0184 41.8877 73.7231L41.2754 71.312C39.8069 71.6851 37.6101 71.2818 35.251 69.8716C32.9289 68.4834 30.5977 66.2 28.9092 63.103C27.5754 60.6565 26.6337 57.6775 26.4297 54.2065C26.8418 55.5096 27.4661 56.6438 28.3027 57.5024L30.084 55.7661C29.0267 54.6807 28.2775 52.5767 28.3193 49.8286C28.3606 47.1236 29.173 43.9633 31.0107 40.9526C32.4621 38.5751 34.5702 36.2706 37.4727 34.3589C36.5514 35.3666 35.8827 36.4736 35.5576 37.6265L37.9512 38.3013C38.3625 36.8429 39.8101 35.142 42.2109 33.8042C44.5742 32.4874 47.717 31.6116 51.2432 31.6978ZM40.1201 2.4165C45.6991 -0.804509 52.5724 -0.804509 58.1514 2.4165L75.6777 12.5356C68.4683 12.0708 60.8765 13.1991 53.8691 15.6333C43.6671 19.1774 34.5353 25.5492 29.6035 34.0396C23.1612 45.1305 22.8486 54.4223 25.3623 61.2749C25.0301 60.7429 24.7004 60.1936 24.375 59.6265C19.8639 51.765 18.8286 41.4457 20.7139 31.3706C22.4486 22.1007 26.633 13.1734 32.6709 6.71631L40.1201 2.4165ZM54.6855 17.9829C63.3703 14.966 72.9092 14.0715 81.3008 15.7817L89.2559 20.3745C94.8346 23.5955 98.2714 29.5479 98.2715 35.9897V56.4692C95.0606 49.9731 90.2759 43.9144 84.6562 39.0112C76.4636 31.8632 66.3524 27.0488 56.5273 27.0229C43.6978 26.9893 35.4935 31.3659 30.8164 36.9712C31.1117 36.4161 31.4247 35.8554 31.7539 35.2886C36.3024 27.4582 44.8633 21.395 54.6855 17.9829Z" }, null, -1)
4445
- ])], 8, Nt)),
4446
- i.animated ? (S(), j("linearGradient", zt, [...n[2] || (n[2] = [
4447
- Fe('<stop offset="0%" stop-color="#FF9533"><animate attributeName="stop-color" values="#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="25%" stop-color="#FF4FBB"><animate attributeName="stop-color" values="#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="50%" stop-color="#EAFF4F"><animate attributeName="stop-color" values="#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="75%" stop-color="#1C91FC"><animate attributeName="stop-color" values="#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="100%" stop-color="#9A2DF8"><animate attributeName="stop-color" values="#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8" dur="4s" repeatCount="indefinite"></animate></stop>', 5)
4448
- ])])) : Y("", !0)
4449
- ])
4450
- ], 8, Rt));
4451
- }
4452
- }), Bt = /* @__PURE__ */ L({
3568
+ }, Ke = Symbol("BladeStack"), We = Symbol("BladeMessaging"), Ve = Symbol("BladeDescriptor"), qe = Symbol("BladeMaximized"), He = Symbol("BladeRenderingState"), Ye = Symbol("BladeData"), Xe = Symbol("BladeBanners"), Ze = Symbol("BladeBackButton"), Qe = Symbol("NotificationStore"), et = Symbol("WidgetService"), tt = Symbol("DashboardService"), rt = Symbol("MenuService"), nt = Symbol("SettingsMenuService"), st = Symbol("AppBarWidgetService"), at = Symbol("AppBarMobileButtonsService"), it = Symbol("LanguageService"), ot = Symbol("ToolbarService"), lt = Symbol("DynamicModules"), ut = Symbol("ModulesReady"), ht = Symbol("ModulesLoadError"), ct = Symbol("AppRootElement"), dt = Symbol("EmbeddedMode"), ft = Symbol("ShellIndicators"), pt = Symbol("AiAgentService"), mt = Symbol("IsMobile"), vt = Symbol("IsDesktop"), bt = Symbol("IsPhone"), xt = Symbol("IsTablet"), gt = Symbol("IsTouch"), Et = Symbol("BladeRoutes"), Ut = Symbol("InternalRoutes"), St = Symbol("CloseSettingsMenu"), yt = Symbol("BladeContext"), Tt = Symbol("WidgetScope"), _t = Symbol("BladeForm"), Pt = Symbol("BladeLoading"), be = /* @__PURE__ */ T({
4453
3569
  __name: "vc-material-icon",
4454
3570
  props: {
4455
3571
  icon: {},
@@ -4459,20 +3575,20 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4459
3575
  customSize: {}
4460
3576
  },
4461
3577
  setup(i) {
4462
- const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4463
- return ce(() => {
4464
- }), (r, a) => (S(), j("span", {
4465
- class: q([
3578
+ const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3579
+ return R(() => {
3580
+ }), (r, s) => (E(), S("span", {
3581
+ class: P([
4466
3582
  "vc-material-icon",
4467
3583
  "material-symbols-" + i.type,
4468
3584
  !t.value && `vc-material-icon--${i.size}`,
4469
3585
  i.variant ? `vc-material-icon--${i.variant}` : ""
4470
3586
  ]),
4471
- style: te(n.value),
3587
+ style: C(n.value),
4472
3588
  "aria-hidden": "true"
4473
- }, be(i.icon), 7));
3589
+ }, W(i.icon), 7));
4474
3590
  }
4475
- }), kt = /* @__PURE__ */ L({
3591
+ }), xe = /* @__PURE__ */ T({
4476
3592
  __name: "vc-bootstrap-icon",
4477
3593
  props: {
4478
3594
  icon: {},
@@ -4481,22 +3597,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4481
3597
  customSize: {}
4482
3598
  },
4483
3599
  setup(i) {
4484
- const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4485
- ce(() => {
3600
+ const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3601
+ R(() => {
4486
3602
  });
4487
- const r = d(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
4488
- return (a, o) => (S(), j("i", {
4489
- class: q([
3603
+ const r = u(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
3604
+ return (s, o) => (E(), S("i", {
3605
+ class: P([
4490
3606
  "vc-bootstrap-icon",
4491
3607
  !t.value && `vc-bootstrap-icon--${i.size}`,
4492
3608
  r.value,
4493
3609
  i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
4494
3610
  ]),
4495
- style: te(n.value),
3611
+ style: C(n.value),
4496
3612
  "aria-hidden": "true"
4497
3613
  }, null, 6));
4498
3614
  }
4499
- }), Gt = /* @__PURE__ */ L({
3615
+ }), ge = /* @__PURE__ */ T({
4500
3616
  __name: "vc-lucide-icon",
4501
3617
  props: {
4502
3618
  icon: {},
@@ -4506,35 +3622,35 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4506
3622
  customSize: {}
4507
3623
  },
4508
3624
  setup(i) {
4509
- const e = B("vc-lucide-icon"), t = i, n = d(() => typeof t.customSize == "number" && t.customSize > 0), r = d(() => {
3625
+ const e = g("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
4510
3626
  if (!t.icon) return "HelpCircleIcon";
4511
3627
  let l = t.icon;
4512
- return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
4513
- }), a = d(() => {
4514
- const l = r.value, c = Je[l];
4515
- return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Oe(c);
4516
- }), o = d(() => n.value && t.customSize ? {
3628
+ return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((h) => h.charAt(0).toUpperCase() + h.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
3629
+ }), s = u(() => {
3630
+ const l = r.value, h = X[l];
3631
+ return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : K(h);
3632
+ }), o = u(() => n.value && t.customSize ? {
4517
3633
  width: `${t.customSize}px`,
4518
3634
  height: `${t.customSize}px`
4519
3635
  } : {});
4520
- return (l, c) => a.value ? (S(), ee(ge(a.value), {
3636
+ return (l, h) => s.value ? (E(), J(F(s.value), {
4521
3637
  key: 0,
4522
3638
  "stroke-width": t.strokeWidth,
4523
- class: q([
3639
+ class: P([
4524
3640
  "vc-lucide-icon",
4525
3641
  !n.value && `vc-lucide-icon--${i.size}`,
4526
3642
  i.variant ? `vc-lucide-icon--${i.variant}` : ""
4527
3643
  ]),
4528
- style: te(o.value),
3644
+ style: C(o.value),
4529
3645
  "aria-hidden": "true"
4530
- }, null, 8, ["stroke-width", "class", "style"])) : (S(), j("span", {
3646
+ }, null, 8, ["stroke-width", "class", "style"])) : (E(), S("span", {
4531
3647
  key: 1,
4532
- class: q(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
4533
- }, [...c[0] || (c[0] = [
4534
- R("i", { class: "vc-lucide-icon__fallback" }, null, -1)
3648
+ class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
3649
+ }, [...h[0] || (h[0] = [
3650
+ V("i", { class: "vc-lucide-icon__fallback" }, null, -1)
4535
3651
  ])], 2));
4536
3652
  }
4537
- }), Ft = /* @__PURE__ */ L({
3653
+ }), Ee = /* @__PURE__ */ T({
4538
3654
  __name: "vc-fontawesome-icon",
4539
3655
  props: {
4540
3656
  icon: {},
@@ -4543,22 +3659,22 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4543
3659
  customSize: {}
4544
3660
  },
4545
3661
  setup(i) {
4546
- const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4547
- ce(() => {
3662
+ const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3663
+ R(() => {
4548
3664
  });
4549
- const r = d(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
4550
- return (a, o) => (S(), j("i", {
4551
- class: q([
3665
+ const r = u(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
3666
+ return (s, o) => (E(), S("i", {
3667
+ class: P([
4552
3668
  "vc-fa-icon",
4553
3669
  !t.value && `vc-fa-icon--${i.size}`,
4554
3670
  r.value,
4555
3671
  i.variant ? `vc-fa-icon--${i.variant}` : ""
4556
3672
  ]),
4557
- style: te(n.value),
3673
+ style: C(n.value),
4558
3674
  "aria-hidden": "true"
4559
3675
  }, null, 6));
4560
3676
  }
4561
- }), Dt = ["xlink:href"], Mt = /* @__PURE__ */ L({
3677
+ }), Ue = ["xlink:href"], Se = /* @__PURE__ */ T({
4562
3678
  inheritAttrs: !1,
4563
3679
  __name: "vc-svg-icon",
4564
3680
  props: {
@@ -4570,31 +3686,31 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4570
3686
  strokeWidth: {}
4571
3687
  },
4572
3688
  setup(i) {
4573
- const e = i, t = d(() => typeof e.customSize == "number" && e.customSize > 0), n = d(() => {
3689
+ const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => {
4574
3690
  if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
4575
3691
  return e.icon;
4576
- const a = e.icon.indexOf("#");
4577
- if (a > -1) {
4578
- const o = e.icon.substring(0, a), l = e.icon.substring(a);
3692
+ const s = e.icon.indexOf("#");
3693
+ if (s > -1) {
3694
+ const o = e.icon.substring(0, s), l = e.icon.substring(s);
4579
3695
  return `${e.basePath}/${o}${l}`;
4580
3696
  }
4581
3697
  return `${e.basePath}/${e.icon}`;
4582
- }), r = d(() => {
4583
- const a = {};
4584
- return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
3698
+ }), r = u(() => {
3699
+ const s = {};
3700
+ return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
4585
3701
  });
4586
- return (a, o) => (S(), j("svg", oe({
3702
+ return (s, o) => (E(), S("svg", j({
4587
3703
  xmlns: "http://www.w3.org/2000/svg",
4588
3704
  class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
4589
3705
  style: r.value
4590
- }, a.$attrs), [
4591
- n.value ? (S(), j("use", {
3706
+ }, s.$attrs), [
3707
+ n.value ? (E(), S("use", {
4592
3708
  key: 0,
4593
3709
  "xlink:href": n.value
4594
- }, null, 8, Dt)) : Y("", !0)
3710
+ }, null, 8, Ue)) : q("", !0)
4595
3711
  ], 16));
4596
3712
  }
4597
- }), Lt = ["aria-hidden", "aria-label", "role"], ue = /* @__PURE__ */ L({
3713
+ }), ye = ["aria-hidden", "aria-label", "role"], Ot = /* @__PURE__ */ T({
4598
3714
  __name: "vc-icon",
4599
3715
  props: {
4600
3716
  icon: { default: "lucide-square" },
@@ -4607,7 +3723,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4607
3723
  },
4608
3724
  setup(i) {
4609
3725
  const e = i;
4610
- ce(() => {
3726
+ R(() => {
4611
3727
  });
4612
3728
  const t = {
4613
3729
  xs: 12,
@@ -4617,50 +3733,50 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4617
3733
  xl: 22,
4618
3734
  xxl: 30,
4619
3735
  xxxl: 64
4620
- }, n = d(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = d(() => {
3736
+ }, n = u(() => typeof e.icon != "string" ? "custom" : e.icon.startsWith("fa-") || e.icon.includes("fa-") ? "fontawesome" : e.icon.startsWith("bi-") ? "bootstrap" : e.icon.startsWith("lucide-") ? "lucide" : e.icon.startsWith("material-") ? "material" : e.icon.startsWith("svg:") ? "svg" : e.icon.endsWith("Icon") ? "lucide" : "custom"), r = u(() => {
4621
3737
  if (typeof e.icon != "string")
4622
3738
  return e.icon;
4623
3739
  if (n.value === "material" && e.icon.startsWith("material-"))
4624
3740
  return e.icon.replace(/^material-/, "");
4625
3741
  if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
4626
- const b = e.icon.replace(/^lucide-/, "");
4627
- return b.endsWith("Icon") ? b : `${b}Icon`;
3742
+ const d = e.icon.replace(/^lucide-/, "");
3743
+ return d.endsWith("Icon") ? d : `${d}Icon`;
4628
3744
  }
4629
3745
  return e.icon;
4630
- }), a = d(() => n.value === "material"), o = d(() => n.value === "bootstrap"), l = d(() => n.value === "lucide"), c = d(() => n.value === "fontawesome"), p = d(() => {
3746
+ }), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), x = u(() => {
4631
3747
  if (typeof e.icon != "string")
4632
3748
  return !0;
4633
3749
  if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
4634
3750
  return !1;
4635
3751
  if (l.value)
4636
3752
  try {
4637
- const b = typeof r.value == "string" ? r.value : String(r.value);
4638
- return pe(b) !== b;
3753
+ const d = typeof r.value == "string" ? r.value : String(r.value);
3754
+ return G(d) !== d;
4639
3755
  } catch {
4640
3756
  return !1;
4641
3757
  }
4642
3758
  try {
4643
- return pe(e.icon) !== e.icon;
3759
+ return G(e.icon) !== e.icon;
4644
3760
  } catch {
4645
3761
  return !1;
4646
3762
  }
4647
- }), g = d(() => {
3763
+ }), I = u(() => {
4648
3764
  if (typeof e.icon != "string")
4649
- return Oe(e.icon);
3765
+ return K(e.icon);
4650
3766
  if (["fontawesome", "bootstrap", "material"].includes(n.value))
4651
3767
  return "i";
4652
3768
  try {
4653
- const b = typeof r.value == "string" ? r.value : String(r.value), m = pe(b);
4654
- return m !== b ? m : "i";
3769
+ const d = typeof r.value == "string" ? r.value : String(r.value), c = G(d);
3770
+ return c !== d ? c : "i";
4655
3771
  } catch {
4656
3772
  return "i";
4657
3773
  }
4658
- }), h = d(() => a.value ? Bt : o.value ? kt : l.value ? Gt : c.value ? Ft : z.value ? Mt : p.value ? g.value : "i"), _ = d(() => e.customSize ? e.customSize : t[e.size]), A = d(() => {
4659
- const b = {};
4660
- return p.value && e.customSize && (b.width = `${e.customSize}px`, b.height = `${e.customSize}px`), b;
4661
- }), E = d(() => e.customSize ? {
3774
+ }), O = u(() => s.value ? be : o.value ? xe : l.value ? ge : h.value ? Ee : _.value ? Se : x.value ? I.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), w = u(() => {
3775
+ const d = {};
3776
+ return x.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
3777
+ }), z = u(() => e.customSize ? {
4662
3778
  fontSize: `${e.customSize}px`
4663
- } : {}), O = d(() => a.value ? {
3779
+ } : {}), A = u(() => s.value ? {
4664
3780
  icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
4665
3781
  size: e.size,
4666
3782
  variant: e.variant,
@@ -4683,313 +3799,124 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
4683
3799
  strokeWidth: 1.5,
4684
3800
  customSize: e.customSize
4685
3801
  // Set custom size without scaling
4686
- } : c.value ? {
3802
+ } : h.value ? {
4687
3803
  icon: typeof e.icon == "string" ? e.icon : "",
4688
3804
  size: e.size,
4689
3805
  variant: e.variant,
4690
3806
  customSize: e.customSize
4691
3807
  // Set custom size without scaling
4692
- } : z.value ? {
4693
- icon: D.value,
3808
+ } : _.value ? {
3809
+ icon: $.value,
4694
3810
  size: e.size,
4695
3811
  variant: e.variant,
4696
3812
  customSize: e.customSize,
4697
3813
  basePath: e.basePath
4698
- } : p.value ? {
3814
+ } : x.value ? {
4699
3815
  size: e.size,
4700
- width: _.value,
4701
- height: _.value,
3816
+ width: U.value,
3817
+ height: U.value,
4702
3818
  color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
4703
- } : {}), z = d(() => n.value === "svg"), D = d(() => !z.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
4704
- return (b, m) => i.useContainer ? (S(), j("div", oe({
3819
+ } : {}), _ = u(() => n.value === "svg"), $ = u(() => !_.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
3820
+ return (d, c) => i.useContainer ? (E(), S("div", j({
4705
3821
  key: 0,
4706
3822
  class: ["vc-icon-container", `vc-icon-container--${i.size}`],
4707
- style: E.value,
3823
+ style: z.value,
4708
3824
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4709
3825
  "aria-label": i.ariaLabel || void 0,
4710
3826
  role: i.ariaLabel ? "img" : void 0
4711
- }, b.$attrs), [
4712
- (S(), ee(ge(h.value), oe({
3827
+ }, d.$attrs), [
3828
+ (E(), J(F(O.value), j({
4713
3829
  class: [
4714
3830
  "vc-icon",
4715
3831
  `vc-icon--${i.size}`,
4716
3832
  i.variant ? `vc-icon--${i.variant}` : "",
4717
- !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
3833
+ !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
4718
3834
  ],
4719
- style: A.value
4720
- }, O.value), null, 16, ["class", "style"]))
4721
- ], 16, Lt)) : (S(), ee(ge(h.value), oe({
3835
+ style: w.value
3836
+ }, A.value), null, 16, ["class", "style"]))
3837
+ ], 16, ye)) : (E(), J(F(O.value), j({
4722
3838
  key: 1,
4723
3839
  class: [
4724
3840
  "vc-icon",
4725
3841
  `vc-icon--${i.size}`,
4726
3842
  i.variant ? `vc-icon--${i.variant}` : "",
4727
- !p.value && !a.value && !l.value && !o.value && !c.value ? i.icon.toLowerCase() : ""
3843
+ !x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
4728
3844
  ],
4729
- style: A.value,
3845
+ style: w.value,
4730
3846
  "aria-hidden": i.ariaLabel ? void 0 : "true",
4731
3847
  "aria-label": i.ariaLabel || void 0,
4732
3848
  role: i.ariaLabel ? "img" : void 0
4733
- }, { ...O.value, ...b.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4734
- }
4735
- }), Jt = { class: "vc-ai-agent-header" }, Wt = { class: "vc-ai-agent-header__icon" }, Vt = { class: "vc-ai-agent-header__wrapper" }, Kt = { class: "vc-ai-agent-header__content" }, qt = { class: "vc-ai-agent-header__title" }, Ht = { class: "vc-ai-agent-header__controls" }, Zt = /* @__PURE__ */ L({
4736
- __name: "VcAiAgentHeader",
4737
- props: {
4738
- title: {},
4739
- isExpanded: { type: Boolean },
4740
- itemsCount: {}
4741
- },
4742
- emits: ["close", "expand", "collapse"],
4743
- setup(i) {
4744
- return (e, t) => (S(), j("div", Jt, [
4745
- R("div", Wt, [
4746
- K(Be, {
4747
- width: 22,
4748
- height: 24,
4749
- "show-dots": ""
4750
- })
4751
- ]),
4752
- R("div", Vt, [
4753
- R("div", Kt, [
4754
- R("div", qt, be(i.title), 1)
4755
- ])
4756
- ]),
4757
- R("div", Ht, [
4758
- i.isExpanded ? (S(), j("div", {
4759
- key: 0,
4760
- class: "vc-ai-agent-header__button",
4761
- title: "Collapse",
4762
- onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
4763
- }, [
4764
- K(le(ue), { icon: "lucide-minus" })
4765
- ])) : (S(), j("div", {
4766
- key: 1,
4767
- class: "vc-ai-agent-header__button",
4768
- title: "Expand",
4769
- onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
4770
- }, [
4771
- K(le(ue), { icon: "lucide-panel-top" })
4772
- ])),
4773
- R("div", {
4774
- class: "vc-ai-agent-header__button",
4775
- title: "Close",
4776
- onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4777
- }, [
4778
- K(le(ue), { icon: "lucide-x" })
4779
- ])
4780
- ])
4781
- ]));
4782
- }
4783
- }), Xt = { class: "vc-ai-agent-loader" }, Yt = { class: "vc-ai-agent-loader__content" }, Qt = { class: "vc-ai-agent-loader__logo" }, er = {
4784
- key: 0,
4785
- class: "vc-ai-agent-loader__text"
4786
- }, tr = /* @__PURE__ */ L({
4787
- __name: "VcAiAgentLoader",
4788
- props: {
4789
- text: {}
4790
- },
4791
- setup(i) {
4792
- return (e, t) => (S(), j("div", Xt, [
4793
- R("div", Yt, [
4794
- R("div", Qt, [
4795
- K(Be, {
4796
- width: 80,
4797
- height: 87,
4798
- animated: ""
4799
- })
4800
- ]),
4801
- i.text ? (S(), j("p", er, be(i.text), 1)) : Y("", !0)
4802
- ])
4803
- ]));
4804
- }
4805
- }), rr = { class: "vc-ai-agent-iframe" }, nr = ["src"], ar = {
4806
- key: 1,
4807
- class: "vc-ai-agent-iframe__placeholder"
4808
- }, sr = /* @__PURE__ */ L({
4809
- __name: "VcAiAgentIframe",
4810
- props: {
4811
- url: {}
4812
- },
4813
- emits: ["iframe-ready"],
4814
- setup(i, { emit: e }) {
4815
- const t = B("ai-agent-iframe"), n = i, r = e, a = G(null), o = G(!0);
4816
- X(
4817
- a,
4818
- (c) => {
4819
- c && r("iframe-ready", c);
4820
- },
4821
- { immediate: !0 }
4822
- );
4823
- const l = () => {
4824
- o.value = !1, t.debug("Iframe loaded");
4825
- };
4826
- return X(
4827
- () => n.url,
4828
- () => {
4829
- o.value = !0;
4830
- }
4831
- ), (c, p) => (S(), j("div", rr, [
4832
- K(Ie, { name: "fade" }, {
4833
- default: Re(() => [
4834
- o.value && i.url ? (S(), ee(tr, {
4835
- key: 0,
4836
- text: c.$t("AI_AGENT.LOADING")
4837
- }, null, 8, ["text"])) : Y("", !0)
4838
- ]),
4839
- _: 1
4840
- }),
4841
- i.url ? (S(), j("iframe", {
4842
- key: 0,
4843
- ref_key: "iframeRef",
4844
- ref: a,
4845
- src: i.url,
4846
- class: q(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4847
- sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
4848
- allow: "clipboard-read; clipboard-write",
4849
- onLoad: l
4850
- }, null, 42, nr)) : (S(), j("div", ar, [
4851
- K(le(ue), {
4852
- icon: "lucide-sparkles",
4853
- size: "xl",
4854
- class: "vc-ai-agent-iframe__placeholder-icon"
4855
- }),
4856
- p[0] || (p[0] = R("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
4857
- ]))
4858
- ]));
4859
- }
4860
- }), ir = { class: "vc-ai-agent-panel__content" }, pn = /* @__PURE__ */ L({
4861
- __name: "VcAiAgentPanel",
4862
- setup(i) {
4863
- const e = J(Ee), t = J(gt, !1);
4864
- e || console.error("[VcAiAgentPanel] AiAgentService not provided");
4865
- const n = d(
4866
- () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
4867
- ), r = d(() => !t && (e?.isOpen.value ?? !1)), a = d(() => e?.isExpanded.value ?? !1), o = d(() => e?.totalItemsCount.value ?? 0), l = d(() => ({
4868
- width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
4869
- })), c = () => e?.closePanel(), p = () => e?.expandPanel(), g = () => e?.collapsePanel(), h = (_) => {
4870
- e?._setIframeRef(_);
4871
- };
4872
- return De(() => {
4873
- e?._setIframeRef(null);
4874
- }), (_, A) => (S(), ee(Ie, { name: "ai-panel-slide" }, {
4875
- default: Re(() => [
4876
- r.value ? (S(), j("div", {
4877
- key: 0,
4878
- class: q(["vc-ai-agent-panel", {
4879
- "vc-ai-agent-panel--expanded": a.value
4880
- }]),
4881
- style: te(l.value)
4882
- }, [
4883
- K(Zt, {
4884
- title: n.value.title,
4885
- "is-expanded": a.value,
4886
- "items-count": o.value,
4887
- onClose: c,
4888
- onExpand: p,
4889
- onCollapse: g
4890
- }, null, 8, ["title", "is-expanded", "items-count"]),
4891
- R("div", ir, [
4892
- K(sr, {
4893
- url: n.value.url,
4894
- onIframeReady: h
4895
- }, null, 8, ["url"])
4896
- ])
4897
- ], 6)) : Y("", !0)
4898
- ]),
4899
- _: 1
4900
- }));
3849
+ }, { ...A.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4901
3850
  }
4902
3851
  });
4903
3852
  export {
4904
- mr as $,
4905
- tn as A,
4906
- dt as B,
4907
- Lr as C,
4908
- bt as D,
4909
- rn as E,
4910
- Jr as F,
4911
- Kr as G,
4912
- nn as H,
4913
- Wr as I,
4914
- qr as J,
4915
- zr as K,
4916
- mt as L,
4917
- Gr as M,
4918
- $r as N,
4919
- Nr as O,
4920
- Ir as P,
4921
- rt as Q,
4922
- Br as R,
4923
- Cr as S,
4924
- vt as T,
4925
- fr as U,
4926
- He as V,
4927
- Rr as W,
4928
- Dr as X,
4929
- pr as Y,
4930
- k as Z,
4931
- ue as _,
4932
- pn as a,
4933
- Or as a0,
4934
- pt as a1,
4935
- ft as a2,
4936
- en as a3,
4937
- Pr as a4,
4938
- vr as a5,
4939
- Zr as a6,
4940
- jr as a7,
4941
- gr as a8,
4942
- br as a9,
4943
- hn as aA,
4944
- kr as aa,
4945
- xr as ab,
4946
- Ze as ac,
4947
- gt as ad,
4948
- Xe as ae,
4949
- Ke as af,
4950
- Hr as ag,
4951
- Er as ah,
4952
- Ye as ai,
4953
- yr as aj,
4954
- _r as ak,
4955
- Fr as al,
4956
- Ur as am,
4957
- Qe as an,
4958
- Tr as ao,
4959
- qe as ap,
4960
- et as aq,
4961
- Sr as ar,
4962
- Mr as as,
4963
- tt as at,
4964
- lt as au,
4965
- ut as av,
4966
- wr as aw,
4967
- Ar as ax,
4968
- It as ay,
4969
- ct as az,
4970
- Ee as b,
4971
- fn as c,
4972
- B as d,
4973
- Se as e,
4974
- cn as f,
4975
- je as g,
4976
- ht as h,
4977
- on as i,
4978
- an as j,
4979
- ln as k,
4980
- Yr as l,
4981
- Xr as m,
4982
- Pt as n,
3853
+ ae as $,
3854
+ pt as A,
3855
+ Ve as B,
3856
+ Ze as C,
3857
+ Pt as D,
3858
+ dt as E,
3859
+ qe as F,
3860
+ He as G,
3861
+ Re as H,
3862
+ bt as I,
3863
+ St as J,
3864
+ tt as K,
3865
+ it as L,
3866
+ ut as M,
3867
+ Qe as N,
3868
+ Ce as O,
3869
+ Ie as P,
3870
+ lt as Q,
3871
+ ze as R,
3872
+ Fe as S,
3873
+ ot as T,
3874
+ ne as U,
3875
+ se as V,
3876
+ et as W,
3877
+ ee as X,
3878
+ Ut as Y,
3879
+ $e as Z,
3880
+ Ot as _,
3881
+ Ke as a,
3882
+ Ne as a0,
3883
+ Ge as a1,
3884
+ ht as a2,
3885
+ ke as a3,
3886
+ ie as a4,
3887
+ Je as a5,
3888
+ te as a6,
3889
+ oe as a7,
3890
+ Me as a8,
3891
+ ft as a9,
3892
+ le as aa,
3893
+ me as ab,
3894
+ ve as ac,
3895
+ De as ad,
3896
+ Be as ae,
3897
+ We as b,
3898
+ g as c,
3899
+ Xe as d,
3900
+ Ye as e,
3901
+ Tt as f,
3902
+ yt as g,
3903
+ de as h,
3904
+ _t as i,
3905
+ xt as j,
3906
+ mt as k,
3907
+ vt as l,
3908
+ gt as m,
3909
+ Et as n,
4983
3910
  st as o,
4984
- un as p,
4985
- $e as q,
4986
- Ne as r,
4987
- sn as s,
4988
- St as t,
4989
- dn as u,
4990
- ze as v,
4991
- Ae as w,
4992
- wt as x,
4993
- Qr as y,
4994
- Vr as z
3911
+ rt as p,
3912
+ nt as q,
3913
+ ue as r,
3914
+ at as s,
3915
+ we as t,
3916
+ Le as u,
3917
+ re as v,
3918
+ ct as w,
3919
+ Ae as x,
3920
+ b as y,
3921
+ je as z
4995
3922
  };