@vc-shell/framework 2.0.0-alpha.32 → 2.0.0-alpha.33
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.
- package/CHANGELOG.md +23 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CL6FKSZv.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CrmX4_5C.js} +800 -799
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-CLNfbXjd.js → VcTableAdapter.vue_vue_type_style_index_0_lang-D9BrIj43.js} +9308 -8869
- package/dist/chunks/{index-D2HGw9DC.js → index-HNCQdWHc.js} +1 -1
- package/dist/chunks/{vendor-swiper-D1fVhFeH.js → vendor-swiper-BgqGfw3Y.js} +636 -563
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/types.d.ts +1 -0
- package/dist/core/composables/useBladeForm/types.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts.map +1 -1
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/constants/index.d.ts +0 -1
- package/dist/core/constants/index.d.ts.map +1 -1
- package/dist/framework.js +1385 -1426
- package/dist/index.css +2 -2
- package/dist/injection-keys.d.ts +1 -0
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shell/_internal/popup/types/index.d.ts +1 -1
- package/dist/shell/_internal/popup/types/index.d.ts.map +1 -1
- package/dist/shell/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/Table.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +0 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +5 -9
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableExpansion.d.ts +6 -2
- package/dist/ui/components/organisms/vc-data-table/composables/useTableExpansion.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +2 -0
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +3 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/composables/index.d.ts +2 -0
- package/dist/ui/composables/index.d.ts.map +1 -1
- package/dist/ui/composables/useBladeLoading/index.d.ts +6 -0
- package/dist/ui/composables/useBladeLoading/index.d.ts.map +1 -0
- package/dist/ui/composables/useDataTablePagination.d.ts +30 -0
- package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -0
- package/dist/ui/index.js +44 -42
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/core/constants/ui.d.ts +0 -50
- package/dist/core/constants/ui.d.ts.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { j as
|
|
5
|
-
const
|
|
1
|
+
import { ref as L, computed as T, getCurrentInstance as ee, inject as z, watch as W, isRef as Be, provide as be, shallowRef as je, defineComponent as V, openBlock as $, createElementBlock as G, createElementVNode as O, createCommentVNode as Q, createStaticVNode as Ne, resolveComponent as Ee, createVNode as J, toDisplayString as _e, Transition as Ce, withCtx as Ue, createBlock as Ae, normalizeClass as Te, onUnmounted as ke, normalizeStyle as $e } from "vue";
|
|
2
|
+
import { c as te } from "./vendor-lodash-es-BB-IQCna.js";
|
|
3
|
+
import { u as Fe } from "./vendor-vueuse-core-D4-2M4AW.js";
|
|
4
|
+
import { j as Ge } from "./vendor-vueuse-shared-PQ04AyOW.js";
|
|
5
|
+
const de = {
|
|
6
6
|
debug: 0,
|
|
7
7
|
info: 1,
|
|
8
8
|
warn: 2,
|
|
9
9
|
error: 3,
|
|
10
10
|
none: 4
|
|
11
|
-
},
|
|
11
|
+
}, De = {
|
|
12
12
|
level: "warn",
|
|
13
13
|
prefix: "@vc-shell/framework",
|
|
14
14
|
enabled: !0
|
|
15
15
|
};
|
|
16
16
|
function k(s) {
|
|
17
|
-
const t = { ...
|
|
17
|
+
const t = { ...De }, e = s ? `[${t.prefix}#${s}]` : `[${t.prefix}]`, n = (r) => t.enabled ? de[r] >= de[t.level] : !1;
|
|
18
18
|
return {
|
|
19
19
|
/**
|
|
20
20
|
* Log debug messages (only in development)
|
|
@@ -58,7 +58,7 @@ function k(s) {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const ur = k(), hr = {
|
|
62
62
|
core: k("core"),
|
|
63
63
|
ui: k("ui"),
|
|
64
64
|
shared: k("shared"),
|
|
@@ -80,17 +80,17 @@ class M extends Error {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class cr extends M {
|
|
84
84
|
constructor(t, e) {
|
|
85
85
|
super(t, "VALIDATION_ERROR", e), this.name = "ValidationError";
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
class
|
|
88
|
+
class dr extends M {
|
|
89
89
|
constructor(t, e) {
|
|
90
90
|
super(t, "SERVICE_ERROR", e), this.name = "ServiceError";
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
class
|
|
93
|
+
class Le extends M {
|
|
94
94
|
constructor(t, e) {
|
|
95
95
|
super(`${t} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
96
96
|
serviceName: t,
|
|
@@ -98,7 +98,7 @@ class De extends M {
|
|
|
98
98
|
}), this.name = "InjectionError";
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
class
|
|
101
|
+
class fr extends M {
|
|
102
102
|
constructor(t, e, n) {
|
|
103
103
|
super(`Failed to register '${t}': ${e}`, "REGISTRATION_ERROR", {
|
|
104
104
|
componentName: t,
|
|
@@ -106,7 +106,7 @@ class dr extends M {
|
|
|
106
106
|
}), this.name = "RegistrationError";
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
class
|
|
109
|
+
class pr extends M {
|
|
110
110
|
constructor(t, e, n) {
|
|
111
111
|
super(t, "BLADE_ERROR", {
|
|
112
112
|
bladeId: e,
|
|
@@ -114,7 +114,7 @@ class fr extends M {
|
|
|
114
114
|
}), this.name = "BladeError";
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
class
|
|
117
|
+
class mr extends M {
|
|
118
118
|
constructor(t, e, n) {
|
|
119
119
|
super(`Failed to load module '${t}': ${e}`, "MODULE_LOAD_ERROR", {
|
|
120
120
|
moduleId: t,
|
|
@@ -122,32 +122,32 @@ class pr extends M {
|
|
|
122
122
|
}), this.name = "ModuleLoadError";
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Me(s) {
|
|
126
126
|
return s instanceof M;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function vr(s, t = "UNKNOWN_ERROR") {
|
|
129
|
+
return Me(s) ? s : s instanceof Error ? new M(s.message, t, {
|
|
130
130
|
originalError: s.name,
|
|
131
131
|
stack: s.stack
|
|
132
132
|
}) : new M(String(s), t);
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
if (typeof t == "string" &&
|
|
134
|
+
const ye = Symbol("BladeStack"), ze = Symbol("BladeMessaging"), Je = Symbol("BladeDescriptor"), gr = Symbol("BladeMaximized"), Ke = Symbol("BladeData"), qe = Symbol("BladeBanners"), xr = Symbol("BladeBackButton"), br = Symbol("NotificationStore"), Er = Symbol("WidgetService"), _r = Symbol("DashboardService"), Cr = Symbol("MenuService"), Ur = Symbol("SettingsMenuService"), Ar = Symbol("AppBarWidgetService"), Tr = Symbol("AppBarMobileButtonsService"), He = Symbol("LanguageService"), We = Symbol("ToolbarService"), yr = Symbol("DynamicModules"), Sr = Symbol("ModulesReady"), wr = Symbol("ModulesLoadError"), Pr = Symbol("AppRootElement"), Ze = Symbol("EmbeddedMode"), Or = Symbol("ShellIndicators"), le = Symbol("AiAgentService"), Ir = Symbol("IsMobile"), Rr = Symbol("IsDesktop"), Br = Symbol("IsPhone"), jr = Symbol("IsTablet"), Nr = Symbol("IsTouch"), kr = Symbol("BladeRoutes"), $r = Symbol("InternalRoutes"), Fr = Symbol("CloseSettingsMenu"), Gr = Symbol("BladeContext"), Dr = Symbol("WidgetScope"), Lr = Symbol("BladeForm"), Mr = Symbol("BladeLoading"), Xe = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
135
|
+
function Ye(s, t) {
|
|
136
|
+
if (typeof t == "string" && Xe.test(t)) {
|
|
137
137
|
const e = new Date(t);
|
|
138
138
|
if (!isNaN(e.getTime()))
|
|
139
139
|
return e;
|
|
140
140
|
}
|
|
141
141
|
return t;
|
|
142
142
|
}
|
|
143
|
-
class
|
|
143
|
+
class D {
|
|
144
144
|
authToken = "";
|
|
145
145
|
/**
|
|
146
146
|
* JSON parse reviver for converting date strings to Date objects.
|
|
147
147
|
* Subclasses use this when parsing API responses.
|
|
148
148
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
149
149
|
*/
|
|
150
|
-
jsonParseReviver =
|
|
150
|
+
jsonParseReviver = Ye;
|
|
151
151
|
constructor() {
|
|
152
152
|
}
|
|
153
153
|
// Enforce always return empty string as baseUrl
|
|
@@ -161,7 +161,7 @@ class G {
|
|
|
161
161
|
return this.authToken && (t.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(t);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
class
|
|
164
|
+
class Qe extends D {
|
|
165
165
|
http;
|
|
166
166
|
baseUrl;
|
|
167
167
|
constructor(t, e) {
|
|
@@ -176,29 +176,29 @@ class Ye extends G {
|
|
|
176
176
|
* @return OK
|
|
177
177
|
*/
|
|
178
178
|
signIn(t, e, n, r, a) {
|
|
179
|
-
let
|
|
179
|
+
let i = this.baseUrl + "/externalsignin?";
|
|
180
180
|
if (t === null)
|
|
181
181
|
throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
|
|
182
|
-
if (t !== void 0 && (
|
|
182
|
+
if (t !== void 0 && (i += "AuthenticationType=" + encodeURIComponent("" + t) + "&"), e === null)
|
|
183
183
|
throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
184
|
-
if (e !== void 0 && (
|
|
184
|
+
if (e !== void 0 && (i += "ReturnUrl=" + encodeURIComponent("" + e) + "&"), n === null)
|
|
185
185
|
throw new globalThis.Error("The parameter 'storeId' cannot be null.");
|
|
186
|
-
if (n !== void 0 && (
|
|
186
|
+
if (n !== void 0 && (i += "StoreId=" + encodeURIComponent("" + n) + "&"), r === null)
|
|
187
187
|
throw new globalThis.Error("The parameter 'oidcUrl' cannot be null.");
|
|
188
|
-
if (r !== void 0 && (
|
|
188
|
+
if (r !== void 0 && (i += "OidcUrl=" + encodeURIComponent("" + r) + "&"), a === null)
|
|
189
189
|
throw new globalThis.Error("The parameter 'callbackUrl' cannot be null.");
|
|
190
|
-
a !== void 0 && (
|
|
190
|
+
a !== void 0 && (i += "CallbackUrl=" + encodeURIComponent("" + a) + "&"), i = i.replace(/[?&]$/, "");
|
|
191
191
|
let u = {
|
|
192
192
|
method: "GET",
|
|
193
193
|
headers: {}
|
|
194
194
|
};
|
|
195
|
-
return this.transformOptions(u).then((
|
|
195
|
+
return this.transformOptions(u).then((d) => this.http.fetch(i, d)).then((d) => this.processSignIn(d));
|
|
196
196
|
}
|
|
197
197
|
processSignIn(t) {
|
|
198
198
|
const e = t.status;
|
|
199
199
|
let n = {};
|
|
200
200
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
201
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
201
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @param authenticationType (optional)
|
|
@@ -222,7 +222,7 @@ class Ye extends G {
|
|
|
222
222
|
const e = t.status;
|
|
223
223
|
let n = {};
|
|
224
224
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
225
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
225
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* @param returnUrl (optional)
|
|
@@ -243,7 +243,7 @@ class Ye extends G {
|
|
|
243
243
|
const e = t.status;
|
|
244
244
|
let n = {};
|
|
245
245
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
246
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
246
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
249
|
* @return OK
|
|
@@ -265,10 +265,10 @@ class Ye extends G {
|
|
|
265
265
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
266
266
|
let a = null;
|
|
267
267
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
268
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
268
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
class
|
|
271
|
+
class zr extends D {
|
|
272
272
|
http;
|
|
273
273
|
baseUrl;
|
|
274
274
|
constructor(t, e) {
|
|
@@ -295,10 +295,10 @@ class Lr extends G {
|
|
|
295
295
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
296
296
|
let a = null;
|
|
297
297
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
298
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
298
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
class
|
|
301
|
+
class Jr extends D {
|
|
302
302
|
http;
|
|
303
303
|
baseUrl;
|
|
304
304
|
constructor(t, e) {
|
|
@@ -320,7 +320,7 @@ class Mr extends G {
|
|
|
320
320
|
const e = t.status;
|
|
321
321
|
let n = {};
|
|
322
322
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
323
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
323
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
326
|
* @return OK
|
|
@@ -346,8 +346,8 @@ class Mr extends G {
|
|
|
346
346
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
347
347
|
}) : e === 400 ? t.text().then((r) => {
|
|
348
348
|
let a = null;
|
|
349
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver),
|
|
350
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
349
|
+
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), o("Bad Request", e, r, n, a);
|
|
350
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
353
|
* @return OK
|
|
@@ -365,7 +365,7 @@ class Mr extends G {
|
|
|
365
365
|
const e = t.status;
|
|
366
366
|
let n = {};
|
|
367
367
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
368
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
368
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* @return OK
|
|
@@ -383,7 +383,7 @@ class Mr extends G {
|
|
|
383
383
|
const e = t.status;
|
|
384
384
|
let n = {};
|
|
385
385
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
386
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
386
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
389
|
* @return OK
|
|
@@ -401,7 +401,7 @@ class Mr extends G {
|
|
|
401
401
|
const e = t.status;
|
|
402
402
|
let n = {};
|
|
403
403
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
404
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
404
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
407
|
* @return OK
|
|
@@ -419,7 +419,7 @@ class Mr extends G {
|
|
|
419
419
|
const e = t.status;
|
|
420
420
|
let n = {};
|
|
421
421
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
422
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
422
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @return OK
|
|
@@ -437,10 +437,10 @@ class Mr extends G {
|
|
|
437
437
|
const e = t.status;
|
|
438
438
|
let n = {};
|
|
439
439
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
440
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
440
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
class
|
|
443
|
+
class Kr extends D {
|
|
444
444
|
http;
|
|
445
445
|
baseUrl;
|
|
446
446
|
constructor(t, e) {
|
|
@@ -466,7 +466,7 @@ class zr extends G {
|
|
|
466
466
|
const e = t.status;
|
|
467
467
|
let n = {};
|
|
468
468
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
469
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
469
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @return No Content
|
|
@@ -484,7 +484,7 @@ class zr extends G {
|
|
|
484
484
|
const e = t.status;
|
|
485
485
|
let n = {};
|
|
486
486
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
487
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
487
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
490
|
* Get last modified date for given scope
|
|
@@ -511,7 +511,7 @@ class zr extends G {
|
|
|
511
511
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
512
512
|
let a = null;
|
|
513
513
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
514
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
514
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
517
|
* @param body (optional)
|
|
@@ -536,7 +536,7 @@ class zr extends G {
|
|
|
536
536
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
537
537
|
let a = null;
|
|
538
538
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
539
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
539
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
542
542
|
* @param body (optional)
|
|
@@ -558,7 +558,7 @@ class zr extends G {
|
|
|
558
558
|
const e = t.status;
|
|
559
559
|
let n = {};
|
|
560
560
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
561
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
561
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
562
562
|
}
|
|
563
563
|
/**
|
|
564
564
|
* @param body (optional)
|
|
@@ -583,7 +583,7 @@ class zr extends G {
|
|
|
583
583
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
584
584
|
let a = null;
|
|
585
585
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
586
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
586
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
587
587
|
}
|
|
588
588
|
/**
|
|
589
589
|
* @param start (optional)
|
|
@@ -605,7 +605,7 @@ class zr extends G {
|
|
|
605
605
|
Accept: "application/json"
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
return this.transformOptions(a).then((
|
|
608
|
+
return this.transformOptions(a).then((i) => this.http.fetch(r, i)).then((i) => this.processSearchTypeChangeHistory(i));
|
|
609
609
|
}
|
|
610
610
|
processSearchTypeChangeHistory(t) {
|
|
611
611
|
const e = t.status;
|
|
@@ -613,10 +613,10 @@ class zr extends G {
|
|
|
613
613
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
614
614
|
let a = null;
|
|
615
615
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
616
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
616
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class qr extends D {
|
|
620
620
|
http;
|
|
621
621
|
baseUrl;
|
|
622
622
|
constructor(t, e) {
|
|
@@ -642,10 +642,10 @@ class Jr extends G {
|
|
|
642
642
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
643
643
|
let a = null;
|
|
644
644
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
645
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
645
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class Hr extends D {
|
|
649
649
|
http;
|
|
650
650
|
baseUrl;
|
|
651
651
|
constructor(t, e) {
|
|
@@ -671,7 +671,7 @@ class Kr extends G {
|
|
|
671
671
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
672
672
|
let a = null;
|
|
673
673
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
674
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
674
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
675
675
|
}
|
|
676
676
|
/**
|
|
677
677
|
* Get installed modules with errors
|
|
@@ -694,10 +694,10 @@ class Kr extends G {
|
|
|
694
694
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
695
695
|
let a = null;
|
|
696
696
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
697
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
697
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
class
|
|
700
|
+
class Wr extends D {
|
|
701
701
|
http;
|
|
702
702
|
baseUrl;
|
|
703
703
|
constructor(t, e) {
|
|
@@ -724,7 +724,7 @@ class qr extends G {
|
|
|
724
724
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
725
725
|
let a = null;
|
|
726
726
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
727
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
727
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
730
|
* @param id (optional)
|
|
@@ -749,7 +749,7 @@ class qr extends G {
|
|
|
749
749
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
750
750
|
let a = null;
|
|
751
751
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
752
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
752
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
753
753
|
}
|
|
754
754
|
/**
|
|
755
755
|
* Add new dynamic property
|
|
@@ -775,7 +775,7 @@ class qr extends G {
|
|
|
775
775
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
776
776
|
let a = null;
|
|
777
777
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
778
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
778
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
781
|
* Update existing dynamic property
|
|
@@ -798,7 +798,7 @@ class qr extends G {
|
|
|
798
798
|
const e = t.status;
|
|
799
799
|
let n = {};
|
|
800
800
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
801
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
801
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
804
804
|
* Delete dynamic property
|
|
@@ -822,7 +822,7 @@ class qr extends G {
|
|
|
822
822
|
const e = t.status;
|
|
823
823
|
let n = {};
|
|
824
824
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
825
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
825
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
828
828
|
* Get dynamic properties registered for object type
|
|
@@ -848,7 +848,7 @@ class qr extends G {
|
|
|
848
848
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
849
849
|
let a = null;
|
|
850
850
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
851
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
851
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Does nothing. Just a way to expose DynamicObjectProperty thru Swagger.
|
|
@@ -871,7 +871,7 @@ class qr extends G {
|
|
|
871
871
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
872
872
|
let a = null;
|
|
873
873
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
874
|
-
}) : e === 204 ? t.text().then((r) =>
|
|
874
|
+
}) : e === 204 ? t.text().then((r) => o("No Content", e, r, n)) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
875
875
|
}
|
|
876
876
|
/**
|
|
877
877
|
* @param propertyId (optional)
|
|
@@ -896,7 +896,7 @@ class qr extends G {
|
|
|
896
896
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
897
897
|
let a = null;
|
|
898
898
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
899
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
899
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
900
900
|
}
|
|
901
901
|
/**
|
|
902
902
|
* Add or update dictionary items
|
|
@@ -919,7 +919,7 @@ class qr extends G {
|
|
|
919
919
|
const e = t.status;
|
|
920
920
|
let n = {};
|
|
921
921
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
922
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
922
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
923
923
|
}
|
|
924
924
|
/**
|
|
925
925
|
* Delete dictionary items
|
|
@@ -943,7 +943,7 @@ class qr extends G {
|
|
|
943
943
|
const e = t.status;
|
|
944
944
|
let n = {};
|
|
945
945
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
946
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
946
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
947
947
|
}
|
|
948
948
|
/**
|
|
949
949
|
* Get dictionary items
|
|
@@ -969,10 +969,10 @@ class qr extends G {
|
|
|
969
969
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
970
970
|
let a = null;
|
|
971
971
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
972
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
972
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
|
-
class
|
|
975
|
+
class Zr extends D {
|
|
976
976
|
http;
|
|
977
977
|
baseUrl;
|
|
978
978
|
constructor(t, e) {
|
|
@@ -1002,10 +1002,10 @@ class Hr extends G {
|
|
|
1002
1002
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1003
1003
|
let a = null;
|
|
1004
1004
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1005
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1005
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
class
|
|
1008
|
+
class Xr extends D {
|
|
1009
1009
|
http;
|
|
1010
1010
|
baseUrl;
|
|
1011
1011
|
constructor(t, e) {
|
|
@@ -1031,7 +1031,7 @@ class Wr extends G {
|
|
|
1031
1031
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1032
1032
|
let a = null;
|
|
1033
1033
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1034
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1034
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1035
1035
|
}
|
|
1036
1036
|
/**
|
|
1037
1037
|
* @return OK
|
|
@@ -1057,7 +1057,7 @@ class Wr extends G {
|
|
|
1057
1057
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1058
1058
|
let a = null;
|
|
1059
1059
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1060
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1060
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1061
1061
|
}
|
|
1062
1062
|
/**
|
|
1063
1063
|
* @param body (optional)
|
|
@@ -1075,13 +1075,13 @@ class Wr extends G {
|
|
|
1075
1075
|
"Content-Type": "application/json-patch+json"
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
return this.transformOptions(a).then((
|
|
1078
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processSaveDictionaryItems(i));
|
|
1079
1079
|
}
|
|
1080
1080
|
processSaveDictionaryItems(t) {
|
|
1081
1081
|
const e = t.status;
|
|
1082
1082
|
let n = {};
|
|
1083
1083
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1084
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1084
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1085
1085
|
}
|
|
1086
1086
|
/**
|
|
1087
1087
|
* @param values (optional)
|
|
@@ -1106,10 +1106,10 @@ class Wr extends G {
|
|
|
1106
1106
|
const e = t.status;
|
|
1107
1107
|
let n = {};
|
|
1108
1108
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1109
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1109
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
class
|
|
1112
|
+
class Yr extends D {
|
|
1113
1113
|
http;
|
|
1114
1114
|
baseUrl;
|
|
1115
1115
|
constructor(t, e) {
|
|
@@ -1132,7 +1132,7 @@ class Zr extends G {
|
|
|
1132
1132
|
const e = t.status;
|
|
1133
1133
|
let n = {};
|
|
1134
1134
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1135
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1135
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1136
1136
|
}
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Get installed modules
|
|
@@ -1155,7 +1155,7 @@ class Zr extends G {
|
|
|
1155
1155
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1156
1156
|
let a = null;
|
|
1157
1157
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1158
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1158
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1159
1159
|
}
|
|
1160
1160
|
/**
|
|
1161
1161
|
* Get all dependent modules for module
|
|
@@ -1181,7 +1181,7 @@ class Zr extends G {
|
|
|
1181
1181
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1182
1182
|
let a = null;
|
|
1183
1183
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1184
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1184
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1185
1185
|
}
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Returns a flat expanded list of modules that depend on passed modules
|
|
@@ -1207,7 +1207,7 @@ class Zr extends G {
|
|
|
1207
1207
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1208
1208
|
let a = null;
|
|
1209
1209
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1210
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1210
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Upload module package for installation or update
|
|
@@ -1230,7 +1230,7 @@ class Zr extends G {
|
|
|
1230
1230
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1231
1231
|
let a = null;
|
|
1232
1232
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1233
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1233
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1234
1234
|
}
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Install modules
|
|
@@ -1256,7 +1256,7 @@ class Zr extends G {
|
|
|
1256
1256
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1257
1257
|
let a = null;
|
|
1258
1258
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1259
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1259
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1260
1260
|
}
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Update modules
|
|
@@ -1282,7 +1282,7 @@ class Zr extends G {
|
|
|
1282
1282
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1283
1283
|
let a = null;
|
|
1284
1284
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1285
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1285
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1286
1286
|
}
|
|
1287
1287
|
/**
|
|
1288
1288
|
* Uninstall module
|
|
@@ -1308,7 +1308,7 @@ class Zr extends G {
|
|
|
1308
1308
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1309
1309
|
let a = null;
|
|
1310
1310
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1311
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1311
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1312
1312
|
}
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Restart web application
|
|
@@ -1327,7 +1327,7 @@ class Zr extends G {
|
|
|
1327
1327
|
const e = t.status;
|
|
1328
1328
|
let n = {};
|
|
1329
1329
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1330
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1330
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1331
1331
|
}
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Auto-install modules with specified groups
|
|
@@ -1350,7 +1350,7 @@ class Zr extends G {
|
|
|
1350
1350
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1351
1351
|
let a = null;
|
|
1352
1352
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1353
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1353
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1354
1354
|
}
|
|
1355
1355
|
/**
|
|
1356
1356
|
* @return OK
|
|
@@ -1372,10 +1372,10 @@ class Zr extends G {
|
|
|
1372
1372
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1373
1373
|
let a = null;
|
|
1374
1374
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1375
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1375
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
class
|
|
1378
|
+
class Qr extends D {
|
|
1379
1379
|
http;
|
|
1380
1380
|
baseUrl;
|
|
1381
1381
|
constructor(t, e) {
|
|
@@ -1401,7 +1401,7 @@ class Xr extends G {
|
|
|
1401
1401
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1402
1402
|
let a = null;
|
|
1403
1403
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1404
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1404
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1405
1405
|
}
|
|
1406
1406
|
/**
|
|
1407
1407
|
* @param body (optional)
|
|
@@ -1426,7 +1426,7 @@ class Xr extends G {
|
|
|
1426
1426
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1427
1427
|
let a = null;
|
|
1428
1428
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1429
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1429
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1430
1430
|
}
|
|
1431
1431
|
/**
|
|
1432
1432
|
* @param clientIds (optional)
|
|
@@ -1449,7 +1449,7 @@ class Xr extends G {
|
|
|
1449
1449
|
const e = t.status;
|
|
1450
1450
|
let n = {};
|
|
1451
1451
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1452
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1452
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1453
1453
|
}
|
|
1454
1454
|
/**
|
|
1455
1455
|
* @param body (optional)
|
|
@@ -1474,10 +1474,10 @@ class Xr extends G {
|
|
|
1474
1474
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1475
1475
|
let a = null;
|
|
1476
1476
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1477
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1477
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
class
|
|
1480
|
+
class Vr extends D {
|
|
1481
1481
|
http;
|
|
1482
1482
|
baseUrl;
|
|
1483
1483
|
constructor(t, e) {
|
|
@@ -1507,7 +1507,7 @@ class Yr extends G {
|
|
|
1507
1507
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1508
1508
|
let a = null;
|
|
1509
1509
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1510
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1510
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1511
1511
|
}
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Mark all notifications as read
|
|
@@ -1530,10 +1530,10 @@ class Yr extends G {
|
|
|
1530
1530
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1531
1531
|
let a = null;
|
|
1532
1532
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1533
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1533
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
class
|
|
1536
|
+
class Ve extends D {
|
|
1537
1537
|
http;
|
|
1538
1538
|
baseUrl;
|
|
1539
1539
|
constructor(t, e) {
|
|
@@ -1556,7 +1556,7 @@ class Qe extends G {
|
|
|
1556
1556
|
Accept: "application/json"
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
|
-
return this.transformOptions(a).then((
|
|
1559
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processSearchUserSessions(i));
|
|
1560
1560
|
}
|
|
1561
1561
|
processSearchUserSessions(t) {
|
|
1562
1562
|
const e = t.status;
|
|
@@ -1564,7 +1564,7 @@ class Qe extends G {
|
|
|
1564
1564
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1565
1565
|
let a = null;
|
|
1566
1566
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1567
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1567
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1568
1568
|
}
|
|
1569
1569
|
/**
|
|
1570
1570
|
* @return No Content
|
|
@@ -1586,7 +1586,7 @@ class Qe extends G {
|
|
|
1586
1586
|
const e = t.status;
|
|
1587
1587
|
let n = {};
|
|
1588
1588
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1589
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1589
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1590
1590
|
}
|
|
1591
1591
|
/**
|
|
1592
1592
|
* @return No Content
|
|
@@ -1606,7 +1606,7 @@ class Qe extends G {
|
|
|
1606
1606
|
const e = t.status;
|
|
1607
1607
|
let n = {};
|
|
1608
1608
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1609
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1609
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1610
1610
|
}
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Sign in with user name and password
|
|
@@ -1632,7 +1632,7 @@ class Qe extends G {
|
|
|
1632
1632
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1633
1633
|
let a = null;
|
|
1634
1634
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1635
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
1635
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1636
1636
|
}
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Sign out
|
|
@@ -1651,7 +1651,7 @@ class Qe extends G {
|
|
|
1651
1651
|
const e = t.status;
|
|
1652
1652
|
let n = {};
|
|
1653
1653
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1654
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
1654
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1655
1655
|
}
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Get current user details
|
|
@@ -1674,7 +1674,7 @@ class Qe extends G {
|
|
|
1674
1674
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1675
1675
|
let a = null;
|
|
1676
1676
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1677
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
1677
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1678
1678
|
}
|
|
1679
1679
|
/**
|
|
1680
1680
|
* @return OK
|
|
@@ -1696,7 +1696,7 @@ class Qe extends G {
|
|
|
1696
1696
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1697
1697
|
let a = null;
|
|
1698
1698
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1699
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1699
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1700
1700
|
}
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Get all registered permissions
|
|
@@ -1719,7 +1719,7 @@ class Qe extends G {
|
|
|
1719
1719
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1720
1720
|
let a = null;
|
|
1721
1721
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1722
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1722
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1723
1723
|
}
|
|
1724
1724
|
/**
|
|
1725
1725
|
* SearchAsync roles by keyword
|
|
@@ -1745,7 +1745,7 @@ class Qe extends G {
|
|
|
1745
1745
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1746
1746
|
let a = null;
|
|
1747
1747
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1748
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1748
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1749
1749
|
}
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Get role by ID
|
|
@@ -1770,7 +1770,7 @@ class Qe extends G {
|
|
|
1770
1770
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1771
1771
|
let a = null;
|
|
1772
1772
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1773
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1773
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1774
1774
|
}
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Delete roles by ID
|
|
@@ -1794,7 +1794,7 @@ class Qe extends G {
|
|
|
1794
1794
|
const e = t.status;
|
|
1795
1795
|
let n = {};
|
|
1796
1796
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
1797
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1797
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1798
1798
|
}
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Update an existing role or create new
|
|
@@ -1820,7 +1820,7 @@ class Qe extends G {
|
|
|
1820
1820
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1821
1821
|
let a = null;
|
|
1822
1822
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1823
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1823
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1824
1824
|
}
|
|
1825
1825
|
/**
|
|
1826
1826
|
* SearchAsync users by keyword
|
|
@@ -1846,7 +1846,7 @@ class Qe extends G {
|
|
|
1846
1846
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1847
1847
|
let a = null;
|
|
1848
1848
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1849
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1849
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1850
1850
|
}
|
|
1851
1851
|
/**
|
|
1852
1852
|
* Get user details by user name
|
|
@@ -1871,7 +1871,7 @@ class Qe extends G {
|
|
|
1871
1871
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1872
1872
|
let a = null;
|
|
1873
1873
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1874
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1874
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1875
1875
|
}
|
|
1876
1876
|
/**
|
|
1877
1877
|
* Get user details by user ID
|
|
@@ -1896,7 +1896,7 @@ class Qe extends G {
|
|
|
1896
1896
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1897
1897
|
let a = null;
|
|
1898
1898
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1899
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1899
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1900
1900
|
}
|
|
1901
1901
|
/**
|
|
1902
1902
|
* Get user details by user email
|
|
@@ -1921,7 +1921,7 @@ class Qe extends G {
|
|
|
1921
1921
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1922
1922
|
let a = null;
|
|
1923
1923
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1924
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1924
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1925
1925
|
}
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Get user details by external login provider
|
|
@@ -1948,7 +1948,7 @@ class Qe extends G {
|
|
|
1948
1948
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1949
1949
|
let a = null;
|
|
1950
1950
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1951
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1951
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1952
1952
|
}
|
|
1953
1953
|
/**
|
|
1954
1954
|
* Create new user
|
|
@@ -1974,7 +1974,7 @@ class Qe extends G {
|
|
|
1974
1974
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
1975
1975
|
let a = null;
|
|
1976
1976
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1977
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
1977
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
1978
1978
|
}
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Change password for current user.
|
|
@@ -2000,7 +2000,7 @@ class Qe extends G {
|
|
|
2000
2000
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2001
2001
|
let a = null;
|
|
2002
2002
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2003
|
-
}) : e === 400 ? t.text().then((r) =>
|
|
2003
|
+
}) : e === 400 ? t.text().then((r) => o("Bad Request", e, r, n)) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2004
2004
|
}
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Change password
|
|
@@ -2021,7 +2021,7 @@ class Qe extends G {
|
|
|
2021
2021
|
Accept: "application/json"
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
|
-
return this.transformOptions(a).then((
|
|
2024
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processChangePassword(i));
|
|
2025
2025
|
}
|
|
2026
2026
|
processChangePassword(t) {
|
|
2027
2027
|
const e = t.status;
|
|
@@ -2029,7 +2029,7 @@ class Qe extends G {
|
|
|
2029
2029
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2030
2030
|
let a = null;
|
|
2031
2031
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2032
|
-
}) : e === 400 ? t.text().then((r) =>
|
|
2032
|
+
}) : e === 400 ? t.text().then((r) => o("Bad Request", e, r, n)) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2033
2033
|
}
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Reset password confirmation
|
|
@@ -2049,7 +2049,7 @@ class Qe extends G {
|
|
|
2049
2049
|
Accept: "application/json"
|
|
2050
2050
|
}
|
|
2051
2051
|
};
|
|
2052
|
-
return this.transformOptions(a).then((
|
|
2052
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processResetPassword(i));
|
|
2053
2053
|
}
|
|
2054
2054
|
processResetPassword(t) {
|
|
2055
2055
|
const e = t.status;
|
|
@@ -2057,7 +2057,7 @@ class Qe extends G {
|
|
|
2057
2057
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2058
2058
|
let a = null;
|
|
2059
2059
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2060
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2060
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2061
2061
|
}
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Reset password confirmation
|
|
@@ -2077,7 +2077,7 @@ class Qe extends G {
|
|
|
2077
2077
|
Accept: "application/json"
|
|
2078
2078
|
}
|
|
2079
2079
|
};
|
|
2080
|
-
return this.transformOptions(a).then((
|
|
2080
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processResetPasswordByToken(i));
|
|
2081
2081
|
}
|
|
2082
2082
|
processResetPasswordByToken(t) {
|
|
2083
2083
|
const e = t.status;
|
|
@@ -2085,7 +2085,7 @@ class Qe extends G {
|
|
|
2085
2085
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2086
2086
|
let a = null;
|
|
2087
2087
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2088
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2088
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2089
2089
|
}
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Validate password reset token
|
|
@@ -2105,7 +2105,7 @@ class Qe extends G {
|
|
|
2105
2105
|
Accept: "application/json"
|
|
2106
2106
|
}
|
|
2107
2107
|
};
|
|
2108
|
-
return this.transformOptions(a).then((
|
|
2108
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processValidatePasswordResetToken(i));
|
|
2109
2109
|
}
|
|
2110
2110
|
processValidatePasswordResetToken(t) {
|
|
2111
2111
|
const e = t.status;
|
|
@@ -2113,7 +2113,7 @@ class Qe extends G {
|
|
|
2113
2113
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2114
2114
|
let a = null;
|
|
2115
2115
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2116
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2116
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2117
2117
|
}
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Send email with instructions on how to reset user password.
|
|
@@ -2134,7 +2134,7 @@ class Qe extends G {
|
|
|
2134
2134
|
const e = t.status;
|
|
2135
2135
|
let n = {};
|
|
2136
2136
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2137
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2137
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2138
2138
|
}
|
|
2139
2139
|
/**
|
|
2140
2140
|
* @param body (optional)
|
|
@@ -2159,7 +2159,7 @@ class Qe extends G {
|
|
|
2159
2159
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2160
2160
|
let a = null;
|
|
2161
2161
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2162
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2162
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2163
2163
|
}
|
|
2164
2164
|
/**
|
|
2165
2165
|
* @param body (optional)
|
|
@@ -2184,7 +2184,7 @@ class Qe extends G {
|
|
|
2184
2184
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2185
2185
|
let a = null;
|
|
2186
2186
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2187
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2187
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2188
2188
|
}
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Update user details by user ID
|
|
@@ -2210,7 +2210,7 @@ class Qe extends G {
|
|
|
2210
2210
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2211
2211
|
let a = null;
|
|
2212
2212
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2213
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2213
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2214
2214
|
}
|
|
2215
2215
|
/**
|
|
2216
2216
|
* Delete users by name
|
|
@@ -2234,7 +2234,7 @@ class Qe extends G {
|
|
|
2234
2234
|
const e = t.status;
|
|
2235
2235
|
let n = {};
|
|
2236
2236
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2237
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2237
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2238
2238
|
}
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Checks if user locked
|
|
@@ -2260,7 +2260,7 @@ class Qe extends G {
|
|
|
2260
2260
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2261
2261
|
let a = null;
|
|
2262
2262
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2263
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2263
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2264
2264
|
}
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Checks if manual password change is enabled
|
|
@@ -2283,7 +2283,7 @@ class Qe extends G {
|
|
|
2283
2283
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2284
2284
|
let a = null;
|
|
2285
2285
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2286
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2286
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2287
2287
|
}
|
|
2288
2288
|
/**
|
|
2289
2289
|
* Lock user
|
|
@@ -2309,7 +2309,7 @@ class Qe extends G {
|
|
|
2309
2309
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2310
2310
|
let a = null;
|
|
2311
2311
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2312
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2312
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2313
2313
|
}
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Unlock user
|
|
@@ -2335,7 +2335,7 @@ class Qe extends G {
|
|
|
2335
2335
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2336
2336
|
let a = null;
|
|
2337
2337
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2338
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2338
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2339
2339
|
}
|
|
2340
2340
|
/**
|
|
2341
2341
|
* @return OK
|
|
@@ -2359,7 +2359,7 @@ class Qe extends G {
|
|
|
2359
2359
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2360
2360
|
let a = null;
|
|
2361
2361
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2362
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2362
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2363
2363
|
}
|
|
2364
2364
|
/**
|
|
2365
2365
|
* @param body (optional)
|
|
@@ -2384,7 +2384,7 @@ class Qe extends G {
|
|
|
2384
2384
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2385
2385
|
let a = null;
|
|
2386
2386
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2387
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2387
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2388
2388
|
}
|
|
2389
2389
|
/**
|
|
2390
2390
|
* @param body (optional)
|
|
@@ -2409,7 +2409,7 @@ class Qe extends G {
|
|
|
2409
2409
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2410
2410
|
let a = null;
|
|
2411
2411
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2412
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2412
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2413
2413
|
}
|
|
2414
2414
|
/**
|
|
2415
2415
|
* @param ids (optional)
|
|
@@ -2436,7 +2436,7 @@ class Qe extends G {
|
|
|
2436
2436
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2437
2437
|
let a = null;
|
|
2438
2438
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2439
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2439
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2440
2440
|
}
|
|
2441
2441
|
/**
|
|
2442
2442
|
* Get allowed login types
|
|
@@ -2459,7 +2459,7 @@ class Qe extends G {
|
|
|
2459
2459
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2460
2460
|
let a = null;
|
|
2461
2461
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2462
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2462
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2463
2463
|
}
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Verify user email
|
|
@@ -2480,7 +2480,7 @@ class Qe extends G {
|
|
|
2480
2480
|
const e = t.status;
|
|
2481
2481
|
let n = {};
|
|
2482
2482
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2483
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2483
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2484
2484
|
}
|
|
2485
2485
|
/**
|
|
2486
2486
|
* @param body (optional)
|
|
@@ -2499,7 +2499,7 @@ class Qe extends G {
|
|
|
2499
2499
|
Accept: "application/json"
|
|
2500
2500
|
}
|
|
2501
2501
|
};
|
|
2502
|
-
return this.transformOptions(a).then((
|
|
2502
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processConfirmEmail(i));
|
|
2503
2503
|
}
|
|
2504
2504
|
processConfirmEmail(t) {
|
|
2505
2505
|
const e = t.status;
|
|
@@ -2507,7 +2507,7 @@ class Qe extends G {
|
|
|
2507
2507
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2508
2508
|
let a = null;
|
|
2509
2509
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2510
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2510
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2511
2511
|
}
|
|
2512
2512
|
/**
|
|
2513
2513
|
* @param newEmail (optional)
|
|
@@ -2534,7 +2534,7 @@ class Qe extends G {
|
|
|
2534
2534
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2535
2535
|
let a = null;
|
|
2536
2536
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2537
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2537
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2538
2538
|
}
|
|
2539
2539
|
/**
|
|
2540
2540
|
* @return OK
|
|
@@ -2558,7 +2558,7 @@ class Qe extends G {
|
|
|
2558
2558
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2559
2559
|
let a = null;
|
|
2560
2560
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2561
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2561
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2562
2562
|
}
|
|
2563
2563
|
/**
|
|
2564
2564
|
* @return OK
|
|
@@ -2582,7 +2582,7 @@ class Qe extends G {
|
|
|
2582
2582
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2583
2583
|
let a = null;
|
|
2584
2584
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2585
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2585
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2586
2586
|
}
|
|
2587
2587
|
/**
|
|
2588
2588
|
* @param tokenProvider (optional)
|
|
@@ -2604,7 +2604,7 @@ class Qe extends G {
|
|
|
2604
2604
|
Accept: "application/json"
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
|
-
return this.transformOptions(a).then((
|
|
2607
|
+
return this.transformOptions(a).then((i) => this.http.fetch(r, i)).then((i) => this.processGenerateUserToken(i));
|
|
2608
2608
|
}
|
|
2609
2609
|
processGenerateUserToken(t) {
|
|
2610
2610
|
const e = t.status;
|
|
@@ -2612,7 +2612,7 @@ class Qe extends G {
|
|
|
2612
2612
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2613
2613
|
let a = null;
|
|
2614
2614
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2615
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2615
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2616
2616
|
}
|
|
2617
2617
|
/**
|
|
2618
2618
|
* @param body (optional)
|
|
@@ -2631,7 +2631,7 @@ class Qe extends G {
|
|
|
2631
2631
|
Accept: "application/json"
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
|
-
return this.transformOptions(a).then((
|
|
2634
|
+
return this.transformOptions(a).then((i) => this.http.fetch(n, i)).then((i) => this.processVerifyUserToken(i));
|
|
2635
2635
|
}
|
|
2636
2636
|
processVerifyUserToken(t) {
|
|
2637
2637
|
const e = t.status;
|
|
@@ -2639,10 +2639,10 @@ class Qe extends G {
|
|
|
2639
2639
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2640
2640
|
let a = null;
|
|
2641
2641
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2642
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2642
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
class
|
|
2645
|
+
class en extends D {
|
|
2646
2646
|
http;
|
|
2647
2647
|
baseUrl;
|
|
2648
2648
|
constructor(t, e) {
|
|
@@ -2669,7 +2669,7 @@ class Qr extends G {
|
|
|
2669
2669
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2670
2670
|
let a = null;
|
|
2671
2671
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2672
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2672
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2673
2673
|
}
|
|
2674
2674
|
/**
|
|
2675
2675
|
* Update settings values
|
|
@@ -2692,7 +2692,7 @@ class Qr extends G {
|
|
|
2692
2692
|
const e = t.status;
|
|
2693
2693
|
let n = {};
|
|
2694
2694
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 204 ? t.text().then((r) => {
|
|
2695
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2695
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2696
2696
|
}
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Get settings registered by specific module
|
|
@@ -2718,7 +2718,7 @@ class Qr extends G {
|
|
|
2718
2718
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2719
2719
|
let a = null;
|
|
2720
2720
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2721
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2721
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2722
2722
|
}
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Get setting details by name
|
|
@@ -2744,7 +2744,7 @@ class Qr extends G {
|
|
|
2744
2744
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2745
2745
|
let a = null;
|
|
2746
2746
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2747
|
-
}) : e === 401 ? t.text().then((r) =>
|
|
2747
|
+
}) : e === 401 ? t.text().then((r) => o("Unauthorized", e, r, n)) : e === 403 ? t.text().then((r) => o("Forbidden", e, r, n)) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2748
2748
|
}
|
|
2749
2749
|
/**
|
|
2750
2750
|
* Get UI customization setting
|
|
@@ -2767,11 +2767,11 @@ class Qr extends G {
|
|
|
2767
2767
|
return t.headers && t.headers.forEach && t.headers.forEach((r, a) => n[a] = r), e === 200 ? t.text().then((r) => {
|
|
2768
2768
|
let a = null;
|
|
2769
2769
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2770
|
-
}) : e !== 200 && e !== 204 ? t.text().then((r) =>
|
|
2770
|
+
}) : e !== 200 && e !== 204 ? t.text().then((r) => o("An unexpected server error occurred.", e, r, n)) : Promise.resolve(null);
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
|
-
var
|
|
2774
|
-
class
|
|
2773
|
+
var et = /* @__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))(et || {}), tt = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(tt || {}), rt = /* @__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))(rt || {}), nt = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(nt || {}), at = /* @__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))(at || {}), st = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(st || {}), ot = /* @__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))(ot || {}), it = /* @__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))(it || {}), lt = /* @__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))(lt || {}), ut = /* @__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))(ut || {}), ht = /* @__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))(ht || {}), ct = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(ct || {}), dt = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(dt || {}), ft = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(ft || {});
|
|
2774
|
+
class pt extends Error {
|
|
2775
2775
|
message;
|
|
2776
2776
|
status;
|
|
2777
2777
|
response;
|
|
@@ -2785,12 +2785,12 @@ class ft extends Error {
|
|
|
2785
2785
|
return t.isApiException === !0;
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
throw r ?? new
|
|
2788
|
+
function o(s, t, e, n, r) {
|
|
2789
|
+
throw r ?? new pt(s, t, e, n, null);
|
|
2790
2790
|
}
|
|
2791
|
-
const
|
|
2792
|
-
const s = new
|
|
2793
|
-
|
|
2791
|
+
const oe = k("use-external-provider"), mt = "externalSignIn", vt = () => {
|
|
2792
|
+
const s = new Qe(), t = Fe(
|
|
2793
|
+
mt,
|
|
2794
2794
|
{},
|
|
2795
2795
|
{
|
|
2796
2796
|
listenToStorageChanges: !0,
|
|
@@ -2798,36 +2798,36 @@ const se = k("use-external-provider"), pt = "externalSignIn", mt = () => {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
);
|
|
2800
2800
|
function e() {
|
|
2801
|
-
const { searchParams:
|
|
2802
|
-
return
|
|
2801
|
+
const { searchParams: i } = new URL(location.href);
|
|
2802
|
+
return i.get("returnUrl") || i.get("ReturnUrl");
|
|
2803
2803
|
}
|
|
2804
|
-
async function n(
|
|
2804
|
+
async function n(i) {
|
|
2805
2805
|
try {
|
|
2806
|
-
const u = window.location.origin,
|
|
2807
|
-
if (!
|
|
2806
|
+
const u = window.location.origin, d = window.location.pathname ?? e() ?? "/";
|
|
2807
|
+
if (!i)
|
|
2808
2808
|
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
2809
2809
|
const v = new URL("/externalsignin", u);
|
|
2810
|
-
v.searchParams.set("authenticationType",
|
|
2810
|
+
v.searchParams.set("authenticationType", i), v.searchParams.set("returnUrl", d), t.value = { providerType: i }, window.location.assign(v);
|
|
2811
2811
|
} catch (u) {
|
|
2812
|
-
throw
|
|
2812
|
+
throw oe.error("External sign-in failed:", u), u;
|
|
2813
2813
|
}
|
|
2814
2814
|
}
|
|
2815
|
-
async function r(
|
|
2815
|
+
async function r(i) {
|
|
2816
2816
|
try {
|
|
2817
|
-
const u = window.location.origin,
|
|
2818
|
-
v.searchParams.set("authenticationType",
|
|
2817
|
+
const u = window.location.origin, d = window.location.pathname ?? "/", v = new URL("/externalsignin/signout", u);
|
|
2818
|
+
v.searchParams.set("authenticationType", i), v.searchParams.set("returnUrl", d), t.value = {}, window.location.assign(v);
|
|
2819
2819
|
} catch (u) {
|
|
2820
|
-
throw
|
|
2820
|
+
throw oe.error("External sign-out failed:", u), u;
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
2823
|
async function a() {
|
|
2824
|
-
let
|
|
2824
|
+
let i;
|
|
2825
2825
|
try {
|
|
2826
|
-
|
|
2826
|
+
i = await s.getExternalLoginProviders();
|
|
2827
2827
|
} catch (u) {
|
|
2828
|
-
|
|
2828
|
+
oe.error("Failed to get external login providers:", u);
|
|
2829
2829
|
}
|
|
2830
|
-
return
|
|
2830
|
+
return i;
|
|
2831
2831
|
}
|
|
2832
2832
|
return {
|
|
2833
2833
|
storage: t,
|
|
@@ -2835,32 +2835,32 @@ const se = k("use-external-provider"), pt = "externalSignIn", mt = () => {
|
|
|
2835
2835
|
signOut: r,
|
|
2836
2836
|
getProviders: a
|
|
2837
2837
|
};
|
|
2838
|
-
},
|
|
2839
|
-
function
|
|
2838
|
+
}, ue = "vc_auth_data", S = k("use-user"), q = L(), R = L(null);
|
|
2839
|
+
function gt() {
|
|
2840
2840
|
try {
|
|
2841
|
-
const s = localStorage.getItem(
|
|
2841
|
+
const s = localStorage.getItem(ue);
|
|
2842
2842
|
if (s)
|
|
2843
2843
|
return JSON.parse(s);
|
|
2844
2844
|
} catch (s) {
|
|
2845
|
-
|
|
2845
|
+
S.error("Failed to read auth data from storage:", s);
|
|
2846
2846
|
}
|
|
2847
2847
|
return null;
|
|
2848
2848
|
}
|
|
2849
|
-
function
|
|
2849
|
+
function fe(s) {
|
|
2850
2850
|
try {
|
|
2851
|
-
|
|
2851
|
+
S.debug("storeAuthData - Saving:", s), localStorage.setItem(ue, JSON.stringify(s)), S.debug("storeAuthData - Saved successfully");
|
|
2852
2852
|
} catch (t) {
|
|
2853
|
-
|
|
2853
|
+
S.error("Failed to store auth data:", t);
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function xt() {
|
|
2857
2857
|
try {
|
|
2858
|
-
localStorage.removeItem(
|
|
2858
|
+
localStorage.removeItem(ue);
|
|
2859
2859
|
} catch (s) {
|
|
2860
|
-
|
|
2860
|
+
S.error("Failed to clear auth data:", s);
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
async function
|
|
2863
|
+
async function pe(s) {
|
|
2864
2864
|
try {
|
|
2865
2865
|
const t = new URLSearchParams(s).toString(), e = await fetch("/connect/token", {
|
|
2866
2866
|
method: "POST",
|
|
@@ -2870,15 +2870,15 @@ async function fe(s) {
|
|
|
2870
2870
|
body: t
|
|
2871
2871
|
});
|
|
2872
2872
|
if (!e.ok) {
|
|
2873
|
-
const
|
|
2874
|
-
return
|
|
2873
|
+
const d = await e.text();
|
|
2874
|
+
return S.error("fetchToken - HTTP error:", e.status, e.statusText, d), null;
|
|
2875
2875
|
}
|
|
2876
2876
|
const n = await e.json();
|
|
2877
|
-
|
|
2878
|
-
const r = n.access_token, a = n.refresh_token,
|
|
2877
|
+
S.debug("fetchToken - Response:", n);
|
|
2878
|
+
const r = n.access_token, a = n.refresh_token, i = n.expires_in;
|
|
2879
2879
|
if (n.error || !r)
|
|
2880
|
-
return
|
|
2881
|
-
const u =
|
|
2880
|
+
return S.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
|
|
2881
|
+
const u = i ? Date.now() + i * 1e3 : null;
|
|
2882
2882
|
return {
|
|
2883
2883
|
token: r,
|
|
2884
2884
|
access_token: r,
|
|
@@ -2886,161 +2886,161 @@ async function fe(s) {
|
|
|
2886
2886
|
expires_at: u
|
|
2887
2887
|
};
|
|
2888
2888
|
} catch (t) {
|
|
2889
|
-
return
|
|
2889
|
+
return S.error("fetchToken - Exception:", t), null;
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2893
|
-
const s =
|
|
2894
|
-
async function
|
|
2895
|
-
let
|
|
2892
|
+
function bt() {
|
|
2893
|
+
const s = L(!1), { storage: t, signOut: e } = vt(), n = new Ve(), r = T(() => q.value?.userName != null);
|
|
2894
|
+
async function a(m, C) {
|
|
2895
|
+
let y = !1;
|
|
2896
2896
|
try {
|
|
2897
|
-
s.value = !0,
|
|
2898
|
-
token:
|
|
2897
|
+
s.value = !0, y = await n.validatePasswordResetToken(m, {
|
|
2898
|
+
token: C
|
|
2899
2899
|
});
|
|
2900
2900
|
} catch {
|
|
2901
2901
|
} finally {
|
|
2902
2902
|
s.value = !1;
|
|
2903
2903
|
}
|
|
2904
|
-
return
|
|
2904
|
+
return y;
|
|
2905
2905
|
}
|
|
2906
|
-
async function
|
|
2907
|
-
return
|
|
2906
|
+
async function i(m) {
|
|
2907
|
+
return n.validatePassword(m);
|
|
2908
2908
|
}
|
|
2909
|
-
async function
|
|
2910
|
-
return
|
|
2911
|
-
newPassword:
|
|
2912
|
-
token:
|
|
2909
|
+
async function u(m, C, y) {
|
|
2910
|
+
return n.resetPasswordByToken(m, {
|
|
2911
|
+
newPassword: C,
|
|
2912
|
+
token: y
|
|
2913
2913
|
});
|
|
2914
2914
|
}
|
|
2915
|
-
async function
|
|
2916
|
-
|
|
2915
|
+
async function d(m, C) {
|
|
2916
|
+
S.debug("signIn - Entry point");
|
|
2917
2917
|
try {
|
|
2918
2918
|
s.value = !0;
|
|
2919
|
-
const
|
|
2920
|
-
if (
|
|
2921
|
-
return
|
|
2922
|
-
|
|
2923
|
-
const
|
|
2919
|
+
const y = await n.login({ userName: m, password: C });
|
|
2920
|
+
if (S.debug("signIn - Cookie login completed:", y), !y.succeeded)
|
|
2921
|
+
return y;
|
|
2922
|
+
S.debug("signIn - Requesting token...");
|
|
2923
|
+
const x = await pe({
|
|
2924
2924
|
grant_type: "password",
|
|
2925
|
-
username:
|
|
2926
|
-
password:
|
|
2925
|
+
username: m,
|
|
2926
|
+
password: C,
|
|
2927
2927
|
scope: "offline_access"
|
|
2928
2928
|
});
|
|
2929
|
-
|
|
2930
|
-
const
|
|
2931
|
-
if (
|
|
2932
|
-
return q.value =
|
|
2929
|
+
x && (R.value = x, fe(R.value), S.debug("signIn - Token saved:", R.value));
|
|
2930
|
+
const F = await n.getCurrentUser();
|
|
2931
|
+
if (F)
|
|
2932
|
+
return q.value = F, y;
|
|
2933
2933
|
throw { succeeded: !1 };
|
|
2934
|
-
} catch (
|
|
2935
|
-
|
|
2936
|
-
let
|
|
2937
|
-
if (
|
|
2934
|
+
} catch (y) {
|
|
2935
|
+
S.error("signIn failed:", y);
|
|
2936
|
+
let x = y.message;
|
|
2937
|
+
if (y.response)
|
|
2938
2938
|
try {
|
|
2939
|
-
const
|
|
2940
|
-
|
|
2939
|
+
const F = JSON.parse(y.response);
|
|
2940
|
+
x = F.errorDescription || F.errors?.[0]?.description || F.error || x;
|
|
2941
2941
|
} catch {
|
|
2942
2942
|
}
|
|
2943
|
-
return { succeeded: !1, error:
|
|
2943
|
+
return { succeeded: !1, error: x, status: y.status };
|
|
2944
2944
|
} finally {
|
|
2945
2945
|
s.value = !1;
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
|
-
async function
|
|
2949
|
-
|
|
2948
|
+
async function v() {
|
|
2949
|
+
S.debug("signOut - Entry point"), q.value = void 0, xt(), R.value = null, t.value?.providerType ? await e(t.value.providerType) : n.logout();
|
|
2950
2950
|
}
|
|
2951
|
-
let
|
|
2952
|
-
async function
|
|
2953
|
-
return
|
|
2954
|
-
|
|
2951
|
+
let E = null;
|
|
2952
|
+
async function f() {
|
|
2953
|
+
return E || (E = (async () => {
|
|
2954
|
+
S.debug("loadUser - Entry point");
|
|
2955
2955
|
try {
|
|
2956
2956
|
s.value = !0, performance.mark("vc:auth-start");
|
|
2957
|
-
const [
|
|
2958
|
-
q.value =
|
|
2959
|
-
} catch (
|
|
2960
|
-
|
|
2957
|
+
const [m] = await Promise.all([n.getCurrentUser(), b()]);
|
|
2958
|
+
q.value = m, performance.mark("vc:auth-done"), S.debug("User details loaded:", q.value);
|
|
2959
|
+
} catch (m) {
|
|
2960
|
+
S.error("loadUser failed:", m);
|
|
2961
2961
|
} finally {
|
|
2962
|
-
s.value = !1,
|
|
2962
|
+
s.value = !1, E = null;
|
|
2963
2963
|
}
|
|
2964
2964
|
return { ...q.value };
|
|
2965
|
-
})(),
|
|
2965
|
+
})(), E);
|
|
2966
2966
|
}
|
|
2967
|
-
async function
|
|
2967
|
+
async function c(m) {
|
|
2968
2968
|
try {
|
|
2969
|
-
return s.value = !0, await
|
|
2970
|
-
} catch (
|
|
2971
|
-
return { succeeded: !1, error:
|
|
2969
|
+
return s.value = !0, await n.requestPasswordReset(m), { succeeded: !0 };
|
|
2970
|
+
} catch (C) {
|
|
2971
|
+
return { succeeded: !1, error: C };
|
|
2972
2972
|
} finally {
|
|
2973
2973
|
s.value = !1;
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
|
-
async function
|
|
2977
|
-
let
|
|
2976
|
+
async function g(m, C) {
|
|
2977
|
+
let y;
|
|
2978
2978
|
try {
|
|
2979
2979
|
s.value = !0;
|
|
2980
|
-
const
|
|
2981
|
-
oldPassword:
|
|
2982
|
-
newPassword:
|
|
2980
|
+
const x = {
|
|
2981
|
+
oldPassword: m,
|
|
2982
|
+
newPassword: C
|
|
2983
2983
|
};
|
|
2984
|
-
|
|
2985
|
-
} catch (
|
|
2986
|
-
return { succeeded: !1, errors: [
|
|
2984
|
+
y = await n.changeCurrentUserPassword(x);
|
|
2985
|
+
} catch (x) {
|
|
2986
|
+
return { succeeded: !1, errors: [x.message] };
|
|
2987
2987
|
} finally {
|
|
2988
2988
|
s.value = !1;
|
|
2989
2989
|
}
|
|
2990
|
-
return
|
|
2990
|
+
return y;
|
|
2991
2991
|
}
|
|
2992
|
-
async function
|
|
2993
|
-
let
|
|
2992
|
+
async function U() {
|
|
2993
|
+
let m = null;
|
|
2994
2994
|
try {
|
|
2995
|
-
|
|
2996
|
-
} catch (
|
|
2997
|
-
throw
|
|
2995
|
+
m = await n.getLoginTypes();
|
|
2996
|
+
} catch (C) {
|
|
2997
|
+
throw S.error("getLoginType failed:", C), C;
|
|
2998
2998
|
}
|
|
2999
|
-
return
|
|
3000
|
-
}
|
|
3001
|
-
const
|
|
3002
|
-
async function
|
|
3003
|
-
if (
|
|
3004
|
-
return
|
|
3005
|
-
const
|
|
3006
|
-
if (
|
|
3007
|
-
hasToken: !!
|
|
3008
|
-
expiresAt:
|
|
3009
|
-
now: new Date(
|
|
3010
|
-
shouldRefresh:
|
|
3011
|
-
hasRefreshToken: !!
|
|
3012
|
-
}),
|
|
3013
|
-
|
|
3014
|
-
const
|
|
2999
|
+
return m;
|
|
3000
|
+
}
|
|
3001
|
+
const I = 60 * 1e3;
|
|
3002
|
+
async function b() {
|
|
3003
|
+
if (S.debug("getAccessToken - Entry point"), R.value || (R.value = gt()), !R.value)
|
|
3004
|
+
return S.debug("getAccessToken - No auth data available"), null;
|
|
3005
|
+
const m = Date.now(), C = R.value.expires_at, y = C ? m >= C - I : !1;
|
|
3006
|
+
if (S.debug("getAccessToken - Token status:", {
|
|
3007
|
+
hasToken: !!R.value.access_token,
|
|
3008
|
+
expiresAt: C ? new Date(C).toISOString() : "not set",
|
|
3009
|
+
now: new Date(m).toISOString(),
|
|
3010
|
+
shouldRefresh: y,
|
|
3011
|
+
hasRefreshToken: !!R.value.refresh_token
|
|
3012
|
+
}), y && R.value.refresh_token) {
|
|
3013
|
+
S.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3014
|
+
const x = await pe({
|
|
3015
3015
|
grant_type: "refresh_token",
|
|
3016
|
-
refresh_token:
|
|
3016
|
+
refresh_token: R.value.refresh_token,
|
|
3017
3017
|
scope: "offline_access"
|
|
3018
3018
|
});
|
|
3019
|
-
|
|
3020
|
-
expiresAt:
|
|
3021
|
-
})) :
|
|
3019
|
+
x ? (x.refresh_token = x.refresh_token ?? R.value.refresh_token, R.value = x, fe(R.value), S.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3020
|
+
expiresAt: x.expires_at ? new Date(x.expires_at).toISOString() : "not set"
|
|
3021
|
+
})) : S.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3022
3022
|
}
|
|
3023
|
-
return
|
|
3023
|
+
return R.value?.access_token ?? R.value?.token ?? null;
|
|
3024
3024
|
}
|
|
3025
3025
|
return {
|
|
3026
|
-
user:
|
|
3027
|
-
loading:
|
|
3028
|
-
isAdministrator:
|
|
3029
|
-
isAuthenticated:
|
|
3030
|
-
loadUser:
|
|
3031
|
-
signIn:
|
|
3032
|
-
signOut:
|
|
3033
|
-
validateToken:
|
|
3034
|
-
validatePassword:
|
|
3035
|
-
resetPasswordByToken:
|
|
3036
|
-
requestPasswordReset:
|
|
3037
|
-
changeUserPassword:
|
|
3038
|
-
getLoginType:
|
|
3039
|
-
getAccessToken:
|
|
3026
|
+
user: T(() => q.value),
|
|
3027
|
+
loading: T(() => s.value),
|
|
3028
|
+
isAdministrator: T(() => q.value?.isAdministrator),
|
|
3029
|
+
isAuthenticated: r,
|
|
3030
|
+
loadUser: f,
|
|
3031
|
+
signIn: d,
|
|
3032
|
+
signOut: v,
|
|
3033
|
+
validateToken: a,
|
|
3034
|
+
validatePassword: i,
|
|
3035
|
+
resetPasswordByToken: u,
|
|
3036
|
+
requestPasswordReset: c,
|
|
3037
|
+
changeUserPassword: g,
|
|
3038
|
+
getLoginType: U,
|
|
3039
|
+
getAccessToken: b
|
|
3040
3040
|
};
|
|
3041
3041
|
}
|
|
3042
|
-
const
|
|
3043
|
-
const s =
|
|
3042
|
+
const Et = Ge(() => {
|
|
3043
|
+
const s = bt();
|
|
3044
3044
|
return {
|
|
3045
3045
|
user: s.user,
|
|
3046
3046
|
loading: s.loading,
|
|
@@ -3051,23 +3051,23 @@ const bt = Fe(() => {
|
|
|
3051
3051
|
getAccessToken: s.getAccessToken
|
|
3052
3052
|
};
|
|
3053
3053
|
});
|
|
3054
|
-
let
|
|
3055
|
-
function
|
|
3056
|
-
ye = s;
|
|
3057
|
-
}
|
|
3058
|
-
function en(s) {
|
|
3054
|
+
let Se, we, Pe, _t;
|
|
3055
|
+
function tn(s) {
|
|
3059
3056
|
Se = s;
|
|
3060
3057
|
}
|
|
3061
|
-
function
|
|
3058
|
+
function rn(s) {
|
|
3062
3059
|
we = s;
|
|
3063
3060
|
}
|
|
3064
|
-
function
|
|
3065
|
-
|
|
3061
|
+
function nn(s) {
|
|
3062
|
+
Pe = s;
|
|
3063
|
+
}
|
|
3064
|
+
function an(s) {
|
|
3065
|
+
_t = s;
|
|
3066
3066
|
}
|
|
3067
|
-
function
|
|
3067
|
+
function me(s, t) {
|
|
3068
3068
|
if (t.length === 0)
|
|
3069
3069
|
return { path: s ? `/${s}` : "/", query: {} };
|
|
3070
|
-
const e = t[0], n =
|
|
3070
|
+
const e = t[0], n = ve(e.url);
|
|
3071
3071
|
let r;
|
|
3072
3072
|
for (let u = t.length - 1; u >= 1; u--)
|
|
3073
3073
|
if (t[u].visible) {
|
|
@@ -3076,15 +3076,15 @@ function pe(s, t) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
let a = s ? `/${s}` : "";
|
|
3078
3078
|
if (n && (a += `/${n}`), r) {
|
|
3079
|
-
const u =
|
|
3079
|
+
const u = ve(r.url);
|
|
3080
3080
|
u && (a += `/${u}`), r.param && (a += `/${r.param}`);
|
|
3081
3081
|
}
|
|
3082
|
-
const
|
|
3082
|
+
const i = {};
|
|
3083
3083
|
for (const u of t)
|
|
3084
|
-
u.visible && u.query && Object.assign(
|
|
3085
|
-
return { path: a || "/", query:
|
|
3084
|
+
u.visible && u.query && Object.assign(i, u.query);
|
|
3085
|
+
return { path: a || "/", query: i };
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function sn(s, t) {
|
|
3088
3088
|
let e = s.split("/").filter(Boolean);
|
|
3089
3089
|
return t && e.length > 0 && e[0] === t && (e = e.slice(1)), e.length === 0 ? {} : {
|
|
3090
3090
|
workspaceUrl: e[0],
|
|
@@ -3092,183 +3092,183 @@ function nn(s, t) {
|
|
|
3092
3092
|
param: e[2]
|
|
3093
3093
|
};
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function ve(s) {
|
|
3096
3096
|
if (s)
|
|
3097
3097
|
return s.replace(/^\/+|\/+$/g, "") || void 0;
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function ge(s) {
|
|
3100
3100
|
const t = s.currentRoute.value.params;
|
|
3101
3101
|
return Object.values(t).find((e) => typeof e == "string" && e) || "";
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function Ct(s, t) {
|
|
3104
3104
|
function e() {
|
|
3105
|
-
const { path: r, query: a } =
|
|
3105
|
+
const { path: r, query: a } = me(ge(s), t.blades.value);
|
|
3106
3106
|
s.push({ path: r, query: a });
|
|
3107
3107
|
}
|
|
3108
3108
|
function n() {
|
|
3109
|
-
const { path: r, query: a } =
|
|
3109
|
+
const { path: r, query: a } = me(ge(s), t.blades.value);
|
|
3110
3110
|
s.replace({ path: r, query: a });
|
|
3111
3111
|
}
|
|
3112
3112
|
return { syncUrlPush: e, syncUrlReplace: n };
|
|
3113
3113
|
}
|
|
3114
|
-
const
|
|
3114
|
+
const Ut = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
3115
3115
|
function P(s) {
|
|
3116
3116
|
throw new Error(`[vc-shell] ${s} requires blade context.
|
|
3117
|
-
${
|
|
3117
|
+
${Ut}`);
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3120
|
-
const s = (
|
|
3119
|
+
function At() {
|
|
3120
|
+
const s = (ee() ? z(ye, void 0) : void 0) ?? we, t = (ee() ? z(ze, void 0) : void 0) ?? Pe;
|
|
3121
3121
|
if (!s || !t)
|
|
3122
3122
|
throw new Error(
|
|
3123
3123
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
3124
3124
|
);
|
|
3125
|
-
const e = s, n = t, r =
|
|
3126
|
-
let
|
|
3125
|
+
const e = s, n = t, r = ee() ? z(Je, void 0) : void 0, a = ee() ? z(qe, void 0) : void 0;
|
|
3126
|
+
let i;
|
|
3127
3127
|
function u() {
|
|
3128
|
-
if (
|
|
3129
|
-
const
|
|
3130
|
-
return
|
|
3131
|
-
}
|
|
3132
|
-
const
|
|
3133
|
-
let
|
|
3134
|
-
function b(
|
|
3135
|
-
if (
|
|
3128
|
+
if (i) return i;
|
|
3129
|
+
const _ = Se?.router;
|
|
3130
|
+
return _ && (i = Ct(_, e)), i;
|
|
3131
|
+
}
|
|
3132
|
+
const d = T(() => (r || P("id"), r.value.id)), v = T(() => (r || P("param"), r.value.param)), E = T(() => (r || P("options"), r.value.options)), f = T(() => (r || P("query"), r.value.query)), c = T(() => (r || P("closable"), r.value.parentId !== void 0)), g = T(() => (r || P("expanded"), e.activeBlade.value?.id === r.value.id)), U = T(() => (r || P("name"), r.value.name));
|
|
3133
|
+
let I = !1;
|
|
3134
|
+
function b(_) {
|
|
3135
|
+
if (I) {
|
|
3136
3136
|
console.warn(
|
|
3137
3137
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
3138
3138
|
);
|
|
3139
3139
|
return;
|
|
3140
3140
|
}
|
|
3141
|
-
|
|
3142
|
-
const j =
|
|
3143
|
-
|
|
3141
|
+
I = !0;
|
|
3142
|
+
const j = Be(_) ? _ : L(_);
|
|
3143
|
+
be(Ke, j);
|
|
3144
3144
|
}
|
|
3145
|
-
async function
|
|
3146
|
-
const { isWorkspace: j, ...
|
|
3145
|
+
async function m(_) {
|
|
3146
|
+
const { isWorkspace: j, ...se } = _;
|
|
3147
3147
|
if (j)
|
|
3148
|
-
await e.openWorkspace(
|
|
3148
|
+
await e.openWorkspace(se);
|
|
3149
3149
|
else {
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3150
|
+
const ce = r?.value.id;
|
|
3151
|
+
ce ? await e.openBlade({ ...se, parentId: ce }) : await e.openBlade(se);
|
|
3152
3152
|
}
|
|
3153
3153
|
e.activeBlade.value?.url && u()?.syncUrlPush();
|
|
3154
3154
|
}
|
|
3155
|
-
async function
|
|
3155
|
+
async function C() {
|
|
3156
3156
|
r || P("closeSelf()");
|
|
3157
|
-
const
|
|
3158
|
-
return
|
|
3157
|
+
const _ = await e.closeBlade(r.value.id);
|
|
3158
|
+
return _ || u()?.syncUrlReplace(), _;
|
|
3159
3159
|
}
|
|
3160
|
-
async function
|
|
3160
|
+
async function y() {
|
|
3161
3161
|
r || P("closeChildren()"), await e.closeChildren(r.value.id), u()?.syncUrlReplace();
|
|
3162
3162
|
}
|
|
3163
|
-
async function
|
|
3163
|
+
async function x(_) {
|
|
3164
3164
|
r || P("replaceWith()"), await e.replaceCurrentBlade({
|
|
3165
|
-
...
|
|
3165
|
+
..._,
|
|
3166
3166
|
parentId: r.value.parentId
|
|
3167
3167
|
}), e.activeBlade.value?.url && u()?.syncUrlReplace();
|
|
3168
3168
|
}
|
|
3169
|
-
async function
|
|
3169
|
+
async function F(_) {
|
|
3170
3170
|
r || P("coverWith()"), await e.coverCurrentBlade({
|
|
3171
|
-
...
|
|
3171
|
+
..._,
|
|
3172
3172
|
parentId: r.value.parentId
|
|
3173
3173
|
}), e.activeBlade.value?.url && u()?.syncUrlPush();
|
|
3174
3174
|
}
|
|
3175
|
-
async function
|
|
3176
|
-
return r || P("callParent()"), n.callParent(r.value.id,
|
|
3175
|
+
async function Z(_, j) {
|
|
3176
|
+
return r || P("callParent()"), n.callParent(r.value.id, _, j);
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3179
|
-
r || P("exposeToChildren()"), n.exposeToChildren(r.value.id,
|
|
3178
|
+
function X(_) {
|
|
3179
|
+
r || P("exposeToChildren()"), n.exposeToChildren(r.value.id, _);
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3182
|
-
r || P("onBeforeClose()"), e.registerBeforeClose(r.value.id,
|
|
3181
|
+
function Y(_) {
|
|
3182
|
+
r || P("onBeforeClose()"), e.registerBeforeClose(r.value.id, _);
|
|
3183
3183
|
}
|
|
3184
|
-
function l(
|
|
3185
|
-
r || P("setError()"), e.setBladeError(r.value.id,
|
|
3184
|
+
function l(_) {
|
|
3185
|
+
r || P("setError()"), e.setBladeError(r.value.id, _);
|
|
3186
3186
|
}
|
|
3187
3187
|
function h() {
|
|
3188
3188
|
r || P("clearError()"), e.clearBladeError(r.value.id);
|
|
3189
3189
|
}
|
|
3190
|
-
let
|
|
3191
|
-
function
|
|
3190
|
+
let p = 0;
|
|
3191
|
+
function A(_) {
|
|
3192
3192
|
a || P("addBanner()");
|
|
3193
|
-
const j = `banner-${r.value.id}-${++
|
|
3193
|
+
const j = `banner-${r.value.id}-${++p}`;
|
|
3194
3194
|
return a.value.push({
|
|
3195
|
-
...
|
|
3195
|
+
..._,
|
|
3196
3196
|
id: j,
|
|
3197
|
-
dismissible:
|
|
3197
|
+
dismissible: _.dismissible ?? !1
|
|
3198
3198
|
}), j;
|
|
3199
3199
|
}
|
|
3200
|
-
function w(
|
|
3201
|
-
a || P("removeBanner()"), a.value = a.value.filter((j) => j.id !==
|
|
3200
|
+
function w(_) {
|
|
3201
|
+
a || P("removeBanner()"), a.value = a.value.filter((j) => j.id !== _);
|
|
3202
3202
|
}
|
|
3203
3203
|
function B() {
|
|
3204
|
-
a || P("clearBanners()"), a.value = a.value.filter((
|
|
3204
|
+
a || P("clearBanners()"), a.value = a.value.filter((_) => _._system);
|
|
3205
3205
|
}
|
|
3206
|
-
let K = !1,
|
|
3207
|
-
function
|
|
3206
|
+
let K = !1, he = !1;
|
|
3207
|
+
function Ie(_) {
|
|
3208
3208
|
if (r || P("onActivated()"), K) {
|
|
3209
3209
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
3210
3210
|
return;
|
|
3211
3211
|
}
|
|
3212
3212
|
K = !0, W(g, (j) => {
|
|
3213
|
-
j &&
|
|
3213
|
+
j && _();
|
|
3214
3214
|
});
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3217
|
-
if (r || P("onDeactivated()"),
|
|
3216
|
+
function Re(_) {
|
|
3217
|
+
if (r || P("onDeactivated()"), he) {
|
|
3218
3218
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
3219
3219
|
return;
|
|
3220
3220
|
}
|
|
3221
|
-
|
|
3222
|
-
j ||
|
|
3221
|
+
he = !0, W(g, (j) => {
|
|
3222
|
+
j || _();
|
|
3223
3223
|
});
|
|
3224
3224
|
}
|
|
3225
3225
|
return {
|
|
3226
|
-
id:
|
|
3226
|
+
id: d,
|
|
3227
3227
|
param: v,
|
|
3228
|
-
options:
|
|
3229
|
-
query:
|
|
3228
|
+
options: E,
|
|
3229
|
+
query: f,
|
|
3230
3230
|
closable: c,
|
|
3231
3231
|
expanded: g,
|
|
3232
|
-
name:
|
|
3232
|
+
name: U,
|
|
3233
3233
|
provideBladeData: b,
|
|
3234
|
-
openBlade:
|
|
3235
|
-
closeSelf:
|
|
3236
|
-
closeChildren:
|
|
3237
|
-
replaceWith:
|
|
3238
|
-
coverWith:
|
|
3239
|
-
callParent:
|
|
3240
|
-
exposeToChildren:
|
|
3241
|
-
onBeforeClose:
|
|
3242
|
-
onActivated:
|
|
3243
|
-
onDeactivated:
|
|
3234
|
+
openBlade: m,
|
|
3235
|
+
closeSelf: C,
|
|
3236
|
+
closeChildren: y,
|
|
3237
|
+
replaceWith: x,
|
|
3238
|
+
coverWith: F,
|
|
3239
|
+
callParent: Z,
|
|
3240
|
+
exposeToChildren: X,
|
|
3241
|
+
onBeforeClose: Y,
|
|
3242
|
+
onActivated: Ie,
|
|
3243
|
+
onDeactivated: Re,
|
|
3244
3244
|
setError: l,
|
|
3245
3245
|
clearError: h,
|
|
3246
|
-
addBanner:
|
|
3246
|
+
addBanner: A,
|
|
3247
3247
|
removeBanner: w,
|
|
3248
3248
|
clearBanners: B
|
|
3249
3249
|
};
|
|
3250
3250
|
}
|
|
3251
|
-
let
|
|
3252
|
-
function
|
|
3253
|
-
return `blade_${++
|
|
3251
|
+
let Tt = 0;
|
|
3252
|
+
function re() {
|
|
3253
|
+
return `blade_${++Tt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3256
|
-
const e =
|
|
3255
|
+
function on(s, t) {
|
|
3256
|
+
const e = L([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = T(() => e.value[0]), u = T(() => e.value), d = T(() => {
|
|
3257
3257
|
for (let l = e.value.length - 1; l >= 0; l--)
|
|
3258
3258
|
if (e.value[l].visible) return e.value[l];
|
|
3259
3259
|
});
|
|
3260
3260
|
function v(l) {
|
|
3261
3261
|
n.delete(l), r.delete(l), a.delete(l);
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function E(l) {
|
|
3264
3264
|
const h = s.getBlade(l);
|
|
3265
3265
|
if (h)
|
|
3266
3266
|
return h.route;
|
|
3267
3267
|
}
|
|
3268
|
-
async function
|
|
3268
|
+
async function f(l) {
|
|
3269
3269
|
for (let h = l.length - 1; h >= 0; h--) {
|
|
3270
|
-
const
|
|
3271
|
-
if (
|
|
3270
|
+
const p = n.get(l[h].id);
|
|
3271
|
+
if (p && await p())
|
|
3272
3272
|
return !0;
|
|
3273
3273
|
}
|
|
3274
3274
|
return !1;
|
|
@@ -3278,57 +3278,57 @@ function an(s, t) {
|
|
|
3278
3278
|
a.get(h.id)?.(), v(h.id);
|
|
3279
3279
|
}
|
|
3280
3280
|
async function g(l) {
|
|
3281
|
-
if (
|
|
3282
|
-
const
|
|
3283
|
-
if (!
|
|
3281
|
+
if (i.value?.name === l.name) return;
|
|
3282
|
+
const p = s.getBlade(l.name);
|
|
3283
|
+
if (!p)
|
|
3284
3284
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3285
|
-
if (t &&
|
|
3285
|
+
if (t && p.permissions && !t(p.permissions)) {
|
|
3286
3286
|
console.warn(`[BladeStack] Access denied to workspace '${l.name}'`);
|
|
3287
3287
|
return;
|
|
3288
3288
|
}
|
|
3289
3289
|
c([...e.value]);
|
|
3290
|
-
const
|
|
3291
|
-
id:
|
|
3290
|
+
const A = {
|
|
3291
|
+
id: re(),
|
|
3292
3292
|
name: l.name,
|
|
3293
|
-
url:
|
|
3293
|
+
url: E(l.name),
|
|
3294
3294
|
// workspace blades don't have param when opened first
|
|
3295
3295
|
query: l.query,
|
|
3296
3296
|
options: l.options,
|
|
3297
3297
|
visible: !0
|
|
3298
3298
|
};
|
|
3299
|
-
e.value = [
|
|
3299
|
+
e.value = [A], l.onOpen && r.set(A.id, l.onOpen), l.onClose && a.set(A.id, l.onClose), l.onOpen?.();
|
|
3300
3300
|
}
|
|
3301
|
-
async function
|
|
3301
|
+
async function U(l) {
|
|
3302
3302
|
if (!s.getBlade(l.name))
|
|
3303
3303
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3304
|
-
const h = l.parentId ??
|
|
3304
|
+
const h = l.parentId ?? d.value?.id ?? i.value?.id;
|
|
3305
3305
|
if (!h)
|
|
3306
3306
|
throw new Error("[BladeStack] Cannot open blade: no parent blade found");
|
|
3307
|
-
const
|
|
3308
|
-
if (
|
|
3307
|
+
const p = e.value.findIndex((B) => B.id === h);
|
|
3308
|
+
if (p === -1)
|
|
3309
3309
|
throw new Error(`[BladeStack] Parent blade '${h}' not found in stack`);
|
|
3310
|
-
const
|
|
3311
|
-
if (
|
|
3310
|
+
const A = e.value.slice(p + 1);
|
|
3311
|
+
if (A.length > 0 && await f(A))
|
|
3312
3312
|
return;
|
|
3313
|
-
c(
|
|
3313
|
+
c(A);
|
|
3314
3314
|
const w = {
|
|
3315
|
-
id:
|
|
3315
|
+
id: re(),
|
|
3316
3316
|
name: l.name,
|
|
3317
|
-
url:
|
|
3317
|
+
url: E(l.name),
|
|
3318
3318
|
param: l.param,
|
|
3319
3319
|
query: l.query,
|
|
3320
3320
|
options: l.options,
|
|
3321
3321
|
parentId: h,
|
|
3322
3322
|
visible: !0
|
|
3323
3323
|
};
|
|
3324
|
-
e.value = [...e.value.slice(0,
|
|
3324
|
+
e.value = [...e.value.slice(0, p + 1), w], l.onOpen && r.set(w.id, l.onOpen), l.onClose && a.set(w.id, l.onClose), l.onOpen?.();
|
|
3325
3325
|
}
|
|
3326
|
-
async function
|
|
3326
|
+
async function I(l) {
|
|
3327
3327
|
const h = e.value.findIndex((B) => B.id === l);
|
|
3328
3328
|
if (h === -1 || h === 0) return !1;
|
|
3329
|
-
const
|
|
3330
|
-
if (await
|
|
3331
|
-
c(
|
|
3329
|
+
const p = e.value.slice(h);
|
|
3330
|
+
if (await f(p)) return !0;
|
|
3331
|
+
c(p), e.value = e.value.slice(0, h);
|
|
3332
3332
|
const w = e.value.length - 1;
|
|
3333
3333
|
if (w > 0 && !e.value[w].visible) {
|
|
3334
3334
|
const B = [...e.value];
|
|
@@ -3337,23 +3337,23 @@ function an(s, t) {
|
|
|
3337
3337
|
return !1;
|
|
3338
3338
|
}
|
|
3339
3339
|
async function b(l) {
|
|
3340
|
-
const h =
|
|
3340
|
+
const h = d.value;
|
|
3341
3341
|
if (!h)
|
|
3342
3342
|
throw new Error("[BladeStack] No active blade to replace");
|
|
3343
3343
|
if (!s.getBlade(l.name))
|
|
3344
3344
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3345
|
-
const
|
|
3346
|
-
if (
|
|
3345
|
+
const p = e.value.findIndex((K) => K.id === h.id);
|
|
3346
|
+
if (p === -1)
|
|
3347
3347
|
throw new Error(`[BladeStack] Active blade '${h.id}' not found in stack`);
|
|
3348
|
-
const
|
|
3349
|
-
if (
|
|
3350
|
-
if (await
|
|
3351
|
-
c(
|
|
3348
|
+
const A = e.value.slice(p + 1);
|
|
3349
|
+
if (A.length > 0) {
|
|
3350
|
+
if (await f(A)) return;
|
|
3351
|
+
c(A);
|
|
3352
3352
|
}
|
|
3353
3353
|
const w = {
|
|
3354
|
-
id:
|
|
3354
|
+
id: re(),
|
|
3355
3355
|
name: l.name,
|
|
3356
|
-
url:
|
|
3356
|
+
url: E(l.name),
|
|
3357
3357
|
param: l.param,
|
|
3358
3358
|
query: l.query,
|
|
3359
3359
|
options: l.options,
|
|
@@ -3361,114 +3361,114 @@ function an(s, t) {
|
|
|
3361
3361
|
visible: !0
|
|
3362
3362
|
};
|
|
3363
3363
|
c([h]);
|
|
3364
|
-
const B = [...e.value.slice(0,
|
|
3364
|
+
const B = [...e.value.slice(0, p), w, ...e.value.slice(p + 1)];
|
|
3365
3365
|
e.value = B, l.onOpen && r.set(w.id, l.onOpen), l.onClose && a.set(w.id, l.onClose), l.onOpen?.();
|
|
3366
3366
|
}
|
|
3367
|
-
async function
|
|
3368
|
-
const h =
|
|
3367
|
+
async function m(l) {
|
|
3368
|
+
const h = d.value;
|
|
3369
3369
|
if (!h)
|
|
3370
3370
|
throw new Error("[BladeStack] No active blade to cover");
|
|
3371
3371
|
if (!s.getBlade(l.name))
|
|
3372
3372
|
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3373
|
-
const
|
|
3374
|
-
if (
|
|
3373
|
+
const p = e.value.findIndex((K) => K.id === h.id);
|
|
3374
|
+
if (p === -1)
|
|
3375
3375
|
throw new Error(`[BladeStack] Active blade '${h.id}' not found in stack`);
|
|
3376
|
-
const
|
|
3377
|
-
if (
|
|
3378
|
-
if (await
|
|
3379
|
-
c(
|
|
3376
|
+
const A = e.value.slice(p + 1);
|
|
3377
|
+
if (A.length > 0) {
|
|
3378
|
+
if (await f(A)) return;
|
|
3379
|
+
c(A);
|
|
3380
3380
|
}
|
|
3381
3381
|
const w = {
|
|
3382
|
-
id:
|
|
3382
|
+
id: re(),
|
|
3383
3383
|
name: l.name,
|
|
3384
|
-
url:
|
|
3384
|
+
url: E(l.name),
|
|
3385
3385
|
param: l.param,
|
|
3386
3386
|
query: l.query,
|
|
3387
3387
|
options: l.options,
|
|
3388
3388
|
parentId: h.id,
|
|
3389
3389
|
visible: !0
|
|
3390
|
-
}, B = e.value.slice(0,
|
|
3390
|
+
}, B = e.value.slice(0, p);
|
|
3391
3391
|
B.push({ ...h, visible: !1 }), B.push(w), e.value = B, l.onOpen && r.set(w.id, l.onOpen), l.onClose && a.set(w.id, l.onClose), l.onOpen?.();
|
|
3392
3392
|
}
|
|
3393
|
-
async function
|
|
3393
|
+
async function C(l) {
|
|
3394
3394
|
const h = e.value.findIndex((w) => w.id === l);
|
|
3395
3395
|
if (h === -1) return;
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3396
|
+
const p = e.value.slice(h + 1);
|
|
3397
|
+
p.length === 0 || await f(p) || (c(p), e.value = e.value.slice(0, h + 1));
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function y(l, h) {
|
|
3400
3400
|
n.set(l, h);
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3402
|
+
function x(l) {
|
|
3403
3403
|
n.delete(l);
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const
|
|
3407
|
-
if (
|
|
3408
|
-
const
|
|
3409
|
-
|
|
3405
|
+
function F(l, h) {
|
|
3406
|
+
const p = e.value.findIndex((w) => w.id === l);
|
|
3407
|
+
if (p === -1) return;
|
|
3408
|
+
const A = [...e.value];
|
|
3409
|
+
A[p] = { ...A[p], error: h }, e.value = A;
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3412
|
-
const h = e.value.findIndex((
|
|
3411
|
+
function Z(l) {
|
|
3412
|
+
const h = e.value.findIndex((A) => A.id === l);
|
|
3413
3413
|
if (h === -1) return;
|
|
3414
|
-
const
|
|
3415
|
-
|
|
3414
|
+
const p = [...e.value];
|
|
3415
|
+
p[h] = { ...p[h], error: void 0 }, e.value = p;
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3418
|
-
const
|
|
3419
|
-
if (
|
|
3420
|
-
const
|
|
3421
|
-
|
|
3417
|
+
function X(l, h) {
|
|
3418
|
+
const p = e.value.findIndex((w) => w.id === l);
|
|
3419
|
+
if (p === -1 || e.value[p].title === h) return;
|
|
3420
|
+
const A = [...e.value];
|
|
3421
|
+
A[p] = { ...A[p], title: h }, e.value = A;
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function Y(l) {
|
|
3424
3424
|
for (const h of e.value)
|
|
3425
3425
|
v(h.id);
|
|
3426
3426
|
e.value = l;
|
|
3427
3427
|
}
|
|
3428
3428
|
return {
|
|
3429
|
-
workspace:
|
|
3429
|
+
workspace: i,
|
|
3430
3430
|
blades: u,
|
|
3431
|
-
activeBlade:
|
|
3431
|
+
activeBlade: d,
|
|
3432
3432
|
openWorkspace: g,
|
|
3433
|
-
openBlade:
|
|
3434
|
-
closeBlade:
|
|
3435
|
-
closeChildren:
|
|
3433
|
+
openBlade: U,
|
|
3434
|
+
closeBlade: I,
|
|
3435
|
+
closeChildren: C,
|
|
3436
3436
|
replaceCurrentBlade: b,
|
|
3437
|
-
coverCurrentBlade:
|
|
3438
|
-
registerBeforeClose:
|
|
3439
|
-
unregisterBeforeClose:
|
|
3440
|
-
setBladeError:
|
|
3441
|
-
clearBladeError:
|
|
3442
|
-
setBladeTitle:
|
|
3443
|
-
_restoreStack:
|
|
3437
|
+
coverCurrentBlade: m,
|
|
3438
|
+
registerBeforeClose: y,
|
|
3439
|
+
unregisterBeforeClose: x,
|
|
3440
|
+
setBladeError: F,
|
|
3441
|
+
clearBladeError: Z,
|
|
3442
|
+
setBladeTitle: X,
|
|
3443
|
+
_restoreStack: Y
|
|
3444
3444
|
};
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3447
|
-
const s = z(
|
|
3446
|
+
function yt() {
|
|
3447
|
+
const s = z(ye);
|
|
3448
3448
|
if (!s)
|
|
3449
3449
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
3450
3450
|
return s;
|
|
3451
3451
|
}
|
|
3452
|
-
const
|
|
3452
|
+
const St = {
|
|
3453
3453
|
url: "",
|
|
3454
3454
|
title: "Virto OZ",
|
|
3455
3455
|
width: 362,
|
|
3456
3456
|
expandedWidth: 500,
|
|
3457
3457
|
allowedOrigins: ["*"]
|
|
3458
|
-
},
|
|
3458
|
+
}, ln = "APP_AI_AGENT_URL", un = {
|
|
3459
3459
|
EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
|
|
3460
3460
|
AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
|
|
3461
3461
|
AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
|
|
3462
3462
|
AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
|
|
3463
|
-
},
|
|
3463
|
+
}, hn = {
|
|
3464
3464
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
3465
3465
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
3466
|
-
},
|
|
3467
|
-
function
|
|
3468
|
-
const s =
|
|
3469
|
-
s.value === "closed" && (s.value = "open",
|
|
3466
|
+
}, wt = "ai-agent-toggle", Pt = "lucide-sparkles", Ot = "AI Assistant", ne = k("ai-agent-panel");
|
|
3467
|
+
function It() {
|
|
3468
|
+
const s = L("closed"), t = L(!1), e = T(() => s.value !== "closed"), n = T(() => s.value === "expanded"), r = () => {
|
|
3469
|
+
s.value === "closed" && (s.value = "open", ne.debug("Panel opened"));
|
|
3470
3470
|
}, a = () => {
|
|
3471
|
-
s.value = "closed", t.value = !1,
|
|
3471
|
+
s.value = "closed", t.value = !1, ne.debug("Panel closed, reset initialized state");
|
|
3472
3472
|
};
|
|
3473
3473
|
return {
|
|
3474
3474
|
panelState: s,
|
|
@@ -3481,10 +3481,10 @@ function Ot() {
|
|
|
3481
3481
|
s.value === "closed" ? r() : a();
|
|
3482
3482
|
},
|
|
3483
3483
|
expand: () => {
|
|
3484
|
-
s.value === "open" && (s.value = "expanded",
|
|
3484
|
+
s.value === "open" && (s.value = "expanded", ne.debug("Panel expanded"));
|
|
3485
3485
|
},
|
|
3486
3486
|
collapse: () => {
|
|
3487
|
-
s.value === "expanded" && (s.value = "open",
|
|
3487
|
+
s.value === "expanded" && (s.value = "open", ne.debug("Panel collapsed"));
|
|
3488
3488
|
},
|
|
3489
3489
|
resetInitialized: () => {
|
|
3490
3490
|
t.value = !1;
|
|
@@ -3492,7 +3492,7 @@ function Ot() {
|
|
|
3492
3492
|
};
|
|
3493
3493
|
}
|
|
3494
3494
|
const ie = k("ai-agent-context");
|
|
3495
|
-
function
|
|
3495
|
+
function xe(s) {
|
|
3496
3496
|
return s ? {
|
|
3497
3497
|
id: s.id,
|
|
3498
3498
|
name: s.name,
|
|
@@ -3500,10 +3500,10 @@ function ge(s) {
|
|
|
3500
3500
|
param: s.param
|
|
3501
3501
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3504
|
-
const { userGetter: t, bladeGetter: e, localeGetter: n, tokenGetter: r } = s, a =
|
|
3505
|
-
const
|
|
3506
|
-
return
|
|
3503
|
+
function Rt(s) {
|
|
3504
|
+
const { userGetter: t, bladeGetter: e, localeGetter: n, tokenGetter: r } = s, a = L(/* @__PURE__ */ new Map()), i = () => {
|
|
3505
|
+
const U = e();
|
|
3506
|
+
return U ? a.value.get(U.id) ?? {
|
|
3507
3507
|
items: [],
|
|
3508
3508
|
type: "list",
|
|
3509
3509
|
suggestions: void 0
|
|
@@ -3512,70 +3512,70 @@ function It(s) {
|
|
|
3512
3512
|
type: "list",
|
|
3513
3513
|
suggestions: void 0
|
|
3514
3514
|
};
|
|
3515
|
-
}, u =
|
|
3515
|
+
}, u = T(() => i().items), d = T(() => i().type), v = T(() => i().suggestions), E = T(() => u.value.length);
|
|
3516
3516
|
return {
|
|
3517
3517
|
contextItems: u,
|
|
3518
|
-
contextType:
|
|
3518
|
+
contextType: d,
|
|
3519
3519
|
contextSuggestions: v,
|
|
3520
|
-
totalItemsCount:
|
|
3521
|
-
setContextData: (
|
|
3522
|
-
const
|
|
3523
|
-
return
|
|
3520
|
+
totalItemsCount: E,
|
|
3521
|
+
setContextData: (U, I, b, m) => {
|
|
3522
|
+
const C = e()?.id || m;
|
|
3523
|
+
return C ? U.length === 0 && !b ? (a.value.delete(C), ie.debug(`Context cleared for blade: ${C}`), { cleared: !0 }) : (a.value.set(C, { items: U, type: I, suggestions: b }), ie.debug(`Context set for blade: ${C}, items: ${U.length}, type: ${I}`), { cleared: !1 }) : (ie.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
3524
3524
|
},
|
|
3525
3525
|
buildInitPayload: async () => {
|
|
3526
|
-
const
|
|
3526
|
+
const U = r ? await r() ?? void 0 : void 0;
|
|
3527
3527
|
return {
|
|
3528
3528
|
userId: t()?.id || "",
|
|
3529
3529
|
locale: n(),
|
|
3530
|
-
blade:
|
|
3531
|
-
contextType:
|
|
3532
|
-
items:
|
|
3533
|
-
suggestions: v.value ?
|
|
3534
|
-
accessToken:
|
|
3530
|
+
blade: xe(e()),
|
|
3531
|
+
contextType: d.value,
|
|
3532
|
+
items: te(u.value),
|
|
3533
|
+
suggestions: v.value ? te(v.value) : void 0,
|
|
3534
|
+
accessToken: U
|
|
3535
3535
|
};
|
|
3536
3536
|
},
|
|
3537
3537
|
buildUpdatePayload: async () => {
|
|
3538
|
-
const
|
|
3538
|
+
const U = r ? await r() ?? void 0 : void 0;
|
|
3539
3539
|
return {
|
|
3540
|
-
blade:
|
|
3541
|
-
contextType:
|
|
3542
|
-
items:
|
|
3543
|
-
suggestions: v.value ?
|
|
3540
|
+
blade: xe(e()),
|
|
3541
|
+
contextType: d.value,
|
|
3542
|
+
items: te(u.value),
|
|
3543
|
+
suggestions: v.value ? te(v.value) : void 0,
|
|
3544
3544
|
locale: n(),
|
|
3545
|
-
accessToken:
|
|
3545
|
+
accessToken: U
|
|
3546
3546
|
};
|
|
3547
3547
|
}
|
|
3548
3548
|
};
|
|
3549
3549
|
}
|
|
3550
3550
|
const N = k("ai-agent-transport");
|
|
3551
|
-
function
|
|
3551
|
+
function Bt(s) {
|
|
3552
3552
|
try {
|
|
3553
3553
|
const t = atob(s.content), e = new Array(t.length);
|
|
3554
|
-
for (let
|
|
3555
|
-
e[
|
|
3554
|
+
for (let i = 0; i < t.length; i++)
|
|
3555
|
+
e[i] = t.charCodeAt(i);
|
|
3556
3556
|
const n = new Blob([new Uint8Array(e)], { type: s.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
|
|
3557
3557
|
a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), N.debug(`File downloaded: ${s.filename}`);
|
|
3558
3558
|
} catch (t) {
|
|
3559
3559
|
N.error("Failed to download file:", t);
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
3562
|
-
function
|
|
3563
|
-
const { getConfig: t, isEmbedded: e, navigateToBlade: n, reloadBlade: r } = s, a =
|
|
3564
|
-
function
|
|
3562
|
+
function jt(s) {
|
|
3563
|
+
const { getConfig: t, isEmbedded: e, navigateToBlade: n, reloadBlade: r } = s, a = je(null), i = L(!1), u = L(!1), d = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set();
|
|
3564
|
+
function f(g, U) {
|
|
3565
3565
|
switch (g) {
|
|
3566
3566
|
case "PREVIEW_CHANGES": {
|
|
3567
|
-
const b =
|
|
3568
|
-
v.size === 0 && N.warn("No preview changes handlers registered!"), v.forEach((
|
|
3567
|
+
const b = U;
|
|
3568
|
+
v.size === 0 && N.warn("No preview changes handlers registered!"), v.forEach((m) => {
|
|
3569
3569
|
try {
|
|
3570
|
-
|
|
3571
|
-
} catch (
|
|
3572
|
-
N.error("Error in preview handler:",
|
|
3570
|
+
m(b);
|
|
3571
|
+
} catch (C) {
|
|
3572
|
+
N.error("Error in preview handler:", C);
|
|
3573
3573
|
}
|
|
3574
3574
|
});
|
|
3575
3575
|
break;
|
|
3576
3576
|
}
|
|
3577
3577
|
case "NAVIGATE_TO_APP": {
|
|
3578
|
-
const b =
|
|
3578
|
+
const b = U;
|
|
3579
3579
|
n && b?.bladeName && (n(b.bladeName, b.param, b.options), N.debug(`Navigation requested to: ${b.bladeName}`));
|
|
3580
3580
|
break;
|
|
3581
3581
|
}
|
|
@@ -3583,37 +3583,37 @@ function Bt(s) {
|
|
|
3583
3583
|
r && (r(), N.debug("Blade reload requested"));
|
|
3584
3584
|
break;
|
|
3585
3585
|
case "DOWNLOAD_FILE": {
|
|
3586
|
-
const b =
|
|
3587
|
-
b &&
|
|
3586
|
+
const b = U;
|
|
3587
|
+
b && Bt(b);
|
|
3588
3588
|
break;
|
|
3589
3589
|
}
|
|
3590
3590
|
case "APPLY_CHANGES": {
|
|
3591
|
-
const b =
|
|
3591
|
+
const b = U;
|
|
3592
3592
|
N.warn("APPLY_CHANGES received but not implemented:", b?.changes);
|
|
3593
3593
|
break;
|
|
3594
3594
|
}
|
|
3595
3595
|
case "CHAT_ERROR": {
|
|
3596
|
-
const b =
|
|
3596
|
+
const b = U;
|
|
3597
3597
|
N.error(`Chatbot error [${b?.code}]: ${b?.message}`);
|
|
3598
3598
|
break;
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
|
-
const
|
|
3601
|
+
const I = {
|
|
3602
3602
|
type: g,
|
|
3603
|
-
payload:
|
|
3603
|
+
payload: U,
|
|
3604
3604
|
timestamp: Date.now()
|
|
3605
3605
|
};
|
|
3606
|
-
|
|
3606
|
+
d.forEach((b) => {
|
|
3607
3607
|
try {
|
|
3608
|
-
b(
|
|
3609
|
-
} catch (
|
|
3610
|
-
N.error("Handler error:",
|
|
3608
|
+
b(I);
|
|
3609
|
+
} catch (m) {
|
|
3610
|
+
N.error("Handler error:", m);
|
|
3611
3611
|
}
|
|
3612
3612
|
});
|
|
3613
3613
|
}
|
|
3614
3614
|
function c(g) {
|
|
3615
|
-
const
|
|
3616
|
-
if (!
|
|
3615
|
+
const I = t().allowedOrigins || ["*"];
|
|
3616
|
+
if (!I.includes("*") && !I.includes(g.origin))
|
|
3617
3617
|
return;
|
|
3618
3618
|
const b = g.data;
|
|
3619
3619
|
if (!(!b?.type || typeof b.type != "string"))
|
|
@@ -3621,30 +3621,30 @@ function Bt(s) {
|
|
|
3621
3621
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
3622
3622
|
case "AI_CHAT_MESSAGE": {
|
|
3623
3623
|
if (e) {
|
|
3624
|
-
const
|
|
3625
|
-
|
|
3624
|
+
const m = b.payload;
|
|
3625
|
+
m?.type && f(m.type, m.payload);
|
|
3626
3626
|
}
|
|
3627
3627
|
return;
|
|
3628
3628
|
}
|
|
3629
3629
|
// Normal: chatbot signals it's ready
|
|
3630
3630
|
case "CHAT_READY":
|
|
3631
|
-
|
|
3631
|
+
E.forEach((m) => {
|
|
3632
3632
|
try {
|
|
3633
|
-
|
|
3634
|
-
} catch (
|
|
3635
|
-
N.error("ChatReady handler error:",
|
|
3633
|
+
m();
|
|
3634
|
+
} catch (C) {
|
|
3635
|
+
N.error("ChatReady handler error:", C);
|
|
3636
3636
|
}
|
|
3637
3637
|
});
|
|
3638
3638
|
break;
|
|
3639
3639
|
// Normal: direct chat protocol messages
|
|
3640
3640
|
default:
|
|
3641
|
-
|
|
3641
|
+
f(b.type, b.payload);
|
|
3642
3642
|
break;
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
3645
|
return {
|
|
3646
3646
|
iframeRef: a,
|
|
3647
|
-
pendingInitContext:
|
|
3647
|
+
pendingInitContext: i,
|
|
3648
3648
|
isListenerRegistered: u,
|
|
3649
3649
|
setIframeRef(g) {
|
|
3650
3650
|
a.value = g, N.debug("Iframe ref set:", g ? "available" : "null");
|
|
@@ -3654,8 +3654,8 @@ function Bt(s) {
|
|
|
3654
3654
|
N.warn("Cannot send message: iframe not available");
|
|
3655
3655
|
return;
|
|
3656
3656
|
}
|
|
3657
|
-
const
|
|
3658
|
-
a.value.contentWindow.postMessage(g,
|
|
3657
|
+
const I = t().allowedOrigins?.[0] || "*";
|
|
3658
|
+
a.value.contentWindow.postMessage(g, I), N.debug(`Sent to iframe: ${g.type}`);
|
|
3659
3659
|
},
|
|
3660
3660
|
sendToParent(g) {
|
|
3661
3661
|
if (!window.parent || window.parent === window) {
|
|
@@ -3671,8 +3671,8 @@ function Bt(s) {
|
|
|
3671
3671
|
u.value && (window.removeEventListener("message", c), u.value = !1);
|
|
3672
3672
|
},
|
|
3673
3673
|
onChatReady(g) {
|
|
3674
|
-
return
|
|
3675
|
-
|
|
3674
|
+
return E.add(g), () => {
|
|
3675
|
+
E.delete(g);
|
|
3676
3676
|
};
|
|
3677
3677
|
},
|
|
3678
3678
|
onPreviewChanges(g) {
|
|
@@ -3681,107 +3681,107 @@ function Bt(s) {
|
|
|
3681
3681
|
};
|
|
3682
3682
|
},
|
|
3683
3683
|
onMessage(g) {
|
|
3684
|
-
return
|
|
3685
|
-
|
|
3684
|
+
return d.add(g), () => {
|
|
3685
|
+
d.delete(g);
|
|
3686
3686
|
};
|
|
3687
3687
|
}
|
|
3688
3688
|
};
|
|
3689
3689
|
}
|
|
3690
|
-
const
|
|
3691
|
-
function
|
|
3690
|
+
const ae = k("ai-agent-service");
|
|
3691
|
+
function Nt(s) {
|
|
3692
3692
|
const {
|
|
3693
3693
|
userGetter: t,
|
|
3694
3694
|
bladeGetter: e,
|
|
3695
3695
|
localeGetter: n,
|
|
3696
3696
|
tokenGetter: r,
|
|
3697
3697
|
navigateToBlade: a,
|
|
3698
|
-
reloadBlade:
|
|
3698
|
+
reloadBlade: i,
|
|
3699
3699
|
initialConfig: u,
|
|
3700
|
-
isEmbedded:
|
|
3701
|
-
} = s, v =
|
|
3700
|
+
isEmbedded: d = !1
|
|
3701
|
+
} = s, v = L({ ...St, ...u }), E = It(), f = Rt({
|
|
3702
3702
|
userGetter: t,
|
|
3703
3703
|
bladeGetter: e,
|
|
3704
3704
|
localeGetter: n,
|
|
3705
3705
|
tokenGetter: r
|
|
3706
|
-
}), c =
|
|
3706
|
+
}), c = jt({
|
|
3707
3707
|
getConfig: () => v.value,
|
|
3708
|
-
isEmbedded:
|
|
3708
|
+
isEmbedded: d,
|
|
3709
3709
|
navigateToBlade: a,
|
|
3710
|
-
reloadBlade:
|
|
3711
|
-
}), g =
|
|
3710
|
+
reloadBlade: i
|
|
3711
|
+
}), g = T(() => ({
|
|
3712
3712
|
user: t(),
|
|
3713
3713
|
currentBlade: e(),
|
|
3714
|
-
items:
|
|
3715
|
-
})),
|
|
3714
|
+
items: f.contextItems.value
|
|
3715
|
+
})), U = async () => {
|
|
3716
3716
|
if (c.pendingInitContext.value && c.iframeRef.value?.contentWindow) {
|
|
3717
|
-
c.pendingInitContext.value = !1,
|
|
3718
|
-
const
|
|
3719
|
-
c.sendToIframe({ type: "INIT_CONTEXT", payload:
|
|
3717
|
+
c.pendingInitContext.value = !1, E.isInitialized.value = !0;
|
|
3718
|
+
const x = await f.buildInitPayload();
|
|
3719
|
+
c.sendToIframe({ type: "INIT_CONTEXT", payload: x }), ae.debug("Flushed pending INIT_CONTEXT");
|
|
3720
3720
|
}
|
|
3721
3721
|
};
|
|
3722
3722
|
c.onChatReady(() => {
|
|
3723
|
-
c.iframeRef.value?.contentWindow ? (
|
|
3724
|
-
c.sendToIframe({ type: "INIT_CONTEXT", payload:
|
|
3725
|
-
})) : (c.pendingInitContext.value = !0,
|
|
3726
|
-
}), W(c.iframeRef, () =>
|
|
3723
|
+
c.iframeRef.value?.contentWindow ? (E.isInitialized.value = !0, f.buildInitPayload().then((x) => {
|
|
3724
|
+
c.sendToIframe({ type: "INIT_CONTEXT", payload: x }), ae.info("Chatbot ready, sent INIT_CONTEXT");
|
|
3725
|
+
})) : (c.pendingInitContext.value = !0, ae.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
3726
|
+
}), W(c.iframeRef, () => U()), W(
|
|
3727
3727
|
() => ({ currentBlade: g.value.currentBlade, items: g.value.items }),
|
|
3728
3728
|
async () => {
|
|
3729
|
-
if (
|
|
3730
|
-
const
|
|
3731
|
-
c.sendToParent({ type: "AI_CONTEXT_UPDATE", payload:
|
|
3729
|
+
if (d) {
|
|
3730
|
+
const x = await f.buildInitPayload();
|
|
3731
|
+
c.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: x });
|
|
3732
3732
|
return;
|
|
3733
3733
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
const
|
|
3736
|
-
c.sendToIframe({ type: "UPDATE_CONTEXT", payload:
|
|
3734
|
+
if (E.isOpen.value && E.isInitialized.value && c.iframeRef.value?.contentWindow) {
|
|
3735
|
+
const x = await f.buildUpdatePayload();
|
|
3736
|
+
c.sendToIframe({ type: "UPDATE_CONTEXT", payload: x });
|
|
3737
3737
|
}
|
|
3738
3738
|
},
|
|
3739
3739
|
{ deep: !0 }
|
|
3740
3740
|
);
|
|
3741
|
-
const
|
|
3742
|
-
c.setIframeRef(
|
|
3743
|
-
},
|
|
3744
|
-
const { cleared:
|
|
3745
|
-
|
|
3741
|
+
const I = () => d ? c.sendToParent({ type: "AI_TOGGLE_PANEL" }) : E.open(), b = () => d ? c.sendToParent({ type: "AI_TOGGLE_PANEL" }) : E.close(), m = () => d ? c.sendToParent({ type: "AI_TOGGLE_PANEL" }) : E.toggle(), C = (x) => {
|
|
3742
|
+
c.setIframeRef(x), U();
|
|
3743
|
+
}, y = (x, F, Z, X) => {
|
|
3744
|
+
const { cleared: Y } = f.setContextData(x, F, Z, X);
|
|
3745
|
+
d && Y && c.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
3746
3746
|
};
|
|
3747
|
-
return c.startListening(),
|
|
3747
|
+
return c.startListening(), d && (c.sendToParent({
|
|
3748
3748
|
type: "EMBEDDED_APP_READY",
|
|
3749
3749
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
3750
|
-
}),
|
|
3750
|
+
}), ae.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
3751
3751
|
// State
|
|
3752
|
-
panelState:
|
|
3752
|
+
panelState: E.panelState,
|
|
3753
3753
|
config: v,
|
|
3754
3754
|
context: g,
|
|
3755
|
-
isOpen:
|
|
3756
|
-
isExpanded:
|
|
3757
|
-
totalItemsCount:
|
|
3755
|
+
isOpen: T(() => !d && E.isOpen.value),
|
|
3756
|
+
isExpanded: E.isExpanded,
|
|
3757
|
+
totalItemsCount: f.totalItemsCount,
|
|
3758
3758
|
// Panel control
|
|
3759
|
-
openPanel:
|
|
3759
|
+
openPanel: I,
|
|
3760
3760
|
closePanel: b,
|
|
3761
|
-
togglePanel:
|
|
3762
|
-
expandPanel: () =>
|
|
3763
|
-
collapsePanel: () =>
|
|
3761
|
+
togglePanel: m,
|
|
3762
|
+
expandPanel: () => E.expand(),
|
|
3763
|
+
collapsePanel: () => E.collapse(),
|
|
3764
3764
|
// Configuration
|
|
3765
|
-
setConfig: (
|
|
3766
|
-
v.value = { ...v.value, ...
|
|
3765
|
+
setConfig: (x) => {
|
|
3766
|
+
v.value = { ...v.value, ...x };
|
|
3767
3767
|
},
|
|
3768
3768
|
// Communication
|
|
3769
|
-
sendMessage: (
|
|
3770
|
-
c.sendToIframe({ type:
|
|
3769
|
+
sendMessage: (x, F) => {
|
|
3770
|
+
c.sendToIframe({ type: x, payload: F });
|
|
3771
3771
|
},
|
|
3772
3772
|
onMessage: c.onMessage,
|
|
3773
3773
|
// Internal API
|
|
3774
3774
|
iframeRef: c.iframeRef,
|
|
3775
|
-
_setIframeRef:
|
|
3775
|
+
_setIframeRef: C,
|
|
3776
3776
|
_startListening: c.startListening,
|
|
3777
3777
|
_stopListening: c.stopListening,
|
|
3778
|
-
_setContextData:
|
|
3778
|
+
_setContextData: y,
|
|
3779
3779
|
_onPreviewChanges: c.onPreviewChanges
|
|
3780
3780
|
};
|
|
3781
3781
|
}
|
|
3782
3782
|
const H = k("use-ai-agent");
|
|
3783
|
-
function
|
|
3784
|
-
const t = z(
|
|
3783
|
+
function cn(s) {
|
|
3784
|
+
const t = z(He), { user: e, getAccessToken: n } = Et(), { openBlade: r } = At(), { blades: a, activeBlade: i, replaceCurrentBlade: u } = yt(), d = s?.isEmbedded, v = Nt({
|
|
3785
3785
|
userGetter: () => {
|
|
3786
3786
|
if (e.value)
|
|
3787
3787
|
return {
|
|
@@ -3792,31 +3792,31 @@ function un(s) {
|
|
|
3792
3792
|
};
|
|
3793
3793
|
},
|
|
3794
3794
|
bladeGetter: () => {
|
|
3795
|
-
const
|
|
3796
|
-
return
|
|
3797
|
-
id:
|
|
3798
|
-
name:
|
|
3799
|
-
title:
|
|
3800
|
-
param:
|
|
3801
|
-
options:
|
|
3795
|
+
const f = i.value ?? a.value[a.value.length - 1];
|
|
3796
|
+
return f ? {
|
|
3797
|
+
id: f.id,
|
|
3798
|
+
name: f.name,
|
|
3799
|
+
title: f.title,
|
|
3800
|
+
param: f.param,
|
|
3801
|
+
options: f.options
|
|
3802
3802
|
} : null;
|
|
3803
3803
|
},
|
|
3804
3804
|
localeGetter: () => t?.currentLocale.value ?? "en",
|
|
3805
3805
|
tokenGetter: n,
|
|
3806
|
-
navigateToBlade: (
|
|
3807
|
-
r({ name:
|
|
3808
|
-
H.debug(`Navigated to blade: ${
|
|
3809
|
-
}).catch((
|
|
3810
|
-
H.warn(`Blade not found or cannot be opened: ${
|
|
3806
|
+
navigateToBlade: (f, c, g) => {
|
|
3807
|
+
r({ name: f, param: c, options: g }).then(() => {
|
|
3808
|
+
H.debug(`Navigated to blade: ${f}`);
|
|
3809
|
+
}).catch((U) => {
|
|
3810
|
+
H.warn(`Blade not found or cannot be opened: ${f}`, U);
|
|
3811
3811
|
});
|
|
3812
3812
|
},
|
|
3813
3813
|
reloadBlade: () => {
|
|
3814
|
-
const
|
|
3815
|
-
|
|
3816
|
-
name:
|
|
3817
|
-
param:
|
|
3818
|
-
query:
|
|
3819
|
-
options:
|
|
3814
|
+
const f = i.value;
|
|
3815
|
+
f && u({
|
|
3816
|
+
name: f.name,
|
|
3817
|
+
param: f.param,
|
|
3818
|
+
query: f.query,
|
|
3819
|
+
options: f.options
|
|
3820
3820
|
}).then(() => {
|
|
3821
3821
|
H.debug("Current blade reloaded");
|
|
3822
3822
|
}).catch((c) => {
|
|
@@ -3824,15 +3824,15 @@ function un(s) {
|
|
|
3824
3824
|
});
|
|
3825
3825
|
},
|
|
3826
3826
|
initialConfig: s?.config,
|
|
3827
|
-
isEmbedded:
|
|
3827
|
+
isEmbedded: d
|
|
3828
3828
|
});
|
|
3829
|
-
if (
|
|
3830
|
-
const
|
|
3831
|
-
|
|
3829
|
+
if (be(le, v), H.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
|
|
3830
|
+
const f = z(We, null);
|
|
3831
|
+
f ? (f.registerToolbarItem(
|
|
3832
3832
|
{
|
|
3833
|
-
id:
|
|
3834
|
-
icon:
|
|
3835
|
-
title:
|
|
3833
|
+
id: wt,
|
|
3834
|
+
icon: Pt,
|
|
3835
|
+
title: Ot,
|
|
3836
3836
|
clickHandler: () => {
|
|
3837
3837
|
v.togglePanel();
|
|
3838
3838
|
}
|
|
@@ -3843,10 +3843,10 @@ function un(s) {
|
|
|
3843
3843
|
}
|
|
3844
3844
|
return v;
|
|
3845
3845
|
}
|
|
3846
|
-
function
|
|
3847
|
-
const s = z(
|
|
3846
|
+
function dn() {
|
|
3847
|
+
const s = z(le);
|
|
3848
3848
|
if (!s)
|
|
3849
|
-
throw H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new
|
|
3849
|
+
throw H.error("AiAgentService not found. Did you forget to call provideAiAgentService()?"), new Le("AiAgentService");
|
|
3850
3850
|
return {
|
|
3851
3851
|
// State
|
|
3852
3852
|
panelState: s.panelState,
|
|
@@ -3868,7 +3868,7 @@ function hn() {
|
|
|
3868
3868
|
onMessage: s.onMessage
|
|
3869
3869
|
};
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3871
|
+
function fn(s) {
|
|
3872
3872
|
return {
|
|
3873
3873
|
id: "ai-agent-toggle",
|
|
3874
3874
|
icon: s?.icon ?? "lucide-sparkles",
|
|
@@ -3878,11 +3878,11 @@ function cn(s) {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
};
|
|
3880
3880
|
}
|
|
3881
|
-
const
|
|
3881
|
+
const kt = ["width", "height"], $t = ["clip-path"], Ft = {
|
|
3882
3882
|
key: 1,
|
|
3883
3883
|
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",
|
|
3884
3884
|
fill: "url(#virto-oz-gradient-animated)"
|
|
3885
|
-
},
|
|
3885
|
+
}, Gt = ["id"], Dt = {
|
|
3886
3886
|
key: 1,
|
|
3887
3887
|
id: "virto-oz-gradient-animated",
|
|
3888
3888
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -3890,7 +3890,7 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
3890
3890
|
y1: "0",
|
|
3891
3891
|
x2: "99",
|
|
3892
3892
|
y2: "108"
|
|
3893
|
-
},
|
|
3893
|
+
}, Oe = /* @__PURE__ */ V({
|
|
3894
3894
|
__name: "VcVirtoOzLogo",
|
|
3895
3895
|
props: {
|
|
3896
3896
|
width: { default: 22 },
|
|
@@ -3898,8 +3898,8 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
3898
3898
|
animated: { type: Boolean, default: !1 }
|
|
3899
3899
|
},
|
|
3900
3900
|
setup(s) {
|
|
3901
|
-
const t =
|
|
3902
|
-
return (e, n) => ($(),
|
|
3901
|
+
const t = T(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
3902
|
+
return (e, n) => ($(), G("svg", {
|
|
3903
3903
|
width: s.width,
|
|
3904
3904
|
height: s.height,
|
|
3905
3905
|
viewBox: "0 0 99 108",
|
|
@@ -3907,22 +3907,22 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
3907
3907
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3908
3908
|
class: "vc-virto-oz-logo"
|
|
3909
3909
|
}, [
|
|
3910
|
-
n[3] || (n[3] =
|
|
3910
|
+
n[3] || (n[3] = O("path", {
|
|
3911
3911
|
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",
|
|
3912
3912
|
fill: "white"
|
|
3913
3913
|
}, null, -1)),
|
|
3914
|
-
s.animated ? ($(),
|
|
3914
|
+
s.animated ? ($(), G("path", Ft)) : ($(), G("g", {
|
|
3915
3915
|
key: 0,
|
|
3916
3916
|
"clip-path": `url(#${t.value})`
|
|
3917
3917
|
}, [...n[0] || (n[0] = [
|
|
3918
|
-
|
|
3919
|
-
|
|
3918
|
+
O("g", { transform: "matrix(0 -0.161514 0.160417 0 49.1357 53.9479)" }, [
|
|
3919
|
+
O("foreignObject", {
|
|
3920
3920
|
x: "-334.01",
|
|
3921
3921
|
y: "-334.01",
|
|
3922
3922
|
width: "668.02",
|
|
3923
3923
|
height: "668.02"
|
|
3924
3924
|
}, [
|
|
3925
|
-
|
|
3925
|
+
O("div", {
|
|
3926
3926
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
3927
3927
|
style: { background: `conic-gradient(
|
|
3928
3928
|
from 90deg,
|
|
@@ -3936,46 +3936,46 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
3936
3936
|
})
|
|
3937
3937
|
])
|
|
3938
3938
|
], -1)
|
|
3939
|
-
])], 8,
|
|
3940
|
-
n[4] || (n[4] =
|
|
3939
|
+
])], 8, $t)),
|
|
3940
|
+
n[4] || (n[4] = O("path", {
|
|
3941
3941
|
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",
|
|
3942
3942
|
fill: "white"
|
|
3943
3943
|
}, null, -1)),
|
|
3944
|
-
n[5] || (n[5] =
|
|
3944
|
+
n[5] || (n[5] = O("ellipse", {
|
|
3945
3945
|
cx: "49.12",
|
|
3946
3946
|
cy: "54.09",
|
|
3947
3947
|
rx: "4.05",
|
|
3948
3948
|
ry: "4.05",
|
|
3949
3949
|
fill: "#6C6C6C"
|
|
3950
3950
|
}, null, -1)),
|
|
3951
|
-
n[6] || (n[6] =
|
|
3951
|
+
n[6] || (n[6] = O("ellipse", {
|
|
3952
3952
|
cx: "60.62",
|
|
3953
3953
|
cy: "54.09",
|
|
3954
3954
|
rx: "4.05",
|
|
3955
3955
|
ry: "4.05",
|
|
3956
3956
|
fill: "#6C6C6C"
|
|
3957
3957
|
}, null, -1)),
|
|
3958
|
-
n[7] || (n[7] =
|
|
3958
|
+
n[7] || (n[7] = O("ellipse", {
|
|
3959
3959
|
cx: "37.62",
|
|
3960
3960
|
cy: "54.09",
|
|
3961
3961
|
rx: "4.05",
|
|
3962
3962
|
ry: "4.05",
|
|
3963
3963
|
fill: "#6C6C6C"
|
|
3964
3964
|
}, null, -1)),
|
|
3965
|
-
|
|
3966
|
-
s.animated ?
|
|
3965
|
+
O("defs", null, [
|
|
3966
|
+
s.animated ? Q("", !0) : ($(), G("clipPath", {
|
|
3967
3967
|
key: 0,
|
|
3968
3968
|
id: t.value
|
|
3969
3969
|
}, [...n[1] || (n[1] = [
|
|
3970
|
-
|
|
3971
|
-
])], 8,
|
|
3972
|
-
s.animated ? ($(),
|
|
3973
|
-
|
|
3974
|
-
])])) :
|
|
3970
|
+
O("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)
|
|
3971
|
+
])], 8, Gt)),
|
|
3972
|
+
s.animated ? ($(), G("linearGradient", Dt, [...n[2] || (n[2] = [
|
|
3973
|
+
Ne('<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)
|
|
3974
|
+
])])) : Q("", !0)
|
|
3975
3975
|
])
|
|
3976
|
-
], 8,
|
|
3976
|
+
], 8, kt));
|
|
3977
3977
|
}
|
|
3978
|
-
}),
|
|
3978
|
+
}), Lt = { class: "vc-ai-agent-header" }, Mt = { class: "vc-ai-agent-header__icon" }, zt = { class: "vc-ai-agent-header__wrapper" }, Jt = { class: "vc-ai-agent-header__content" }, Kt = { class: "vc-ai-agent-header__title" }, qt = { class: "vc-ai-agent-header__controls" }, Ht = /* @__PURE__ */ V({
|
|
3979
3979
|
__name: "VcAiAgentHeader",
|
|
3980
3980
|
props: {
|
|
3981
3981
|
title: {},
|
|
@@ -3985,29 +3985,29 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
3985
3985
|
emits: ["close", "expand", "collapse"],
|
|
3986
3986
|
setup(s) {
|
|
3987
3987
|
return (t, e) => {
|
|
3988
|
-
const n =
|
|
3989
|
-
return $(),
|
|
3990
|
-
|
|
3991
|
-
J(
|
|
3988
|
+
const n = Ee("VcIcon");
|
|
3989
|
+
return $(), G("div", Lt, [
|
|
3990
|
+
O("div", Mt, [
|
|
3991
|
+
J(Oe, {
|
|
3992
3992
|
width: 22,
|
|
3993
3993
|
height: 24,
|
|
3994
3994
|
"show-dots": ""
|
|
3995
3995
|
})
|
|
3996
3996
|
]),
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
3997
|
+
O("div", zt, [
|
|
3998
|
+
O("div", Jt, [
|
|
3999
|
+
O("div", Kt, _e(s.title), 1)
|
|
4000
4000
|
])
|
|
4001
4001
|
]),
|
|
4002
|
-
|
|
4003
|
-
s.isExpanded ? ($(),
|
|
4002
|
+
O("div", qt, [
|
|
4003
|
+
s.isExpanded ? ($(), G("div", {
|
|
4004
4004
|
key: 0,
|
|
4005
4005
|
class: "vc-ai-agent-header__button",
|
|
4006
4006
|
title: "Collapse",
|
|
4007
4007
|
onClick: e[0] || (e[0] = (r) => t.$emit("collapse"))
|
|
4008
4008
|
}, [
|
|
4009
4009
|
J(n, { icon: "lucide-minus" })
|
|
4010
|
-
])) : ($(),
|
|
4010
|
+
])) : ($(), G("div", {
|
|
4011
4011
|
key: 1,
|
|
4012
4012
|
class: "vc-ai-agent-header__button",
|
|
4013
4013
|
title: "Expand",
|
|
@@ -4015,7 +4015,7 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
4015
4015
|
}, [
|
|
4016
4016
|
J(n, { icon: "lucide-panel-top" })
|
|
4017
4017
|
])),
|
|
4018
|
-
|
|
4018
|
+
O("div", {
|
|
4019
4019
|
class: "vc-ai-agent-header__button",
|
|
4020
4020
|
title: "Close",
|
|
4021
4021
|
onClick: e[2] || (e[2] = (r) => t.$emit("close"))
|
|
@@ -4026,230 +4026,231 @@ const Nt = ["width", "height"], kt = ["clip-path"], $t = {
|
|
|
4026
4026
|
]);
|
|
4027
4027
|
};
|
|
4028
4028
|
}
|
|
4029
|
-
}),
|
|
4029
|
+
}), Wt = { class: "vc-ai-agent-loader" }, Zt = { class: "vc-ai-agent-loader__content" }, Xt = { class: "vc-ai-agent-loader__logo" }, Yt = {
|
|
4030
4030
|
key: 0,
|
|
4031
4031
|
class: "vc-ai-agent-loader__text"
|
|
4032
|
-
},
|
|
4032
|
+
}, Qt = /* @__PURE__ */ V({
|
|
4033
4033
|
__name: "VcAiAgentLoader",
|
|
4034
4034
|
props: {
|
|
4035
4035
|
text: {}
|
|
4036
4036
|
},
|
|
4037
4037
|
setup(s) {
|
|
4038
|
-
return (t, e) => ($(),
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
J(
|
|
4038
|
+
return (t, e) => ($(), G("div", Wt, [
|
|
4039
|
+
O("div", Zt, [
|
|
4040
|
+
O("div", Xt, [
|
|
4041
|
+
J(Oe, {
|
|
4042
4042
|
width: 80,
|
|
4043
4043
|
height: 87,
|
|
4044
4044
|
animated: ""
|
|
4045
4045
|
})
|
|
4046
4046
|
]),
|
|
4047
|
-
s.text ? ($(),
|
|
4047
|
+
s.text ? ($(), G("p", Yt, _e(s.text), 1)) : Q("", !0)
|
|
4048
4048
|
])
|
|
4049
4049
|
]));
|
|
4050
4050
|
}
|
|
4051
|
-
}),
|
|
4051
|
+
}), Vt = { class: "vc-ai-agent-iframe" }, er = ["src"], tr = {
|
|
4052
4052
|
key: 1,
|
|
4053
4053
|
class: "vc-ai-agent-iframe__placeholder"
|
|
4054
|
-
},
|
|
4054
|
+
}, rr = /* @__PURE__ */ V({
|
|
4055
4055
|
__name: "VcAiAgentIframe",
|
|
4056
4056
|
props: {
|
|
4057
4057
|
url: {}
|
|
4058
4058
|
},
|
|
4059
4059
|
emits: ["iframe-ready"],
|
|
4060
4060
|
setup(s, { emit: t }) {
|
|
4061
|
-
const e = k("ai-agent-iframe"), n = s, r = t, a =
|
|
4061
|
+
const e = k("ai-agent-iframe"), n = s, r = t, a = L(null), i = L(!0);
|
|
4062
4062
|
W(
|
|
4063
4063
|
a,
|
|
4064
|
-
(
|
|
4065
|
-
|
|
4064
|
+
(d) => {
|
|
4065
|
+
d && r("iframe-ready", d);
|
|
4066
4066
|
},
|
|
4067
4067
|
{ immediate: !0 }
|
|
4068
4068
|
);
|
|
4069
4069
|
const u = () => {
|
|
4070
|
-
|
|
4070
|
+
i.value = !1, e.debug("Iframe loaded");
|
|
4071
4071
|
};
|
|
4072
4072
|
return W(
|
|
4073
4073
|
() => n.url,
|
|
4074
4074
|
() => {
|
|
4075
|
-
|
|
4075
|
+
i.value = !0;
|
|
4076
4076
|
}
|
|
4077
|
-
), (
|
|
4078
|
-
const
|
|
4079
|
-
return $(),
|
|
4080
|
-
J(
|
|
4081
|
-
default:
|
|
4082
|
-
|
|
4077
|
+
), (d, v) => {
|
|
4078
|
+
const E = Ee("VcIcon");
|
|
4079
|
+
return $(), G("div", Vt, [
|
|
4080
|
+
J(Ce, { name: "fade" }, {
|
|
4081
|
+
default: Ue(() => [
|
|
4082
|
+
i.value && s.url ? ($(), Ae(Qt, {
|
|
4083
4083
|
key: 0,
|
|
4084
|
-
text:
|
|
4085
|
-
}, null, 8, ["text"])) :
|
|
4084
|
+
text: d.$t("AI_AGENT.LOADING")
|
|
4085
|
+
}, null, 8, ["text"])) : Q("", !0)
|
|
4086
4086
|
]),
|
|
4087
4087
|
_: 1
|
|
4088
4088
|
}),
|
|
4089
|
-
s.url ? ($(),
|
|
4089
|
+
s.url ? ($(), G("iframe", {
|
|
4090
4090
|
key: 0,
|
|
4091
4091
|
ref_key: "iframeRef",
|
|
4092
4092
|
ref: a,
|
|
4093
4093
|
src: s.url,
|
|
4094
|
-
class:
|
|
4094
|
+
class: Te(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": i.value }]),
|
|
4095
4095
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
4096
4096
|
allow: "clipboard-read; clipboard-write",
|
|
4097
4097
|
onLoad: u
|
|
4098
|
-
}, null, 42,
|
|
4099
|
-
J(
|
|
4098
|
+
}, null, 42, er)) : ($(), G("div", tr, [
|
|
4099
|
+
J(E, {
|
|
4100
4100
|
icon: "lucide-sparkles",
|
|
4101
4101
|
size: "xl",
|
|
4102
4102
|
class: "vc-ai-agent-iframe__placeholder-icon"
|
|
4103
4103
|
}),
|
|
4104
|
-
v[0] || (v[0] =
|
|
4104
|
+
v[0] || (v[0] = O("p", { class: "vc-ai-agent-iframe__placeholder-text" }, "AI Agent URL not configured", -1))
|
|
4105
4105
|
]))
|
|
4106
4106
|
]);
|
|
4107
4107
|
};
|
|
4108
4108
|
}
|
|
4109
|
-
}),
|
|
4109
|
+
}), nr = { class: "vc-ai-agent-panel__content" }, pn = /* @__PURE__ */ V({
|
|
4110
4110
|
__name: "VcAiAgentPanel",
|
|
4111
4111
|
setup(s) {
|
|
4112
|
-
const t = z(
|
|
4112
|
+
const t = z(le), e = z(Ze, !1);
|
|
4113
4113
|
t || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
4114
|
-
const n =
|
|
4114
|
+
const n = T(
|
|
4115
4115
|
() => t?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
4116
|
-
), r =
|
|
4116
|
+
), r = T(() => !e && (t?.isOpen.value ?? !1)), a = T(() => t?.isExpanded.value ?? !1), i = T(() => t?.totalItemsCount.value ?? 0), u = T(() => ({
|
|
4117
4117
|
width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
|
|
4118
|
-
})),
|
|
4118
|
+
})), d = () => t?.closePanel(), v = () => t?.expandPanel(), E = () => t?.collapsePanel(), f = (c) => {
|
|
4119
4119
|
t?._setIframeRef(c);
|
|
4120
4120
|
};
|
|
4121
|
-
return
|
|
4121
|
+
return ke(() => {
|
|
4122
4122
|
t?._setIframeRef(null);
|
|
4123
|
-
}), (c, g) => ($(),
|
|
4124
|
-
default:
|
|
4125
|
-
r.value ? ($(),
|
|
4123
|
+
}), (c, g) => ($(), Ae(Ce, { name: "ai-panel-slide" }, {
|
|
4124
|
+
default: Ue(() => [
|
|
4125
|
+
r.value ? ($(), G("div", {
|
|
4126
4126
|
key: 0,
|
|
4127
|
-
class:
|
|
4127
|
+
class: Te(["vc-ai-agent-panel", {
|
|
4128
4128
|
"vc-ai-agent-panel--expanded": a.value
|
|
4129
4129
|
}]),
|
|
4130
|
-
style:
|
|
4130
|
+
style: $e(u.value)
|
|
4131
4131
|
}, [
|
|
4132
|
-
J(
|
|
4132
|
+
J(Ht, {
|
|
4133
4133
|
title: n.value.title,
|
|
4134
4134
|
"is-expanded": a.value,
|
|
4135
|
-
"items-count":
|
|
4136
|
-
onClose:
|
|
4135
|
+
"items-count": i.value,
|
|
4136
|
+
onClose: d,
|
|
4137
4137
|
onExpand: v,
|
|
4138
|
-
onCollapse:
|
|
4138
|
+
onCollapse: E
|
|
4139
4139
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
4140
|
-
|
|
4141
|
-
J(
|
|
4140
|
+
O("div", nr, [
|
|
4141
|
+
J(rr, {
|
|
4142
4142
|
url: n.value.url,
|
|
4143
|
-
onIframeReady:
|
|
4143
|
+
onIframeReady: f
|
|
4144
4144
|
}, null, 8, ["url"])
|
|
4145
4145
|
])
|
|
4146
|
-
], 6)) :
|
|
4146
|
+
], 6)) : Q("", !0)
|
|
4147
4147
|
]),
|
|
4148
4148
|
_: 1
|
|
4149
4149
|
}));
|
|
4150
4150
|
}
|
|
4151
4151
|
});
|
|
4152
4152
|
export {
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4153
|
+
D as $,
|
|
4154
|
+
ln as A,
|
|
4155
|
+
Je as B,
|
|
4156
|
+
ge as C,
|
|
4157
|
+
St as D,
|
|
4158
|
+
un as E,
|
|
4159
|
+
Lr as F,
|
|
4160
|
+
Br as G,
|
|
4161
|
+
hn as H,
|
|
4162
|
+
Le as I,
|
|
4163
|
+
jr as J,
|
|
4164
|
+
Ir as K,
|
|
4165
|
+
He as L,
|
|
4166
|
+
Rr as M,
|
|
4167
|
+
Nr as N,
|
|
4168
|
+
kr as O,
|
|
4169
|
+
Ar as P,
|
|
4170
|
+
Cr as Q,
|
|
4171
|
+
Ur as R,
|
|
4172
|
+
en as S,
|
|
4173
|
+
We as T,
|
|
4174
|
+
br as U,
|
|
4175
|
+
pt as V,
|
|
4176
|
+
Er as W,
|
|
4177
|
+
Tr as X,
|
|
4178
|
+
Pr as Y,
|
|
4179
|
+
zr as Z,
|
|
4180
|
+
pn as _,
|
|
4181
|
+
le as a,
|
|
4182
|
+
Jr as a0,
|
|
4183
|
+
Ke as a1,
|
|
4184
|
+
pr as a2,
|
|
4185
|
+
Mr as a3,
|
|
4186
|
+
Kr as a4,
|
|
4187
|
+
Fr as a5,
|
|
4188
|
+
_r as a6,
|
|
4189
|
+
qr as a7,
|
|
4190
|
+
Hr as a8,
|
|
4191
|
+
yr as a9,
|
|
4192
|
+
dr as aA,
|
|
4193
|
+
at as aB,
|
|
4194
|
+
Or as aC,
|
|
4195
|
+
st as aD,
|
|
4196
|
+
ft as aE,
|
|
4197
|
+
cr as aF,
|
|
4198
|
+
bt as aG,
|
|
4199
|
+
Me as aH,
|
|
4200
4200
|
ur as aI,
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
ot as
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4201
|
+
hr as aJ,
|
|
4202
|
+
Et as aK,
|
|
4203
|
+
vr as aL,
|
|
4204
|
+
cn as aM,
|
|
4205
|
+
ot as aa,
|
|
4206
|
+
Wr as ab,
|
|
4207
|
+
lt as ac,
|
|
4208
|
+
et as ad,
|
|
4209
|
+
it as ae,
|
|
4210
|
+
Ze as af,
|
|
4211
|
+
tt as ag,
|
|
4212
|
+
Qe as ah,
|
|
4213
|
+
M as ai,
|
|
4214
|
+
$r as aj,
|
|
4215
|
+
Zr as ak,
|
|
4216
|
+
ut as al,
|
|
4217
|
+
rt as am,
|
|
4218
|
+
Xr as an,
|
|
4219
|
+
mr as ao,
|
|
4220
|
+
Yr as ap,
|
|
4221
|
+
wr as aq,
|
|
4222
|
+
Sr as ar,
|
|
4223
|
+
Qr as as,
|
|
4223
4224
|
ht as at,
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4225
|
+
ct as au,
|
|
4226
|
+
nt as av,
|
|
4227
|
+
dt as aw,
|
|
4228
|
+
Vr as ax,
|
|
4229
|
+
fr as ay,
|
|
4230
|
+
Ve as az,
|
|
4230
4231
|
k as b,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4232
|
+
fn as c,
|
|
4233
|
+
Dr as d,
|
|
4234
|
+
Gr as e,
|
|
4235
|
+
ze as f,
|
|
4236
|
+
ye as g,
|
|
4237
|
+
gr as h,
|
|
4238
|
+
qe as i,
|
|
4239
|
+
xr as j,
|
|
4240
|
+
yt as k,
|
|
4241
|
+
Ct as l,
|
|
4242
|
+
me as m,
|
|
4243
|
+
on as n,
|
|
4244
|
+
nn as o,
|
|
4245
|
+
sn as p,
|
|
4246
|
+
tn as q,
|
|
4247
|
+
an as r,
|
|
4248
|
+
rn as s,
|
|
4249
|
+
At as t,
|
|
4250
|
+
dn as u,
|
|
4251
|
+
vt as v,
|
|
4252
|
+
Se as w,
|
|
4253
|
+
we as x,
|
|
4254
|
+
_t as y,
|
|
4255
|
+
Pe as z
|
|
4255
4256
|
};
|