@vc-shell/framework 2.6.3-rc.0-pr380.ae2f7ea → 2.6.3-rc.0-pr381.a79c6d3
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 +3 -3
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cs47PW6F.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CG-hIfAg.js} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cs47PW6F.js.map → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CG-hIfAg.js.map} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CQ4PNnTu.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-BO4n-ICh.js} +258 -258
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CQ4PNnTu.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-BO4n-ICh.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Bh8CNJsW.js → VcScheduler.vue_vue_type_script_setup_true_lang-DcUWlle2.js} +3 -3
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Bh8CNJsW.js.map → VcScheduler.vue_vue_type_script_setup_true_lang-DcUWlle2.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-ClYksC9b.js → VcScheduler.vue_vue_type_style_index_0_lang-osk-b3-5.js} +1 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-osk-b3-5.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CXrhWmOi.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-aW4RDDS1.js} +2 -2
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CXrhWmOi.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-aW4RDDS1.js.map} +1 -1
- package/dist/chunks/{index-DyZe677u.js → index-YzlvSxVT.js} +2 -2
- package/dist/chunks/{index-DyZe677u.js.map → index-YzlvSxVT.js.map} +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +2 -1
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +883 -870
- package/dist/framework.js.map +1 -1
- package/dist/locales/de.js +3 -0
- package/dist/locales/en.js +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/locales/types.d.ts +3 -0
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-ClYksC9b.js.map +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ref as _, computed as u, defineComponent as O, onMounted as
|
|
2
|
-
import { a as
|
|
3
|
-
import { j as
|
|
4
|
-
import { L as
|
|
5
|
-
import { a as
|
|
6
|
-
import { o as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
if (typeof e == "string" &&
|
|
1
|
+
import { ref as _, computed as u, defineComponent as O, onMounted as F, openBlock as g, createElementBlock as S, normalizeStyle as $, normalizeClass as P, toDisplayString as Q, markRaw as Z, createBlock as J, resolveDynamicComponent as B, createElementVNode as L, mergeProps as k, createCommentVNode as K, resolveComponent as M, inject as ee, toValue as te, useId as re, onBeforeUnmount as ne, withKeys as se, renderSlot as q, Teleport as ae, unref as ie, createVNode as oe, Transition as le, withCtx as ue } from "vue";
|
|
2
|
+
import { a as he } from "./vendor-vueuse-core-BwXFv1rx.js";
|
|
3
|
+
import { j as ce } from "./vendor-vueuse-shared-BPTQMqzb.js";
|
|
4
|
+
import { L as de } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
5
|
+
import { a as fe, u as pe } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
6
|
+
import { o as me, f as ve, s as be, b as xe } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
7
|
+
const ge = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
8
|
+
function Ee(i, e) {
|
|
9
|
+
if (typeof e == "string" && ge.test(e)) {
|
|
10
10
|
const t = new Date(e);
|
|
11
11
|
if (!isNaN(t.getTime()))
|
|
12
12
|
return t;
|
|
13
13
|
}
|
|
14
14
|
return e;
|
|
15
15
|
}
|
|
16
|
-
class
|
|
16
|
+
class b {
|
|
17
17
|
authToken = "";
|
|
18
18
|
/**
|
|
19
19
|
* JSON parse reviver for converting date strings to Date objects.
|
|
20
20
|
* Subclasses use this when parsing API responses.
|
|
21
21
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
22
22
|
*/
|
|
23
|
-
jsonParseReviver =
|
|
23
|
+
jsonParseReviver = Ee;
|
|
24
24
|
constructor() {
|
|
25
25
|
}
|
|
26
26
|
// Enforce always return empty string as baseUrl
|
|
@@ -34,7 +34,7 @@ class x {
|
|
|
34
34
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
class
|
|
37
|
+
class Ue extends b {
|
|
38
38
|
http;
|
|
39
39
|
baseUrl;
|
|
40
40
|
constructor(e, t) {
|
|
@@ -141,7 +141,7 @@ class Ee extends x {
|
|
|
141
141
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
class
|
|
144
|
+
class rt extends b {
|
|
145
145
|
http;
|
|
146
146
|
baseUrl;
|
|
147
147
|
constructor(e, t) {
|
|
@@ -210,7 +210,7 @@ class tt extends x {
|
|
|
210
210
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
class
|
|
213
|
+
class nt extends b {
|
|
214
214
|
http;
|
|
215
215
|
baseUrl;
|
|
216
216
|
constructor(e, t) {
|
|
@@ -240,7 +240,7 @@ class rt extends x {
|
|
|
240
240
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
class
|
|
243
|
+
class st extends b {
|
|
244
244
|
http;
|
|
245
245
|
baseUrl;
|
|
246
246
|
constructor(e, t) {
|
|
@@ -382,7 +382,7 @@ class nt extends x {
|
|
|
382
382
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
class
|
|
385
|
+
class at extends b {
|
|
386
386
|
http;
|
|
387
387
|
baseUrl;
|
|
388
388
|
constructor(e, t) {
|
|
@@ -583,7 +583,7 @@ class st extends x {
|
|
|
583
583
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
class
|
|
586
|
+
class it extends b {
|
|
587
587
|
http;
|
|
588
588
|
baseUrl;
|
|
589
589
|
constructor(e, t) {
|
|
@@ -612,7 +612,7 @@ class at extends x {
|
|
|
612
612
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
class
|
|
615
|
+
class ot extends b {
|
|
616
616
|
http;
|
|
617
617
|
baseUrl;
|
|
618
618
|
constructor(e, t) {
|
|
@@ -664,7 +664,7 @@ class it extends x {
|
|
|
664
664
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
class
|
|
667
|
+
class lt extends b {
|
|
668
668
|
http;
|
|
669
669
|
baseUrl;
|
|
670
670
|
constructor(e, t) {
|
|
@@ -939,7 +939,7 @@ class ot extends x {
|
|
|
939
939
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
class
|
|
942
|
+
class ut extends b {
|
|
943
943
|
http;
|
|
944
944
|
baseUrl;
|
|
945
945
|
constructor(e, t) {
|
|
@@ -972,7 +972,7 @@ class lt extends x {
|
|
|
972
972
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
|
-
class
|
|
975
|
+
class ht extends b {
|
|
976
976
|
http;
|
|
977
977
|
baseUrl;
|
|
978
978
|
constructor(e, t) {
|
|
@@ -1076,7 +1076,7 @@ class ut extends x {
|
|
|
1076
1076
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
class
|
|
1079
|
+
class ct extends b {
|
|
1080
1080
|
http;
|
|
1081
1081
|
baseUrl;
|
|
1082
1082
|
constructor(e, t) {
|
|
@@ -1532,7 +1532,7 @@ class ht extends x {
|
|
|
1532
1532
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
class
|
|
1535
|
+
class dt extends b {
|
|
1536
1536
|
http;
|
|
1537
1537
|
baseUrl;
|
|
1538
1538
|
constructor(e, t) {
|
|
@@ -1634,7 +1634,7 @@ class ct extends x {
|
|
|
1634
1634
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
class
|
|
1637
|
+
class ft extends b {
|
|
1638
1638
|
http;
|
|
1639
1639
|
baseUrl;
|
|
1640
1640
|
constructor(e, t) {
|
|
@@ -1690,7 +1690,7 @@ class dt extends x {
|
|
|
1690
1690
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
|
-
class
|
|
1693
|
+
class ye extends b {
|
|
1694
1694
|
http;
|
|
1695
1695
|
baseUrl;
|
|
1696
1696
|
constructor(e, t) {
|
|
@@ -2827,7 +2827,7 @@ class Ue extends x {
|
|
|
2827
2827
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
|
-
class
|
|
2830
|
+
class pt extends b {
|
|
2831
2831
|
http;
|
|
2832
2832
|
baseUrl;
|
|
2833
2833
|
constructor(e, t) {
|
|
@@ -2955,7 +2955,7 @@ class ft extends x {
|
|
|
2955
2955
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2956
2956
|
}
|
|
2957
2957
|
}
|
|
2958
|
-
class
|
|
2958
|
+
class mt extends b {
|
|
2959
2959
|
http;
|
|
2960
2960
|
baseUrl;
|
|
2961
2961
|
constructor(e, t) {
|
|
@@ -3224,8 +3224,8 @@ class pt extends x {
|
|
|
3224
3224
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3225
3225
|
}
|
|
3226
3226
|
}
|
|
3227
|
-
var
|
|
3228
|
-
class
|
|
3227
|
+
var Se = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(Se || {}), Te = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(Te || {}), _e = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(_e || {}), Pe = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(Pe || {}), we = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(we || {}), Oe = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(Oe || {}), Ae = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(Ae || {});
|
|
3228
|
+
class je extends Error {
|
|
3229
3229
|
message;
|
|
3230
3230
|
status;
|
|
3231
3231
|
response;
|
|
@@ -3240,21 +3240,21 @@ class Ae extends Error {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
3242
|
function a(i, e, t, n, r) {
|
|
3243
|
-
throw r ?? new
|
|
3243
|
+
throw r ?? new je(i, e, t, n, null);
|
|
3244
3244
|
}
|
|
3245
|
-
const
|
|
3245
|
+
const H = {
|
|
3246
3246
|
debug: 0,
|
|
3247
3247
|
info: 1,
|
|
3248
3248
|
warn: 2,
|
|
3249
3249
|
error: 3,
|
|
3250
3250
|
none: 4
|
|
3251
|
-
},
|
|
3251
|
+
}, Re = {
|
|
3252
3252
|
level: "warn",
|
|
3253
3253
|
prefix: "@vc-shell/framework",
|
|
3254
3254
|
enabled: !0
|
|
3255
3255
|
};
|
|
3256
3256
|
function U(i) {
|
|
3257
|
-
const e = { ...
|
|
3257
|
+
const e = { ...Re }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? H[r] >= H[e.level] : !1;
|
|
3258
3258
|
return {
|
|
3259
3259
|
/**
|
|
3260
3260
|
* Log debug messages (only in development)
|
|
@@ -3298,16 +3298,16 @@ function U(i) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
|
-
const
|
|
3301
|
+
const vt = U(), bt = {
|
|
3302
3302
|
core: U("core"),
|
|
3303
3303
|
ui: U("ui"),
|
|
3304
3304
|
shared: U("shared"),
|
|
3305
3305
|
plugins: U("plugins"),
|
|
3306
3306
|
services: U("services"),
|
|
3307
3307
|
composables: U("composables")
|
|
3308
|
-
},
|
|
3309
|
-
const i = new
|
|
3310
|
-
|
|
3308
|
+
}, D = U("use-external-provider"), Ce = "externalSignIn", Ie = () => {
|
|
3309
|
+
const i = new Ue(), e = he(
|
|
3310
|
+
Ce,
|
|
3311
3311
|
{},
|
|
3312
3312
|
{
|
|
3313
3313
|
listenToStorageChanges: !0,
|
|
@@ -3323,18 +3323,18 @@ const mt = U(), vt = {
|
|
|
3323
3323
|
const l = window.location.origin, h = window.location.pathname ?? t() ?? "/";
|
|
3324
3324
|
if (!o)
|
|
3325
3325
|
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3326
|
+
const v = new URL("/externalsignin", l);
|
|
3327
|
+
v.searchParams.set("authenticationType", o), v.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(v);
|
|
3328
3328
|
} catch (l) {
|
|
3329
|
-
throw
|
|
3329
|
+
throw D.error("External sign-in failed:", l), l;
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
3332
|
async function r(o) {
|
|
3333
3333
|
try {
|
|
3334
|
-
const l = window.location.origin, h = window.location.pathname ?? "/",
|
|
3335
|
-
|
|
3334
|
+
const l = window.location.origin, h = window.location.pathname ?? "/", v = new URL("/externalsignin/signout", l);
|
|
3335
|
+
v.searchParams.set("authenticationType", o), v.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(v);
|
|
3336
3336
|
} catch (l) {
|
|
3337
|
-
throw
|
|
3337
|
+
throw D.error("External sign-out failed:", l), l;
|
|
3338
3338
|
}
|
|
3339
3339
|
}
|
|
3340
3340
|
async function s() {
|
|
@@ -3342,7 +3342,7 @@ const mt = U(), vt = {
|
|
|
3342
3342
|
try {
|
|
3343
3343
|
o = await i.getExternalLoginProviders();
|
|
3344
3344
|
} catch (l) {
|
|
3345
|
-
|
|
3345
|
+
D.error("Failed to get external login providers:", l);
|
|
3346
3346
|
}
|
|
3347
3347
|
return o;
|
|
3348
3348
|
}
|
|
@@ -3353,25 +3353,25 @@ const mt = U(), vt = {
|
|
|
3353
3353
|
getProviders: s
|
|
3354
3354
|
};
|
|
3355
3355
|
};
|
|
3356
|
-
let
|
|
3357
|
-
function bt() {
|
|
3358
|
-
K = !0;
|
|
3359
|
-
}
|
|
3356
|
+
let W = !1;
|
|
3360
3357
|
function xt() {
|
|
3361
|
-
|
|
3358
|
+
W = !0;
|
|
3359
|
+
}
|
|
3360
|
+
function gt() {
|
|
3361
|
+
return W;
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3364
|
-
|
|
3363
|
+
function ze() {
|
|
3364
|
+
W = !1;
|
|
3365
3365
|
}
|
|
3366
|
-
class
|
|
3366
|
+
class Et extends Error {
|
|
3367
3367
|
constructor(e = "The session has expired, so this request was not completed.") {
|
|
3368
3368
|
super(e), this.name = "SessionExpiredError";
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
|
-
const
|
|
3372
|
-
function
|
|
3371
|
+
const V = "vc_auth_data", f = U("use-user");
|
|
3372
|
+
function $e() {
|
|
3373
3373
|
try {
|
|
3374
|
-
const i = localStorage.getItem(
|
|
3374
|
+
const i = localStorage.getItem(V);
|
|
3375
3375
|
if (i)
|
|
3376
3376
|
return JSON.parse(i);
|
|
3377
3377
|
} catch (i) {
|
|
@@ -3379,25 +3379,25 @@ function ze() {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
return null;
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3382
|
+
function Y(i) {
|
|
3383
3383
|
try {
|
|
3384
|
-
f.debug("storeAuthData - Saving:", i), localStorage.setItem(
|
|
3384
|
+
f.debug("storeAuthData - Saving:", i), localStorage.setItem(V, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
|
|
3385
3385
|
} catch (e) {
|
|
3386
3386
|
f.error("Failed to store auth data:", e);
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
function
|
|
3389
|
+
function Ne() {
|
|
3390
3390
|
try {
|
|
3391
|
-
localStorage.removeItem(
|
|
3391
|
+
localStorage.removeItem(V);
|
|
3392
3392
|
} catch (i) {
|
|
3393
3393
|
f.error("Failed to clear auth data:", i);
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function Ge(i) {
|
|
3397
3397
|
const e = i?.status;
|
|
3398
3398
|
return e === 401 || e === 403;
|
|
3399
3399
|
}
|
|
3400
|
-
async function
|
|
3400
|
+
async function X(i) {
|
|
3401
3401
|
try {
|
|
3402
3402
|
const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
|
|
3403
3403
|
method: "POST",
|
|
@@ -3426,64 +3426,64 @@ async function Y(i) {
|
|
|
3426
3426
|
return f.error("fetchToken - Exception:", e), null;
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
3429
|
-
function
|
|
3430
|
-
const i = _(!1), e = _(), t = _(null), { storage: n, signOut: r } =
|
|
3431
|
-
async function
|
|
3432
|
-
let
|
|
3429
|
+
function ke() {
|
|
3430
|
+
const i = _(!1), e = _(), t = _(null), { storage: n, signOut: r } = Ie(), s = new ye(), o = u(() => e.value?.userName != null), l = _(!1), h = u(() => l.value ? o.value ? "authenticated" : "anonymous" : "unknown");
|
|
3431
|
+
async function v(c, m) {
|
|
3432
|
+
let E = !1;
|
|
3433
3433
|
try {
|
|
3434
|
-
i.value = !0,
|
|
3434
|
+
i.value = !0, E = await s.validatePasswordResetToken(c, {
|
|
3435
3435
|
token: m
|
|
3436
3436
|
});
|
|
3437
3437
|
} catch {
|
|
3438
3438
|
} finally {
|
|
3439
3439
|
i.value = !1;
|
|
3440
3440
|
}
|
|
3441
|
-
return
|
|
3441
|
+
return E;
|
|
3442
3442
|
}
|
|
3443
|
-
async function
|
|
3443
|
+
async function N(c) {
|
|
3444
3444
|
return s.validatePassword(c);
|
|
3445
3445
|
}
|
|
3446
|
-
async function A(c, m,
|
|
3446
|
+
async function A(c, m, E) {
|
|
3447
3447
|
return s.resetPasswordByToken(c, {
|
|
3448
3448
|
newPassword: m,
|
|
3449
|
-
token:
|
|
3449
|
+
token: E
|
|
3450
3450
|
});
|
|
3451
3451
|
}
|
|
3452
|
-
async function j(c, m) {
|
|
3452
|
+
async function j(c, m, E = !1) {
|
|
3453
3453
|
f.debug("signIn - Entry point");
|
|
3454
3454
|
try {
|
|
3455
|
-
i.value = !0,
|
|
3456
|
-
const p = await s.login({ userName: c, password: m });
|
|
3455
|
+
i.value = !0, ze();
|
|
3456
|
+
const p = await s.login({ userName: c, password: m, rememberMe: E });
|
|
3457
3457
|
if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
|
|
3458
3458
|
return p;
|
|
3459
3459
|
f.debug("signIn - Requesting token...");
|
|
3460
|
-
const
|
|
3460
|
+
const I = await X({
|
|
3461
3461
|
grant_type: "password",
|
|
3462
3462
|
username: c,
|
|
3463
3463
|
password: m,
|
|
3464
3464
|
scope: "offline_access"
|
|
3465
3465
|
});
|
|
3466
|
-
|
|
3467
|
-
const
|
|
3468
|
-
if (
|
|
3469
|
-
return e.value =
|
|
3466
|
+
I && (t.value = I, Y(t.value), f.debug("signIn - Token saved:", t.value));
|
|
3467
|
+
const z = await s.getCurrentUser();
|
|
3468
|
+
if (z)
|
|
3469
|
+
return e.value = z, l.value = !0, p;
|
|
3470
3470
|
throw { succeeded: !1 };
|
|
3471
3471
|
} catch (p) {
|
|
3472
3472
|
f.error("signIn failed:", p);
|
|
3473
|
-
let
|
|
3473
|
+
let I = p.message;
|
|
3474
3474
|
if (p.response)
|
|
3475
3475
|
try {
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3476
|
+
const z = JSON.parse(p.response);
|
|
3477
|
+
I = z.errorDescription || z.errors?.[0]?.description || z.error || I;
|
|
3478
3478
|
} catch {
|
|
3479
3479
|
}
|
|
3480
|
-
return { succeeded: !1, error:
|
|
3480
|
+
return { succeeded: !1, error: I, status: p.status };
|
|
3481
3481
|
} finally {
|
|
3482
3482
|
i.value = !1;
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
async function R() {
|
|
3486
|
-
f.debug("signOut - Entry point"), e.value = void 0, l.value = !0,
|
|
3486
|
+
f.debug("signOut - Entry point"), e.value = void 0, l.value = !0, Ne(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
|
|
3487
3487
|
}
|
|
3488
3488
|
let T = null;
|
|
3489
3489
|
async function C() {
|
|
@@ -3494,7 +3494,7 @@ function Ge() {
|
|
|
3494
3494
|
const c = await s.getCurrentUser();
|
|
3495
3495
|
e.value = c, l.value = !0, performance.mark("vc:auth-done"), f.debug("User details loaded:", e.value);
|
|
3496
3496
|
} catch (c) {
|
|
3497
|
-
f.error("loadUser failed:", c),
|
|
3497
|
+
f.error("loadUser failed:", c), Ge(c) && (e.value = void 0, l.value = !0);
|
|
3498
3498
|
} finally {
|
|
3499
3499
|
i.value = !1, T = null;
|
|
3500
3500
|
}
|
|
@@ -3510,21 +3510,21 @@ function Ge() {
|
|
|
3510
3510
|
i.value = !1;
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
|
-
async function
|
|
3514
|
-
let
|
|
3513
|
+
async function G(c, m) {
|
|
3514
|
+
let E;
|
|
3515
3515
|
try {
|
|
3516
3516
|
i.value = !0;
|
|
3517
|
-
const
|
|
3517
|
+
const p = {
|
|
3518
3518
|
oldPassword: c,
|
|
3519
3519
|
newPassword: m
|
|
3520
3520
|
};
|
|
3521
|
-
|
|
3522
|
-
} catch (
|
|
3523
|
-
return { succeeded: !1, errors: [
|
|
3521
|
+
E = await s.changeCurrentUserPassword(p);
|
|
3522
|
+
} catch (p) {
|
|
3523
|
+
return { succeeded: !1, errors: [p.message] };
|
|
3524
3524
|
} finally {
|
|
3525
3525
|
i.value = !1;
|
|
3526
3526
|
}
|
|
3527
|
-
return
|
|
3527
|
+
return E;
|
|
3528
3528
|
}
|
|
3529
3529
|
async function d() {
|
|
3530
3530
|
let c = null;
|
|
@@ -3536,25 +3536,25 @@ function Ge() {
|
|
|
3536
3536
|
return c;
|
|
3537
3537
|
}
|
|
3538
3538
|
const y = 60 * 1e3;
|
|
3539
|
-
async function
|
|
3540
|
-
if (f.debug("getAccessToken - Entry point"), t.value || (t.value =
|
|
3539
|
+
async function x() {
|
|
3540
|
+
if (f.debug("getAccessToken - Entry point"), t.value || (t.value = $e()), !t.value)
|
|
3541
3541
|
return f.debug("getAccessToken - No auth data available"), null;
|
|
3542
|
-
const c = Date.now(), m = t.value.expires_at,
|
|
3542
|
+
const c = Date.now(), m = t.value.expires_at, E = m ? c >= m - y : !1;
|
|
3543
3543
|
if (f.debug("getAccessToken - Token status:", {
|
|
3544
3544
|
hasToken: !!t.value.access_token,
|
|
3545
3545
|
expiresAt: m ? new Date(m).toISOString() : "not set",
|
|
3546
3546
|
now: new Date(c).toISOString(),
|
|
3547
|
-
shouldRefresh:
|
|
3547
|
+
shouldRefresh: E,
|
|
3548
3548
|
hasRefreshToken: !!t.value.refresh_token
|
|
3549
|
-
}),
|
|
3549
|
+
}), E && t.value.refresh_token) {
|
|
3550
3550
|
f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3551
|
-
const
|
|
3551
|
+
const p = await X({
|
|
3552
3552
|
grant_type: "refresh_token",
|
|
3553
3553
|
refresh_token: t.value.refresh_token,
|
|
3554
3554
|
scope: "offline_access"
|
|
3555
3555
|
});
|
|
3556
|
-
|
|
3557
|
-
expiresAt:
|
|
3556
|
+
p ? (p.refresh_token = p.refresh_token ?? t.value.refresh_token, t.value = p, Y(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3557
|
+
expiresAt: p.expires_at ? new Date(p.expires_at).toISOString() : "not set"
|
|
3558
3558
|
})) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3559
3559
|
}
|
|
3560
3560
|
return t.value?.access_token ?? t.value?.token ?? null;
|
|
@@ -3568,17 +3568,17 @@ function Ge() {
|
|
|
3568
3568
|
loadUser: C,
|
|
3569
3569
|
signIn: j,
|
|
3570
3570
|
signOut: R,
|
|
3571
|
-
validateToken:
|
|
3572
|
-
validatePassword:
|
|
3571
|
+
validateToken: v,
|
|
3572
|
+
validatePassword: N,
|
|
3573
3573
|
resetPasswordByToken: A,
|
|
3574
3574
|
requestPasswordReset: w,
|
|
3575
|
-
changeUserPassword:
|
|
3575
|
+
changeUserPassword: G,
|
|
3576
3576
|
getLoginType: d,
|
|
3577
|
-
getAccessToken:
|
|
3577
|
+
getAccessToken: x
|
|
3578
3578
|
};
|
|
3579
3579
|
}
|
|
3580
|
-
const
|
|
3581
|
-
const i =
|
|
3580
|
+
const Je = ce(ke), Ut = () => {
|
|
3581
|
+
const i = Je();
|
|
3582
3582
|
return {
|
|
3583
3583
|
user: i.user,
|
|
3584
3584
|
loading: i.loading,
|
|
@@ -3588,12 +3588,12 @@ const ke = he(Ge), Et = () => {
|
|
|
3588
3588
|
signOut: i.signOut,
|
|
3589
3589
|
getAccessToken: i.getAccessToken
|
|
3590
3590
|
};
|
|
3591
|
-
},
|
|
3591
|
+
}, yt = Object.freeze({
|
|
3592
3592
|
push: () => {
|
|
3593
3593
|
},
|
|
3594
3594
|
replace: () => {
|
|
3595
3595
|
}
|
|
3596
|
-
}),
|
|
3596
|
+
}), St = Symbol("BladeStack"), Tt = Symbol("BladeMessaging"), _t = Symbol("BladeDescriptor"), Pt = Symbol("BladeMaximized"), wt = Symbol("BladeRenderingState"), Ot = Symbol("BladeData"), At = Symbol("BladeBanners"), jt = Symbol("BladeBackButton"), Rt = Symbol("NotificationStore"), Ct = Symbol("WidgetService"), It = Symbol("DashboardService"), zt = Symbol("MenuService"), $t = Symbol("SettingsMenuService"), Nt = Symbol("AppBarWidgetService"), Gt = Symbol("AppBarMobileButtonsService"), kt = Symbol("LanguageService"), Jt = Symbol("ToolbarService"), Ft = Symbol("DynamicModules"), Mt = Symbol("ModulesReady"), Dt = Symbol("ModulesLoadError"), Fe = Symbol("AppRootElement"), Bt = Symbol("EmbeddedMode"), Lt = Symbol("ShellIndicators"), Kt = Symbol("AiAgentService"), Wt = Symbol("IsMobile"), Vt = Symbol("IsDesktop"), qt = Symbol("IsPhone"), Ht = Symbol("IsTablet"), Yt = Symbol("IsTouch"), Xt = Symbol("BladeRoutes"), Zt = Symbol("InternalRoutes"), Qt = Symbol("CloseSettingsMenu"), er = Symbol("BladeContext"), tr = Symbol("WidgetScope"), rr = Symbol("BladeForm"), nr = Symbol("BladeLoading"), Me = /* @__PURE__ */ O({
|
|
3597
3597
|
__name: "vc-material-icon",
|
|
3598
3598
|
props: {
|
|
3599
3599
|
icon: {},
|
|
@@ -3604,19 +3604,19 @@ const ke = he(Ge), Et = () => {
|
|
|
3604
3604
|
},
|
|
3605
3605
|
setup(i) {
|
|
3606
3606
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3607
|
-
return
|
|
3608
|
-
}), (r, s) => (
|
|
3607
|
+
return F(() => {
|
|
3608
|
+
}), (r, s) => (g(), S("span", {
|
|
3609
3609
|
class: P([
|
|
3610
3610
|
"vc-material-icon",
|
|
3611
3611
|
"material-symbols-" + i.type,
|
|
3612
3612
|
!t.value && `vc-material-icon--${i.size}`,
|
|
3613
3613
|
i.variant ? `vc-material-icon--${i.variant}` : ""
|
|
3614
3614
|
]),
|
|
3615
|
-
style:
|
|
3615
|
+
style: $(n.value),
|
|
3616
3616
|
"aria-hidden": "true"
|
|
3617
|
-
},
|
|
3617
|
+
}, Q(i.icon), 7));
|
|
3618
3618
|
}
|
|
3619
|
-
}),
|
|
3619
|
+
}), De = /* @__PURE__ */ O({
|
|
3620
3620
|
__name: "vc-bootstrap-icon",
|
|
3621
3621
|
props: {
|
|
3622
3622
|
icon: {},
|
|
@@ -3626,21 +3626,21 @@ const ke = he(Ge), Et = () => {
|
|
|
3626
3626
|
},
|
|
3627
3627
|
setup(i) {
|
|
3628
3628
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3629
|
-
|
|
3629
|
+
F(() => {
|
|
3630
3630
|
});
|
|
3631
3631
|
const r = u(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
3632
|
-
return (s, o) => (
|
|
3632
|
+
return (s, o) => (g(), S("i", {
|
|
3633
3633
|
class: P([
|
|
3634
3634
|
"vc-bootstrap-icon",
|
|
3635
3635
|
!t.value && `vc-bootstrap-icon--${i.size}`,
|
|
3636
3636
|
r.value,
|
|
3637
3637
|
i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
|
|
3638
3638
|
]),
|
|
3639
|
-
style:
|
|
3639
|
+
style: $(n.value),
|
|
3640
3640
|
"aria-hidden": "true"
|
|
3641
3641
|
}, null, 6));
|
|
3642
3642
|
}
|
|
3643
|
-
}),
|
|
3643
|
+
}), Be = /* @__PURE__ */ O({
|
|
3644
3644
|
__name: "vc-lucide-icon",
|
|
3645
3645
|
props: {
|
|
3646
3646
|
icon: {},
|
|
@@ -3655,13 +3655,13 @@ const ke = he(Ge), Et = () => {
|
|
|
3655
3655
|
let l = t.icon;
|
|
3656
3656
|
return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((h) => h.charAt(0).toUpperCase() + h.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
|
|
3657
3657
|
}), s = u(() => {
|
|
3658
|
-
const l = r.value, h =
|
|
3659
|
-
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) :
|
|
3658
|
+
const l = r.value, h = de[l];
|
|
3659
|
+
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : Z(h);
|
|
3660
3660
|
}), o = u(() => n.value && t.customSize ? {
|
|
3661
3661
|
width: `${t.customSize}px`,
|
|
3662
3662
|
height: `${t.customSize}px`
|
|
3663
3663
|
} : {});
|
|
3664
|
-
return (l, h) => s.value ? (
|
|
3664
|
+
return (l, h) => s.value ? (g(), J(B(s.value), {
|
|
3665
3665
|
key: 0,
|
|
3666
3666
|
"stroke-width": t.strokeWidth,
|
|
3667
3667
|
class: P([
|
|
@@ -3669,16 +3669,16 @@ const ke = he(Ge), Et = () => {
|
|
|
3669
3669
|
!n.value && `vc-lucide-icon--${i.size}`,
|
|
3670
3670
|
i.variant ? `vc-lucide-icon--${i.variant}` : ""
|
|
3671
3671
|
]),
|
|
3672
|
-
style:
|
|
3672
|
+
style: $(o.value),
|
|
3673
3673
|
"aria-hidden": "true"
|
|
3674
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
3674
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (g(), S("span", {
|
|
3675
3675
|
key: 1,
|
|
3676
3676
|
class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
|
|
3677
3677
|
}, [...h[0] || (h[0] = [
|
|
3678
|
-
|
|
3678
|
+
L("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
3679
3679
|
])], 2));
|
|
3680
3680
|
}
|
|
3681
|
-
}),
|
|
3681
|
+
}), Le = /* @__PURE__ */ O({
|
|
3682
3682
|
__name: "vc-fontawesome-icon",
|
|
3683
3683
|
props: {
|
|
3684
3684
|
icon: {},
|
|
@@ -3688,21 +3688,21 @@ const ke = he(Ge), Et = () => {
|
|
|
3688
3688
|
},
|
|
3689
3689
|
setup(i) {
|
|
3690
3690
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3691
|
-
|
|
3691
|
+
F(() => {
|
|
3692
3692
|
});
|
|
3693
3693
|
const r = u(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
|
|
3694
|
-
return (s, o) => (
|
|
3694
|
+
return (s, o) => (g(), S("i", {
|
|
3695
3695
|
class: P([
|
|
3696
3696
|
"vc-fa-icon",
|
|
3697
3697
|
!t.value && `vc-fa-icon--${i.size}`,
|
|
3698
3698
|
r.value,
|
|
3699
3699
|
i.variant ? `vc-fa-icon--${i.variant}` : ""
|
|
3700
3700
|
]),
|
|
3701
|
-
style:
|
|
3701
|
+
style: $(n.value),
|
|
3702
3702
|
"aria-hidden": "true"
|
|
3703
3703
|
}, null, 6));
|
|
3704
3704
|
}
|
|
3705
|
-
}),
|
|
3705
|
+
}), Ke = ["xlink:href"], We = /* @__PURE__ */ O({
|
|
3706
3706
|
inheritAttrs: !1,
|
|
3707
3707
|
__name: "vc-svg-icon",
|
|
3708
3708
|
props: {
|
|
@@ -3727,18 +3727,18 @@ const ke = he(Ge), Et = () => {
|
|
|
3727
3727
|
const s = {};
|
|
3728
3728
|
return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
|
|
3729
3729
|
});
|
|
3730
|
-
return (s, o) => (
|
|
3730
|
+
return (s, o) => (g(), S("svg", k({
|
|
3731
3731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3732
3732
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
|
|
3733
3733
|
style: r.value
|
|
3734
3734
|
}, s.$attrs), [
|
|
3735
|
-
n.value ? (
|
|
3735
|
+
n.value ? (g(), S("use", {
|
|
3736
3736
|
key: 0,
|
|
3737
3737
|
"xlink:href": n.value
|
|
3738
|
-
}, null, 8,
|
|
3738
|
+
}, null, 8, Ke)) : K("", !0)
|
|
3739
3739
|
], 16));
|
|
3740
3740
|
}
|
|
3741
|
-
}),
|
|
3741
|
+
}), Ve = ["aria-hidden", "aria-label", "role"], sr = /* @__PURE__ */ O({
|
|
3742
3742
|
__name: "vc-icon",
|
|
3743
3743
|
props: {
|
|
3744
3744
|
icon: { default: "lucide-square" },
|
|
@@ -3751,7 +3751,7 @@ const ke = he(Ge), Et = () => {
|
|
|
3751
3751
|
},
|
|
3752
3752
|
setup(i) {
|
|
3753
3753
|
const e = i;
|
|
3754
|
-
|
|
3754
|
+
F(() => {
|
|
3755
3755
|
});
|
|
3756
3756
|
const t = {
|
|
3757
3757
|
xs: 12,
|
|
@@ -3771,7 +3771,7 @@ const ke = he(Ge), Et = () => {
|
|
|
3771
3771
|
return d.endsWith("Icon") ? d : `${d}Icon`;
|
|
3772
3772
|
}
|
|
3773
3773
|
return e.icon;
|
|
3774
|
-
}), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"),
|
|
3774
|
+
}), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), v = u(() => {
|
|
3775
3775
|
if (typeof e.icon != "string")
|
|
3776
3776
|
return !0;
|
|
3777
3777
|
if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
|
|
@@ -3779,29 +3779,29 @@ const ke = he(Ge), Et = () => {
|
|
|
3779
3779
|
if (l.value)
|
|
3780
3780
|
try {
|
|
3781
3781
|
const d = typeof r.value == "string" ? r.value : String(r.value);
|
|
3782
|
-
return
|
|
3782
|
+
return M(d) !== d;
|
|
3783
3783
|
} catch {
|
|
3784
3784
|
return !1;
|
|
3785
3785
|
}
|
|
3786
3786
|
try {
|
|
3787
|
-
return
|
|
3787
|
+
return M(e.icon) !== e.icon;
|
|
3788
3788
|
} catch {
|
|
3789
3789
|
return !1;
|
|
3790
3790
|
}
|
|
3791
|
-
}),
|
|
3791
|
+
}), N = u(() => {
|
|
3792
3792
|
if (typeof e.icon != "string")
|
|
3793
|
-
return
|
|
3793
|
+
return Z(e.icon);
|
|
3794
3794
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
3795
3795
|
return "i";
|
|
3796
3796
|
try {
|
|
3797
|
-
const d = typeof r.value == "string" ? r.value : String(r.value), y =
|
|
3797
|
+
const d = typeof r.value == "string" ? r.value : String(r.value), y = M(d);
|
|
3798
3798
|
return y !== d ? y : "i";
|
|
3799
3799
|
} catch {
|
|
3800
3800
|
return "i";
|
|
3801
3801
|
}
|
|
3802
|
-
}), A = u(() => s.value ?
|
|
3802
|
+
}), A = u(() => s.value ? Me : o.value ? De : l.value ? Be : h.value ? Le : w.value ? We : v.value ? N.value : "i"), j = u(() => e.customSize ? e.customSize : t[e.size]), R = u(() => {
|
|
3803
3803
|
const d = {};
|
|
3804
|
-
return
|
|
3804
|
+
return v.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
|
|
3805
3805
|
}), T = u(() => e.customSize ? {
|
|
3806
3806
|
fontSize: `${e.customSize}px`
|
|
3807
3807
|
} : {}), C = u(() => s.value ? {
|
|
@@ -3834,18 +3834,18 @@ const ke = he(Ge), Et = () => {
|
|
|
3834
3834
|
customSize: e.customSize
|
|
3835
3835
|
// Set custom size without scaling
|
|
3836
3836
|
} : w.value ? {
|
|
3837
|
-
icon:
|
|
3837
|
+
icon: G.value,
|
|
3838
3838
|
size: e.size,
|
|
3839
3839
|
variant: e.variant,
|
|
3840
3840
|
customSize: e.customSize,
|
|
3841
3841
|
basePath: e.basePath
|
|
3842
|
-
} :
|
|
3842
|
+
} : v.value ? {
|
|
3843
3843
|
size: e.size,
|
|
3844
3844
|
width: j.value,
|
|
3845
3845
|
height: j.value,
|
|
3846
3846
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
3847
|
-
} : {}), w = u(() => n.value === "svg"),
|
|
3848
|
-
return (d, y) => i.useContainer ? (
|
|
3847
|
+
} : {}), w = u(() => n.value === "svg"), G = u(() => !w.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
3848
|
+
return (d, y) => i.useContainer ? (g(), S("div", k({
|
|
3849
3849
|
key: 0,
|
|
3850
3850
|
class: ["vc-icon-container", `vc-icon-container--${i.size}`],
|
|
3851
3851
|
style: T.value,
|
|
@@ -3853,22 +3853,22 @@ const ke = he(Ge), Et = () => {
|
|
|
3853
3853
|
"aria-label": i.ariaLabel || void 0,
|
|
3854
3854
|
role: i.ariaLabel ? "img" : void 0
|
|
3855
3855
|
}, d.$attrs), [
|
|
3856
|
-
(
|
|
3856
|
+
(g(), J(B(A.value), k({
|
|
3857
3857
|
class: [
|
|
3858
3858
|
"vc-icon",
|
|
3859
3859
|
`vc-icon--${i.size}`,
|
|
3860
3860
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3861
|
-
!
|
|
3861
|
+
!v.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3862
3862
|
],
|
|
3863
3863
|
style: R.value
|
|
3864
3864
|
}, C.value), null, 16, ["class", "style"]))
|
|
3865
|
-
], 16,
|
|
3865
|
+
], 16, Ve)) : (g(), J(B(A.value), k({
|
|
3866
3866
|
key: 1,
|
|
3867
3867
|
class: [
|
|
3868
3868
|
"vc-icon",
|
|
3869
3869
|
`vc-icon--${i.size}`,
|
|
3870
3870
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3871
|
-
!
|
|
3871
|
+
!v.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3872
3872
|
],
|
|
3873
3873
|
style: R.value,
|
|
3874
3874
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
@@ -3877,11 +3877,11 @@ const ke = he(Ge), Et = () => {
|
|
|
3877
3877
|
}, { ...C.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
3878
3878
|
}
|
|
3879
3879
|
});
|
|
3880
|
-
function
|
|
3881
|
-
const e =
|
|
3880
|
+
function qe(i = {}) {
|
|
3881
|
+
const e = ee(Fe, void 0);
|
|
3882
3882
|
return {
|
|
3883
3883
|
teleportTarget: u(() => {
|
|
3884
|
-
const n = i.to ?
|
|
3884
|
+
const n = i.to ? te(i.to) : void 0;
|
|
3885
3885
|
if (n)
|
|
3886
3886
|
return n;
|
|
3887
3887
|
if (e?.value)
|
|
@@ -3891,7 +3891,7 @@ function Ve(i = {}) {
|
|
|
3891
3891
|
})
|
|
3892
3892
|
};
|
|
3893
3893
|
}
|
|
3894
|
-
const
|
|
3894
|
+
const He = ["aria-describedby"], ar = /* @__PURE__ */ O({
|
|
3895
3895
|
__name: "vc-tooltip",
|
|
3896
3896
|
props: {
|
|
3897
3897
|
placement: { default: "bottom" },
|
|
@@ -3906,34 +3906,34 @@ const qe = ["aria-describedby"], sr = /* @__PURE__ */ O({
|
|
|
3906
3906
|
disabled: { type: Boolean, default: !1 }
|
|
3907
3907
|
},
|
|
3908
3908
|
setup(i) {
|
|
3909
|
-
const e = i, t = `vc-tooltip-${
|
|
3909
|
+
const e = i, t = `vc-tooltip-${re()}`, n = _(!1), r = _(null), s = _(null), o = _(null), l = _(null);
|
|
3910
3910
|
let h = null;
|
|
3911
|
-
const { teleportTarget:
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3911
|
+
const { teleportTarget: v } = qe(), N = u(() => {
|
|
3912
|
+
const x = [
|
|
3913
|
+
me({
|
|
3914
3914
|
mainAxis: e.offset?.mainAxis ?? 8,
|
|
3915
3915
|
crossAxis: e.offset?.crossAxis ?? 0
|
|
3916
3916
|
}),
|
|
3917
|
-
|
|
3918
|
-
|
|
3917
|
+
ve({ padding: 8 }),
|
|
3918
|
+
be({ padding: 8 })
|
|
3919
3919
|
];
|
|
3920
|
-
return e.arrow &&
|
|
3920
|
+
return e.arrow && x.push(fe({ element: o, padding: 4 })), x;
|
|
3921
3921
|
}), {
|
|
3922
3922
|
floatingStyles: A,
|
|
3923
3923
|
placement: j,
|
|
3924
3924
|
middlewareData: R
|
|
3925
|
-
} =
|
|
3925
|
+
} = pe(r, s, {
|
|
3926
3926
|
placement: u(() => e.placement),
|
|
3927
|
-
whileElementsMounted:
|
|
3928
|
-
middleware:
|
|
3927
|
+
whileElementsMounted: xe,
|
|
3928
|
+
middleware: N
|
|
3929
3929
|
}), T = u(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), C = u(() => ({
|
|
3930
3930
|
...A.value,
|
|
3931
3931
|
maxWidth: T.value
|
|
3932
|
-
})), w = u(() => j.value.split("-")[0]),
|
|
3933
|
-
const
|
|
3934
|
-
if (!
|
|
3932
|
+
})), w = u(() => j.value.split("-")[0]), G = u(() => {
|
|
3933
|
+
const x = R.value.arrow;
|
|
3934
|
+
if (!x) return {};
|
|
3935
3935
|
const c = {};
|
|
3936
|
-
|
|
3936
|
+
x.x != null && (c.left = `${x.x}px`), x.y != null && (c.top = `${x.y}px`);
|
|
3937
3937
|
const m = { top: "bottom", right: "left", bottom: "top", left: "right" }[w.value];
|
|
3938
3938
|
return c[m] = `${-8 / 2}px`, c;
|
|
3939
3939
|
}), d = () => {
|
|
@@ -3943,9 +3943,9 @@ const qe = ["aria-describedby"], sr = /* @__PURE__ */ O({
|
|
|
3943
3943
|
}, y = () => {
|
|
3944
3944
|
h && (clearTimeout(h), h = null), n.value = !1;
|
|
3945
3945
|
};
|
|
3946
|
-
return
|
|
3946
|
+
return ne(() => {
|
|
3947
3947
|
h && (clearTimeout(h), h = null);
|
|
3948
|
-
}), (
|
|
3948
|
+
}), (x, c) => (g(), S("div", {
|
|
3949
3949
|
ref_key: "target",
|
|
3950
3950
|
ref: l,
|
|
3951
3951
|
class: "vc-tooltip",
|
|
@@ -3953,41 +3953,41 @@ const qe = ["aria-describedby"], sr = /* @__PURE__ */ O({
|
|
|
3953
3953
|
onMouseleave: y,
|
|
3954
3954
|
onFocusin: d,
|
|
3955
3955
|
onFocusout: y,
|
|
3956
|
-
onKeydown:
|
|
3956
|
+
onKeydown: se(y, ["escape"])
|
|
3957
3957
|
}, [
|
|
3958
|
-
|
|
3958
|
+
L("div", {
|
|
3959
3959
|
ref_key: "tooltipCompRef",
|
|
3960
3960
|
ref: r,
|
|
3961
3961
|
class: "vc-tooltip__trigger",
|
|
3962
3962
|
"aria-describedby": n.value ? t : void 0
|
|
3963
3963
|
}, [
|
|
3964
|
-
|
|
3965
|
-
], 8,
|
|
3966
|
-
(
|
|
3967
|
-
|
|
3968
|
-
default:
|
|
3969
|
-
n.value && !i.disabled &&
|
|
3964
|
+
q(x.$slots, "default")
|
|
3965
|
+
], 8, He),
|
|
3966
|
+
(g(), J(ae, { to: ie(v) }, [
|
|
3967
|
+
oe(le, { name: "vc-tooltip-fade" }, {
|
|
3968
|
+
default: ue(() => [
|
|
3969
|
+
n.value && !i.disabled && x.$slots.tooltip ? (g(), S("div", {
|
|
3970
3970
|
key: 0,
|
|
3971
3971
|
id: t,
|
|
3972
3972
|
ref_key: "tooltipRef",
|
|
3973
3973
|
ref: s,
|
|
3974
3974
|
role: "tooltip",
|
|
3975
|
-
style:
|
|
3975
|
+
style: $(C.value),
|
|
3976
3976
|
class: P(["vc-tooltip__wrapper", `vc-tooltip__wrapper--${i.variant}`])
|
|
3977
3977
|
}, [
|
|
3978
|
-
i.arrow ? (
|
|
3978
|
+
i.arrow ? (g(), S("div", {
|
|
3979
3979
|
key: 0,
|
|
3980
3980
|
ref_key: "arrowRef",
|
|
3981
3981
|
ref: o,
|
|
3982
3982
|
class: P(["vc-tooltip__arrow", `vc-tooltip__arrow--${i.variant}`]),
|
|
3983
|
-
style:
|
|
3984
|
-
}, null, 6)) :
|
|
3985
|
-
|
|
3983
|
+
style: $(G.value)
|
|
3984
|
+
}, null, 6)) : K("", !0),
|
|
3985
|
+
L("div", {
|
|
3986
3986
|
class: P(["vc-tooltip__body", `vc-tooltip__body--${i.variant}`])
|
|
3987
3987
|
}, [
|
|
3988
|
-
|
|
3988
|
+
q(x.$slots, "tooltip")
|
|
3989
3989
|
], 2)
|
|
3990
|
-
], 6)) :
|
|
3990
|
+
], 6)) : K("", !0)
|
|
3991
3991
|
]),
|
|
3992
3992
|
_: 3
|
|
3993
3993
|
})
|
|
@@ -3996,80 +3996,80 @@ const qe = ["aria-describedby"], sr = /* @__PURE__ */ O({
|
|
|
3996
3996
|
}
|
|
3997
3997
|
});
|
|
3998
3998
|
export {
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
3999
|
+
Ft as $,
|
|
4000
|
+
Kt as A,
|
|
4001
|
+
_t as B,
|
|
4002
|
+
Gt as C,
|
|
4003
|
+
rt as D,
|
|
4004
|
+
Bt as E,
|
|
4005
|
+
Se as F,
|
|
4006
|
+
Fe as G,
|
|
4007
|
+
nt as H,
|
|
4008
|
+
qt as I,
|
|
4009
|
+
b as J,
|
|
4010
|
+
st as K,
|
|
4011
|
+
kt as L,
|
|
4012
|
+
Mt as M,
|
|
4013
|
+
yt as N,
|
|
4014
|
+
jt as O,
|
|
4015
|
+
nr as P,
|
|
4016
|
+
Pt as Q,
|
|
4017
|
+
wt as R,
|
|
4018
|
+
pt as S,
|
|
4019
|
+
Jt as T,
|
|
4020
|
+
at as U,
|
|
4021
|
+
Qt as V,
|
|
4022
|
+
Ct as W,
|
|
4023
|
+
It as X,
|
|
4024
|
+
it as Y,
|
|
4025
|
+
ot as Z,
|
|
4026
|
+
sr as _,
|
|
4027
|
+
ar as a,
|
|
4028
|
+
lt as a0,
|
|
4029
|
+
Te as a1,
|
|
4030
|
+
_e as a2,
|
|
4031
|
+
Ue as a3,
|
|
4032
|
+
Zt as a4,
|
|
4033
|
+
ut as a5,
|
|
4034
|
+
Pe as a6,
|
|
4035
|
+
ht as a7,
|
|
4036
|
+
ct as a8,
|
|
4037
|
+
Dt as a9,
|
|
4038
|
+
dt as aa,
|
|
4039
|
+
we as ab,
|
|
4040
|
+
ft as ac,
|
|
4041
|
+
Oe as ad,
|
|
4042
|
+
mt as ae,
|
|
4043
|
+
Lt as af,
|
|
4044
|
+
Ae as ag,
|
|
4045
|
+
ke as ah,
|
|
4046
|
+
Je as ai,
|
|
4047
|
+
Ge as aj,
|
|
4048
|
+
vt as ak,
|
|
4049
|
+
bt as al,
|
|
4050
|
+
St as b,
|
|
4051
4051
|
U as c,
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4052
|
+
Tt as d,
|
|
4053
|
+
At as e,
|
|
4054
|
+
Ot as f,
|
|
4055
|
+
Ut as g,
|
|
4056
|
+
tr as h,
|
|
4057
|
+
gt as i,
|
|
4058
|
+
er as j,
|
|
4059
|
+
ye as k,
|
|
4060
|
+
Et as l,
|
|
4061
|
+
je as m,
|
|
4062
|
+
xt as n,
|
|
4063
|
+
Ie as o,
|
|
4064
|
+
rr as p,
|
|
4065
|
+
Ht as q,
|
|
4066
|
+
Wt as r,
|
|
4067
|
+
Vt as s,
|
|
4068
|
+
Yt as t,
|
|
4069
|
+
qe as u,
|
|
4070
|
+
Xt as v,
|
|
4071
|
+
Nt as w,
|
|
4072
|
+
zt as x,
|
|
4073
|
+
$t as y,
|
|
4074
|
+
Rt as z
|
|
4075
4075
|
};
|