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