@vc-shell/framework 2.0.0-alpha.33 → 2.0.0-alpha.33-pr220.455e322

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 (297) hide show
  1. package/CHANGELOG.md +194 -209
  2. package/dist/ai-agent/index.js +4 -4
  3. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D0kWIlz3.js +4485 -0
  4. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D71wkuIU.js +22109 -0
  5. package/dist/chunks/{index-HNCQdWHc.js → index-CDUdOax4.js} +2 -2
  6. package/dist/chunks/{vendor-boolbase-Cyd7_957.js → vendor-boolbase-DYkUBG-P.js} +1 -1
  7. package/dist/chunks/{vendor-cheerio-DKt5ox2U.js → vendor-cheerio-DE71XQ9x.js} +1 -1
  8. package/dist/chunks/{vendor-cheerio-select-B8BTSEdK.js → vendor-cheerio-select-D-qK1Cpo.js} +2 -2
  9. package/dist/chunks/{vendor-css-select-C4b9igDP.js → vendor-css-select-DqoO1-RK.js} +2 -2
  10. package/dist/chunks/{vendor-dompurify-BIuh5IAZ.js → vendor-dompurify-DpIUMBYC.js} +228 -221
  11. package/dist/chunks/{vendor-gridstack-Dkfw452e.js → vendor-gridstack-Beau2jQ7.js} +230 -160
  12. package/dist/chunks/{vendor-intlify-core-base-BfDxYEHM.js → vendor-intlify-core-base-Cf8V01l9.js} +260 -260
  13. package/dist/chunks/{vendor-intlify-message-compiler-B2Y3gZDu.js → vendor-intlify-message-compiler-h1txdYa8.js} +2 -2
  14. package/dist/chunks/{vendor-intlify-shared-Drx6AmQ9.js → vendor-intlify-shared-D4BJYR57.js} +3 -3
  15. package/dist/chunks/{vendor-iso-639-1-ig8i9Svg.js → vendor-iso-639-1-BEjYyfKo.js} +17 -14
  16. package/dist/chunks/{vendor-lodash-es-BB-IQCna.js → vendor-lodash-es-CfnUOh0o.js} +364 -371
  17. package/dist/chunks/vendor-markdown-it-task-lists-CHKeJZfk.js +69 -0
  18. package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-ufpnHxNR.js +1142 -0
  19. package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-BmGq5cEx.js +247 -0
  20. package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-BdtUi1l8.js +1907 -0
  21. package/dist/chunks/vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js +8406 -0
  22. package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-DXmYt4tG.js +1441 -0
  23. package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-CLbNzgkN.js +610 -0
  24. package/dist/chunks/{vendor-microsoft-applicationinsights-shims-Ds7KyOsR.js → vendor-microsoft-applicationinsights-shims-CGX8KXgN.js} +13 -12
  25. package/dist/chunks/vendor-microsoft-applicationinsights-web-DzgnK2Mn.js +970 -0
  26. package/dist/chunks/{vendor-microsoft-dynamicproto-js-CMXJqDx1.js → vendor-microsoft-dynamicproto-js-D7567TLZ.js} +15 -15
  27. package/dist/chunks/vendor-nevware21-ts-async-BxN_lmkD.js +271 -0
  28. package/dist/chunks/vendor-nevware21-ts-utils-Dr-hD3q9.js +973 -0
  29. package/dist/chunks/{vendor-nth-check-CuyQT_ny.js → vendor-nth-check-D0N1qpsw.js} +1 -1
  30. package/dist/chunks/{vendor-prettier-B0zlh-ye.js → vendor-prettier-2Sf6a5jB.js} +876 -782
  31. package/dist/chunks/{vendor-prosemirror-commands-Bv4ChObl.js → vendor-prosemirror-commands-BaRVaTVO.js} +2 -2
  32. package/dist/chunks/{vendor-prosemirror-dropcursor-kF5UKNFM.js → vendor-prosemirror-dropcursor-PuLxL9JM.js} +2 -2
  33. package/dist/chunks/{vendor-prosemirror-gapcursor-D3tpkzBp.js → vendor-prosemirror-gapcursor-C7MEx13L.js} +3 -3
  34. package/dist/chunks/{vendor-prosemirror-history-CQYKHz3u.js → vendor-prosemirror-history-_AfZxoMt.js} +2 -2
  35. package/dist/chunks/{vendor-prosemirror-keymap-CAfQyvJ7.js → vendor-prosemirror-keymap-tvZqK1zZ.js} +1 -1
  36. package/dist/chunks/{vendor-prosemirror-schema-list-BNJkECdS.js → vendor-prosemirror-schema-list-qDgvFydE.js} +1 -1
  37. package/dist/chunks/{vendor-prosemirror-state-IeimrELV.js → vendor-prosemirror-state-BvFA7AjG.js} +1 -1
  38. package/dist/chunks/{vendor-prosemirror-tables-DIAkeGRL.js → vendor-prosemirror-tables-CbmHRq4G.js} +4 -4
  39. package/dist/chunks/{vendor-prosemirror-transform-BUjWd5Tb.js → vendor-prosemirror-transform-DVGD47fI.js} +118 -102
  40. package/dist/chunks/{vendor-prosemirror-view-Chu67Jpw.js → vendor-prosemirror-view-BW4UqvjQ.js} +7 -5
  41. package/dist/chunks/{vendor-striptags--4dtoP3u.js → vendor-striptags-DtlgQudQ.js} +1 -1
  42. package/dist/chunks/{vendor-tiptap-core-BWgKs47g.js → vendor-tiptap-core-CZbeo7XQ.js} +722 -703
  43. package/dist/chunks/{vendor-tiptap-extension-blockquote-B1RV9c0W.js → vendor-tiptap-extension-blockquote-B8uwrgnZ.js} +1 -1
  44. package/dist/chunks/{vendor-tiptap-extension-bold-BdAf6fWQ.js → vendor-tiptap-extension-bold-Ch9pbrZY.js} +1 -1
  45. package/dist/chunks/{vendor-tiptap-extension-code-_cv4EOBy.js → vendor-tiptap-extension-code-CVh_mZgz.js} +1 -1
  46. package/dist/chunks/{vendor-tiptap-extension-code-block-CT5P4x0D.js → vendor-tiptap-extension-code-block-CfoUSR2N.js} +2 -2
  47. package/dist/chunks/{vendor-tiptap-extension-document-C41wXth1.js → vendor-tiptap-extension-document-C4tn-v0L.js} +1 -1
  48. package/dist/chunks/{vendor-tiptap-extension-hard-break-Ds2hA4at.js → vendor-tiptap-extension-hard-break-CbK1eM89.js} +1 -1
  49. package/dist/chunks/{vendor-tiptap-extension-heading-DvnqoCO-.js → vendor-tiptap-extension-heading-BlkYF-RD.js} +1 -1
  50. package/dist/chunks/{vendor-tiptap-extension-horizontal-rule-BceRNOIu.js → vendor-tiptap-extension-horizontal-rule-DjMOsQCA.js} +2 -2
  51. package/dist/chunks/{vendor-tiptap-extension-image-DLERQS1u.js → vendor-tiptap-extension-image-BpqLcXdw.js} +1 -1
  52. package/dist/chunks/{vendor-tiptap-extension-italic-BGv0ktjJ.js → vendor-tiptap-extension-italic-YDdh6jEW.js} +1 -1
  53. package/dist/chunks/{vendor-tiptap-extension-link-BAzgztbX.js → vendor-tiptap-extension-link-CETrc0Mo.js} +2 -2
  54. package/dist/chunks/{vendor-tiptap-extension-list-rFRwhCY_.js → vendor-tiptap-extension-list-DsiDvJxK.js} +209 -180
  55. package/dist/chunks/vendor-tiptap-extension-paragraph-Bcss4jc0.js +49 -0
  56. package/dist/chunks/vendor-tiptap-extension-placeholder-ClNjQXk_.js +1 -0
  57. package/dist/chunks/{vendor-tiptap-extension-strike-Cqq1i9pe.js → vendor-tiptap-extension-strike-BZiBed9b.js} +1 -1
  58. package/dist/chunks/vendor-tiptap-extension-table-QVjcLO_H.js +409 -0
  59. package/dist/chunks/vendor-tiptap-extension-table-cell-CuXZTKj8.js +1 -0
  60. package/dist/chunks/vendor-tiptap-extension-table-header-CuXZTKj8.js +1 -0
  61. package/dist/chunks/vendor-tiptap-extension-table-row-CuXZTKj8.js +1 -0
  62. package/dist/chunks/{vendor-tiptap-extension-text-BaLQc3hC.js → vendor-tiptap-extension-text-Wofhchrp.js} +1 -1
  63. package/dist/chunks/{vendor-tiptap-extension-text-style-BDbT1PMb.js → vendor-tiptap-extension-text-style-Bc6nvmn0.js} +1 -1
  64. package/dist/chunks/{vendor-tiptap-extension-underline-CiUEdG6D.js → vendor-tiptap-extension-underline-Bo1pXXDN.js} +1 -1
  65. package/dist/chunks/{vendor-tiptap-extensions-pwHVUzkb.js → vendor-tiptap-extensions-D7eaegpB.js} +6 -6
  66. package/dist/chunks/{vendor-tiptap-markdown-D0feGfKk.js → vendor-tiptap-markdown-18K1hcU0.js} +3 -3
  67. package/dist/chunks/vendor-tiptap-pm-yqZPZQMU.js +1 -0
  68. package/dist/chunks/{vendor-tiptap-starter-kit-BEsLVJ4Q.js → vendor-tiptap-starter-kit-ny-AoaO_.js} +17 -17
  69. package/dist/chunks/{vendor-tiptap-vue-3-CdIBiRMV.js → vendor-tiptap-vue-3-BNAw8onj.js} +1 -1
  70. package/dist/chunks/{vendor-truncate-html-DDVwXwPl.js → vendor-truncate-html-ChA1T5zy.js} +1 -1
  71. package/dist/chunks/{vendor-unovis-ts-D3MmJ11i.js → vendor-unovis-ts-stSsHr9j.js} +1 -1
  72. package/dist/chunks/{vendor-unovis-vue-CMGNLXsC.js → vendor-unovis-vue-CZWGT3-0.js} +1 -1
  73. package/dist/chunks/{vendor-vue-i18n-BSCeQYoP.js → vendor-vue-i18n-LO-EJStU.js} +27 -27
  74. package/dist/chunks/{vendor-vue3-application-insights-Cq46Q3rj.js → vendor-vue3-application-insights-CAgbt8pk.js} +2 -2
  75. package/dist/chunks/{vendor-vueuse-components-DRdTsx6e.js → vendor-vueuse-components-BW7i7Uhb.js} +1 -1
  76. package/dist/chunks/{vendor-vueuse-core-D4-2M4AW.js → vendor-vueuse-core-CEdpDfzx.js} +9 -9
  77. package/dist/chunks/{vendor-vueuse-shared-PQ04AyOW.js → vendor-vueuse-shared-BlCOXw5g.js} +8 -8
  78. package/dist/core/api/platform.d.ts +5 -5
  79. package/dist/core/api/platform.d.ts.map +1 -1
  80. package/dist/core/blade-navigation/types/index.d.ts +1 -1
  81. package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
  82. package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
  83. package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
  84. package/dist/core/composables/usePlatformLocaleSync/index.d.ts +17 -0
  85. package/dist/core/composables/usePlatformLocaleSync/index.d.ts.map +1 -0
  86. package/dist/core/composables/useTheme/index.d.ts.map +1 -1
  87. package/dist/core/composables/useUser/index.d.ts +1 -0
  88. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  89. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  90. package/dist/core/directives/index.d.ts +2 -0
  91. package/dist/core/directives/index.d.ts.map +1 -1
  92. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
  93. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
  94. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
  95. package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +1 -1
  96. package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
  97. package/dist/core/plugins/modularity/index.d.ts +1 -1
  98. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  99. package/dist/core/services/widget-service.d.ts.map +1 -1
  100. package/dist/core/types/menu-types.d.ts.map +1 -1
  101. package/dist/framework.js +3176 -3936
  102. package/dist/index.css +2 -2
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/modules/assets/index.d.ts +0 -5
  105. package/dist/modules/assets/index.d.ts.map +1 -1
  106. package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  107. package/dist/modules/assets-manager/index.d.ts +0 -6
  108. package/dist/modules/assets-manager/index.d.ts.map +1 -1
  109. package/dist/scripts/check-locales.cjs +3 -0
  110. package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +0 -6
  111. package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
  112. package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +2 -2
  113. package/dist/shell/_internal/notifications/composables/useInstance/index.d.ts.map +1 -1
  114. package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts +1 -1
  115. package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts.map +1 -1
  116. package/dist/shell/_internal/popup/index.d.ts +0 -4
  117. package/dist/shell/_internal/popup/index.d.ts.map +1 -1
  118. package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
  119. package/dist/shell/auth/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue.d.ts.map +1 -1
  120. package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts +2 -2
  121. package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  122. package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  123. package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +2 -2
  124. package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  125. package/dist/shell/components/change-password/change-password.vue.d.ts.map +1 -1
  126. package/dist/shell/components/change-password/index.d.ts +0 -5
  127. package/dist/shell/components/change-password/index.d.ts.map +1 -1
  128. package/dist/shell/components/error-interceptor/index.d.ts +0 -5
  129. package/dist/shell/components/error-interceptor/index.d.ts.map +1 -1
  130. package/dist/shell/components/language-selector/index.d.ts +0 -5
  131. package/dist/shell/components/language-selector/index.d.ts.map +1 -1
  132. package/dist/shell/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
  133. package/dist/shell/components/notification-dropdown/index.d.ts +0 -5
  134. package/dist/shell/components/notification-dropdown/index.d.ts.map +1 -1
  135. package/dist/shell/components/notification-template/index.d.ts +0 -5
  136. package/dist/shell/components/notification-template/index.d.ts.map +1 -1
  137. package/dist/shell/components/sidebar/index.d.ts +3 -3
  138. package/dist/shell/components/sidebar/sidebar.vue.d.ts +1 -1
  139. package/dist/shell/components/sidebar/sidebar.vue.d.ts.map +1 -1
  140. package/dist/shell/components/user-dropdown-button/index.d.ts +0 -5
  141. package/dist/shell/components/user-dropdown-button/index.d.ts.map +1 -1
  142. package/dist/shell/dashboard/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
  143. package/dist/test-helpers.d.ts +6 -18
  144. package/dist/test-helpers.d.ts.map +1 -1
  145. package/dist/tsconfig.tsbuildinfo +1 -1
  146. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +3 -3
  147. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  148. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +2 -2
  149. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  150. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  151. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  152. package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +1 -1
  153. package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
  154. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
  155. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
  156. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  157. package/dist/ui/components/molecules/index.d.ts +1 -0
  158. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  159. package/dist/ui/components/molecules/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
  160. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +1 -1
  161. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
  162. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +1 -1
  163. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
  164. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
  165. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  166. package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +3 -3
  167. package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
  168. package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +3 -3
  169. package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
  170. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
  171. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
  172. package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +1 -1
  173. package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
  174. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +2 -2
  175. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -1
  176. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  177. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
  178. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
  179. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  180. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +3 -3
  181. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  182. package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts +1 -1
  183. package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -1
  184. package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts +1 -1
  185. package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -1
  186. package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
  187. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  188. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  189. package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts +2 -2
  190. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +10 -27
  191. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  192. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  193. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue.d.ts.map +1 -1
  194. package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts +3 -3
  195. package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts.map +1 -1
  196. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
  197. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
  198. package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
  199. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  200. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -2
  201. package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
  202. package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts.map +1 -1
  203. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
  204. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +3 -3
  205. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  206. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +19 -17
  207. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  208. package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts +1 -1
  209. package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts.map +1 -1
  210. package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  211. package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +2 -2
  212. package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  213. package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
  214. package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  215. package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts +1 -1
  216. package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts.map +1 -1
  217. package/dist/ui/components/organisms/vc-data-table/components/DataTableBody.vue.d.ts.map +1 -1
  218. package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts +2 -2
  219. package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
  220. package/dist/ui/components/organisms/vc-data-table/components/TableCell.vue.d.ts.map +1 -1
  221. package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
  222. package/dist/ui/components/organisms/vc-data-table/components/TableHead.vue.d.ts.map +1 -1
  223. package/dist/ui/components/organisms/vc-data-table/components/TableRow.vue.d.ts.map +1 -1
  224. package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts +1 -1
  225. package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts.map +1 -1
  226. package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +7 -7
  227. package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts +2 -2
  228. package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
  229. package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts +4 -4
  230. package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts.map +1 -1
  231. package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
  232. package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
  233. package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts +46 -0
  234. package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts.map +1 -0
  235. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +6 -5
  236. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
  237. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +6 -6
  238. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
  239. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts +24 -11
  240. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
  241. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts +6 -9
  242. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts.map +1 -1
  243. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +18 -13
  244. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
  245. package/dist/ui/components/organisms/vc-data-table/composables/useTableEditing.d.ts.map +1 -1
  246. package/dist/ui/components/organisms/vc-data-table/composables/useTableSort.d.ts.map +1 -1
  247. package/dist/ui/components/organisms/vc-data-table/keys.d.ts +2 -2
  248. package/dist/ui/components/organisms/vc-data-table/keys.d.ts.map +1 -1
  249. package/dist/ui/components/organisms/vc-data-table/types.d.ts +26 -0
  250. package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
  251. package/dist/ui/components/organisms/vc-data-table/utils/ColumnCollector.d.ts.map +1 -1
  252. package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts +30 -0
  253. package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts.map +1 -0
  254. package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts +1 -0
  255. package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts.map +1 -1
  256. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
  257. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
  258. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
  259. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  260. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  261. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  262. package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts.map +1 -1
  263. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -1
  264. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  265. package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +1 -1
  266. package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
  267. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
  268. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  269. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +8 -8
  270. package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
  271. package/dist/ui/composables/useCollapsible.d.ts.map +1 -1
  272. package/dist/ui/index.d.ts +1 -0
  273. package/dist/ui/index.d.ts.map +1 -1
  274. package/dist/ui/index.js +87 -81
  275. package/package.json +8 -6
  276. package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CrmX4_5C.js +0 -4256
  277. package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D9BrIj43.js +0 -21552
  278. package/dist/chunks/vendor-markdown-it-task-lists-xwqUBSah.js +0 -72
  279. package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-Dvbvo5Dl.js +0 -1207
  280. package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-9wxxo7yB.js +0 -261
  281. package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-c-UYe0ly.js +0 -1822
  282. package/dist/chunks/vendor-microsoft-applicationinsights-common-DgFOCv6a.js +0 -1921
  283. package/dist/chunks/vendor-microsoft-applicationinsights-core-js-DYtaESwI.js +0 -4276
  284. package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-BoRkSVPF.js +0 -1407
  285. package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-Ymy9TFDL.js +0 -572
  286. package/dist/chunks/vendor-microsoft-applicationinsights-web-gIbMmGYP.js +0 -487
  287. package/dist/chunks/vendor-nevware21-ts-async-CP171WHM.js +0 -261
  288. package/dist/chunks/vendor-nevware21-ts-utils-Dl8msUu_.js +0 -853
  289. package/dist/chunks/vendor-tiptap-extension-paragraph-EwqudBl5.js +0 -49
  290. package/dist/chunks/vendor-tiptap-extension-placeholder-D1_k7Sra.js +0 -1
  291. package/dist/chunks/vendor-tiptap-extension-table-cell-odWoHoTv.js +0 -1
  292. package/dist/chunks/vendor-tiptap-extension-table-header-odWoHoTv.js +0 -1
  293. package/dist/chunks/vendor-tiptap-extension-table-row-odWoHoTv.js +0 -1
  294. package/dist/chunks/vendor-tiptap-extension-table-tNWQInwa.js +0 -374
  295. package/dist/chunks/vendor-tiptap-pm-CG4ksPkF.js +0 -1
  296. package/dist/ui/types/global-components.d.ts +0 -10
  297. package/dist/ui/types/global-components.d.ts.map +0 -1
@@ -0,0 +1,4485 @@
1
+ import { ref as D, computed as h, shallowRef as ze, watch as X, getCurrentInstance as te, inject as W, isRef as Fe, provide as we, defineComponent as J, openBlock as w, createElementBlock as k, createElementVNode as $, createCommentVNode as Y, createStaticVNode as Ge, onMounted as ue, normalizeStyle as ee, normalizeClass as Z, toDisplayString as me, markRaw as Te, createBlock as V, resolveDynamicComponent as pe, mergeProps as ie, resolveComponent as he, createVNode as K, unref as oe, Transition as Pe, withCtx as Oe, onUnmounted as De } from "vue";
2
+ import { c as re } from "./vendor-lodash-es-CfnUOh0o.js";
3
+ import { u as Le } from "./vendor-vueuse-core-CEdpDfzx.js";
4
+ import { j as Me } 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 Ke(s, e) {
8
+ if (typeof e == "string" && We.test(e)) {
9
+ const t = new Date(e);
10
+ if (!isNaN(t.getTime()))
11
+ return t;
12
+ }
13
+ return e;
14
+ }
15
+ class G {
16
+ authToken = "";
17
+ /**
18
+ * JSON parse reviver for converting date strings to Date objects.
19
+ * Subclasses use this when parsing API responses.
20
+ * The dateReviver function is defined in File.Header.liquid template.
21
+ */
22
+ jsonParseReviver = Ke;
23
+ constructor() {
24
+ }
25
+ // Enforce always return empty string as baseUrl
26
+ getBaseUrl(e, t) {
27
+ return "";
28
+ }
29
+ setAuthToken(e) {
30
+ this.authToken = e;
31
+ }
32
+ transformOptions(e) {
33
+ return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
34
+ }
35
+ }
36
+ class qe extends G {
37
+ http;
38
+ baseUrl;
39
+ constructor(e, t) {
40
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
41
+ }
42
+ /**
43
+ * @param authenticationType (optional)
44
+ * @param returnUrl (optional)
45
+ * @param storeId (optional)
46
+ * @param oidcUrl (optional)
47
+ * @param callbackUrl (optional)
48
+ * @return OK
49
+ */
50
+ signIn(e, t, n, r, a) {
51
+ let o = this.baseUrl + "/externalsignin?";
52
+ if (e === null) throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
53
+ if (e !== void 0 && (o += "AuthenticationType=" + encodeURIComponent("" + e) + "&"), t === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
54
+ if (t !== void 0 && (o += "ReturnUrl=" + encodeURIComponent("" + t) + "&"), n === null) throw new globalThis.Error("The parameter 'storeId' cannot be null.");
55
+ if (n !== void 0 && (o += "StoreId=" + encodeURIComponent("" + n) + "&"), r === null) throw new globalThis.Error("The parameter 'oidcUrl' cannot be null.");
56
+ if (r !== void 0 && (o += "OidcUrl=" + encodeURIComponent("" + r) + "&"), a === null) throw new globalThis.Error("The parameter 'callbackUrl' cannot be null.");
57
+ a !== void 0 && (o += "CallbackUrl=" + encodeURIComponent("" + a) + "&"), o = o.replace(/[?&]$/, "");
58
+ let u = {
59
+ method: "GET",
60
+ headers: {}
61
+ };
62
+ return this.transformOptions(u).then((c) => this.http.fetch(o, c)).then((c) => this.processSignIn(c));
63
+ }
64
+ processSignIn(e) {
65
+ const t = e.status;
66
+ let n = {};
67
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
68
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
69
+ }
70
+ /**
71
+ * @param authenticationType (optional)
72
+ * @param returnUrl (optional)
73
+ * @return OK
74
+ */
75
+ signOut(e, t) {
76
+ let n = this.baseUrl + "/externalsignin/signout?";
77
+ if (e === null) throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
78
+ if (e !== void 0 && (n += "authenticationType=" + encodeURIComponent("" + e) + "&"), t === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
79
+ t !== void 0 && (n += "returnUrl=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
80
+ let r = {
81
+ method: "GET",
82
+ headers: {}
83
+ };
84
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processSignOut(a));
85
+ }
86
+ processSignOut(e) {
87
+ const t = e.status;
88
+ let n = {};
89
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
90
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
91
+ }
92
+ /**
93
+ * @param returnUrl (optional)
94
+ * @return OK
95
+ */
96
+ signInCallback(e) {
97
+ let t = this.baseUrl + "/externalsignin/callback?";
98
+ if (e === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
99
+ e !== void 0 && (t += "returnUrl=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
100
+ let n = {
101
+ method: "GET",
102
+ headers: {}
103
+ };
104
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processSignInCallback(r));
105
+ }
106
+ processSignInCallback(e) {
107
+ const t = e.status;
108
+ let n = {};
109
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
110
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
111
+ }
112
+ /**
113
+ * @return OK
114
+ */
115
+ getExternalLoginProviders() {
116
+ let e = this.baseUrl + "/externalsignin/providers";
117
+ e = e.replace(/[?&]$/, "");
118
+ let t = {
119
+ method: "GET",
120
+ headers: {
121
+ Accept: "application/json"
122
+ }
123
+ };
124
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetExternalLoginProviders(n));
125
+ }
126
+ processGetExternalLoginProviders(e) {
127
+ const t = e.status;
128
+ let n = {};
129
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
130
+ let a = null;
131
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
132
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
133
+ }
134
+ }
135
+ class Sr extends G {
136
+ http;
137
+ baseUrl;
138
+ constructor(e, t) {
139
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
140
+ }
141
+ /**
142
+ * Gets the list of available apps, filtered by user permissions.
143
+ * @return OK
144
+ */
145
+ getApps() {
146
+ let e = this.baseUrl + "/api/platform/apps";
147
+ e = e.replace(/[?&]$/, "");
148
+ let t = {
149
+ method: "GET",
150
+ headers: {
151
+ Accept: "application/json"
152
+ }
153
+ };
154
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetApps(n));
155
+ }
156
+ processGetApps(e) {
157
+ const t = e.status;
158
+ let n = {};
159
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
160
+ let a = null;
161
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
162
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
163
+ }
164
+ }
165
+ class yr extends G {
166
+ http;
167
+ baseUrl;
168
+ constructor(e, t) {
169
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
170
+ }
171
+ /**
172
+ * @return OK
173
+ */
174
+ revokeCurrentUserToken() {
175
+ let e = this.baseUrl + "/revoke/token";
176
+ e = e.replace(/[?&]$/, "");
177
+ let t = {
178
+ method: "POST",
179
+ headers: {}
180
+ };
181
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processRevokeCurrentUserToken(n));
182
+ }
183
+ processRevokeCurrentUserToken(e) {
184
+ const t = e.status;
185
+ let n = {};
186
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
187
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
188
+ }
189
+ /**
190
+ * @return OK
191
+ */
192
+ exchange(e) {
193
+ let t = this.baseUrl + "/connect/token";
194
+ t = t.replace(/[?&]$/, "");
195
+ let r = {
196
+ body: Object.keys(e).map((a) => encodeURIComponent(a) + "=" + encodeURIComponent(e[a])).join("&"),
197
+ method: "POST",
198
+ headers: {
199
+ "Content-Type": "application/x-www-form-urlencoded",
200
+ Accept: "application/json"
201
+ }
202
+ };
203
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processExchange(a));
204
+ }
205
+ processExchange(e) {
206
+ const t = e.status;
207
+ let n = {};
208
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
209
+ let a = null;
210
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
211
+ }) : t === 400 ? e.text().then((r) => {
212
+ let a = null;
213
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), i("Bad Request", t, r, n, a);
214
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
215
+ }
216
+ /**
217
+ * @return OK
218
+ */
219
+ authorizeGET() {
220
+ let e = this.baseUrl + "/connect/authorize";
221
+ e = e.replace(/[?&]$/, "");
222
+ let t = {
223
+ method: "GET",
224
+ headers: {}
225
+ };
226
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processAuthorizeGET(n));
227
+ }
228
+ processAuthorizeGET(e) {
229
+ const t = e.status;
230
+ let n = {};
231
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
232
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
233
+ }
234
+ /**
235
+ * @return OK
236
+ */
237
+ authorizePOST() {
238
+ let e = this.baseUrl + "/connect/authorize";
239
+ e = e.replace(/[?&]$/, "");
240
+ let t = {
241
+ method: "POST",
242
+ headers: {}
243
+ };
244
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processAuthorizePOST(n));
245
+ }
246
+ processAuthorizePOST(e) {
247
+ const t = e.status;
248
+ let n = {};
249
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
250
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
251
+ }
252
+ /**
253
+ * @return OK
254
+ */
255
+ userinfoGET() {
256
+ let e = this.baseUrl + "/connect/userinfo";
257
+ e = e.replace(/[?&]$/, "");
258
+ let t = {
259
+ method: "GET",
260
+ headers: {}
261
+ };
262
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processUserinfoGET(n));
263
+ }
264
+ processUserinfoGET(e) {
265
+ const t = e.status;
266
+ let n = {};
267
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
268
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
269
+ }
270
+ /**
271
+ * @return OK
272
+ */
273
+ userinfoPOST() {
274
+ let e = this.baseUrl + "/connect/userinfo";
275
+ e = e.replace(/[?&]$/, "");
276
+ let t = {
277
+ method: "POST",
278
+ headers: {}
279
+ };
280
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processUserinfoPOST(n));
281
+ }
282
+ processUserinfoPOST(e) {
283
+ const t = e.status;
284
+ let n = {};
285
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
286
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
287
+ }
288
+ /**
289
+ * @return OK
290
+ */
291
+ logout() {
292
+ let e = this.baseUrl + "/connect/logout";
293
+ e = e.replace(/[?&]$/, "");
294
+ let t = {
295
+ method: "GET",
296
+ headers: {}
297
+ };
298
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processLogout(n));
299
+ }
300
+ processLogout(e) {
301
+ const t = e.status;
302
+ let n = {};
303
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
304
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
305
+ }
306
+ }
307
+ class Ur extends G {
308
+ http;
309
+ baseUrl;
310
+ constructor(e, t) {
311
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
312
+ }
313
+ /**
314
+ * Force set changes last modified date
315
+ * @param scope (optional)
316
+ * @return No Content
317
+ */
318
+ forceChanges(e) {
319
+ let t = this.baseUrl + "/api/changes/force?";
320
+ if (e === null) throw new globalThis.Error("The parameter 'scope' cannot be null.");
321
+ e !== void 0 && (t += "Scope=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
322
+ let n = {
323
+ method: "POST",
324
+ headers: {}
325
+ };
326
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processForceChanges(r));
327
+ }
328
+ processForceChanges(e) {
329
+ const t = e.status;
330
+ let n = {};
331
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
332
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
333
+ }
334
+ /**
335
+ * @return No Content
336
+ */
337
+ resetPlatformCache() {
338
+ let e = this.baseUrl + "/api/platform-cache/reset";
339
+ e = e.replace(/[?&]$/, "");
340
+ let t = {
341
+ method: "POST",
342
+ headers: {}
343
+ };
344
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processResetPlatformCache(n));
345
+ }
346
+ processResetPlatformCache(e) {
347
+ const t = e.status;
348
+ let n = {};
349
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
350
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
351
+ }
352
+ /**
353
+ * Get last modified date for given scope
354
+ Used for signal of what something changed and for cache invalidation in external platform clients
355
+ * @param scope (optional)
356
+ * @return OK
357
+ */
358
+ getLastModifiedDate(e) {
359
+ let t = this.baseUrl + "/api/changes/lastmodifieddate?";
360
+ if (e === null) throw new globalThis.Error("The parameter 'scope' cannot be null.");
361
+ e !== void 0 && (t += "scope=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
362
+ let n = {
363
+ method: "GET",
364
+ headers: {
365
+ Accept: "application/json"
366
+ }
367
+ };
368
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetLastModifiedDate(r));
369
+ }
370
+ processGetLastModifiedDate(e) {
371
+ const t = e.status;
372
+ let n = {};
373
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
374
+ let a = null;
375
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
376
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
377
+ }
378
+ /**
379
+ * @param body (optional)
380
+ * @return OK
381
+ */
382
+ getChangedEntities(e) {
383
+ let t = this.baseUrl + "/api/changes/changed-entities";
384
+ t = t.replace(/[?&]$/, "");
385
+ let r = {
386
+ body: JSON.stringify(e),
387
+ method: "POST",
388
+ headers: {
389
+ "Content-Type": "application/json-patch+json",
390
+ Accept: "application/json"
391
+ }
392
+ };
393
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetChangedEntities(a));
394
+ }
395
+ processGetChangedEntities(e) {
396
+ const t = e.status;
397
+ let n = {};
398
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
399
+ let a = null;
400
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
401
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
402
+ }
403
+ /**
404
+ * @param body (optional)
405
+ * @return No Content
406
+ */
407
+ resetChangedEntities(e) {
408
+ let t = this.baseUrl + "/api/changes/changed-entities/reset";
409
+ t = t.replace(/[?&]$/, "");
410
+ let r = {
411
+ body: JSON.stringify(e),
412
+ method: "POST",
413
+ headers: {
414
+ "Content-Type": "application/json-patch+json"
415
+ }
416
+ };
417
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processResetChangedEntities(a));
418
+ }
419
+ processResetChangedEntities(e) {
420
+ const t = e.status;
421
+ let n = {};
422
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
423
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
424
+ }
425
+ /**
426
+ * @param body (optional)
427
+ * @return OK
428
+ */
429
+ searchChanges(e) {
430
+ let t = this.baseUrl + "/api/platform/changelog/search";
431
+ t = t.replace(/[?&]$/, "");
432
+ let r = {
433
+ body: JSON.stringify(e),
434
+ method: "POST",
435
+ headers: {
436
+ "Content-Type": "application/json-patch+json",
437
+ Accept: "application/json"
438
+ }
439
+ };
440
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchChanges(a));
441
+ }
442
+ processSearchChanges(e) {
443
+ const t = e.status;
444
+ let n = {};
445
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
446
+ let a = null;
447
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
448
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
449
+ }
450
+ /**
451
+ * @param start (optional)
452
+ * @param end (optional)
453
+ * @return OK
454
+ */
455
+ searchTypeChangeHistory(e, t, n) {
456
+ let r = this.baseUrl + "/api/platform/changelog/{type}/changes?";
457
+ if (e == null) throw new globalThis.Error("The parameter 'type' must be defined.");
458
+ if (r = r.replace("{type}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'start' cannot be null.");
459
+ if (t !== void 0 && (r += "start=" + encodeURIComponent(t ? "" + t.toISOString() : "") + "&"), n === null) throw new globalThis.Error("The parameter 'end' cannot be null.");
460
+ n !== void 0 && (r += "end=" + encodeURIComponent(n ? "" + n.toISOString() : "") + "&"), r = r.replace(/[?&]$/, "");
461
+ let a = {
462
+ method: "GET",
463
+ headers: {
464
+ Accept: "application/json"
465
+ }
466
+ };
467
+ return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processSearchTypeChangeHistory(o));
468
+ }
469
+ processSearchTypeChangeHistory(e) {
470
+ const t = e.status;
471
+ let n = {};
472
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
473
+ let a = null;
474
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
475
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
476
+ }
477
+ }
478
+ class Ar extends G {
479
+ http;
480
+ baseUrl;
481
+ constructor(e, t) {
482
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
483
+ }
484
+ /**
485
+ * @return OK
486
+ */
487
+ getDeveloperTools() {
488
+ let e = this.baseUrl + "/api/platform/developer-tools";
489
+ e = e.replace(/[?&]$/, "");
490
+ let t = {
491
+ method: "GET",
492
+ headers: {
493
+ Accept: "application/json"
494
+ }
495
+ };
496
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetDeveloperTools(n));
497
+ }
498
+ processGetDeveloperTools(e) {
499
+ const t = e.status;
500
+ let n = {};
501
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
502
+ let a = null;
503
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
504
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
505
+ }
506
+ }
507
+ class wr extends G {
508
+ http;
509
+ baseUrl;
510
+ constructor(e, t) {
511
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
512
+ }
513
+ /**
514
+ * @return OK
515
+ */
516
+ getSystemInfo() {
517
+ let e = this.baseUrl + "/api/platform/diagnostics/systeminfo";
518
+ e = e.replace(/[?&]$/, "");
519
+ let t = {
520
+ method: "GET",
521
+ headers: {
522
+ Accept: "application/json"
523
+ }
524
+ };
525
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetSystemInfo(n));
526
+ }
527
+ processGetSystemInfo(e) {
528
+ const t = e.status;
529
+ let n = {};
530
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
531
+ let a = null;
532
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
533
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
534
+ }
535
+ /**
536
+ * Get installed modules with errors
537
+ * @return OK
538
+ */
539
+ getModulesErrors() {
540
+ let e = this.baseUrl + "/api/platform/diagnostics/errors";
541
+ e = e.replace(/[?&]$/, "");
542
+ let t = {
543
+ method: "GET",
544
+ headers: {
545
+ Accept: "application/json"
546
+ }
547
+ };
548
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetModulesErrors(n));
549
+ }
550
+ processGetModulesErrors(e) {
551
+ const t = e.status;
552
+ let n = {};
553
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
554
+ let a = null;
555
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
556
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
557
+ }
558
+ }
559
+ class Tr extends G {
560
+ http;
561
+ baseUrl;
562
+ constructor(e, t) {
563
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
564
+ }
565
+ /**
566
+ * Get object types which support dynamic properties
567
+ * @return OK
568
+ */
569
+ getObjectTypes() {
570
+ let e = this.baseUrl + "/api/platform/dynamic/types";
571
+ e = e.replace(/[?&]$/, "");
572
+ let t = {
573
+ method: "GET",
574
+ headers: {
575
+ Accept: "application/json"
576
+ }
577
+ };
578
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetObjectTypes(n));
579
+ }
580
+ processGetObjectTypes(e) {
581
+ const t = e.status;
582
+ let n = {};
583
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
584
+ let a = null;
585
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
586
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
587
+ }
588
+ /**
589
+ * @param id (optional)
590
+ * @return OK
591
+ */
592
+ getAllDynamicProperties(e) {
593
+ let t = this.baseUrl + "/api/platform/dynamic/properties?";
594
+ if (e === null) throw new globalThis.Error("The parameter 'id' cannot be null.");
595
+ e !== void 0 && (t += "id=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
596
+ let n = {
597
+ method: "GET",
598
+ headers: {
599
+ Accept: "application/json"
600
+ }
601
+ };
602
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetAllDynamicProperties(r));
603
+ }
604
+ processGetAllDynamicProperties(e) {
605
+ const t = e.status;
606
+ let n = {};
607
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
608
+ let a = null;
609
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
610
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
611
+ }
612
+ /**
613
+ * Add new dynamic property
614
+ * @param body (optional)
615
+ * @return OK
616
+ */
617
+ createProperty(e) {
618
+ let t = this.baseUrl + "/api/platform/dynamic/properties";
619
+ t = t.replace(/[?&]$/, "");
620
+ let r = {
621
+ body: JSON.stringify(e),
622
+ method: "POST",
623
+ headers: {
624
+ "Content-Type": "application/json-patch+json",
625
+ Accept: "application/json"
626
+ }
627
+ };
628
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processCreateProperty(a));
629
+ }
630
+ processCreateProperty(e) {
631
+ const t = e.status;
632
+ let n = {};
633
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
634
+ let a = null;
635
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
636
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
637
+ }
638
+ /**
639
+ * Update existing dynamic property
640
+ * @param body (optional)
641
+ * @return No Content
642
+ */
643
+ updateProperty(e) {
644
+ let t = this.baseUrl + "/api/platform/dynamic/properties";
645
+ t = t.replace(/[?&]$/, "");
646
+ let r = {
647
+ body: JSON.stringify(e),
648
+ method: "PUT",
649
+ headers: {
650
+ "Content-Type": "application/json-patch+json"
651
+ }
652
+ };
653
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateProperty(a));
654
+ }
655
+ processUpdateProperty(e) {
656
+ const t = e.status;
657
+ let n = {};
658
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
659
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
660
+ }
661
+ /**
662
+ * Delete dynamic property
663
+ * @param propertyIds (optional)
664
+ * @return No Content
665
+ */
666
+ deleteProperty(e) {
667
+ let t = this.baseUrl + "/api/platform/dynamic/properties?";
668
+ if (e === null) throw new globalThis.Error("The parameter 'propertyIds' cannot be null.");
669
+ e !== void 0 && e && e.forEach((r) => {
670
+ t += "propertyIds=" + encodeURIComponent("" + r) + "&";
671
+ }), t = t.replace(/[?&]$/, "");
672
+ let n = {
673
+ method: "DELETE",
674
+ headers: {}
675
+ };
676
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDeleteProperty(r));
677
+ }
678
+ processDeleteProperty(e) {
679
+ const t = e.status;
680
+ let n = {};
681
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
682
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
683
+ }
684
+ /**
685
+ * Get dynamic properties registered for object type
686
+ * @param body (optional)
687
+ * @return OK
688
+ */
689
+ searchDynamicProperties(e) {
690
+ let t = this.baseUrl + "/api/platform/dynamic/properties/search";
691
+ t = t.replace(/[?&]$/, "");
692
+ let r = {
693
+ body: JSON.stringify(e),
694
+ method: "POST",
695
+ headers: {
696
+ "Content-Type": "application/json-patch+json",
697
+ Accept: "application/json"
698
+ }
699
+ };
700
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchDynamicProperties(a));
701
+ }
702
+ processSearchDynamicProperties(e) {
703
+ const t = e.status;
704
+ let n = {};
705
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
706
+ let a = null;
707
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
708
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
709
+ }
710
+ /**
711
+ * Does nothing. Just a way to expose DynamicObjectProperty thru Swagger.
712
+ * @return OK
713
+ */
714
+ exposeDynamicObjectProperty() {
715
+ let e = this.baseUrl + "/api/platform/dynamic";
716
+ e = e.replace(/[?&]$/, "");
717
+ let t = {
718
+ method: "POST",
719
+ headers: {
720
+ Accept: "application/json"
721
+ }
722
+ };
723
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processExposeDynamicObjectProperty(n));
724
+ }
725
+ processExposeDynamicObjectProperty(e) {
726
+ const t = e.status;
727
+ let n = {};
728
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
729
+ let a = null;
730
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
731
+ }) : t === 204 ? e.text().then((r) => i("No Content", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
732
+ }
733
+ /**
734
+ * @param propertyId (optional)
735
+ * @return OK
736
+ */
737
+ getAllDictionaryItems(e) {
738
+ let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems?";
739
+ if (e === null) throw new globalThis.Error("The parameter 'propertyId' cannot be null.");
740
+ e !== void 0 && (t += "propertyId=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
741
+ let n = {
742
+ method: "GET",
743
+ headers: {
744
+ Accept: "application/json"
745
+ }
746
+ };
747
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetAllDictionaryItems(r));
748
+ }
749
+ processGetAllDictionaryItems(e) {
750
+ const t = e.status;
751
+ let n = {};
752
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
753
+ let a = null;
754
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
755
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
756
+ }
757
+ /**
758
+ * Add or update dictionary items
759
+ * @param body (optional)
760
+ * @return No Content
761
+ */
762
+ saveDictionaryItems(e) {
763
+ let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems";
764
+ t = t.replace(/[?&]$/, "");
765
+ let r = {
766
+ body: JSON.stringify(e),
767
+ method: "POST",
768
+ headers: {
769
+ "Content-Type": "application/json-patch+json"
770
+ }
771
+ };
772
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSaveDictionaryItems(a));
773
+ }
774
+ processSaveDictionaryItems(e) {
775
+ const t = e.status;
776
+ let n = {};
777
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
778
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
779
+ }
780
+ /**
781
+ * Delete dictionary items
782
+ * @param ids (optional) IDs of dictionary items to delete.
783
+ * @return No Content
784
+ */
785
+ deleteDictionaryItem(e) {
786
+ let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems?";
787
+ if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
788
+ e !== void 0 && e && e.forEach((r) => {
789
+ t += "ids=" + encodeURIComponent("" + r) + "&";
790
+ }), t = t.replace(/[?&]$/, "");
791
+ let n = {
792
+ method: "DELETE",
793
+ headers: {}
794
+ };
795
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDeleteDictionaryItem(r));
796
+ }
797
+ processDeleteDictionaryItem(e) {
798
+ const t = e.status;
799
+ let n = {};
800
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
801
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
802
+ }
803
+ /**
804
+ * Get dictionary items
805
+ * @param body (optional)
806
+ * @return OK
807
+ */
808
+ searchDictionaryItems(e) {
809
+ let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems/search";
810
+ t = t.replace(/[?&]$/, "");
811
+ let r = {
812
+ body: JSON.stringify(e),
813
+ method: "POST",
814
+ headers: {
815
+ "Content-Type": "application/json-patch+json",
816
+ Accept: "application/json"
817
+ }
818
+ };
819
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchDictionaryItems(a));
820
+ }
821
+ processSearchDictionaryItems(e) {
822
+ const t = e.status;
823
+ let n = {};
824
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
825
+ let a = null;
826
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
827
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
828
+ }
829
+ }
830
+ class Pr extends G {
831
+ http;
832
+ baseUrl;
833
+ constructor(e, t) {
834
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
835
+ }
836
+ /**
837
+ * Get background job status
838
+ * @param id Job ID.
839
+ * @return OK
840
+ */
841
+ getStatus(e) {
842
+ let t = this.baseUrl + "/api/platform/jobs/{id}";
843
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
844
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
845
+ let n = {
846
+ method: "GET",
847
+ headers: {
848
+ Accept: "application/json"
849
+ }
850
+ };
851
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetStatus(r));
852
+ }
853
+ processGetStatus(e) {
854
+ const t = e.status;
855
+ let n = {};
856
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
857
+ let a = null;
858
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
859
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
860
+ }
861
+ }
862
+ class Or extends G {
863
+ http;
864
+ baseUrl;
865
+ constructor(e, t) {
866
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
867
+ }
868
+ /**
869
+ * @return OK
870
+ */
871
+ getSettingsAndLanguages() {
872
+ let e = this.baseUrl + "/api/platform/localizable-settings";
873
+ e = e.replace(/[?&]$/, "");
874
+ let t = {
875
+ method: "GET",
876
+ headers: {
877
+ Accept: "application/json"
878
+ }
879
+ };
880
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetSettingsAndLanguages(n));
881
+ }
882
+ processGetSettingsAndLanguages(e) {
883
+ const t = e.status;
884
+ let n = {};
885
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
886
+ let a = null;
887
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
888
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
889
+ }
890
+ /**
891
+ * @return OK
892
+ */
893
+ getDictionaryValues(e, t) {
894
+ let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items/{language}/values";
895
+ if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
896
+ if (n = n.replace("{name}", encodeURIComponent("" + e)), t == null)
897
+ throw new globalThis.Error("The parameter 'language' must be defined.");
898
+ n = n.replace("{language}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
899
+ let r = {
900
+ method: "GET",
901
+ headers: {
902
+ Accept: "application/json"
903
+ }
904
+ };
905
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetDictionaryValues(a));
906
+ }
907
+ processGetDictionaryValues(e) {
908
+ const t = e.status;
909
+ let n = {};
910
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
911
+ let a = null;
912
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
913
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
914
+ }
915
+ /**
916
+ * @param body (optional)
917
+ * @return No Content
918
+ */
919
+ saveDictionaryItems(e, t) {
920
+ let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items";
921
+ if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
922
+ n = n.replace("{name}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
923
+ let a = {
924
+ body: JSON.stringify(t),
925
+ method: "POST",
926
+ headers: {
927
+ "Content-Type": "application/json-patch+json"
928
+ }
929
+ };
930
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveDictionaryItems(o));
931
+ }
932
+ processSaveDictionaryItems(e) {
933
+ const t = e.status;
934
+ let n = {};
935
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
936
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
937
+ }
938
+ /**
939
+ * @param values (optional)
940
+ * @return No Content
941
+ */
942
+ deleteDictionaryItems(e, t) {
943
+ let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items?";
944
+ if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
945
+ if (n = n.replace("{name}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'values' cannot be null.");
946
+ t !== void 0 && t && t.forEach((a) => {
947
+ n += "values=" + encodeURIComponent("" + a) + "&";
948
+ }), n = n.replace(/[?&]$/, "");
949
+ let r = {
950
+ method: "DELETE",
951
+ headers: {}
952
+ };
953
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processDeleteDictionaryItems(a));
954
+ }
955
+ processDeleteDictionaryItems(e) {
956
+ const t = e.status;
957
+ let n = {};
958
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
959
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
960
+ }
961
+ }
962
+ class Ir extends G {
963
+ http;
964
+ baseUrl;
965
+ constructor(e, t) {
966
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
967
+ }
968
+ /**
969
+ * Reload modules
970
+ * @return No Content
971
+ */
972
+ reloadModules() {
973
+ let e = this.baseUrl + "/api/platform/modules/reload";
974
+ e = e.replace(/[?&]$/, "");
975
+ let t = {
976
+ method: "POST",
977
+ headers: {}
978
+ };
979
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processReloadModules(n));
980
+ }
981
+ processReloadModules(e) {
982
+ const t = e.status;
983
+ let n = {};
984
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
985
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
986
+ }
987
+ /**
988
+ * Get installed modules
989
+ * @return OK
990
+ */
991
+ getModules() {
992
+ let e = this.baseUrl + "/api/platform/modules";
993
+ e = e.replace(/[?&]$/, "");
994
+ let t = {
995
+ method: "GET",
996
+ headers: {
997
+ Accept: "application/json"
998
+ }
999
+ };
1000
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetModules(n));
1001
+ }
1002
+ processGetModules(e) {
1003
+ const t = e.status;
1004
+ let n = {};
1005
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1006
+ let a = null;
1007
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1008
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1009
+ }
1010
+ /**
1011
+ * Get all dependent modules for module
1012
+ * @param body (optional) modules descriptors
1013
+ * @return OK
1014
+ */
1015
+ getDependingModules(e) {
1016
+ let t = this.baseUrl + "/api/platform/modules/getdependents";
1017
+ t = t.replace(/[?&]$/, "");
1018
+ let r = {
1019
+ body: JSON.stringify(e),
1020
+ method: "POST",
1021
+ headers: {
1022
+ "Content-Type": "application/json-patch+json",
1023
+ Accept: "application/json"
1024
+ }
1025
+ };
1026
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetDependingModules(a));
1027
+ }
1028
+ processGetDependingModules(e) {
1029
+ const t = e.status;
1030
+ let n = {};
1031
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1032
+ let a = null;
1033
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1034
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1035
+ }
1036
+ /**
1037
+ * Returns a flat expanded list of modules that depend on passed modules
1038
+ * @param body (optional) modules descriptors
1039
+ * @return OK
1040
+ */
1041
+ getMissingDependencies(e) {
1042
+ let t = this.baseUrl + "/api/platform/modules/getmissingdependencies";
1043
+ t = t.replace(/[?&]$/, "");
1044
+ let r = {
1045
+ body: JSON.stringify(e),
1046
+ method: "POST",
1047
+ headers: {
1048
+ "Content-Type": "application/json-patch+json",
1049
+ Accept: "application/json"
1050
+ }
1051
+ };
1052
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processGetMissingDependencies(a));
1053
+ }
1054
+ processGetMissingDependencies(e) {
1055
+ const t = e.status;
1056
+ let n = {};
1057
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1058
+ let a = null;
1059
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1060
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1061
+ }
1062
+ /**
1063
+ * Upload module package for installation or update
1064
+ * @return OK
1065
+ */
1066
+ uploadModuleArchive() {
1067
+ let e = this.baseUrl + "/api/platform/modules/localstorage";
1068
+ e = e.replace(/[?&]$/, "");
1069
+ let t = {
1070
+ method: "POST",
1071
+ headers: {
1072
+ Accept: "application/json"
1073
+ }
1074
+ };
1075
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processUploadModuleArchive(n));
1076
+ }
1077
+ processUploadModuleArchive(e) {
1078
+ const t = e.status;
1079
+ let n = {};
1080
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1081
+ let a = null;
1082
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1083
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1084
+ }
1085
+ /**
1086
+ * Install modules
1087
+ * @param body (optional) modules for install
1088
+ * @return OK
1089
+ */
1090
+ installModules(e) {
1091
+ let t = this.baseUrl + "/api/platform/modules/install";
1092
+ t = t.replace(/[?&]$/, "");
1093
+ let r = {
1094
+ body: JSON.stringify(e),
1095
+ method: "POST",
1096
+ headers: {
1097
+ "Content-Type": "application/json-patch+json",
1098
+ Accept: "application/json"
1099
+ }
1100
+ };
1101
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processInstallModules(a));
1102
+ }
1103
+ processInstallModules(e) {
1104
+ const t = e.status;
1105
+ let n = {};
1106
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1107
+ let a = null;
1108
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1109
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1110
+ }
1111
+ /**
1112
+ * Update modules
1113
+ * @param body (optional) modules for update
1114
+ * @return OK
1115
+ */
1116
+ updateModules(e) {
1117
+ let t = this.baseUrl + "/api/platform/modules/update";
1118
+ t = t.replace(/[?&]$/, "");
1119
+ let r = {
1120
+ body: JSON.stringify(e),
1121
+ method: "POST",
1122
+ headers: {
1123
+ "Content-Type": "application/json-patch+json",
1124
+ Accept: "application/json"
1125
+ }
1126
+ };
1127
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateModules(a));
1128
+ }
1129
+ processUpdateModules(e) {
1130
+ const t = e.status;
1131
+ let n = {};
1132
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1133
+ let a = null;
1134
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1135
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1136
+ }
1137
+ /**
1138
+ * Uninstall module
1139
+ * @param body (optional) modules
1140
+ * @return OK
1141
+ */
1142
+ uninstallModule(e) {
1143
+ let t = this.baseUrl + "/api/platform/modules/uninstall";
1144
+ t = t.replace(/[?&]$/, "");
1145
+ let r = {
1146
+ body: JSON.stringify(e),
1147
+ method: "POST",
1148
+ headers: {
1149
+ "Content-Type": "application/json-patch+json",
1150
+ Accept: "application/json"
1151
+ }
1152
+ };
1153
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUninstallModule(a));
1154
+ }
1155
+ processUninstallModule(e) {
1156
+ const t = e.status;
1157
+ let n = {};
1158
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1159
+ let a = null;
1160
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1161
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1162
+ }
1163
+ /**
1164
+ * Restart web application
1165
+ * @return No Content
1166
+ */
1167
+ restart() {
1168
+ let e = this.baseUrl + "/api/platform/modules/restart";
1169
+ e = e.replace(/[?&]$/, "");
1170
+ let t = {
1171
+ method: "POST",
1172
+ headers: {}
1173
+ };
1174
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processRestart(n));
1175
+ }
1176
+ processRestart(e) {
1177
+ const t = e.status;
1178
+ let n = {};
1179
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1180
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1181
+ }
1182
+ /**
1183
+ * Auto-install modules with specified groups
1184
+ * @return OK
1185
+ */
1186
+ tryToAutoInstallModules() {
1187
+ let e = this.baseUrl + "/api/platform/modules/autoinstall";
1188
+ e = e.replace(/[?&]$/, "");
1189
+ let t = {
1190
+ method: "POST",
1191
+ headers: {
1192
+ Accept: "application/json"
1193
+ }
1194
+ };
1195
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processTryToAutoInstallModules(n));
1196
+ }
1197
+ processTryToAutoInstallModules(e) {
1198
+ const t = e.status;
1199
+ let n = {};
1200
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1201
+ let a = null;
1202
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1203
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1204
+ }
1205
+ /**
1206
+ * @return OK
1207
+ */
1208
+ getModulesLoadingOrder() {
1209
+ let e = this.baseUrl + "/api/platform/modules/loading-order";
1210
+ e = e.replace(/[?&]$/, "");
1211
+ let t = {
1212
+ method: "GET",
1213
+ headers: {
1214
+ Accept: "application/json"
1215
+ }
1216
+ };
1217
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetModulesLoadingOrder(n));
1218
+ }
1219
+ processGetModulesLoadingOrder(e) {
1220
+ const t = e.status;
1221
+ 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) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1226
+ }
1227
+ }
1228
+ class Rr extends G {
1229
+ http;
1230
+ baseUrl;
1231
+ constructor(e, t) {
1232
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
1233
+ }
1234
+ /**
1235
+ * @return OK
1236
+ */
1237
+ new() {
1238
+ let e = this.baseUrl + "/api/platform/oauthapps/new";
1239
+ e = e.replace(/[?&]$/, "");
1240
+ let t = {
1241
+ method: "GET",
1242
+ headers: {
1243
+ Accept: "application/json"
1244
+ }
1245
+ };
1246
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processNew(n));
1247
+ }
1248
+ processNew(e) {
1249
+ const t = e.status;
1250
+ let n = {};
1251
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1252
+ let a = null;
1253
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1254
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1255
+ }
1256
+ /**
1257
+ * @param body (optional)
1258
+ * @return OK
1259
+ */
1260
+ save(e) {
1261
+ let t = this.baseUrl + "/api/platform/oauthapps";
1262
+ t = t.replace(/[?&]$/, "");
1263
+ let r = {
1264
+ body: JSON.stringify(e),
1265
+ method: "POST",
1266
+ headers: {
1267
+ "Content-Type": "application/json-patch+json",
1268
+ Accept: "application/json"
1269
+ }
1270
+ };
1271
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSave(a));
1272
+ }
1273
+ processSave(e) {
1274
+ const t = e.status;
1275
+ let n = {};
1276
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1277
+ let a = null;
1278
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1279
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1280
+ }
1281
+ /**
1282
+ * @param clientIds (optional)
1283
+ * @return OK
1284
+ */
1285
+ delete(e) {
1286
+ let t = this.baseUrl + "/api/platform/oauthapps?";
1287
+ if (e === null) throw new globalThis.Error("The parameter 'clientIds' cannot be null.");
1288
+ e !== void 0 && e && e.forEach((r) => {
1289
+ t += "clientIds=" + encodeURIComponent("" + r) + "&";
1290
+ }), t = t.replace(/[?&]$/, "");
1291
+ let n = {
1292
+ method: "DELETE",
1293
+ headers: {}
1294
+ };
1295
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDelete(r));
1296
+ }
1297
+ processDelete(e) {
1298
+ const t = e.status;
1299
+ let n = {};
1300
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1301
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1302
+ }
1303
+ /**
1304
+ * @param body (optional)
1305
+ * @return OK
1306
+ */
1307
+ search(e) {
1308
+ let t = this.baseUrl + "/api/platform/oauthapps/search";
1309
+ t = t.replace(/[?&]$/, "");
1310
+ let r = {
1311
+ body: JSON.stringify(e),
1312
+ method: "POST",
1313
+ headers: {
1314
+ "Content-Type": "application/json-patch+json",
1315
+ Accept: "application/json"
1316
+ }
1317
+ };
1318
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearch(a));
1319
+ }
1320
+ processSearch(e) {
1321
+ const t = e.status;
1322
+ let n = {};
1323
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1324
+ let a = null;
1325
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1326
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1327
+ }
1328
+ }
1329
+ class Br extends G {
1330
+ http;
1331
+ baseUrl;
1332
+ constructor(e, t) {
1333
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
1334
+ }
1335
+ /**
1336
+ * SearchAsync push notifications
1337
+ * @param body (optional) SearchAsync parameters.
1338
+ * @return OK
1339
+ */
1340
+ searchPushNotification(e) {
1341
+ let t = this.baseUrl + "/api/platform/pushnotifications";
1342
+ t = t.replace(/[?&]$/, "");
1343
+ let r = {
1344
+ body: JSON.stringify(e),
1345
+ method: "POST",
1346
+ headers: {
1347
+ "Content-Type": "application/json-patch+json",
1348
+ Accept: "application/json"
1349
+ }
1350
+ };
1351
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchPushNotification(a));
1352
+ }
1353
+ processSearchPushNotification(e) {
1354
+ const t = e.status;
1355
+ let n = {};
1356
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1357
+ let a = null;
1358
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1359
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1360
+ }
1361
+ /**
1362
+ * Mark all notifications as read
1363
+ * @return OK
1364
+ */
1365
+ markAllAsRead() {
1366
+ let e = this.baseUrl + "/api/platform/pushnotifications/markAllAsRead";
1367
+ e = e.replace(/[?&]$/, "");
1368
+ let t = {
1369
+ method: "POST",
1370
+ headers: {
1371
+ Accept: "application/json"
1372
+ }
1373
+ };
1374
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processMarkAllAsRead(n));
1375
+ }
1376
+ processMarkAllAsRead(e) {
1377
+ const t = e.status;
1378
+ let n = {};
1379
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1380
+ let a = null;
1381
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1382
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1383
+ }
1384
+ }
1385
+ class He extends G {
1386
+ http;
1387
+ baseUrl;
1388
+ constructor(e, t) {
1389
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
1390
+ }
1391
+ /**
1392
+ * @param body (optional)
1393
+ * @return OK
1394
+ */
1395
+ searchUserSessions(e, t) {
1396
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/sessions/search";
1397
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
1398
+ n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1399
+ let a = {
1400
+ body: JSON.stringify(t),
1401
+ method: "POST",
1402
+ headers: {
1403
+ "Content-Type": "application/json-patch+json",
1404
+ Accept: "application/json"
1405
+ }
1406
+ };
1407
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSearchUserSessions(o));
1408
+ }
1409
+ processSearchUserSessions(e) {
1410
+ const t = e.status;
1411
+ let n = {};
1412
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1413
+ let a = null;
1414
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1415
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1416
+ }
1417
+ /**
1418
+ * @return No Content
1419
+ */
1420
+ terminateUserSession(e, t) {
1421
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/sessions/{id}";
1422
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
1423
+ if (n = n.replace("{userId}", encodeURIComponent("" + e)), t == null) throw new globalThis.Error("The parameter 'id' must be defined.");
1424
+ n = n.replace("{id}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
1425
+ let r = {
1426
+ method: "DELETE",
1427
+ headers: {}
1428
+ };
1429
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processTerminateUserSession(a));
1430
+ }
1431
+ processTerminateUserSession(e) {
1432
+ const t = e.status;
1433
+ let n = {};
1434
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1435
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1436
+ }
1437
+ /**
1438
+ * @return No Content
1439
+ */
1440
+ terminateAllUserSessions(e) {
1441
+ let t = this.baseUrl + "/api/platform/security/users/{userId}/sessions";
1442
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
1443
+ t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1444
+ let n = {
1445
+ method: "DELETE",
1446
+ headers: {}
1447
+ };
1448
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processTerminateAllUserSessions(r));
1449
+ }
1450
+ processTerminateAllUserSessions(e) {
1451
+ const t = e.status;
1452
+ let n = {};
1453
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1454
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1455
+ }
1456
+ /**
1457
+ * Sign in with user name and password
1458
+ * @param body (optional) Login request.
1459
+ * @return OK
1460
+ */
1461
+ login(e) {
1462
+ let t = this.baseUrl + "/api/platform/security/login";
1463
+ t = t.replace(/[?&]$/, "");
1464
+ let r = {
1465
+ body: JSON.stringify(e),
1466
+ method: "POST",
1467
+ headers: {
1468
+ "Content-Type": "application/json-patch+json",
1469
+ Accept: "application/json"
1470
+ }
1471
+ };
1472
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processLogin(a));
1473
+ }
1474
+ processLogin(e) {
1475
+ const t = e.status;
1476
+ let n = {};
1477
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1478
+ let a = null;
1479
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1480
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1481
+ }
1482
+ /**
1483
+ * Sign out
1484
+ * @return No Content
1485
+ */
1486
+ logout() {
1487
+ let e = this.baseUrl + "/api/platform/security/logout";
1488
+ e = e.replace(/[?&]$/, "");
1489
+ let t = {
1490
+ method: "GET",
1491
+ headers: {}
1492
+ };
1493
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processLogout(n));
1494
+ }
1495
+ processLogout(e) {
1496
+ const t = e.status;
1497
+ let n = {};
1498
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1499
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1500
+ }
1501
+ /**
1502
+ * Get current user details
1503
+ * @return OK
1504
+ */
1505
+ getCurrentUser() {
1506
+ let e = this.baseUrl + "/api/platform/security/currentuser";
1507
+ e = e.replace(/[?&]$/, "");
1508
+ let t = {
1509
+ method: "GET",
1510
+ headers: {
1511
+ Accept: "application/json"
1512
+ }
1513
+ };
1514
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetCurrentUser(n));
1515
+ }
1516
+ processGetCurrentUser(e) {
1517
+ const t = e.status;
1518
+ let n = {};
1519
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1520
+ let a = null;
1521
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1522
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1523
+ }
1524
+ /**
1525
+ * @return OK
1526
+ */
1527
+ userinfo() {
1528
+ let e = this.baseUrl + "/api/platform/security/userinfo";
1529
+ e = e.replace(/[?&]$/, "");
1530
+ let t = {
1531
+ method: "GET",
1532
+ headers: {
1533
+ Accept: "application/json"
1534
+ }
1535
+ };
1536
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processUserinfo(n));
1537
+ }
1538
+ processUserinfo(e) {
1539
+ const t = e.status;
1540
+ let n = {};
1541
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1542
+ let a = null;
1543
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1544
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1545
+ }
1546
+ /**
1547
+ * Get all registered permissions
1548
+ * @return OK
1549
+ */
1550
+ getAllRegisteredPermissions() {
1551
+ let e = this.baseUrl + "/api/platform/security/permissions";
1552
+ e = e.replace(/[?&]$/, "");
1553
+ let t = {
1554
+ method: "GET",
1555
+ headers: {
1556
+ Accept: "application/json"
1557
+ }
1558
+ };
1559
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetAllRegisteredPermissions(n));
1560
+ }
1561
+ processGetAllRegisteredPermissions(e) {
1562
+ const t = e.status;
1563
+ let n = {};
1564
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1565
+ let a = null;
1566
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1567
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1568
+ }
1569
+ /**
1570
+ * SearchAsync roles by keyword
1571
+ * @param body (optional) SearchAsync parameters.
1572
+ * @return OK
1573
+ */
1574
+ searchRoles(e) {
1575
+ let t = this.baseUrl + "/api/platform/security/roles/search";
1576
+ t = t.replace(/[?&]$/, "");
1577
+ let r = {
1578
+ body: JSON.stringify(e),
1579
+ method: "POST",
1580
+ headers: {
1581
+ "Content-Type": "application/json-patch+json",
1582
+ Accept: "application/json"
1583
+ }
1584
+ };
1585
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchRoles(a));
1586
+ }
1587
+ processSearchRoles(e) {
1588
+ const t = e.status;
1589
+ let n = {};
1590
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1591
+ let a = null;
1592
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1593
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1594
+ }
1595
+ /**
1596
+ * Get role by ID
1597
+ * @return OK
1598
+ */
1599
+ getRole(e) {
1600
+ let t = this.baseUrl + "/api/platform/security/roles/{roleName}";
1601
+ if (e == null)
1602
+ throw new globalThis.Error("The parameter 'roleName' must be defined.");
1603
+ t = t.replace("{roleName}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1604
+ let n = {
1605
+ method: "GET",
1606
+ headers: {
1607
+ Accept: "application/json"
1608
+ }
1609
+ };
1610
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetRole(r));
1611
+ }
1612
+ processGetRole(e) {
1613
+ const t = e.status;
1614
+ let n = {};
1615
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1616
+ let a = null;
1617
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1618
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1619
+ }
1620
+ /**
1621
+ * Delete roles by ID
1622
+ * @param ids (optional) An array of role IDs.
1623
+ * @return No Content
1624
+ */
1625
+ deleteRoles(e) {
1626
+ let t = this.baseUrl + "/api/platform/security/roles?";
1627
+ if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
1628
+ e !== void 0 && e && e.forEach((r) => {
1629
+ t += "ids=" + encodeURIComponent("" + r) + "&";
1630
+ }), t = t.replace(/[?&]$/, "");
1631
+ let n = {
1632
+ method: "DELETE",
1633
+ headers: {}
1634
+ };
1635
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDeleteRoles(r));
1636
+ }
1637
+ processDeleteRoles(e) {
1638
+ const t = e.status;
1639
+ let n = {};
1640
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
1641
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1642
+ }
1643
+ /**
1644
+ * Update an existing role or create new
1645
+ * @param body (optional)
1646
+ * @return OK
1647
+ */
1648
+ updateRole(e) {
1649
+ let t = this.baseUrl + "/api/platform/security/roles";
1650
+ t = t.replace(/[?&]$/, "");
1651
+ let r = {
1652
+ body: JSON.stringify(e),
1653
+ method: "PUT",
1654
+ headers: {
1655
+ "Content-Type": "application/json-patch+json",
1656
+ Accept: "application/json"
1657
+ }
1658
+ };
1659
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateRole(a));
1660
+ }
1661
+ processUpdateRole(e) {
1662
+ const t = e.status;
1663
+ let n = {};
1664
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1665
+ let a = null;
1666
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1667
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1668
+ }
1669
+ /**
1670
+ * SearchAsync users by keyword
1671
+ * @param body (optional) Search criteria.
1672
+ * @return OK
1673
+ */
1674
+ searchUsers(e) {
1675
+ let t = this.baseUrl + "/api/platform/security/users/search";
1676
+ t = t.replace(/[?&]$/, "");
1677
+ let r = {
1678
+ body: JSON.stringify(e),
1679
+ method: "POST",
1680
+ headers: {
1681
+ "Content-Type": "application/json-patch+json",
1682
+ Accept: "application/json"
1683
+ }
1684
+ };
1685
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchUsers(a));
1686
+ }
1687
+ processSearchUsers(e) {
1688
+ const t = e.status;
1689
+ let n = {};
1690
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1691
+ let a = null;
1692
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1693
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1694
+ }
1695
+ /**
1696
+ * Get user details by user name
1697
+ * @return OK
1698
+ */
1699
+ getUserByName(e) {
1700
+ let t = this.baseUrl + "/api/platform/security/users/{userName}";
1701
+ if (e == null)
1702
+ throw new globalThis.Error("The parameter 'userName' must be defined.");
1703
+ t = t.replace("{userName}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1704
+ let n = {
1705
+ method: "GET",
1706
+ headers: {
1707
+ Accept: "application/json"
1708
+ }
1709
+ };
1710
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetUserByName(r));
1711
+ }
1712
+ processGetUserByName(e) {
1713
+ const t = e.status;
1714
+ let n = {};
1715
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1716
+ let a = null;
1717
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1718
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1719
+ }
1720
+ /**
1721
+ * Get user details by user ID
1722
+ * @return OK
1723
+ */
1724
+ getUserById(e) {
1725
+ let t = this.baseUrl + "/api/platform/security/users/id/{id}";
1726
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
1727
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1728
+ let n = {
1729
+ method: "GET",
1730
+ headers: {
1731
+ Accept: "application/json"
1732
+ }
1733
+ };
1734
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetUserById(r));
1735
+ }
1736
+ processGetUserById(e) {
1737
+ const t = e.status;
1738
+ let n = {};
1739
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1740
+ let a = null;
1741
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1742
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1743
+ }
1744
+ /**
1745
+ * Get user details by user email
1746
+ * @return OK
1747
+ */
1748
+ getUserByEmail(e) {
1749
+ let t = this.baseUrl + "/api/platform/security/users/email/{email}";
1750
+ if (e == null) throw new globalThis.Error("The parameter 'email' must be defined.");
1751
+ t = t.replace("{email}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1752
+ let n = {
1753
+ method: "GET",
1754
+ headers: {
1755
+ Accept: "application/json"
1756
+ }
1757
+ };
1758
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetUserByEmail(r));
1759
+ }
1760
+ processGetUserByEmail(e) {
1761
+ const t = e.status;
1762
+ let n = {};
1763
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1764
+ let a = null;
1765
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1766
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1767
+ }
1768
+ /**
1769
+ * Get user details by external login provider
1770
+ * @return OK
1771
+ */
1772
+ getUserByLogin(e, t) {
1773
+ let n = this.baseUrl + "/api/platform/security/users/login/external/{loginProvider}/{providerKey}";
1774
+ if (e == null)
1775
+ throw new globalThis.Error("The parameter 'loginProvider' must be defined.");
1776
+ if (n = n.replace("{loginProvider}", encodeURIComponent("" + e)), t == null)
1777
+ throw new globalThis.Error("The parameter 'providerKey' must be defined.");
1778
+ n = n.replace("{providerKey}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
1779
+ let r = {
1780
+ method: "GET",
1781
+ headers: {
1782
+ Accept: "application/json"
1783
+ }
1784
+ };
1785
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetUserByLogin(a));
1786
+ }
1787
+ processGetUserByLogin(e) {
1788
+ const t = e.status;
1789
+ let n = {};
1790
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1791
+ let a = null;
1792
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1793
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1794
+ }
1795
+ /**
1796
+ * Create new user
1797
+ * @param body (optional)
1798
+ * @return OK
1799
+ */
1800
+ create(e) {
1801
+ let t = this.baseUrl + "/api/platform/security/users/create";
1802
+ t = t.replace(/[?&]$/, "");
1803
+ let r = {
1804
+ body: JSON.stringify(e),
1805
+ method: "POST",
1806
+ headers: {
1807
+ "Content-Type": "application/json-patch+json",
1808
+ Accept: "application/json"
1809
+ }
1810
+ };
1811
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processCreate(a));
1812
+ }
1813
+ processCreate(e) {
1814
+ const t = e.status;
1815
+ let n = {};
1816
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1817
+ let a = null;
1818
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1819
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1820
+ }
1821
+ /**
1822
+ * Change password for current user.
1823
+ * @param body (optional) Old and new passwords.
1824
+ * @return OK
1825
+ */
1826
+ changeCurrentUserPassword(e) {
1827
+ let t = this.baseUrl + "/api/platform/security/currentuser/changepassword";
1828
+ t = t.replace(/[?&]$/, "");
1829
+ let r = {
1830
+ body: JSON.stringify(e),
1831
+ method: "POST",
1832
+ headers: {
1833
+ "Content-Type": "application/json-patch+json",
1834
+ Accept: "application/json"
1835
+ }
1836
+ };
1837
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processChangeCurrentUserPassword(a));
1838
+ }
1839
+ processChangeCurrentUserPassword(e) {
1840
+ const t = e.status;
1841
+ let n = {};
1842
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1843
+ let a = null;
1844
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1845
+ }) : t === 400 ? e.text().then((r) => i("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1846
+ }
1847
+ /**
1848
+ * Change password
1849
+ * @param userName user name
1850
+ * @param body (optional) Old and new passwords.
1851
+ * @return OK
1852
+ */
1853
+ changePassword(e, t) {
1854
+ let n = this.baseUrl + "/api/platform/security/users/{userName}/changepassword";
1855
+ if (e == null)
1856
+ throw new globalThis.Error("The parameter 'userName' must be defined.");
1857
+ n = n.replace("{userName}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1858
+ let a = {
1859
+ body: JSON.stringify(t),
1860
+ method: "POST",
1861
+ headers: {
1862
+ "Content-Type": "application/json-patch+json",
1863
+ Accept: "application/json"
1864
+ }
1865
+ };
1866
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processChangePassword(o));
1867
+ }
1868
+ processChangePassword(e) {
1869
+ const t = e.status;
1870
+ let n = {};
1871
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1872
+ let a = null;
1873
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1874
+ }) : t === 400 ? e.text().then((r) => i("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1875
+ }
1876
+ /**
1877
+ * Reset password confirmation
1878
+ * @param body (optional) Password reset information.
1879
+ * @return OK
1880
+ */
1881
+ resetPassword(e, t) {
1882
+ let n = this.baseUrl + "/api/platform/security/users/{userName}/resetpassword";
1883
+ if (e == null)
1884
+ throw new globalThis.Error("The parameter 'userName' must be defined.");
1885
+ n = n.replace("{userName}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1886
+ let a = {
1887
+ body: JSON.stringify(t),
1888
+ method: "POST",
1889
+ headers: {
1890
+ "Content-Type": "application/json-patch+json",
1891
+ Accept: "application/json"
1892
+ }
1893
+ };
1894
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPassword(o));
1895
+ }
1896
+ processResetPassword(e) {
1897
+ const t = e.status;
1898
+ let n = {};
1899
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1900
+ let a = null;
1901
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1902
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1903
+ }
1904
+ /**
1905
+ * Reset password confirmation
1906
+ * @param body (optional) Password reset information.
1907
+ * @return OK
1908
+ */
1909
+ resetPasswordByToken(e, t) {
1910
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/resetpasswordconfirm";
1911
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
1912
+ n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1913
+ let a = {
1914
+ body: JSON.stringify(t),
1915
+ method: "POST",
1916
+ headers: {
1917
+ "Content-Type": "application/json-patch+json",
1918
+ Accept: "application/json"
1919
+ }
1920
+ };
1921
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processResetPasswordByToken(o));
1922
+ }
1923
+ processResetPasswordByToken(e) {
1924
+ const t = e.status;
1925
+ 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 !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1930
+ }
1931
+ /**
1932
+ * Validate password reset token
1933
+ * @param body (optional)
1934
+ * @return OK
1935
+ */
1936
+ validatePasswordResetToken(e, t) {
1937
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/validatepasswordresettoken";
1938
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
1939
+ n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
1940
+ let a = {
1941
+ body: JSON.stringify(t),
1942
+ method: "POST",
1943
+ headers: {
1944
+ "Content-Type": "application/json-patch+json",
1945
+ Accept: "application/json"
1946
+ }
1947
+ };
1948
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processValidatePasswordResetToken(o));
1949
+ }
1950
+ processValidatePasswordResetToken(e) {
1951
+ const t = e.status;
1952
+ let n = {};
1953
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1954
+ let a = null;
1955
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
1956
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1957
+ }
1958
+ /**
1959
+ * Send email with instructions on how to reset user password.
1960
+ * @return OK
1961
+ */
1962
+ requestPasswordReset(e) {
1963
+ let t = this.baseUrl + "/api/platform/security/users/{loginOrEmail}/requestpasswordreset";
1964
+ if (e == null)
1965
+ throw new globalThis.Error("The parameter 'loginOrEmail' must be defined.");
1966
+ t = t.replace("{loginOrEmail}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
1967
+ let n = {
1968
+ method: "POST",
1969
+ headers: {}
1970
+ };
1971
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processRequestPasswordReset(r));
1972
+ }
1973
+ processRequestPasswordReset(e) {
1974
+ const t = e.status;
1975
+ let n = {};
1976
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
1977
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
1978
+ }
1979
+ /**
1980
+ * @param body (optional)
1981
+ * @return OK
1982
+ */
1983
+ validatePassword(e) {
1984
+ let t = this.baseUrl + "/api/platform/security/validatepassword";
1985
+ t = t.replace(/[?&]$/, "");
1986
+ let r = {
1987
+ body: JSON.stringify(e),
1988
+ method: "POST",
1989
+ headers: {
1990
+ "Content-Type": "application/json-patch+json",
1991
+ Accept: "application/json"
1992
+ }
1993
+ };
1994
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processValidatePassword(a));
1995
+ }
1996
+ processValidatePassword(e) {
1997
+ const t = e.status;
1998
+ let n = {};
1999
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2000
+ let a = null;
2001
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2002
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2003
+ }
2004
+ /**
2005
+ * @param body (optional)
2006
+ * @return OK
2007
+ */
2008
+ validateUserPassword(e) {
2009
+ let t = this.baseUrl + "/api/platform/security/validateuserpassword";
2010
+ t = t.replace(/[?&]$/, "");
2011
+ let r = {
2012
+ body: JSON.stringify(e),
2013
+ method: "POST",
2014
+ headers: {
2015
+ "Content-Type": "application/json-patch+json",
2016
+ Accept: "application/json"
2017
+ }
2018
+ };
2019
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processValidateUserPassword(a));
2020
+ }
2021
+ processValidateUserPassword(e) {
2022
+ const t = e.status;
2023
+ let n = {};
2024
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2025
+ let a = null;
2026
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2027
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2028
+ }
2029
+ /**
2030
+ * Update user details by user ID
2031
+ * @param body (optional) User details.
2032
+ * @return OK
2033
+ */
2034
+ update(e) {
2035
+ let t = this.baseUrl + "/api/platform/security/users";
2036
+ t = t.replace(/[?&]$/, "");
2037
+ let r = {
2038
+ body: JSON.stringify(e),
2039
+ method: "PUT",
2040
+ headers: {
2041
+ "Content-Type": "application/json-patch+json",
2042
+ Accept: "application/json"
2043
+ }
2044
+ };
2045
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
2046
+ }
2047
+ processUpdate(e) {
2048
+ const t = e.status;
2049
+ let n = {};
2050
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2051
+ let a = null;
2052
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2053
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2054
+ }
2055
+ /**
2056
+ * Delete users by name
2057
+ * @param names (optional) An array of user names.
2058
+ * @return OK
2059
+ */
2060
+ delete(e) {
2061
+ let t = this.baseUrl + "/api/platform/security/users?";
2062
+ if (e === null) throw new globalThis.Error("The parameter 'names' cannot be null.");
2063
+ e !== void 0 && e && e.forEach((r) => {
2064
+ t += "names=" + encodeURIComponent("" + r) + "&";
2065
+ }), t = t.replace(/[?&]$/, "");
2066
+ let n = {
2067
+ method: "DELETE",
2068
+ headers: {}
2069
+ };
2070
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDelete(r));
2071
+ }
2072
+ processDelete(e) {
2073
+ const t = e.status;
2074
+ let n = {};
2075
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2076
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2077
+ }
2078
+ /**
2079
+ * Checks if user locked
2080
+ * @param id User id
2081
+ * @return OK
2082
+ */
2083
+ isUserLocked(e) {
2084
+ let t = this.baseUrl + "/api/platform/security/users/{id}/locked";
2085
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
2086
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2087
+ let n = {
2088
+ method: "GET",
2089
+ headers: {
2090
+ Accept: "application/json"
2091
+ }
2092
+ };
2093
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processIsUserLocked(r));
2094
+ }
2095
+ processIsUserLocked(e) {
2096
+ const t = e.status;
2097
+ let n = {};
2098
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2099
+ let a = null;
2100
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2101
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2102
+ }
2103
+ /**
2104
+ * Checks if manual password change is enabled
2105
+ * @return OK
2106
+ */
2107
+ passwordChangeEnabled() {
2108
+ let e = this.baseUrl + "/api/platform/security/passwordchangeenabled";
2109
+ e = e.replace(/[?&]$/, "");
2110
+ let t = {
2111
+ method: "GET",
2112
+ headers: {
2113
+ Accept: "application/json"
2114
+ }
2115
+ };
2116
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processPasswordChangeEnabled(n));
2117
+ }
2118
+ processPasswordChangeEnabled(e) {
2119
+ const t = e.status;
2120
+ let n = {};
2121
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2122
+ let a = null;
2123
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2124
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2125
+ }
2126
+ /**
2127
+ * Lock user
2128
+ * @param id >User id
2129
+ * @return OK
2130
+ */
2131
+ lockUser(e) {
2132
+ let t = this.baseUrl + "/api/platform/security/users/{id}/lock";
2133
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
2134
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2135
+ let n = {
2136
+ method: "POST",
2137
+ headers: {
2138
+ Accept: "application/json"
2139
+ }
2140
+ };
2141
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processLockUser(r));
2142
+ }
2143
+ processLockUser(e) {
2144
+ const t = e.status;
2145
+ let n = {};
2146
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2147
+ let a = null;
2148
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2149
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2150
+ }
2151
+ /**
2152
+ * Unlock user
2153
+ * @param id >User id
2154
+ * @return OK
2155
+ */
2156
+ unlockUser(e) {
2157
+ let t = this.baseUrl + "/api/platform/security/users/{id}/unlock";
2158
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
2159
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2160
+ let n = {
2161
+ method: "POST",
2162
+ headers: {
2163
+ Accept: "application/json"
2164
+ }
2165
+ };
2166
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processUnlockUser(r));
2167
+ }
2168
+ processUnlockUser(e) {
2169
+ const t = e.status;
2170
+ let n = {};
2171
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2172
+ let a = null;
2173
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2174
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2175
+ }
2176
+ /**
2177
+ * @return OK
2178
+ */
2179
+ getUserApiKeys(e) {
2180
+ let t = this.baseUrl + "/api/platform/security/users/{id}/apikeys";
2181
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
2182
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2183
+ let n = {
2184
+ method: "GET",
2185
+ headers: {
2186
+ Accept: "application/json"
2187
+ }
2188
+ };
2189
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetUserApiKeys(r));
2190
+ }
2191
+ processGetUserApiKeys(e) {
2192
+ const t = e.status;
2193
+ let n = {};
2194
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2195
+ let a = null;
2196
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2197
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2198
+ }
2199
+ /**
2200
+ * @param body (optional)
2201
+ * @return OK
2202
+ */
2203
+ saveUserApiKey(e) {
2204
+ let t = this.baseUrl + "/api/platform/security/users/apikeys";
2205
+ t = t.replace(/[?&]$/, "");
2206
+ let r = {
2207
+ body: JSON.stringify(e),
2208
+ method: "POST",
2209
+ headers: {
2210
+ "Content-Type": "application/json-patch+json",
2211
+ Accept: "application/json"
2212
+ }
2213
+ };
2214
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSaveUserApiKey(a));
2215
+ }
2216
+ processSaveUserApiKey(e) {
2217
+ const t = e.status;
2218
+ let n = {};
2219
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2220
+ let a = null;
2221
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2222
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2223
+ }
2224
+ /**
2225
+ * @param body (optional)
2226
+ * @return OK
2227
+ */
2228
+ updateUserApiKey(e) {
2229
+ let t = this.baseUrl + "/api/platform/security/users/apikeys";
2230
+ t = t.replace(/[?&]$/, "");
2231
+ let r = {
2232
+ body: JSON.stringify(e),
2233
+ method: "PUT",
2234
+ headers: {
2235
+ "Content-Type": "application/json-patch+json",
2236
+ Accept: "application/json"
2237
+ }
2238
+ };
2239
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateUserApiKey(a));
2240
+ }
2241
+ processUpdateUserApiKey(e) {
2242
+ const t = e.status;
2243
+ let n = {};
2244
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2245
+ let a = null;
2246
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2247
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2248
+ }
2249
+ /**
2250
+ * @param ids (optional)
2251
+ * @return OK
2252
+ */
2253
+ deleteUserApiKeys(e) {
2254
+ let t = this.baseUrl + "/api/platform/security/users/apikeys?";
2255
+ if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
2256
+ e !== void 0 && e && e.forEach((r) => {
2257
+ t += "ids=" + encodeURIComponent("" + r) + "&";
2258
+ }), t = t.replace(/[?&]$/, "");
2259
+ let n = {
2260
+ method: "DELETE",
2261
+ headers: {
2262
+ Accept: "application/json"
2263
+ }
2264
+ };
2265
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDeleteUserApiKeys(r));
2266
+ }
2267
+ processDeleteUserApiKeys(e) {
2268
+ const t = e.status;
2269
+ let n = {};
2270
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2271
+ let a = null;
2272
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2273
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2274
+ }
2275
+ /**
2276
+ * Get allowed login types
2277
+ * @return OK
2278
+ */
2279
+ getLoginTypes() {
2280
+ let e = this.baseUrl + "/api/platform/security/logintypes";
2281
+ e = e.replace(/[?&]$/, "");
2282
+ let t = {
2283
+ method: "GET",
2284
+ headers: {
2285
+ Accept: "application/json"
2286
+ }
2287
+ };
2288
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetLoginTypes(n));
2289
+ }
2290
+ processGetLoginTypes(e) {
2291
+ const t = e.status;
2292
+ let n = {};
2293
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2294
+ let a = null;
2295
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2296
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2297
+ }
2298
+ /**
2299
+ * Verify user email
2300
+ * @return OK
2301
+ */
2302
+ sendVerificationEmail(e) {
2303
+ let t = this.baseUrl + "/api/platform/security/users/{userId}/sendVerificationEmail";
2304
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2305
+ t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2306
+ let n = {
2307
+ method: "POST",
2308
+ headers: {}
2309
+ };
2310
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processSendVerificationEmail(r));
2311
+ }
2312
+ processSendVerificationEmail(e) {
2313
+ const t = e.status;
2314
+ let n = {};
2315
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2316
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2317
+ }
2318
+ /**
2319
+ * @param body (optional)
2320
+ * @return OK
2321
+ */
2322
+ confirmEmail(e, t) {
2323
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/confirmEmail";
2324
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2325
+ n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2326
+ let a = {
2327
+ body: JSON.stringify(t),
2328
+ method: "POST",
2329
+ headers: {
2330
+ "Content-Type": "application/json-patch+json",
2331
+ Accept: "application/json"
2332
+ }
2333
+ };
2334
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processConfirmEmail(o));
2335
+ }
2336
+ processConfirmEmail(e) {
2337
+ const t = e.status;
2338
+ let n = {};
2339
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2340
+ let a = null;
2341
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2342
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2343
+ }
2344
+ /**
2345
+ * @param newEmail (optional)
2346
+ * @return OK
2347
+ */
2348
+ generateChangeEmailToken(e, t) {
2349
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/generateChangeEmailToken?";
2350
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2351
+ if (n = n.replace("{userId}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'newEmail' cannot be null.");
2352
+ t !== void 0 && (n += "newEmail=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
2353
+ let r = {
2354
+ method: "GET",
2355
+ headers: {
2356
+ Accept: "application/json"
2357
+ }
2358
+ };
2359
+ return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGenerateChangeEmailToken(a));
2360
+ }
2361
+ processGenerateChangeEmailToken(e) {
2362
+ const t = e.status;
2363
+ let n = {};
2364
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2365
+ let a = null;
2366
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2367
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2368
+ }
2369
+ /**
2370
+ * @return OK
2371
+ */
2372
+ generateEmailConfirmationToken(e) {
2373
+ let t = this.baseUrl + "/api/platform/security/users/{userId}/generateEmailConfirmationToken";
2374
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2375
+ t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2376
+ let n = {
2377
+ method: "GET",
2378
+ headers: {
2379
+ Accept: "application/json"
2380
+ }
2381
+ };
2382
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGenerateEmailConfirmationToken(r));
2383
+ }
2384
+ processGenerateEmailConfirmationToken(e) {
2385
+ const t = e.status;
2386
+ let n = {};
2387
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2388
+ let a = null;
2389
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2390
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2391
+ }
2392
+ /**
2393
+ * @return OK
2394
+ */
2395
+ generatePasswordResetToken(e) {
2396
+ let t = this.baseUrl + "/api/platform/security/users/{userId}/generatePasswordResetToken";
2397
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2398
+ t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2399
+ let n = {
2400
+ method: "GET",
2401
+ headers: {
2402
+ Accept: "application/json"
2403
+ }
2404
+ };
2405
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGeneratePasswordResetToken(r));
2406
+ }
2407
+ processGeneratePasswordResetToken(e) {
2408
+ const t = e.status;
2409
+ let n = {};
2410
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2411
+ let a = null;
2412
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2413
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2414
+ }
2415
+ /**
2416
+ * @param tokenProvider (optional)
2417
+ * @param purpose (optional)
2418
+ * @return OK
2419
+ */
2420
+ generateUserToken(e, t, n) {
2421
+ let r = this.baseUrl + "/api/platform/security/users/{userId}/generateToken?";
2422
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2423
+ if (r = r.replace("{userId}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'tokenProvider' cannot be null.");
2424
+ if (t !== void 0 && (r += "tokenProvider=" + encodeURIComponent("" + t) + "&"), n === null) throw new globalThis.Error("The parameter 'purpose' cannot be null.");
2425
+ n !== void 0 && (r += "purpose=" + encodeURIComponent("" + n) + "&"), r = r.replace(/[?&]$/, "");
2426
+ let a = {
2427
+ method: "GET",
2428
+ headers: {
2429
+ Accept: "application/json"
2430
+ }
2431
+ };
2432
+ return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processGenerateUserToken(o));
2433
+ }
2434
+ processGenerateUserToken(e) {
2435
+ const t = e.status;
2436
+ let n = {};
2437
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2438
+ let a = null;
2439
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2440
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2441
+ }
2442
+ /**
2443
+ * @param body (optional)
2444
+ * @return OK
2445
+ */
2446
+ verifyUserToken(e, t) {
2447
+ let n = this.baseUrl + "/api/platform/security/users/{userId}/verifyToken";
2448
+ if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
2449
+ n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
2450
+ let a = {
2451
+ body: JSON.stringify(t),
2452
+ method: "POST",
2453
+ headers: {
2454
+ "Content-Type": "application/json-patch+json",
2455
+ Accept: "application/json"
2456
+ }
2457
+ };
2458
+ return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processVerifyUserToken(o));
2459
+ }
2460
+ processVerifyUserToken(e) {
2461
+ const t = e.status;
2462
+ let n = {};
2463
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2464
+ let a = null;
2465
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2466
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2467
+ }
2468
+ }
2469
+ class $r extends G {
2470
+ http;
2471
+ baseUrl;
2472
+ constructor(e, t) {
2473
+ super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
2474
+ }
2475
+ /**
2476
+ * Get all settings
2477
+ * @return OK
2478
+ */
2479
+ getAllGlobalSettings() {
2480
+ let e = this.baseUrl + "/api/platform/settings";
2481
+ e = e.replace(/[?&]$/, "");
2482
+ let t = {
2483
+ method: "GET",
2484
+ headers: {
2485
+ Accept: "application/json"
2486
+ }
2487
+ };
2488
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetAllGlobalSettings(n));
2489
+ }
2490
+ processGetAllGlobalSettings(e) {
2491
+ const t = e.status;
2492
+ 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) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2497
+ }
2498
+ /**
2499
+ * Update settings values
2500
+ * @param body (optional)
2501
+ * @return No Content
2502
+ */
2503
+ update(e) {
2504
+ let t = this.baseUrl + "/api/platform/settings";
2505
+ t = t.replace(/[?&]$/, "");
2506
+ let r = {
2507
+ body: JSON.stringify(e),
2508
+ method: "POST",
2509
+ headers: {
2510
+ "Content-Type": "application/json-patch+json"
2511
+ }
2512
+ };
2513
+ return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
2514
+ }
2515
+ processUpdate(e) {
2516
+ const t = e.status;
2517
+ let n = {};
2518
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
2519
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2520
+ }
2521
+ /**
2522
+ * Get settings registered by specific module
2523
+ * @param id Module ID.
2524
+ * @return OK
2525
+ */
2526
+ getGlobalModuleSettings(e) {
2527
+ let t = this.baseUrl + "/api/platform/settings/modules/{id}";
2528
+ if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
2529
+ t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2530
+ let n = {
2531
+ method: "GET",
2532
+ headers: {
2533
+ Accept: "application/json"
2534
+ }
2535
+ };
2536
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetGlobalModuleSettings(r));
2537
+ }
2538
+ processGetGlobalModuleSettings(e) {
2539
+ const t = e.status;
2540
+ let n = {};
2541
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2542
+ let a = null;
2543
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2544
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2545
+ }
2546
+ /**
2547
+ * Get setting details by name
2548
+ * @param name Setting system name.
2549
+ * @return OK
2550
+ */
2551
+ getGlobalSetting(e) {
2552
+ let t = this.baseUrl + "/api/platform/settings/{name}";
2553
+ if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
2554
+ t = t.replace("{name}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
2555
+ let n = {
2556
+ method: "GET",
2557
+ headers: {
2558
+ Accept: "application/json"
2559
+ }
2560
+ };
2561
+ return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetGlobalSetting(r));
2562
+ }
2563
+ processGetGlobalSetting(e) {
2564
+ const t = e.status;
2565
+ let n = {};
2566
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2567
+ let a = null;
2568
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2569
+ }) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2570
+ }
2571
+ /**
2572
+ * Get UI customization setting
2573
+ * @return OK
2574
+ */
2575
+ getUICustomizationSetting() {
2576
+ let e = this.baseUrl + "/api/platform/settings/ui/customization";
2577
+ e = e.replace(/[?&]$/, "");
2578
+ let t = {
2579
+ method: "GET",
2580
+ headers: {
2581
+ Accept: "application/json"
2582
+ }
2583
+ };
2584
+ return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processGetUICustomizationSetting(n));
2585
+ }
2586
+ processGetUICustomizationSetting(e) {
2587
+ const t = e.status;
2588
+ let n = {};
2589
+ return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
2590
+ let a = null;
2591
+ return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
2592
+ }) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
2593
+ }
2594
+ }
2595
+ var Ze = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(Ze || {}), Xe = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(Xe || {}), Ye = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(Ye || {}), Qe = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Qe || {}), Ve = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(Ve || {}), et = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(et || {}), tt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(tt || {}), rt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(rt || {}), nt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(nt || {}), at = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", s))(at || {}), st = /* @__PURE__ */ ((s) => (s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.SecureString = "SecureString", s.Json = "Json", s.PositiveInteger = "PositiveInteger", s))(st || {}), it = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(it || {}), ot = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(ot || {}), lt = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(lt || {});
2596
+ class ut extends Error {
2597
+ message;
2598
+ status;
2599
+ response;
2600
+ headers;
2601
+ result;
2602
+ constructor(e, t, n, r, a) {
2603
+ super(), this.message = e, this.status = t, this.response = n, this.headers = r, this.result = a;
2604
+ }
2605
+ isApiException = !0;
2606
+ static isApiException(e) {
2607
+ return e.isApiException === !0;
2608
+ }
2609
+ }
2610
+ function i(s, e, t, n, r) {
2611
+ throw r ?? new ut(s, e, t, n, null);
2612
+ }
2613
+ const Ee = {
2614
+ debug: 0,
2615
+ info: 1,
2616
+ warn: 2,
2617
+ error: 3,
2618
+ none: 4
2619
+ }, ct = {
2620
+ level: "warn",
2621
+ prefix: "@vc-shell/framework",
2622
+ enabled: !0
2623
+ };
2624
+ function N(s) {
2625
+ const e = { ...ct }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? Ee[r] >= Ee[e.level] : !1;
2626
+ return {
2627
+ /**
2628
+ * Log debug messages (only in development)
2629
+ */
2630
+ debug: (...r) => {
2631
+ n("debug") && console.debug(t, ...r);
2632
+ },
2633
+ /**
2634
+ * Log info messages
2635
+ */
2636
+ info: (...r) => {
2637
+ n("info") && console.info(t, ...r);
2638
+ },
2639
+ /**
2640
+ * Log warning messages
2641
+ */
2642
+ warn: (...r) => {
2643
+ n("warn") && console.warn(t, ...r);
2644
+ },
2645
+ /**
2646
+ * Log error messages
2647
+ */
2648
+ error: (...r) => {
2649
+ n("error") && console.error(t, ...r);
2650
+ },
2651
+ /**
2652
+ * Create a child logger with additional context
2653
+ */
2654
+ child: (r) => N(s ? `${s}:${r}` : r),
2655
+ /**
2656
+ * Set the log level for this logger instance
2657
+ */
2658
+ setLevel: (r) => {
2659
+ e.level = r;
2660
+ },
2661
+ /**
2662
+ * Enable or disable logging
2663
+ */
2664
+ setEnabled: (r) => {
2665
+ e.enabled = r;
2666
+ }
2667
+ };
2668
+ }
2669
+ const kr = N(), Nr = {
2670
+ core: N("core"),
2671
+ ui: N("ui"),
2672
+ shared: N("shared"),
2673
+ plugins: N("plugins"),
2674
+ services: N("services"),
2675
+ composables: N("composables")
2676
+ };
2677
+ class M extends Error {
2678
+ constructor(e, t, n) {
2679
+ super(e), this.code = t, this.context = n, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, M);
2680
+ }
2681
+ toJSON() {
2682
+ return {
2683
+ name: this.name,
2684
+ code: this.code,
2685
+ message: this.message,
2686
+ context: this.context,
2687
+ stack: this.stack
2688
+ };
2689
+ }
2690
+ }
2691
+ class jr extends M {
2692
+ constructor(e, t) {
2693
+ super(e, "VALIDATION_ERROR", t), this.name = "ValidationError";
2694
+ }
2695
+ }
2696
+ class zr extends M {
2697
+ constructor(e, t) {
2698
+ super(e, "SERVICE_ERROR", t), this.name = "ServiceError";
2699
+ }
2700
+ }
2701
+ class ht extends M {
2702
+ constructor(e, t) {
2703
+ super(`${e} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
2704
+ serviceName: e,
2705
+ ...t
2706
+ }), this.name = "InjectionError";
2707
+ }
2708
+ }
2709
+ class Fr extends M {
2710
+ constructor(e, t, n) {
2711
+ super(`Failed to register '${e}': ${t}`, "REGISTRATION_ERROR", {
2712
+ componentName: e,
2713
+ ...n
2714
+ }), this.name = "RegistrationError";
2715
+ }
2716
+ }
2717
+ class Gr extends M {
2718
+ constructor(e, t, n) {
2719
+ super(e, "BLADE_ERROR", {
2720
+ bladeId: t,
2721
+ ...n
2722
+ }), this.name = "BladeError";
2723
+ }
2724
+ }
2725
+ class Dr extends M {
2726
+ constructor(e, t, n) {
2727
+ super(`Failed to load module '${e}': ${t}`, "MODULE_LOAD_ERROR", {
2728
+ moduleId: e,
2729
+ ...n
2730
+ }), this.name = "ModuleLoadError";
2731
+ }
2732
+ }
2733
+ function dt(s) {
2734
+ return s instanceof M;
2735
+ }
2736
+ function Lr(s, e = "UNKNOWN_ERROR") {
2737
+ return dt(s) ? s : s instanceof Error ? new M(s.message, e, {
2738
+ originalError: s.name,
2739
+ stack: s.stack
2740
+ }) : new M(String(s), e);
2741
+ }
2742
+ const de = N("use-external-provider"), ft = "externalSignIn", pt = () => {
2743
+ const s = new qe(), e = Le(
2744
+ ft,
2745
+ {},
2746
+ {
2747
+ listenToStorageChanges: !0,
2748
+ deep: !0
2749
+ }
2750
+ );
2751
+ function t() {
2752
+ const { searchParams: o } = new URL(location.href);
2753
+ return o.get("returnUrl") || o.get("ReturnUrl");
2754
+ }
2755
+ async function n(o) {
2756
+ try {
2757
+ const u = window.location.origin, c = window.location.pathname ?? t() ?? "/";
2758
+ if (!o)
2759
+ throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
2760
+ const m = new URL("/externalsignin", u);
2761
+ m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(m);
2762
+ } catch (u) {
2763
+ throw de.error("External sign-in failed:", u), u;
2764
+ }
2765
+ }
2766
+ async function r(o) {
2767
+ try {
2768
+ const u = window.location.origin, c = window.location.pathname ?? "/", m = new URL("/externalsignin/signout", u);
2769
+ m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(m);
2770
+ } catch (u) {
2771
+ throw de.error("External sign-out failed:", u), u;
2772
+ }
2773
+ }
2774
+ async function a() {
2775
+ let o;
2776
+ try {
2777
+ o = await s.getExternalLoginProviders();
2778
+ } catch (u) {
2779
+ de.error("Failed to get external login providers:", u);
2780
+ }
2781
+ return o;
2782
+ }
2783
+ return {
2784
+ storage: e,
2785
+ signIn: n,
2786
+ signOut: r,
2787
+ getProviders: a
2788
+ };
2789
+ }, ve = "vc_auth_data", T = N("use-user");
2790
+ function mt() {
2791
+ try {
2792
+ const s = localStorage.getItem(ve);
2793
+ if (s)
2794
+ return JSON.parse(s);
2795
+ } catch (s) {
2796
+ T.error("Failed to read auth data from storage:", s);
2797
+ }
2798
+ return null;
2799
+ }
2800
+ function _e(s) {
2801
+ try {
2802
+ T.debug("storeAuthData - Saving:", s), localStorage.setItem(ve, JSON.stringify(s)), T.debug("storeAuthData - Saved successfully");
2803
+ } catch (e) {
2804
+ T.error("Failed to store auth data:", e);
2805
+ }
2806
+ }
2807
+ function vt() {
2808
+ try {
2809
+ localStorage.removeItem(ve);
2810
+ } catch (s) {
2811
+ T.error("Failed to clear auth data:", s);
2812
+ }
2813
+ }
2814
+ async function Ce(s) {
2815
+ try {
2816
+ const e = new URLSearchParams(s).toString(), t = await fetch("/connect/token", {
2817
+ method: "POST",
2818
+ headers: {
2819
+ "Content-Type": "application/x-www-form-urlencoded"
2820
+ },
2821
+ body: e
2822
+ });
2823
+ if (!t.ok) {
2824
+ const c = await t.text();
2825
+ return T.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
2826
+ }
2827
+ const n = await t.json();
2828
+ T.debug("fetchToken - Response:", n);
2829
+ const r = n.access_token, a = n.refresh_token, o = n.expires_in;
2830
+ if (n.error || !r)
2831
+ return T.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
2832
+ const u = o ? Date.now() + o * 1e3 : null;
2833
+ return {
2834
+ token: r,
2835
+ access_token: r,
2836
+ refresh_token: a ?? null,
2837
+ expires_at: u
2838
+ };
2839
+ } catch (e) {
2840
+ return T.error("fetchToken - Exception:", e), null;
2841
+ }
2842
+ }
2843
+ function gt() {
2844
+ const s = D(!1), e = D(), t = D(null), { storage: n, signOut: r } = pt(), a = new He(), o = h(() => e.value?.userName != null);
2845
+ async function u(C, E) {
2846
+ let A = !1;
2847
+ try {
2848
+ s.value = !0, A = await a.validatePasswordResetToken(C, {
2849
+ token: E
2850
+ });
2851
+ } catch {
2852
+ } finally {
2853
+ s.value = !1;
2854
+ }
2855
+ return A;
2856
+ }
2857
+ async function c(C) {
2858
+ return a.validatePassword(C);
2859
+ }
2860
+ async function m(C, E, A) {
2861
+ return a.resetPasswordByToken(C, {
2862
+ newPassword: E,
2863
+ token: A
2864
+ });
2865
+ }
2866
+ async function S(C, E) {
2867
+ T.debug("signIn - Entry point");
2868
+ try {
2869
+ s.value = !0;
2870
+ const A = await a.login({ userName: C, password: E });
2871
+ if (T.debug("signIn - Cookie login completed:", A), !A.succeeded)
2872
+ return A;
2873
+ T.debug("signIn - Requesting token...");
2874
+ const P = await Ce({
2875
+ grant_type: "password",
2876
+ username: C,
2877
+ password: E,
2878
+ scope: "offline_access"
2879
+ });
2880
+ P && (t.value = P, _e(t.value), T.debug("signIn - Token saved:", t.value));
2881
+ const L = await a.getCurrentUser();
2882
+ if (L)
2883
+ return e.value = L, A;
2884
+ throw { succeeded: !1 };
2885
+ } catch (A) {
2886
+ T.error("signIn failed:", A);
2887
+ let P = A.message;
2888
+ if (A.response)
2889
+ try {
2890
+ const L = JSON.parse(A.response);
2891
+ P = L.errorDescription || L.errors?.[0]?.description || L.error || P;
2892
+ } catch {
2893
+ }
2894
+ return { succeeded: !1, error: P, status: A.status };
2895
+ } finally {
2896
+ s.value = !1;
2897
+ }
2898
+ }
2899
+ async function p() {
2900
+ T.debug("signOut - Entry point"), e.value = void 0, vt(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
2901
+ }
2902
+ let d = null;
2903
+ async function v() {
2904
+ return d || (d = (async () => {
2905
+ T.debug("loadUser - Entry point");
2906
+ try {
2907
+ s.value = !0, performance.mark("vc:auth-start");
2908
+ const [C] = await Promise.all([a.getCurrentUser(), g()]);
2909
+ e.value = C, performance.mark("vc:auth-done"), T.debug("User details loaded:", e.value);
2910
+ } catch (C) {
2911
+ T.error("loadUser failed:", C);
2912
+ } finally {
2913
+ s.value = !1, d = null;
2914
+ }
2915
+ return { ...e.value };
2916
+ })(), d);
2917
+ }
2918
+ async function y(C) {
2919
+ try {
2920
+ return s.value = !0, await a.requestPasswordReset(C), { succeeded: !0 };
2921
+ } catch (E) {
2922
+ return { succeeded: !1, error: E };
2923
+ } finally {
2924
+ s.value = !1;
2925
+ }
2926
+ }
2927
+ async function I(C, E) {
2928
+ let A;
2929
+ try {
2930
+ s.value = !0;
2931
+ const P = {
2932
+ oldPassword: C,
2933
+ newPassword: E
2934
+ };
2935
+ A = await a.changeCurrentUserPassword(P);
2936
+ } catch (P) {
2937
+ return { succeeded: !1, errors: [P.message] };
2938
+ } finally {
2939
+ s.value = !1;
2940
+ }
2941
+ return A;
2942
+ }
2943
+ async function b() {
2944
+ let C = null;
2945
+ try {
2946
+ C = await a.getLoginTypes();
2947
+ } catch (E) {
2948
+ throw T.error("getLoginType failed:", E), E;
2949
+ }
2950
+ return C;
2951
+ }
2952
+ const R = 60 * 1e3;
2953
+ async function g() {
2954
+ if (T.debug("getAccessToken - Entry point"), t.value || (t.value = mt()), !t.value)
2955
+ return T.debug("getAccessToken - No auth data available"), null;
2956
+ const C = Date.now(), E = t.value.expires_at, A = E ? C >= E - R : !1;
2957
+ if (T.debug("getAccessToken - Token status:", {
2958
+ hasToken: !!t.value.access_token,
2959
+ expiresAt: E ? new Date(E).toISOString() : "not set",
2960
+ now: new Date(C).toISOString(),
2961
+ shouldRefresh: A,
2962
+ hasRefreshToken: !!t.value.refresh_token
2963
+ }), A && t.value.refresh_token) {
2964
+ T.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
2965
+ const P = await Ce({
2966
+ grant_type: "refresh_token",
2967
+ refresh_token: t.value.refresh_token,
2968
+ scope: "offline_access"
2969
+ });
2970
+ P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, _e(t.value), T.debug("getAccessToken - Token refreshed successfully, new expiry:", {
2971
+ expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
2972
+ })) : T.warn("getAccessToken - Failed to refresh token, returning existing token");
2973
+ }
2974
+ return t.value?.access_token ?? t.value?.token ?? null;
2975
+ }
2976
+ return {
2977
+ user: h(() => e.value),
2978
+ loading: h(() => s.value),
2979
+ isAdministrator: h(() => e.value?.isAdministrator),
2980
+ isAuthenticated: o,
2981
+ loadUser: v,
2982
+ signIn: S,
2983
+ signOut: p,
2984
+ validateToken: u,
2985
+ validatePassword: c,
2986
+ resetPasswordByToken: m,
2987
+ requestPasswordReset: y,
2988
+ changeUserPassword: I,
2989
+ getLoginType: b,
2990
+ getAccessToken: g
2991
+ };
2992
+ }
2993
+ const xt = Me(gt), bt = () => {
2994
+ const s = xt();
2995
+ return {
2996
+ user: s.user,
2997
+ loading: s.loading,
2998
+ isAuthenticated: s.isAuthenticated,
2999
+ isAdministrator: s.isAdministrator,
3000
+ loadUser: s.loadUser,
3001
+ signOut: s.signOut,
3002
+ getAccessToken: s.getAccessToken
3003
+ };
3004
+ }, Ie = Symbol("BladeStack"), Et = Symbol("BladeMessaging"), _t = Symbol("BladeDescriptor"), Mr = Symbol("BladeMaximized"), Ct = Symbol("BladeData"), St = Symbol("BladeBanners"), Jr = Symbol("BladeBackButton"), Wr = Symbol("NotificationStore"), Kr = Symbol("WidgetService"), qr = Symbol("DashboardService"), Hr = Symbol("MenuService"), Zr = Symbol("SettingsMenuService"), Xr = Symbol("AppBarWidgetService"), Yr = Symbol("AppBarMobileButtonsService"), yt = Symbol("LanguageService"), Ut = Symbol("ToolbarService"), Qr = Symbol("DynamicModules"), Vr = Symbol("ModulesReady"), en = Symbol("ModulesLoadError"), tn = Symbol("AppRootElement"), At = Symbol("EmbeddedMode"), rn = Symbol("ShellIndicators"), ge = Symbol("AiAgentService"), nn = Symbol("IsMobile"), an = Symbol("IsDesktop"), sn = Symbol("IsPhone"), on = Symbol("IsTablet"), ln = Symbol("IsTouch"), un = Symbol("BladeRoutes"), cn = Symbol("InternalRoutes"), hn = Symbol("CloseSettingsMenu"), dn = Symbol("BladeContext"), fn = Symbol("WidgetScope"), pn = Symbol("BladeForm"), mn = Symbol("BladeLoading"), wt = {
3005
+ url: "",
3006
+ title: "Virto OZ",
3007
+ width: 362,
3008
+ expandedWidth: 500,
3009
+ allowedOrigins: ["*"]
3010
+ }, vn = "APP_AI_AGENT_URL", gn = {
3011
+ EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
3012
+ AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
3013
+ AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
3014
+ AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
3015
+ }, xn = {
3016
+ EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
3017
+ AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
3018
+ }, Tt = "ai-agent-toggle", Pt = "lucide-sparkles", Ot = "AI Assistant", ne = N("ai-agent-panel");
3019
+ function It() {
3020
+ const s = D("closed"), e = D(!1), t = h(() => s.value !== "closed"), n = h(() => s.value === "expanded"), r = () => {
3021
+ s.value === "closed" && (s.value = "open", ne.debug("Panel opened"));
3022
+ }, a = () => {
3023
+ s.value = "closed", e.value = !1, ne.debug("Panel closed, reset initialized state");
3024
+ };
3025
+ return {
3026
+ panelState: s,
3027
+ isOpen: t,
3028
+ isExpanded: n,
3029
+ isInitialized: e,
3030
+ open: r,
3031
+ close: a,
3032
+ toggle: () => {
3033
+ s.value === "closed" ? r() : a();
3034
+ },
3035
+ expand: () => {
3036
+ s.value === "open" && (s.value = "expanded", ne.debug("Panel expanded"));
3037
+ },
3038
+ collapse: () => {
3039
+ s.value === "expanded" && (s.value = "open", ne.debug("Panel collapsed"));
3040
+ },
3041
+ resetInitialized: () => {
3042
+ e.value = !1;
3043
+ }
3044
+ };
3045
+ }
3046
+ const fe = N("ai-agent-context");
3047
+ function Se(s) {
3048
+ return s ? {
3049
+ id: s.id,
3050
+ name: s.name,
3051
+ title: s.title || s.name,
3052
+ param: s.param
3053
+ } : { id: "unknown", name: "unknown", title: "Unknown" };
3054
+ }
3055
+ function Rt(s) {
3056
+ const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = D(/* @__PURE__ */ new Map()), o = () => {
3057
+ const y = t();
3058
+ return y ? a.value.get(y.id) ?? {
3059
+ items: [],
3060
+ type: "list",
3061
+ suggestions: void 0
3062
+ } : {
3063
+ items: [],
3064
+ type: "list",
3065
+ suggestions: void 0
3066
+ };
3067
+ }, u = h(() => o().items), c = h(() => o().type), m = h(() => o().suggestions), S = h(() => u.value.length);
3068
+ return {
3069
+ contextItems: u,
3070
+ contextType: c,
3071
+ contextSuggestions: m,
3072
+ totalItemsCount: S,
3073
+ setContextData: (y, I, b, R) => {
3074
+ const g = t()?.id || R;
3075
+ return g ? y.length === 0 && !b ? (a.value.delete(g), fe.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (a.value.set(g, { items: y, type: I, suggestions: b }), fe.debug(`Context set for blade: ${g}, items: ${y.length}, type: ${I}`), { cleared: !1 }) : (fe.warn("Cannot set context data: no blade id available"), { cleared: !1 });
3076
+ },
3077
+ buildInitPayload: async () => {
3078
+ const y = r ? await r() ?? void 0 : void 0;
3079
+ return {
3080
+ userId: e()?.id || "",
3081
+ locale: n(),
3082
+ blade: Se(t()),
3083
+ contextType: c.value,
3084
+ items: re(u.value),
3085
+ suggestions: m.value ? re(m.value) : void 0,
3086
+ accessToken: y
3087
+ };
3088
+ },
3089
+ buildUpdatePayload: async () => {
3090
+ const y = r ? await r() ?? void 0 : void 0;
3091
+ return {
3092
+ blade: Se(t()),
3093
+ contextType: c.value,
3094
+ items: re(u.value),
3095
+ suggestions: m.value ? re(m.value) : void 0,
3096
+ locale: n(),
3097
+ accessToken: y
3098
+ };
3099
+ }
3100
+ };
3101
+ }
3102
+ const F = N("ai-agent-transport");
3103
+ function Bt(s) {
3104
+ try {
3105
+ const e = atob(s.content), t = new Array(e.length);
3106
+ for (let o = 0; o < e.length; o++)
3107
+ t[o] = e.charCodeAt(o);
3108
+ const n = new Blob([new Uint8Array(t)], { type: s.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
3109
+ a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), F.debug(`File downloaded: ${s.filename}`);
3110
+ } catch (e) {
3111
+ F.error("Failed to download file:", e);
3112
+ }
3113
+ }
3114
+ function $t(s) {
3115
+ const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = ze(null), o = D(!1), u = D(!1), c = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set();
3116
+ function p(v, y) {
3117
+ switch (v) {
3118
+ case "PREVIEW_CHANGES": {
3119
+ const b = y;
3120
+ m.size === 0 && F.warn("No preview changes handlers registered!"), m.forEach((R) => {
3121
+ try {
3122
+ R(b);
3123
+ } catch (g) {
3124
+ F.error("Error in preview handler:", g);
3125
+ }
3126
+ });
3127
+ break;
3128
+ }
3129
+ case "NAVIGATE_TO_APP": {
3130
+ const b = y;
3131
+ n && b?.bladeName && (n(b.bladeName, b.param, b.options), F.debug(`Navigation requested to: ${b.bladeName}`));
3132
+ break;
3133
+ }
3134
+ case "RELOAD_BLADE":
3135
+ r && (r(), F.debug("Blade reload requested"));
3136
+ break;
3137
+ case "DOWNLOAD_FILE": {
3138
+ const b = y;
3139
+ b && Bt(b);
3140
+ break;
3141
+ }
3142
+ case "APPLY_CHANGES": {
3143
+ const b = y;
3144
+ F.warn("APPLY_CHANGES received but not implemented:", b?.changes);
3145
+ break;
3146
+ }
3147
+ case "CHAT_ERROR": {
3148
+ const b = y;
3149
+ F.error(`Chatbot error [${b?.code}]: ${b?.message}`);
3150
+ break;
3151
+ }
3152
+ }
3153
+ const I = {
3154
+ type: v,
3155
+ payload: y,
3156
+ timestamp: Date.now()
3157
+ };
3158
+ c.forEach((b) => {
3159
+ try {
3160
+ b(I);
3161
+ } catch (R) {
3162
+ F.error("Handler error:", R);
3163
+ }
3164
+ });
3165
+ }
3166
+ function d(v) {
3167
+ const I = e().allowedOrigins || ["*"];
3168
+ if (!I.includes("*") && !I.includes(v.origin))
3169
+ return;
3170
+ const b = v.data;
3171
+ if (!(!b?.type || typeof b.type != "string"))
3172
+ switch (F.debug(`Message received: ${b.type}`), b.type) {
3173
+ // Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
3174
+ case "AI_CHAT_MESSAGE": {
3175
+ if (t) {
3176
+ const R = b.payload;
3177
+ R?.type && p(R.type, R.payload);
3178
+ }
3179
+ return;
3180
+ }
3181
+ // Normal: chatbot signals it's ready
3182
+ case "CHAT_READY":
3183
+ S.forEach((R) => {
3184
+ try {
3185
+ R();
3186
+ } catch (g) {
3187
+ F.error("ChatReady handler error:", g);
3188
+ }
3189
+ });
3190
+ break;
3191
+ // Normal: direct chat protocol messages
3192
+ default:
3193
+ p(b.type, b.payload);
3194
+ break;
3195
+ }
3196
+ }
3197
+ return {
3198
+ iframeRef: a,
3199
+ pendingInitContext: o,
3200
+ isListenerRegistered: u,
3201
+ setIframeRef(v) {
3202
+ a.value = v, F.debug("Iframe ref set:", v ? "available" : "null");
3203
+ },
3204
+ sendToIframe(v) {
3205
+ if (!a.value?.contentWindow) {
3206
+ F.warn("Cannot send message: iframe not available");
3207
+ return;
3208
+ }
3209
+ const I = e().allowedOrigins?.[0] || "*";
3210
+ a.value.contentWindow.postMessage(v, I), F.debug(`Sent to iframe: ${v.type}`);
3211
+ },
3212
+ sendToParent(v) {
3213
+ if (!window.parent || window.parent === window) {
3214
+ F.warn("Cannot send to parent: not in iframe");
3215
+ return;
3216
+ }
3217
+ window.parent.postMessage(v, "*"), F.debug(`Sent to parent: ${v.type}`);
3218
+ },
3219
+ startListening() {
3220
+ u.value || (window.addEventListener("message", d), u.value = !0);
3221
+ },
3222
+ stopListening() {
3223
+ u.value && (window.removeEventListener("message", d), u.value = !1);
3224
+ },
3225
+ onChatReady(v) {
3226
+ return S.add(v), () => {
3227
+ S.delete(v);
3228
+ };
3229
+ },
3230
+ onPreviewChanges(v) {
3231
+ return m.add(v), () => {
3232
+ m.delete(v);
3233
+ };
3234
+ },
3235
+ onMessage(v) {
3236
+ return c.add(v), () => {
3237
+ c.delete(v);
3238
+ };
3239
+ }
3240
+ };
3241
+ }
3242
+ const ae = N("ai-agent-service");
3243
+ function kt(s) {
3244
+ const {
3245
+ userGetter: e,
3246
+ bladeGetter: t,
3247
+ localeGetter: n,
3248
+ tokenGetter: r,
3249
+ navigateToBlade: a,
3250
+ reloadBlade: o,
3251
+ initialConfig: u,
3252
+ isEmbedded: c = !1
3253
+ } = s, m = D({ ...wt, ...u }), S = It(), p = Rt({
3254
+ userGetter: e,
3255
+ bladeGetter: t,
3256
+ localeGetter: n,
3257
+ tokenGetter: r
3258
+ }), d = $t({
3259
+ getConfig: () => m.value,
3260
+ isEmbedded: c,
3261
+ navigateToBlade: a,
3262
+ reloadBlade: o
3263
+ }), v = h(() => ({
3264
+ user: e(),
3265
+ currentBlade: t(),
3266
+ items: p.contextItems.value
3267
+ })), y = async () => {
3268
+ if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
3269
+ d.pendingInitContext.value = !1, S.isInitialized.value = !0;
3270
+ const E = await p.buildInitPayload();
3271
+ d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ae.debug("Flushed pending INIT_CONTEXT");
3272
+ }
3273
+ };
3274
+ d.onChatReady(() => {
3275
+ d.iframeRef.value?.contentWindow ? (S.isInitialized.value = !0, p.buildInitPayload().then((E) => {
3276
+ d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ae.info("Chatbot ready, sent INIT_CONTEXT");
3277
+ })) : (d.pendingInitContext.value = !0, ae.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
3278
+ }), X(d.iframeRef, () => y()), X(
3279
+ () => ({ currentBlade: v.value.currentBlade, items: v.value.items }),
3280
+ async () => {
3281
+ if (c) {
3282
+ const E = await p.buildInitPayload();
3283
+ d.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: E });
3284
+ return;
3285
+ }
3286
+ if (S.isOpen.value && S.isInitialized.value && d.iframeRef.value?.contentWindow) {
3287
+ const E = await p.buildUpdatePayload();
3288
+ d.sendToIframe({ type: "UPDATE_CONTEXT", payload: E });
3289
+ }
3290
+ },
3291
+ { deep: !0 }
3292
+ );
3293
+ const I = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.open(), b = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.close(), R = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.toggle(), g = (E) => {
3294
+ d.setIframeRef(E), y();
3295
+ }, C = (E, A, P, L) => {
3296
+ const { cleared: Q } = p.setContextData(E, A, P, L);
3297
+ c && Q && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
3298
+ };
3299
+ return d.startListening(), c && (d.sendToParent({
3300
+ type: "EMBEDDED_APP_READY",
3301
+ payload: { supportedFeatures: ["ai-agent"] }
3302
+ }), ae.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
3303
+ // State
3304
+ panelState: S.panelState,
3305
+ config: m,
3306
+ context: v,
3307
+ isOpen: h(() => !c && S.isOpen.value),
3308
+ isExpanded: S.isExpanded,
3309
+ totalItemsCount: p.totalItemsCount,
3310
+ // Panel control
3311
+ openPanel: I,
3312
+ closePanel: b,
3313
+ togglePanel: R,
3314
+ expandPanel: () => S.expand(),
3315
+ collapsePanel: () => S.collapse(),
3316
+ // Configuration
3317
+ setConfig: (E) => {
3318
+ m.value = { ...m.value, ...E };
3319
+ },
3320
+ // Communication
3321
+ sendMessage: (E, A) => {
3322
+ d.sendToIframe({ type: E, payload: A });
3323
+ },
3324
+ onMessage: d.onMessage,
3325
+ // Internal API
3326
+ iframeRef: d.iframeRef,
3327
+ _setIframeRef: g,
3328
+ _startListening: d.startListening,
3329
+ _stopListening: d.stopListening,
3330
+ _setContextData: C,
3331
+ _onPreviewChanges: d.onPreviewChanges
3332
+ };
3333
+ }
3334
+ let Re, Be, $e, Nt;
3335
+ function bn(s) {
3336
+ Re = s;
3337
+ }
3338
+ function En(s) {
3339
+ Be = s;
3340
+ }
3341
+ function _n(s) {
3342
+ $e = s;
3343
+ }
3344
+ function Cn(s) {
3345
+ Nt = s;
3346
+ }
3347
+ function ye(s, e) {
3348
+ if (e.length === 0)
3349
+ return { path: s ? `/${s}` : "/", query: {} };
3350
+ const t = e[0], n = Ue(t.url);
3351
+ let r;
3352
+ for (let u = e.length - 1; u >= 1; u--)
3353
+ if (e[u].visible) {
3354
+ r = e[u];
3355
+ break;
3356
+ }
3357
+ let a = s ? `/${s}` : "";
3358
+ if (n && (a += `/${n}`), r) {
3359
+ const u = Ue(r.url);
3360
+ u && (a += `/${u}`), r.param && (a += `/${r.param}`);
3361
+ }
3362
+ const o = {};
3363
+ for (const u of e)
3364
+ u.visible && u.query && Object.assign(o, u.query);
3365
+ return { path: a || "/", query: o };
3366
+ }
3367
+ function Sn(s, e) {
3368
+ let t = s.split("/").filter(Boolean);
3369
+ return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
3370
+ workspaceUrl: t[0],
3371
+ bladeUrl: t[1],
3372
+ param: t[2]
3373
+ };
3374
+ }
3375
+ function Ue(s) {
3376
+ if (s)
3377
+ return s.replace(/^\/+|\/+$/g, "") || void 0;
3378
+ }
3379
+ function Ae(s) {
3380
+ const e = s.currentRoute.value.params;
3381
+ return Object.values(e).find((t) => typeof t == "string" && t) || "";
3382
+ }
3383
+ function jt(s, e) {
3384
+ function t() {
3385
+ const { path: r, query: a } = ye(Ae(s), e.blades.value);
3386
+ s.push({ path: r, query: a });
3387
+ }
3388
+ function n() {
3389
+ const { path: r, query: a } = ye(Ae(s), e.blades.value);
3390
+ s.replace({ path: r, query: a });
3391
+ }
3392
+ return { syncUrlPush: t, syncUrlReplace: n };
3393
+ }
3394
+ const zt = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
3395
+ function B(s) {
3396
+ throw new Error(`[vc-shell] ${s} requires blade context.
3397
+ ${zt}`);
3398
+ }
3399
+ function Ft() {
3400
+ const s = (te() ? W(Ie, void 0) : void 0) ?? Be, e = (te() ? W(Et, void 0) : void 0) ?? $e;
3401
+ if (!s || !e)
3402
+ throw new Error(
3403
+ "[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
3404
+ );
3405
+ const t = s, n = e, r = te() ? W(_t, void 0) : void 0, a = te() ? W(St, void 0) : void 0;
3406
+ let o;
3407
+ function u() {
3408
+ if (o) return o;
3409
+ const _ = Re?.router;
3410
+ return _ && (o = jt(_, t)), o;
3411
+ }
3412
+ const c = h(() => (r || B("id"), r.value.id)), m = h(() => (r || B("param"), r.value.param)), S = h(() => (r || B("options"), r.value.options)), p = h(() => (r || B("query"), r.value.query)), d = h(() => (r || B("closable"), r.value.parentId !== void 0)), v = h(() => (r || B("expanded"), t.activeBlade.value?.id === r.value.id)), y = h(() => (r || B("name"), r.value.name));
3413
+ let I = !1;
3414
+ function b(_) {
3415
+ if (I) {
3416
+ console.warn(
3417
+ "[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
3418
+ );
3419
+ return;
3420
+ }
3421
+ I = !0;
3422
+ const z = Fe(_) ? _ : D(_);
3423
+ we(Ct, z);
3424
+ }
3425
+ async function R(_) {
3426
+ const { isWorkspace: z, ...ce } = _;
3427
+ if (z)
3428
+ await t.openWorkspace(ce);
3429
+ else {
3430
+ const be = r?.value.id;
3431
+ be ? await t.openBlade({ ...ce, parentId: be }) : await t.openBlade(ce);
3432
+ }
3433
+ t.activeBlade.value?.url && u()?.syncUrlPush();
3434
+ }
3435
+ async function g() {
3436
+ r || B("closeSelf()");
3437
+ const _ = await t.closeBlade(r.value.id);
3438
+ return _ || u()?.syncUrlReplace(), _;
3439
+ }
3440
+ async function C() {
3441
+ r || B("closeChildren()"), await t.closeChildren(r.value.id), u()?.syncUrlReplace();
3442
+ }
3443
+ async function E(_) {
3444
+ r || B("replaceWith()"), await t.replaceCurrentBlade({
3445
+ ..._,
3446
+ parentId: r.value.parentId
3447
+ }), t.activeBlade.value?.url && u()?.syncUrlReplace();
3448
+ }
3449
+ async function A(_) {
3450
+ r || B("coverWith()"), await t.coverCurrentBlade({
3451
+ ..._,
3452
+ parentId: r.value.parentId
3453
+ }), t.activeBlade.value?.url && u()?.syncUrlPush();
3454
+ }
3455
+ async function P(_, z) {
3456
+ return r || B("callParent()"), n.callParent(r.value.id, _, z);
3457
+ }
3458
+ function L(_) {
3459
+ r || B("exposeToChildren()"), n.exposeToChildren(r.value.id, _);
3460
+ }
3461
+ function Q(_) {
3462
+ r || B("onBeforeClose()"), t.registerBeforeClose(r.value.id, _);
3463
+ }
3464
+ function l(_) {
3465
+ r || B("setError()"), t.setBladeError(r.value.id, _);
3466
+ }
3467
+ function f() {
3468
+ r || B("clearError()"), t.clearBladeError(r.value.id);
3469
+ }
3470
+ let x = 0;
3471
+ function U(_) {
3472
+ a || B("addBanner()");
3473
+ const z = `banner-${r.value.id}-${++x}`;
3474
+ return a.value.push({
3475
+ ..._,
3476
+ id: z,
3477
+ dismissible: _.dismissible ?? !1
3478
+ }), z;
3479
+ }
3480
+ function O(_) {
3481
+ a || B("removeBanner()"), a.value = a.value.filter((z) => z.id !== _);
3482
+ }
3483
+ function j() {
3484
+ a || B("clearBanners()"), a.value = a.value.filter((_) => _._system);
3485
+ }
3486
+ let q = !1, xe = !1;
3487
+ function Ne(_) {
3488
+ if (r || B("onActivated()"), q) {
3489
+ console.warn("[useBlade] onActivated() already registered in this blade.");
3490
+ return;
3491
+ }
3492
+ q = !0, X(v, (z) => {
3493
+ z && _();
3494
+ });
3495
+ }
3496
+ function je(_) {
3497
+ if (r || B("onDeactivated()"), xe) {
3498
+ console.warn("[useBlade] onDeactivated() already registered in this blade.");
3499
+ return;
3500
+ }
3501
+ xe = !0, X(v, (z) => {
3502
+ z || _();
3503
+ });
3504
+ }
3505
+ return {
3506
+ id: c,
3507
+ param: m,
3508
+ options: S,
3509
+ query: p,
3510
+ closable: d,
3511
+ expanded: v,
3512
+ name: y,
3513
+ provideBladeData: b,
3514
+ openBlade: R,
3515
+ closeSelf: g,
3516
+ closeChildren: C,
3517
+ replaceWith: E,
3518
+ coverWith: A,
3519
+ callParent: P,
3520
+ exposeToChildren: L,
3521
+ onBeforeClose: Q,
3522
+ onActivated: Ne,
3523
+ onDeactivated: je,
3524
+ setError: l,
3525
+ clearError: f,
3526
+ addBanner: U,
3527
+ removeBanner: O,
3528
+ clearBanners: j
3529
+ };
3530
+ }
3531
+ let Gt = 0;
3532
+ function se() {
3533
+ return `blade_${++Gt}_${Math.random().toString(36).slice(2, 8)}`;
3534
+ }
3535
+ function yn(s, e) {
3536
+ const t = D([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = h(() => t.value[0]), u = h(() => t.value), c = h(() => {
3537
+ for (let l = t.value.length - 1; l >= 0; l--)
3538
+ if (t.value[l].visible) return t.value[l];
3539
+ });
3540
+ function m(l) {
3541
+ n.delete(l), r.delete(l), a.delete(l);
3542
+ }
3543
+ function S(l) {
3544
+ const f = s.getBlade(l);
3545
+ if (f)
3546
+ return f.route;
3547
+ }
3548
+ async function p(l) {
3549
+ for (let f = l.length - 1; f >= 0; f--) {
3550
+ const x = n.get(l[f].id);
3551
+ if (x && await x())
3552
+ return !0;
3553
+ }
3554
+ return !1;
3555
+ }
3556
+ function d(l) {
3557
+ for (const f of l)
3558
+ a.get(f.id)?.(), m(f.id);
3559
+ }
3560
+ async function v(l) {
3561
+ if (o.value?.name === l.name) return;
3562
+ const x = s.getBlade(l.name);
3563
+ if (!x)
3564
+ throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
3565
+ if (e && x.permissions && !e(x.permissions)) {
3566
+ console.warn(`[BladeStack] Access denied to workspace '${l.name}'`);
3567
+ return;
3568
+ }
3569
+ d([...t.value]);
3570
+ const U = {
3571
+ id: se(),
3572
+ name: l.name,
3573
+ url: S(l.name),
3574
+ // workspace blades don't have param when opened first
3575
+ query: l.query,
3576
+ options: l.options,
3577
+ visible: !0
3578
+ };
3579
+ t.value = [U], l.onOpen && r.set(U.id, l.onOpen), l.onClose && a.set(U.id, l.onClose), l.onOpen?.();
3580
+ }
3581
+ async function y(l) {
3582
+ if (!s.getBlade(l.name))
3583
+ throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
3584
+ const f = l.parentId ?? c.value?.id ?? o.value?.id;
3585
+ if (!f)
3586
+ throw new Error("[BladeStack] Cannot open blade: no parent blade found");
3587
+ const x = t.value.findIndex((j) => j.id === f);
3588
+ if (x === -1)
3589
+ throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
3590
+ const U = t.value.slice(x + 1);
3591
+ if (U.length > 0 && await p(U))
3592
+ return;
3593
+ d(U);
3594
+ const O = {
3595
+ id: se(),
3596
+ name: l.name,
3597
+ url: S(l.name),
3598
+ param: l.param,
3599
+ query: l.query,
3600
+ options: l.options,
3601
+ parentId: f,
3602
+ visible: !0
3603
+ };
3604
+ t.value = [...t.value.slice(0, x + 1), O], l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
3605
+ }
3606
+ async function I(l) {
3607
+ const f = t.value.findIndex((j) => j.id === l);
3608
+ if (f === -1 || f === 0) return !1;
3609
+ const x = t.value.slice(f);
3610
+ if (await p(x)) return !0;
3611
+ d(x), t.value = t.value.slice(0, f);
3612
+ const O = t.value.length - 1;
3613
+ if (O > 0 && !t.value[O].visible) {
3614
+ const j = [...t.value];
3615
+ j[O] = { ...j[O], visible: !0 }, t.value = j;
3616
+ }
3617
+ return !1;
3618
+ }
3619
+ async function b(l) {
3620
+ const f = c.value;
3621
+ if (!f)
3622
+ throw new Error("[BladeStack] No active blade to replace");
3623
+ if (!s.getBlade(l.name))
3624
+ throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
3625
+ const x = t.value.findIndex((q) => q.id === f.id);
3626
+ if (x === -1)
3627
+ throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
3628
+ const U = t.value.slice(x + 1);
3629
+ if (U.length > 0) {
3630
+ if (await p(U)) return;
3631
+ d(U);
3632
+ }
3633
+ const O = {
3634
+ id: se(),
3635
+ name: l.name,
3636
+ url: S(l.name),
3637
+ param: l.param,
3638
+ query: l.query,
3639
+ options: l.options,
3640
+ parentId: f.parentId,
3641
+ visible: !0
3642
+ };
3643
+ d([f]);
3644
+ const j = [...t.value.slice(0, x), O, ...t.value.slice(x + 1)];
3645
+ t.value = j, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
3646
+ }
3647
+ async function R(l) {
3648
+ const f = c.value;
3649
+ if (!f)
3650
+ throw new Error("[BladeStack] No active blade to cover");
3651
+ if (!s.getBlade(l.name))
3652
+ throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
3653
+ const x = t.value.findIndex((q) => q.id === f.id);
3654
+ if (x === -1)
3655
+ throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
3656
+ const U = t.value.slice(x + 1);
3657
+ if (U.length > 0) {
3658
+ if (await p(U)) return;
3659
+ d(U);
3660
+ }
3661
+ const O = {
3662
+ id: se(),
3663
+ name: l.name,
3664
+ url: S(l.name),
3665
+ param: l.param,
3666
+ query: l.query,
3667
+ options: l.options,
3668
+ parentId: f.id,
3669
+ visible: !0
3670
+ }, j = t.value.slice(0, x);
3671
+ j.push({ ...f, visible: !1 }), j.push(O), t.value = j, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
3672
+ }
3673
+ async function g(l) {
3674
+ const f = t.value.findIndex((O) => O.id === l);
3675
+ if (f === -1) return;
3676
+ const x = t.value.slice(f + 1);
3677
+ x.length === 0 || await p(x) || (d(x), t.value = t.value.slice(0, f + 1));
3678
+ }
3679
+ function C(l, f) {
3680
+ n.set(l, f);
3681
+ }
3682
+ function E(l) {
3683
+ n.delete(l);
3684
+ }
3685
+ function A(l, f) {
3686
+ const x = t.value.findIndex((O) => O.id === l);
3687
+ if (x === -1) return;
3688
+ const U = [...t.value];
3689
+ U[x] = { ...U[x], error: f }, t.value = U;
3690
+ }
3691
+ function P(l) {
3692
+ const f = t.value.findIndex((U) => U.id === l);
3693
+ if (f === -1) return;
3694
+ const x = [...t.value];
3695
+ x[f] = { ...x[f], error: void 0 }, t.value = x;
3696
+ }
3697
+ function L(l, f) {
3698
+ const x = t.value.findIndex((O) => O.id === l);
3699
+ if (x === -1 || t.value[x].title === f) return;
3700
+ const U = [...t.value];
3701
+ U[x] = { ...U[x], title: f }, t.value = U;
3702
+ }
3703
+ function Q(l) {
3704
+ for (const f of t.value)
3705
+ m(f.id);
3706
+ t.value = l;
3707
+ }
3708
+ return {
3709
+ workspace: o,
3710
+ blades: u,
3711
+ activeBlade: c,
3712
+ openWorkspace: v,
3713
+ openBlade: y,
3714
+ closeBlade: I,
3715
+ closeChildren: g,
3716
+ replaceCurrentBlade: b,
3717
+ coverCurrentBlade: R,
3718
+ registerBeforeClose: C,
3719
+ unregisterBeforeClose: E,
3720
+ setBladeError: A,
3721
+ clearBladeError: P,
3722
+ setBladeTitle: L,
3723
+ _restoreStack: Q
3724
+ };
3725
+ }
3726
+ function Dt() {
3727
+ const s = W(Ie);
3728
+ if (!s)
3729
+ throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
3730
+ return s;
3731
+ }
3732
+ const H = N("use-ai-agent");
3733
+ function Un(s) {
3734
+ const e = W(yt), { user: t, getAccessToken: n } = bt(), { openBlade: r } = Ft(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = Dt(), c = s?.isEmbedded, m = kt({
3735
+ userGetter: () => {
3736
+ if (t.value)
3737
+ return {
3738
+ id: t.value.id,
3739
+ userName: t.value.userName,
3740
+ isAdministrator: t.value.isAdministrator,
3741
+ permissions: t.value.permissions
3742
+ };
3743
+ },
3744
+ bladeGetter: () => {
3745
+ const p = o.value ?? a.value[a.value.length - 1];
3746
+ return p ? {
3747
+ id: p.id,
3748
+ name: p.name,
3749
+ title: p.title,
3750
+ param: p.param,
3751
+ options: p.options
3752
+ } : null;
3753
+ },
3754
+ localeGetter: () => e?.currentLocale.value ?? "en",
3755
+ tokenGetter: n,
3756
+ navigateToBlade: (p, d, v) => {
3757
+ r({ name: p, param: d, options: v }).then(() => {
3758
+ H.debug(`Navigated to blade: ${p}`);
3759
+ }).catch((y) => {
3760
+ H.warn(`Blade not found or cannot be opened: ${p}`, y);
3761
+ });
3762
+ },
3763
+ reloadBlade: () => {
3764
+ const p = o.value;
3765
+ p && u({
3766
+ name: p.name,
3767
+ param: p.param,
3768
+ query: p.query,
3769
+ options: p.options
3770
+ }).then(() => {
3771
+ H.debug("Current blade reloaded");
3772
+ }).catch((d) => {
3773
+ H.warn("Failed to reload current blade", d);
3774
+ });
3775
+ },
3776
+ initialConfig: s?.config,
3777
+ isEmbedded: c
3778
+ });
3779
+ if (we(ge, m), H.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
3780
+ const p = W(Ut, null);
3781
+ p ? (p.registerToolbarItem(
3782
+ {
3783
+ id: Tt,
3784
+ icon: Pt,
3785
+ title: Ot,
3786
+ clickHandler: () => {
3787
+ m.togglePanel();
3788
+ }
3789
+ },
3790
+ "*"
3791
+ // Wildcard for all blades
3792
+ ), H.debug("Global AI toolbar button registered with wildcard '*'")) : H.warn("Toolbar service not available, AI button not registered");
3793
+ }
3794
+ return m;
3795
+ }
3796
+ function An() {
3797
+ const s = W(ge);
3798
+ if (!s)
3799
+ throw H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new ht("AiAgentService");
3800
+ return {
3801
+ // State
3802
+ panelState: s.panelState,
3803
+ config: s.config,
3804
+ context: s.context,
3805
+ isOpen: s.isOpen,
3806
+ isExpanded: s.isExpanded,
3807
+ totalItemsCount: s.totalItemsCount,
3808
+ // Panel control
3809
+ openPanel: s.openPanel,
3810
+ closePanel: s.closePanel,
3811
+ togglePanel: s.togglePanel,
3812
+ expandPanel: s.expandPanel,
3813
+ collapsePanel: s.collapsePanel,
3814
+ // Configuration
3815
+ setConfig: s.setConfig,
3816
+ // Communication
3817
+ sendMessage: s.sendMessage,
3818
+ onMessage: s.onMessage
3819
+ };
3820
+ }
3821
+ function wn(s) {
3822
+ return {
3823
+ id: "ai-agent-toggle",
3824
+ icon: s?.icon ?? "lucide-sparkles",
3825
+ title: s?.title ?? "AI Assistant",
3826
+ clickHandler: () => {
3827
+ console.warn("[ai-agent] createAiAgentToolbarButton is deprecated. Use useAiAgent().togglePanel instead.");
3828
+ }
3829
+ };
3830
+ }
3831
+ const Lt = ["width", "height"], Mt = ["clip-path"], Jt = {
3832
+ key: 1,
3833
+ 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",
3834
+ fill: "url(#virto-oz-gradient-animated)"
3835
+ }, Wt = ["id"], Kt = {
3836
+ key: 1,
3837
+ id: "virto-oz-gradient-animated",
3838
+ gradientUnits: "userSpaceOnUse",
3839
+ x1: "0",
3840
+ y1: "0",
3841
+ x2: "99",
3842
+ y2: "108"
3843
+ }, ke = /* @__PURE__ */ J({
3844
+ __name: "VcVirtoOzLogo",
3845
+ props: {
3846
+ width: { default: 22 },
3847
+ height: { default: 24 },
3848
+ animated: { type: Boolean, default: !1 }
3849
+ },
3850
+ setup(s) {
3851
+ const e = h(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
3852
+ return (t, n) => (w(), k("svg", {
3853
+ width: s.width,
3854
+ height: s.height,
3855
+ viewBox: "0 0 99 108",
3856
+ fill: "none",
3857
+ xmlns: "http://www.w3.org/2000/svg",
3858
+ class: "vc-virto-oz-logo"
3859
+ }, [
3860
+ n[3] || (n[3] = $("path", {
3861
+ 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",
3862
+ fill: "white"
3863
+ }, null, -1)),
3864
+ s.animated ? (w(), k("path", Jt)) : (w(), k("g", {
3865
+ key: 0,
3866
+ "clip-path": `url(#${e.value})`
3867
+ }, [...n[0] || (n[0] = [
3868
+ $("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
3869
+ $("foreignObject", {
3870
+ x: "-334.01",
3871
+ y: "-334.01",
3872
+ width: "668.02",
3873
+ height: "668.02"
3874
+ }, [
3875
+ $("div", {
3876
+ xmlns: "http://www.w3.org/1999/xhtml",
3877
+ style: { background: `conic-gradient(
3878
+ from 90deg,
3879
+ rgba(255, 149, 51, 1) 0deg,
3880
+ rgba(255, 79, 187, 1) 43.2deg,
3881
+ rgba(234, 255, 79, 1) 143.654deg,
3882
+ rgba(28, 145, 252, 1) 252.692deg,
3883
+ rgba(154, 45, 248, 1) 316.8deg,
3884
+ rgba(255, 149, 51, 1) 360deg
3885
+ )`, height: "100%", width: "100%", opacity: "1" }
3886
+ })
3887
+ ])
3888
+ ], -1)
3889
+ ])], 8, Mt)),
3890
+ n[4] || (n[4] = $("path", {
3891
+ 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",
3892
+ fill: "white"
3893
+ }, null, -1)),
3894
+ n[5] || (n[5] = $("ellipse", {
3895
+ cx: "49.12",
3896
+ cy: "54.09",
3897
+ rx: "4.05",
3898
+ ry: "4.05",
3899
+ fill: "#6C6C6C"
3900
+ }, null, -1)),
3901
+ n[6] || (n[6] = $("ellipse", {
3902
+ cx: "60.62",
3903
+ cy: "54.09",
3904
+ rx: "4.05",
3905
+ ry: "4.05",
3906
+ fill: "#6C6C6C"
3907
+ }, null, -1)),
3908
+ n[7] || (n[7] = $("ellipse", {
3909
+ cx: "37.62",
3910
+ cy: "54.09",
3911
+ rx: "4.05",
3912
+ ry: "4.05",
3913
+ fill: "#6C6C6C"
3914
+ }, null, -1)),
3915
+ $("defs", null, [
3916
+ s.animated ? Y("", !0) : (w(), k("clipPath", {
3917
+ key: 0,
3918
+ id: e.value
3919
+ }, [...n[1] || (n[1] = [
3920
+ $("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)
3921
+ ])], 8, Wt)),
3922
+ s.animated ? (w(), k("linearGradient", Kt, [...n[2] || (n[2] = [
3923
+ Ge('<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)
3924
+ ])])) : Y("", !0)
3925
+ ])
3926
+ ], 8, Lt));
3927
+ }
3928
+ }), qt = /* @__PURE__ */ J({
3929
+ __name: "vc-material-icon",
3930
+ props: {
3931
+ icon: {},
3932
+ size: { default: "m" },
3933
+ type: { default: "outlined" },
3934
+ variant: {},
3935
+ customSize: {}
3936
+ },
3937
+ setup(s) {
3938
+ const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3939
+ return ue(() => {
3940
+ }), (r, a) => (w(), k("span", {
3941
+ class: Z([
3942
+ "vc-material-icon",
3943
+ "material-symbols-" + s.type,
3944
+ !t.value && `vc-material-icon--${s.size}`,
3945
+ s.variant ? `vc-material-icon--${s.variant}` : ""
3946
+ ]),
3947
+ style: ee(n.value),
3948
+ "aria-hidden": "true"
3949
+ }, me(s.icon), 7));
3950
+ }
3951
+ }), Ht = /* @__PURE__ */ J({
3952
+ __name: "vc-bootstrap-icon",
3953
+ props: {
3954
+ icon: {},
3955
+ size: { default: "m" },
3956
+ variant: {},
3957
+ customSize: {}
3958
+ },
3959
+ setup(s) {
3960
+ const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
3961
+ ue(() => {
3962
+ });
3963
+ const r = h(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
3964
+ return (a, o) => (w(), k("i", {
3965
+ class: Z([
3966
+ "vc-bootstrap-icon",
3967
+ !t.value && `vc-bootstrap-icon--${s.size}`,
3968
+ r.value,
3969
+ s.variant ? `vc-bootstrap-icon--${s.variant}` : ""
3970
+ ]),
3971
+ style: ee(n.value),
3972
+ "aria-hidden": "true"
3973
+ }, null, 6));
3974
+ }
3975
+ }), Zt = /* @__PURE__ */ J({
3976
+ __name: "vc-lucide-icon",
3977
+ props: {
3978
+ icon: {},
3979
+ size: { default: "m" },
3980
+ variant: {},
3981
+ strokeWidth: { default: 2 },
3982
+ customSize: {}
3983
+ },
3984
+ setup(s) {
3985
+ const e = N("vc-lucide-icon"), t = s, n = h(() => typeof t.customSize == "number" && t.customSize > 0), r = h(() => {
3986
+ if (!t.icon) return "HelpCircleIcon";
3987
+ let u = t.icon;
3988
+ return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
3989
+ }), a = h(() => {
3990
+ const u = r.value, c = Je[u];
3991
+ return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : Te(c);
3992
+ }), o = h(() => n.value && t.customSize ? {
3993
+ width: `${t.customSize}px`,
3994
+ height: `${t.customSize}px`
3995
+ } : {});
3996
+ return (u, c) => a.value ? (w(), V(pe(a.value), {
3997
+ key: 0,
3998
+ "stroke-width": t.strokeWidth,
3999
+ class: Z([
4000
+ "vc-lucide-icon",
4001
+ !n.value && `vc-lucide-icon--${s.size}`,
4002
+ s.variant ? `vc-lucide-icon--${s.variant}` : ""
4003
+ ]),
4004
+ style: ee(o.value),
4005
+ "aria-hidden": "true"
4006
+ }, null, 8, ["stroke-width", "class", "style"])) : (w(), k("span", {
4007
+ key: 1,
4008
+ class: Z(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
4009
+ }, [...c[0] || (c[0] = [
4010
+ $("i", { class: "vc-lucide-icon__fallback" }, null, -1)
4011
+ ])], 2));
4012
+ }
4013
+ }), Xt = /* @__PURE__ */ J({
4014
+ __name: "vc-fontawesome-icon",
4015
+ props: {
4016
+ icon: {},
4017
+ size: { default: "m" },
4018
+ variant: {},
4019
+ customSize: {}
4020
+ },
4021
+ setup(s) {
4022
+ const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
4023
+ ue(() => {
4024
+ });
4025
+ const r = h(() => 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}`);
4026
+ return (a, o) => (w(), k("i", {
4027
+ class: Z([
4028
+ "vc-fa-icon",
4029
+ !t.value && `vc-fa-icon--${s.size}`,
4030
+ r.value,
4031
+ s.variant ? `vc-fa-icon--${s.variant}` : ""
4032
+ ]),
4033
+ style: ee(n.value),
4034
+ "aria-hidden": "true"
4035
+ }, null, 6));
4036
+ }
4037
+ }), Yt = ["xlink:href"], Qt = /* @__PURE__ */ J({
4038
+ inheritAttrs: !1,
4039
+ __name: "vc-svg-icon",
4040
+ props: {
4041
+ icon: {},
4042
+ size: { default: "m" },
4043
+ variant: {},
4044
+ basePath: { default: "/assets/icons" },
4045
+ customSize: {},
4046
+ strokeWidth: {}
4047
+ },
4048
+ setup(s) {
4049
+ const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => {
4050
+ if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
4051
+ return e.icon;
4052
+ const a = e.icon.indexOf("#");
4053
+ if (a > -1) {
4054
+ const o = e.icon.substring(0, a), u = e.icon.substring(a);
4055
+ return `${e.basePath}/${o}${u}`;
4056
+ }
4057
+ return `${e.basePath}/${e.icon}`;
4058
+ }), r = h(() => {
4059
+ const a = {};
4060
+ return e.customSize && (a.width = `${e.customSize}px`, a.height = `${e.customSize}px`), e.strokeWidth && (a.strokeWidth = `${e.strokeWidth}`), a;
4061
+ });
4062
+ return (a, o) => (w(), k("svg", ie({
4063
+ xmlns: "http://www.w3.org/2000/svg",
4064
+ class: ["vc-svg-icon", !t.value && `vc-svg-icon--${s.size}`, s.variant ? `vc-svg-icon--${s.variant}` : ""],
4065
+ style: r.value
4066
+ }, a.$attrs), [
4067
+ n.value ? (w(), k("use", {
4068
+ key: 0,
4069
+ "xlink:href": n.value
4070
+ }, null, 8, Yt)) : Y("", !0)
4071
+ ], 16));
4072
+ }
4073
+ }), Vt = ["aria-hidden", "aria-label", "role"], le = /* @__PURE__ */ J({
4074
+ __name: "vc-icon",
4075
+ props: {
4076
+ icon: { default: "lucide-square" },
4077
+ size: { default: "m" },
4078
+ variant: {},
4079
+ useContainer: { type: Boolean, default: !1 },
4080
+ customSize: {},
4081
+ basePath: { default: "/assets/icons" },
4082
+ ariaLabel: {}
4083
+ },
4084
+ setup(s) {
4085
+ const e = s;
4086
+ ue(() => {
4087
+ });
4088
+ const t = {
4089
+ xs: 12,
4090
+ s: 14,
4091
+ m: 18,
4092
+ l: 20,
4093
+ xl: 22,
4094
+ xxl: 30,
4095
+ xxxl: 64
4096
+ }, n = h(() => 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 = h(() => {
4097
+ if (typeof e.icon != "string")
4098
+ return e.icon;
4099
+ if (n.value === "material" && e.icon.startsWith("material-"))
4100
+ return e.icon.replace(/^material-/, "");
4101
+ if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
4102
+ const g = e.icon.replace(/^lucide-/, "");
4103
+ return g.endsWith("Icon") ? g : `${g}Icon`;
4104
+ }
4105
+ return e.icon;
4106
+ }), a = h(() => n.value === "material"), o = h(() => n.value === "bootstrap"), u = h(() => n.value === "lucide"), c = h(() => n.value === "fontawesome"), m = h(() => {
4107
+ if (typeof e.icon != "string")
4108
+ return !0;
4109
+ if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
4110
+ return !1;
4111
+ if (u.value)
4112
+ try {
4113
+ const g = typeof r.value == "string" ? r.value : String(r.value);
4114
+ return he(g) !== g;
4115
+ } catch {
4116
+ return !1;
4117
+ }
4118
+ try {
4119
+ return he(e.icon) !== e.icon;
4120
+ } catch {
4121
+ return !1;
4122
+ }
4123
+ }), S = h(() => {
4124
+ if (typeof e.icon != "string")
4125
+ return Te(e.icon);
4126
+ if (["fontawesome", "bootstrap", "material"].includes(n.value))
4127
+ return "i";
4128
+ try {
4129
+ const g = typeof r.value == "string" ? r.value : String(r.value), C = he(g);
4130
+ return C !== g ? C : "i";
4131
+ } catch {
4132
+ return "i";
4133
+ }
4134
+ }), p = h(() => a.value ? qt : o.value ? Ht : u.value ? Zt : c.value ? Xt : b.value ? Qt : m.value ? S.value : "i"), d = h(() => e.customSize ? e.customSize : t[e.size]), v = h(() => {
4135
+ const g = {};
4136
+ return m.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
4137
+ }), y = h(() => e.customSize ? {
4138
+ fontSize: `${e.customSize}px`
4139
+ } : {}), I = h(() => a.value ? {
4140
+ icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
4141
+ size: e.size,
4142
+ variant: e.variant,
4143
+ type: "outlined",
4144
+ fill: 0,
4145
+ weight: 300,
4146
+ grade: 0,
4147
+ customSize: e.customSize
4148
+ // Set custom size without scaling
4149
+ } : o.value ? {
4150
+ icon: typeof e.icon == "string" ? e.icon : "",
4151
+ size: e.size,
4152
+ variant: e.variant,
4153
+ customSize: e.customSize
4154
+ // Set custom size without scaling
4155
+ } : u.value ? {
4156
+ icon: typeof r.value == "string" ? r.value : String(r.value),
4157
+ size: e.size,
4158
+ variant: e.variant,
4159
+ strokeWidth: 1.5,
4160
+ customSize: e.customSize
4161
+ // Set custom size without scaling
4162
+ } : c.value ? {
4163
+ icon: typeof e.icon == "string" ? e.icon : "",
4164
+ size: e.size,
4165
+ variant: e.variant,
4166
+ customSize: e.customSize
4167
+ // Set custom size without scaling
4168
+ } : b.value ? {
4169
+ icon: R.value,
4170
+ size: e.size,
4171
+ variant: e.variant,
4172
+ customSize: e.customSize,
4173
+ basePath: e.basePath
4174
+ } : m.value ? {
4175
+ size: e.size,
4176
+ width: d.value,
4177
+ height: d.value,
4178
+ color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
4179
+ } : {}), b = h(() => n.value === "svg"), R = h(() => !b.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
4180
+ return (g, C) => s.useContainer ? (w(), k("div", ie({
4181
+ key: 0,
4182
+ class: ["vc-icon-container", `vc-icon-container--${s.size}`],
4183
+ style: y.value,
4184
+ "aria-hidden": s.ariaLabel ? void 0 : "true",
4185
+ "aria-label": s.ariaLabel || void 0,
4186
+ role: s.ariaLabel ? "img" : void 0
4187
+ }, g.$attrs), [
4188
+ (w(), V(pe(p.value), ie({
4189
+ class: [
4190
+ "vc-icon",
4191
+ `vc-icon--${s.size}`,
4192
+ s.variant ? `vc-icon--${s.variant}` : "",
4193
+ !m.value && !a.value && !u.value && !o.value && !c.value ? s.icon.toLowerCase() : ""
4194
+ ],
4195
+ style: v.value
4196
+ }, I.value), null, 16, ["class", "style"]))
4197
+ ], 16, Vt)) : (w(), V(pe(p.value), ie({
4198
+ key: 1,
4199
+ class: [
4200
+ "vc-icon",
4201
+ `vc-icon--${s.size}`,
4202
+ s.variant ? `vc-icon--${s.variant}` : "",
4203
+ !m.value && !a.value && !u.value && !o.value && !c.value ? s.icon.toLowerCase() : ""
4204
+ ],
4205
+ style: v.value,
4206
+ "aria-hidden": s.ariaLabel ? void 0 : "true",
4207
+ "aria-label": s.ariaLabel || void 0,
4208
+ role: s.ariaLabel ? "img" : void 0
4209
+ }, { ...I.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
4210
+ }
4211
+ }), er = { class: "vc-ai-agent-header" }, tr = { class: "vc-ai-agent-header__icon" }, rr = { class: "vc-ai-agent-header__wrapper" }, nr = { class: "vc-ai-agent-header__content" }, ar = { class: "vc-ai-agent-header__title" }, sr = { class: "vc-ai-agent-header__controls" }, ir = /* @__PURE__ */ J({
4212
+ __name: "VcAiAgentHeader",
4213
+ props: {
4214
+ title: {},
4215
+ isExpanded: { type: Boolean },
4216
+ itemsCount: {}
4217
+ },
4218
+ emits: ["close", "expand", "collapse"],
4219
+ setup(s) {
4220
+ return (e, t) => (w(), k("div", er, [
4221
+ $("div", tr, [
4222
+ K(ke, {
4223
+ width: 22,
4224
+ height: 24,
4225
+ "show-dots": ""
4226
+ })
4227
+ ]),
4228
+ $("div", rr, [
4229
+ $("div", nr, [
4230
+ $("div", ar, me(s.title), 1)
4231
+ ])
4232
+ ]),
4233
+ $("div", sr, [
4234
+ s.isExpanded ? (w(), k("div", {
4235
+ key: 0,
4236
+ class: "vc-ai-agent-header__button",
4237
+ title: "Collapse",
4238
+ onClick: t[0] || (t[0] = (n) => e.$emit("collapse"))
4239
+ }, [
4240
+ K(oe(le), { icon: "lucide-minus" })
4241
+ ])) : (w(), k("div", {
4242
+ key: 1,
4243
+ class: "vc-ai-agent-header__button",
4244
+ title: "Expand",
4245
+ onClick: t[1] || (t[1] = (n) => e.$emit("expand"))
4246
+ }, [
4247
+ K(oe(le), { icon: "lucide-panel-top" })
4248
+ ])),
4249
+ $("div", {
4250
+ class: "vc-ai-agent-header__button",
4251
+ title: "Close",
4252
+ onClick: t[2] || (t[2] = (n) => e.$emit("close"))
4253
+ }, [
4254
+ K(oe(le), { icon: "lucide-x" })
4255
+ ])
4256
+ ])
4257
+ ]));
4258
+ }
4259
+ }), or = { class: "vc-ai-agent-loader" }, lr = { class: "vc-ai-agent-loader__content" }, ur = { class: "vc-ai-agent-loader__logo" }, cr = {
4260
+ key: 0,
4261
+ class: "vc-ai-agent-loader__text"
4262
+ }, hr = /* @__PURE__ */ J({
4263
+ __name: "VcAiAgentLoader",
4264
+ props: {
4265
+ text: {}
4266
+ },
4267
+ setup(s) {
4268
+ return (e, t) => (w(), k("div", or, [
4269
+ $("div", lr, [
4270
+ $("div", ur, [
4271
+ K(ke, {
4272
+ width: 80,
4273
+ height: 87,
4274
+ animated: ""
4275
+ })
4276
+ ]),
4277
+ s.text ? (w(), k("p", cr, me(s.text), 1)) : Y("", !0)
4278
+ ])
4279
+ ]));
4280
+ }
4281
+ }), dr = { class: "vc-ai-agent-iframe" }, fr = ["src"], pr = {
4282
+ key: 1,
4283
+ class: "vc-ai-agent-iframe__placeholder"
4284
+ }, mr = /* @__PURE__ */ J({
4285
+ __name: "VcAiAgentIframe",
4286
+ props: {
4287
+ url: {}
4288
+ },
4289
+ emits: ["iframe-ready"],
4290
+ setup(s, { emit: e }) {
4291
+ const t = N("ai-agent-iframe"), n = s, r = e, a = D(null), o = D(!0);
4292
+ X(
4293
+ a,
4294
+ (c) => {
4295
+ c && r("iframe-ready", c);
4296
+ },
4297
+ { immediate: !0 }
4298
+ );
4299
+ const u = () => {
4300
+ o.value = !1, t.debug("Iframe loaded");
4301
+ };
4302
+ return X(
4303
+ () => n.url,
4304
+ () => {
4305
+ o.value = !0;
4306
+ }
4307
+ ), (c, m) => (w(), k("div", dr, [
4308
+ K(Pe, { name: "fade" }, {
4309
+ default: Oe(() => [
4310
+ o.value && s.url ? (w(), V(hr, {
4311
+ key: 0,
4312
+ text: c.$t("AI_AGENT.LOADING")
4313
+ }, null, 8, ["text"])) : Y("", !0)
4314
+ ]),
4315
+ _: 1
4316
+ }),
4317
+ s.url ? (w(), k("iframe", {
4318
+ key: 0,
4319
+ ref_key: "iframeRef",
4320
+ ref: a,
4321
+ src: s.url,
4322
+ class: Z(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
4323
+ sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
4324
+ allow: "clipboard-read; clipboard-write",
4325
+ onLoad: u
4326
+ }, null, 42, fr)) : (w(), k("div", pr, [
4327
+ K(oe(le), {
4328
+ icon: "lucide-sparkles",
4329
+ size: "xl",
4330
+ class: "vc-ai-agent-iframe__placeholder-icon"
4331
+ }),
4332
+ m[0] || (m[0] = $("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
4333
+ ]))
4334
+ ]));
4335
+ }
4336
+ }), vr = { class: "vc-ai-agent-panel__content" }, Tn = /* @__PURE__ */ J({
4337
+ __name: "VcAiAgentPanel",
4338
+ setup(s) {
4339
+ const e = W(ge), t = W(At, !1);
4340
+ e || console.error("[VcAiAgentPanel] AiAgentService not provided");
4341
+ const n = h(
4342
+ () => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
4343
+ ), r = h(() => !t && (e?.isOpen.value ?? !1)), a = h(() => e?.isExpanded.value ?? !1), o = h(() => e?.totalItemsCount.value ?? 0), u = h(() => ({
4344
+ width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
4345
+ })), c = () => e?.closePanel(), m = () => e?.expandPanel(), S = () => e?.collapsePanel(), p = (d) => {
4346
+ e?._setIframeRef(d);
4347
+ };
4348
+ return De(() => {
4349
+ e?._setIframeRef(null);
4350
+ }), (d, v) => (w(), V(Pe, { name: "ai-panel-slide" }, {
4351
+ default: Oe(() => [
4352
+ r.value ? (w(), k("div", {
4353
+ key: 0,
4354
+ class: Z(["vc-ai-agent-panel", {
4355
+ "vc-ai-agent-panel--expanded": a.value
4356
+ }]),
4357
+ style: ee(u.value)
4358
+ }, [
4359
+ K(ir, {
4360
+ title: n.value.title,
4361
+ "is-expanded": a.value,
4362
+ "items-count": o.value,
4363
+ onClose: c,
4364
+ onExpand: m,
4365
+ onCollapse: S
4366
+ }, null, 8, ["title", "is-expanded", "items-count"]),
4367
+ $("div", vr, [
4368
+ K(mr, {
4369
+ url: n.value.url,
4370
+ onIframeReady: p
4371
+ }, null, 8, ["url"])
4372
+ ])
4373
+ ], 6)) : Y("", !0)
4374
+ ]),
4375
+ _: 1
4376
+ }));
4377
+ }
4378
+ });
4379
+ export {
4380
+ St as $,
4381
+ vn as A,
4382
+ _t as B,
4383
+ on as C,
4384
+ wt as D,
4385
+ gn as E,
4386
+ nn as F,
4387
+ an as G,
4388
+ xn as H,
4389
+ ht as I,
4390
+ ln as J,
4391
+ un as K,
4392
+ yt as L,
4393
+ Xr as M,
4394
+ Hr as N,
4395
+ Zr as O,
4396
+ Wr as P,
4397
+ ut as Q,
4398
+ Yr as R,
4399
+ $r as S,
4400
+ Ut as T,
4401
+ tn as U,
4402
+ Sr as V,
4403
+ Kr as W,
4404
+ G as X,
4405
+ yr as Y,
4406
+ Jr as Z,
4407
+ le as _,
4408
+ Tn as a,
4409
+ Ct as a0,
4410
+ Gr as a1,
4411
+ mn as a2,
4412
+ Mr as a3,
4413
+ Ur as a4,
4414
+ hn as a5,
4415
+ qr as a6,
4416
+ Ar as a7,
4417
+ wr as a8,
4418
+ Qr as a9,
4419
+ zr as aA,
4420
+ Ve as aB,
4421
+ rn as aC,
4422
+ et as aD,
4423
+ lt as aE,
4424
+ jr as aF,
4425
+ gt as aG,
4426
+ xt as aH,
4427
+ dt as aI,
4428
+ kr as aJ,
4429
+ Nr as aK,
4430
+ Dt as aL,
4431
+ bt as aM,
4432
+ Lr as aN,
4433
+ Un as aO,
4434
+ tt as aa,
4435
+ Tr as ab,
4436
+ nt as ac,
4437
+ Ze as ad,
4438
+ rt as ae,
4439
+ At as af,
4440
+ Xe as ag,
4441
+ qe as ah,
4442
+ M as ai,
4443
+ cn as aj,
4444
+ Pr as ak,
4445
+ at as al,
4446
+ Ye as am,
4447
+ Or as an,
4448
+ Dr as ao,
4449
+ Ir as ap,
4450
+ en as aq,
4451
+ Vr as ar,
4452
+ Rr as as,
4453
+ st as at,
4454
+ it as au,
4455
+ Qe as av,
4456
+ ot as aw,
4457
+ Br as ax,
4458
+ Fr as ay,
4459
+ He as az,
4460
+ ge as b,
4461
+ wn as c,
4462
+ N as d,
4463
+ ye as e,
4464
+ yn as f,
4465
+ Ie as g,
4466
+ Et as h,
4467
+ _n as i,
4468
+ bn as j,
4469
+ Cn as k,
4470
+ fn as l,
4471
+ dn as m,
4472
+ Ft as n,
4473
+ pt as o,
4474
+ Sn as p,
4475
+ Re as q,
4476
+ Be as r,
4477
+ En as s,
4478
+ Nt as t,
4479
+ An as u,
4480
+ $e as v,
4481
+ Ae as w,
4482
+ jt as x,
4483
+ pn as y,
4484
+ sn as z
4485
+ };