@vc-shell/framework 2.6.3-rc.0-pr381.e44adf9 → 2.6.3-rc.0-pr380.ae2f7ea
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-CeicZwqW.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cs47PW6F.js} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CeicZwqW.js.map → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cs47PW6F.js.map} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Di_7qCFv.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CQ4PNnTu.js} +346 -340
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Di_7qCFv.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CQ4PNnTu.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-SLAzCa01.js → VcScheduler.vue_vue_type_script_setup_true_lang-Bh8CNJsW.js} +3715 -3691
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Bh8CNJsW.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-Cts7Z-jQ.js → VcScheduler.vue_vue_type_style_index_0_lang-ClYksC9b.js} +699 -690
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-ClYksC9b.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CWIBUWHJ.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-CXrhWmOi.js} +58 -58
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CWIBUWHJ.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-CXrhWmOi.js.map} +1 -1
- package/dist/chunks/{index-CzfVdRiW.js → index-DyZe677u.js} +2 -2
- package/dist/chunks/{index-CzfVdRiW.js.map → index-DyZe677u.js.map} +1 -1
- package/dist/core/composables/useUser/index.d.ts +16 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +4 -2
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/utilities/authGuard.d.ts +28 -0
- package/dist/core/utilities/authGuard.d.ts.map +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +993 -996
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/de.js +2 -4
- package/dist/locales/en.js +2 -4
- package/dist/locales/en.json +2 -4
- package/dist/locales/types.d.ts +1 -3
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -1
- package/dist/ui/composables/useScrollArrows.d.ts +7 -0
- package/dist/ui/composables/useScrollArrows.d.ts.map +1 -1
- package/dist/ui/index.js +34 -33
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-SLAzCa01.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Cts7Z-jQ.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref 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 J, openBlock as E, createElementBlock as S, normalizeStyle as z, normalizeClass as P, toDisplayString as Z, markRaw as X, createBlock as k, resolveDynamicComponent as D, createElementVNode as B, mergeProps as G, createCommentVNode as L, resolveComponent as F, inject as Q, toValue as ee, useId as te, onBeforeUnmount as re, withKeys as ne, renderSlot as V, Teleport as se, unref as ae, createVNode as ie, Transition as oe, withCtx as le } from "vue";
|
|
2
|
+
import { a as ue } from "./vendor-vueuse-core-BwXFv1rx.js";
|
|
3
|
+
import { j as he } from "./vendor-vueuse-shared-BPTQMqzb.js";
|
|
4
|
+
import { L as ce } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
5
|
+
import { a as de, u as fe } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
6
|
+
import { o as pe, f as me, s as ve, b as be } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
7
|
+
const xe = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
8
|
+
function ge(i, e) {
|
|
9
|
+
if (typeof e == "string" && xe.test(e)) {
|
|
10
10
|
const t = new Date(e);
|
|
11
11
|
if (!isNaN(t.getTime()))
|
|
12
12
|
return t;
|
|
@@ -20,7 +20,7 @@ class x {
|
|
|
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 = ge;
|
|
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 Ee extends x {
|
|
38
38
|
http;
|
|
39
39
|
baseUrl;
|
|
40
40
|
constructor(e, t) {
|
|
@@ -141,7 +141,7 @@ class ge 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 tt extends x {
|
|
145
145
|
http;
|
|
146
146
|
baseUrl;
|
|
147
147
|
constructor(e, t) {
|
|
@@ -210,7 +210,7 @@ class Qe 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 rt extends x {
|
|
214
214
|
http;
|
|
215
215
|
baseUrl;
|
|
216
216
|
constructor(e, t) {
|
|
@@ -240,7 +240,7 @@ class et 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 nt extends x {
|
|
244
244
|
http;
|
|
245
245
|
baseUrl;
|
|
246
246
|
constructor(e, t) {
|
|
@@ -382,7 +382,7 @@ class tt 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 st extends x {
|
|
386
386
|
http;
|
|
387
387
|
baseUrl;
|
|
388
388
|
constructor(e, t) {
|
|
@@ -583,7 +583,7 @@ class rt 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 at extends x {
|
|
587
587
|
http;
|
|
588
588
|
baseUrl;
|
|
589
589
|
constructor(e, t) {
|
|
@@ -612,7 +612,7 @@ class nt 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 it extends x {
|
|
616
616
|
http;
|
|
617
617
|
baseUrl;
|
|
618
618
|
constructor(e, t) {
|
|
@@ -664,7 +664,7 @@ class st 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 ot extends x {
|
|
668
668
|
http;
|
|
669
669
|
baseUrl;
|
|
670
670
|
constructor(e, t) {
|
|
@@ -939,7 +939,7 @@ class at 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 lt extends x {
|
|
943
943
|
http;
|
|
944
944
|
baseUrl;
|
|
945
945
|
constructor(e, t) {
|
|
@@ -972,7 +972,7 @@ class it 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 ut extends x {
|
|
976
976
|
http;
|
|
977
977
|
baseUrl;
|
|
978
978
|
constructor(e, t) {
|
|
@@ -1076,7 +1076,7 @@ class ot 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 ht extends x {
|
|
1080
1080
|
http;
|
|
1081
1081
|
baseUrl;
|
|
1082
1082
|
constructor(e, t) {
|
|
@@ -1532,7 +1532,7 @@ class lt 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 ct extends x {
|
|
1536
1536
|
http;
|
|
1537
1537
|
baseUrl;
|
|
1538
1538
|
constructor(e, t) {
|
|
@@ -1634,7 +1634,7 @@ class ut 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 dt extends x {
|
|
1638
1638
|
http;
|
|
1639
1639
|
baseUrl;
|
|
1640
1640
|
constructor(e, t) {
|
|
@@ -1690,7 +1690,7 @@ class ht 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 Ue extends x {
|
|
1694
1694
|
http;
|
|
1695
1695
|
baseUrl;
|
|
1696
1696
|
constructor(e, t) {
|
|
@@ -2827,7 +2827,7 @@ class Ee 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 ft extends x {
|
|
2831
2831
|
http;
|
|
2832
2832
|
baseUrl;
|
|
2833
2833
|
constructor(e, t) {
|
|
@@ -2955,7 +2955,7 @@ class ct 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 pt extends x {
|
|
2959
2959
|
http;
|
|
2960
2960
|
baseUrl;
|
|
2961
2961
|
constructor(e, t) {
|
|
@@ -3224,8 +3224,8 @@ class dt 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 ye = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(ye || {}), Se = /* @__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))(Se || {}), Te = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(Te || {}), _e = /* @__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))(_e || {}), Pe = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(Pe || {}), we = /* @__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))(we || {}), Oe = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(Oe || {});
|
|
3228
|
+
class Ae extends Error {
|
|
3229
3229
|
message;
|
|
3230
3230
|
status;
|
|
3231
3231
|
response;
|
|
@@ -3240,21 +3240,21 @@ class Oe extends Error {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
3242
|
function a(i, e, t, n, r) {
|
|
3243
|
-
throw r ?? new
|
|
3243
|
+
throw r ?? new Ae(i, e, t, n, null);
|
|
3244
3244
|
}
|
|
3245
|
-
const
|
|
3245
|
+
const q = {
|
|
3246
3246
|
debug: 0,
|
|
3247
3247
|
info: 1,
|
|
3248
3248
|
warn: 2,
|
|
3249
3249
|
error: 3,
|
|
3250
3250
|
none: 4
|
|
3251
|
-
},
|
|
3251
|
+
}, je = {
|
|
3252
3252
|
level: "warn",
|
|
3253
3253
|
prefix: "@vc-shell/framework",
|
|
3254
3254
|
enabled: !0
|
|
3255
3255
|
};
|
|
3256
|
-
function
|
|
3257
|
-
const e = { ...
|
|
3256
|
+
function U(i) {
|
|
3257
|
+
const e = { ...je }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? q[r] >= q[e.level] : !1;
|
|
3258
3258
|
return {
|
|
3259
3259
|
/**
|
|
3260
3260
|
* Log debug messages (only in development)
|
|
@@ -3283,7 +3283,7 @@ function E(i) {
|
|
|
3283
3283
|
/**
|
|
3284
3284
|
* Create a child logger with additional context
|
|
3285
3285
|
*/
|
|
3286
|
-
child: (r) =>
|
|
3286
|
+
child: (r) => U(i ? `${i}:${r}` : r),
|
|
3287
3287
|
/**
|
|
3288
3288
|
* Set the log level for this logger instance
|
|
3289
3289
|
*/
|
|
@@ -3298,16 +3298,16 @@ function E(i) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
|
-
const
|
|
3302
|
-
core:
|
|
3303
|
-
ui:
|
|
3304
|
-
shared:
|
|
3305
|
-
plugins:
|
|
3306
|
-
services:
|
|
3307
|
-
composables:
|
|
3308
|
-
},
|
|
3309
|
-
const i = new
|
|
3310
|
-
|
|
3301
|
+
const mt = U(), vt = {
|
|
3302
|
+
core: U("core"),
|
|
3303
|
+
ui: U("ui"),
|
|
3304
|
+
shared: U("shared"),
|
|
3305
|
+
plugins: U("plugins"),
|
|
3306
|
+
services: U("services"),
|
|
3307
|
+
composables: U("composables")
|
|
3308
|
+
}, M = U("use-external-provider"), Re = "externalSignIn", Ce = () => {
|
|
3309
|
+
const i = new Ee(), e = ue(
|
|
3310
|
+
Re,
|
|
3311
3311
|
{},
|
|
3312
3312
|
{
|
|
3313
3313
|
listenToStorageChanges: !0,
|
|
@@ -3326,7 +3326,7 @@ const ft = E(), pt = {
|
|
|
3326
3326
|
const b = new URL("/externalsignin", l);
|
|
3327
3327
|
b.searchParams.set("authenticationType", o), b.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(b);
|
|
3328
3328
|
} catch (l) {
|
|
3329
|
-
throw
|
|
3329
|
+
throw M.error("External sign-in failed:", l), l;
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
3332
|
async function r(o) {
|
|
@@ -3334,7 +3334,7 @@ const ft = E(), pt = {
|
|
|
3334
3334
|
const l = window.location.origin, h = window.location.pathname ?? "/", b = new URL("/externalsignin/signout", l);
|
|
3335
3335
|
b.searchParams.set("authenticationType", o), b.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(b);
|
|
3336
3336
|
} catch (l) {
|
|
3337
|
-
throw
|
|
3337
|
+
throw M.error("External sign-out failed:", l), l;
|
|
3338
3338
|
}
|
|
3339
3339
|
}
|
|
3340
3340
|
async function s() {
|
|
@@ -3342,7 +3342,7 @@ const ft = E(), pt = {
|
|
|
3342
3342
|
try {
|
|
3343
3343
|
o = await i.getExternalLoginProviders();
|
|
3344
3344
|
} catch (l) {
|
|
3345
|
-
|
|
3345
|
+
M.error("Failed to get external login providers:", l);
|
|
3346
3346
|
}
|
|
3347
3347
|
return o;
|
|
3348
3348
|
}
|
|
@@ -3353,47 +3353,51 @@ const ft = E(), pt = {
|
|
|
3353
3353
|
getProviders: s
|
|
3354
3354
|
};
|
|
3355
3355
|
};
|
|
3356
|
-
let
|
|
3357
|
-
function
|
|
3358
|
-
|
|
3356
|
+
let K = !1;
|
|
3357
|
+
function bt() {
|
|
3358
|
+
K = !0;
|
|
3359
3359
|
}
|
|
3360
|
-
function
|
|
3361
|
-
return
|
|
3360
|
+
function xt() {
|
|
3361
|
+
return K;
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3364
|
-
|
|
3363
|
+
function Ie() {
|
|
3364
|
+
K = !1;
|
|
3365
3365
|
}
|
|
3366
|
-
class
|
|
3366
|
+
class gt 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 W = "vc_auth_data", f = U("use-user");
|
|
3372
|
+
function ze() {
|
|
3373
3373
|
try {
|
|
3374
|
-
const i = localStorage.getItem(
|
|
3374
|
+
const i = localStorage.getItem(W);
|
|
3375
3375
|
if (i)
|
|
3376
3376
|
return JSON.parse(i);
|
|
3377
3377
|
} catch (i) {
|
|
3378
|
-
|
|
3378
|
+
f.error("Failed to read auth data from storage:", i);
|
|
3379
3379
|
}
|
|
3380
3380
|
return null;
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3382
|
+
function H(i) {
|
|
3383
3383
|
try {
|
|
3384
|
-
|
|
3384
|
+
f.debug("storeAuthData - Saving:", i), localStorage.setItem(W, 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 $e() {
|
|
3390
3390
|
try {
|
|
3391
|
-
localStorage.removeItem(
|
|
3391
|
+
localStorage.removeItem(W);
|
|
3392
3392
|
} catch (i) {
|
|
3393
|
-
|
|
3393
|
+
f.error("Failed to clear auth data:", i);
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
|
|
3396
|
+
function Ne(i) {
|
|
3397
|
+
const e = i?.status;
|
|
3398
|
+
return e === 401 || e === 403;
|
|
3399
|
+
}
|
|
3400
|
+
async function Y(i) {
|
|
3397
3401
|
try {
|
|
3398
3402
|
const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
|
|
3399
3403
|
method: "POST",
|
|
@@ -3404,13 +3408,13 @@ async function H(i) {
|
|
|
3404
3408
|
});
|
|
3405
3409
|
if (!t.ok) {
|
|
3406
3410
|
const h = await t.text();
|
|
3407
|
-
return
|
|
3411
|
+
return f.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
|
|
3408
3412
|
}
|
|
3409
3413
|
const n = await t.json();
|
|
3410
|
-
|
|
3414
|
+
f.debug("fetchToken - Response:", n);
|
|
3411
3415
|
const r = n.access_token, s = n.refresh_token, o = n.expires_in;
|
|
3412
3416
|
if (n.error || !r)
|
|
3413
|
-
return
|
|
3417
|
+
return f.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
|
|
3414
3418
|
const l = o ? Date.now() + o * 1e3 : null;
|
|
3415
3419
|
return {
|
|
3416
3420
|
token: r,
|
|
@@ -3419,139 +3423,139 @@ async function H(i) {
|
|
|
3419
3423
|
expires_at: l
|
|
3420
3424
|
};
|
|
3421
3425
|
} catch (e) {
|
|
3422
|
-
return
|
|
3426
|
+
return f.error("fetchToken - Exception:", e), null;
|
|
3423
3427
|
}
|
|
3424
3428
|
}
|
|
3425
|
-
function
|
|
3426
|
-
const i =
|
|
3427
|
-
async function
|
|
3428
|
-
let
|
|
3429
|
+
function Ge() {
|
|
3430
|
+
const i = _(!1), e = _(), t = _(null), { storage: n, signOut: r } = Ce(), s = new Ue(), o = u(() => e.value?.userName != null), l = _(!1), h = u(() => l.value ? o.value ? "authenticated" : "anonymous" : "unknown");
|
|
3431
|
+
async function b(c, m) {
|
|
3432
|
+
let p = !1;
|
|
3429
3433
|
try {
|
|
3430
|
-
i.value = !0,
|
|
3431
|
-
token:
|
|
3434
|
+
i.value = !0, p = await s.validatePasswordResetToken(c, {
|
|
3435
|
+
token: m
|
|
3432
3436
|
});
|
|
3433
3437
|
} catch {
|
|
3434
3438
|
} finally {
|
|
3435
3439
|
i.value = !1;
|
|
3436
3440
|
}
|
|
3437
|
-
return
|
|
3441
|
+
return p;
|
|
3438
3442
|
}
|
|
3439
|
-
async function
|
|
3443
|
+
async function $(c) {
|
|
3440
3444
|
return s.validatePassword(c);
|
|
3441
3445
|
}
|
|
3442
|
-
async function
|
|
3446
|
+
async function A(c, m, p) {
|
|
3443
3447
|
return s.resetPasswordByToken(c, {
|
|
3444
|
-
newPassword:
|
|
3445
|
-
token:
|
|
3448
|
+
newPassword: m,
|
|
3449
|
+
token: p
|
|
3446
3450
|
});
|
|
3447
3451
|
}
|
|
3448
|
-
async function
|
|
3449
|
-
|
|
3452
|
+
async function j(c, m) {
|
|
3453
|
+
f.debug("signIn - Entry point");
|
|
3450
3454
|
try {
|
|
3451
|
-
i.value = !0,
|
|
3452
|
-
const
|
|
3453
|
-
if (
|
|
3454
|
-
return
|
|
3455
|
-
|
|
3456
|
-
const
|
|
3455
|
+
i.value = !0, Ie();
|
|
3456
|
+
const p = await s.login({ userName: c, password: m });
|
|
3457
|
+
if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
|
|
3458
|
+
return p;
|
|
3459
|
+
f.debug("signIn - Requesting token...");
|
|
3460
|
+
const v = await Y({
|
|
3457
3461
|
grant_type: "password",
|
|
3458
3462
|
username: c,
|
|
3459
|
-
password:
|
|
3463
|
+
password: m,
|
|
3460
3464
|
scope: "offline_access"
|
|
3461
3465
|
});
|
|
3462
|
-
|
|
3463
|
-
const
|
|
3464
|
-
if (
|
|
3465
|
-
return e.value =
|
|
3466
|
+
v && (t.value = v, H(t.value), f.debug("signIn - Token saved:", t.value));
|
|
3467
|
+
const I = await s.getCurrentUser();
|
|
3468
|
+
if (I)
|
|
3469
|
+
return e.value = I, l.value = !0, p;
|
|
3466
3470
|
throw { succeeded: !1 };
|
|
3467
|
-
} catch (
|
|
3468
|
-
|
|
3469
|
-
let
|
|
3470
|
-
if (
|
|
3471
|
+
} catch (p) {
|
|
3472
|
+
f.error("signIn failed:", p);
|
|
3473
|
+
let v = p.message;
|
|
3474
|
+
if (p.response)
|
|
3471
3475
|
try {
|
|
3472
|
-
const
|
|
3473
|
-
|
|
3476
|
+
const I = JSON.parse(p.response);
|
|
3477
|
+
v = I.errorDescription || I.errors?.[0]?.description || I.error || v;
|
|
3474
3478
|
} catch {
|
|
3475
3479
|
}
|
|
3476
|
-
return { succeeded: !1, error:
|
|
3480
|
+
return { succeeded: !1, error: v, status: p.status };
|
|
3477
3481
|
} finally {
|
|
3478
3482
|
i.value = !1;
|
|
3479
3483
|
}
|
|
3480
3484
|
}
|
|
3481
|
-
async function
|
|
3482
|
-
|
|
3485
|
+
async function R() {
|
|
3486
|
+
f.debug("signOut - Entry point"), e.value = void 0, l.value = !0, $e(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
|
|
3483
3487
|
}
|
|
3484
|
-
let
|
|
3485
|
-
async function
|
|
3486
|
-
return
|
|
3487
|
-
|
|
3488
|
+
let T = null;
|
|
3489
|
+
async function C() {
|
|
3490
|
+
return T || (T = (async () => {
|
|
3491
|
+
f.debug("loadUser - Entry point");
|
|
3488
3492
|
try {
|
|
3489
3493
|
i.value = !0, performance.mark("vc:auth-start");
|
|
3490
|
-
const
|
|
3491
|
-
e.value = c, performance.mark("vc:auth-done"),
|
|
3494
|
+
const c = await s.getCurrentUser();
|
|
3495
|
+
e.value = c, l.value = !0, performance.mark("vc:auth-done"), f.debug("User details loaded:", e.value);
|
|
3492
3496
|
} catch (c) {
|
|
3493
|
-
|
|
3497
|
+
f.error("loadUser failed:", c), Ne(c) && (e.value = void 0, l.value = !0);
|
|
3494
3498
|
} finally {
|
|
3495
|
-
i.value = !1,
|
|
3499
|
+
i.value = !1, T = null;
|
|
3496
3500
|
}
|
|
3497
3501
|
return { ...e.value };
|
|
3498
|
-
})(),
|
|
3502
|
+
})(), T);
|
|
3499
3503
|
}
|
|
3500
|
-
async function
|
|
3504
|
+
async function w(c) {
|
|
3501
3505
|
try {
|
|
3502
3506
|
return i.value = !0, await s.requestPasswordReset(c), { succeeded: !0 };
|
|
3503
|
-
} catch (
|
|
3504
|
-
return { succeeded: !1, error:
|
|
3507
|
+
} catch (m) {
|
|
3508
|
+
return { succeeded: !1, error: m };
|
|
3505
3509
|
} finally {
|
|
3506
3510
|
i.value = !1;
|
|
3507
3511
|
}
|
|
3508
3512
|
}
|
|
3509
|
-
async function
|
|
3510
|
-
let
|
|
3513
|
+
async function N(c, m) {
|
|
3514
|
+
let p;
|
|
3511
3515
|
try {
|
|
3512
3516
|
i.value = !0;
|
|
3513
|
-
const
|
|
3517
|
+
const v = {
|
|
3514
3518
|
oldPassword: c,
|
|
3515
|
-
newPassword:
|
|
3519
|
+
newPassword: m
|
|
3516
3520
|
};
|
|
3517
|
-
|
|
3518
|
-
} catch (
|
|
3519
|
-
return { succeeded: !1, errors: [
|
|
3521
|
+
p = await s.changeCurrentUserPassword(v);
|
|
3522
|
+
} catch (v) {
|
|
3523
|
+
return { succeeded: !1, errors: [v.message] };
|
|
3520
3524
|
} finally {
|
|
3521
3525
|
i.value = !1;
|
|
3522
3526
|
}
|
|
3523
|
-
return
|
|
3527
|
+
return p;
|
|
3524
3528
|
}
|
|
3525
|
-
async function
|
|
3529
|
+
async function d() {
|
|
3526
3530
|
let c = null;
|
|
3527
3531
|
try {
|
|
3528
3532
|
c = await s.getLoginTypes();
|
|
3529
|
-
} catch (
|
|
3530
|
-
throw
|
|
3533
|
+
} catch (m) {
|
|
3534
|
+
throw f.error("getLoginType failed:", m), m;
|
|
3531
3535
|
}
|
|
3532
3536
|
return c;
|
|
3533
3537
|
}
|
|
3534
|
-
const
|
|
3535
|
-
async function
|
|
3536
|
-
if (
|
|
3537
|
-
return
|
|
3538
|
-
const c = Date.now(),
|
|
3539
|
-
if (
|
|
3538
|
+
const y = 60 * 1e3;
|
|
3539
|
+
async function g() {
|
|
3540
|
+
if (f.debug("getAccessToken - Entry point"), t.value || (t.value = ze()), !t.value)
|
|
3541
|
+
return f.debug("getAccessToken - No auth data available"), null;
|
|
3542
|
+
const c = Date.now(), m = t.value.expires_at, p = m ? c >= m - y : !1;
|
|
3543
|
+
if (f.debug("getAccessToken - Token status:", {
|
|
3540
3544
|
hasToken: !!t.value.access_token,
|
|
3541
|
-
expiresAt:
|
|
3545
|
+
expiresAt: m ? new Date(m).toISOString() : "not set",
|
|
3542
3546
|
now: new Date(c).toISOString(),
|
|
3543
|
-
shouldRefresh:
|
|
3547
|
+
shouldRefresh: p,
|
|
3544
3548
|
hasRefreshToken: !!t.value.refresh_token
|
|
3545
|
-
}),
|
|
3546
|
-
|
|
3547
|
-
const
|
|
3549
|
+
}), p && t.value.refresh_token) {
|
|
3550
|
+
f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3551
|
+
const v = await Y({
|
|
3548
3552
|
grant_type: "refresh_token",
|
|
3549
3553
|
refresh_token: t.value.refresh_token,
|
|
3550
3554
|
scope: "offline_access"
|
|
3551
3555
|
});
|
|
3552
|
-
|
|
3553
|
-
expiresAt:
|
|
3554
|
-
})) :
|
|
3556
|
+
v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, H(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3557
|
+
expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
|
|
3558
|
+
})) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3555
3559
|
}
|
|
3556
3560
|
return t.value?.access_token ?? t.value?.token ?? null;
|
|
3557
3561
|
}
|
|
@@ -3560,20 +3564,21 @@ function $e() {
|
|
|
3560
3564
|
loading: u(() => i.value),
|
|
3561
3565
|
isAdministrator: u(() => e.value?.isAdministrator),
|
|
3562
3566
|
isAuthenticated: o,
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3567
|
+
authState: h,
|
|
3568
|
+
loadUser: C,
|
|
3569
|
+
signIn: j,
|
|
3570
|
+
signOut: R,
|
|
3571
|
+
validateToken: b,
|
|
3572
|
+
validatePassword: $,
|
|
3573
|
+
resetPasswordByToken: A,
|
|
3574
|
+
requestPasswordReset: w,
|
|
3575
|
+
changeUserPassword: N,
|
|
3576
|
+
getLoginType: d,
|
|
3577
|
+
getAccessToken: g
|
|
3573
3578
|
};
|
|
3574
3579
|
}
|
|
3575
|
-
const
|
|
3576
|
-
const i =
|
|
3580
|
+
const ke = he(Ge), Et = () => {
|
|
3581
|
+
const i = ke();
|
|
3577
3582
|
return {
|
|
3578
3583
|
user: i.user,
|
|
3579
3584
|
loading: i.loading,
|
|
@@ -3583,12 +3588,12 @@ const Ne = ue($e), xt = () => {
|
|
|
3583
3588
|
signOut: i.signOut,
|
|
3584
3589
|
getAccessToken: i.getAccessToken
|
|
3585
3590
|
};
|
|
3586
|
-
},
|
|
3591
|
+
}, Ut = Object.freeze({
|
|
3587
3592
|
push: () => {
|
|
3588
3593
|
},
|
|
3589
3594
|
replace: () => {
|
|
3590
3595
|
}
|
|
3591
|
-
}),
|
|
3596
|
+
}), yt = Symbol("BladeStack"), St = Symbol("BladeMessaging"), Tt = Symbol("BladeDescriptor"), _t = Symbol("BladeMaximized"), Pt = Symbol("BladeRenderingState"), wt = Symbol("BladeData"), Ot = Symbol("BladeBanners"), At = Symbol("BladeBackButton"), jt = Symbol("NotificationStore"), Rt = Symbol("WidgetService"), Ct = Symbol("DashboardService"), It = Symbol("MenuService"), zt = Symbol("SettingsMenuService"), $t = Symbol("AppBarWidgetService"), Nt = Symbol("AppBarMobileButtonsService"), Gt = Symbol("LanguageService"), kt = Symbol("ToolbarService"), Jt = Symbol("DynamicModules"), Ft = Symbol("ModulesReady"), Mt = Symbol("ModulesLoadError"), Je = Symbol("AppRootElement"), Dt = Symbol("EmbeddedMode"), Bt = Symbol("ShellIndicators"), Lt = Symbol("AiAgentService"), Kt = Symbol("IsMobile"), Wt = Symbol("IsDesktop"), Vt = Symbol("IsPhone"), qt = Symbol("IsTablet"), Ht = Symbol("IsTouch"), Yt = Symbol("BladeRoutes"), Xt = Symbol("InternalRoutes"), Zt = Symbol("CloseSettingsMenu"), Qt = Symbol("BladeContext"), er = Symbol("WidgetScope"), tr = Symbol("BladeForm"), rr = Symbol("BladeLoading"), Fe = /* @__PURE__ */ O({
|
|
3592
3597
|
__name: "vc-material-icon",
|
|
3593
3598
|
props: {
|
|
3594
3599
|
icon: {},
|
|
@@ -3599,19 +3604,19 @@ const Ne = ue($e), xt = () => {
|
|
|
3599
3604
|
},
|
|
3600
3605
|
setup(i) {
|
|
3601
3606
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3602
|
-
return
|
|
3603
|
-
}), (r, s) => (
|
|
3604
|
-
class:
|
|
3607
|
+
return J(() => {
|
|
3608
|
+
}), (r, s) => (E(), S("span", {
|
|
3609
|
+
class: P([
|
|
3605
3610
|
"vc-material-icon",
|
|
3606
3611
|
"material-symbols-" + i.type,
|
|
3607
3612
|
!t.value && `vc-material-icon--${i.size}`,
|
|
3608
3613
|
i.variant ? `vc-material-icon--${i.variant}` : ""
|
|
3609
3614
|
]),
|
|
3610
|
-
style:
|
|
3615
|
+
style: z(n.value),
|
|
3611
3616
|
"aria-hidden": "true"
|
|
3612
|
-
},
|
|
3617
|
+
}, Z(i.icon), 7));
|
|
3613
3618
|
}
|
|
3614
|
-
}),
|
|
3619
|
+
}), Me = /* @__PURE__ */ O({
|
|
3615
3620
|
__name: "vc-bootstrap-icon",
|
|
3616
3621
|
props: {
|
|
3617
3622
|
icon: {},
|
|
@@ -3621,21 +3626,21 @@ const Ne = ue($e), xt = () => {
|
|
|
3621
3626
|
},
|
|
3622
3627
|
setup(i) {
|
|
3623
3628
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3624
|
-
|
|
3629
|
+
J(() => {
|
|
3625
3630
|
});
|
|
3626
3631
|
const r = u(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
3627
|
-
return (s, o) => (
|
|
3628
|
-
class:
|
|
3632
|
+
return (s, o) => (E(), S("i", {
|
|
3633
|
+
class: P([
|
|
3629
3634
|
"vc-bootstrap-icon",
|
|
3630
3635
|
!t.value && `vc-bootstrap-icon--${i.size}`,
|
|
3631
3636
|
r.value,
|
|
3632
3637
|
i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
|
|
3633
3638
|
]),
|
|
3634
|
-
style:
|
|
3639
|
+
style: z(n.value),
|
|
3635
3640
|
"aria-hidden": "true"
|
|
3636
3641
|
}, null, 6));
|
|
3637
3642
|
}
|
|
3638
|
-
}),
|
|
3643
|
+
}), De = /* @__PURE__ */ O({
|
|
3639
3644
|
__name: "vc-lucide-icon",
|
|
3640
3645
|
props: {
|
|
3641
3646
|
icon: {},
|
|
@@ -3645,35 +3650,35 @@ const Ne = ue($e), xt = () => {
|
|
|
3645
3650
|
customSize: {}
|
|
3646
3651
|
},
|
|
3647
3652
|
setup(i) {
|
|
3648
|
-
const e =
|
|
3653
|
+
const e = U("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
|
|
3649
3654
|
if (!t.icon) return "HelpCircleIcon";
|
|
3650
3655
|
let l = t.icon;
|
|
3651
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";
|
|
3652
3657
|
}), s = u(() => {
|
|
3653
|
-
const l = r.value, h =
|
|
3654
|
-
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) :
|
|
3658
|
+
const l = r.value, h = ce[l];
|
|
3659
|
+
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : X(h);
|
|
3655
3660
|
}), o = u(() => n.value && t.customSize ? {
|
|
3656
3661
|
width: `${t.customSize}px`,
|
|
3657
3662
|
height: `${t.customSize}px`
|
|
3658
3663
|
} : {});
|
|
3659
|
-
return (l, h) => s.value ? (
|
|
3664
|
+
return (l, h) => s.value ? (E(), k(D(s.value), {
|
|
3660
3665
|
key: 0,
|
|
3661
3666
|
"stroke-width": t.strokeWidth,
|
|
3662
|
-
class:
|
|
3667
|
+
class: P([
|
|
3663
3668
|
"vc-lucide-icon",
|
|
3664
3669
|
!n.value && `vc-lucide-icon--${i.size}`,
|
|
3665
3670
|
i.variant ? `vc-lucide-icon--${i.variant}` : ""
|
|
3666
3671
|
]),
|
|
3667
|
-
style:
|
|
3672
|
+
style: z(o.value),
|
|
3668
3673
|
"aria-hidden": "true"
|
|
3669
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
3674
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (E(), S("span", {
|
|
3670
3675
|
key: 1,
|
|
3671
|
-
class:
|
|
3676
|
+
class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
|
|
3672
3677
|
}, [...h[0] || (h[0] = [
|
|
3673
|
-
|
|
3678
|
+
B("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
3674
3679
|
])], 2));
|
|
3675
3680
|
}
|
|
3676
|
-
}),
|
|
3681
|
+
}), Be = /* @__PURE__ */ O({
|
|
3677
3682
|
__name: "vc-fontawesome-icon",
|
|
3678
3683
|
props: {
|
|
3679
3684
|
icon: {},
|
|
@@ -3683,21 +3688,21 @@ const Ne = ue($e), xt = () => {
|
|
|
3683
3688
|
},
|
|
3684
3689
|
setup(i) {
|
|
3685
3690
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3686
|
-
|
|
3691
|
+
J(() => {
|
|
3687
3692
|
});
|
|
3688
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}`);
|
|
3689
|
-
return (s, o) => (
|
|
3690
|
-
class:
|
|
3694
|
+
return (s, o) => (E(), S("i", {
|
|
3695
|
+
class: P([
|
|
3691
3696
|
"vc-fa-icon",
|
|
3692
3697
|
!t.value && `vc-fa-icon--${i.size}`,
|
|
3693
3698
|
r.value,
|
|
3694
3699
|
i.variant ? `vc-fa-icon--${i.variant}` : ""
|
|
3695
3700
|
]),
|
|
3696
|
-
style:
|
|
3701
|
+
style: z(n.value),
|
|
3697
3702
|
"aria-hidden": "true"
|
|
3698
3703
|
}, null, 6));
|
|
3699
3704
|
}
|
|
3700
|
-
}),
|
|
3705
|
+
}), Le = ["xlink:href"], Ke = /* @__PURE__ */ O({
|
|
3701
3706
|
inheritAttrs: !1,
|
|
3702
3707
|
__name: "vc-svg-icon",
|
|
3703
3708
|
props: {
|
|
@@ -3722,18 +3727,18 @@ const Ne = ue($e), xt = () => {
|
|
|
3722
3727
|
const s = {};
|
|
3723
3728
|
return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
|
|
3724
3729
|
});
|
|
3725
|
-
return (s, o) => (
|
|
3730
|
+
return (s, o) => (E(), S("svg", G({
|
|
3726
3731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3727
3732
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
|
|
3728
3733
|
style: r.value
|
|
3729
3734
|
}, s.$attrs), [
|
|
3730
|
-
n.value ? (
|
|
3735
|
+
n.value ? (E(), S("use", {
|
|
3731
3736
|
key: 0,
|
|
3732
3737
|
"xlink:href": n.value
|
|
3733
|
-
}, null, 8,
|
|
3738
|
+
}, null, 8, Le)) : L("", !0)
|
|
3734
3739
|
], 16));
|
|
3735
3740
|
}
|
|
3736
|
-
}),
|
|
3741
|
+
}), We = ["aria-hidden", "aria-label", "role"], nr = /* @__PURE__ */ O({
|
|
3737
3742
|
__name: "vc-icon",
|
|
3738
3743
|
props: {
|
|
3739
3744
|
icon: { default: "lucide-square" },
|
|
@@ -3746,7 +3751,7 @@ const Ne = ue($e), xt = () => {
|
|
|
3746
3751
|
},
|
|
3747
3752
|
setup(i) {
|
|
3748
3753
|
const e = i;
|
|
3749
|
-
|
|
3754
|
+
J(() => {
|
|
3750
3755
|
});
|
|
3751
3756
|
const t = {
|
|
3752
3757
|
xs: 12,
|
|
@@ -3762,8 +3767,8 @@ const Ne = ue($e), xt = () => {
|
|
|
3762
3767
|
if (n.value === "material" && e.icon.startsWith("material-"))
|
|
3763
3768
|
return e.icon.replace(/^material-/, "");
|
|
3764
3769
|
if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
3765
|
-
const
|
|
3766
|
-
return
|
|
3770
|
+
const d = e.icon.replace(/^lucide-/, "");
|
|
3771
|
+
return d.endsWith("Icon") ? d : `${d}Icon`;
|
|
3767
3772
|
}
|
|
3768
3773
|
return e.icon;
|
|
3769
3774
|
}), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), b = u(() => {
|
|
@@ -3773,33 +3778,33 @@ const Ne = ue($e), xt = () => {
|
|
|
3773
3778
|
return !1;
|
|
3774
3779
|
if (l.value)
|
|
3775
3780
|
try {
|
|
3776
|
-
const
|
|
3777
|
-
return
|
|
3781
|
+
const d = typeof r.value == "string" ? r.value : String(r.value);
|
|
3782
|
+
return F(d) !== d;
|
|
3778
3783
|
} catch {
|
|
3779
3784
|
return !1;
|
|
3780
3785
|
}
|
|
3781
3786
|
try {
|
|
3782
|
-
return
|
|
3787
|
+
return F(e.icon) !== e.icon;
|
|
3783
3788
|
} catch {
|
|
3784
3789
|
return !1;
|
|
3785
3790
|
}
|
|
3786
|
-
}),
|
|
3791
|
+
}), $ = u(() => {
|
|
3787
3792
|
if (typeof e.icon != "string")
|
|
3788
|
-
return
|
|
3793
|
+
return X(e.icon);
|
|
3789
3794
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
3790
3795
|
return "i";
|
|
3791
3796
|
try {
|
|
3792
|
-
const
|
|
3793
|
-
return
|
|
3797
|
+
const d = typeof r.value == "string" ? r.value : String(r.value), y = F(d);
|
|
3798
|
+
return y !== d ? y : "i";
|
|
3794
3799
|
} catch {
|
|
3795
3800
|
return "i";
|
|
3796
3801
|
}
|
|
3797
|
-
}),
|
|
3798
|
-
const
|
|
3799
|
-
return b.value && e.customSize && (
|
|
3800
|
-
}),
|
|
3802
|
+
}), A = u(() => s.value ? Fe : o.value ? Me : l.value ? De : h.value ? Be : w.value ? Ke : b.value ? $.value : "i"), j = u(() => e.customSize ? e.customSize : t[e.size]), R = u(() => {
|
|
3803
|
+
const d = {};
|
|
3804
|
+
return b.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
|
|
3805
|
+
}), T = u(() => e.customSize ? {
|
|
3801
3806
|
fontSize: `${e.customSize}px`
|
|
3802
|
-
} : {}),
|
|
3807
|
+
} : {}), C = u(() => s.value ? {
|
|
3803
3808
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
3804
3809
|
size: e.size,
|
|
3805
3810
|
variant: e.variant,
|
|
@@ -3828,36 +3833,36 @@ const Ne = ue($e), xt = () => {
|
|
|
3828
3833
|
variant: e.variant,
|
|
3829
3834
|
customSize: e.customSize
|
|
3830
3835
|
// Set custom size without scaling
|
|
3831
|
-
} :
|
|
3832
|
-
icon:
|
|
3836
|
+
} : w.value ? {
|
|
3837
|
+
icon: N.value,
|
|
3833
3838
|
size: e.size,
|
|
3834
3839
|
variant: e.variant,
|
|
3835
3840
|
customSize: e.customSize,
|
|
3836
3841
|
basePath: e.basePath
|
|
3837
3842
|
} : b.value ? {
|
|
3838
3843
|
size: e.size,
|
|
3839
|
-
width:
|
|
3840
|
-
height:
|
|
3844
|
+
width: j.value,
|
|
3845
|
+
height: j.value,
|
|
3841
3846
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
3842
|
-
} : {}),
|
|
3843
|
-
return (
|
|
3847
|
+
} : {}), w = u(() => n.value === "svg"), N = u(() => !w.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
3848
|
+
return (d, y) => i.useContainer ? (E(), S("div", G({
|
|
3844
3849
|
key: 0,
|
|
3845
3850
|
class: ["vc-icon-container", `vc-icon-container--${i.size}`],
|
|
3846
|
-
style:
|
|
3851
|
+
style: T.value,
|
|
3847
3852
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
3848
3853
|
"aria-label": i.ariaLabel || void 0,
|
|
3849
3854
|
role: i.ariaLabel ? "img" : void 0
|
|
3850
|
-
},
|
|
3851
|
-
(
|
|
3855
|
+
}, d.$attrs), [
|
|
3856
|
+
(E(), k(D(A.value), G({
|
|
3852
3857
|
class: [
|
|
3853
3858
|
"vc-icon",
|
|
3854
3859
|
`vc-icon--${i.size}`,
|
|
3855
3860
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3856
3861
|
!b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3857
3862
|
],
|
|
3858
|
-
style:
|
|
3859
|
-
},
|
|
3860
|
-
], 16,
|
|
3863
|
+
style: R.value
|
|
3864
|
+
}, C.value), null, 16, ["class", "style"]))
|
|
3865
|
+
], 16, We)) : (E(), k(D(A.value), G({
|
|
3861
3866
|
key: 1,
|
|
3862
3867
|
class: [
|
|
3863
3868
|
"vc-icon",
|
|
@@ -3865,18 +3870,18 @@ const Ne = ue($e), xt = () => {
|
|
|
3865
3870
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3866
3871
|
!b.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3867
3872
|
],
|
|
3868
|
-
style:
|
|
3873
|
+
style: R.value,
|
|
3869
3874
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
3870
3875
|
"aria-label": i.ariaLabel || void 0,
|
|
3871
3876
|
role: i.ariaLabel ? "img" : void 0
|
|
3872
|
-
}, { ...
|
|
3877
|
+
}, { ...C.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
3873
3878
|
}
|
|
3874
3879
|
});
|
|
3875
|
-
function
|
|
3876
|
-
const e =
|
|
3880
|
+
function Ve(i = {}) {
|
|
3881
|
+
const e = Q(Je, void 0);
|
|
3877
3882
|
return {
|
|
3878
3883
|
teleportTarget: u(() => {
|
|
3879
|
-
const n = i.to ?
|
|
3884
|
+
const n = i.to ? ee(i.to) : void 0;
|
|
3880
3885
|
if (n)
|
|
3881
3886
|
return n;
|
|
3882
3887
|
if (e?.value)
|
|
@@ -3886,7 +3891,7 @@ function Ke(i = {}) {
|
|
|
3886
3891
|
})
|
|
3887
3892
|
};
|
|
3888
3893
|
}
|
|
3889
|
-
const
|
|
3894
|
+
const qe = ["aria-describedby"], sr = /* @__PURE__ */ O({
|
|
3890
3895
|
__name: "vc-tooltip",
|
|
3891
3896
|
props: {
|
|
3892
3897
|
placement: { default: "bottom" },
|
|
@@ -3901,88 +3906,88 @@ const We = ["aria-describedby"], rr = /* @__PURE__ */ P({
|
|
|
3901
3906
|
disabled: { type: Boolean, default: !1 }
|
|
3902
3907
|
},
|
|
3903
3908
|
setup(i) {
|
|
3904
|
-
const e = i, t = `vc-tooltip-${
|
|
3909
|
+
const e = i, t = `vc-tooltip-${te()}`, n = _(!1), r = _(null), s = _(null), o = _(null), l = _(null);
|
|
3905
3910
|
let h = null;
|
|
3906
|
-
const { teleportTarget: b } =
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3911
|
+
const { teleportTarget: b } = Ve(), $ = u(() => {
|
|
3912
|
+
const g = [
|
|
3913
|
+
pe({
|
|
3909
3914
|
mainAxis: e.offset?.mainAxis ?? 8,
|
|
3910
3915
|
crossAxis: e.offset?.crossAxis ?? 0
|
|
3911
3916
|
}),
|
|
3912
|
-
|
|
3913
|
-
|
|
3917
|
+
me({ padding: 8 }),
|
|
3918
|
+
ve({ padding: 8 })
|
|
3914
3919
|
];
|
|
3915
|
-
return e.arrow &&
|
|
3920
|
+
return e.arrow && g.push(de({ element: o, padding: 4 })), g;
|
|
3916
3921
|
}), {
|
|
3917
|
-
floatingStyles:
|
|
3918
|
-
placement:
|
|
3919
|
-
middlewareData:
|
|
3920
|
-
} =
|
|
3922
|
+
floatingStyles: A,
|
|
3923
|
+
placement: j,
|
|
3924
|
+
middlewareData: R
|
|
3925
|
+
} = fe(r, s, {
|
|
3921
3926
|
placement: u(() => e.placement),
|
|
3922
|
-
whileElementsMounted:
|
|
3923
|
-
middleware:
|
|
3924
|
-
}),
|
|
3925
|
-
...
|
|
3926
|
-
maxWidth:
|
|
3927
|
-
})),
|
|
3928
|
-
const
|
|
3929
|
-
if (!
|
|
3930
|
-
const
|
|
3931
|
-
|
|
3932
|
-
const m = { top: "bottom", right: "left", bottom: "top", left: "right" }[
|
|
3933
|
-
return
|
|
3934
|
-
}),
|
|
3927
|
+
whileElementsMounted: be,
|
|
3928
|
+
middleware: $
|
|
3929
|
+
}), T = u(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), C = u(() => ({
|
|
3930
|
+
...A.value,
|
|
3931
|
+
maxWidth: T.value
|
|
3932
|
+
})), w = u(() => j.value.split("-")[0]), N = u(() => {
|
|
3933
|
+
const g = R.value.arrow;
|
|
3934
|
+
if (!g) return {};
|
|
3935
|
+
const c = {};
|
|
3936
|
+
g.x != null && (c.left = `${g.x}px`), g.y != null && (c.top = `${g.y}px`);
|
|
3937
|
+
const m = { top: "bottom", right: "left", bottom: "top", left: "right" }[w.value];
|
|
3938
|
+
return c[m] = `${-8 / 2}px`, c;
|
|
3939
|
+
}), d = () => {
|
|
3935
3940
|
e.disabled || (e.delay > 0 ? h = setTimeout(() => {
|
|
3936
3941
|
n.value = !0;
|
|
3937
3942
|
}, e.delay) : n.value = !0);
|
|
3938
|
-
},
|
|
3943
|
+
}, y = () => {
|
|
3939
3944
|
h && (clearTimeout(h), h = null), n.value = !1;
|
|
3940
3945
|
};
|
|
3941
|
-
return
|
|
3946
|
+
return re(() => {
|
|
3942
3947
|
h && (clearTimeout(h), h = null);
|
|
3943
|
-
}), (
|
|
3948
|
+
}), (g, c) => (E(), S("div", {
|
|
3944
3949
|
ref_key: "target",
|
|
3945
3950
|
ref: l,
|
|
3946
3951
|
class: "vc-tooltip",
|
|
3947
|
-
onMouseenter:
|
|
3948
|
-
onMouseleave:
|
|
3949
|
-
onFocusin:
|
|
3950
|
-
onFocusout:
|
|
3951
|
-
onKeydown:
|
|
3952
|
+
onMouseenter: d,
|
|
3953
|
+
onMouseleave: y,
|
|
3954
|
+
onFocusin: d,
|
|
3955
|
+
onFocusout: y,
|
|
3956
|
+
onKeydown: ne(y, ["escape"])
|
|
3952
3957
|
}, [
|
|
3953
|
-
|
|
3958
|
+
B("div", {
|
|
3954
3959
|
ref_key: "tooltipCompRef",
|
|
3955
3960
|
ref: r,
|
|
3956
3961
|
class: "vc-tooltip__trigger",
|
|
3957
3962
|
"aria-describedby": n.value ? t : void 0
|
|
3958
3963
|
}, [
|
|
3959
|
-
|
|
3960
|
-
], 8,
|
|
3961
|
-
(
|
|
3962
|
-
|
|
3963
|
-
default:
|
|
3964
|
-
n.value && !i.disabled &&
|
|
3964
|
+
V(g.$slots, "default")
|
|
3965
|
+
], 8, qe),
|
|
3966
|
+
(E(), k(se, { to: ae(b) }, [
|
|
3967
|
+
ie(oe, { name: "vc-tooltip-fade" }, {
|
|
3968
|
+
default: le(() => [
|
|
3969
|
+
n.value && !i.disabled && g.$slots.tooltip ? (E(), S("div", {
|
|
3965
3970
|
key: 0,
|
|
3966
3971
|
id: t,
|
|
3967
3972
|
ref_key: "tooltipRef",
|
|
3968
3973
|
ref: s,
|
|
3969
3974
|
role: "tooltip",
|
|
3970
|
-
style: C
|
|
3971
|
-
class:
|
|
3975
|
+
style: z(C.value),
|
|
3976
|
+
class: P(["vc-tooltip__wrapper", `vc-tooltip__wrapper--${i.variant}`])
|
|
3972
3977
|
}, [
|
|
3973
|
-
i.arrow ? (
|
|
3978
|
+
i.arrow ? (E(), S("div", {
|
|
3974
3979
|
key: 0,
|
|
3975
3980
|
ref_key: "arrowRef",
|
|
3976
3981
|
ref: o,
|
|
3977
|
-
class:
|
|
3978
|
-
style:
|
|
3979
|
-
}, null, 6)) :
|
|
3980
|
-
|
|
3981
|
-
class:
|
|
3982
|
+
class: P(["vc-tooltip__arrow", `vc-tooltip__arrow--${i.variant}`]),
|
|
3983
|
+
style: z(N.value)
|
|
3984
|
+
}, null, 6)) : L("", !0),
|
|
3985
|
+
B("div", {
|
|
3986
|
+
class: P(["vc-tooltip__body", `vc-tooltip__body--${i.variant}`])
|
|
3982
3987
|
}, [
|
|
3983
|
-
|
|
3988
|
+
V(g.$slots, "tooltip")
|
|
3984
3989
|
], 2)
|
|
3985
|
-
], 6)) :
|
|
3990
|
+
], 6)) : L("", !0)
|
|
3986
3991
|
]),
|
|
3987
3992
|
_: 3
|
|
3988
3993
|
})
|
|
@@ -3991,79 +3996,80 @@ const We = ["aria-describedby"], rr = /* @__PURE__ */ P({
|
|
|
3991
3996
|
}
|
|
3992
3997
|
});
|
|
3993
3998
|
export {
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
3999
|
+
Jt as $,
|
|
4000
|
+
Lt as A,
|
|
4001
|
+
Tt as B,
|
|
4002
|
+
Nt as C,
|
|
4003
|
+
tt as D,
|
|
4004
|
+
Dt as E,
|
|
4005
|
+
ye as F,
|
|
4006
|
+
Je as G,
|
|
4007
|
+
rt as H,
|
|
4008
|
+
Vt as I,
|
|
4004
4009
|
x as J,
|
|
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
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4010
|
+
nt as K,
|
|
4011
|
+
Gt as L,
|
|
4012
|
+
Ft as M,
|
|
4013
|
+
Ut as N,
|
|
4014
|
+
At as O,
|
|
4015
|
+
rr as P,
|
|
4016
|
+
_t as Q,
|
|
4017
|
+
Pt as R,
|
|
4018
|
+
ft as S,
|
|
4019
|
+
kt as T,
|
|
4020
|
+
st as U,
|
|
4021
|
+
Zt as V,
|
|
4022
|
+
Rt as W,
|
|
4023
|
+
Ct as X,
|
|
4024
|
+
at as Y,
|
|
4025
|
+
it as Z,
|
|
4026
|
+
nr as _,
|
|
4027
|
+
sr as a,
|
|
4028
|
+
ot as a0,
|
|
4029
|
+
Se as a1,
|
|
4030
|
+
Te as a2,
|
|
4031
|
+
Ee as a3,
|
|
4032
|
+
Xt as a4,
|
|
4033
|
+
lt as a5,
|
|
4034
|
+
_e as a6,
|
|
4035
|
+
ut as a7,
|
|
4036
|
+
ht as a8,
|
|
4037
|
+
Mt as a9,
|
|
4038
|
+
ct as aa,
|
|
4039
|
+
Pe as ab,
|
|
4040
|
+
dt as ac,
|
|
4041
|
+
we as ad,
|
|
4042
|
+
pt as ae,
|
|
4043
|
+
Bt as af,
|
|
4044
|
+
Oe as ag,
|
|
4045
|
+
Ge as ah,
|
|
4046
|
+
ke as ai,
|
|
4047
|
+
Ne as aj,
|
|
4048
|
+
mt as ak,
|
|
4049
|
+
vt as al,
|
|
4050
|
+
yt as b,
|
|
4051
|
+
U as c,
|
|
4052
|
+
St as d,
|
|
4053
|
+
Ot as e,
|
|
4054
|
+
wt as f,
|
|
4055
|
+
Et as g,
|
|
4056
|
+
er as h,
|
|
4057
|
+
xt as i,
|
|
4058
|
+
Qt as j,
|
|
4059
|
+
Ue as k,
|
|
4060
|
+
gt as l,
|
|
4061
|
+
Ae as m,
|
|
4062
|
+
bt as n,
|
|
4063
|
+
Ce as o,
|
|
4064
|
+
tr as p,
|
|
4065
|
+
qt as q,
|
|
4066
|
+
Kt as r,
|
|
4067
|
+
Wt as s,
|
|
4068
|
+
Ht as t,
|
|
4069
|
+
Ve as u,
|
|
4070
|
+
Yt as v,
|
|
4071
|
+
$t as w,
|
|
4072
|
+
It as x,
|
|
4073
|
+
zt as y,
|
|
4074
|
+
jt as z
|
|
4069
4075
|
};
|