@vc-shell/framework 2.0.4-pr228.833ff5f → 2.0.4
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/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D5HgEXFw.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CTHTF63Q.js} +952 -1578
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CTHTF63Q.js.map +1 -0
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-HqgHfIV-.js → VcTableAdapter.vue_vue_type_style_index_0_lang-dJW2U276.js} +1 -1
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-HqgHfIV-.js.map → VcTableAdapter.vue_vue_type_style_index_0_lang-dJW2U276.js.map} +1 -1
- package/dist/chunks/{index-CacTeJdd.js → index-CYv6y-92.js} +1 -1
- package/dist/chunks/{index-CacTeJdd.js.map → index-CYv6y-92.js.map} +1 -1
- package/dist/core/api/platform.d.ts +104 -334
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/framework.js +320 -315
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D5HgEXFw.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as D, computed as h, shallowRef as
|
|
1
|
+
import { ref as D, computed as h, shallowRef as ke, watch as Z, getCurrentInstance as ee, inject as J, isRef as ze, provide as Ae, defineComponent as M, openBlock as w, createElementBlock as N, createElementVNode as $, createCommentVNode as X, createStaticVNode as Fe, onMounted as le, normalizeStyle as V, normalizeClass as H, toDisplayString as pe, markRaw as we, createBlock as Q, resolveDynamicComponent as fe, mergeProps as se, resolveComponent as ce, createVNode as W, unref as ie, Transition as Te, withCtx as Pe, onUnmounted as Ge } from "vue";
|
|
2
2
|
import { c as te } from "./vendor-lodash-es-CfnUOh0o.js";
|
|
3
3
|
import { u as De } from "./vendor-vueuse-core-CEdpDfzx.js";
|
|
4
|
-
import { j as
|
|
5
|
-
import { L as
|
|
4
|
+
import { j as Le } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
5
|
+
import { L as Me } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
6
6
|
const Je = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
7
|
-
function We(
|
|
7
|
+
function We(s, e) {
|
|
8
8
|
if (typeof e == "string" && Je.test(e)) {
|
|
9
9
|
const t = new Date(e);
|
|
10
10
|
if (!isNaN(t.getTime()))
|
|
@@ -12,7 +12,7 @@ function We(i, e) {
|
|
|
12
12
|
}
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
class
|
|
15
|
+
class G {
|
|
16
16
|
authToken = "";
|
|
17
17
|
/**
|
|
18
18
|
* JSON parse reviver for converting date strings to Date objects.
|
|
@@ -33,56 +33,49 @@ class F {
|
|
|
33
33
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
class
|
|
36
|
+
class Ke extends G {
|
|
37
37
|
http;
|
|
38
38
|
baseUrl;
|
|
39
39
|
constructor(e, t) {
|
|
40
40
|
super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* @param authenticationType (optional)
|
|
44
|
-
* @param returnUrl (optional)
|
|
45
|
-
* @param storeId (optional)
|
|
46
|
-
* @param oidcUrl (optional)
|
|
47
|
-
* @param callbackUrl (optional)
|
|
43
|
+
* @param authenticationType (optional)
|
|
44
|
+
* @param returnUrl (optional)
|
|
45
|
+
* @param storeId (optional)
|
|
46
|
+
* @param oidcUrl (optional)
|
|
47
|
+
* @param callbackUrl (optional)
|
|
48
48
|
* @return OK
|
|
49
49
|
*/
|
|
50
50
|
signIn(e, t, n, r, a) {
|
|
51
51
|
let o = this.baseUrl + "/externalsignin?";
|
|
52
|
-
if (e === null)
|
|
53
|
-
|
|
54
|
-
if (
|
|
55
|
-
|
|
56
|
-
if (
|
|
57
|
-
throw new globalThis.Error("The parameter 'storeId' cannot be null.");
|
|
58
|
-
if (n !== void 0 && (o += "StoreId=" + encodeURIComponent("" + n) + "&"), r === null)
|
|
59
|
-
throw new globalThis.Error("The parameter 'oidcUrl' cannot be null.");
|
|
60
|
-
if (r !== void 0 && (o += "OidcUrl=" + encodeURIComponent("" + r) + "&"), a === null)
|
|
61
|
-
throw new globalThis.Error("The parameter 'callbackUrl' cannot be null.");
|
|
52
|
+
if (e === null) throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
|
|
53
|
+
if (e !== void 0 && (o += "AuthenticationType=" + encodeURIComponent("" + e) + "&"), t === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
54
|
+
if (t !== void 0 && (o += "ReturnUrl=" + encodeURIComponent("" + t) + "&"), n === null) throw new globalThis.Error("The parameter 'storeId' cannot be null.");
|
|
55
|
+
if (n !== void 0 && (o += "StoreId=" + encodeURIComponent("" + n) + "&"), r === null) throw new globalThis.Error("The parameter 'oidcUrl' cannot be null.");
|
|
56
|
+
if (r !== void 0 && (o += "OidcUrl=" + encodeURIComponent("" + r) + "&"), a === null) throw new globalThis.Error("The parameter 'callbackUrl' cannot be null.");
|
|
62
57
|
a !== void 0 && (o += "CallbackUrl=" + encodeURIComponent("" + a) + "&"), o = o.replace(/[?&]$/, "");
|
|
63
|
-
let
|
|
58
|
+
let u = {
|
|
64
59
|
method: "GET",
|
|
65
60
|
headers: {}
|
|
66
61
|
};
|
|
67
|
-
return this.transformOptions(
|
|
62
|
+
return this.transformOptions(u).then((c) => this.http.fetch(o, c)).then((c) => this.processSignIn(c));
|
|
68
63
|
}
|
|
69
64
|
processSignIn(e) {
|
|
70
65
|
const t = e.status;
|
|
71
66
|
let n = {};
|
|
72
67
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
73
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
68
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
74
69
|
}
|
|
75
70
|
/**
|
|
76
|
-
* @param authenticationType (optional)
|
|
77
|
-
* @param returnUrl (optional)
|
|
71
|
+
* @param authenticationType (optional)
|
|
72
|
+
* @param returnUrl (optional)
|
|
78
73
|
* @return OK
|
|
79
74
|
*/
|
|
80
75
|
signOut(e, t) {
|
|
81
76
|
let n = this.baseUrl + "/externalsignin/signout?";
|
|
82
|
-
if (e === null)
|
|
83
|
-
|
|
84
|
-
if (e !== void 0 && (n += "authenticationType=" + encodeURIComponent("" + e) + "&"), t === null)
|
|
85
|
-
throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
77
|
+
if (e === null) throw new globalThis.Error("The parameter 'authenticationType' cannot be null.");
|
|
78
|
+
if (e !== void 0 && (n += "authenticationType=" + encodeURIComponent("" + e) + "&"), t === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
86
79
|
t !== void 0 && (n += "returnUrl=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
87
80
|
let r = {
|
|
88
81
|
method: "GET",
|
|
@@ -94,16 +87,15 @@ class Ve extends F {
|
|
|
94
87
|
const t = e.status;
|
|
95
88
|
let n = {};
|
|
96
89
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
97
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
90
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
98
91
|
}
|
|
99
92
|
/**
|
|
100
|
-
* @param returnUrl (optional)
|
|
93
|
+
* @param returnUrl (optional)
|
|
101
94
|
* @return OK
|
|
102
95
|
*/
|
|
103
96
|
signInCallback(e) {
|
|
104
97
|
let t = this.baseUrl + "/externalsignin/callback?";
|
|
105
|
-
if (e === null)
|
|
106
|
-
throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
98
|
+
if (e === null) throw new globalThis.Error("The parameter 'returnUrl' cannot be null.");
|
|
107
99
|
e !== void 0 && (t += "returnUrl=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
|
|
108
100
|
let n = {
|
|
109
101
|
method: "GET",
|
|
@@ -115,7 +107,7 @@ class Ve extends F {
|
|
|
115
107
|
const t = e.status;
|
|
116
108
|
let n = {};
|
|
117
109
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
118
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
110
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
119
111
|
}
|
|
120
112
|
/**
|
|
121
113
|
* @return OK
|
|
@@ -137,79 +129,10 @@ class Ve extends F {
|
|
|
137
129
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
138
130
|
let a = null;
|
|
139
131
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
140
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
132
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
141
133
|
}
|
|
142
134
|
}
|
|
143
|
-
class
|
|
144
|
-
http;
|
|
145
|
-
baseUrl;
|
|
146
|
-
constructor(e, t) {
|
|
147
|
-
super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Returns the host app's plugin manifest.
|
|
151
|
-
|
|
152
|
-
In production: cacheable — responds 304 on matching
|
|
153
|
-
`If-None-Match`. The descriptor is built and hashed once at the
|
|
154
|
-
service layer (VirtoCommerce.Platform.Core.Modularity.IAppManifestService) and cached for the
|
|
155
|
-
process lifetime, so 304 cache-hits short-circuit without touching the
|
|
156
|
-
filesystem.
|
|
157
|
-
In Development: `Cache-Control: no-store` is emitted and the 304
|
|
158
|
-
fast path is skipped — every request returns 200 with a freshly built
|
|
159
|
-
body. This makes `yarn build` in a plugin folder visible on the
|
|
160
|
-
next page reload without restarting the platform.
|
|
161
|
-
* @return OK
|
|
162
|
-
*/
|
|
163
|
-
getManifest(e) {
|
|
164
|
-
let t = this.baseUrl + "/api/apps/{appId}/manifest";
|
|
165
|
-
if (e == null)
|
|
166
|
-
throw new globalThis.Error("The parameter 'appId' must be defined.");
|
|
167
|
-
t = t.replace("{appId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
168
|
-
let n = {
|
|
169
|
-
method: "GET",
|
|
170
|
-
headers: {
|
|
171
|
-
Accept: "application/json"
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetManifest(r));
|
|
175
|
-
}
|
|
176
|
-
processGetManifest(e) {
|
|
177
|
-
const t = e.status;
|
|
178
|
-
let n = {};
|
|
179
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
180
|
-
let a = null;
|
|
181
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
182
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Force-invalidate the manifest cache for every `appId`. The next
|
|
186
|
-
call to `GET /api/apps/{appId}/manifest` will rebuild the
|
|
187
|
-
descriptor from disk, picking up any plugin changes since the last
|
|
188
|
-
build (new module installs, drop-in plugin replacements, plugin
|
|
189
|
-
rebuilds).
|
|
190
|
-
|
|
191
|
-
In Development this isn't normally needed (the service bypasses its
|
|
192
|
-
cache anyway), but the endpoint works in any environment for
|
|
193
|
-
operators who want to refresh without restarting the platform.
|
|
194
|
-
* @return No Content
|
|
195
|
-
*/
|
|
196
|
-
invalidateManifestCache() {
|
|
197
|
-
let e = this.baseUrl + "/api/apps/manifest/invalidate";
|
|
198
|
-
e = e.replace(/[?&]$/, "");
|
|
199
|
-
let t = {
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers: {}
|
|
202
|
-
};
|
|
203
|
-
return this.transformOptions(t).then((n) => this.http.fetch(e, n)).then((n) => this.processInvalidateManifestCache(n));
|
|
204
|
-
}
|
|
205
|
-
processInvalidateManifestCache(e) {
|
|
206
|
-
const t = e.status;
|
|
207
|
-
let n = {};
|
|
208
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
209
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
class pr extends F {
|
|
135
|
+
class Er extends G {
|
|
213
136
|
http;
|
|
214
137
|
baseUrl;
|
|
215
138
|
constructor(e, t) {
|
|
@@ -236,10 +159,10 @@ class pr extends F {
|
|
|
236
159
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
237
160
|
let a = null;
|
|
238
161
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
239
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
162
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
240
163
|
}
|
|
241
164
|
}
|
|
242
|
-
class
|
|
165
|
+
class _r extends G {
|
|
243
166
|
http;
|
|
244
167
|
baseUrl;
|
|
245
168
|
constructor(e, t) {
|
|
@@ -261,7 +184,7 @@ class mr extends F {
|
|
|
261
184
|
const t = e.status;
|
|
262
185
|
let n = {};
|
|
263
186
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
264
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
187
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
265
188
|
}
|
|
266
189
|
/**
|
|
267
190
|
* @return OK
|
|
@@ -287,8 +210,8 @@ class mr extends F {
|
|
|
287
210
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
288
211
|
}) : t === 400 ? e.text().then((r) => {
|
|
289
212
|
let a = null;
|
|
290
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver),
|
|
291
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
213
|
+
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), i("Bad Request", t, r, n, a);
|
|
214
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
292
215
|
}
|
|
293
216
|
/**
|
|
294
217
|
* @return OK
|
|
@@ -306,7 +229,7 @@ class mr extends F {
|
|
|
306
229
|
const t = e.status;
|
|
307
230
|
let n = {};
|
|
308
231
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
309
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
232
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
310
233
|
}
|
|
311
234
|
/**
|
|
312
235
|
* @return OK
|
|
@@ -324,7 +247,7 @@ class mr extends F {
|
|
|
324
247
|
const t = e.status;
|
|
325
248
|
let n = {};
|
|
326
249
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
327
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
250
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
328
251
|
}
|
|
329
252
|
/**
|
|
330
253
|
* @return OK
|
|
@@ -342,7 +265,7 @@ class mr extends F {
|
|
|
342
265
|
const t = e.status;
|
|
343
266
|
let n = {};
|
|
344
267
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
345
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
268
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
346
269
|
}
|
|
347
270
|
/**
|
|
348
271
|
* @return OK
|
|
@@ -360,7 +283,7 @@ class mr extends F {
|
|
|
360
283
|
const t = e.status;
|
|
361
284
|
let n = {};
|
|
362
285
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
363
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
286
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
364
287
|
}
|
|
365
288
|
/**
|
|
366
289
|
* @return OK
|
|
@@ -378,10 +301,10 @@ class mr extends F {
|
|
|
378
301
|
const t = e.status;
|
|
379
302
|
let n = {};
|
|
380
303
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
381
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
304
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
382
305
|
}
|
|
383
306
|
}
|
|
384
|
-
class
|
|
307
|
+
class Cr extends G {
|
|
385
308
|
http;
|
|
386
309
|
baseUrl;
|
|
387
310
|
constructor(e, t) {
|
|
@@ -389,13 +312,12 @@ class vr extends F {
|
|
|
389
312
|
}
|
|
390
313
|
/**
|
|
391
314
|
* Force set changes last modified date
|
|
392
|
-
* @param scope (optional)
|
|
315
|
+
* @param scope (optional)
|
|
393
316
|
* @return No Content
|
|
394
317
|
*/
|
|
395
318
|
forceChanges(e) {
|
|
396
319
|
let t = this.baseUrl + "/api/changes/force?";
|
|
397
|
-
if (e === null)
|
|
398
|
-
throw new globalThis.Error("The parameter 'scope' cannot be null.");
|
|
320
|
+
if (e === null) throw new globalThis.Error("The parameter 'scope' cannot be null.");
|
|
399
321
|
e !== void 0 && (t += "Scope=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
|
|
400
322
|
let n = {
|
|
401
323
|
method: "POST",
|
|
@@ -407,7 +329,7 @@ class vr extends F {
|
|
|
407
329
|
const t = e.status;
|
|
408
330
|
let n = {};
|
|
409
331
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
410
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
332
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
411
333
|
}
|
|
412
334
|
/**
|
|
413
335
|
* @return No Content
|
|
@@ -425,18 +347,17 @@ class vr extends F {
|
|
|
425
347
|
const t = e.status;
|
|
426
348
|
let n = {};
|
|
427
349
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
428
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
350
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
429
351
|
}
|
|
430
352
|
/**
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
353
|
+
* Get last modified date for given scope
|
|
354
|
+
Used for signal of what something changed and for cache invalidation in external platform clients
|
|
355
|
+
* @param scope (optional)
|
|
356
|
+
* @return OK
|
|
357
|
+
*/
|
|
436
358
|
getLastModifiedDate(e) {
|
|
437
359
|
let t = this.baseUrl + "/api/changes/lastmodifieddate?";
|
|
438
|
-
if (e === null)
|
|
439
|
-
throw new globalThis.Error("The parameter 'scope' cannot be null.");
|
|
360
|
+
if (e === null) throw new globalThis.Error("The parameter 'scope' cannot be null.");
|
|
440
361
|
e !== void 0 && (t += "scope=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
|
|
441
362
|
let n = {
|
|
442
363
|
method: "GET",
|
|
@@ -452,10 +373,10 @@ class vr extends F {
|
|
|
452
373
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
453
374
|
let a = null;
|
|
454
375
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
455
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
376
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
456
377
|
}
|
|
457
378
|
/**
|
|
458
|
-
* @param body (optional)
|
|
379
|
+
* @param body (optional)
|
|
459
380
|
* @return OK
|
|
460
381
|
*/
|
|
461
382
|
getChangedEntities(e) {
|
|
@@ -477,10 +398,10 @@ class vr extends F {
|
|
|
477
398
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
478
399
|
let a = null;
|
|
479
400
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
480
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
401
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
481
402
|
}
|
|
482
403
|
/**
|
|
483
|
-
* @param body (optional)
|
|
404
|
+
* @param body (optional)
|
|
484
405
|
* @return No Content
|
|
485
406
|
*/
|
|
486
407
|
resetChangedEntities(e) {
|
|
@@ -499,10 +420,10 @@ class vr extends F {
|
|
|
499
420
|
const t = e.status;
|
|
500
421
|
let n = {};
|
|
501
422
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
502
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
423
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
503
424
|
}
|
|
504
425
|
/**
|
|
505
|
-
* @param body (optional)
|
|
426
|
+
* @param body (optional)
|
|
506
427
|
* @return OK
|
|
507
428
|
*/
|
|
508
429
|
searchChanges(e) {
|
|
@@ -524,46 +445,18 @@ class vr extends F {
|
|
|
524
445
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
525
446
|
let a = null;
|
|
526
447
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
527
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* @param body (optional)
|
|
531
|
-
* @return OK
|
|
532
|
-
*/
|
|
533
|
-
searchChangesV2(e) {
|
|
534
|
-
let t = this.baseUrl + "/api/platform/changelog/v2/search";
|
|
535
|
-
t = t.replace(/[?&]$/, "");
|
|
536
|
-
let r = {
|
|
537
|
-
body: JSON.stringify(e),
|
|
538
|
-
method: "POST",
|
|
539
|
-
headers: {
|
|
540
|
-
"Content-Type": "application/json-patch+json",
|
|
541
|
-
Accept: "application/json"
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processSearchChangesV2(a));
|
|
545
|
-
}
|
|
546
|
-
processSearchChangesV2(e) {
|
|
547
|
-
const t = e.status;
|
|
548
|
-
let n = {};
|
|
549
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
550
|
-
let a = null;
|
|
551
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
552
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
448
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
553
449
|
}
|
|
554
450
|
/**
|
|
555
|
-
* @param start (optional)
|
|
556
|
-
* @param end (optional)
|
|
451
|
+
* @param start (optional)
|
|
452
|
+
* @param end (optional)
|
|
557
453
|
* @return OK
|
|
558
454
|
*/
|
|
559
455
|
searchTypeChangeHistory(e, t, n) {
|
|
560
456
|
let r = this.baseUrl + "/api/platform/changelog/{type}/changes?";
|
|
561
|
-
if (e == null)
|
|
562
|
-
|
|
563
|
-
if (r =
|
|
564
|
-
throw new globalThis.Error("The parameter 'start' cannot be null.");
|
|
565
|
-
if (t !== void 0 && (r += "start=" + encodeURIComponent(t ? "" + t.toISOString() : "") + "&"), n === null)
|
|
566
|
-
throw new globalThis.Error("The parameter 'end' cannot be null.");
|
|
457
|
+
if (e == null) throw new globalThis.Error("The parameter 'type' must be defined.");
|
|
458
|
+
if (r = r.replace("{type}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'start' cannot be null.");
|
|
459
|
+
if (t !== void 0 && (r += "start=" + encodeURIComponent(t ? "" + t.toISOString() : "") + "&"), n === null) throw new globalThis.Error("The parameter 'end' cannot be null.");
|
|
567
460
|
n !== void 0 && (r += "end=" + encodeURIComponent(n ? "" + n.toISOString() : "") + "&"), r = r.replace(/[?&]$/, "");
|
|
568
461
|
let a = {
|
|
569
462
|
method: "GET",
|
|
@@ -579,10 +472,10 @@ class vr extends F {
|
|
|
579
472
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
580
473
|
let a = null;
|
|
581
474
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
582
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
475
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
583
476
|
}
|
|
584
477
|
}
|
|
585
|
-
class
|
|
478
|
+
class Sr extends G {
|
|
586
479
|
http;
|
|
587
480
|
baseUrl;
|
|
588
481
|
constructor(e, t) {
|
|
@@ -608,10 +501,10 @@ class gr extends F {
|
|
|
608
501
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
609
502
|
let a = null;
|
|
610
503
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
611
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
504
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
612
505
|
}
|
|
613
506
|
}
|
|
614
|
-
class
|
|
507
|
+
class yr extends G {
|
|
615
508
|
http;
|
|
616
509
|
baseUrl;
|
|
617
510
|
constructor(e, t) {
|
|
@@ -637,7 +530,7 @@ class br extends F {
|
|
|
637
530
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
638
531
|
let a = null;
|
|
639
532
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
640
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
533
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
641
534
|
}
|
|
642
535
|
/**
|
|
643
536
|
* Get installed modules with errors
|
|
@@ -660,10 +553,10 @@ class br extends F {
|
|
|
660
553
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
661
554
|
let a = null;
|
|
662
555
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
663
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
556
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
664
557
|
}
|
|
665
558
|
}
|
|
666
|
-
class
|
|
559
|
+
class Ur extends G {
|
|
667
560
|
http;
|
|
668
561
|
baseUrl;
|
|
669
562
|
constructor(e, t) {
|
|
@@ -690,16 +583,15 @@ class xr extends F {
|
|
|
690
583
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
691
584
|
let a = null;
|
|
692
585
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
693
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
586
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
694
587
|
}
|
|
695
588
|
/**
|
|
696
|
-
* @param id (optional)
|
|
589
|
+
* @param id (optional)
|
|
697
590
|
* @return OK
|
|
698
591
|
*/
|
|
699
592
|
getAllDynamicProperties(e) {
|
|
700
593
|
let t = this.baseUrl + "/api/platform/dynamic/properties?";
|
|
701
|
-
if (e === null)
|
|
702
|
-
throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
594
|
+
if (e === null) throw new globalThis.Error("The parameter 'id' cannot be null.");
|
|
703
595
|
e !== void 0 && (t += "id=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
|
|
704
596
|
let n = {
|
|
705
597
|
method: "GET",
|
|
@@ -715,11 +607,11 @@ class xr extends F {
|
|
|
715
607
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
716
608
|
let a = null;
|
|
717
609
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
718
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
610
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
719
611
|
}
|
|
720
612
|
/**
|
|
721
613
|
* Add new dynamic property
|
|
722
|
-
* @param body (optional)
|
|
614
|
+
* @param body (optional)
|
|
723
615
|
* @return OK
|
|
724
616
|
*/
|
|
725
617
|
createProperty(e) {
|
|
@@ -741,11 +633,11 @@ class xr extends F {
|
|
|
741
633
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
742
634
|
let a = null;
|
|
743
635
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
744
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
636
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
745
637
|
}
|
|
746
638
|
/**
|
|
747
639
|
* Update existing dynamic property
|
|
748
|
-
* @param body (optional)
|
|
640
|
+
* @param body (optional)
|
|
749
641
|
* @return No Content
|
|
750
642
|
*/
|
|
751
643
|
updateProperty(e) {
|
|
@@ -764,17 +656,16 @@ class xr extends F {
|
|
|
764
656
|
const t = e.status;
|
|
765
657
|
let n = {};
|
|
766
658
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
767
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
659
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
768
660
|
}
|
|
769
661
|
/**
|
|
770
662
|
* Delete dynamic property
|
|
771
|
-
* @param propertyIds (optional)
|
|
663
|
+
* @param propertyIds (optional)
|
|
772
664
|
* @return No Content
|
|
773
665
|
*/
|
|
774
666
|
deleteProperty(e) {
|
|
775
667
|
let t = this.baseUrl + "/api/platform/dynamic/properties?";
|
|
776
|
-
if (e === null)
|
|
777
|
-
throw new globalThis.Error("The parameter 'propertyIds' cannot be null.");
|
|
668
|
+
if (e === null) throw new globalThis.Error("The parameter 'propertyIds' cannot be null.");
|
|
778
669
|
e !== void 0 && e && e.forEach((r) => {
|
|
779
670
|
t += "propertyIds=" + encodeURIComponent("" + r) + "&";
|
|
780
671
|
}), t = t.replace(/[?&]$/, "");
|
|
@@ -788,11 +679,11 @@ class xr extends F {
|
|
|
788
679
|
const t = e.status;
|
|
789
680
|
let n = {};
|
|
790
681
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
791
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
682
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
792
683
|
}
|
|
793
684
|
/**
|
|
794
685
|
* Get dynamic properties registered for object type
|
|
795
|
-
* @param body (optional)
|
|
686
|
+
* @param body (optional)
|
|
796
687
|
* @return OK
|
|
797
688
|
*/
|
|
798
689
|
searchDynamicProperties(e) {
|
|
@@ -814,7 +705,7 @@ class xr extends F {
|
|
|
814
705
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
815
706
|
let a = null;
|
|
816
707
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
817
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
708
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
818
709
|
}
|
|
819
710
|
/**
|
|
820
711
|
* Does nothing. Just a way to expose DynamicObjectProperty thru Swagger.
|
|
@@ -837,16 +728,15 @@ class xr extends F {
|
|
|
837
728
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
838
729
|
let a = null;
|
|
839
730
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
840
|
-
}) : t === 204 ? e.text().then((r) =>
|
|
731
|
+
}) : t === 204 ? e.text().then((r) => i("No Content", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
841
732
|
}
|
|
842
733
|
/**
|
|
843
|
-
* @param propertyId (optional)
|
|
734
|
+
* @param propertyId (optional)
|
|
844
735
|
* @return OK
|
|
845
736
|
*/
|
|
846
737
|
getAllDictionaryItems(e) {
|
|
847
738
|
let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems?";
|
|
848
|
-
if (e === null)
|
|
849
|
-
throw new globalThis.Error("The parameter 'propertyId' cannot be null.");
|
|
739
|
+
if (e === null) throw new globalThis.Error("The parameter 'propertyId' cannot be null.");
|
|
850
740
|
e !== void 0 && (t += "propertyId=" + encodeURIComponent("" + e) + "&"), t = t.replace(/[?&]$/, "");
|
|
851
741
|
let n = {
|
|
852
742
|
method: "GET",
|
|
@@ -862,11 +752,11 @@ class xr extends F {
|
|
|
862
752
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
863
753
|
let a = null;
|
|
864
754
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
865
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
755
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
866
756
|
}
|
|
867
757
|
/**
|
|
868
758
|
* Add or update dictionary items
|
|
869
|
-
* @param body (optional)
|
|
759
|
+
* @param body (optional)
|
|
870
760
|
* @return No Content
|
|
871
761
|
*/
|
|
872
762
|
saveDictionaryItems(e) {
|
|
@@ -885,7 +775,7 @@ class xr extends F {
|
|
|
885
775
|
const t = e.status;
|
|
886
776
|
let n = {};
|
|
887
777
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
888
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
778
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
889
779
|
}
|
|
890
780
|
/**
|
|
891
781
|
* Delete dictionary items
|
|
@@ -894,8 +784,7 @@ class xr extends F {
|
|
|
894
784
|
*/
|
|
895
785
|
deleteDictionaryItem(e) {
|
|
896
786
|
let t = this.baseUrl + "/api/platform/dynamic/dictionaryitems?";
|
|
897
|
-
if (e === null)
|
|
898
|
-
throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
787
|
+
if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
899
788
|
e !== void 0 && e && e.forEach((r) => {
|
|
900
789
|
t += "ids=" + encodeURIComponent("" + r) + "&";
|
|
901
790
|
}), t = t.replace(/[?&]$/, "");
|
|
@@ -909,11 +798,11 @@ class xr extends F {
|
|
|
909
798
|
const t = e.status;
|
|
910
799
|
let n = {};
|
|
911
800
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
912
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
801
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
913
802
|
}
|
|
914
803
|
/**
|
|
915
804
|
* Get dictionary items
|
|
916
|
-
* @param body (optional)
|
|
805
|
+
* @param body (optional)
|
|
917
806
|
* @return OK
|
|
918
807
|
*/
|
|
919
808
|
searchDictionaryItems(e) {
|
|
@@ -935,10 +824,10 @@ class xr extends F {
|
|
|
935
824
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
936
825
|
let a = null;
|
|
937
826
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
938
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
827
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
939
828
|
}
|
|
940
829
|
}
|
|
941
|
-
class
|
|
830
|
+
class Ar extends G {
|
|
942
831
|
http;
|
|
943
832
|
baseUrl;
|
|
944
833
|
constructor(e, t) {
|
|
@@ -951,8 +840,7 @@ class Er extends F {
|
|
|
951
840
|
*/
|
|
952
841
|
getStatus(e) {
|
|
953
842
|
let t = this.baseUrl + "/api/platform/jobs/{id}";
|
|
954
|
-
if (e == null)
|
|
955
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
843
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
956
844
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
957
845
|
let n = {
|
|
958
846
|
method: "GET",
|
|
@@ -968,10 +856,10 @@ class Er extends F {
|
|
|
968
856
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
969
857
|
let a = null;
|
|
970
858
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
971
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
859
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
972
860
|
}
|
|
973
861
|
}
|
|
974
|
-
class
|
|
862
|
+
class wr extends G {
|
|
975
863
|
http;
|
|
976
864
|
baseUrl;
|
|
977
865
|
constructor(e, t) {
|
|
@@ -997,15 +885,14 @@ class yr extends F {
|
|
|
997
885
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
998
886
|
let a = null;
|
|
999
887
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1000
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
888
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1001
889
|
}
|
|
1002
890
|
/**
|
|
1003
891
|
* @return OK
|
|
1004
892
|
*/
|
|
1005
893
|
getDictionaryValues(e, t) {
|
|
1006
894
|
let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items/{language}/values";
|
|
1007
|
-
if (e == null)
|
|
1008
|
-
throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
895
|
+
if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
1009
896
|
if (n = n.replace("{name}", encodeURIComponent("" + e)), t == null)
|
|
1010
897
|
throw new globalThis.Error("The parameter 'language' must be defined.");
|
|
1011
898
|
n = n.replace("{language}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
|
|
@@ -1023,16 +910,15 @@ class yr extends F {
|
|
|
1023
910
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1024
911
|
let a = null;
|
|
1025
912
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1026
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
913
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1027
914
|
}
|
|
1028
915
|
/**
|
|
1029
|
-
* @param body (optional)
|
|
916
|
+
* @param body (optional)
|
|
1030
917
|
* @return No Content
|
|
1031
918
|
*/
|
|
1032
919
|
saveDictionaryItems(e, t) {
|
|
1033
920
|
let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items";
|
|
1034
|
-
if (e == null)
|
|
1035
|
-
throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
921
|
+
if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
1036
922
|
n = n.replace("{name}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
1037
923
|
let a = {
|
|
1038
924
|
body: JSON.stringify(t),
|
|
@@ -1047,18 +933,16 @@ class yr extends F {
|
|
|
1047
933
|
const t = e.status;
|
|
1048
934
|
let n = {};
|
|
1049
935
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1050
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
936
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1051
937
|
}
|
|
1052
938
|
/**
|
|
1053
|
-
* @param values (optional)
|
|
939
|
+
* @param values (optional)
|
|
1054
940
|
* @return No Content
|
|
1055
941
|
*/
|
|
1056
942
|
deleteDictionaryItems(e, t) {
|
|
1057
943
|
let n = this.baseUrl + "/api/platform/localizable-settings/{name}/dictionary-items?";
|
|
1058
|
-
if (e == null)
|
|
1059
|
-
|
|
1060
|
-
if (n = n.replace("{name}", encodeURIComponent("" + e)), t === null)
|
|
1061
|
-
throw new globalThis.Error("The parameter 'values' cannot be null.");
|
|
944
|
+
if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
945
|
+
if (n = n.replace("{name}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'values' cannot be null.");
|
|
1062
946
|
t !== void 0 && t && t.forEach((a) => {
|
|
1063
947
|
n += "values=" + encodeURIComponent("" + a) + "&";
|
|
1064
948
|
}), n = n.replace(/[?&]$/, "");
|
|
@@ -1072,17 +956,17 @@ class yr extends F {
|
|
|
1072
956
|
const t = e.status;
|
|
1073
957
|
let n = {};
|
|
1074
958
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1075
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
959
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1076
960
|
}
|
|
1077
961
|
}
|
|
1078
|
-
class
|
|
962
|
+
class Tr extends G {
|
|
1079
963
|
http;
|
|
1080
964
|
baseUrl;
|
|
1081
965
|
constructor(e, t) {
|
|
1082
966
|
super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
|
|
1083
967
|
}
|
|
1084
968
|
/**
|
|
1085
|
-
* Reload
|
|
969
|
+
* Reload modules
|
|
1086
970
|
* @return No Content
|
|
1087
971
|
*/
|
|
1088
972
|
reloadModules() {
|
|
@@ -1098,7 +982,7 @@ class _r extends F {
|
|
|
1098
982
|
const t = e.status;
|
|
1099
983
|
let n = {};
|
|
1100
984
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1101
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
985
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1102
986
|
}
|
|
1103
987
|
/**
|
|
1104
988
|
* Get installed modules
|
|
@@ -1121,10 +1005,10 @@ class _r extends F {
|
|
|
1121
1005
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1122
1006
|
let a = null;
|
|
1123
1007
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1124
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1008
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1125
1009
|
}
|
|
1126
1010
|
/**
|
|
1127
|
-
* Get all dependent modules for
|
|
1011
|
+
* Get all dependent modules for module
|
|
1128
1012
|
* @param body (optional) modules descriptors
|
|
1129
1013
|
* @return OK
|
|
1130
1014
|
*/
|
|
@@ -1147,10 +1031,10 @@ class _r extends F {
|
|
|
1147
1031
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1148
1032
|
let a = null;
|
|
1149
1033
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1150
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1034
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1151
1035
|
}
|
|
1152
1036
|
/**
|
|
1153
|
-
* Returns a flat expanded
|
|
1037
|
+
* Returns a flat expanded list of modules that depend on passed modules
|
|
1154
1038
|
* @param body (optional) modules descriptors
|
|
1155
1039
|
* @return OK
|
|
1156
1040
|
*/
|
|
@@ -1173,7 +1057,7 @@ class _r extends F {
|
|
|
1173
1057
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1174
1058
|
let a = null;
|
|
1175
1059
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1176
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1060
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1177
1061
|
}
|
|
1178
1062
|
/**
|
|
1179
1063
|
* Upload module package for installation or update
|
|
@@ -1196,7 +1080,7 @@ class _r extends F {
|
|
|
1196
1080
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1197
1081
|
let a = null;
|
|
1198
1082
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1199
|
-
}) : t ===
|
|
1083
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1200
1084
|
}
|
|
1201
1085
|
/**
|
|
1202
1086
|
* Install modules
|
|
@@ -1222,33 +1106,7 @@ class _r extends F {
|
|
|
1222
1106
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1223
1107
|
let a = null;
|
|
1224
1108
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1225
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1226
|
-
}
|
|
1227
|
-
/**
|
|
1228
|
-
* Install modules using lightweight requests
|
|
1229
|
-
* @param body (optional) module install requests (id + optional version)
|
|
1230
|
-
* @return OK
|
|
1231
|
-
*/
|
|
1232
|
-
installModuleRequests(e) {
|
|
1233
|
-
let t = this.baseUrl + "/api/platform/modules/install/v2";
|
|
1234
|
-
t = t.replace(/[?&]$/, "");
|
|
1235
|
-
let r = {
|
|
1236
|
-
body: JSON.stringify(e),
|
|
1237
|
-
method: "POST",
|
|
1238
|
-
headers: {
|
|
1239
|
-
"Content-Type": "application/json-patch+json",
|
|
1240
|
-
Accept: "application/json"
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processInstallModuleRequests(a));
|
|
1244
|
-
}
|
|
1245
|
-
processInstallModuleRequests(e) {
|
|
1246
|
-
const t = e.status;
|
|
1247
|
-
let n = {};
|
|
1248
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1249
|
-
let a = null;
|
|
1250
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1251
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1109
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1252
1110
|
}
|
|
1253
1111
|
/**
|
|
1254
1112
|
* Update modules
|
|
@@ -1274,33 +1132,7 @@ class _r extends F {
|
|
|
1274
1132
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1275
1133
|
let a = null;
|
|
1276
1134
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1277
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1278
|
-
}
|
|
1279
|
-
/**
|
|
1280
|
-
* Update modules using lightweight requests
|
|
1281
|
-
* @param body (optional) module install requests (id + optional version)
|
|
1282
|
-
* @return OK
|
|
1283
|
-
*/
|
|
1284
|
-
updateModuleRequests(e) {
|
|
1285
|
-
let t = this.baseUrl + "/api/platform/modules/update/v2";
|
|
1286
|
-
t = t.replace(/[?&]$/, "");
|
|
1287
|
-
let r = {
|
|
1288
|
-
body: JSON.stringify(e),
|
|
1289
|
-
method: "POST",
|
|
1290
|
-
headers: {
|
|
1291
|
-
"Content-Type": "application/json-patch+json",
|
|
1292
|
-
Accept: "application/json"
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
|
-
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdateModuleRequests(a));
|
|
1296
|
-
}
|
|
1297
|
-
processUpdateModuleRequests(e) {
|
|
1298
|
-
const t = e.status;
|
|
1299
|
-
let n = {};
|
|
1300
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1301
|
-
let a = null;
|
|
1302
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1303
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1135
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1304
1136
|
}
|
|
1305
1137
|
/**
|
|
1306
1138
|
* Uninstall module
|
|
@@ -1326,33 +1158,7 @@ class _r extends F {
|
|
|
1326
1158
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1327
1159
|
let a = null;
|
|
1328
1160
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1329
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* Uninstall modules using lightweight requests
|
|
1333
|
-
* @param body (optional) module install requests (id only, version ignored)
|
|
1334
|
-
* @return OK
|
|
1335
|
-
*/
|
|
1336
|
-
uninstallModuleRequests(e) {
|
|
1337
|
-
let t = this.baseUrl + "/api/platform/modules/uninstall/v2";
|
|
1338
|
-
t = t.replace(/[?&]$/, "");
|
|
1339
|
-
let r = {
|
|
1340
|
-
body: JSON.stringify(e),
|
|
1341
|
-
method: "POST",
|
|
1342
|
-
headers: {
|
|
1343
|
-
"Content-Type": "application/json-patch+json",
|
|
1344
|
-
Accept: "application/json"
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
|
-
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUninstallModuleRequests(a));
|
|
1348
|
-
}
|
|
1349
|
-
processUninstallModuleRequests(e) {
|
|
1350
|
-
const t = e.status;
|
|
1351
|
-
let n = {};
|
|
1352
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1353
|
-
let a = null;
|
|
1354
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1355
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1161
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1356
1162
|
}
|
|
1357
1163
|
/**
|
|
1358
1164
|
* Restart web application
|
|
@@ -1371,7 +1177,7 @@ class _r extends F {
|
|
|
1371
1177
|
const t = e.status;
|
|
1372
1178
|
let n = {};
|
|
1373
1179
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1374
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1180
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1375
1181
|
}
|
|
1376
1182
|
/**
|
|
1377
1183
|
* Auto-install modules with specified groups
|
|
@@ -1394,10 +1200,9 @@ class _r extends F {
|
|
|
1394
1200
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1395
1201
|
let a = null;
|
|
1396
1202
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1397
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1203
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1398
1204
|
}
|
|
1399
1205
|
/**
|
|
1400
|
-
* Get module loading order
|
|
1401
1206
|
* @return OK
|
|
1402
1207
|
*/
|
|
1403
1208
|
getModulesLoadingOrder() {
|
|
@@ -1417,121 +1222,10 @@ class _r extends F {
|
|
|
1417
1222
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1418
1223
|
let a = null;
|
|
1419
1224
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1420
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1423
|
-
* Validate that a specific module version package exists at the download URL.
|
|
1424
|
-
* @param moduleId Module identifier
|
|
1425
|
-
* @param version Version to validate
|
|
1426
|
-
* @return OK
|
|
1427
|
-
*/
|
|
1428
|
-
validateModuleVersion(e, t) {
|
|
1429
|
-
let n = this.baseUrl + "/api/platform/modules/{moduleId}/versions/{version}/validate";
|
|
1430
|
-
if (e == null)
|
|
1431
|
-
throw new globalThis.Error("The parameter 'moduleId' must be defined.");
|
|
1432
|
-
if (n = n.replace("{moduleId}", encodeURIComponent("" + e)), t == null)
|
|
1433
|
-
throw new globalThis.Error("The parameter 'version' must be defined.");
|
|
1434
|
-
n = n.replace("{version}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
|
|
1435
|
-
let r = {
|
|
1436
|
-
method: "GET",
|
|
1437
|
-
headers: {
|
|
1438
|
-
Accept: "application/json"
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processValidateModuleVersion(a));
|
|
1442
|
-
}
|
|
1443
|
-
processValidateModuleVersion(e) {
|
|
1444
|
-
const t = e.status;
|
|
1445
|
-
let n = {};
|
|
1446
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1447
|
-
let a = null;
|
|
1448
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1449
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1450
|
-
}
|
|
1451
|
-
/**
|
|
1452
|
-
* Install a specific version of a module.
|
|
1453
|
-
Validates the package URL, registers the custom version, and schedules installation.
|
|
1454
|
-
* @param moduleId Module identifier
|
|
1455
|
-
* @param version Version to install
|
|
1456
|
-
* @return OK
|
|
1457
|
-
*/
|
|
1458
|
-
installModuleVersion(e, t) {
|
|
1459
|
-
let n = this.baseUrl + "/api/platform/modules/{moduleId}/versions/{version}/install";
|
|
1460
|
-
if (e == null)
|
|
1461
|
-
throw new globalThis.Error("The parameter 'moduleId' must be defined.");
|
|
1462
|
-
if (n = n.replace("{moduleId}", encodeURIComponent("" + e)), t == null)
|
|
1463
|
-
throw new globalThis.Error("The parameter 'version' must be defined.");
|
|
1464
|
-
n = n.replace("{version}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
|
|
1465
|
-
let r = {
|
|
1466
|
-
method: "POST",
|
|
1467
|
-
headers: {
|
|
1468
|
-
Accept: "application/json"
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processInstallModuleVersion(a));
|
|
1472
|
-
}
|
|
1473
|
-
processInstallModuleVersion(e) {
|
|
1474
|
-
const t = e.status;
|
|
1475
|
-
let n = {};
|
|
1476
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1477
|
-
let a = null;
|
|
1478
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1479
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t === 404 ? e.text().then((r) => s("Not Found", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1480
|
-
}
|
|
1481
|
-
/**
|
|
1482
|
-
* Install the latest available version of a module.
|
|
1483
|
-
* @param moduleId Module identifier
|
|
1484
|
-
* @return OK
|
|
1485
|
-
*/
|
|
1486
|
-
installModule(e) {
|
|
1487
|
-
let t = this.baseUrl + "/api/platform/modules/{moduleId}/install";
|
|
1488
|
-
if (e == null)
|
|
1489
|
-
throw new globalThis.Error("The parameter 'moduleId' must be defined.");
|
|
1490
|
-
t = t.replace("{moduleId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
1491
|
-
let n = {
|
|
1492
|
-
method: "POST",
|
|
1493
|
-
headers: {
|
|
1494
|
-
Accept: "application/json"
|
|
1495
|
-
}
|
|
1496
|
-
};
|
|
1497
|
-
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processInstallModule(r));
|
|
1498
|
-
}
|
|
1499
|
-
processInstallModule(e) {
|
|
1500
|
-
const t = e.status;
|
|
1501
|
-
let n = {};
|
|
1502
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1503
|
-
let a = null;
|
|
1504
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1505
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1506
|
-
}
|
|
1507
|
-
/**
|
|
1508
|
-
* Uninstall a module.
|
|
1509
|
-
* @param moduleId Module identifier
|
|
1510
|
-
* @return OK
|
|
1511
|
-
*/
|
|
1512
|
-
uninstallSingleModule(e) {
|
|
1513
|
-
let t = this.baseUrl + "/api/platform/modules/{moduleId}/uninstall";
|
|
1514
|
-
if (e == null)
|
|
1515
|
-
throw new globalThis.Error("The parameter 'moduleId' must be defined.");
|
|
1516
|
-
t = t.replace("{moduleId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
1517
|
-
let n = {
|
|
1518
|
-
method: "POST",
|
|
1519
|
-
headers: {
|
|
1520
|
-
Accept: "application/json"
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processUninstallSingleModule(r));
|
|
1524
|
-
}
|
|
1525
|
-
processUninstallSingleModule(e) {
|
|
1526
|
-
const t = e.status;
|
|
1527
|
-
let n = {};
|
|
1528
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1529
|
-
let a = null;
|
|
1530
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1531
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1225
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1532
1226
|
}
|
|
1533
1227
|
}
|
|
1534
|
-
class
|
|
1228
|
+
class Pr extends G {
|
|
1535
1229
|
http;
|
|
1536
1230
|
baseUrl;
|
|
1537
1231
|
constructor(e, t) {
|
|
@@ -1557,10 +1251,10 @@ class Ur extends F {
|
|
|
1557
1251
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1558
1252
|
let a = null;
|
|
1559
1253
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1560
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1254
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1561
1255
|
}
|
|
1562
1256
|
/**
|
|
1563
|
-
* @param body (optional)
|
|
1257
|
+
* @param body (optional)
|
|
1564
1258
|
* @return OK
|
|
1565
1259
|
*/
|
|
1566
1260
|
save(e) {
|
|
@@ -1582,16 +1276,15 @@ class Ur extends F {
|
|
|
1582
1276
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1583
1277
|
let a = null;
|
|
1584
1278
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1585
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1279
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1586
1280
|
}
|
|
1587
1281
|
/**
|
|
1588
|
-
* @param clientIds (optional)
|
|
1282
|
+
* @param clientIds (optional)
|
|
1589
1283
|
* @return OK
|
|
1590
1284
|
*/
|
|
1591
1285
|
delete(e) {
|
|
1592
1286
|
let t = this.baseUrl + "/api/platform/oauthapps?";
|
|
1593
|
-
if (e === null)
|
|
1594
|
-
throw new globalThis.Error("The parameter 'clientIds' cannot be null.");
|
|
1287
|
+
if (e === null) throw new globalThis.Error("The parameter 'clientIds' cannot be null.");
|
|
1595
1288
|
e !== void 0 && e && e.forEach((r) => {
|
|
1596
1289
|
t += "clientIds=" + encodeURIComponent("" + r) + "&";
|
|
1597
1290
|
}), t = t.replace(/[?&]$/, "");
|
|
@@ -1605,10 +1298,10 @@ class Ur extends F {
|
|
|
1605
1298
|
const t = e.status;
|
|
1606
1299
|
let n = {};
|
|
1607
1300
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1608
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1301
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1609
1302
|
}
|
|
1610
1303
|
/**
|
|
1611
|
-
* @param body (optional)
|
|
1304
|
+
* @param body (optional)
|
|
1612
1305
|
* @return OK
|
|
1613
1306
|
*/
|
|
1614
1307
|
search(e) {
|
|
@@ -1630,10 +1323,10 @@ class Ur extends F {
|
|
|
1630
1323
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1631
1324
|
let a = null;
|
|
1632
1325
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1633
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1326
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1634
1327
|
}
|
|
1635
1328
|
}
|
|
1636
|
-
class
|
|
1329
|
+
class Or extends G {
|
|
1637
1330
|
http;
|
|
1638
1331
|
baseUrl;
|
|
1639
1332
|
constructor(e, t) {
|
|
@@ -1663,7 +1356,7 @@ class Cr extends F {
|
|
|
1663
1356
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1664
1357
|
let a = null;
|
|
1665
1358
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1666
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1359
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1667
1360
|
}
|
|
1668
1361
|
/**
|
|
1669
1362
|
* Mark all notifications as read
|
|
@@ -1686,23 +1379,22 @@ class Cr extends F {
|
|
|
1686
1379
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1687
1380
|
let a = null;
|
|
1688
1381
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1689
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1382
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1690
1383
|
}
|
|
1691
1384
|
}
|
|
1692
|
-
class qe extends
|
|
1385
|
+
class qe extends G {
|
|
1693
1386
|
http;
|
|
1694
1387
|
baseUrl;
|
|
1695
1388
|
constructor(e, t) {
|
|
1696
1389
|
super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
|
|
1697
1390
|
}
|
|
1698
1391
|
/**
|
|
1699
|
-
* @param body (optional)
|
|
1392
|
+
* @param body (optional)
|
|
1700
1393
|
* @return OK
|
|
1701
1394
|
*/
|
|
1702
1395
|
searchUserSessions(e, t) {
|
|
1703
1396
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/sessions/search";
|
|
1704
|
-
if (e == null)
|
|
1705
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1397
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1706
1398
|
n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
1707
1399
|
let a = {
|
|
1708
1400
|
body: JSON.stringify(t),
|
|
@@ -1720,17 +1412,15 @@ class qe extends F {
|
|
|
1720
1412
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1721
1413
|
let a = null;
|
|
1722
1414
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1723
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1415
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1724
1416
|
}
|
|
1725
1417
|
/**
|
|
1726
1418
|
* @return No Content
|
|
1727
1419
|
*/
|
|
1728
1420
|
terminateUserSession(e, t) {
|
|
1729
1421
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/sessions/{id}";
|
|
1730
|
-
if (e == null)
|
|
1731
|
-
|
|
1732
|
-
if (n = n.replace("{userId}", encodeURIComponent("" + e)), t == null)
|
|
1733
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1422
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1423
|
+
if (n = n.replace("{userId}", encodeURIComponent("" + e)), t == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1734
1424
|
n = n.replace("{id}", encodeURIComponent("" + t)), n = n.replace(/[?&]$/, "");
|
|
1735
1425
|
let r = {
|
|
1736
1426
|
method: "DELETE",
|
|
@@ -1742,15 +1432,14 @@ class qe extends F {
|
|
|
1742
1432
|
const t = e.status;
|
|
1743
1433
|
let n = {};
|
|
1744
1434
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1745
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1435
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1746
1436
|
}
|
|
1747
1437
|
/**
|
|
1748
1438
|
* @return No Content
|
|
1749
1439
|
*/
|
|
1750
1440
|
terminateAllUserSessions(e) {
|
|
1751
1441
|
let t = this.baseUrl + "/api/platform/security/users/{userId}/sessions";
|
|
1752
|
-
if (e == null)
|
|
1753
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1442
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1754
1443
|
t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
1755
1444
|
let n = {
|
|
1756
1445
|
method: "DELETE",
|
|
@@ -1762,7 +1451,7 @@ class qe extends F {
|
|
|
1762
1451
|
const t = e.status;
|
|
1763
1452
|
let n = {};
|
|
1764
1453
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1765
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1454
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1766
1455
|
}
|
|
1767
1456
|
/**
|
|
1768
1457
|
* Sign in with user name and password
|
|
@@ -1788,7 +1477,7 @@ class qe extends F {
|
|
|
1788
1477
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1789
1478
|
let a = null;
|
|
1790
1479
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1791
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1480
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1792
1481
|
}
|
|
1793
1482
|
/**
|
|
1794
1483
|
* Sign out
|
|
@@ -1807,7 +1496,7 @@ class qe extends F {
|
|
|
1807
1496
|
const t = e.status;
|
|
1808
1497
|
let n = {};
|
|
1809
1498
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1810
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1499
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1811
1500
|
}
|
|
1812
1501
|
/**
|
|
1813
1502
|
* Get current user details
|
|
@@ -1830,7 +1519,7 @@ class qe extends F {
|
|
|
1830
1519
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1831
1520
|
let a = null;
|
|
1832
1521
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1833
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1522
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1834
1523
|
}
|
|
1835
1524
|
/**
|
|
1836
1525
|
* @return OK
|
|
@@ -1852,7 +1541,7 @@ class qe extends F {
|
|
|
1852
1541
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1853
1542
|
let a = null;
|
|
1854
1543
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1855
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1544
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1856
1545
|
}
|
|
1857
1546
|
/**
|
|
1858
1547
|
* Get all registered permissions
|
|
@@ -1875,7 +1564,7 @@ class qe extends F {
|
|
|
1875
1564
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1876
1565
|
let a = null;
|
|
1877
1566
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1878
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1567
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1879
1568
|
}
|
|
1880
1569
|
/**
|
|
1881
1570
|
* SearchAsync roles by keyword
|
|
@@ -1901,7 +1590,7 @@ class qe extends F {
|
|
|
1901
1590
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1902
1591
|
let a = null;
|
|
1903
1592
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1904
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1593
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1905
1594
|
}
|
|
1906
1595
|
/**
|
|
1907
1596
|
* Get role by ID
|
|
@@ -1926,7 +1615,7 @@ class qe extends F {
|
|
|
1926
1615
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1927
1616
|
let a = null;
|
|
1928
1617
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1929
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1618
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1930
1619
|
}
|
|
1931
1620
|
/**
|
|
1932
1621
|
* Delete roles by ID
|
|
@@ -1935,8 +1624,7 @@ class qe extends F {
|
|
|
1935
1624
|
*/
|
|
1936
1625
|
deleteRoles(e) {
|
|
1937
1626
|
let t = this.baseUrl + "/api/platform/security/roles?";
|
|
1938
|
-
if (e === null)
|
|
1939
|
-
throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
1627
|
+
if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
1940
1628
|
e !== void 0 && e && e.forEach((r) => {
|
|
1941
1629
|
t += "ids=" + encodeURIComponent("" + r) + "&";
|
|
1942
1630
|
}), t = t.replace(/[?&]$/, "");
|
|
@@ -1950,11 +1638,11 @@ class qe extends F {
|
|
|
1950
1638
|
const t = e.status;
|
|
1951
1639
|
let n = {};
|
|
1952
1640
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
1953
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1641
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1954
1642
|
}
|
|
1955
1643
|
/**
|
|
1956
1644
|
* Update an existing role or create new
|
|
1957
|
-
* @param body (optional)
|
|
1645
|
+
* @param body (optional)
|
|
1958
1646
|
* @return OK
|
|
1959
1647
|
*/
|
|
1960
1648
|
updateRole(e) {
|
|
@@ -1976,7 +1664,7 @@ class qe extends F {
|
|
|
1976
1664
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
1977
1665
|
let a = null;
|
|
1978
1666
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
1979
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1667
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1980
1668
|
}
|
|
1981
1669
|
/**
|
|
1982
1670
|
* SearchAsync users by keyword
|
|
@@ -2002,85 +1690,7 @@ class qe extends F {
|
|
|
2002
1690
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2003
1691
|
let a = null;
|
|
2004
1692
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2005
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2006
|
-
}
|
|
2007
|
-
/**
|
|
2008
|
-
* Get users by IDs
|
|
2009
|
-
* @param ids (optional) An array of user IDs.
|
|
2010
|
-
* @return OK
|
|
2011
|
-
*/
|
|
2012
|
-
getUsersByIds(e) {
|
|
2013
|
-
let t = this.baseUrl + "/api/platform/security/users?";
|
|
2014
|
-
if (e === null)
|
|
2015
|
-
throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
2016
|
-
e !== void 0 && e && e.forEach((r) => {
|
|
2017
|
-
t += "ids=" + encodeURIComponent("" + r) + "&";
|
|
2018
|
-
}), t = t.replace(/[?&]$/, "");
|
|
2019
|
-
let n = {
|
|
2020
|
-
method: "GET",
|
|
2021
|
-
headers: {
|
|
2022
|
-
Accept: "application/json"
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processGetUsersByIds(r));
|
|
2026
|
-
}
|
|
2027
|
-
processGetUsersByIds(e) {
|
|
2028
|
-
const t = e.status;
|
|
2029
|
-
let n = {};
|
|
2030
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2031
|
-
let a = null;
|
|
2032
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2033
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2034
|
-
}
|
|
2035
|
-
/**
|
|
2036
|
-
* Update user details by user ID
|
|
2037
|
-
* @param body (optional) User details.
|
|
2038
|
-
* @return OK
|
|
2039
|
-
*/
|
|
2040
|
-
update(e) {
|
|
2041
|
-
let t = this.baseUrl + "/api/platform/security/users";
|
|
2042
|
-
t = t.replace(/[?&]$/, "");
|
|
2043
|
-
let r = {
|
|
2044
|
-
body: JSON.stringify(e),
|
|
2045
|
-
method: "PUT",
|
|
2046
|
-
headers: {
|
|
2047
|
-
"Content-Type": "application/json-patch+json",
|
|
2048
|
-
Accept: "application/json"
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
|
|
2052
|
-
}
|
|
2053
|
-
processUpdate(e) {
|
|
2054
|
-
const t = e.status;
|
|
2055
|
-
let n = {};
|
|
2056
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2057
|
-
let a = null;
|
|
2058
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2059
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2060
|
-
}
|
|
2061
|
-
/**
|
|
2062
|
-
* Delete users by name
|
|
2063
|
-
* @param names (optional) An array of user names.
|
|
2064
|
-
* @return OK
|
|
2065
|
-
*/
|
|
2066
|
-
delete(e) {
|
|
2067
|
-
let t = this.baseUrl + "/api/platform/security/users?";
|
|
2068
|
-
if (e === null)
|
|
2069
|
-
throw new globalThis.Error("The parameter 'names' cannot be null.");
|
|
2070
|
-
e !== void 0 && e && e.forEach((r) => {
|
|
2071
|
-
t += "names=" + encodeURIComponent("" + r) + "&";
|
|
2072
|
-
}), t = t.replace(/[?&]$/, "");
|
|
2073
|
-
let n = {
|
|
2074
|
-
method: "DELETE",
|
|
2075
|
-
headers: {}
|
|
2076
|
-
};
|
|
2077
|
-
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDelete(r));
|
|
2078
|
-
}
|
|
2079
|
-
processDelete(e) {
|
|
2080
|
-
const t = e.status;
|
|
2081
|
-
let n = {};
|
|
2082
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2083
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1693
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2084
1694
|
}
|
|
2085
1695
|
/**
|
|
2086
1696
|
* Get user details by user name
|
|
@@ -2105,7 +1715,7 @@ class qe extends F {
|
|
|
2105
1715
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2106
1716
|
let a = null;
|
|
2107
1717
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2108
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1718
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2109
1719
|
}
|
|
2110
1720
|
/**
|
|
2111
1721
|
* Get user details by user ID
|
|
@@ -2113,8 +1723,7 @@ class qe extends F {
|
|
|
2113
1723
|
*/
|
|
2114
1724
|
getUserById(e) {
|
|
2115
1725
|
let t = this.baseUrl + "/api/platform/security/users/id/{id}";
|
|
2116
|
-
if (e == null)
|
|
2117
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
1726
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2118
1727
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2119
1728
|
let n = {
|
|
2120
1729
|
method: "GET",
|
|
@@ -2130,7 +1739,7 @@ class qe extends F {
|
|
|
2130
1739
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2131
1740
|
let a = null;
|
|
2132
1741
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2133
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1742
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2134
1743
|
}
|
|
2135
1744
|
/**
|
|
2136
1745
|
* Get user details by user email
|
|
@@ -2138,8 +1747,7 @@ class qe extends F {
|
|
|
2138
1747
|
*/
|
|
2139
1748
|
getUserByEmail(e) {
|
|
2140
1749
|
let t = this.baseUrl + "/api/platform/security/users/email/{email}";
|
|
2141
|
-
if (e == null)
|
|
2142
|
-
throw new globalThis.Error("The parameter 'email' must be defined.");
|
|
1750
|
+
if (e == null) throw new globalThis.Error("The parameter 'email' must be defined.");
|
|
2143
1751
|
t = t.replace("{email}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2144
1752
|
let n = {
|
|
2145
1753
|
method: "GET",
|
|
@@ -2155,7 +1763,7 @@ class qe extends F {
|
|
|
2155
1763
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2156
1764
|
let a = null;
|
|
2157
1765
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2158
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1766
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2159
1767
|
}
|
|
2160
1768
|
/**
|
|
2161
1769
|
* Get user details by external login provider
|
|
@@ -2182,11 +1790,11 @@ class qe extends F {
|
|
|
2182
1790
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2183
1791
|
let a = null;
|
|
2184
1792
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2185
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1793
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2186
1794
|
}
|
|
2187
1795
|
/**
|
|
2188
1796
|
* Create new user
|
|
2189
|
-
* @param body (optional)
|
|
1797
|
+
* @param body (optional)
|
|
2190
1798
|
* @return OK
|
|
2191
1799
|
*/
|
|
2192
1800
|
create(e) {
|
|
@@ -2208,7 +1816,7 @@ class qe extends F {
|
|
|
2208
1816
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2209
1817
|
let a = null;
|
|
2210
1818
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2211
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1819
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2212
1820
|
}
|
|
2213
1821
|
/**
|
|
2214
1822
|
* Change password for current user.
|
|
@@ -2234,7 +1842,7 @@ class qe extends F {
|
|
|
2234
1842
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2235
1843
|
let a = null;
|
|
2236
1844
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2237
|
-
}) : t === 400 ? e.text().then((r) =>
|
|
1845
|
+
}) : t === 400 ? e.text().then((r) => i("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2238
1846
|
}
|
|
2239
1847
|
/**
|
|
2240
1848
|
* Change password
|
|
@@ -2263,7 +1871,7 @@ class qe extends F {
|
|
|
2263
1871
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2264
1872
|
let a = null;
|
|
2265
1873
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2266
|
-
}) : t === 400 ? e.text().then((r) =>
|
|
1874
|
+
}) : t === 400 ? e.text().then((r) => i("Bad Request", t, r, n)) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2267
1875
|
}
|
|
2268
1876
|
/**
|
|
2269
1877
|
* Reset password confirmation
|
|
@@ -2291,7 +1899,7 @@ class qe extends F {
|
|
|
2291
1899
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2292
1900
|
let a = null;
|
|
2293
1901
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2294
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
1902
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2295
1903
|
}
|
|
2296
1904
|
/**
|
|
2297
1905
|
* Reset password confirmation
|
|
@@ -2300,8 +1908,7 @@ class qe extends F {
|
|
|
2300
1908
|
*/
|
|
2301
1909
|
resetPasswordByToken(e, t) {
|
|
2302
1910
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/resetpasswordconfirm";
|
|
2303
|
-
if (e == null)
|
|
2304
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1911
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2305
1912
|
n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
2306
1913
|
let a = {
|
|
2307
1914
|
body: JSON.stringify(t),
|
|
@@ -2319,17 +1926,16 @@ class qe extends F {
|
|
|
2319
1926
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2320
1927
|
let a = null;
|
|
2321
1928
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2322
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1929
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2323
1930
|
}
|
|
2324
1931
|
/**
|
|
2325
1932
|
* Validate password reset token
|
|
2326
|
-
* @param body (optional)
|
|
1933
|
+
* @param body (optional)
|
|
2327
1934
|
* @return OK
|
|
2328
1935
|
*/
|
|
2329
1936
|
validatePasswordResetToken(e, t) {
|
|
2330
1937
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/validatepasswordresettoken";
|
|
2331
|
-
if (e == null)
|
|
2332
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
1938
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2333
1939
|
n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
2334
1940
|
let a = {
|
|
2335
1941
|
body: JSON.stringify(t),
|
|
@@ -2347,7 +1953,7 @@ class qe extends F {
|
|
|
2347
1953
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2348
1954
|
let a = null;
|
|
2349
1955
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2350
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1956
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2351
1957
|
}
|
|
2352
1958
|
/**
|
|
2353
1959
|
* Send email with instructions on how to reset user password.
|
|
@@ -2368,10 +1974,10 @@ class qe extends F {
|
|
|
2368
1974
|
const t = e.status;
|
|
2369
1975
|
let n = {};
|
|
2370
1976
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2371
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
1977
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2372
1978
|
}
|
|
2373
1979
|
/**
|
|
2374
|
-
* @param body (optional)
|
|
1980
|
+
* @param body (optional)
|
|
2375
1981
|
* @return OK
|
|
2376
1982
|
*/
|
|
2377
1983
|
validatePassword(e) {
|
|
@@ -2393,10 +1999,10 @@ class qe extends F {
|
|
|
2393
1999
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2394
2000
|
let a = null;
|
|
2395
2001
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2396
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
2002
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2397
2003
|
}
|
|
2398
2004
|
/**
|
|
2399
|
-
* @param body (optional)
|
|
2005
|
+
* @param body (optional)
|
|
2400
2006
|
* @return OK
|
|
2401
2007
|
*/
|
|
2402
2008
|
validateUserPassword(e) {
|
|
@@ -2418,7 +2024,56 @@ class qe extends F {
|
|
|
2418
2024
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2419
2025
|
let a = null;
|
|
2420
2026
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2421
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2027
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Update user details by user ID
|
|
2031
|
+
* @param body (optional) User details.
|
|
2032
|
+
* @return OK
|
|
2033
|
+
*/
|
|
2034
|
+
update(e) {
|
|
2035
|
+
let t = this.baseUrl + "/api/platform/security/users";
|
|
2036
|
+
t = t.replace(/[?&]$/, "");
|
|
2037
|
+
let r = {
|
|
2038
|
+
body: JSON.stringify(e),
|
|
2039
|
+
method: "PUT",
|
|
2040
|
+
headers: {
|
|
2041
|
+
"Content-Type": "application/json-patch+json",
|
|
2042
|
+
Accept: "application/json"
|
|
2043
|
+
}
|
|
2044
|
+
};
|
|
2045
|
+
return this.transformOptions(r).then((a) => this.http.fetch(t, a)).then((a) => this.processUpdate(a));
|
|
2046
|
+
}
|
|
2047
|
+
processUpdate(e) {
|
|
2048
|
+
const t = e.status;
|
|
2049
|
+
let n = {};
|
|
2050
|
+
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2051
|
+
let a = null;
|
|
2052
|
+
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2053
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* Delete users by name
|
|
2057
|
+
* @param names (optional) An array of user names.
|
|
2058
|
+
* @return OK
|
|
2059
|
+
*/
|
|
2060
|
+
delete(e) {
|
|
2061
|
+
let t = this.baseUrl + "/api/platform/security/users?";
|
|
2062
|
+
if (e === null) throw new globalThis.Error("The parameter 'names' cannot be null.");
|
|
2063
|
+
e !== void 0 && e && e.forEach((r) => {
|
|
2064
|
+
t += "names=" + encodeURIComponent("" + r) + "&";
|
|
2065
|
+
}), t = t.replace(/[?&]$/, "");
|
|
2066
|
+
let n = {
|
|
2067
|
+
method: "DELETE",
|
|
2068
|
+
headers: {}
|
|
2069
|
+
};
|
|
2070
|
+
return this.transformOptions(n).then((r) => this.http.fetch(t, r)).then((r) => this.processDelete(r));
|
|
2071
|
+
}
|
|
2072
|
+
processDelete(e) {
|
|
2073
|
+
const t = e.status;
|
|
2074
|
+
let n = {};
|
|
2075
|
+
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2076
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2422
2077
|
}
|
|
2423
2078
|
/**
|
|
2424
2079
|
* Checks if user locked
|
|
@@ -2427,8 +2082,7 @@ class qe extends F {
|
|
|
2427
2082
|
*/
|
|
2428
2083
|
isUserLocked(e) {
|
|
2429
2084
|
let t = this.baseUrl + "/api/platform/security/users/{id}/locked";
|
|
2430
|
-
if (e == null)
|
|
2431
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2085
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2432
2086
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2433
2087
|
let n = {
|
|
2434
2088
|
method: "GET",
|
|
@@ -2444,7 +2098,7 @@ class qe extends F {
|
|
|
2444
2098
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2445
2099
|
let a = null;
|
|
2446
2100
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2447
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2101
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2448
2102
|
}
|
|
2449
2103
|
/**
|
|
2450
2104
|
* Checks if manual password change is enabled
|
|
@@ -2467,7 +2121,7 @@ class qe extends F {
|
|
|
2467
2121
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2468
2122
|
let a = null;
|
|
2469
2123
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2470
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2124
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2471
2125
|
}
|
|
2472
2126
|
/**
|
|
2473
2127
|
* Lock user
|
|
@@ -2476,8 +2130,7 @@ class qe extends F {
|
|
|
2476
2130
|
*/
|
|
2477
2131
|
lockUser(e) {
|
|
2478
2132
|
let t = this.baseUrl + "/api/platform/security/users/{id}/lock";
|
|
2479
|
-
if (e == null)
|
|
2480
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2133
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2481
2134
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2482
2135
|
let n = {
|
|
2483
2136
|
method: "POST",
|
|
@@ -2493,7 +2146,7 @@ class qe extends F {
|
|
|
2493
2146
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2494
2147
|
let a = null;
|
|
2495
2148
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2496
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2149
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2497
2150
|
}
|
|
2498
2151
|
/**
|
|
2499
2152
|
* Unlock user
|
|
@@ -2502,8 +2155,7 @@ class qe extends F {
|
|
|
2502
2155
|
*/
|
|
2503
2156
|
unlockUser(e) {
|
|
2504
2157
|
let t = this.baseUrl + "/api/platform/security/users/{id}/unlock";
|
|
2505
|
-
if (e == null)
|
|
2506
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2158
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2507
2159
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2508
2160
|
let n = {
|
|
2509
2161
|
method: "POST",
|
|
@@ -2519,15 +2171,14 @@ class qe extends F {
|
|
|
2519
2171
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2520
2172
|
let a = null;
|
|
2521
2173
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2522
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2174
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2523
2175
|
}
|
|
2524
2176
|
/**
|
|
2525
2177
|
* @return OK
|
|
2526
2178
|
*/
|
|
2527
2179
|
getUserApiKeys(e) {
|
|
2528
2180
|
let t = this.baseUrl + "/api/platform/security/users/{id}/apikeys";
|
|
2529
|
-
if (e == null)
|
|
2530
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2181
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2531
2182
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2532
2183
|
let n = {
|
|
2533
2184
|
method: "GET",
|
|
@@ -2543,10 +2194,10 @@ class qe extends F {
|
|
|
2543
2194
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2544
2195
|
let a = null;
|
|
2545
2196
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2546
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2197
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2547
2198
|
}
|
|
2548
2199
|
/**
|
|
2549
|
-
* @param body (optional)
|
|
2200
|
+
* @param body (optional)
|
|
2550
2201
|
* @return OK
|
|
2551
2202
|
*/
|
|
2552
2203
|
saveUserApiKey(e) {
|
|
@@ -2568,10 +2219,10 @@ class qe extends F {
|
|
|
2568
2219
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2569
2220
|
let a = null;
|
|
2570
2221
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2571
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2222
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2572
2223
|
}
|
|
2573
2224
|
/**
|
|
2574
|
-
* @param body (optional)
|
|
2225
|
+
* @param body (optional)
|
|
2575
2226
|
* @return OK
|
|
2576
2227
|
*/
|
|
2577
2228
|
updateUserApiKey(e) {
|
|
@@ -2593,16 +2244,15 @@ class qe extends F {
|
|
|
2593
2244
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2594
2245
|
let a = null;
|
|
2595
2246
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2596
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2247
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2597
2248
|
}
|
|
2598
2249
|
/**
|
|
2599
|
-
* @param ids (optional)
|
|
2250
|
+
* @param ids (optional)
|
|
2600
2251
|
* @return OK
|
|
2601
2252
|
*/
|
|
2602
2253
|
deleteUserApiKeys(e) {
|
|
2603
2254
|
let t = this.baseUrl + "/api/platform/security/users/apikeys?";
|
|
2604
|
-
if (e === null)
|
|
2605
|
-
throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
2255
|
+
if (e === null) throw new globalThis.Error("The parameter 'ids' cannot be null.");
|
|
2606
2256
|
e !== void 0 && e && e.forEach((r) => {
|
|
2607
2257
|
t += "ids=" + encodeURIComponent("" + r) + "&";
|
|
2608
2258
|
}), t = t.replace(/[?&]$/, "");
|
|
@@ -2620,7 +2270,7 @@ class qe extends F {
|
|
|
2620
2270
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2621
2271
|
let a = null;
|
|
2622
2272
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2623
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2273
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2624
2274
|
}
|
|
2625
2275
|
/**
|
|
2626
2276
|
* Get allowed login types
|
|
@@ -2643,7 +2293,7 @@ class qe extends F {
|
|
|
2643
2293
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2644
2294
|
let a = null;
|
|
2645
2295
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2646
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
2296
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2647
2297
|
}
|
|
2648
2298
|
/**
|
|
2649
2299
|
* Verify user email
|
|
@@ -2651,8 +2301,7 @@ class qe extends F {
|
|
|
2651
2301
|
*/
|
|
2652
2302
|
sendVerificationEmail(e) {
|
|
2653
2303
|
let t = this.baseUrl + "/api/platform/security/users/{userId}/sendVerificationEmail";
|
|
2654
|
-
if (e == null)
|
|
2655
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2304
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2656
2305
|
t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2657
2306
|
let n = {
|
|
2658
2307
|
method: "POST",
|
|
@@ -2664,16 +2313,15 @@ class qe extends F {
|
|
|
2664
2313
|
const t = e.status;
|
|
2665
2314
|
let n = {};
|
|
2666
2315
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2667
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2316
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2668
2317
|
}
|
|
2669
2318
|
/**
|
|
2670
|
-
* @param body (optional)
|
|
2319
|
+
* @param body (optional)
|
|
2671
2320
|
* @return OK
|
|
2672
2321
|
*/
|
|
2673
2322
|
confirmEmail(e, t) {
|
|
2674
2323
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/confirmEmail";
|
|
2675
|
-
if (e == null)
|
|
2676
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2324
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2677
2325
|
n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
2678
2326
|
let a = {
|
|
2679
2327
|
body: JSON.stringify(t),
|
|
@@ -2691,18 +2339,16 @@ class qe extends F {
|
|
|
2691
2339
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2692
2340
|
let a = null;
|
|
2693
2341
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2694
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2342
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2695
2343
|
}
|
|
2696
2344
|
/**
|
|
2697
|
-
* @param newEmail (optional)
|
|
2345
|
+
* @param newEmail (optional)
|
|
2698
2346
|
* @return OK
|
|
2699
2347
|
*/
|
|
2700
2348
|
generateChangeEmailToken(e, t) {
|
|
2701
2349
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/generateChangeEmailToken?";
|
|
2702
|
-
if (e == null)
|
|
2703
|
-
|
|
2704
|
-
if (n = n.replace("{userId}", encodeURIComponent("" + e)), t === null)
|
|
2705
|
-
throw new globalThis.Error("The parameter 'newEmail' cannot be null.");
|
|
2350
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2351
|
+
if (n = n.replace("{userId}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'newEmail' cannot be null.");
|
|
2706
2352
|
t !== void 0 && (n += "newEmail=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
2707
2353
|
let r = {
|
|
2708
2354
|
method: "GET",
|
|
@@ -2718,15 +2364,14 @@ class qe extends F {
|
|
|
2718
2364
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2719
2365
|
let a = null;
|
|
2720
2366
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2721
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2367
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2722
2368
|
}
|
|
2723
2369
|
/**
|
|
2724
2370
|
* @return OK
|
|
2725
2371
|
*/
|
|
2726
2372
|
generateEmailConfirmationToken(e) {
|
|
2727
2373
|
let t = this.baseUrl + "/api/platform/security/users/{userId}/generateEmailConfirmationToken";
|
|
2728
|
-
if (e == null)
|
|
2729
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2374
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2730
2375
|
t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2731
2376
|
let n = {
|
|
2732
2377
|
method: "GET",
|
|
@@ -2742,15 +2387,14 @@ class qe extends F {
|
|
|
2742
2387
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2743
2388
|
let a = null;
|
|
2744
2389
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2745
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2390
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2746
2391
|
}
|
|
2747
2392
|
/**
|
|
2748
2393
|
* @return OK
|
|
2749
2394
|
*/
|
|
2750
2395
|
generatePasswordResetToken(e) {
|
|
2751
2396
|
let t = this.baseUrl + "/api/platform/security/users/{userId}/generatePasswordResetToken";
|
|
2752
|
-
if (e == null)
|
|
2753
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2397
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2754
2398
|
t = t.replace("{userId}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2755
2399
|
let n = {
|
|
2756
2400
|
method: "GET",
|
|
@@ -2766,21 +2410,18 @@ class qe extends F {
|
|
|
2766
2410
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2767
2411
|
let a = null;
|
|
2768
2412
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2769
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2413
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2770
2414
|
}
|
|
2771
2415
|
/**
|
|
2772
|
-
* @param tokenProvider (optional)
|
|
2773
|
-
* @param purpose (optional)
|
|
2416
|
+
* @param tokenProvider (optional)
|
|
2417
|
+
* @param purpose (optional)
|
|
2774
2418
|
* @return OK
|
|
2775
2419
|
*/
|
|
2776
2420
|
generateUserToken(e, t, n) {
|
|
2777
2421
|
let r = this.baseUrl + "/api/platform/security/users/{userId}/generateToken?";
|
|
2778
|
-
if (e == null)
|
|
2779
|
-
|
|
2780
|
-
if (r
|
|
2781
|
-
throw new globalThis.Error("The parameter 'tokenProvider' cannot be null.");
|
|
2782
|
-
if (t !== void 0 && (r += "tokenProvider=" + encodeURIComponent("" + t) + "&"), n === null)
|
|
2783
|
-
throw new globalThis.Error("The parameter 'purpose' cannot be null.");
|
|
2422
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2423
|
+
if (r = r.replace("{userId}", encodeURIComponent("" + e)), t === null) throw new globalThis.Error("The parameter 'tokenProvider' cannot be null.");
|
|
2424
|
+
if (t !== void 0 && (r += "tokenProvider=" + encodeURIComponent("" + t) + "&"), n === null) throw new globalThis.Error("The parameter 'purpose' cannot be null.");
|
|
2784
2425
|
n !== void 0 && (r += "purpose=" + encodeURIComponent("" + n) + "&"), r = r.replace(/[?&]$/, "");
|
|
2785
2426
|
let a = {
|
|
2786
2427
|
method: "GET",
|
|
@@ -2796,16 +2437,15 @@ class qe extends F {
|
|
|
2796
2437
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2797
2438
|
let a = null;
|
|
2798
2439
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2799
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2440
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2800
2441
|
}
|
|
2801
2442
|
/**
|
|
2802
|
-
* @param body (optional)
|
|
2443
|
+
* @param body (optional)
|
|
2803
2444
|
* @return OK
|
|
2804
2445
|
*/
|
|
2805
2446
|
verifyUserToken(e, t) {
|
|
2806
2447
|
let n = this.baseUrl + "/api/platform/security/users/{userId}/verifyToken";
|
|
2807
|
-
if (e == null)
|
|
2808
|
-
throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2448
|
+
if (e == null) throw new globalThis.Error("The parameter 'userId' must be defined.");
|
|
2809
2449
|
n = n.replace("{userId}", encodeURIComponent("" + e)), n = n.replace(/[?&]$/, "");
|
|
2810
2450
|
let a = {
|
|
2811
2451
|
body: JSON.stringify(t),
|
|
@@ -2823,10 +2463,10 @@ class qe extends F {
|
|
|
2823
2463
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2824
2464
|
let a = null;
|
|
2825
2465
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2826
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2466
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2827
2467
|
}
|
|
2828
2468
|
}
|
|
2829
|
-
class
|
|
2469
|
+
class Ir extends G {
|
|
2830
2470
|
http;
|
|
2831
2471
|
baseUrl;
|
|
2832
2472
|
constructor(e, t) {
|
|
@@ -2853,11 +2493,11 @@ class Tr extends F {
|
|
|
2853
2493
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2854
2494
|
let a = null;
|
|
2855
2495
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2856
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2496
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2857
2497
|
}
|
|
2858
2498
|
/**
|
|
2859
2499
|
* Update settings values
|
|
2860
|
-
* @param body (optional)
|
|
2500
|
+
* @param body (optional)
|
|
2861
2501
|
* @return No Content
|
|
2862
2502
|
*/
|
|
2863
2503
|
update(e) {
|
|
@@ -2876,7 +2516,7 @@ class Tr extends F {
|
|
|
2876
2516
|
const t = e.status;
|
|
2877
2517
|
let n = {};
|
|
2878
2518
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
2879
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2519
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2880
2520
|
}
|
|
2881
2521
|
/**
|
|
2882
2522
|
* Get settings registered by specific module
|
|
@@ -2885,8 +2525,7 @@ class Tr extends F {
|
|
|
2885
2525
|
*/
|
|
2886
2526
|
getGlobalModuleSettings(e) {
|
|
2887
2527
|
let t = this.baseUrl + "/api/platform/settings/modules/{id}";
|
|
2888
|
-
if (e == null)
|
|
2889
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2528
|
+
if (e == null) throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
2890
2529
|
t = t.replace("{id}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2891
2530
|
let n = {
|
|
2892
2531
|
method: "GET",
|
|
@@ -2902,7 +2541,7 @@ class Tr extends F {
|
|
|
2902
2541
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2903
2542
|
let a = null;
|
|
2904
2543
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2905
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2544
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2906
2545
|
}
|
|
2907
2546
|
/**
|
|
2908
2547
|
* Get setting details by name
|
|
@@ -2911,8 +2550,7 @@ class Tr extends F {
|
|
|
2911
2550
|
*/
|
|
2912
2551
|
getGlobalSetting(e) {
|
|
2913
2552
|
let t = this.baseUrl + "/api/platform/settings/{name}";
|
|
2914
|
-
if (e == null)
|
|
2915
|
-
throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
2553
|
+
if (e == null) throw new globalThis.Error("The parameter 'name' must be defined.");
|
|
2916
2554
|
t = t.replace("{name}", encodeURIComponent("" + e)), t = t.replace(/[?&]$/, "");
|
|
2917
2555
|
let n = {
|
|
2918
2556
|
method: "GET",
|
|
@@ -2928,7 +2566,7 @@ class Tr extends F {
|
|
|
2928
2566
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2929
2567
|
let a = null;
|
|
2930
2568
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2931
|
-
}) : t === 401 ? e.text().then((r) =>
|
|
2569
|
+
}) : t === 401 ? e.text().then((r) => i("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => i("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2932
2570
|
}
|
|
2933
2571
|
/**
|
|
2934
2572
|
* Get UI customization setting
|
|
@@ -2951,280 +2589,11 @@ class Tr extends F {
|
|
|
2951
2589
|
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2952
2590
|
let a = null;
|
|
2953
2591
|
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2954
|
-
}) : t !== 200 && t !== 204 ? e.text().then((r) =>
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
class Sr extends F {
|
|
2958
|
-
http;
|
|
2959
|
-
baseUrl;
|
|
2960
|
-
constructor(e, t) {
|
|
2961
|
-
super(), this.http = t || window, this.baseUrl = this.getBaseUrl("", e);
|
|
2962
|
-
}
|
|
2963
|
-
/**
|
|
2964
|
-
* Get global settings schema (metadata only, no values)
|
|
2965
|
-
* @param moduleId (optional)
|
|
2966
|
-
* @param keyword (optional)
|
|
2967
|
-
* @return OK
|
|
2968
|
-
*/
|
|
2969
|
-
getGlobalSchema(e, t) {
|
|
2970
|
-
let n = this.baseUrl + "/api/platform/settings/v2/global/schema?";
|
|
2971
|
-
if (e === null)
|
|
2972
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
2973
|
-
if (e !== void 0 && (n += "moduleId=" + encodeURIComponent("" + e) + "&"), t === null)
|
|
2974
|
-
throw new globalThis.Error("The parameter 'keyword' cannot be null.");
|
|
2975
|
-
t !== void 0 && (n += "keyword=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
2976
|
-
let r = {
|
|
2977
|
-
method: "GET",
|
|
2978
|
-
headers: {
|
|
2979
|
-
Accept: "application/json"
|
|
2980
|
-
}
|
|
2981
|
-
};
|
|
2982
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetGlobalSchema(a));
|
|
2983
|
-
}
|
|
2984
|
-
processGetGlobalSchema(e) {
|
|
2985
|
-
const t = e.status;
|
|
2986
|
-
let n = {};
|
|
2987
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
2988
|
-
let a = null;
|
|
2989
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
2990
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2991
|
-
}
|
|
2992
|
-
/**
|
|
2993
|
-
* Get global settings values as a flat { name: value } dictionary.
|
|
2994
|
-
Optional moduleId narrows the response to a single
|
|
2995
|
-
module's settings — same filter as M:VirtoCommerce.Platform.Web.Controllers.Api.SettingsV2Controller.GetGlobalSchema(System.String,System.String), so
|
|
2996
|
-
a frontend can read+use one module's values in one round-trip
|
|
2997
|
-
without a follow-up /schema lookup.
|
|
2998
|
-
* @param modifiedOnly (optional)
|
|
2999
|
-
* @param moduleId (optional)
|
|
3000
|
-
* @return OK
|
|
3001
|
-
*/
|
|
3002
|
-
getGlobalValues(e, t) {
|
|
3003
|
-
let n = this.baseUrl + "/api/platform/settings/v2/global/values?";
|
|
3004
|
-
if (e === null)
|
|
3005
|
-
throw new globalThis.Error("The parameter 'modifiedOnly' cannot be null.");
|
|
3006
|
-
if (e !== void 0 && (n += "modifiedOnly=" + encodeURIComponent("" + e) + "&"), t === null)
|
|
3007
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
3008
|
-
t !== void 0 && (n += "moduleId=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
3009
|
-
let r = {
|
|
3010
|
-
method: "GET",
|
|
3011
|
-
headers: {}
|
|
3012
|
-
};
|
|
3013
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetGlobalValues(a));
|
|
3014
|
-
}
|
|
3015
|
-
processGetGlobalValues(e) {
|
|
3016
|
-
const t = e.status;
|
|
3017
|
-
let n = {};
|
|
3018
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
3019
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3020
|
-
}
|
|
3021
|
-
/**
|
|
3022
|
-
* @param replaceAll (optional)
|
|
3023
|
-
* @param body (optional)
|
|
3024
|
-
* @return No Content
|
|
3025
|
-
*/
|
|
3026
|
-
saveGlobalValues(e, t) {
|
|
3027
|
-
let n = this.baseUrl + "/api/platform/settings/v2/global/values?";
|
|
3028
|
-
if (e === null)
|
|
3029
|
-
throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
|
|
3030
|
-
e !== void 0 && (n += "replaceAll=" + encodeURIComponent("" + e) + "&"), n = n.replace(/[?&]$/, "");
|
|
3031
|
-
let a = {
|
|
3032
|
-
body: JSON.stringify(t),
|
|
3033
|
-
method: "POST",
|
|
3034
|
-
headers: {
|
|
3035
|
-
"Content-Type": "application/json-patch+json"
|
|
3036
|
-
}
|
|
3037
|
-
};
|
|
3038
|
-
return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveGlobalValues(o));
|
|
3039
|
-
}
|
|
3040
|
-
processSaveGlobalValues(e) {
|
|
3041
|
-
const t = e.status;
|
|
3042
|
-
let n = {};
|
|
3043
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
3044
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3045
|
-
}
|
|
3046
|
-
/**
|
|
3047
|
-
* Get tenant settings schema (metadata only, no values).
|
|
3048
|
-
Schema depends only on tenantType registration, not on a specific tenant instance.
|
|
3049
|
-
* @param moduleId (optional)
|
|
3050
|
-
* @param keyword (optional)
|
|
3051
|
-
* @return OK
|
|
3052
|
-
*/
|
|
3053
|
-
getTenantSchema(e, t, n) {
|
|
3054
|
-
let r = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/schema?";
|
|
3055
|
-
if (e == null)
|
|
3056
|
-
throw new globalThis.Error("The parameter 'tenantType' must be defined.");
|
|
3057
|
-
if (r = r.replace("{tenantType}", encodeURIComponent("" + e)), t === null)
|
|
3058
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
3059
|
-
if (t !== void 0 && (r += "moduleId=" + encodeURIComponent("" + t) + "&"), n === null)
|
|
3060
|
-
throw new globalThis.Error("The parameter 'keyword' cannot be null.");
|
|
3061
|
-
n !== void 0 && (r += "keyword=" + encodeURIComponent("" + n) + "&"), r = r.replace(/[?&]$/, "");
|
|
3062
|
-
let a = {
|
|
3063
|
-
method: "GET",
|
|
3064
|
-
headers: {
|
|
3065
|
-
Accept: "application/json"
|
|
3066
|
-
}
|
|
3067
|
-
};
|
|
3068
|
-
return this.transformOptions(a).then((o) => this.http.fetch(r, o)).then((o) => this.processGetTenantSchema(o));
|
|
3069
|
-
}
|
|
3070
|
-
processGetTenantSchema(e) {
|
|
3071
|
-
const t = e.status;
|
|
3072
|
-
let n = {};
|
|
3073
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
3074
|
-
let a = null;
|
|
3075
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
3076
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3077
|
-
}
|
|
3078
|
-
/**
|
|
3079
|
-
* Get tenant settings values as a flat { name: value } dictionary.
|
|
3080
|
-
Optional moduleId narrows the response to a single
|
|
3081
|
-
module's settings.
|
|
3082
|
-
* @param modifiedOnly (optional)
|
|
3083
|
-
* @param moduleId (optional)
|
|
3084
|
-
* @return OK
|
|
3085
|
-
*/
|
|
3086
|
-
getTenantValues(e, t, n, r) {
|
|
3087
|
-
let a = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
|
|
3088
|
-
if (e == null)
|
|
3089
|
-
throw new globalThis.Error("The parameter 'tenantType' must be defined.");
|
|
3090
|
-
if (a = a.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
|
|
3091
|
-
throw new globalThis.Error("The parameter 'tenantId' must be defined.");
|
|
3092
|
-
if (a = a.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
|
|
3093
|
-
throw new globalThis.Error("The parameter 'modifiedOnly' cannot be null.");
|
|
3094
|
-
if (n !== void 0 && (a += "modifiedOnly=" + encodeURIComponent("" + n) + "&"), r === null)
|
|
3095
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
3096
|
-
r !== void 0 && (a += "moduleId=" + encodeURIComponent("" + r) + "&"), a = a.replace(/[?&]$/, "");
|
|
3097
|
-
let o = {
|
|
3098
|
-
method: "GET",
|
|
3099
|
-
headers: {}
|
|
3100
|
-
};
|
|
3101
|
-
return this.transformOptions(o).then((l) => this.http.fetch(a, l)).then((l) => this.processGetTenantValues(l));
|
|
3102
|
-
}
|
|
3103
|
-
processGetTenantValues(e) {
|
|
3104
|
-
const t = e.status;
|
|
3105
|
-
let n = {};
|
|
3106
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
3107
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3108
|
-
}
|
|
3109
|
-
/**
|
|
3110
|
-
* @param replaceAll (optional)
|
|
3111
|
-
* @param body (optional)
|
|
3112
|
-
* @return No Content
|
|
3113
|
-
*/
|
|
3114
|
-
saveTenantValues(e, t, n, r) {
|
|
3115
|
-
let a = this.baseUrl + "/api/platform/settings/v2/tenant/{tenantType}/{tenantId}/values?";
|
|
3116
|
-
if (e == null)
|
|
3117
|
-
throw new globalThis.Error("The parameter 'tenantType' must be defined.");
|
|
3118
|
-
if (a = a.replace("{tenantType}", encodeURIComponent("" + e)), t == null)
|
|
3119
|
-
throw new globalThis.Error("The parameter 'tenantId' must be defined.");
|
|
3120
|
-
if (a = a.replace("{tenantId}", encodeURIComponent("" + t)), n === null)
|
|
3121
|
-
throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
|
|
3122
|
-
n !== void 0 && (a += "replaceAll=" + encodeURIComponent("" + n) + "&"), a = a.replace(/[?&]$/, "");
|
|
3123
|
-
let l = {
|
|
3124
|
-
body: JSON.stringify(r),
|
|
3125
|
-
method: "POST",
|
|
3126
|
-
headers: {
|
|
3127
|
-
"Content-Type": "application/json-patch+json"
|
|
3128
|
-
}
|
|
3129
|
-
};
|
|
3130
|
-
return this.transformOptions(l).then((c) => this.http.fetch(a, c)).then((c) => this.processSaveTenantValues(c));
|
|
3131
|
-
}
|
|
3132
|
-
processSaveTenantValues(e) {
|
|
3133
|
-
const t = e.status;
|
|
3134
|
-
let n = {};
|
|
3135
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
3136
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3137
|
-
}
|
|
3138
|
-
/**
|
|
3139
|
-
* Get the current user's UserProfile settings schema (metadata only).
|
|
3140
|
-
Schema is the same for every user — it's defined by the
|
|
3141
|
-
platform's UserProfile-tenant registration. Optionally filter
|
|
3142
|
-
by moduleId so a frontend only fetches its own module's
|
|
3143
|
-
per-user settings.
|
|
3144
|
-
* @param moduleId (optional)
|
|
3145
|
-
* @param keyword (optional)
|
|
3146
|
-
* @return OK
|
|
3147
|
-
*/
|
|
3148
|
-
getMeSchema(e, t) {
|
|
3149
|
-
let n = this.baseUrl + "/api/platform/settings/v2/me/schema?";
|
|
3150
|
-
if (e === null)
|
|
3151
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
3152
|
-
if (e !== void 0 && (n += "moduleId=" + encodeURIComponent("" + e) + "&"), t === null)
|
|
3153
|
-
throw new globalThis.Error("The parameter 'keyword' cannot be null.");
|
|
3154
|
-
t !== void 0 && (n += "keyword=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
3155
|
-
let r = {
|
|
3156
|
-
method: "GET",
|
|
3157
|
-
headers: {
|
|
3158
|
-
Accept: "application/json"
|
|
3159
|
-
}
|
|
3160
|
-
};
|
|
3161
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetMeSchema(a));
|
|
3162
|
-
}
|
|
3163
|
-
processGetMeSchema(e) {
|
|
3164
|
-
const t = e.status;
|
|
3165
|
-
let n = {};
|
|
3166
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
3167
|
-
let a = null;
|
|
3168
|
-
return a = r === "" ? null : JSON.parse(r, this.jsonParseReviver), a;
|
|
3169
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3170
|
-
}
|
|
3171
|
-
/**
|
|
3172
|
-
* Get the current user's effective UserProfile settings values
|
|
3173
|
-
as a flat { name: value } dictionary. Optional moduleId
|
|
3174
|
-
narrows the response to a single module's per-user settings — same
|
|
3175
|
-
filter M:VirtoCommerce.Platform.Web.Controllers.Api.SettingsV2Controller.GetMeSchema(System.String,System.String) accepts, so a frontend can do a
|
|
3176
|
-
single round-trip read without a follow-up /me/schema lookup.
|
|
3177
|
-
* @param modifiedOnly (optional)
|
|
3178
|
-
* @param moduleId (optional)
|
|
3179
|
-
* @return OK
|
|
3180
|
-
*/
|
|
3181
|
-
getMeValues(e, t) {
|
|
3182
|
-
let n = this.baseUrl + "/api/platform/settings/v2/me/values?";
|
|
3183
|
-
if (e === null)
|
|
3184
|
-
throw new globalThis.Error("The parameter 'modifiedOnly' cannot be null.");
|
|
3185
|
-
if (e !== void 0 && (n += "modifiedOnly=" + encodeURIComponent("" + e) + "&"), t === null)
|
|
3186
|
-
throw new globalThis.Error("The parameter 'moduleId' cannot be null.");
|
|
3187
|
-
t !== void 0 && (n += "moduleId=" + encodeURIComponent("" + t) + "&"), n = n.replace(/[?&]$/, "");
|
|
3188
|
-
let r = {
|
|
3189
|
-
method: "GET",
|
|
3190
|
-
headers: {}
|
|
3191
|
-
};
|
|
3192
|
-
return this.transformOptions(r).then((a) => this.http.fetch(n, a)).then((a) => this.processGetMeValues(a));
|
|
3193
|
-
}
|
|
3194
|
-
processGetMeValues(e) {
|
|
3195
|
-
const t = e.status;
|
|
3196
|
-
let n = {};
|
|
3197
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 200 ? e.text().then((r) => {
|
|
3198
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3199
|
-
}
|
|
3200
|
-
/**
|
|
3201
|
-
* @param replaceAll (optional)
|
|
3202
|
-
* @param body (optional)
|
|
3203
|
-
* @return No Content
|
|
3204
|
-
*/
|
|
3205
|
-
saveMeValues(e, t) {
|
|
3206
|
-
let n = this.baseUrl + "/api/platform/settings/v2/me/values?";
|
|
3207
|
-
if (e === null)
|
|
3208
|
-
throw new globalThis.Error("The parameter 'replaceAll' cannot be null.");
|
|
3209
|
-
e !== void 0 && (n += "replaceAll=" + encodeURIComponent("" + e) + "&"), n = n.replace(/[?&]$/, "");
|
|
3210
|
-
let a = {
|
|
3211
|
-
body: JSON.stringify(t),
|
|
3212
|
-
method: "POST",
|
|
3213
|
-
headers: {
|
|
3214
|
-
"Content-Type": "application/json-patch+json"
|
|
3215
|
-
}
|
|
3216
|
-
};
|
|
3217
|
-
return this.transformOptions(a).then((o) => this.http.fetch(n, o)).then((o) => this.processSaveMeValues(o));
|
|
3218
|
-
}
|
|
3219
|
-
processSaveMeValues(e) {
|
|
3220
|
-
const t = e.status;
|
|
3221
|
-
let n = {};
|
|
3222
|
-
return e.headers && e.headers.forEach && e.headers.forEach((r, a) => n[a] = r), t === 204 ? e.text().then((r) => {
|
|
3223
|
-
}) : t === 401 ? e.text().then((r) => s("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => s("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => s("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2592
|
+
}) : t !== 200 && t !== 204 ? e.text().then((r) => i("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3224
2593
|
}
|
|
3225
2594
|
}
|
|
3226
|
-
var
|
|
3227
|
-
class
|
|
2595
|
+
var He = /* @__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))(He || {}), Ze = /* @__PURE__ */ ((s) => (s.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(Ze || {}), Xe = /* @__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))(Xe || {}), Ye = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(Ye || {}), Qe = /* @__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))(Qe || {}), Ve = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(Ve || {}), 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.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(tt || {}), rt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.ShortText = "ShortText", s.LongText = "LongText", s.Integer = "Integer", s.Decimal = "Decimal", s.DateTime = "DateTime", s.Boolean = "Boolean", s.Html = "Html", s.Image = "Image", s))(rt || {}), nt = /* @__PURE__ */ ((s) => (s.Undefined = "Undefined", s.Object = "Object", s.Array = "Array", s.String = "String", s.Number = "Number", s.True = "True", s.False = "False", s.Null = "Null", 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.Detached = "Detached", s.Unchanged = "Unchanged", s.Added = "Added", s.Deleted = "Deleted", s.Modified = "Modified", s))(st || {}), it = /* @__PURE__ */ ((s) => (s.Info = "Info", s.Warning = "Warning", s.Debug = "Debug", s.Error = "Error", s))(it || {}), ot = /* @__PURE__ */ ((s) => (s.Ascending = "Ascending", s.Descending = "Descending", s))(ot || {});
|
|
2596
|
+
class lt extends Error {
|
|
3228
2597
|
message;
|
|
3229
2598
|
status;
|
|
3230
2599
|
response;
|
|
@@ -3238,8 +2607,8 @@ class tt extends Error {
|
|
|
3238
2607
|
return e.isApiException === !0;
|
|
3239
2608
|
}
|
|
3240
2609
|
}
|
|
3241
|
-
function s
|
|
3242
|
-
throw r ?? new
|
|
2610
|
+
function i(s, e, t, n, r) {
|
|
2611
|
+
throw r ?? new lt(s, e, t, n, null);
|
|
3243
2612
|
}
|
|
3244
2613
|
const xe = {
|
|
3245
2614
|
debug: 0,
|
|
@@ -3247,13 +2616,13 @@ const xe = {
|
|
|
3247
2616
|
warn: 2,
|
|
3248
2617
|
error: 3,
|
|
3249
2618
|
none: 4
|
|
3250
|
-
},
|
|
2619
|
+
}, ut = {
|
|
3251
2620
|
level: "warn",
|
|
3252
2621
|
prefix: "@vc-shell/framework",
|
|
3253
2622
|
enabled: !0
|
|
3254
2623
|
};
|
|
3255
|
-
function
|
|
3256
|
-
const e = { ...
|
|
2624
|
+
function j(s) {
|
|
2625
|
+
const e = { ...ut }, t = s ? `[${e.prefix}#${s}]` : `[${e.prefix}]`, n = (r) => e.enabled ? xe[r] >= xe[e.level] : !1;
|
|
3257
2626
|
return {
|
|
3258
2627
|
/**
|
|
3259
2628
|
* Log debug messages (only in development)
|
|
@@ -3282,7 +2651,7 @@ function B(i) {
|
|
|
3282
2651
|
/**
|
|
3283
2652
|
* Create a child logger with additional context
|
|
3284
2653
|
*/
|
|
3285
|
-
child: (r) =>
|
|
2654
|
+
child: (r) => j(s ? `${s}:${r}` : r),
|
|
3286
2655
|
/**
|
|
3287
2656
|
* Set the log level for this logger instance
|
|
3288
2657
|
*/
|
|
@@ -3297,16 +2666,16 @@ function B(i) {
|
|
|
3297
2666
|
}
|
|
3298
2667
|
};
|
|
3299
2668
|
}
|
|
3300
|
-
const
|
|
3301
|
-
core:
|
|
3302
|
-
ui:
|
|
3303
|
-
shared:
|
|
3304
|
-
plugins:
|
|
3305
|
-
services:
|
|
3306
|
-
composables:
|
|
3307
|
-
}, he =
|
|
3308
|
-
const
|
|
3309
|
-
|
|
2669
|
+
const Rr = j(), Br = {
|
|
2670
|
+
core: j("core"),
|
|
2671
|
+
ui: j("ui"),
|
|
2672
|
+
shared: j("shared"),
|
|
2673
|
+
plugins: j("plugins"),
|
|
2674
|
+
services: j("services"),
|
|
2675
|
+
composables: j("composables")
|
|
2676
|
+
}, he = j("use-external-provider"), ct = "externalSignIn", ht = () => {
|
|
2677
|
+
const s = new Ke(), e = De(
|
|
2678
|
+
ct,
|
|
3310
2679
|
{},
|
|
3311
2680
|
{
|
|
3312
2681
|
listenToStorageChanges: !0,
|
|
@@ -3319,29 +2688,29 @@ const wr = B(), Ar = {
|
|
|
3319
2688
|
}
|
|
3320
2689
|
async function n(o) {
|
|
3321
2690
|
try {
|
|
3322
|
-
const
|
|
2691
|
+
const u = window.location.origin, c = window.location.pathname ?? t() ?? "/";
|
|
3323
2692
|
if (!o)
|
|
3324
2693
|
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
3325
|
-
const m = new URL("/externalsignin",
|
|
2694
|
+
const m = new URL("/externalsignin", u);
|
|
3326
2695
|
m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = { providerType: o }, window.location.assign(m);
|
|
3327
|
-
} catch (
|
|
3328
|
-
throw he.error("External sign-in failed:",
|
|
2696
|
+
} catch (u) {
|
|
2697
|
+
throw he.error("External sign-in failed:", u), u;
|
|
3329
2698
|
}
|
|
3330
2699
|
}
|
|
3331
2700
|
async function r(o) {
|
|
3332
2701
|
try {
|
|
3333
|
-
const
|
|
2702
|
+
const u = window.location.origin, c = window.location.pathname ?? "/", m = new URL("/externalsignin/signout", u);
|
|
3334
2703
|
m.searchParams.set("authenticationType", o), m.searchParams.set("returnUrl", c), e.value = {}, window.location.assign(m);
|
|
3335
|
-
} catch (
|
|
3336
|
-
throw he.error("External sign-out failed:",
|
|
2704
|
+
} catch (u) {
|
|
2705
|
+
throw he.error("External sign-out failed:", u), u;
|
|
3337
2706
|
}
|
|
3338
2707
|
}
|
|
3339
2708
|
async function a() {
|
|
3340
2709
|
let o;
|
|
3341
2710
|
try {
|
|
3342
|
-
o = await
|
|
3343
|
-
} catch (
|
|
3344
|
-
he.error("Failed to get external login providers:",
|
|
2711
|
+
o = await s.getExternalLoginProviders();
|
|
2712
|
+
} catch (u) {
|
|
2713
|
+
he.error("Failed to get external login providers:", u);
|
|
3345
2714
|
}
|
|
3346
2715
|
return o;
|
|
3347
2716
|
}
|
|
@@ -3351,34 +2720,34 @@ const wr = B(), Ar = {
|
|
|
3351
2720
|
signOut: r,
|
|
3352
2721
|
getProviders: a
|
|
3353
2722
|
};
|
|
3354
|
-
}, me = "vc_auth_data",
|
|
3355
|
-
function
|
|
2723
|
+
}, me = "vc_auth_data", T = j("use-user");
|
|
2724
|
+
function dt() {
|
|
3356
2725
|
try {
|
|
3357
|
-
const
|
|
3358
|
-
if (
|
|
3359
|
-
return JSON.parse(
|
|
3360
|
-
} catch (
|
|
3361
|
-
|
|
2726
|
+
const s = localStorage.getItem(me);
|
|
2727
|
+
if (s)
|
|
2728
|
+
return JSON.parse(s);
|
|
2729
|
+
} catch (s) {
|
|
2730
|
+
T.error("Failed to read auth data from storage:", s);
|
|
3362
2731
|
}
|
|
3363
2732
|
return null;
|
|
3364
2733
|
}
|
|
3365
|
-
function Ee(
|
|
2734
|
+
function Ee(s) {
|
|
3366
2735
|
try {
|
|
3367
|
-
|
|
2736
|
+
T.debug("storeAuthData - Saving:", s), localStorage.setItem(me, JSON.stringify(s)), T.debug("storeAuthData - Saved successfully");
|
|
3368
2737
|
} catch (e) {
|
|
3369
|
-
|
|
2738
|
+
T.error("Failed to store auth data:", e);
|
|
3370
2739
|
}
|
|
3371
2740
|
}
|
|
3372
|
-
function
|
|
2741
|
+
function ft() {
|
|
3373
2742
|
try {
|
|
3374
2743
|
localStorage.removeItem(me);
|
|
3375
|
-
} catch (
|
|
3376
|
-
|
|
2744
|
+
} catch (s) {
|
|
2745
|
+
T.error("Failed to clear auth data:", s);
|
|
3377
2746
|
}
|
|
3378
2747
|
}
|
|
3379
|
-
async function
|
|
2748
|
+
async function _e(s) {
|
|
3380
2749
|
try {
|
|
3381
|
-
const e = new URLSearchParams(
|
|
2750
|
+
const e = new URLSearchParams(s).toString(), t = await fetch("/connect/token", {
|
|
3382
2751
|
method: "POST",
|
|
3383
2752
|
headers: {
|
|
3384
2753
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -3387,240 +2756,240 @@ async function ye(i) {
|
|
|
3387
2756
|
});
|
|
3388
2757
|
if (!t.ok) {
|
|
3389
2758
|
const c = await t.text();
|
|
3390
|
-
return
|
|
2759
|
+
return T.error("fetchToken - HTTP error:", t.status, t.statusText, c), null;
|
|
3391
2760
|
}
|
|
3392
2761
|
const n = await t.json();
|
|
3393
|
-
|
|
2762
|
+
T.debug("fetchToken - Response:", n);
|
|
3394
2763
|
const r = n.access_token, a = n.refresh_token, o = n.expires_in;
|
|
3395
2764
|
if (n.error || !r)
|
|
3396
|
-
return
|
|
3397
|
-
const
|
|
2765
|
+
return T.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
|
|
2766
|
+
const u = o ? Date.now() + o * 1e3 : null;
|
|
3398
2767
|
return {
|
|
3399
2768
|
token: r,
|
|
3400
2769
|
access_token: r,
|
|
3401
2770
|
refresh_token: a ?? null,
|
|
3402
|
-
expires_at:
|
|
2771
|
+
expires_at: u
|
|
3403
2772
|
};
|
|
3404
2773
|
} catch (e) {
|
|
3405
|
-
return
|
|
2774
|
+
return T.error("fetchToken - Exception:", e), null;
|
|
3406
2775
|
}
|
|
3407
2776
|
}
|
|
3408
|
-
function
|
|
3409
|
-
const
|
|
3410
|
-
async function
|
|
3411
|
-
let
|
|
2777
|
+
function pt() {
|
|
2778
|
+
const s = D(!1), e = D(), t = D(null), { storage: n, signOut: r } = ht(), a = new qe(), o = h(() => e.value?.userName != null);
|
|
2779
|
+
async function u(C, E) {
|
|
2780
|
+
let A = !1;
|
|
3412
2781
|
try {
|
|
3413
|
-
|
|
2782
|
+
s.value = !0, A = await a.validatePasswordResetToken(C, {
|
|
3414
2783
|
token: E
|
|
3415
2784
|
});
|
|
3416
2785
|
} catch {
|
|
3417
2786
|
} finally {
|
|
3418
|
-
|
|
2787
|
+
s.value = !1;
|
|
3419
2788
|
}
|
|
3420
|
-
return
|
|
2789
|
+
return A;
|
|
3421
2790
|
}
|
|
3422
|
-
async function c(
|
|
3423
|
-
return a.validatePassword(
|
|
2791
|
+
async function c(C) {
|
|
2792
|
+
return a.validatePassword(C);
|
|
3424
2793
|
}
|
|
3425
|
-
async function m(
|
|
3426
|
-
return a.resetPasswordByToken(
|
|
2794
|
+
async function m(C, E, A) {
|
|
2795
|
+
return a.resetPasswordByToken(C, {
|
|
3427
2796
|
newPassword: E,
|
|
3428
|
-
token:
|
|
2797
|
+
token: A
|
|
3429
2798
|
});
|
|
3430
2799
|
}
|
|
3431
|
-
async function
|
|
3432
|
-
|
|
2800
|
+
async function S(C, E) {
|
|
2801
|
+
T.debug("signIn - Entry point");
|
|
3433
2802
|
try {
|
|
3434
|
-
|
|
3435
|
-
const
|
|
3436
|
-
if (
|
|
3437
|
-
return
|
|
3438
|
-
|
|
3439
|
-
const P = await
|
|
2803
|
+
s.value = !0;
|
|
2804
|
+
const A = await a.login({ userName: C, password: E });
|
|
2805
|
+
if (T.debug("signIn - Cookie login completed:", A), !A.succeeded)
|
|
2806
|
+
return A;
|
|
2807
|
+
T.debug("signIn - Requesting token...");
|
|
2808
|
+
const P = await _e({
|
|
3440
2809
|
grant_type: "password",
|
|
3441
|
-
username:
|
|
2810
|
+
username: C,
|
|
3442
2811
|
password: E,
|
|
3443
2812
|
scope: "offline_access"
|
|
3444
2813
|
});
|
|
3445
|
-
P && (t.value = P, Ee(t.value),
|
|
3446
|
-
const
|
|
3447
|
-
if (
|
|
3448
|
-
return e.value =
|
|
2814
|
+
P && (t.value = P, Ee(t.value), T.debug("signIn - Token saved:", t.value));
|
|
2815
|
+
const L = await a.getCurrentUser();
|
|
2816
|
+
if (L)
|
|
2817
|
+
return e.value = L, A;
|
|
3449
2818
|
throw { succeeded: !1 };
|
|
3450
|
-
} catch (
|
|
3451
|
-
|
|
3452
|
-
let P =
|
|
3453
|
-
if (
|
|
2819
|
+
} catch (A) {
|
|
2820
|
+
T.error("signIn failed:", A);
|
|
2821
|
+
let P = A.message;
|
|
2822
|
+
if (A.response)
|
|
3454
2823
|
try {
|
|
3455
|
-
const
|
|
3456
|
-
P =
|
|
2824
|
+
const L = JSON.parse(A.response);
|
|
2825
|
+
P = L.errorDescription || L.errors?.[0]?.description || L.error || P;
|
|
3457
2826
|
} catch {
|
|
3458
2827
|
}
|
|
3459
|
-
return { succeeded: !1, error: P, status:
|
|
2828
|
+
return { succeeded: !1, error: P, status: A.status };
|
|
3460
2829
|
} finally {
|
|
3461
|
-
|
|
2830
|
+
s.value = !1;
|
|
3462
2831
|
}
|
|
3463
2832
|
}
|
|
3464
2833
|
async function p() {
|
|
3465
|
-
|
|
2834
|
+
T.debug("signOut - Entry point"), e.value = void 0, ft(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : a.logout();
|
|
3466
2835
|
}
|
|
3467
2836
|
let d = null;
|
|
3468
2837
|
async function v() {
|
|
3469
2838
|
return d || (d = (async () => {
|
|
3470
|
-
|
|
2839
|
+
T.debug("loadUser - Entry point");
|
|
3471
2840
|
try {
|
|
3472
|
-
|
|
3473
|
-
const [
|
|
3474
|
-
e.value =
|
|
3475
|
-
} catch (
|
|
3476
|
-
|
|
2841
|
+
s.value = !0, performance.mark("vc:auth-start");
|
|
2842
|
+
const [C] = await Promise.all([a.getCurrentUser(), g()]);
|
|
2843
|
+
e.value = C, performance.mark("vc:auth-done"), T.debug("User details loaded:", e.value);
|
|
2844
|
+
} catch (C) {
|
|
2845
|
+
T.error("loadUser failed:", C);
|
|
3477
2846
|
} finally {
|
|
3478
|
-
|
|
2847
|
+
s.value = !1, d = null;
|
|
3479
2848
|
}
|
|
3480
2849
|
return { ...e.value };
|
|
3481
2850
|
})(), d);
|
|
3482
2851
|
}
|
|
3483
|
-
async function C
|
|
2852
|
+
async function y(C) {
|
|
3484
2853
|
try {
|
|
3485
|
-
return
|
|
2854
|
+
return s.value = !0, await a.requestPasswordReset(C), { succeeded: !0 };
|
|
3486
2855
|
} catch (E) {
|
|
3487
2856
|
return { succeeded: !1, error: E };
|
|
3488
2857
|
} finally {
|
|
3489
|
-
|
|
2858
|
+
s.value = !1;
|
|
3490
2859
|
}
|
|
3491
2860
|
}
|
|
3492
|
-
async function I(
|
|
3493
|
-
let
|
|
2861
|
+
async function I(C, E) {
|
|
2862
|
+
let A;
|
|
3494
2863
|
try {
|
|
3495
|
-
|
|
2864
|
+
s.value = !0;
|
|
3496
2865
|
const P = {
|
|
3497
|
-
oldPassword:
|
|
2866
|
+
oldPassword: C,
|
|
3498
2867
|
newPassword: E
|
|
3499
2868
|
};
|
|
3500
|
-
|
|
2869
|
+
A = await a.changeCurrentUserPassword(P);
|
|
3501
2870
|
} catch (P) {
|
|
3502
2871
|
return { succeeded: !1, errors: [P.message] };
|
|
3503
2872
|
} finally {
|
|
3504
|
-
|
|
2873
|
+
s.value = !1;
|
|
3505
2874
|
}
|
|
3506
|
-
return
|
|
2875
|
+
return A;
|
|
3507
2876
|
}
|
|
3508
2877
|
async function x() {
|
|
3509
|
-
let
|
|
2878
|
+
let C = null;
|
|
3510
2879
|
try {
|
|
3511
|
-
|
|
2880
|
+
C = await a.getLoginTypes();
|
|
3512
2881
|
} catch (E) {
|
|
3513
|
-
throw
|
|
2882
|
+
throw T.error("getLoginType failed:", E), E;
|
|
3514
2883
|
}
|
|
3515
|
-
return
|
|
2884
|
+
return C;
|
|
3516
2885
|
}
|
|
3517
2886
|
const R = 60 * 1e3;
|
|
3518
2887
|
async function g() {
|
|
3519
|
-
if (
|
|
3520
|
-
return
|
|
3521
|
-
const
|
|
3522
|
-
if (
|
|
2888
|
+
if (T.debug("getAccessToken - Entry point"), t.value || (t.value = dt()), !t.value)
|
|
2889
|
+
return T.debug("getAccessToken - No auth data available"), null;
|
|
2890
|
+
const C = Date.now(), E = t.value.expires_at, A = E ? C >= E - R : !1;
|
|
2891
|
+
if (T.debug("getAccessToken - Token status:", {
|
|
3523
2892
|
hasToken: !!t.value.access_token,
|
|
3524
2893
|
expiresAt: E ? new Date(E).toISOString() : "not set",
|
|
3525
|
-
now: new Date(
|
|
3526
|
-
shouldRefresh:
|
|
2894
|
+
now: new Date(C).toISOString(),
|
|
2895
|
+
shouldRefresh: A,
|
|
3527
2896
|
hasRefreshToken: !!t.value.refresh_token
|
|
3528
|
-
}),
|
|
3529
|
-
|
|
3530
|
-
const P = await
|
|
2897
|
+
}), A && t.value.refresh_token) {
|
|
2898
|
+
T.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
2899
|
+
const P = await _e({
|
|
3531
2900
|
grant_type: "refresh_token",
|
|
3532
2901
|
refresh_token: t.value.refresh_token,
|
|
3533
2902
|
scope: "offline_access"
|
|
3534
2903
|
});
|
|
3535
|
-
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, Ee(t.value),
|
|
2904
|
+
P ? (P.refresh_token = P.refresh_token ?? t.value.refresh_token, t.value = P, Ee(t.value), T.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3536
2905
|
expiresAt: P.expires_at ? new Date(P.expires_at).toISOString() : "not set"
|
|
3537
|
-
})) :
|
|
2906
|
+
})) : T.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3538
2907
|
}
|
|
3539
2908
|
return t.value?.access_token ?? t.value?.token ?? null;
|
|
3540
2909
|
}
|
|
3541
2910
|
return {
|
|
3542
2911
|
user: h(() => e.value),
|
|
3543
|
-
loading: h(() =>
|
|
2912
|
+
loading: h(() => s.value),
|
|
3544
2913
|
isAdministrator: h(() => e.value?.isAdministrator),
|
|
3545
2914
|
isAuthenticated: o,
|
|
3546
2915
|
loadUser: v,
|
|
3547
|
-
signIn:
|
|
2916
|
+
signIn: S,
|
|
3548
2917
|
signOut: p,
|
|
3549
|
-
validateToken:
|
|
2918
|
+
validateToken: u,
|
|
3550
2919
|
validatePassword: c,
|
|
3551
2920
|
resetPasswordByToken: m,
|
|
3552
|
-
requestPasswordReset:
|
|
2921
|
+
requestPasswordReset: y,
|
|
3553
2922
|
changeUserPassword: I,
|
|
3554
2923
|
getLoginType: x,
|
|
3555
2924
|
getAccessToken: g
|
|
3556
2925
|
};
|
|
3557
2926
|
}
|
|
3558
|
-
const
|
|
3559
|
-
const
|
|
2927
|
+
const mt = Le(pt), vt = () => {
|
|
2928
|
+
const s = mt();
|
|
3560
2929
|
return {
|
|
3561
|
-
user:
|
|
3562
|
-
loading:
|
|
3563
|
-
isAuthenticated:
|
|
3564
|
-
isAdministrator:
|
|
3565
|
-
loadUser:
|
|
3566
|
-
signOut:
|
|
3567
|
-
getAccessToken:
|
|
2930
|
+
user: s.user,
|
|
2931
|
+
loading: s.loading,
|
|
2932
|
+
isAuthenticated: s.isAuthenticated,
|
|
2933
|
+
isAdministrator: s.isAdministrator,
|
|
2934
|
+
loadUser: s.loadUser,
|
|
2935
|
+
signOut: s.signOut,
|
|
2936
|
+
getAccessToken: s.getAccessToken
|
|
3568
2937
|
};
|
|
3569
|
-
}, Oe = Symbol("BladeStack"),
|
|
2938
|
+
}, Oe = Symbol("BladeStack"), gt = Symbol("BladeMessaging"), bt = Symbol("BladeDescriptor"), $r = Symbol("BladeMaximized"), xt = Symbol("BladeData"), Et = Symbol("BladeBanners"), Nr = Symbol("BladeBackButton"), jr = Symbol("NotificationStore"), kr = Symbol("WidgetService"), zr = Symbol("DashboardService"), Fr = Symbol("MenuService"), Gr = Symbol("SettingsMenuService"), Dr = Symbol("AppBarWidgetService"), Lr = Symbol("AppBarMobileButtonsService"), _t = Symbol("LanguageService"), Ct = Symbol("ToolbarService"), Mr = Symbol("DynamicModules"), Jr = Symbol("ModulesReady"), Wr = Symbol("ModulesLoadError"), Kr = Symbol("AppRootElement"), St = Symbol("EmbeddedMode"), qr = Symbol("ShellIndicators"), ve = Symbol("AiAgentService"), Hr = Symbol("IsMobile"), Zr = Symbol("IsDesktop"), Xr = Symbol("IsPhone"), Yr = Symbol("IsTablet"), Qr = Symbol("IsTouch"), Vr = Symbol("BladeRoutes"), en = Symbol("InternalRoutes"), tn = Symbol("CloseSettingsMenu"), rn = Symbol("BladeContext"), nn = Symbol("WidgetScope"), an = Symbol("BladeForm"), sn = Symbol("BladeLoading"), yt = {
|
|
3570
2939
|
url: "",
|
|
3571
2940
|
title: "Virto OZ",
|
|
3572
2941
|
width: 362,
|
|
3573
2942
|
expandedWidth: 500,
|
|
3574
2943
|
allowedOrigins: ["*"]
|
|
3575
|
-
},
|
|
2944
|
+
}, on = "APP_AI_AGENT_URL", ln = {
|
|
3576
2945
|
EMBEDDED_APP_READY: "EMBEDDED_APP_READY",
|
|
3577
2946
|
AI_TOGGLE_PANEL: "AI_TOGGLE_PANEL",
|
|
3578
2947
|
AI_CONTEXT_UPDATE: "AI_CONTEXT_UPDATE",
|
|
3579
2948
|
AI_CONTEXT_CLEAR: "AI_CONTEXT_CLEAR"
|
|
3580
|
-
},
|
|
2949
|
+
}, un = {
|
|
3581
2950
|
EMBEDDED_HOST_READY: "EMBEDDED_HOST_READY",
|
|
3582
2951
|
AI_CHAT_MESSAGE: "AI_CHAT_MESSAGE"
|
|
3583
|
-
},
|
|
3584
|
-
function
|
|
3585
|
-
const
|
|
3586
|
-
|
|
2952
|
+
}, Ut = "ai-agent-toggle", At = "lucide-sparkles", wt = "AI Assistant", re = j("ai-agent-panel");
|
|
2953
|
+
function Tt() {
|
|
2954
|
+
const s = D("closed"), e = D(!1), t = h(() => s.value !== "closed"), n = h(() => s.value === "expanded"), r = () => {
|
|
2955
|
+
s.value === "closed" && (s.value = "open", re.debug("Panel opened"));
|
|
3587
2956
|
}, a = () => {
|
|
3588
|
-
|
|
2957
|
+
s.value = "closed", e.value = !1, re.debug("Panel closed, reset initialized state");
|
|
3589
2958
|
};
|
|
3590
2959
|
return {
|
|
3591
|
-
panelState:
|
|
2960
|
+
panelState: s,
|
|
3592
2961
|
isOpen: t,
|
|
3593
2962
|
isExpanded: n,
|
|
3594
2963
|
isInitialized: e,
|
|
3595
2964
|
open: r,
|
|
3596
2965
|
close: a,
|
|
3597
2966
|
toggle: () => {
|
|
3598
|
-
|
|
2967
|
+
s.value === "closed" ? r() : a();
|
|
3599
2968
|
},
|
|
3600
2969
|
expand: () => {
|
|
3601
|
-
|
|
2970
|
+
s.value === "open" && (s.value = "expanded", re.debug("Panel expanded"));
|
|
3602
2971
|
},
|
|
3603
2972
|
collapse: () => {
|
|
3604
|
-
|
|
2973
|
+
s.value === "expanded" && (s.value = "open", re.debug("Panel collapsed"));
|
|
3605
2974
|
},
|
|
3606
2975
|
resetInitialized: () => {
|
|
3607
2976
|
e.value = !1;
|
|
3608
2977
|
}
|
|
3609
2978
|
};
|
|
3610
2979
|
}
|
|
3611
|
-
const de =
|
|
3612
|
-
function
|
|
3613
|
-
return
|
|
3614
|
-
id:
|
|
3615
|
-
name:
|
|
3616
|
-
title:
|
|
3617
|
-
param:
|
|
2980
|
+
const de = j("ai-agent-context");
|
|
2981
|
+
function Ce(s) {
|
|
2982
|
+
return s ? {
|
|
2983
|
+
id: s.id,
|
|
2984
|
+
name: s.name,
|
|
2985
|
+
title: s.title || s.name,
|
|
2986
|
+
param: s.param
|
|
3618
2987
|
} : { id: "unknown", name: "unknown", title: "Unknown" };
|
|
3619
2988
|
}
|
|
3620
|
-
function
|
|
3621
|
-
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } =
|
|
3622
|
-
const
|
|
3623
|
-
return
|
|
2989
|
+
function Pt(s) {
|
|
2990
|
+
const { userGetter: e, bladeGetter: t, localeGetter: n, tokenGetter: r } = s, a = D(/* @__PURE__ */ new Map()), o = () => {
|
|
2991
|
+
const y = t();
|
|
2992
|
+
return y ? a.value.get(y.id) ?? {
|
|
3624
2993
|
items: [],
|
|
3625
2994
|
type: "list",
|
|
3626
2995
|
suggestions: void 0
|
|
@@ -3629,102 +2998,102 @@ function _t(i) {
|
|
|
3629
2998
|
type: "list",
|
|
3630
2999
|
suggestions: void 0
|
|
3631
3000
|
};
|
|
3632
|
-
},
|
|
3001
|
+
}, u = h(() => o().items), c = h(() => o().type), m = h(() => o().suggestions), S = h(() => u.value.length);
|
|
3633
3002
|
return {
|
|
3634
|
-
contextItems:
|
|
3003
|
+
contextItems: u,
|
|
3635
3004
|
contextType: c,
|
|
3636
3005
|
contextSuggestions: m,
|
|
3637
|
-
totalItemsCount:
|
|
3638
|
-
setContextData: (
|
|
3006
|
+
totalItemsCount: S,
|
|
3007
|
+
setContextData: (y, I, x, R) => {
|
|
3639
3008
|
const g = t()?.id || R;
|
|
3640
|
-
return g ?
|
|
3009
|
+
return g ? y.length === 0 && !x ? (a.value.delete(g), de.debug(`Context cleared for blade: ${g}`), { cleared: !0 }) : (a.value.set(g, { items: y, type: I, suggestions: x }), de.debug(`Context set for blade: ${g}, items: ${y.length}, type: ${I}`), { cleared: !1 }) : (de.warn("Cannot set context data: no blade id available"), { cleared: !1 });
|
|
3641
3010
|
},
|
|
3642
3011
|
buildInitPayload: async () => {
|
|
3643
|
-
const
|
|
3012
|
+
const y = r ? await r() ?? void 0 : void 0;
|
|
3644
3013
|
return {
|
|
3645
3014
|
userId: e()?.id || "",
|
|
3646
3015
|
locale: n(),
|
|
3647
|
-
blade:
|
|
3016
|
+
blade: Ce(t()),
|
|
3648
3017
|
contextType: c.value,
|
|
3649
|
-
items: te(
|
|
3018
|
+
items: te(u.value),
|
|
3650
3019
|
suggestions: m.value ? te(m.value) : void 0,
|
|
3651
|
-
accessToken:
|
|
3020
|
+
accessToken: y
|
|
3652
3021
|
};
|
|
3653
3022
|
},
|
|
3654
3023
|
buildUpdatePayload: async () => {
|
|
3655
|
-
const
|
|
3024
|
+
const y = r ? await r() ?? void 0 : void 0;
|
|
3656
3025
|
return {
|
|
3657
|
-
blade:
|
|
3026
|
+
blade: Ce(t()),
|
|
3658
3027
|
contextType: c.value,
|
|
3659
|
-
items: te(
|
|
3028
|
+
items: te(u.value),
|
|
3660
3029
|
suggestions: m.value ? te(m.value) : void 0,
|
|
3661
3030
|
locale: n(),
|
|
3662
|
-
accessToken:
|
|
3031
|
+
accessToken: y
|
|
3663
3032
|
};
|
|
3664
3033
|
}
|
|
3665
3034
|
};
|
|
3666
3035
|
}
|
|
3667
|
-
const
|
|
3668
|
-
function
|
|
3036
|
+
const F = j("ai-agent-transport");
|
|
3037
|
+
function Ot(s) {
|
|
3669
3038
|
try {
|
|
3670
|
-
const e = atob(
|
|
3039
|
+
const e = atob(s.content), t = new Array(e.length);
|
|
3671
3040
|
for (let o = 0; o < e.length; o++)
|
|
3672
3041
|
t[o] = e.charCodeAt(o);
|
|
3673
|
-
const n = new Blob([new Uint8Array(t)], { type:
|
|
3674
|
-
a.href = r, a.download =
|
|
3042
|
+
const n = new Blob([new Uint8Array(t)], { type: s.contentType }), r = URL.createObjectURL(n), a = document.createElement("a");
|
|
3043
|
+
a.href = r, a.download = s.filename, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r), F.debug(`File downloaded: ${s.filename}`);
|
|
3675
3044
|
} catch (e) {
|
|
3676
|
-
|
|
3045
|
+
F.error("Failed to download file:", e);
|
|
3677
3046
|
}
|
|
3678
3047
|
}
|
|
3679
|
-
function
|
|
3680
|
-
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } =
|
|
3681
|
-
function p(v,
|
|
3048
|
+
function It(s) {
|
|
3049
|
+
const { getConfig: e, isEmbedded: t, navigateToBlade: n, reloadBlade: r } = s, a = ke(null), o = D(!1), u = D(!1), c = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set();
|
|
3050
|
+
function p(v, y) {
|
|
3682
3051
|
switch (v) {
|
|
3683
3052
|
case "PREVIEW_CHANGES": {
|
|
3684
|
-
const x =
|
|
3685
|
-
m.size === 0 &&
|
|
3053
|
+
const x = y;
|
|
3054
|
+
m.size === 0 && F.warn("No preview changes handlers registered!"), m.forEach((R) => {
|
|
3686
3055
|
try {
|
|
3687
3056
|
R(x);
|
|
3688
3057
|
} catch (g) {
|
|
3689
|
-
|
|
3058
|
+
F.error("Error in preview handler:", g);
|
|
3690
3059
|
}
|
|
3691
3060
|
});
|
|
3692
3061
|
break;
|
|
3693
3062
|
}
|
|
3694
3063
|
case "NAVIGATE_TO_APP": {
|
|
3695
|
-
const x =
|
|
3696
|
-
n && x?.bladeName && (n(x.bladeName, x.param, x.options),
|
|
3064
|
+
const x = y;
|
|
3065
|
+
n && x?.bladeName && (n(x.bladeName, x.param, x.options), F.debug(`Navigation requested to: ${x.bladeName}`));
|
|
3697
3066
|
break;
|
|
3698
3067
|
}
|
|
3699
3068
|
case "RELOAD_BLADE":
|
|
3700
|
-
r && (r(),
|
|
3069
|
+
r && (r(), F.debug("Blade reload requested"));
|
|
3701
3070
|
break;
|
|
3702
3071
|
case "DOWNLOAD_FILE": {
|
|
3703
|
-
const x =
|
|
3704
|
-
x &&
|
|
3072
|
+
const x = y;
|
|
3073
|
+
x && Ot(x);
|
|
3705
3074
|
break;
|
|
3706
3075
|
}
|
|
3707
3076
|
case "APPLY_CHANGES": {
|
|
3708
|
-
const x =
|
|
3709
|
-
|
|
3077
|
+
const x = y;
|
|
3078
|
+
F.warn("APPLY_CHANGES received but not implemented:", x?.changes);
|
|
3710
3079
|
break;
|
|
3711
3080
|
}
|
|
3712
3081
|
case "CHAT_ERROR": {
|
|
3713
|
-
const x =
|
|
3714
|
-
|
|
3082
|
+
const x = y;
|
|
3083
|
+
F.error(`Chatbot error [${x?.code}]: ${x?.message}`);
|
|
3715
3084
|
break;
|
|
3716
3085
|
}
|
|
3717
3086
|
}
|
|
3718
3087
|
const I = {
|
|
3719
3088
|
type: v,
|
|
3720
|
-
payload:
|
|
3089
|
+
payload: y,
|
|
3721
3090
|
timestamp: Date.now()
|
|
3722
3091
|
};
|
|
3723
3092
|
c.forEach((x) => {
|
|
3724
3093
|
try {
|
|
3725
3094
|
x(I);
|
|
3726
3095
|
} catch (R) {
|
|
3727
|
-
|
|
3096
|
+
F.error("Handler error:", R);
|
|
3728
3097
|
}
|
|
3729
3098
|
});
|
|
3730
3099
|
}
|
|
@@ -3734,7 +3103,7 @@ function Ct(i) {
|
|
|
3734
3103
|
return;
|
|
3735
3104
|
const x = v.data;
|
|
3736
3105
|
if (!(!x?.type || typeof x.type != "string"))
|
|
3737
|
-
switch (
|
|
3106
|
+
switch (F.debug(`Message received: ${x.type}`), x.type) {
|
|
3738
3107
|
// Embedded: parent forwards chat messages wrapped in AI_CHAT_MESSAGE
|
|
3739
3108
|
case "AI_CHAT_MESSAGE": {
|
|
3740
3109
|
if (t) {
|
|
@@ -3745,11 +3114,11 @@ function Ct(i) {
|
|
|
3745
3114
|
}
|
|
3746
3115
|
// Normal: chatbot signals it's ready
|
|
3747
3116
|
case "CHAT_READY":
|
|
3748
|
-
|
|
3117
|
+
S.forEach((R) => {
|
|
3749
3118
|
try {
|
|
3750
3119
|
R();
|
|
3751
3120
|
} catch (g) {
|
|
3752
|
-
|
|
3121
|
+
F.error("ChatReady handler error:", g);
|
|
3753
3122
|
}
|
|
3754
3123
|
});
|
|
3755
3124
|
break;
|
|
@@ -3762,34 +3131,34 @@ function Ct(i) {
|
|
|
3762
3131
|
return {
|
|
3763
3132
|
iframeRef: a,
|
|
3764
3133
|
pendingInitContext: o,
|
|
3765
|
-
isListenerRegistered:
|
|
3134
|
+
isListenerRegistered: u,
|
|
3766
3135
|
setIframeRef(v) {
|
|
3767
|
-
a.value = v,
|
|
3136
|
+
a.value = v, F.debug("Iframe ref set:", v ? "available" : "null");
|
|
3768
3137
|
},
|
|
3769
3138
|
sendToIframe(v) {
|
|
3770
3139
|
if (!a.value?.contentWindow) {
|
|
3771
|
-
|
|
3140
|
+
F.warn("Cannot send message: iframe not available");
|
|
3772
3141
|
return;
|
|
3773
3142
|
}
|
|
3774
3143
|
const I = e().allowedOrigins?.[0] || "*";
|
|
3775
|
-
a.value.contentWindow.postMessage(v, I),
|
|
3144
|
+
a.value.contentWindow.postMessage(v, I), F.debug(`Sent to iframe: ${v.type}`);
|
|
3776
3145
|
},
|
|
3777
3146
|
sendToParent(v) {
|
|
3778
3147
|
if (!window.parent || window.parent === window) {
|
|
3779
|
-
|
|
3148
|
+
F.warn("Cannot send to parent: not in iframe");
|
|
3780
3149
|
return;
|
|
3781
3150
|
}
|
|
3782
|
-
window.parent.postMessage(v, "*"),
|
|
3151
|
+
window.parent.postMessage(v, "*"), F.debug(`Sent to parent: ${v.type}`);
|
|
3783
3152
|
},
|
|
3784
3153
|
startListening() {
|
|
3785
|
-
|
|
3154
|
+
u.value || (window.addEventListener("message", d), u.value = !0);
|
|
3786
3155
|
},
|
|
3787
3156
|
stopListening() {
|
|
3788
|
-
|
|
3157
|
+
u.value && (window.removeEventListener("message", d), u.value = !1);
|
|
3789
3158
|
},
|
|
3790
3159
|
onChatReady(v) {
|
|
3791
|
-
return
|
|
3792
|
-
|
|
3160
|
+
return S.add(v), () => {
|
|
3161
|
+
S.delete(v);
|
|
3793
3162
|
};
|
|
3794
3163
|
},
|
|
3795
3164
|
onPreviewChanges(v) {
|
|
@@ -3804,8 +3173,8 @@ function Ct(i) {
|
|
|
3804
3173
|
}
|
|
3805
3174
|
};
|
|
3806
3175
|
}
|
|
3807
|
-
const ne =
|
|
3808
|
-
function
|
|
3176
|
+
const ne = j("ai-agent-service");
|
|
3177
|
+
function Rt(s) {
|
|
3809
3178
|
const {
|
|
3810
3179
|
userGetter: e,
|
|
3811
3180
|
bladeGetter: t,
|
|
@@ -3813,14 +3182,14 @@ function Tt(i) {
|
|
|
3813
3182
|
tokenGetter: r,
|
|
3814
3183
|
navigateToBlade: a,
|
|
3815
3184
|
reloadBlade: o,
|
|
3816
|
-
initialConfig:
|
|
3185
|
+
initialConfig: u,
|
|
3817
3186
|
isEmbedded: c = !1
|
|
3818
|
-
} =
|
|
3187
|
+
} = s, m = D({ ...yt, ...u }), S = Tt(), p = Pt({
|
|
3819
3188
|
userGetter: e,
|
|
3820
3189
|
bladeGetter: t,
|
|
3821
3190
|
localeGetter: n,
|
|
3822
3191
|
tokenGetter: r
|
|
3823
|
-
}), d =
|
|
3192
|
+
}), d = It({
|
|
3824
3193
|
getConfig: () => m.value,
|
|
3825
3194
|
isEmbedded: c,
|
|
3826
3195
|
navigateToBlade: a,
|
|
@@ -3829,18 +3198,18 @@ function Tt(i) {
|
|
|
3829
3198
|
user: e(),
|
|
3830
3199
|
currentBlade: t(),
|
|
3831
3200
|
items: p.contextItems.value
|
|
3832
|
-
})),
|
|
3201
|
+
})), y = async () => {
|
|
3833
3202
|
if (d.pendingInitContext.value && d.iframeRef.value?.contentWindow) {
|
|
3834
|
-
d.pendingInitContext.value = !1,
|
|
3203
|
+
d.pendingInitContext.value = !1, S.isInitialized.value = !0;
|
|
3835
3204
|
const E = await p.buildInitPayload();
|
|
3836
3205
|
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ne.debug("Flushed pending INIT_CONTEXT");
|
|
3837
3206
|
}
|
|
3838
3207
|
};
|
|
3839
3208
|
d.onChatReady(() => {
|
|
3840
|
-
d.iframeRef.value?.contentWindow ? (
|
|
3209
|
+
d.iframeRef.value?.contentWindow ? (S.isInitialized.value = !0, p.buildInitPayload().then((E) => {
|
|
3841
3210
|
d.sendToIframe({ type: "INIT_CONTEXT", payload: E }), ne.info("Chatbot ready, sent INIT_CONTEXT");
|
|
3842
3211
|
})) : (d.pendingInitContext.value = !0, ne.info("Chatbot ready, iframe ref not available yet — pending INIT_CONTEXT"));
|
|
3843
|
-
}),
|
|
3212
|
+
}), Z(d.iframeRef, () => y()), Z(
|
|
3844
3213
|
() => ({ currentBlade: v.value.currentBlade, items: v.value.items }),
|
|
3845
3214
|
async () => {
|
|
3846
3215
|
if (c) {
|
|
@@ -3848,43 +3217,43 @@ function Tt(i) {
|
|
|
3848
3217
|
d.sendToParent({ type: "AI_CONTEXT_UPDATE", payload: E });
|
|
3849
3218
|
return;
|
|
3850
3219
|
}
|
|
3851
|
-
if (
|
|
3220
|
+
if (S.isOpen.value && S.isInitialized.value && d.iframeRef.value?.contentWindow) {
|
|
3852
3221
|
const E = await p.buildUpdatePayload();
|
|
3853
3222
|
d.sendToIframe({ type: "UPDATE_CONTEXT", payload: E });
|
|
3854
3223
|
}
|
|
3855
3224
|
},
|
|
3856
3225
|
{ deep: !0 }
|
|
3857
3226
|
);
|
|
3858
|
-
const I = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) :
|
|
3859
|
-
d.setIframeRef(E),
|
|
3860
|
-
},
|
|
3861
|
-
const { cleared:
|
|
3862
|
-
c &&
|
|
3227
|
+
const I = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.open(), x = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.close(), R = () => c ? d.sendToParent({ type: "AI_TOGGLE_PANEL" }) : S.toggle(), g = (E) => {
|
|
3228
|
+
d.setIframeRef(E), y();
|
|
3229
|
+
}, C = (E, A, P, L) => {
|
|
3230
|
+
const { cleared: Y } = p.setContextData(E, A, P, L);
|
|
3231
|
+
c && Y && d.sendToParent({ type: "AI_CONTEXT_CLEAR" });
|
|
3863
3232
|
};
|
|
3864
3233
|
return d.startListening(), c && (d.sendToParent({
|
|
3865
3234
|
type: "EMBEDDED_APP_READY",
|
|
3866
3235
|
payload: { supportedFeatures: ["ai-agent"] }
|
|
3867
3236
|
}), ne.info("Embedded mode: sent EMBEDDED_APP_READY to parent")), {
|
|
3868
3237
|
// State
|
|
3869
|
-
panelState:
|
|
3238
|
+
panelState: S.panelState,
|
|
3870
3239
|
config: m,
|
|
3871
3240
|
context: v,
|
|
3872
|
-
isOpen: h(() => !c &&
|
|
3873
|
-
isExpanded:
|
|
3241
|
+
isOpen: h(() => !c && S.isOpen.value),
|
|
3242
|
+
isExpanded: S.isExpanded,
|
|
3874
3243
|
totalItemsCount: p.totalItemsCount,
|
|
3875
3244
|
// Panel control
|
|
3876
3245
|
openPanel: I,
|
|
3877
3246
|
closePanel: x,
|
|
3878
3247
|
togglePanel: R,
|
|
3879
|
-
expandPanel: () =>
|
|
3880
|
-
collapsePanel: () =>
|
|
3248
|
+
expandPanel: () => S.expand(),
|
|
3249
|
+
collapsePanel: () => S.collapse(),
|
|
3881
3250
|
// Configuration
|
|
3882
3251
|
setConfig: (E) => {
|
|
3883
3252
|
m.value = { ...m.value, ...E };
|
|
3884
3253
|
},
|
|
3885
3254
|
// Communication
|
|
3886
|
-
sendMessage: (E,
|
|
3887
|
-
d.sendToIframe({ type: E, payload:
|
|
3255
|
+
sendMessage: (E, A) => {
|
|
3256
|
+
d.sendToIframe({ type: E, payload: A });
|
|
3888
3257
|
},
|
|
3889
3258
|
onMessage: d.onMessage,
|
|
3890
3259
|
// Internal API
|
|
@@ -3892,91 +3261,91 @@ function Tt(i) {
|
|
|
3892
3261
|
_setIframeRef: g,
|
|
3893
3262
|
_startListening: d.startListening,
|
|
3894
3263
|
_stopListening: d.stopListening,
|
|
3895
|
-
_setContextData:
|
|
3264
|
+
_setContextData: C,
|
|
3896
3265
|
_onPreviewChanges: d.onPreviewChanges
|
|
3897
3266
|
};
|
|
3898
3267
|
}
|
|
3899
|
-
let Ie, Re,
|
|
3900
|
-
function
|
|
3901
|
-
Ie =
|
|
3268
|
+
let Ie, Re, Be, Bt;
|
|
3269
|
+
function cn(s) {
|
|
3270
|
+
Ie = s;
|
|
3902
3271
|
}
|
|
3903
|
-
function
|
|
3904
|
-
Re =
|
|
3272
|
+
function hn(s) {
|
|
3273
|
+
Re = s;
|
|
3905
3274
|
}
|
|
3906
|
-
function
|
|
3907
|
-
|
|
3275
|
+
function dn(s) {
|
|
3276
|
+
Be = s;
|
|
3908
3277
|
}
|
|
3909
|
-
function
|
|
3910
|
-
|
|
3278
|
+
function fn(s) {
|
|
3279
|
+
Bt = s;
|
|
3911
3280
|
}
|
|
3912
|
-
function
|
|
3281
|
+
function Se(s, e) {
|
|
3913
3282
|
if (e.length === 0)
|
|
3914
|
-
return { path:
|
|
3915
|
-
const t = e[0], n =
|
|
3283
|
+
return { path: s ? `/${s}` : "/", query: {} };
|
|
3284
|
+
const t = e[0], n = ye(t.url);
|
|
3916
3285
|
let r;
|
|
3917
|
-
for (let
|
|
3918
|
-
if (e[
|
|
3919
|
-
r = e[
|
|
3286
|
+
for (let u = e.length - 1; u >= 1; u--)
|
|
3287
|
+
if (e[u].visible) {
|
|
3288
|
+
r = e[u];
|
|
3920
3289
|
break;
|
|
3921
3290
|
}
|
|
3922
|
-
let a =
|
|
3291
|
+
let a = s ? `/${s}` : "";
|
|
3923
3292
|
if (n && (a += `/${n}`), r) {
|
|
3924
|
-
const
|
|
3925
|
-
|
|
3293
|
+
const u = ye(r.url);
|
|
3294
|
+
u && (a += `/${u}`), r.param && (a += `/${r.param}`);
|
|
3926
3295
|
}
|
|
3927
3296
|
const o = {};
|
|
3928
|
-
for (const
|
|
3929
|
-
|
|
3297
|
+
for (const u of e)
|
|
3298
|
+
u.visible && u.query && Object.assign(o, u.query);
|
|
3930
3299
|
return { path: a || "/", query: o };
|
|
3931
3300
|
}
|
|
3932
|
-
function
|
|
3933
|
-
let t =
|
|
3301
|
+
function pn(s, e) {
|
|
3302
|
+
let t = s.split("/").filter(Boolean);
|
|
3934
3303
|
return e && t.length > 0 && t[0] === e && (t = t.slice(1)), t.length === 0 ? {} : {
|
|
3935
3304
|
workspaceUrl: t[0],
|
|
3936
3305
|
bladeUrl: t[1],
|
|
3937
3306
|
param: t[2]
|
|
3938
3307
|
};
|
|
3939
3308
|
}
|
|
3940
|
-
function
|
|
3941
|
-
if (
|
|
3942
|
-
return
|
|
3309
|
+
function ye(s) {
|
|
3310
|
+
if (s)
|
|
3311
|
+
return s.replace(/^\/+|\/+$/g, "") || void 0;
|
|
3943
3312
|
}
|
|
3944
|
-
function
|
|
3945
|
-
const e =
|
|
3313
|
+
function Ue(s) {
|
|
3314
|
+
const e = s.currentRoute.value.params;
|
|
3946
3315
|
return Object.values(e).find((t) => typeof t == "string" && t) || "";
|
|
3947
3316
|
}
|
|
3948
|
-
function
|
|
3317
|
+
function $t(s, e) {
|
|
3949
3318
|
function t() {
|
|
3950
|
-
const { path: r, query: a } = Ue(
|
|
3951
|
-
|
|
3319
|
+
const { path: r, query: a } = Se(Ue(s), e.blades.value);
|
|
3320
|
+
s.push({ path: r, query: a });
|
|
3952
3321
|
}
|
|
3953
3322
|
function n() {
|
|
3954
|
-
const { path: r, query: a } = Ue(
|
|
3955
|
-
|
|
3323
|
+
const { path: r, query: a } = Se(Ue(s), e.blades.value);
|
|
3324
|
+
s.replace({ path: r, query: a });
|
|
3956
3325
|
}
|
|
3957
3326
|
return { syncUrlPush: t, syncUrlReplace: n };
|
|
3958
3327
|
}
|
|
3959
|
-
const
|
|
3960
|
-
function
|
|
3961
|
-
throw new Error(`[vc-shell] ${
|
|
3962
|
-
${
|
|
3328
|
+
const Nt = "useBlade() was called outside a blade. Navigation methods (openBlade) work everywhere, but blade-specific methods require the component to be rendered inside VcBladeSlot.";
|
|
3329
|
+
function B(s) {
|
|
3330
|
+
throw new Error(`[vc-shell] ${s} requires blade context.
|
|
3331
|
+
${Nt}`);
|
|
3963
3332
|
}
|
|
3964
|
-
function
|
|
3965
|
-
const
|
|
3966
|
-
if (!
|
|
3333
|
+
function jt() {
|
|
3334
|
+
const s = (ee() ? J(Oe, void 0) : void 0) ?? Re, e = (ee() ? J(gt, void 0) : void 0) ?? Be;
|
|
3335
|
+
if (!s || !e)
|
|
3967
3336
|
throw new Error(
|
|
3968
3337
|
"[vc-shell] useBlade() failed: BladeStack or BladeMessaging not available. Ensure BladeNavigationPlugin (plugin-v2) is installed."
|
|
3969
3338
|
);
|
|
3970
|
-
const t =
|
|
3339
|
+
const t = s, n = e, r = ee() ? J(bt, void 0) : void 0, a = ee() ? J(Et, void 0) : void 0;
|
|
3971
3340
|
let o;
|
|
3972
|
-
function
|
|
3341
|
+
function u() {
|
|
3973
3342
|
if (o) return o;
|
|
3974
|
-
const
|
|
3975
|
-
return
|
|
3343
|
+
const _ = Ie?.router;
|
|
3344
|
+
return _ && (o = $t(_, t)), o;
|
|
3976
3345
|
}
|
|
3977
|
-
const c = h(() => (r ||
|
|
3346
|
+
const c = h(() => (r || B("id"), r.value.id)), m = h(() => (r || B("param"), r.value.param)), S = h(() => (r || B("options"), r.value.options)), p = h(() => (r || B("query"), r.value.query)), d = h(() => (r || B("closable"), r.value.parentId !== void 0)), v = h(() => (r || B("expanded"), t.activeBlade.value?.id === r.value.id)), y = h(() => (r || B("name"), r.value.name));
|
|
3978
3347
|
let I = !1;
|
|
3979
|
-
function x(
|
|
3348
|
+
function x(_) {
|
|
3980
3349
|
if (I) {
|
|
3981
3350
|
console.warn(
|
|
3982
3351
|
"[vc-shell] provideBladeData() called more than once in the same blade. Only the first call takes effect."
|
|
@@ -3984,319 +3353,319 @@ function Pt() {
|
|
|
3984
3353
|
return;
|
|
3985
3354
|
}
|
|
3986
3355
|
I = !0;
|
|
3987
|
-
const
|
|
3988
|
-
|
|
3356
|
+
const z = ze(_) ? _ : D(_);
|
|
3357
|
+
Ae(xt, z);
|
|
3989
3358
|
}
|
|
3990
|
-
async function R(
|
|
3991
|
-
const { isWorkspace:
|
|
3992
|
-
if (
|
|
3359
|
+
async function R(_) {
|
|
3360
|
+
const { isWorkspace: z, ...ue } = _;
|
|
3361
|
+
if (z)
|
|
3993
3362
|
await t.openWorkspace(ue);
|
|
3994
3363
|
else {
|
|
3995
3364
|
const be = r?.value.id;
|
|
3996
3365
|
be ? await t.openBlade({ ...ue, parentId: be }) : await t.openBlade(ue);
|
|
3997
3366
|
}
|
|
3998
|
-
t.activeBlade.value?.url &&
|
|
3367
|
+
t.activeBlade.value?.url && u()?.syncUrlPush();
|
|
3999
3368
|
}
|
|
4000
3369
|
async function g() {
|
|
4001
|
-
r ||
|
|
4002
|
-
const
|
|
4003
|
-
return
|
|
3370
|
+
r || B("closeSelf()");
|
|
3371
|
+
const _ = await t.closeBlade(r.value.id);
|
|
3372
|
+
return _ || u()?.syncUrlReplace(), _;
|
|
4004
3373
|
}
|
|
4005
|
-
async function
|
|
4006
|
-
r ||
|
|
3374
|
+
async function C() {
|
|
3375
|
+
r || B("closeChildren()"), await t.closeChildren(r.value.id), u()?.syncUrlReplace();
|
|
4007
3376
|
}
|
|
4008
|
-
async function E(
|
|
4009
|
-
r ||
|
|
4010
|
-
...
|
|
3377
|
+
async function E(_) {
|
|
3378
|
+
r || B("replaceWith()"), await t.replaceCurrentBlade({
|
|
3379
|
+
..._,
|
|
4011
3380
|
parentId: r.value.parentId
|
|
4012
|
-
}), t.activeBlade.value?.url &&
|
|
3381
|
+
}), t.activeBlade.value?.url && u()?.syncUrlReplace();
|
|
4013
3382
|
}
|
|
4014
|
-
async function
|
|
4015
|
-
r ||
|
|
4016
|
-
...
|
|
3383
|
+
async function A(_) {
|
|
3384
|
+
r || B("coverWith()"), await t.coverCurrentBlade({
|
|
3385
|
+
..._,
|
|
4017
3386
|
parentId: r.value.parentId
|
|
4018
|
-
}), t.activeBlade.value?.url &&
|
|
3387
|
+
}), t.activeBlade.value?.url && u()?.syncUrlPush();
|
|
4019
3388
|
}
|
|
4020
|
-
async function P(
|
|
4021
|
-
return r ||
|
|
3389
|
+
async function P(_, z) {
|
|
3390
|
+
return r || B("callParent()"), n.callParent(r.value.id, _, z);
|
|
4022
3391
|
}
|
|
4023
|
-
function
|
|
4024
|
-
r ||
|
|
3392
|
+
function L(_) {
|
|
3393
|
+
r || B("exposeToChildren()"), n.exposeToChildren(r.value.id, _);
|
|
4025
3394
|
}
|
|
4026
|
-
function
|
|
4027
|
-
r ||
|
|
3395
|
+
function Y(_) {
|
|
3396
|
+
r || B("onBeforeClose()"), t.registerBeforeClose(r.value.id, _);
|
|
4028
3397
|
}
|
|
4029
|
-
function
|
|
4030
|
-
r ||
|
|
3398
|
+
function l(_) {
|
|
3399
|
+
r || B("setError()"), t.setBladeError(r.value.id, _);
|
|
4031
3400
|
}
|
|
4032
3401
|
function f() {
|
|
4033
|
-
r ||
|
|
3402
|
+
r || B("clearError()"), t.clearBladeError(r.value.id);
|
|
4034
3403
|
}
|
|
4035
3404
|
let b = 0;
|
|
4036
|
-
function
|
|
4037
|
-
a ||
|
|
4038
|
-
const
|
|
3405
|
+
function U(_) {
|
|
3406
|
+
a || B("addBanner()");
|
|
3407
|
+
const z = `banner-${r.value.id}-${++b}`;
|
|
4039
3408
|
return a.value.push({
|
|
4040
|
-
...
|
|
4041
|
-
id:
|
|
4042
|
-
dismissible:
|
|
4043
|
-
}),
|
|
3409
|
+
..._,
|
|
3410
|
+
id: z,
|
|
3411
|
+
dismissible: _.dismissible ?? !1
|
|
3412
|
+
}), z;
|
|
4044
3413
|
}
|
|
4045
|
-
function O(
|
|
4046
|
-
a ||
|
|
3414
|
+
function O(_) {
|
|
3415
|
+
a || B("removeBanner()"), a.value = a.value.filter((z) => z.id !== _);
|
|
4047
3416
|
}
|
|
4048
|
-
function
|
|
4049
|
-
a ||
|
|
3417
|
+
function k() {
|
|
3418
|
+
a || B("clearBanners()"), a.value = a.value.filter((_) => _._system);
|
|
4050
3419
|
}
|
|
4051
|
-
let
|
|
4052
|
-
function Ne(
|
|
4053
|
-
if (r ||
|
|
3420
|
+
let K = !1, ge = !1;
|
|
3421
|
+
function Ne(_) {
|
|
3422
|
+
if (r || B("onActivated()"), K) {
|
|
4054
3423
|
console.warn("[useBlade] onActivated() already registered in this blade.");
|
|
4055
3424
|
return;
|
|
4056
3425
|
}
|
|
4057
|
-
|
|
4058
|
-
|
|
3426
|
+
K = !0, Z(v, (z) => {
|
|
3427
|
+
z && _();
|
|
4059
3428
|
});
|
|
4060
3429
|
}
|
|
4061
|
-
function
|
|
4062
|
-
if (r ||
|
|
3430
|
+
function je(_) {
|
|
3431
|
+
if (r || B("onDeactivated()"), ge) {
|
|
4063
3432
|
console.warn("[useBlade] onDeactivated() already registered in this blade.");
|
|
4064
3433
|
return;
|
|
4065
3434
|
}
|
|
4066
|
-
ge = !0,
|
|
4067
|
-
|
|
3435
|
+
ge = !0, Z(v, (z) => {
|
|
3436
|
+
z || _();
|
|
4068
3437
|
});
|
|
4069
3438
|
}
|
|
4070
3439
|
return {
|
|
4071
3440
|
id: c,
|
|
4072
3441
|
param: m,
|
|
4073
|
-
options:
|
|
3442
|
+
options: S,
|
|
4074
3443
|
query: p,
|
|
4075
3444
|
closable: d,
|
|
4076
3445
|
expanded: v,
|
|
4077
|
-
name:
|
|
3446
|
+
name: y,
|
|
4078
3447
|
provideBladeData: x,
|
|
4079
3448
|
openBlade: R,
|
|
4080
3449
|
closeSelf: g,
|
|
4081
|
-
closeChildren:
|
|
3450
|
+
closeChildren: C,
|
|
4082
3451
|
replaceWith: E,
|
|
4083
|
-
coverWith:
|
|
3452
|
+
coverWith: A,
|
|
4084
3453
|
callParent: P,
|
|
4085
|
-
exposeToChildren:
|
|
4086
|
-
onBeforeClose:
|
|
3454
|
+
exposeToChildren: L,
|
|
3455
|
+
onBeforeClose: Y,
|
|
4087
3456
|
onActivated: Ne,
|
|
4088
|
-
onDeactivated:
|
|
4089
|
-
setError:
|
|
3457
|
+
onDeactivated: je,
|
|
3458
|
+
setError: l,
|
|
4090
3459
|
clearError: f,
|
|
4091
|
-
addBanner:
|
|
3460
|
+
addBanner: U,
|
|
4092
3461
|
removeBanner: O,
|
|
4093
|
-
clearBanners:
|
|
3462
|
+
clearBanners: k
|
|
4094
3463
|
};
|
|
4095
3464
|
}
|
|
4096
|
-
let
|
|
3465
|
+
let kt = 0;
|
|
4097
3466
|
function ae() {
|
|
4098
|
-
return `blade_${++
|
|
3467
|
+
return `blade_${++kt}_${Math.random().toString(36).slice(2, 8)}`;
|
|
4099
3468
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const t = D([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = h(() => t.value[0]),
|
|
4102
|
-
for (let
|
|
4103
|
-
if (t.value[
|
|
3469
|
+
function mn(s, e) {
|
|
3470
|
+
const t = D([]), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = h(() => t.value[0]), u = h(() => t.value), c = h(() => {
|
|
3471
|
+
for (let l = t.value.length - 1; l >= 0; l--)
|
|
3472
|
+
if (t.value[l].visible) return t.value[l];
|
|
4104
3473
|
});
|
|
4105
|
-
function m(
|
|
4106
|
-
n.delete(
|
|
3474
|
+
function m(l) {
|
|
3475
|
+
n.delete(l), r.delete(l), a.delete(l);
|
|
4107
3476
|
}
|
|
4108
|
-
function
|
|
4109
|
-
const f =
|
|
3477
|
+
function S(l) {
|
|
3478
|
+
const f = s.getBlade(l);
|
|
4110
3479
|
if (f)
|
|
4111
3480
|
return f.route;
|
|
4112
3481
|
}
|
|
4113
|
-
async function p(
|
|
4114
|
-
for (let f =
|
|
4115
|
-
const b = n.get(
|
|
3482
|
+
async function p(l) {
|
|
3483
|
+
for (let f = l.length - 1; f >= 0; f--) {
|
|
3484
|
+
const b = n.get(l[f].id);
|
|
4116
3485
|
if (b && await b())
|
|
4117
3486
|
return !0;
|
|
4118
3487
|
}
|
|
4119
3488
|
return !1;
|
|
4120
3489
|
}
|
|
4121
|
-
function d(
|
|
4122
|
-
for (const f of
|
|
3490
|
+
function d(l) {
|
|
3491
|
+
for (const f of l)
|
|
4123
3492
|
a.get(f.id)?.(), m(f.id);
|
|
4124
3493
|
}
|
|
4125
|
-
async function v(
|
|
4126
|
-
if (o.value?.name ===
|
|
4127
|
-
const b =
|
|
3494
|
+
async function v(l) {
|
|
3495
|
+
if (o.value?.name === l.name) return;
|
|
3496
|
+
const b = s.getBlade(l.name);
|
|
4128
3497
|
if (!b)
|
|
4129
|
-
throw new Error(`[BladeStack] Blade '${
|
|
3498
|
+
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
4130
3499
|
if (e && b.permissions && !e(b.permissions)) {
|
|
4131
|
-
console.warn(`[BladeStack] Access denied to workspace '${
|
|
3500
|
+
console.warn(`[BladeStack] Access denied to workspace '${l.name}'`);
|
|
4132
3501
|
return;
|
|
4133
3502
|
}
|
|
4134
3503
|
d([...t.value]);
|
|
4135
|
-
const
|
|
3504
|
+
const U = {
|
|
4136
3505
|
id: ae(),
|
|
4137
|
-
name:
|
|
4138
|
-
url:
|
|
3506
|
+
name: l.name,
|
|
3507
|
+
url: S(l.name),
|
|
4139
3508
|
// workspace blades don't have param when opened first
|
|
4140
|
-
query:
|
|
4141
|
-
options:
|
|
3509
|
+
query: l.query,
|
|
3510
|
+
options: l.options,
|
|
4142
3511
|
visible: !0
|
|
4143
3512
|
};
|
|
4144
|
-
t.value = [
|
|
3513
|
+
t.value = [U], l.onOpen && r.set(U.id, l.onOpen), l.onClose && a.set(U.id, l.onClose), l.onOpen?.();
|
|
4145
3514
|
}
|
|
4146
|
-
async function
|
|
4147
|
-
if (!
|
|
4148
|
-
throw new Error(`[BladeStack] Blade '${
|
|
4149
|
-
const f =
|
|
3515
|
+
async function y(l) {
|
|
3516
|
+
if (!s.getBlade(l.name))
|
|
3517
|
+
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3518
|
+
const f = l.parentId ?? c.value?.id ?? o.value?.id;
|
|
4150
3519
|
if (!f)
|
|
4151
3520
|
throw new Error("[BladeStack] Cannot open blade: no parent blade found");
|
|
4152
|
-
const b = t.value.findIndex((
|
|
3521
|
+
const b = t.value.findIndex((k) => k.id === f);
|
|
4153
3522
|
if (b === -1)
|
|
4154
3523
|
throw new Error(`[BladeStack] Parent blade '${f}' not found in stack`);
|
|
4155
|
-
const
|
|
4156
|
-
if (
|
|
3524
|
+
const U = t.value.slice(b + 1);
|
|
3525
|
+
if (U.length > 0 && await p(U))
|
|
4157
3526
|
return;
|
|
4158
|
-
d(
|
|
3527
|
+
d(U);
|
|
4159
3528
|
const O = {
|
|
4160
3529
|
id: ae(),
|
|
4161
|
-
name:
|
|
4162
|
-
url:
|
|
4163
|
-
param:
|
|
4164
|
-
query:
|
|
4165
|
-
options:
|
|
3530
|
+
name: l.name,
|
|
3531
|
+
url: S(l.name),
|
|
3532
|
+
param: l.param,
|
|
3533
|
+
query: l.query,
|
|
3534
|
+
options: l.options,
|
|
4166
3535
|
parentId: f,
|
|
4167
3536
|
visible: !0
|
|
4168
3537
|
};
|
|
4169
|
-
t.value = [...t.value.slice(0, b + 1), O],
|
|
3538
|
+
t.value = [...t.value.slice(0, b + 1), O], l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
4170
3539
|
}
|
|
4171
|
-
async function I(
|
|
4172
|
-
const f = t.value.findIndex((
|
|
3540
|
+
async function I(l) {
|
|
3541
|
+
const f = t.value.findIndex((k) => k.id === l);
|
|
4173
3542
|
if (f === -1 || f === 0) return !1;
|
|
4174
3543
|
const b = t.value.slice(f);
|
|
4175
3544
|
if (await p(b)) return !0;
|
|
4176
3545
|
d(b), t.value = t.value.slice(0, f);
|
|
4177
3546
|
const O = t.value.length - 1;
|
|
4178
3547
|
if (O > 0 && !t.value[O].visible) {
|
|
4179
|
-
const
|
|
4180
|
-
|
|
3548
|
+
const k = [...t.value];
|
|
3549
|
+
k[O] = { ...k[O], visible: !0 }, t.value = k;
|
|
4181
3550
|
}
|
|
4182
3551
|
return !1;
|
|
4183
3552
|
}
|
|
4184
|
-
async function x(
|
|
3553
|
+
async function x(l) {
|
|
4185
3554
|
const f = c.value;
|
|
4186
3555
|
if (!f)
|
|
4187
3556
|
throw new Error("[BladeStack] No active blade to replace");
|
|
4188
|
-
if (!
|
|
4189
|
-
throw new Error(`[BladeStack] Blade '${
|
|
4190
|
-
const b = t.value.findIndex((
|
|
3557
|
+
if (!s.getBlade(l.name))
|
|
3558
|
+
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3559
|
+
const b = t.value.findIndex((K) => K.id === f.id);
|
|
4191
3560
|
if (b === -1)
|
|
4192
3561
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
4193
|
-
const
|
|
4194
|
-
if (
|
|
4195
|
-
if (await p(
|
|
4196
|
-
d(
|
|
3562
|
+
const U = t.value.slice(b + 1);
|
|
3563
|
+
if (U.length > 0) {
|
|
3564
|
+
if (await p(U)) return;
|
|
3565
|
+
d(U);
|
|
4197
3566
|
}
|
|
4198
3567
|
const O = {
|
|
4199
3568
|
id: ae(),
|
|
4200
|
-
name:
|
|
4201
|
-
url:
|
|
4202
|
-
param:
|
|
4203
|
-
query:
|
|
4204
|
-
options:
|
|
3569
|
+
name: l.name,
|
|
3570
|
+
url: S(l.name),
|
|
3571
|
+
param: l.param,
|
|
3572
|
+
query: l.query,
|
|
3573
|
+
options: l.options,
|
|
4205
3574
|
parentId: f.parentId,
|
|
4206
3575
|
visible: !0
|
|
4207
3576
|
};
|
|
4208
3577
|
d([f]);
|
|
4209
|
-
const
|
|
4210
|
-
t.value =
|
|
3578
|
+
const k = [...t.value.slice(0, b), O, ...t.value.slice(b + 1)];
|
|
3579
|
+
t.value = k, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
4211
3580
|
}
|
|
4212
|
-
async function R(
|
|
3581
|
+
async function R(l) {
|
|
4213
3582
|
const f = c.value;
|
|
4214
3583
|
if (!f)
|
|
4215
3584
|
throw new Error("[BladeStack] No active blade to cover");
|
|
4216
|
-
if (!
|
|
4217
|
-
throw new Error(`[BladeStack] Blade '${
|
|
4218
|
-
const b = t.value.findIndex((
|
|
3585
|
+
if (!s.getBlade(l.name))
|
|
3586
|
+
throw new Error(`[BladeStack] Blade '${l.name}' not found in registry`);
|
|
3587
|
+
const b = t.value.findIndex((K) => K.id === f.id);
|
|
4219
3588
|
if (b === -1)
|
|
4220
3589
|
throw new Error(`[BladeStack] Active blade '${f.id}' not found in stack`);
|
|
4221
|
-
const
|
|
4222
|
-
if (
|
|
4223
|
-
if (await p(
|
|
4224
|
-
d(
|
|
3590
|
+
const U = t.value.slice(b + 1);
|
|
3591
|
+
if (U.length > 0) {
|
|
3592
|
+
if (await p(U)) return;
|
|
3593
|
+
d(U);
|
|
4225
3594
|
}
|
|
4226
3595
|
const O = {
|
|
4227
3596
|
id: ae(),
|
|
4228
|
-
name:
|
|
4229
|
-
url:
|
|
4230
|
-
param:
|
|
4231
|
-
query:
|
|
4232
|
-
options:
|
|
3597
|
+
name: l.name,
|
|
3598
|
+
url: S(l.name),
|
|
3599
|
+
param: l.param,
|
|
3600
|
+
query: l.query,
|
|
3601
|
+
options: l.options,
|
|
4233
3602
|
parentId: f.id,
|
|
4234
3603
|
visible: !0
|
|
4235
|
-
},
|
|
4236
|
-
|
|
3604
|
+
}, k = t.value.slice(0, b);
|
|
3605
|
+
k.push({ ...f, visible: !1 }), k.push(O), t.value = k, l.onOpen && r.set(O.id, l.onOpen), l.onClose && a.set(O.id, l.onClose), l.onOpen?.();
|
|
4237
3606
|
}
|
|
4238
|
-
async function g(
|
|
4239
|
-
const f = t.value.findIndex((O) => O.id ===
|
|
3607
|
+
async function g(l) {
|
|
3608
|
+
const f = t.value.findIndex((O) => O.id === l);
|
|
4240
3609
|
if (f === -1) return;
|
|
4241
3610
|
const b = t.value.slice(f + 1);
|
|
4242
3611
|
b.length === 0 || await p(b) || (d(b), t.value = t.value.slice(0, f + 1));
|
|
4243
3612
|
}
|
|
4244
|
-
function
|
|
4245
|
-
n.set(
|
|
3613
|
+
function C(l, f) {
|
|
3614
|
+
n.set(l, f);
|
|
4246
3615
|
}
|
|
4247
|
-
function E(
|
|
4248
|
-
n.delete(
|
|
3616
|
+
function E(l) {
|
|
3617
|
+
n.delete(l);
|
|
4249
3618
|
}
|
|
4250
|
-
function
|
|
4251
|
-
const b = t.value.findIndex((O) => O.id ===
|
|
3619
|
+
function A(l, f) {
|
|
3620
|
+
const b = t.value.findIndex((O) => O.id === l);
|
|
4252
3621
|
if (b === -1) return;
|
|
4253
|
-
const
|
|
4254
|
-
|
|
3622
|
+
const U = [...t.value];
|
|
3623
|
+
U[b] = { ...U[b], error: f }, t.value = U;
|
|
4255
3624
|
}
|
|
4256
|
-
function P(
|
|
4257
|
-
const f = t.value.findIndex((
|
|
3625
|
+
function P(l) {
|
|
3626
|
+
const f = t.value.findIndex((U) => U.id === l);
|
|
4258
3627
|
if (f === -1) return;
|
|
4259
3628
|
const b = [...t.value];
|
|
4260
3629
|
b[f] = { ...b[f], error: void 0 }, t.value = b;
|
|
4261
3630
|
}
|
|
4262
|
-
function
|
|
4263
|
-
const b = t.value.findIndex((O) => O.id ===
|
|
3631
|
+
function L(l, f) {
|
|
3632
|
+
const b = t.value.findIndex((O) => O.id === l);
|
|
4264
3633
|
if (b === -1 || t.value[b].title === f) return;
|
|
4265
|
-
const
|
|
4266
|
-
|
|
3634
|
+
const U = [...t.value];
|
|
3635
|
+
U[b] = { ...U[b], title: f }, t.value = U;
|
|
4267
3636
|
}
|
|
4268
|
-
function
|
|
3637
|
+
function Y(l) {
|
|
4269
3638
|
for (const f of t.value)
|
|
4270
3639
|
m(f.id);
|
|
4271
|
-
t.value =
|
|
3640
|
+
t.value = l;
|
|
4272
3641
|
}
|
|
4273
3642
|
return {
|
|
4274
3643
|
workspace: o,
|
|
4275
|
-
blades:
|
|
3644
|
+
blades: u,
|
|
4276
3645
|
activeBlade: c,
|
|
4277
3646
|
openWorkspace: v,
|
|
4278
|
-
openBlade:
|
|
3647
|
+
openBlade: y,
|
|
4279
3648
|
closeBlade: I,
|
|
4280
3649
|
closeChildren: g,
|
|
4281
3650
|
replaceCurrentBlade: x,
|
|
4282
3651
|
coverCurrentBlade: R,
|
|
4283
|
-
registerBeforeClose:
|
|
3652
|
+
registerBeforeClose: C,
|
|
4284
3653
|
unregisterBeforeClose: E,
|
|
4285
|
-
setBladeError:
|
|
3654
|
+
setBladeError: A,
|
|
4286
3655
|
clearBladeError: P,
|
|
4287
|
-
setBladeTitle:
|
|
4288
|
-
_restoreStack:
|
|
3656
|
+
setBladeTitle: L,
|
|
3657
|
+
_restoreStack: Y
|
|
4289
3658
|
};
|
|
4290
3659
|
}
|
|
4291
|
-
function
|
|
4292
|
-
const
|
|
4293
|
-
if (!
|
|
3660
|
+
function zt() {
|
|
3661
|
+
const s = J(Oe);
|
|
3662
|
+
if (!s)
|
|
4294
3663
|
throw new Error("[useBladeStack] BladeStack not found. Ensure BladeNavigationPlugin is installed.");
|
|
4295
|
-
return
|
|
3664
|
+
return s;
|
|
4296
3665
|
}
|
|
4297
|
-
const q =
|
|
4298
|
-
function
|
|
4299
|
-
const e = J(
|
|
3666
|
+
const q = j("use-ai-agent");
|
|
3667
|
+
function vn(s) {
|
|
3668
|
+
const e = J(_t), { user: t, getAccessToken: n } = vt(), { openBlade: r } = jt(), { blades: a, activeBlade: o, replaceCurrentBlade: u } = zt(), c = s?.isEmbedded, m = Rt({
|
|
4300
3669
|
userGetter: () => {
|
|
4301
3670
|
if (t.value)
|
|
4302
3671
|
return {
|
|
@@ -4321,13 +3690,13 @@ function hn(i) {
|
|
|
4321
3690
|
navigateToBlade: (p, d, v) => {
|
|
4322
3691
|
r({ name: p, param: d, options: v }).then(() => {
|
|
4323
3692
|
q.debug(`Navigated to blade: ${p}`);
|
|
4324
|
-
}).catch((
|
|
4325
|
-
q.warn(`Blade not found or cannot be opened: ${p}`,
|
|
3693
|
+
}).catch((y) => {
|
|
3694
|
+
q.warn(`Blade not found or cannot be opened: ${p}`, y);
|
|
4326
3695
|
});
|
|
4327
3696
|
},
|
|
4328
3697
|
reloadBlade: () => {
|
|
4329
3698
|
const p = o.value;
|
|
4330
|
-
p &&
|
|
3699
|
+
p && u({
|
|
4331
3700
|
name: p.name,
|
|
4332
3701
|
param: p.param,
|
|
4333
3702
|
query: p.query,
|
|
@@ -4338,16 +3707,16 @@ function hn(i) {
|
|
|
4338
3707
|
q.warn("Failed to reload current blade", d);
|
|
4339
3708
|
});
|
|
4340
3709
|
},
|
|
4341
|
-
initialConfig:
|
|
3710
|
+
initialConfig: s?.config,
|
|
4342
3711
|
isEmbedded: c
|
|
4343
3712
|
});
|
|
4344
|
-
if (
|
|
4345
|
-
const p = J(
|
|
3713
|
+
if (Ae(ve, m), q.debug("AiAgentService provided"), s?.addGlobalToolbarButton ?? !0) {
|
|
3714
|
+
const p = J(Ct, null);
|
|
4346
3715
|
p ? (p.registerToolbarItem(
|
|
4347
3716
|
{
|
|
4348
|
-
id:
|
|
4349
|
-
icon:
|
|
4350
|
-
title:
|
|
3717
|
+
id: Ut,
|
|
3718
|
+
icon: At,
|
|
3719
|
+
title: wt,
|
|
4351
3720
|
clickHandler: () => {
|
|
4352
3721
|
m.togglePanel();
|
|
4353
3722
|
}
|
|
@@ -4358,48 +3727,48 @@ function hn(i) {
|
|
|
4358
3727
|
}
|
|
4359
3728
|
return m;
|
|
4360
3729
|
}
|
|
4361
|
-
function
|
|
4362
|
-
const
|
|
4363
|
-
if (!
|
|
3730
|
+
function gn() {
|
|
3731
|
+
const s = J(ve);
|
|
3732
|
+
if (!s) {
|
|
4364
3733
|
q.error("AiAgentService not found. Did you forget to call provideAiAgentService()?");
|
|
4365
3734
|
return;
|
|
4366
3735
|
}
|
|
4367
3736
|
return {
|
|
4368
3737
|
// State
|
|
4369
|
-
panelState:
|
|
4370
|
-
config:
|
|
4371
|
-
context:
|
|
4372
|
-
isOpen:
|
|
4373
|
-
isExpanded:
|
|
4374
|
-
totalItemsCount:
|
|
3738
|
+
panelState: s.panelState,
|
|
3739
|
+
config: s.config,
|
|
3740
|
+
context: s.context,
|
|
3741
|
+
isOpen: s.isOpen,
|
|
3742
|
+
isExpanded: s.isExpanded,
|
|
3743
|
+
totalItemsCount: s.totalItemsCount,
|
|
4375
3744
|
// Panel control
|
|
4376
|
-
openPanel:
|
|
4377
|
-
closePanel:
|
|
4378
|
-
togglePanel:
|
|
4379
|
-
expandPanel:
|
|
4380
|
-
collapsePanel:
|
|
3745
|
+
openPanel: s.openPanel,
|
|
3746
|
+
closePanel: s.closePanel,
|
|
3747
|
+
togglePanel: s.togglePanel,
|
|
3748
|
+
expandPanel: s.expandPanel,
|
|
3749
|
+
collapsePanel: s.collapsePanel,
|
|
4381
3750
|
// Configuration
|
|
4382
|
-
setConfig:
|
|
3751
|
+
setConfig: s.setConfig,
|
|
4383
3752
|
// Communication
|
|
4384
|
-
sendMessage:
|
|
4385
|
-
onMessage:
|
|
3753
|
+
sendMessage: s.sendMessage,
|
|
3754
|
+
onMessage: s.onMessage
|
|
4386
3755
|
};
|
|
4387
3756
|
}
|
|
4388
|
-
function
|
|
3757
|
+
function bn(s) {
|
|
4389
3758
|
return {
|
|
4390
3759
|
id: "ai-agent-toggle",
|
|
4391
|
-
icon:
|
|
4392
|
-
title:
|
|
3760
|
+
icon: s?.icon ?? "lucide-sparkles",
|
|
3761
|
+
title: s?.title ?? "AI Assistant",
|
|
4393
3762
|
clickHandler: () => {
|
|
4394
3763
|
console.warn("[ai-agent] createAiAgentToolbarButton is deprecated. Use useAiAgent().togglePanel instead.");
|
|
4395
3764
|
}
|
|
4396
3765
|
};
|
|
4397
3766
|
}
|
|
4398
|
-
const
|
|
3767
|
+
const Ft = ["width", "height"], Gt = ["clip-path"], Dt = {
|
|
4399
3768
|
key: 1,
|
|
4400
3769
|
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",
|
|
4401
3770
|
fill: "url(#virto-oz-gradient-animated)"
|
|
4402
|
-
},
|
|
3771
|
+
}, Lt = ["id"], Mt = {
|
|
4403
3772
|
key: 1,
|
|
4404
3773
|
id: "virto-oz-gradient-animated",
|
|
4405
3774
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -4407,18 +3776,18 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4407
3776
|
y1: "0",
|
|
4408
3777
|
x2: "99",
|
|
4409
3778
|
y2: "108"
|
|
4410
|
-
}, $e = /* @__PURE__ */
|
|
3779
|
+
}, $e = /* @__PURE__ */ M({
|
|
4411
3780
|
__name: "VcVirtoOzLogo",
|
|
4412
3781
|
props: {
|
|
4413
3782
|
width: { default: 22 },
|
|
4414
3783
|
height: { default: 24 },
|
|
4415
3784
|
animated: { type: Boolean, default: !1 }
|
|
4416
3785
|
},
|
|
4417
|
-
setup(
|
|
3786
|
+
setup(s) {
|
|
4418
3787
|
const e = h(() => `virto-oz-clip-${Math.random().toString(36).substring(2, 11)}`);
|
|
4419
3788
|
return (t, n) => (w(), N("svg", {
|
|
4420
|
-
width:
|
|
4421
|
-
height:
|
|
3789
|
+
width: s.width,
|
|
3790
|
+
height: s.height,
|
|
4422
3791
|
viewBox: "0 0 99 108",
|
|
4423
3792
|
fill: "none",
|
|
4424
3793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4428,7 +3797,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4428
3797
|
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",
|
|
4429
3798
|
fill: "white"
|
|
4430
3799
|
}, null, -1)),
|
|
4431
|
-
|
|
3800
|
+
s.animated ? (w(), N("path", Dt)) : (w(), N("g", {
|
|
4432
3801
|
key: 0,
|
|
4433
3802
|
"clip-path": `url(#${e.value})`
|
|
4434
3803
|
}, [...n[0] || (n[0] = [
|
|
@@ -4453,7 +3822,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4453
3822
|
})
|
|
4454
3823
|
])
|
|
4455
3824
|
], -1)
|
|
4456
|
-
])], 8,
|
|
3825
|
+
])], 8, Gt)),
|
|
4457
3826
|
n[4] || (n[4] = $("path", {
|
|
4458
3827
|
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",
|
|
4459
3828
|
fill: "white"
|
|
@@ -4480,19 +3849,19 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4480
3849
|
fill: "#6C6C6C"
|
|
4481
3850
|
}, null, -1)),
|
|
4482
3851
|
$("defs", null, [
|
|
4483
|
-
|
|
3852
|
+
s.animated ? X("", !0) : (w(), N("clipPath", {
|
|
4484
3853
|
key: 0,
|
|
4485
3854
|
id: e.value
|
|
4486
3855
|
}, [...n[1] || (n[1] = [
|
|
4487
3856
|
$("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)
|
|
4488
|
-
])], 8,
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
])])) :
|
|
3857
|
+
])], 8, Lt)),
|
|
3858
|
+
s.animated ? (w(), N("linearGradient", Mt, [...n[2] || (n[2] = [
|
|
3859
|
+
Fe('<stop offset="0%" stop-color="#FF9533"><animate attributeName="stop-color" values="#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="25%" stop-color="#FF4FBB"><animate attributeName="stop-color" values="#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="50%" stop-color="#EAFF4F"><animate attributeName="stop-color" values="#EAFF4F;#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="75%" stop-color="#1C91FC"><animate attributeName="stop-color" values="#1C91FC;#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC" dur="4s" repeatCount="indefinite"></animate></stop><stop offset="100%" stop-color="#9A2DF8"><animate attributeName="stop-color" values="#9A2DF8;#FF9533;#FF4FBB;#EAFF4F;#1C91FC;#9A2DF8" dur="4s" repeatCount="indefinite"></animate></stop>', 5)
|
|
3860
|
+
])])) : X("", !0)
|
|
4492
3861
|
])
|
|
4493
|
-
], 8,
|
|
3862
|
+
], 8, Ft));
|
|
4494
3863
|
}
|
|
4495
|
-
}),
|
|
3864
|
+
}), Jt = /* @__PURE__ */ M({
|
|
4496
3865
|
__name: "vc-material-icon",
|
|
4497
3866
|
props: {
|
|
4498
3867
|
icon: {},
|
|
@@ -4501,21 +3870,21 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4501
3870
|
variant: {},
|
|
4502
3871
|
customSize: {}
|
|
4503
3872
|
},
|
|
4504
|
-
setup(
|
|
4505
|
-
const e =
|
|
3873
|
+
setup(s) {
|
|
3874
|
+
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4506
3875
|
return le(() => {
|
|
4507
3876
|
}), (r, a) => (w(), N("span", {
|
|
4508
|
-
class:
|
|
3877
|
+
class: H([
|
|
4509
3878
|
"vc-material-icon",
|
|
4510
|
-
"material-symbols-" +
|
|
4511
|
-
!t.value && `vc-material-icon--${
|
|
4512
|
-
|
|
3879
|
+
"material-symbols-" + s.type,
|
|
3880
|
+
!t.value && `vc-material-icon--${s.size}`,
|
|
3881
|
+
s.variant ? `vc-material-icon--${s.variant}` : ""
|
|
4513
3882
|
]),
|
|
4514
|
-
style:
|
|
3883
|
+
style: V(n.value),
|
|
4515
3884
|
"aria-hidden": "true"
|
|
4516
|
-
}, pe(
|
|
3885
|
+
}, pe(s.icon), 7));
|
|
4517
3886
|
}
|
|
4518
|
-
}),
|
|
3887
|
+
}), Wt = /* @__PURE__ */ M({
|
|
4519
3888
|
__name: "vc-bootstrap-icon",
|
|
4520
3889
|
props: {
|
|
4521
3890
|
icon: {},
|
|
@@ -4523,23 +3892,23 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4523
3892
|
variant: {},
|
|
4524
3893
|
customSize: {}
|
|
4525
3894
|
},
|
|
4526
|
-
setup(
|
|
4527
|
-
const e =
|
|
3895
|
+
setup(s) {
|
|
3896
|
+
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4528
3897
|
le(() => {
|
|
4529
3898
|
});
|
|
4530
3899
|
const r = h(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
4531
3900
|
return (a, o) => (w(), N("i", {
|
|
4532
|
-
class:
|
|
3901
|
+
class: H([
|
|
4533
3902
|
"vc-bootstrap-icon",
|
|
4534
|
-
!t.value && `vc-bootstrap-icon--${
|
|
3903
|
+
!t.value && `vc-bootstrap-icon--${s.size}`,
|
|
4535
3904
|
r.value,
|
|
4536
|
-
|
|
3905
|
+
s.variant ? `vc-bootstrap-icon--${s.variant}` : ""
|
|
4537
3906
|
]),
|
|
4538
|
-
style:
|
|
3907
|
+
style: V(n.value),
|
|
4539
3908
|
"aria-hidden": "true"
|
|
4540
3909
|
}, null, 6));
|
|
4541
3910
|
}
|
|
4542
|
-
}),
|
|
3911
|
+
}), Kt = /* @__PURE__ */ M({
|
|
4543
3912
|
__name: "vc-lucide-icon",
|
|
4544
3913
|
props: {
|
|
4545
3914
|
icon: {},
|
|
@@ -4548,36 +3917,36 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4548
3917
|
strokeWidth: { default: 2 },
|
|
4549
3918
|
customSize: {}
|
|
4550
3919
|
},
|
|
4551
|
-
setup(
|
|
4552
|
-
const e =
|
|
3920
|
+
setup(s) {
|
|
3921
|
+
const e = j("vc-lucide-icon"), t = s, n = h(() => typeof t.customSize == "number" && t.customSize > 0), r = h(() => {
|
|
4553
3922
|
if (!t.icon) return "HelpCircleIcon";
|
|
4554
|
-
let
|
|
4555
|
-
return
|
|
3923
|
+
let u = t.icon;
|
|
3924
|
+
return u.startsWith("lucide-") && (u = u.substring(7)), u.toLowerCase().endsWith("icon") && (u = u.slice(0, -4)), u.includes("-") && (u = u.split("-").map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")), u.charAt(0).toUpperCase() + u.slice(1) + "Icon";
|
|
4556
3925
|
}), a = h(() => {
|
|
4557
|
-
const
|
|
4558
|
-
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${
|
|
3926
|
+
const u = r.value, c = Me[u];
|
|
3927
|
+
return !c || typeof c != "object" && typeof c != "function" ? (e.warn(`Lucide icon not found: ${u}`), null) : we(c);
|
|
4559
3928
|
}), o = h(() => n.value && t.customSize ? {
|
|
4560
3929
|
width: `${t.customSize}px`,
|
|
4561
3930
|
height: `${t.customSize}px`
|
|
4562
3931
|
} : {});
|
|
4563
|
-
return (
|
|
3932
|
+
return (u, c) => a.value ? (w(), Q(fe(a.value), {
|
|
4564
3933
|
key: 0,
|
|
4565
3934
|
"stroke-width": t.strokeWidth,
|
|
4566
|
-
class:
|
|
3935
|
+
class: H([
|
|
4567
3936
|
"vc-lucide-icon",
|
|
4568
|
-
!n.value && `vc-lucide-icon--${
|
|
4569
|
-
|
|
3937
|
+
!n.value && `vc-lucide-icon--${s.size}`,
|
|
3938
|
+
s.variant ? `vc-lucide-icon--${s.variant}` : ""
|
|
4570
3939
|
]),
|
|
4571
|
-
style:
|
|
3940
|
+
style: V(o.value),
|
|
4572
3941
|
"aria-hidden": "true"
|
|
4573
3942
|
}, null, 8, ["stroke-width", "class", "style"])) : (w(), N("span", {
|
|
4574
3943
|
key: 1,
|
|
4575
|
-
class:
|
|
3944
|
+
class: H(["vc-lucide-icon", !n.value && `vc-lucide-icon--${s.size}`])
|
|
4576
3945
|
}, [...c[0] || (c[0] = [
|
|
4577
3946
|
$("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
4578
3947
|
])], 2));
|
|
4579
3948
|
}
|
|
4580
|
-
}),
|
|
3949
|
+
}), qt = /* @__PURE__ */ M({
|
|
4581
3950
|
__name: "vc-fontawesome-icon",
|
|
4582
3951
|
props: {
|
|
4583
3952
|
icon: {},
|
|
@@ -4585,23 +3954,23 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4585
3954
|
variant: {},
|
|
4586
3955
|
customSize: {}
|
|
4587
3956
|
},
|
|
4588
|
-
setup(
|
|
4589
|
-
const e =
|
|
3957
|
+
setup(s) {
|
|
3958
|
+
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
4590
3959
|
le(() => {
|
|
4591
3960
|
});
|
|
4592
3961
|
const r = h(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
|
|
4593
3962
|
return (a, o) => (w(), N("i", {
|
|
4594
|
-
class:
|
|
3963
|
+
class: H([
|
|
4595
3964
|
"vc-fa-icon",
|
|
4596
|
-
!t.value && `vc-fa-icon--${
|
|
3965
|
+
!t.value && `vc-fa-icon--${s.size}`,
|
|
4597
3966
|
r.value,
|
|
4598
|
-
|
|
3967
|
+
s.variant ? `vc-fa-icon--${s.variant}` : ""
|
|
4599
3968
|
]),
|
|
4600
|
-
style:
|
|
3969
|
+
style: V(n.value),
|
|
4601
3970
|
"aria-hidden": "true"
|
|
4602
3971
|
}, null, 6));
|
|
4603
3972
|
}
|
|
4604
|
-
}),
|
|
3973
|
+
}), Ht = ["xlink:href"], Zt = /* @__PURE__ */ M({
|
|
4605
3974
|
inheritAttrs: !1,
|
|
4606
3975
|
__name: "vc-svg-icon",
|
|
4607
3976
|
props: {
|
|
@@ -4612,14 +3981,14 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4612
3981
|
customSize: {},
|
|
4613
3982
|
strokeWidth: {}
|
|
4614
3983
|
},
|
|
4615
|
-
setup(
|
|
4616
|
-
const e =
|
|
3984
|
+
setup(s) {
|
|
3985
|
+
const e = s, t = h(() => typeof e.customSize == "number" && e.customSize > 0), n = h(() => {
|
|
4617
3986
|
if (e.icon.startsWith("/") || e.icon.includes("://") || e.icon.startsWith("#"))
|
|
4618
3987
|
return e.icon;
|
|
4619
3988
|
const a = e.icon.indexOf("#");
|
|
4620
3989
|
if (a > -1) {
|
|
4621
|
-
const o = e.icon.substring(0, a),
|
|
4622
|
-
return `${e.basePath}/${o}${
|
|
3990
|
+
const o = e.icon.substring(0, a), u = e.icon.substring(a);
|
|
3991
|
+
return `${e.basePath}/${o}${u}`;
|
|
4623
3992
|
}
|
|
4624
3993
|
return `${e.basePath}/${e.icon}`;
|
|
4625
3994
|
}), r = h(() => {
|
|
@@ -4628,16 +3997,16 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4628
3997
|
});
|
|
4629
3998
|
return (a, o) => (w(), N("svg", se({
|
|
4630
3999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4631
|
-
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${
|
|
4000
|
+
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${s.size}`, s.variant ? `vc-svg-icon--${s.variant}` : ""],
|
|
4632
4001
|
style: r.value
|
|
4633
4002
|
}, a.$attrs), [
|
|
4634
4003
|
n.value ? (w(), N("use", {
|
|
4635
4004
|
key: 0,
|
|
4636
4005
|
"xlink:href": n.value
|
|
4637
|
-
}, null, 8,
|
|
4006
|
+
}, null, 8, Ht)) : X("", !0)
|
|
4638
4007
|
], 16));
|
|
4639
4008
|
}
|
|
4640
|
-
}),
|
|
4009
|
+
}), Xt = ["aria-hidden", "aria-label", "role"], oe = /* @__PURE__ */ M({
|
|
4641
4010
|
__name: "vc-icon",
|
|
4642
4011
|
props: {
|
|
4643
4012
|
icon: { default: "lucide-square" },
|
|
@@ -4648,8 +4017,8 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4648
4017
|
basePath: { default: "/assets/icons" },
|
|
4649
4018
|
ariaLabel: {}
|
|
4650
4019
|
},
|
|
4651
|
-
setup(
|
|
4652
|
-
const e =
|
|
4020
|
+
setup(s) {
|
|
4021
|
+
const e = s;
|
|
4653
4022
|
le(() => {
|
|
4654
4023
|
});
|
|
4655
4024
|
const t = {
|
|
@@ -4670,12 +4039,12 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4670
4039
|
return g.endsWith("Icon") ? g : `${g}Icon`;
|
|
4671
4040
|
}
|
|
4672
4041
|
return e.icon;
|
|
4673
|
-
}), a = h(() => n.value === "material"), o = h(() => n.value === "bootstrap"),
|
|
4042
|
+
}), a = h(() => n.value === "material"), o = h(() => n.value === "bootstrap"), u = h(() => n.value === "lucide"), c = h(() => n.value === "fontawesome"), m = h(() => {
|
|
4674
4043
|
if (typeof e.icon != "string")
|
|
4675
4044
|
return !0;
|
|
4676
4045
|
if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
|
|
4677
4046
|
return !1;
|
|
4678
|
-
if (
|
|
4047
|
+
if (u.value)
|
|
4679
4048
|
try {
|
|
4680
4049
|
const g = typeof r.value == "string" ? r.value : String(r.value);
|
|
4681
4050
|
return ce(g) !== g;
|
|
@@ -4687,21 +4056,21 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4687
4056
|
} catch {
|
|
4688
4057
|
return !1;
|
|
4689
4058
|
}
|
|
4690
|
-
}),
|
|
4059
|
+
}), S = h(() => {
|
|
4691
4060
|
if (typeof e.icon != "string")
|
|
4692
4061
|
return we(e.icon);
|
|
4693
4062
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
4694
4063
|
return "i";
|
|
4695
4064
|
try {
|
|
4696
|
-
const g = typeof r.value == "string" ? r.value : String(r.value),
|
|
4697
|
-
return
|
|
4065
|
+
const g = typeof r.value == "string" ? r.value : String(r.value), C = ce(g);
|
|
4066
|
+
return C !== g ? C : "i";
|
|
4698
4067
|
} catch {
|
|
4699
4068
|
return "i";
|
|
4700
4069
|
}
|
|
4701
|
-
}), p = h(() => a.value ?
|
|
4070
|
+
}), p = h(() => a.value ? Jt : o.value ? Wt : u.value ? Kt : c.value ? qt : x.value ? Zt : m.value ? S.value : "i"), d = h(() => e.customSize ? e.customSize : t[e.size]), v = h(() => {
|
|
4702
4071
|
const g = {};
|
|
4703
4072
|
return m.value && e.customSize && (g.width = `${e.customSize}px`, g.height = `${e.customSize}px`), g;
|
|
4704
|
-
}),
|
|
4073
|
+
}), y = h(() => e.customSize ? {
|
|
4705
4074
|
fontSize: `${e.customSize}px`
|
|
4706
4075
|
} : {}), I = h(() => a.value ? {
|
|
4707
4076
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
@@ -4719,7 +4088,7 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4719
4088
|
variant: e.variant,
|
|
4720
4089
|
customSize: e.customSize
|
|
4721
4090
|
// Set custom size without scaling
|
|
4722
|
-
} :
|
|
4091
|
+
} : u.value ? {
|
|
4723
4092
|
icon: typeof r.value == "string" ? r.value : String(r.value),
|
|
4724
4093
|
size: e.size,
|
|
4725
4094
|
variant: e.variant,
|
|
@@ -4744,38 +4113,38 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4744
4113
|
height: d.value,
|
|
4745
4114
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
4746
4115
|
} : {}), x = h(() => n.value === "svg"), R = h(() => !x.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
4747
|
-
return (g,
|
|
4116
|
+
return (g, C) => s.useContainer ? (w(), N("div", se({
|
|
4748
4117
|
key: 0,
|
|
4749
|
-
class: ["vc-icon-container", `vc-icon-container--${
|
|
4750
|
-
style:
|
|
4751
|
-
"aria-hidden":
|
|
4752
|
-
"aria-label":
|
|
4753
|
-
role:
|
|
4118
|
+
class: ["vc-icon-container", `vc-icon-container--${s.size}`],
|
|
4119
|
+
style: y.value,
|
|
4120
|
+
"aria-hidden": s.ariaLabel ? void 0 : "true",
|
|
4121
|
+
"aria-label": s.ariaLabel || void 0,
|
|
4122
|
+
role: s.ariaLabel ? "img" : void 0
|
|
4754
4123
|
}, g.$attrs), [
|
|
4755
|
-
(w(),
|
|
4124
|
+
(w(), Q(fe(p.value), se({
|
|
4756
4125
|
class: [
|
|
4757
4126
|
"vc-icon",
|
|
4758
|
-
`vc-icon--${
|
|
4759
|
-
|
|
4760
|
-
!m.value && !a.value && !
|
|
4127
|
+
`vc-icon--${s.size}`,
|
|
4128
|
+
s.variant ? `vc-icon--${s.variant}` : "",
|
|
4129
|
+
!m.value && !a.value && !u.value && !o.value && !c.value ? s.icon.toLowerCase() : ""
|
|
4761
4130
|
],
|
|
4762
4131
|
style: v.value
|
|
4763
4132
|
}, I.value), null, 16, ["class", "style"]))
|
|
4764
|
-
], 16,
|
|
4133
|
+
], 16, Xt)) : (w(), Q(fe(p.value), se({
|
|
4765
4134
|
key: 1,
|
|
4766
4135
|
class: [
|
|
4767
4136
|
"vc-icon",
|
|
4768
|
-
`vc-icon--${
|
|
4769
|
-
|
|
4770
|
-
!m.value && !a.value && !
|
|
4137
|
+
`vc-icon--${s.size}`,
|
|
4138
|
+
s.variant ? `vc-icon--${s.variant}` : "",
|
|
4139
|
+
!m.value && !a.value && !u.value && !o.value && !c.value ? s.icon.toLowerCase() : ""
|
|
4771
4140
|
],
|
|
4772
4141
|
style: v.value,
|
|
4773
|
-
"aria-hidden":
|
|
4774
|
-
"aria-label":
|
|
4775
|
-
role:
|
|
4142
|
+
"aria-hidden": s.ariaLabel ? void 0 : "true",
|
|
4143
|
+
"aria-label": s.ariaLabel || void 0,
|
|
4144
|
+
role: s.ariaLabel ? "img" : void 0
|
|
4776
4145
|
}, { ...I.value, ...g.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
4777
4146
|
}
|
|
4778
|
-
}),
|
|
4147
|
+
}), Yt = { class: "vc-ai-agent-header" }, Qt = { class: "vc-ai-agent-header__icon" }, Vt = { class: "vc-ai-agent-header__wrapper" }, er = { class: "vc-ai-agent-header__content" }, tr = { class: "vc-ai-agent-header__title" }, rr = { class: "vc-ai-agent-header__controls" }, nr = /* @__PURE__ */ M({
|
|
4779
4148
|
__name: "VcAiAgentHeader",
|
|
4780
4149
|
props: {
|
|
4781
4150
|
title: {},
|
|
@@ -4783,9 +4152,9 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4783
4152
|
itemsCount: {}
|
|
4784
4153
|
},
|
|
4785
4154
|
emits: ["close", "expand", "collapse"],
|
|
4786
|
-
setup(
|
|
4787
|
-
return (e, t) => (w(), N("div",
|
|
4788
|
-
$("div",
|
|
4155
|
+
setup(s) {
|
|
4156
|
+
return (e, t) => (w(), N("div", Yt, [
|
|
4157
|
+
$("div", Qt, [
|
|
4789
4158
|
W($e, {
|
|
4790
4159
|
width: 22,
|
|
4791
4160
|
height: 24,
|
|
@@ -4793,12 +4162,12 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4793
4162
|
})
|
|
4794
4163
|
]),
|
|
4795
4164
|
$("div", Vt, [
|
|
4796
|
-
$("div",
|
|
4797
|
-
$("div",
|
|
4165
|
+
$("div", er, [
|
|
4166
|
+
$("div", tr, pe(s.title), 1)
|
|
4798
4167
|
])
|
|
4799
4168
|
]),
|
|
4800
|
-
$("div",
|
|
4801
|
-
|
|
4169
|
+
$("div", rr, [
|
|
4170
|
+
s.isExpanded ? (w(), N("div", {
|
|
4802
4171
|
key: 0,
|
|
4803
4172
|
class: "vc-ai-agent-header__button",
|
|
4804
4173
|
title: "Collapse",
|
|
@@ -4823,74 +4192,74 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4823
4192
|
])
|
|
4824
4193
|
]));
|
|
4825
4194
|
}
|
|
4826
|
-
}),
|
|
4195
|
+
}), ar = { class: "vc-ai-agent-loader" }, sr = { class: "vc-ai-agent-loader__content" }, ir = { class: "vc-ai-agent-loader__logo" }, or = {
|
|
4827
4196
|
key: 0,
|
|
4828
4197
|
class: "vc-ai-agent-loader__text"
|
|
4829
|
-
},
|
|
4198
|
+
}, lr = /* @__PURE__ */ M({
|
|
4830
4199
|
__name: "VcAiAgentLoader",
|
|
4831
4200
|
props: {
|
|
4832
4201
|
text: {}
|
|
4833
4202
|
},
|
|
4834
|
-
setup(
|
|
4835
|
-
return (e, t) => (w(), N("div",
|
|
4836
|
-
$("div",
|
|
4837
|
-
$("div",
|
|
4203
|
+
setup(s) {
|
|
4204
|
+
return (e, t) => (w(), N("div", ar, [
|
|
4205
|
+
$("div", sr, [
|
|
4206
|
+
$("div", ir, [
|
|
4838
4207
|
W($e, {
|
|
4839
4208
|
width: 80,
|
|
4840
4209
|
height: 87,
|
|
4841
4210
|
animated: ""
|
|
4842
4211
|
})
|
|
4843
4212
|
]),
|
|
4844
|
-
|
|
4213
|
+
s.text ? (w(), N("p", or, pe(s.text), 1)) : X("", !0)
|
|
4845
4214
|
])
|
|
4846
4215
|
]));
|
|
4847
4216
|
}
|
|
4848
|
-
}),
|
|
4217
|
+
}), ur = { class: "vc-ai-agent-iframe" }, cr = ["src"], hr = {
|
|
4849
4218
|
key: 1,
|
|
4850
4219
|
class: "vc-ai-agent-iframe__placeholder"
|
|
4851
|
-
},
|
|
4220
|
+
}, dr = /* @__PURE__ */ M({
|
|
4852
4221
|
__name: "VcAiAgentIframe",
|
|
4853
4222
|
props: {
|
|
4854
4223
|
url: {}
|
|
4855
4224
|
},
|
|
4856
4225
|
emits: ["iframe-ready"],
|
|
4857
|
-
setup(
|
|
4858
|
-
const t =
|
|
4859
|
-
|
|
4226
|
+
setup(s, { emit: e }) {
|
|
4227
|
+
const t = j("ai-agent-iframe"), n = s, r = e, a = D(null), o = D(!0);
|
|
4228
|
+
Z(
|
|
4860
4229
|
a,
|
|
4861
4230
|
(c) => {
|
|
4862
4231
|
c && r("iframe-ready", c);
|
|
4863
4232
|
},
|
|
4864
4233
|
{ immediate: !0 }
|
|
4865
4234
|
);
|
|
4866
|
-
const
|
|
4235
|
+
const u = () => {
|
|
4867
4236
|
o.value = !1, t.debug("Iframe loaded");
|
|
4868
4237
|
};
|
|
4869
|
-
return
|
|
4238
|
+
return Z(
|
|
4870
4239
|
() => n.url,
|
|
4871
4240
|
() => {
|
|
4872
4241
|
o.value = !0;
|
|
4873
4242
|
}
|
|
4874
|
-
), (c, m) => (w(), N("div",
|
|
4875
|
-
W(
|
|
4243
|
+
), (c, m) => (w(), N("div", ur, [
|
|
4244
|
+
W(Te, { name: "fade" }, {
|
|
4876
4245
|
default: Pe(() => [
|
|
4877
|
-
o.value &&
|
|
4246
|
+
o.value && s.url ? (w(), Q(lr, {
|
|
4878
4247
|
key: 0,
|
|
4879
4248
|
text: c.$t("AI_AGENT.LOADING")
|
|
4880
|
-
}, null, 8, ["text"])) :
|
|
4249
|
+
}, null, 8, ["text"])) : X("", !0)
|
|
4881
4250
|
]),
|
|
4882
4251
|
_: 1
|
|
4883
4252
|
}),
|
|
4884
|
-
|
|
4253
|
+
s.url ? (w(), N("iframe", {
|
|
4885
4254
|
key: 0,
|
|
4886
4255
|
ref_key: "iframeRef",
|
|
4887
4256
|
ref: a,
|
|
4888
|
-
src:
|
|
4889
|
-
class:
|
|
4257
|
+
src: s.url,
|
|
4258
|
+
class: H(["vc-ai-agent-iframe__frame", { "vc-ai-agent-iframe__frame--loading": o.value }]),
|
|
4890
4259
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",
|
|
4891
4260
|
allow: "clipboard-read; clipboard-write",
|
|
4892
|
-
onLoad:
|
|
4893
|
-
}, null, 42,
|
|
4261
|
+
onLoad: u
|
|
4262
|
+
}, null, 42, cr)) : (w(), N("div", hr, [
|
|
4894
4263
|
W(ie(oe), {
|
|
4895
4264
|
icon: "lucide-sparkles",
|
|
4896
4265
|
size: "xl",
|
|
@@ -4900,139 +4269,144 @@ const Rt = ["width", "height"], jt = ["clip-path"], $t = {
|
|
|
4900
4269
|
]))
|
|
4901
4270
|
]));
|
|
4902
4271
|
}
|
|
4903
|
-
}),
|
|
4272
|
+
}), fr = { class: "vc-ai-agent-panel__content" }, xn = /* @__PURE__ */ M({
|
|
4904
4273
|
__name: "VcAiAgentPanel",
|
|
4905
|
-
setup(
|
|
4906
|
-
const e = J(ve), t = J(
|
|
4274
|
+
setup(s) {
|
|
4275
|
+
const e = J(ve), t = J(St, !1);
|
|
4907
4276
|
e || console.error("[VcAiAgentPanel] AiAgentService not provided");
|
|
4908
4277
|
const n = h(
|
|
4909
4278
|
() => e?.config.value ?? { url: "", title: "AI Assistant", width: 362, expandedWidth: 500 }
|
|
4910
|
-
), r = h(() => !t && (e?.isOpen.value ?? !1)), a = h(() => e?.isExpanded.value ?? !1), o = h(() => e?.totalItemsCount.value ?? 0),
|
|
4279
|
+
), r = h(() => !t && (e?.isOpen.value ?? !1)), a = h(() => e?.isExpanded.value ?? !1), o = h(() => e?.totalItemsCount.value ?? 0), u = h(() => ({
|
|
4911
4280
|
width: a.value ? `${n.value.expandedWidth ?? 500}px` : `${n.value.width ?? 362}px`
|
|
4912
|
-
})), c = () => e?.closePanel(), m = () => e?.expandPanel(),
|
|
4281
|
+
})), c = () => e?.closePanel(), m = () => e?.expandPanel(), S = () => e?.collapsePanel(), p = (d) => {
|
|
4913
4282
|
e?._setIframeRef(d);
|
|
4914
4283
|
};
|
|
4915
|
-
return
|
|
4284
|
+
return Ge(() => {
|
|
4916
4285
|
e?._setIframeRef(null);
|
|
4917
|
-
}), (d, v) => (w(),
|
|
4286
|
+
}), (d, v) => (w(), Q(Te, { name: "ai-panel-slide" }, {
|
|
4918
4287
|
default: Pe(() => [
|
|
4919
4288
|
r.value ? (w(), N("div", {
|
|
4920
4289
|
key: 0,
|
|
4921
|
-
class:
|
|
4290
|
+
class: H(["vc-ai-agent-panel", {
|
|
4922
4291
|
"vc-ai-agent-panel--expanded": a.value
|
|
4923
4292
|
}]),
|
|
4924
|
-
style:
|
|
4293
|
+
style: V(u.value)
|
|
4925
4294
|
}, [
|
|
4926
|
-
W(
|
|
4295
|
+
W(nr, {
|
|
4927
4296
|
title: n.value.title,
|
|
4928
4297
|
"is-expanded": a.value,
|
|
4929
4298
|
"items-count": o.value,
|
|
4930
4299
|
onClose: c,
|
|
4931
4300
|
onExpand: m,
|
|
4932
|
-
onCollapse:
|
|
4301
|
+
onCollapse: S
|
|
4933
4302
|
}, null, 8, ["title", "is-expanded", "items-count"]),
|
|
4934
|
-
$("div",
|
|
4935
|
-
W(
|
|
4303
|
+
$("div", fr, [
|
|
4304
|
+
W(dr, {
|
|
4936
4305
|
url: n.value.url,
|
|
4937
4306
|
onIframeReady: p
|
|
4938
4307
|
}, null, 8, ["url"])
|
|
4939
4308
|
])
|
|
4940
|
-
], 6)) :
|
|
4309
|
+
], 6)) : X("", !0)
|
|
4941
4310
|
]),
|
|
4942
4311
|
_: 1
|
|
4943
4312
|
}));
|
|
4944
4313
|
}
|
|
4945
4314
|
});
|
|
4946
4315
|
export {
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4316
|
+
Et as $,
|
|
4317
|
+
on as A,
|
|
4318
|
+
bt as B,
|
|
4319
|
+
Hr as C,
|
|
4320
|
+
yt as D,
|
|
4321
|
+
ln as E,
|
|
4322
|
+
Zr as F,
|
|
4323
|
+
Qr as G,
|
|
4324
|
+
un as H,
|
|
4325
|
+
Xr as I,
|
|
4326
|
+
Vr as J,
|
|
4327
|
+
Dr as K,
|
|
4328
|
+
_t as L,
|
|
4329
|
+
Jr as M,
|
|
4330
|
+
Fr as N,
|
|
4331
|
+
Gr as O,
|
|
4332
|
+
jr as P,
|
|
4333
|
+
lt as Q,
|
|
4334
|
+
Lr as R,
|
|
4335
|
+
Ir as S,
|
|
4336
|
+
Ct as T,
|
|
4337
|
+
Kr as U,
|
|
4338
|
+
Er as V,
|
|
4339
|
+
kr as W,
|
|
4340
|
+
G as X,
|
|
4341
|
+
_r as Y,
|
|
4342
|
+
Nr as Z,
|
|
4974
4343
|
oe as _,
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4344
|
+
xn as a,
|
|
4345
|
+
xt as a0,
|
|
4346
|
+
sn as a1,
|
|
4347
|
+
$r as a2,
|
|
4348
|
+
Cr as a3,
|
|
4349
|
+
tn as a4,
|
|
4350
|
+
zr as a5,
|
|
4351
|
+
Sr as a6,
|
|
4352
|
+
yr as a7,
|
|
4353
|
+
Mr as a8,
|
|
4354
|
+
et as a9,
|
|
4355
|
+
mt as aA,
|
|
4356
|
+
Rr as aB,
|
|
4357
|
+
Br as aC,
|
|
4358
|
+
zt as aD,
|
|
4359
|
+
vt as aE,
|
|
4360
|
+
vn as aF,
|
|
4361
|
+
Ur as aa,
|
|
4362
|
+
rt as ab,
|
|
4989
4363
|
He as ac,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
4364
|
+
tt as ad,
|
|
4365
|
+
St as ae,
|
|
4366
|
+
Ze as af,
|
|
4367
|
+
Ke as ag,
|
|
4368
|
+
en as ah,
|
|
4369
|
+
Ar as ai,
|
|
4370
|
+
nt as aj,
|
|
4371
|
+
Xe as ak,
|
|
4372
|
+
wr as al,
|
|
4373
|
+
Tr as am,
|
|
4374
|
+
Wr as an,
|
|
4375
|
+
Pr as ao,
|
|
4376
|
+
at as ap,
|
|
4377
|
+
st as aq,
|
|
4378
|
+
Ye as ar,
|
|
4379
|
+
it as as,
|
|
4380
|
+
Or as at,
|
|
4381
|
+
qe as au,
|
|
4382
|
+
Qe as av,
|
|
4383
|
+
qr as aw,
|
|
4384
|
+
Ve as ax,
|
|
4385
|
+
ot as ay,
|
|
4386
|
+
pt as az,
|
|
5013
4387
|
ve as b,
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
4388
|
+
bn as c,
|
|
4389
|
+
j as d,
|
|
4390
|
+
Se as e,
|
|
4391
|
+
mn as f,
|
|
5018
4392
|
Oe as g,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
4393
|
+
gt as h,
|
|
4394
|
+
dn as i,
|
|
4395
|
+
cn as j,
|
|
4396
|
+
fn as k,
|
|
4397
|
+
nn as l,
|
|
4398
|
+
rn as m,
|
|
4399
|
+
jt as n,
|
|
4400
|
+
ht as o,
|
|
4401
|
+
pn as p,
|
|
5028
4402
|
Ie as q,
|
|
5029
4403
|
Re as r,
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
4404
|
+
hn as s,
|
|
4405
|
+
Bt as t,
|
|
4406
|
+
gn as u,
|
|
4407
|
+
Be as v,
|
|
4408
|
+
Ue as w,
|
|
4409
|
+
$t as x,
|
|
4410
|
+
an as y,
|
|
4411
|
+
Yr as z
|
|
5038
4412
|
};
|