@vc-shell/framework 2.5.0-pr342.db2c5a8 → 2.5.0-pr343.9724376
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/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Dis8QYB-.js → VcScheduler.vue_vue_type_script_setup_true_lang-CMAnQNhn.js} +280 -275
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CMAnQNhn.js.map +1 -0
- package/dist/core/composables/useLatestRequest/index.d.ts +25 -8
- package/dist/core/composables/useLatestRequest/index.d.ts.map +1 -1
- package/dist/framework.js +25 -15
- package/dist/framework.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue.d.ts.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Dis8QYB-.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { nextTick as $e, ref as D, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as
|
|
2
|
-
import { ab as zi, c as lt, x as Hi, d as uo, B as al, Q as Wn, P as vo, e as fo, K as mo, _ as le, u as Vt, A as Wi, a as pt, b as po, W as go, h as Gi, L as
|
|
3
|
-
import { P as St, af as es, aR as ts, a as ls, X as Ve, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as
|
|
4
|
-
import { q as Ft, p as
|
|
1
|
+
import { nextTick as $e, ref as D, computed as y, getCurrentInstance as Tt, inject as Ce, defineComponent as Q, openBlock as s, createElementBlock as g, createElementVNode as w, watch as oe, onMounted as et, onBeforeUnmount as He, toValue as xe, reactive as vt, shallowRef as oo, provide as De, createBlock as P, unref as n, withCtx as x, withDirectives as Xe, resolveDynamicComponent as qe, vShow as _t, createCommentVNode as L, toRef as Ie, normalizeClass as X, renderSlot as H, toDisplayString as U, Teleport as gt, createVNode as $, Transition as Fe, normalizeStyle as he, Fragment as J, renderList as ve, createTextVNode as fe, mergeProps as Le, withModifiers as ue, isRef as bt, h as io, withKeys as Ae, createSlots as Ne, markRaw as Mn, useId as Pt, useSlots as ht, TransitionGroup as Un, toHandlers as Ol, onUnmounted as Rt, hasInjectionContext as so, getCurrentScope as ro, onScopeDispose as zn, useAttrs as Pi, watchEffect as Hn, vModelText as Vi, toRefs as Fi, normalizeProps as ft, guardReactiveProps as mt, vModelCheckbox as Ui, toRaw as co } from "vue";
|
|
2
|
+
import { ab as zi, c as lt, x as Hi, d as uo, B as al, Q as Wn, P as vo, e as fo, K as mo, _ as le, u as Vt, A as Wi, a as pt, b as po, W as go, h as Gi, L as Ln, t as In, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as ol, z as xn, w as ji, a3 as Xi, Z as ho, G as Qi, F as yo, s as Zi, a8 as Ji } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
3
|
+
import { P as St, af as es, aR as ts, a as ls, X as Ve, H as il, l as Se, aP as wo, N as sl, am as ns, an as as, x as we, F as Qe, M as os, t as rt, a8 as is, T as Vl, Q as wt, a0 as ss, aS as rs, I as Ot, V as Ze, ap as cs, u as us, aT as ds, ak as Co, aU as vs, aV as fs, au as _o, aN as ko, O as Fl, aO as ms, q as Pe, v as $t, E as Eo, p as ps, Y as gs, y as bs, az as hs, C as ys, w as Ct, s as ws, aW as Ul, K as So, aX as $o, aY as Ro, aZ as ll, a_ as Ao, a$ as Cs, A as To, n as _s, o as gn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
|
|
4
|
+
import { q as Ft, p as bn, o as ks, n as Ml, r as Es, m as Nn, v as Al, t as Oo, f as qn, w as Ss, _ as $s } from "./VcAiAgentPanel.vue_vue_type_script_setup_true_lang-y-eKcMMU.js";
|
|
5
5
|
import { u as ze } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
6
|
-
import { s as
|
|
6
|
+
import { s as zl, f as Kn, o as Yn, d as Rs } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
7
7
|
import As from "../assets/d5f9664ebbfb104b.svg";
|
|
8
8
|
import Ts from "../assets/4e43c74354534fb3.svg";
|
|
9
9
|
import Os from "../assets/e98196a9f8dcb2f0.svg";
|
|
@@ -80,7 +80,7 @@ import { M as Zr } from "./vendor-tiptap-markdown-18K1hcU0.js";
|
|
|
80
80
|
import { b as Jr } from "./vendor-js-beautify-D-6mWVv0.js";
|
|
81
81
|
import { p as Lo } from "./vendor-dompurify-DpIUMBYC.js";
|
|
82
82
|
import { S as Ll, N as Io, a as Il, M as ec, f as xo, G as tc, K as lc } from "./vendor-swiper-BgqGfw3Y.js";
|
|
83
|
-
import { h as No, d as Do, o as nc, u as ac, a as
|
|
83
|
+
import { h as No, d as Do, o as nc, u as ac, a as Hl, i as oc } from "./vendor-vueuse-core-_wFDcFkI.js";
|
|
84
84
|
import { useRouter as Ut, RouterView as ic, useRoute as zt } from "vue-router";
|
|
85
85
|
import { v as rl, O as sc } from "./vendor-vueuse-components-B3XvEasa.js";
|
|
86
86
|
import { u as rc, j as cc } from "./vendor-vueuse-shared-CiuC98Kk.js";
|
|
@@ -91,10 +91,10 @@ import { e as vc, c as ka, g as jn } from "./vendor-lodash-es-D2n90GJy.js";
|
|
|
91
91
|
import { S as Bo } from "./vendor-sortablejs-Bsvu-FKn.js";
|
|
92
92
|
import "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
|
|
93
93
|
import "./vendor-truncate-html-ChA1T5zy.js";
|
|
94
|
-
import { h as Te, U as Po, V as
|
|
94
|
+
import { h as Te, U as Po, V as Wl, W as Ge, d as Dt, J as tt, x as At, z as Gl, a as fc, X as Xn, Y as Vo, Z as mc, _ as pc, w as Fo, y as Uo, $ as gc, a0 as bc } from "./vendor-date-fns-C-55OMpS.js";
|
|
95
95
|
import { r as Qn, R as je } from "./vendor-rrule-C4g_KGmu.js";
|
|
96
96
|
import { S as hc, Y as yc, h as Ea, G as wc, V as Cc } from "./vendor-headlessui-vue-Cn-RMs4E.js";
|
|
97
|
-
function
|
|
97
|
+
function xl(e) {
|
|
98
98
|
$e(() => {
|
|
99
99
|
const a = document.activeElement;
|
|
100
100
|
if (!(!a || a === document.body || a === document.documentElement)) return;
|
|
@@ -261,7 +261,7 @@ function Oc(e) {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
let hl = null;
|
|
264
|
-
function
|
|
264
|
+
function ql() {
|
|
265
265
|
if (Tt()) {
|
|
266
266
|
const e = Ce(Hi, null);
|
|
267
267
|
if (e)
|
|
@@ -304,17 +304,17 @@ function zo() {
|
|
|
304
304
|
throw new Error("[useBladeMessaging] BladeMessaging not found. Ensure BladeNavigationPlugin is installed.");
|
|
305
305
|
return e;
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const Nl = /* @__PURE__ */ new Map();
|
|
308
308
|
function _S(e, a) {
|
|
309
|
-
|
|
309
|
+
Nl.has(e) && console.warn(`[defineBlade] Duplicate blade name: "${e}". Overwriting.`), Nl.set(e, a);
|
|
310
310
|
}
|
|
311
311
|
function Mc(e) {
|
|
312
|
-
return
|
|
312
|
+
return Nl.get(e);
|
|
313
313
|
}
|
|
314
314
|
function kS() {
|
|
315
|
-
return
|
|
315
|
+
return Nl;
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const Kl = Symbol("TableQueryState");
|
|
318
318
|
function $a(e, a) {
|
|
319
319
|
const t = {};
|
|
320
320
|
return "sort" in a && (t[`${e}_sort`] = a.sort ?? ""), "search" in a && (t[`${e}_search`] = a.search ?? ""), "page" in a && (t[`${e}_page`] = a.page != null ? String(a.page) : ""), t;
|
|
@@ -461,7 +461,7 @@ function Aa(e) {
|
|
|
461
461
|
const t = getComputedStyle(e), l = e.offsetWidth + parseFloat(t.marginLeft || "0") + parseFloat(t.marginRight || "0");
|
|
462
462
|
return e.style.flexShrink = a, l;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function hn(e) {
|
|
465
465
|
const a = getComputedStyle(e), t = a.columnGap || a.gap || "0px";
|
|
466
466
|
return parseFloat(t) || 0;
|
|
467
467
|
}
|
|
@@ -499,7 +499,7 @@ function Zn(e) {
|
|
|
499
499
|
b.value = [...t.value], p.value = [];
|
|
500
500
|
return;
|
|
501
501
|
}
|
|
502
|
-
v.value =
|
|
502
|
+
v.value = hn(a.value);
|
|
503
503
|
const R = v.value, A = i === "reverse" ? [...t.value].reverse() : t.value;
|
|
504
504
|
let _ = T(A, c.value);
|
|
505
505
|
if (_.hidden.length > 0) {
|
|
@@ -509,7 +509,7 @@ function Zn(e) {
|
|
|
509
509
|
i === "reverse" ? (b.value = _.visible.reverse(), p.value = _.hidden.reverse()) : (b.value = _.visible, p.value = _.hidden);
|
|
510
510
|
}, V = () => {
|
|
511
511
|
if (!a.value) return;
|
|
512
|
-
v.value =
|
|
512
|
+
v.value = hn(a.value), C(), a.value.querySelectorAll("[data-item-key]").forEach((A) => {
|
|
513
513
|
const _ = A.getAttribute("data-item-key");
|
|
514
514
|
if (_) {
|
|
515
515
|
const E = Aa(A);
|
|
@@ -543,7 +543,7 @@ function Zn(e) {
|
|
|
543
543
|
V();
|
|
544
544
|
});
|
|
545
545
|
}, M = rc(() => {
|
|
546
|
-
a.value && (v.value =
|
|
546
|
+
a.value && (v.value = hn(a.value)), I();
|
|
547
547
|
}, 50);
|
|
548
548
|
return oe(c, () => {
|
|
549
549
|
M();
|
|
@@ -559,7 +559,7 @@ function Zn(e) {
|
|
|
559
559
|
O();
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
),
|
|
562
|
+
), et(() => {
|
|
563
563
|
$e(() => {
|
|
564
564
|
V(), O();
|
|
565
565
|
});
|
|
@@ -578,7 +578,7 @@ function Zn(e) {
|
|
|
578
578
|
updateObserver: O
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Yl(e = {}) {
|
|
582
582
|
const a = e.collapsedHeight ?? 0, t = e.maxExpandedHeight, l = D(), r = D(0), i = D(e.expanded ?? !1), o = y(() => r.value > a), c = y(() => t !== void 0 && r.value > t), d = y(() => i.value ? t !== void 0 && r.value > t ? { maxHeight: `${t}px` } : { maxHeight: `${r.value}px` } : { maxHeight: a > 0 ? `${a}px` : "0px" });
|
|
583
583
|
function u() {
|
|
584
584
|
i.value = !i.value;
|
|
@@ -628,7 +628,7 @@ function $S(e) {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
const
|
|
631
|
+
const yn = lt("use-table-selection");
|
|
632
632
|
function RS(e) {
|
|
633
633
|
const a = e?.idField ?? "id", t = (f) => {
|
|
634
634
|
if (typeof a == "function")
|
|
@@ -646,13 +646,13 @@ function RS(e) {
|
|
|
646
646
|
selectionCount: o,
|
|
647
647
|
hasSelection: c,
|
|
648
648
|
handleSelectionChange: (f) => {
|
|
649
|
-
l.value = f, f.length === 0 && (r.value = !1),
|
|
649
|
+
l.value = f, f.length === 0 && (r.value = !1), yn.debug("Selection changed", { count: f.length });
|
|
650
650
|
},
|
|
651
651
|
handleSelectAll: (f) => {
|
|
652
|
-
r.value = f, f || (l.value = []),
|
|
652
|
+
r.value = f, f || (l.value = []), yn.debug("Select all changed", { selected: f });
|
|
653
653
|
},
|
|
654
654
|
resetSelection: () => {
|
|
655
|
-
l.value = [], r.value = !1,
|
|
655
|
+
l.value = [], r.value = !1, yn.debug("Selection reset");
|
|
656
656
|
},
|
|
657
657
|
isSelected: (f) => {
|
|
658
658
|
const k = t(f);
|
|
@@ -684,7 +684,7 @@ function AS(e) {
|
|
|
684
684
|
return `${l.value}:${c}`;
|
|
685
685
|
});
|
|
686
686
|
if (e?.stateKey) {
|
|
687
|
-
const c = Ce(
|
|
687
|
+
const c = Ce(Kl, void 0);
|
|
688
688
|
if (c) {
|
|
689
689
|
const d = c.read(e.stateKey);
|
|
690
690
|
if (d.sort) {
|
|
@@ -717,7 +717,7 @@ function TS(e) {
|
|
|
717
717
|
}
|
|
718
718
|
let u;
|
|
719
719
|
if (e.stateKey) {
|
|
720
|
-
const b = Ce(
|
|
720
|
+
const b = Ce(Kl, void 0);
|
|
721
721
|
if (b) {
|
|
722
722
|
const p = b.read(e.stateKey);
|
|
723
723
|
p.page != null && (c(p.page), u = p.page), oe(
|
|
@@ -752,7 +752,7 @@ function TS(e) {
|
|
|
752
752
|
function OS(e) {
|
|
753
753
|
const a = D(e?.initial), t = e?.stateKey;
|
|
754
754
|
if (t) {
|
|
755
|
-
const l = Ce(
|
|
755
|
+
const l = Ce(Kl, void 0);
|
|
756
756
|
if (l) {
|
|
757
757
|
const r = l.read(t);
|
|
758
758
|
r.search !== void 0 && (a.value = r.search), oe(a, (i) => l.write(t, { search: i }));
|
|
@@ -769,7 +769,7 @@ function Gc(e, a) {
|
|
|
769
769
|
const t = Wc(e);
|
|
770
770
|
t?.name && e.replace({ name: t.name, params: a });
|
|
771
771
|
}
|
|
772
|
-
const
|
|
772
|
+
const wn = lt("blade-registry"), qc = Symbol("BladeRegistry");
|
|
773
773
|
function Oa(e) {
|
|
774
774
|
return !(!e || typeof e != "function" && typeof e != "object");
|
|
775
775
|
}
|
|
@@ -791,10 +791,10 @@ function MS(e) {
|
|
|
791
791
|
throw new Error(
|
|
792
792
|
`BladeRegistry: Blade '${v}' is already registered. Use allowOverwrite=true if intentional (e.g. dynamic module hot-reload).`
|
|
793
793
|
);
|
|
794
|
-
|
|
794
|
+
wn.warn(`Blade '${v}' is already registered. Overwriting (allowOverwrite=true).`);
|
|
795
795
|
}
|
|
796
796
|
const V = e.component(v);
|
|
797
|
-
(!V || V !== h) && (V && V !== h &&
|
|
797
|
+
(!V || V !== h) && (V && V !== h && wn.warn(
|
|
798
798
|
`Global component '${v}' already exists and is different. Overwriting with new blade component.`
|
|
799
799
|
), e.component(v, h));
|
|
800
800
|
const B = {
|
|
@@ -826,7 +826,7 @@ function MS(e) {
|
|
|
826
826
|
if (p && Oa(p))
|
|
827
827
|
return p;
|
|
828
828
|
} catch (p) {
|
|
829
|
-
|
|
829
|
+
wn.warn(`Error accessing global component '${v}':`, p);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
function c(v) {
|
|
@@ -884,7 +884,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
884
884
|
);
|
|
885
885
|
const b = Ut();
|
|
886
886
|
De(
|
|
887
|
-
|
|
887
|
+
Kl,
|
|
888
888
|
b ? Vc({
|
|
889
889
|
descriptor: y(() => t.descriptor),
|
|
890
890
|
router: b,
|
|
@@ -1025,7 +1025,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
1025
1025
|
}, nu = ["id", "role", "aria-selected", "onClick"], au = {
|
|
1026
1026
|
key: 1,
|
|
1027
1027
|
class: "vc-dropdown__empty"
|
|
1028
|
-
},
|
|
1028
|
+
}, jl = /* @__PURE__ */ Q({
|
|
1029
1029
|
__name: "vc-dropdown",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1264,7 +1264,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
1264
1264
|
}), ou = {
|
|
1265
1265
|
key: 2,
|
|
1266
1266
|
class: "vc-dropdown-item__icon-placeholder"
|
|
1267
|
-
}, iu = { class: "vc-dropdown-item__title" },
|
|
1267
|
+
}, iu = { class: "vc-dropdown-item__title" }, Xl = /* @__PURE__ */ Q({
|
|
1268
1268
|
__name: "VcDropdownItem",
|
|
1269
1269
|
props: {
|
|
1270
1270
|
title: {},
|
|
@@ -1336,7 +1336,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
1336
1336
|
}])
|
|
1337
1337
|
}, [
|
|
1338
1338
|
c.value ? (s(), g("li", ru, [
|
|
1339
|
-
$(n(
|
|
1339
|
+
$(n(jl), {
|
|
1340
1340
|
items: o.value,
|
|
1341
1341
|
"model-value": l.value,
|
|
1342
1342
|
floating: "",
|
|
@@ -1367,7 +1367,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
1367
1367
|
])
|
|
1368
1368
|
]),
|
|
1369
1369
|
item: x(({ item: m, click: h }) => [
|
|
1370
|
-
$(
|
|
1370
|
+
$(Xl, {
|
|
1371
1371
|
title: typeof m.title == "string" ? m.title : m.title?.value ?? "",
|
|
1372
1372
|
icon: m.icon,
|
|
1373
1373
|
onClick: h
|
|
@@ -1521,7 +1521,7 @@ const Yc = ts, jc = /* @__PURE__ */ Q({
|
|
|
1521
1521
|
function Jn(e, a) {
|
|
1522
1522
|
return e === void 0 ? !0 : typeof e == "function" ? !!e(a) : bt(e) ? !!xe(e) : !!e;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Ql(e) {
|
|
1525
1525
|
return e === void 0 ? !1 : bt(e) ? !!xe(e) : !!e;
|
|
1526
1526
|
}
|
|
1527
1527
|
const mu = Ml.escape, pu = Ml.mod.backslash;
|
|
@@ -1548,18 +1548,18 @@ function bu(e) {
|
|
|
1548
1548
|
const o = i.id, c = i.parentId !== void 0, d = e.getToolbarItems(o);
|
|
1549
1549
|
for (const u of d) {
|
|
1550
1550
|
const v = u.shortcut;
|
|
1551
|
-
if (v &&
|
|
1551
|
+
if (v && bn(v, r, e.isMac)) {
|
|
1552
1552
|
if (!gu(v) && ks() || (r.preventDefault(), !e.isEnabled(u))) return;
|
|
1553
1553
|
await t(`${o}::${u.id ?? "item"}`, () => u.clickHandler?.());
|
|
1554
1554
|
return;
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
if (
|
|
1557
|
+
if (bn(mu, r, e.isMac)) {
|
|
1558
1558
|
if (!c) return;
|
|
1559
1559
|
r.preventDefault(), await t(`${o}::__close__`, () => e.closeBlade(o));
|
|
1560
1560
|
return;
|
|
1561
1561
|
}
|
|
1562
|
-
if (
|
|
1562
|
+
if (bn(pu, r, e.isMac)) {
|
|
1563
1563
|
if (e.isMobile() || !c) return;
|
|
1564
1564
|
r.preventDefault(), e.toggleMaximized(o);
|
|
1565
1565
|
return;
|
|
@@ -1580,7 +1580,7 @@ const yu = ["aria-label"], wu = {
|
|
|
1580
1580
|
__name: "vc-blade-navigation-new",
|
|
1581
1581
|
setup(e) {
|
|
1582
1582
|
const { t: a } = ze(), t = Ft(), l = zo(), r = Ut(), { syncUrlReplace: i } = Ho(r, t);
|
|
1583
|
-
|
|
1583
|
+
et(() => {
|
|
1584
1584
|
t.blades.value.length !== 0 && $e(() => {
|
|
1585
1585
|
i();
|
|
1586
1586
|
});
|
|
@@ -1600,7 +1600,7 @@ const yu = ["aria-label"], wu = {
|
|
|
1600
1600
|
),
|
|
1601
1601
|
getToolbarItems: (B) => k(B),
|
|
1602
1602
|
isMobile: () => b.value,
|
|
1603
|
-
isEnabled: (B) => C(B.permissions) && Jn(B.isVisible) && !
|
|
1603
|
+
isEnabled: (B) => C(B.permissions) && Jn(B.isVisible) && !Ql(B.disabled),
|
|
1604
1604
|
closeBlade: (B) => t.closeBlade(B),
|
|
1605
1605
|
toggleMaximized: (B) => t.toggleMaximized(B),
|
|
1606
1606
|
isModalOpen: () => typeof document < "u" && document.querySelector('[aria-modal="true"]') !== null
|
|
@@ -1659,7 +1659,7 @@ const Yo = as();
|
|
|
1659
1659
|
function IS(e, a) {
|
|
1660
1660
|
Yo.register(e, a);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Cn(e) {
|
|
1663
1663
|
return Yo.get(e);
|
|
1664
1664
|
}
|
|
1665
1665
|
const ku = { class: "vc-popup__center" }, Eu = ["aria-label"], Su = { class: "vc-popup__content" }, $u = {
|
|
@@ -1922,7 +1922,7 @@ const Au = /* @__PURE__ */ Q({
|
|
|
1922
1922
|
_: 2
|
|
1923
1923
|
}, 1032, ["closing", "onFinalize"]))), 128));
|
|
1924
1924
|
}
|
|
1925
|
-
}), Mu = Ou,
|
|
1925
|
+
}), Mu = Ou, _n = lt("use-popup"), Lu = 400;
|
|
1926
1926
|
function xa(e, a) {
|
|
1927
1927
|
return a?.html ? e : () => io("div", { class: "tw-h-full tw-w-full" }, n(e));
|
|
1928
1928
|
}
|
|
@@ -1953,7 +1953,7 @@ function jo(e) {
|
|
|
1953
1953
|
return;
|
|
1954
1954
|
if (!t?.popups.some((I) => I.id === S.id)) {
|
|
1955
1955
|
const I = document.activeElement;
|
|
1956
|
-
S.opener = I instanceof HTMLElement && I !== document.body ?
|
|
1956
|
+
S.opener = I instanceof HTMLElement && I !== document.body ? Mn(I) : void 0;
|
|
1957
1957
|
}
|
|
1958
1958
|
v(S), S.closing = !1, i(S), t?.popups?.push(S);
|
|
1959
1959
|
}
|
|
@@ -2006,7 +2006,7 @@ function jo(e) {
|
|
|
2006
2006
|
return c(B), B;
|
|
2007
2007
|
}
|
|
2008
2008
|
function h(S, T) {
|
|
2009
|
-
const I =
|
|
2009
|
+
const I = Cn("warning");
|
|
2010
2010
|
return I ? new Promise((V) => {
|
|
2011
2011
|
const B = C({
|
|
2012
2012
|
component: I,
|
|
@@ -2026,20 +2026,20 @@ function jo(e) {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
});
|
|
2028
2028
|
c(B);
|
|
2029
|
-
}) : (
|
|
2029
|
+
}) : (_n.error("Popup preset 'warning' not registered. Ensure shell popup plugin is installed."), Promise.resolve(!1));
|
|
2030
2030
|
}
|
|
2031
2031
|
function f(S, T) {
|
|
2032
|
-
const I =
|
|
2032
|
+
const I = Cn("error");
|
|
2033
2033
|
if (!I) {
|
|
2034
|
-
|
|
2034
|
+
_n.error("Popup preset 'error' not registered. Ensure shell popup plugin is installed.");
|
|
2035
2035
|
return;
|
|
2036
2036
|
}
|
|
2037
2037
|
m(I, a("COMPONENTS.ORGANISMS.VC_POPUP.TITLE.ERROR"), S, T);
|
|
2038
2038
|
}
|
|
2039
2039
|
function k(S, T) {
|
|
2040
|
-
const I =
|
|
2040
|
+
const I = Cn("info");
|
|
2041
2041
|
if (!I) {
|
|
2042
|
-
|
|
2042
|
+
_n.error("Popup preset 'info' not registered. Ensure shell popup plugin is installed.");
|
|
2043
2043
|
return;
|
|
2044
2044
|
}
|
|
2045
2045
|
m(I, a("COMPONENTS.ORGANISMS.VC_POPUP.TITLE.INFO"), S, T);
|
|
@@ -2070,12 +2070,12 @@ function jo(e) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
function xu(e) {
|
|
2072
2072
|
const a = typeof e.slots > "u" ? {} : Object.fromEntries(
|
|
2073
|
-
Object.entries(e.slots).map(([t, l]) => typeof l == "string" ? [t, l] : [t,
|
|
2073
|
+
Object.entries(e.slots).map(([t, l]) => typeof l == "string" ? [t, l] : [t, Mn(l)])
|
|
2074
2074
|
);
|
|
2075
2075
|
return {
|
|
2076
2076
|
...e,
|
|
2077
2077
|
slots: a,
|
|
2078
|
-
component:
|
|
2078
|
+
component: Mn(oo(e.component))
|
|
2079
2079
|
};
|
|
2080
2080
|
}
|
|
2081
2081
|
const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
@@ -2109,9 +2109,9 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2109
2109
|
},
|
|
2110
2110
|
emits: ["close", "expand", "collapse"],
|
|
2111
2111
|
setup(e, { emit: a }) {
|
|
2112
|
-
const t = e, l = a, { t: r } = ze(), { isMac: i } = Oo(), o = y(() =>
|
|
2112
|
+
const t = e, l = a, { t: r } = ze(), { isMac: i } = Oo(), o = y(() => Nn(Ml.escape, i)), c = y(() => Nn(Ml.mod.backslash, i)), d = y(() => o.value.aria), u = y(() => c.value.aria), { isMobile: v } = Ve(), b = Ce(Wn, void 0), p = D(!1), m = D(null), h = D(null), { teleportTarget: f } = Vt(), { floatingStyle: k } = il(m, h, {
|
|
2113
2113
|
placement: "bottom-start",
|
|
2114
|
-
middleware: () => [
|
|
2114
|
+
middleware: () => [zl()]
|
|
2115
2115
|
}), C = D(null);
|
|
2116
2116
|
function S() {
|
|
2117
2117
|
C.value?.contains(document.activeElement) && requestAnimationFrame(() => {
|
|
@@ -2695,7 +2695,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2695
2695
|
])) : L("", !0)
|
|
2696
2696
|
], 42, _d));
|
|
2697
2697
|
}
|
|
2698
|
-
}),
|
|
2698
|
+
}), Dl = $d, Rd = ["role", "aria-label"], Ad = { class: "vc-banner__body" }, Td = {
|
|
2699
2699
|
key: 0,
|
|
2700
2700
|
class: "vc-banner__title"
|
|
2701
2701
|
}, Od = {
|
|
@@ -2711,7 +2711,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2711
2711
|
collapsedHeight: { default: 100 }
|
|
2712
2712
|
},
|
|
2713
2713
|
setup(e) {
|
|
2714
|
-
const a = e, t = Qe(), l = ht(), { contentRef: r, isExpanded: i, hasOverflow: o, wrapperStyle: c, toggle: d } =
|
|
2714
|
+
const a = e, t = Qe(), l = ht(), { contentRef: r, isExpanded: i, hasOverflow: o, wrapperStyle: c, toggle: d } = Yl({
|
|
2715
2715
|
collapsedHeight: a.collapsedHeight
|
|
2716
2716
|
});
|
|
2717
2717
|
function u(k) {
|
|
@@ -2814,7 +2814,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2814
2814
|
return b.icon ? typeof b.icon == "function" ? b.icon() : b.icon : "";
|
|
2815
2815
|
}
|
|
2816
2816
|
function i(b) {
|
|
2817
|
-
return
|
|
2817
|
+
return Ql(b.disabled);
|
|
2818
2818
|
}
|
|
2819
2819
|
function o(b) {
|
|
2820
2820
|
return { transitionDelay: t.value ? `${b * 40}ms` : `${(a.items.length - 1 - b) * 25}ms` };
|
|
@@ -2937,13 +2937,13 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2937
2937
|
onClick: {}
|
|
2938
2938
|
},
|
|
2939
2939
|
setup(e) {
|
|
2940
|
-
const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() =>
|
|
2940
|
+
const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() => Ql(a.disabled)), i = y(() => ({
|
|
2941
2941
|
"vc-blade-toolbar-base-button--disabled": r.value || l.value,
|
|
2942
2942
|
"vc-blade-toolbar-base-button--with-separator-left": a.separator === "left",
|
|
2943
2943
|
"vc-blade-toolbar-base-button--with-separator-right": a.separator === "right",
|
|
2944
2944
|
"vc-blade-toolbar-base-button--with-separator-both": a.separator === "both"
|
|
2945
2945
|
})), o = y(
|
|
2946
|
-
() => a.shortcut ?
|
|
2946
|
+
() => a.shortcut ? Nn(a.shortcut, t) : { parts: [], aria: "" }
|
|
2947
2947
|
), c = y(() => a.shortcut ? o.value.aria : void 0), d = y(() => bt(a.title) ? xe(a.title) : a.title), u = y(() => typeof a.icon == "function" ? a.icon() : a.icon);
|
|
2948
2948
|
async function v() {
|
|
2949
2949
|
if (!(r.value || l.value || !a.onClick)) {
|
|
@@ -3048,7 +3048,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
3048
3048
|
"show-title": e.isExpanded,
|
|
3049
3049
|
"on-click": p.clickHandler
|
|
3050
3050
|
}), null, 16, ["data-item-key", "show-title", "on-click"]))), 128)),
|
|
3051
|
-
n(o) ? (s(), P(n(
|
|
3051
|
+
n(o) ? (s(), P(n(jl), {
|
|
3052
3052
|
key: 0,
|
|
3053
3053
|
"model-value": t.value,
|
|
3054
3054
|
items: n(i),
|
|
@@ -3069,7 +3069,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
3069
3069
|
], 2)
|
|
3070
3070
|
]),
|
|
3071
3071
|
item: x(({ item: p }) => [
|
|
3072
|
-
$(
|
|
3072
|
+
$(Xl, {
|
|
3073
3073
|
title: xe(p.title) ?? "",
|
|
3074
3074
|
icon: typeof p.icon == "function" ? p.icon() : p.icon
|
|
3075
3075
|
}, null, 8, ["title", "icon"])
|
|
@@ -3109,7 +3109,7 @@ function Jd(e) {
|
|
|
3109
3109
|
u.clear();
|
|
3110
3110
|
}
|
|
3111
3111
|
const h = y(() => r(v.value).filter(
|
|
3112
|
-
(f) => a(f.permissions) && Jn(f.isVisible) && (d.value ? !
|
|
3112
|
+
(f) => a(f.permissions) && Jn(f.isVisible) && (d.value ? !Ql(f.disabled) : !0)
|
|
3113
3113
|
).sort((f, k) => {
|
|
3114
3114
|
const C = f.priority ?? 0;
|
|
3115
3115
|
return (k.priority ?? 0) - C;
|
|
@@ -3241,7 +3241,7 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
|
|
|
3241
3241
|
isExpanded: p,
|
|
3242
3242
|
wrapperStyle: m,
|
|
3243
3243
|
toggle: h
|
|
3244
|
-
} =
|
|
3244
|
+
} = Yl(), f = D(!1), k = u;
|
|
3245
3245
|
async function C() {
|
|
3246
3246
|
await v() && (f.value = !0, setTimeout(() => {
|
|
3247
3247
|
f.value = !1;
|
|
@@ -3394,10 +3394,10 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
|
|
|
3394
3394
|
function yv() {
|
|
3395
3395
|
const e = Ce(go);
|
|
3396
3396
|
if (!e)
|
|
3397
|
-
throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new
|
|
3397
|
+
throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new Vl("WidgetService");
|
|
3398
3398
|
return e;
|
|
3399
3399
|
}
|
|
3400
|
-
const
|
|
3400
|
+
const Bl = /* @__PURE__ */ Q({
|
|
3401
3401
|
__name: "WidgetScope",
|
|
3402
3402
|
props: {
|
|
3403
3403
|
widgetId: {}
|
|
@@ -3463,7 +3463,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3463
3463
|
height: 10,
|
|
3464
3464
|
class: "tw-mt-1"
|
|
3465
3465
|
})
|
|
3466
|
-
])) : m.headless ? (s(), P(n(
|
|
3466
|
+
])) : m.headless ? (s(), P(n(Dl), {
|
|
3467
3467
|
key: 1,
|
|
3468
3468
|
icon: m.headless?.icon,
|
|
3469
3469
|
title: n(o)(m),
|
|
@@ -3471,7 +3471,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3471
3471
|
disabled: n(i)(m),
|
|
3472
3472
|
"widget-id": m.id,
|
|
3473
3473
|
onClick: (h) => n(c)(m)
|
|
3474
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3474
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
|
|
3475
3475
|
key: 2,
|
|
3476
3476
|
"widget-id": m.id
|
|
3477
3477
|
}, {
|
|
@@ -3483,7 +3483,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3483
3483
|
_: 2
|
|
3484
3484
|
}, 1032, ["widget-id"]))
|
|
3485
3485
|
], 64))), 128)),
|
|
3486
|
-
v.value ? (s(), P(n(
|
|
3486
|
+
v.value ? (s(), P(n(jl), {
|
|
3487
3487
|
key: 0,
|
|
3488
3488
|
"model-value": t.value,
|
|
3489
3489
|
items: u.value,
|
|
@@ -3506,7 +3506,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3506
3506
|
variant: "block",
|
|
3507
3507
|
width: "100%",
|
|
3508
3508
|
height: 32
|
|
3509
|
-
})) : m.headless ? (s(), P(n(
|
|
3509
|
+
})) : m.headless ? (s(), P(n(Dl), {
|
|
3510
3510
|
key: 1,
|
|
3511
3511
|
class: "tw-w-full",
|
|
3512
3512
|
icon: m.headless?.icon,
|
|
@@ -3518,7 +3518,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3518
3518
|
onClick: (h) => {
|
|
3519
3519
|
n(c)(m), t.value = !1;
|
|
3520
3520
|
}
|
|
3521
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3521
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
|
|
3522
3522
|
key: 2,
|
|
3523
3523
|
"widget-id": m.id
|
|
3524
3524
|
}, {
|
|
@@ -3866,7 +3866,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3866
3866
|
height: 10,
|
|
3867
3867
|
class: "tw-mt-1"
|
|
3868
3868
|
})
|
|
3869
|
-
], 8, Dv)) : f.headless ? (s(), P(n(
|
|
3869
|
+
], 8, Dv)) : f.headless ? (s(), P(n(Dl), {
|
|
3870
3870
|
key: 1,
|
|
3871
3871
|
icon: f.headless?.icon,
|
|
3872
3872
|
title: n(d)(f),
|
|
@@ -3875,7 +3875,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3875
3875
|
"data-item-key": f.id,
|
|
3876
3876
|
"widget-id": f.id,
|
|
3877
3877
|
onClick: (k) => n(u)(f)
|
|
3878
|
-
}, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(
|
|
3878
|
+
}, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Bl, {
|
|
3879
3879
|
key: 2,
|
|
3880
3880
|
"widget-id": f.id
|
|
3881
3881
|
}, {
|
|
@@ -3917,7 +3917,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3917
3917
|
variant: "block",
|
|
3918
3918
|
width: "100%",
|
|
3919
3919
|
height: 32
|
|
3920
|
-
})) : f.headless ? (s(), P(n(
|
|
3920
|
+
})) : f.headless ? (s(), P(n(Dl), {
|
|
3921
3921
|
key: 1,
|
|
3922
3922
|
class: "tw-w-full",
|
|
3923
3923
|
icon: f.headless?.icon,
|
|
@@ -3929,7 +3929,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3929
3929
|
onClick: (k) => {
|
|
3930
3930
|
n(u)(f), l.value = !1;
|
|
3931
3931
|
}
|
|
3932
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3932
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Bl, {
|
|
3933
3933
|
key: 2,
|
|
3934
3934
|
"widget-id": f.id
|
|
3935
3935
|
}, {
|
|
@@ -3989,7 +3989,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3989
3989
|
}
|
|
3990
3990
|
}), d.clear();
|
|
3991
3991
|
}
|
|
3992
|
-
|
|
3992
|
+
et(u), Rt(v);
|
|
3993
3993
|
const b = y(() => i.getWidgets(r.value)), p = y(
|
|
3994
3994
|
() => b.value.filter((m) => Jn(m.isVisible, o?.value))
|
|
3995
3995
|
);
|
|
@@ -4005,7 +4005,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
4005
4005
|
}
|
|
4006
4006
|
});
|
|
4007
4007
|
function Zo() {
|
|
4008
|
-
const e =
|
|
4008
|
+
const e = Hl("VC_LANGUAGE_SETTINGS", "");
|
|
4009
4009
|
function a(d) {
|
|
4010
4010
|
if (!d)
|
|
4011
4011
|
return "en";
|
|
@@ -4057,39 +4057,39 @@ function Zo() {
|
|
|
4057
4057
|
};
|
|
4058
4058
|
}
|
|
4059
4059
|
const Jo = lt("use-languages");
|
|
4060
|
-
let
|
|
4060
|
+
let kn = null;
|
|
4061
4061
|
function ei() {
|
|
4062
|
-
return
|
|
4062
|
+
return kn || (kn = Zo()), kn;
|
|
4063
4063
|
}
|
|
4064
4064
|
function US() {
|
|
4065
4065
|
if (!so())
|
|
4066
4066
|
return Jo.warn("No injection context for provideLanguages; using fallback language service"), ei();
|
|
4067
|
-
const e = Ce(
|
|
4067
|
+
const e = Ce(Ln, null);
|
|
4068
4068
|
if (e)
|
|
4069
4069
|
return e;
|
|
4070
4070
|
const a = Zo();
|
|
4071
|
-
return De(
|
|
4071
|
+
return De(Ln, a), a;
|
|
4072
4072
|
}
|
|
4073
4073
|
function ti() {
|
|
4074
4074
|
if (!so())
|
|
4075
4075
|
return ei();
|
|
4076
|
-
const e = Ce(
|
|
4076
|
+
const e = Ce(Ln, null);
|
|
4077
4077
|
if (!e)
|
|
4078
|
-
throw Jo.error("Language service not found"), new
|
|
4078
|
+
throw Jo.error("Language service not found"), new Vl("LanguageService");
|
|
4079
4079
|
return e;
|
|
4080
4080
|
}
|
|
4081
4081
|
const Fv = lt("use-app-bar-widget");
|
|
4082
4082
|
function zS() {
|
|
4083
|
-
const e = Ce(
|
|
4083
|
+
const e = Ce(In, null);
|
|
4084
4084
|
if (e)
|
|
4085
4085
|
return e;
|
|
4086
4086
|
const a = ss();
|
|
4087
|
-
return De(
|
|
4087
|
+
return De(In, a), ro() && zn(() => rs.dispose(a)), a;
|
|
4088
4088
|
}
|
|
4089
|
-
function
|
|
4090
|
-
const e = Ce(
|
|
4089
|
+
function Zl() {
|
|
4090
|
+
const e = Ce(In);
|
|
4091
4091
|
if (!e)
|
|
4092
|
-
throw Fv.error("AppBarWidgetService not found"), new
|
|
4092
|
+
throw Fv.error("AppBarWidgetService not found"), new Vl("AppBarWidgetService");
|
|
4093
4093
|
return e;
|
|
4094
4094
|
}
|
|
4095
4095
|
function Uv(e) {
|
|
@@ -4122,7 +4122,7 @@ function Yv(e) {
|
|
|
4122
4122
|
return `${qv}_${a}`;
|
|
4123
4123
|
}
|
|
4124
4124
|
function jv() {
|
|
4125
|
-
const e =
|
|
4125
|
+
const e = Hl(Yv(), !0), a = D(!1), t = D(!1), l = y(() => e.value || a.value);
|
|
4126
4126
|
let r = null;
|
|
4127
4127
|
const i = () => {
|
|
4128
4128
|
e.value = !e.value;
|
|
@@ -4243,7 +4243,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
|
|
|
4243
4243
|
return oe(u, (z) => {
|
|
4244
4244
|
const K = N.value;
|
|
4245
4245
|
!z || !K || document.activeElement && K.contains(document.activeElement) && K.focus({ preventScroll: !0 });
|
|
4246
|
-
}),
|
|
4246
|
+
}), et(() => xl(() => N.value)), (z, K) => (s(), g("div", Le({
|
|
4247
4247
|
ref_key: "bladeRef",
|
|
4248
4248
|
ref: N
|
|
4249
4249
|
}, B.value, {
|
|
@@ -4641,7 +4641,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
|
|
|
4641
4641
|
hasOverflow: u,
|
|
4642
4642
|
hasScroll: v,
|
|
4643
4643
|
wrapperStyle: b
|
|
4644
|
-
} =
|
|
4644
|
+
} = Yl({
|
|
4645
4645
|
collapsedHeight: t.collapsedHeight,
|
|
4646
4646
|
maxExpandedHeight: t.maxExpandedHeight,
|
|
4647
4647
|
expanded: t.isExpanded
|
|
@@ -5038,7 +5038,7 @@ const Df = {
|
|
|
5038
5038
|
function v(b) {
|
|
5039
5039
|
b.target.closest(".vc-editor-font-selector") || u();
|
|
5040
5040
|
}
|
|
5041
|
-
return
|
|
5041
|
+
return et(() => {
|
|
5042
5042
|
document.addEventListener("click", v);
|
|
5043
5043
|
}), Rt(() => {
|
|
5044
5044
|
document.removeEventListener("click", v);
|
|
@@ -5769,7 +5769,7 @@ const Df = {
|
|
|
5769
5769
|
_.style.height = E, l.onReportHeight?.(l.notificationId, N);
|
|
5770
5770
|
}
|
|
5771
5771
|
}
|
|
5772
|
-
|
|
5772
|
+
et(() => {
|
|
5773
5773
|
requestAnimationFrame(() => {
|
|
5774
5774
|
requestAnimationFrame(() => {
|
|
5775
5775
|
c.value = !0, f();
|
|
@@ -6579,7 +6579,7 @@ function rp(e) {
|
|
|
6579
6579
|
placement: "bottom",
|
|
6580
6580
|
middleware: y(() => [
|
|
6581
6581
|
Kn({ fallbackPlacements: ["top", "bottom"] }),
|
|
6582
|
-
|
|
6582
|
+
zl({ mainAxis: !1 }),
|
|
6583
6583
|
o(),
|
|
6584
6584
|
Yn({ mainAxis: 4 })
|
|
6585
6585
|
])
|
|
@@ -7157,7 +7157,7 @@ const up = {
|
|
|
7157
7157
|
key: 1,
|
|
7158
7158
|
class: "vc-checkbox__required",
|
|
7159
7159
|
"aria-hidden": "true"
|
|
7160
|
-
}, Lp = { key: 0 },
|
|
7160
|
+
}, Lp = { key: 0 }, Jl = /* @__PURE__ */ Q({
|
|
7161
7161
|
__name: "vc-checkbox",
|
|
7162
7162
|
props: {
|
|
7163
7163
|
label: {},
|
|
@@ -7203,7 +7203,7 @@ const up = {
|
|
|
7203
7203
|
p.value && (p.value.indeterminate = f);
|
|
7204
7204
|
},
|
|
7205
7205
|
{ immediate: !0 }
|
|
7206
|
-
),
|
|
7206
|
+
), et(() => {
|
|
7207
7207
|
p.value && t.indeterminate && (p.value.indeterminate = t.indeterminate);
|
|
7208
7208
|
}), (f, k) => n(b) ? (s(), g("div", Ep, [
|
|
7209
7209
|
$(n(we), {
|
|
@@ -7379,7 +7379,7 @@ const up = {
|
|
|
7379
7379
|
name: c.value
|
|
7380
7380
|
}, {
|
|
7381
7381
|
default: x(() => [
|
|
7382
|
-
b.$slots.default ? H(b.$slots, "default", { key: 0 }) : (s(!0), g(J, { key: 1 }, ve(e.options, (m, h) => (s(), P(n(
|
|
7382
|
+
b.$slots.default ? H(b.$slots, "default", { key: 0 }) : (s(!0), g(J, { key: 1 }, ve(e.options, (m, h) => (s(), P(n(Jl), {
|
|
7383
7383
|
key: v(m, h),
|
|
7384
7384
|
"model-value": d.value,
|
|
7385
7385
|
value: m.value,
|
|
@@ -7561,7 +7561,7 @@ const up = {
|
|
|
7561
7561
|
middleware: y(() => [
|
|
7562
7562
|
Yn(4),
|
|
7563
7563
|
Kn(),
|
|
7564
|
-
|
|
7564
|
+
zl({ padding: 16 }),
|
|
7565
7565
|
Rs({
|
|
7566
7566
|
padding: 16,
|
|
7567
7567
|
apply({ availableHeight: C, elements: S }) {
|
|
@@ -7841,7 +7841,7 @@ const up = {
|
|
|
7841
7841
|
},
|
|
7842
7842
|
emits: ["update:open"],
|
|
7843
7843
|
setup(e, { expose: a }) {
|
|
7844
|
-
const t = e, l = Ce(la, void 0), r = y(() => l?.value ?? !0), i = `vc-menu-group-${Pt()}`, o = typeof window > "u" ? `vc_menu_${t.groupId}_open` : `vc_menu_${window.location.pathname.split("/").filter(Boolean)[0] || "default"}_${t.groupId}_open`, c =
|
|
7844
|
+
const t = e, l = Ce(la, void 0), r = y(() => l?.value ?? !0), i = `vc-menu-group-${Pt()}`, o = typeof window > "u" ? `vc_menu_${t.groupId}_open` : `vc_menu_${window.location.pathname.split("/").filter(Boolean)[0] || "default"}_${t.groupId}_open`, c = Hl(o, t.open ?? !1), d = () => {
|
|
7845
7845
|
c.value = !c.value;
|
|
7846
7846
|
};
|
|
7847
7847
|
return a({
|
|
@@ -8065,7 +8065,7 @@ const mg = {
|
|
|
8065
8065
|
i.value = !1, l("update:modelValue", u.value);
|
|
8066
8066
|
};
|
|
8067
8067
|
return (u, v) => (s(), g("div", Eg, [
|
|
8068
|
-
$(n(
|
|
8068
|
+
$(n(jl), {
|
|
8069
8069
|
"model-value": i.value,
|
|
8070
8070
|
items: e.options,
|
|
8071
8071
|
floating: !0,
|
|
@@ -8394,7 +8394,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
|
|
|
8394
8394
|
isExpanded: { type: Boolean }
|
|
8395
8395
|
},
|
|
8396
8396
|
setup(e) {
|
|
8397
|
-
const a = e, { user: t } =
|
|
8397
|
+
const a = e, { user: t } = Fl(), l = y(() => {
|
|
8398
8398
|
if (a.avatarUrl)
|
|
8399
8399
|
return `background-image: url(${CSS.escape(a.avatarUrl)})`;
|
|
8400
8400
|
});
|
|
@@ -8557,7 +8557,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
|
|
|
8557
8557
|
emits: ["item:click"],
|
|
8558
8558
|
setup(e, { emit: a }) {
|
|
8559
8559
|
const t = e, l = a, r = Ce(ol, !1), i = D(null), o = D("");
|
|
8560
|
-
|
|
8560
|
+
et(() => {
|
|
8561
8561
|
$e(() => i.value?.updateScrollState());
|
|
8562
8562
|
}), oe(
|
|
8563
8563
|
() => t.expanded,
|
|
@@ -8659,8 +8659,8 @@ function vi(e, a) {
|
|
|
8659
8659
|
}
|
|
8660
8660
|
};
|
|
8661
8661
|
}
|
|
8662
|
-
function
|
|
8663
|
-
const { items: e } =
|
|
8662
|
+
function en() {
|
|
8663
|
+
const { items: e } = Zl(), { activeWidgetId: a } = Eo(), {
|
|
8664
8664
|
showItem: t,
|
|
8665
8665
|
hideAllItems: l,
|
|
8666
8666
|
toggleItem: r,
|
|
@@ -8696,7 +8696,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8696
8696
|
mobile: { type: Boolean, default: !1 }
|
|
8697
8697
|
},
|
|
8698
8698
|
setup(e) {
|
|
8699
|
-
const { currentWidget: a, hideAllWidgets: t, isAnyWidgetVisible: l } =
|
|
8699
|
+
const { currentWidget: a, hideAllWidgets: t, isAnyWidgetVisible: l } = en(), r = y(() => ({
|
|
8700
8700
|
...a.value?.props ?? {},
|
|
8701
8701
|
onClose: t
|
|
8702
8702
|
}));
|
|
@@ -8737,7 +8737,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8737
8737
|
},
|
|
8738
8738
|
emits: ["switch-app"],
|
|
8739
8739
|
setup(e, { emit: a }) {
|
|
8740
|
-
const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = D(null), c = D(null), { items: d } =
|
|
8740
|
+
const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = D(null), c = D(null), { items: d } = Zl(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = en(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = rb({
|
|
8741
8741
|
appsList: Ie(t, "appsList"),
|
|
8742
8742
|
widgets: d,
|
|
8743
8743
|
showApplications: Ie(t, "showApplications"),
|
|
@@ -8984,7 +8984,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8984
8984
|
},
|
|
8985
8985
|
emits: ["update:show", "switch-app"],
|
|
8986
8986
|
setup(e, { emit: a }) {
|
|
8987
|
-
const t = e, l = a, { hideAllWidgets: r } =
|
|
8987
|
+
const t = e, l = a, { hideAllWidgets: r } = en(), i = y({
|
|
8988
8988
|
get: () => t.show,
|
|
8989
8989
|
set: (c) => {
|
|
8990
8990
|
l("update:show", c);
|
|
@@ -9089,7 +9089,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
9089
9089
|
},
|
|
9090
9090
|
emits: ["onClick"],
|
|
9091
9091
|
setup(e, { emit: a }) {
|
|
9092
|
-
const t = e, l = a, r =
|
|
9092
|
+
const t = e, l = a, r = ql(), i = y(() => {
|
|
9093
9093
|
const c = t.notification.notifyType;
|
|
9094
9094
|
if (c)
|
|
9095
9095
|
return r.registry.get(c)?.template;
|
|
@@ -9137,7 +9137,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
9137
9137
|
}, Xb = /* @__PURE__ */ Q({
|
|
9138
9138
|
__name: "notification-dropdown",
|
|
9139
9139
|
setup(e) {
|
|
9140
|
-
const a =
|
|
9140
|
+
const a = ql(), { t } = ze({ useScope: "global" }), l = y(
|
|
9141
9141
|
() => [...a.history.value].sort(
|
|
9142
9142
|
(r, i) => new Date(i.created).getTime() - new Date(r.created).getTime()
|
|
9143
9143
|
)
|
|
@@ -9326,17 +9326,17 @@ function Jb() {
|
|
|
9326
9326
|
}
|
|
9327
9327
|
const eh = lt("use-app-bar-mobile-buttons");
|
|
9328
9328
|
function th() {
|
|
9329
|
-
const e = Ce(
|
|
9329
|
+
const e = Ce(xn, null);
|
|
9330
9330
|
if (e)
|
|
9331
9331
|
return e;
|
|
9332
9332
|
const a = Jb();
|
|
9333
|
-
return De(
|
|
9333
|
+
return De(xn, a), ro() && zn(() => {
|
|
9334
9334
|
}), a;
|
|
9335
9335
|
}
|
|
9336
9336
|
function mi() {
|
|
9337
|
-
const e = Ce(
|
|
9337
|
+
const e = Ce(xn);
|
|
9338
9338
|
if (!e)
|
|
9339
|
-
throw eh.error("AppBarMobileButtonsService not found"), new
|
|
9339
|
+
throw eh.error("AppBarMobileButtonsService not found"), new Vl("AppBarMobileButtonsService");
|
|
9340
9340
|
return e;
|
|
9341
9341
|
}
|
|
9342
9342
|
function lh() {
|
|
@@ -9547,7 +9547,7 @@ const nh = {
|
|
|
9547
9547
|
},
|
|
9548
9548
|
emits: ["item:click", "switch-app", "logo:click"],
|
|
9549
9549
|
setup(e, { emit: a }) {
|
|
9550
|
-
const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } =
|
|
9550
|
+
const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Zl(), v = y(
|
|
9551
9551
|
() => u.value.some((Y) => Y.badge === void 0 ? !1 : typeof Y.badge == "function" ? Y.badge() : !!Y.badge)
|
|
9552
9552
|
), b = y(() => u.value.length > 0 || !t.disableAppHub && t.appsList.length > 0), p = y(() => b.value && !t.disableMenu), m = D(dt), h = D(!1), f = D(0), k = D(null), C = D("idle");
|
|
9553
9553
|
let S = 0, T = 0, I = 0, V = 0;
|
|
@@ -9859,7 +9859,7 @@ const nh = {
|
|
|
9859
9859
|
}
|
|
9860
9860
|
}), Mh = "NG_TRANSLATE_LANG_KEY";
|
|
9861
9861
|
function Lh() {
|
|
9862
|
-
const { setLocale: e, currentLocale: a } = ti(), t =
|
|
9862
|
+
const { setLocale: e, currentLocale: a } = ti(), t = Hl(Mh, ""), l = (r) => {
|
|
9863
9863
|
r && r !== a.value && e(r);
|
|
9864
9864
|
};
|
|
9865
9865
|
l(t.value), oe(t, l);
|
|
@@ -9867,7 +9867,7 @@ function Lh() {
|
|
|
9867
9867
|
const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__title" }, Nh = {
|
|
9868
9868
|
key: 0,
|
|
9869
9869
|
class: "vc-menu-item__value"
|
|
9870
|
-
}, Dh = { class: "tw-p-1" },
|
|
9870
|
+
}, Dh = { class: "tw-p-1" }, tn = /* @__PURE__ */ Q({
|
|
9871
9871
|
__name: "settings-menu-item",
|
|
9872
9872
|
props: {
|
|
9873
9873
|
title: {},
|
|
@@ -9883,7 +9883,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
9883
9883
|
},
|
|
9884
9884
|
emits: ["trigger:click", "trigger:hover"],
|
|
9885
9885
|
setup(e, { expose: a, emit: t }) {
|
|
9886
|
-
const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Ve(), u = y(() => !!i.submenu), v = D(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } =
|
|
9886
|
+
const l = e, r = t, i = ht(), o = y(() => !i.trigger), c = y(() => o.value ? "button" : "div"), { isMobile: d } = Ve(), u = y(() => !!i.submenu), v = D(!1), { contentRef: b, wrapperStyle: p, isExpanded: m } = Yl();
|
|
9887
9887
|
oe(v, (k) => {
|
|
9888
9888
|
m.value !== k && (m.value = k);
|
|
9889
9889
|
}), oe(d, () => {
|
|
@@ -9986,13 +9986,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
9986
9986
|
})).filter((d) => d.title), o = y(() => i.find((u) => u.lang === r.value)?.title), c = (d) => {
|
|
9987
9987
|
Object.prototype.hasOwnProperty.call(d, "clickHandler") && d.clickHandler(d.lang);
|
|
9988
9988
|
};
|
|
9989
|
-
return (d, u) => (s(), P(n(
|
|
9989
|
+
return (d, u) => (s(), P(n(tn), {
|
|
9990
9990
|
icon: "lucide-languages",
|
|
9991
9991
|
title: d.$t("COMPONENTS.LANGUAGE_SELECTOR.TITLE"),
|
|
9992
9992
|
value: o.value
|
|
9993
9993
|
}, {
|
|
9994
9994
|
submenu: x(() => [
|
|
9995
|
-
(s(!0), g(J, null, ve(n(i), (v) => (s(), P(
|
|
9995
|
+
(s(!0), g(J, null, ve(n(i), (v) => (s(), P(Xl, {
|
|
9996
9996
|
key: v.lang,
|
|
9997
9997
|
title: v.title,
|
|
9998
9998
|
active: v.lang === n(r),
|
|
@@ -10008,13 +10008,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10008
10008
|
const { currentThemeKey: a, currentLocalizedName: t, themes: l, setTheme: r } = gs(), i = (o) => {
|
|
10009
10009
|
r(o.key), t.value && St(t.value);
|
|
10010
10010
|
};
|
|
10011
|
-
return (o, c) => (s(), P(n(
|
|
10011
|
+
return (o, c) => (s(), P(n(tn), {
|
|
10012
10012
|
icon: "lucide-palette",
|
|
10013
10013
|
title: o.$t("COMPONENTS.THEME_SELECTOR.THEME_SELECTOR"),
|
|
10014
10014
|
value: n(t)
|
|
10015
10015
|
}, {
|
|
10016
10016
|
submenu: x(() => [
|
|
10017
|
-
(s(!0), g(J, null, ve(n(l), (d) => (s(), P(
|
|
10017
|
+
(s(!0), g(J, null, ve(n(l), (d) => (s(), P(Xl, {
|
|
10018
10018
|
key: d.key,
|
|
10019
10019
|
title: d.name,
|
|
10020
10020
|
active: d.key === n(a),
|
|
@@ -10035,7 +10035,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10035
10035
|
},
|
|
10036
10036
|
emits: ["close"],
|
|
10037
10037
|
setup(e, { emit: a }) {
|
|
10038
|
-
const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } =
|
|
10038
|
+
const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } = Fl();
|
|
10039
10039
|
Mo({ validateOnMount: !1 });
|
|
10040
10040
|
const u = Br(), v = Pr(), b = Ut(), p = vt({
|
|
10041
10041
|
isValid: !1,
|
|
@@ -10210,7 +10210,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10210
10210
|
const { open: a } = jo({ component: Gh }), t = Ce(Gn, void 0), l = () => {
|
|
10211
10211
|
t?.(), a();
|
|
10212
10212
|
};
|
|
10213
|
-
return (r, i) => (s(), P(n(
|
|
10213
|
+
return (r, i) => (s(), P(n(tn), {
|
|
10214
10214
|
icon: "lucide-key",
|
|
10215
10215
|
title: r.$t("SHELL.ACCOUNT.CHANGE_PASSWORD"),
|
|
10216
10216
|
"onTrigger:click": l
|
|
@@ -10219,7 +10219,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10219
10219
|
}), Kh = /* @__PURE__ */ Q({
|
|
10220
10220
|
__name: "logout-button",
|
|
10221
10221
|
setup(e) {
|
|
10222
|
-
const { signOut: a } =
|
|
10222
|
+
const { signOut: a } = Fl(), t = Ut(), { blades: l, closeBlade: r } = Ft(), i = Ce(Gn, void 0), o = async () => {
|
|
10223
10223
|
for (i?.(); l.value.length > 1; ) {
|
|
10224
10224
|
const c = l.value[l.value.length - 1];
|
|
10225
10225
|
if (await r(c.id))
|
|
@@ -10227,7 +10227,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10227
10227
|
}
|
|
10228
10228
|
await a(), t.push({ name: "Login" });
|
|
10229
10229
|
};
|
|
10230
|
-
return (c, d) => (s(), P(n(
|
|
10230
|
+
return (c, d) => (s(), P(n(tn), {
|
|
10231
10231
|
icon: "lucide-log-out",
|
|
10232
10232
|
title: c.$t("SHELL.ACCOUNT.LOGOUT"),
|
|
10233
10233
|
"onTrigger:click": o
|
|
@@ -10247,7 +10247,7 @@ function Yh(e) {
|
|
|
10247
10247
|
});
|
|
10248
10248
|
}
|
|
10249
10249
|
function jh(e) {
|
|
10250
|
-
const a =
|
|
10250
|
+
const a = ql();
|
|
10251
10251
|
e.isEmbedded || e.registerMobileButton({
|
|
10252
10252
|
id: "notifications",
|
|
10253
10253
|
component: fi,
|
|
@@ -10306,7 +10306,7 @@ function Jh() {
|
|
|
10306
10306
|
};
|
|
10307
10307
|
}
|
|
10308
10308
|
function ey(e) {
|
|
10309
|
-
const a = D(!1), t = D(!1), { isAuthenticated: l } =
|
|
10309
|
+
const a = D(!1), t = D(!1), { isAuthenticated: l } = Fl(), { loadHistory: r } = ql(), { appsList: i, switchApp: o, getApps: c } = Jh();
|
|
10310
10310
|
return oe(
|
|
10311
10311
|
[() => e.isReady, l],
|
|
10312
10312
|
async ([d, u]) => {
|
|
@@ -10341,11 +10341,11 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
|
|
|
10341
10341
|
const d = zt(), u = d.query.EmbeddedMode === "true", v = D(null);
|
|
10342
10342
|
oe(
|
|
10343
10343
|
() => d.fullPath,
|
|
10344
|
-
() =>
|
|
10344
|
+
() => xl(() => v.value)
|
|
10345
10345
|
), oe(
|
|
10346
10346
|
v,
|
|
10347
10347
|
(_) => {
|
|
10348
|
-
_ &&
|
|
10348
|
+
_ && xl(() => _);
|
|
10349
10349
|
},
|
|
10350
10350
|
{ flush: "post" }
|
|
10351
10351
|
);
|
|
@@ -10528,7 +10528,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10528
10528
|
},
|
|
10529
10529
|
emits: ["toggle"],
|
|
10530
10530
|
setup(e, { emit: a }) {
|
|
10531
|
-
const t = e, l = a, { isMobile: r } = Ve(), { toggleWidget: i, currentWidget: o } =
|
|
10531
|
+
const t = e, l = a, { isMobile: r } = Ve(), { toggleWidget: i, currentWidget: o } = en(), c = y(() => t.widgetId ? o.value?.id === t.widgetId : !1);
|
|
10532
10532
|
function d() {
|
|
10533
10533
|
if (!(t.beforeOpen && typeof t.beforeOpen == "function" && t.beforeOpen() === !1) && t.widgetId) {
|
|
10534
10534
|
const u = !c.value;
|
|
@@ -10586,7 +10586,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10586
10586
|
}, s$ = /* @__PURE__ */ Q({
|
|
10587
10587
|
__name: "AppBarWidgetsMenu",
|
|
10588
10588
|
setup(e) {
|
|
10589
|
-
const { items: a } =
|
|
10589
|
+
const { items: a } = Zl();
|
|
10590
10590
|
function t(l) {
|
|
10591
10591
|
return l.badge === void 0 ? !1 : typeof l.badge == "function" ? l.badge() : !!l.badge;
|
|
10592
10592
|
}
|
|
@@ -10667,38 +10667,43 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10667
10667
|
logoAlt: { default: "Logo" }
|
|
10668
10668
|
},
|
|
10669
10669
|
setup(e) {
|
|
10670
|
-
const a =
|
|
10670
|
+
const a = D(null);
|
|
10671
|
+
et(() => xl(() => a.value));
|
|
10672
|
+
const t = e, r = Ut().currentRoute.value.meta?.appVersion, i = D(!1), o = D(!1);
|
|
10671
10673
|
oe(
|
|
10672
|
-
() =>
|
|
10673
|
-
(
|
|
10674
|
-
if (
|
|
10675
|
-
const
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
},
|
|
10674
|
+
() => t.background,
|
|
10675
|
+
(d) => {
|
|
10676
|
+
if (o.value = !1, !d) return;
|
|
10677
|
+
const u = new Image();
|
|
10678
|
+
u.onload = () => {
|
|
10679
|
+
o.value = !0;
|
|
10680
|
+
}, u.src = d;
|
|
10679
10681
|
},
|
|
10680
10682
|
{ immediate: !0 }
|
|
10681
10683
|
);
|
|
10682
|
-
const
|
|
10683
|
-
if (
|
|
10684
|
+
const c = y(() => {
|
|
10685
|
+
if (t.background)
|
|
10684
10686
|
return {
|
|
10685
|
-
background:
|
|
10686
|
-
backgroundColor:
|
|
10687
|
+
background: o.value ? `url(${t.background}) center / cover no-repeat` : void 0,
|
|
10688
|
+
backgroundColor: t.bgColor || void 0
|
|
10687
10689
|
};
|
|
10688
|
-
if (
|
|
10689
|
-
return { backgroundColor:
|
|
10690
|
+
if (t.bgColor)
|
|
10691
|
+
return { backgroundColor: t.bgColor };
|
|
10690
10692
|
});
|
|
10691
|
-
return (
|
|
10693
|
+
return (d, u) => (s(), g("main", {
|
|
10694
|
+
ref_key: "rootRef",
|
|
10695
|
+
ref: a,
|
|
10692
10696
|
class: "vc-auth-layout",
|
|
10693
|
-
|
|
10697
|
+
tabindex: "-1",
|
|
10698
|
+
style: he(c.value)
|
|
10694
10699
|
}, [
|
|
10695
10700
|
w("div", cy, [
|
|
10696
10701
|
e.logo ? (s(), g("img", {
|
|
10697
10702
|
key: 0,
|
|
10698
10703
|
src: e.logo,
|
|
10699
10704
|
alt: e.logoAlt,
|
|
10700
|
-
class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded":
|
|
10701
|
-
onLoad:
|
|
10705
|
+
class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded": i.value }]),
|
|
10706
|
+
onLoad: u[0] || (u[0] = (v) => i.value = !0)
|
|
10702
10707
|
}, null, 42, uy)) : L("", !0)
|
|
10703
10708
|
]),
|
|
10704
10709
|
w("div", dy, [
|
|
@@ -10707,13 +10712,13 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10707
10712
|
e.subtitle ? (s(), g("p", my, U(e.subtitle), 1)) : L("", !0)
|
|
10708
10713
|
])) : L("", !0),
|
|
10709
10714
|
w("div", py, [
|
|
10710
|
-
H(
|
|
10715
|
+
H(d.$slots, "default")
|
|
10711
10716
|
])
|
|
10712
10717
|
]),
|
|
10713
|
-
|
|
10714
|
-
H(
|
|
10718
|
+
d.$slots.footer ? (s(), g("div", gy, [
|
|
10719
|
+
H(d.$slots, "footer")
|
|
10715
10720
|
])) : L("", !0),
|
|
10716
|
-
n(
|
|
10721
|
+
n(r) ? (s(), g("div", by, U(n(r)), 1)) : L("", !0)
|
|
10717
10722
|
], 4));
|
|
10718
10723
|
}
|
|
10719
10724
|
});
|
|
@@ -10831,7 +10836,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
|
|
|
10831
10836
|
});
|
|
10832
10837
|
}
|
|
10833
10838
|
});
|
|
10834
|
-
|
|
10839
|
+
et(async () => {
|
|
10835
10840
|
await T(), await I(), d.value = o.value;
|
|
10836
10841
|
});
|
|
10837
10842
|
function S(O) {
|
|
@@ -11381,7 +11386,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
|
|
|
11381
11386
|
O.key === "Escape" && (O.preventDefault(), t("close"));
|
|
11382
11387
|
}
|
|
11383
11388
|
const B = oc(document.body);
|
|
11384
|
-
return
|
|
11389
|
+
return et(() => {
|
|
11385
11390
|
window.addEventListener("keydown", V), B.value = !0;
|
|
11386
11391
|
}), He(() => {
|
|
11387
11392
|
window.removeEventListener("keydown", V), B.value = !1;
|
|
@@ -12052,7 +12057,7 @@ const Yy = {
|
|
|
12052
12057
|
},
|
|
12053
12058
|
variant: y(() => a.variant)
|
|
12054
12059
|
};
|
|
12055
|
-
return De(
|
|
12060
|
+
return De(Ul, i), (o, c) => (s(), g("div", {
|
|
12056
12061
|
role: "table",
|
|
12057
12062
|
class: X(["vc-table-composition", e.variant && `vc-table-composition--${e.variant}`])
|
|
12058
12063
|
}, [
|
|
@@ -12126,7 +12131,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
|
|
|
12126
12131
|
},
|
|
12127
12132
|
emits: ["click", "hover", "leave", "space-press"],
|
|
12128
12133
|
setup(e, { emit: a }) {
|
|
12129
|
-
const t = e, l = a, r = Ce(
|
|
12134
|
+
const t = e, l = a, r = Ce(Ul, null), i = Ce(
|
|
12130
12135
|
$o,
|
|
12131
12136
|
y(() => 0)
|
|
12132
12137
|
), o = Ce(Ro, D(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
|
|
@@ -12322,7 +12327,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
|
|
|
12322
12327
|
])], 34)) : L("", !0)
|
|
12323
12328
|
], 46, hw));
|
|
12324
12329
|
}
|
|
12325
|
-
}), _w = ["data-column-id"], kw = 2,
|
|
12330
|
+
}), _w = ["data-column-id"], kw = 2, Pl = /* @__PURE__ */ Q({
|
|
12326
12331
|
__name: "TableCell",
|
|
12327
12332
|
props: {
|
|
12328
12333
|
width: {},
|
|
@@ -12472,7 +12477,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12472
12477
|
key: v.id,
|
|
12473
12478
|
class: "vc-column-switcher-panel__item"
|
|
12474
12479
|
}, [
|
|
12475
|
-
$(n(
|
|
12480
|
+
$(n(Jl), {
|
|
12476
12481
|
"model-value": r(v.id),
|
|
12477
12482
|
"onUpdate:modelValue": (b) => i(v.id)
|
|
12478
12483
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
@@ -12495,9 +12500,9 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12495
12500
|
},
|
|
12496
12501
|
emits: ["action"],
|
|
12497
12502
|
setup(e, { emit: a }) {
|
|
12498
|
-
const t = e, l = a, r = Ce(
|
|
12503
|
+
const t = e, l = a, r = Ce(Ul, null), i = D(!1), o = D(!1), c = D(null), d = D(null), u = D(null), { teleportTarget: v } = Vt(), b = y(() => t.actions?.length ? t.position === "column" ? !0 : t.visible !== void 0 ? t.visible : r && t.rowIndex !== void 0 ? r.selectedRowIndex.value === t.rowIndex : !1 : !1), p = y(() => t.actions?.filter((E) => !E.hidden) || []), m = y(() => t.mode === "dropdown"), h = y(() => m.value ? [] : p.value.slice(0, t.maxQuickActions)), f = y(() => m.value ? p.value : p.value.slice(t.maxQuickActions)), k = y(() => m.value || f.value.length > 0), { floatingStyle: C } = il(c, d, {
|
|
12499
12504
|
placement: "bottom-end",
|
|
12500
|
-
middleware: () => [Yn(4), Kn(),
|
|
12505
|
+
middleware: () => [Yn(4), Kn(), zl({ padding: 8 })]
|
|
12501
12506
|
});
|
|
12502
12507
|
oe(b, (E) => {
|
|
12503
12508
|
!E && !m.value && !i.value && (o.value = !1, i.value = !1);
|
|
@@ -12675,7 +12680,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12675
12680
|
onClick: c[0] || (c[0] = ue(() => {
|
|
12676
12681
|
}, ["stop"]))
|
|
12677
12682
|
}, [
|
|
12678
|
-
$(n(
|
|
12683
|
+
$(n(Jl), {
|
|
12679
12684
|
"model-value": r.value,
|
|
12680
12685
|
disabled: e.disabled,
|
|
12681
12686
|
indeterminate: e.indeterminate,
|
|
@@ -13167,15 +13172,15 @@ function Zt(e) {
|
|
|
13167
13172
|
function Ya(e) {
|
|
13168
13173
|
return typeof e == "object" && "options" in e && "field" in e;
|
|
13169
13174
|
}
|
|
13170
|
-
function
|
|
13175
|
+
function En(e) {
|
|
13171
13176
|
return typeof e == "object" && "range" in e;
|
|
13172
13177
|
}
|
|
13173
13178
|
function hi() {
|
|
13174
13179
|
return {
|
|
13175
|
-
getFilterType: (o) => o ? o === !0 || typeof o == "string" ? "text" :
|
|
13180
|
+
getFilterType: (o) => o ? o === !0 || typeof o == "string" ? "text" : En(o) ? "dateRange" : Zt(o) ? "select" : "none" : "none",
|
|
13176
13181
|
getFilterField: (o, c) => !c || c === !0 ? o : typeof c == "string" ? c : Ya(c) ? c.field : (Zt(c), o),
|
|
13177
13182
|
getRangeFields: (o) => {
|
|
13178
|
-
if (o &&
|
|
13183
|
+
if (o && En(o))
|
|
13179
13184
|
return o.range;
|
|
13180
13185
|
},
|
|
13181
13186
|
getFilterOptions: (o) => {
|
|
@@ -13187,7 +13192,7 @@ function hi() {
|
|
|
13187
13192
|
// Export type guards for external use
|
|
13188
13193
|
isSelectFilter: Zt,
|
|
13189
13194
|
isSelectFilterWithField: Ya,
|
|
13190
|
-
isDateRangeFilter:
|
|
13195
|
+
isDateRangeFilter: En
|
|
13191
13196
|
};
|
|
13192
13197
|
}
|
|
13193
13198
|
const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-global-filters-panel__label" }, y0 = {
|
|
@@ -13471,7 +13476,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13471
13476
|
}), I0 = {
|
|
13472
13477
|
class: "vc-table-add-row",
|
|
13473
13478
|
role: "row"
|
|
13474
|
-
}, x0 = { role: "cell" },
|
|
13479
|
+
}, x0 = { role: "cell" }, Sn = /* @__PURE__ */ Q({
|
|
13475
13480
|
__name: "TableAddRowButton",
|
|
13476
13481
|
props: {
|
|
13477
13482
|
label: { default: void 0 },
|
|
@@ -13770,7 +13775,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13770
13775
|
onMouseleave: c
|
|
13771
13776
|
}, Ne({
|
|
13772
13777
|
default: x(() => [
|
|
13773
|
-
e.showSelectionCell ? (s(), P(
|
|
13778
|
+
e.showSelectionCell ? (s(), P(Pl, {
|
|
13774
13779
|
key: 0,
|
|
13775
13780
|
class: "vc-data-table__selection-cell",
|
|
13776
13781
|
"line-clamp": 0,
|
|
@@ -13794,7 +13799,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13794
13799
|
]),
|
|
13795
13800
|
_: 1
|
|
13796
13801
|
})) : L("", !0),
|
|
13797
|
-
(s(!0), g(J, null, ve(e.columns, (V) => (s(), P(
|
|
13802
|
+
(s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Pl, {
|
|
13798
13803
|
key: V.props.id,
|
|
13799
13804
|
"column-id": V.props.id,
|
|
13800
13805
|
width: e.getColumnWidth(V.props),
|
|
@@ -13885,7 +13890,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13885
13890
|
return (l, r) => (s(), g("div", q0, [
|
|
13886
13891
|
e.columns.length > 0 ? (s(!0), g(J, { key: 0 }, ve(e.rows, (i) => (s(), P(na, { key: i }, {
|
|
13887
13892
|
default: x(() => [
|
|
13888
|
-
e.showSelectionCell ? (s(), P(
|
|
13893
|
+
e.showSelectionCell ? (s(), P(Pl, {
|
|
13889
13894
|
key: 0,
|
|
13890
13895
|
class: "vc-data-table__selection-cell",
|
|
13891
13896
|
"line-clamp": 0
|
|
@@ -13899,7 +13904,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13899
13904
|
]),
|
|
13900
13905
|
_: 1
|
|
13901
13906
|
})) : L("", !0),
|
|
13902
|
-
(s(!0), g(J, null, ve(e.columns, (o) => (s(), P(
|
|
13907
|
+
(s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Pl, {
|
|
13903
13908
|
key: o.props.id,
|
|
13904
13909
|
width: e.getColumnWidth(o.props),
|
|
13905
13910
|
style: he(e.getCellStyle(o.props)),
|
|
@@ -14573,7 +14578,7 @@ const d1 = {
|
|
|
14573
14578
|
function ae(re) {
|
|
14574
14579
|
l("action", re, t.item, t.index);
|
|
14575
14580
|
}
|
|
14576
|
-
return
|
|
14581
|
+
return et(() => {
|
|
14577
14582
|
c.value && (c.value.addEventListener("touchstart", de, { passive: !0 }), c.value.addEventListener("touchmove", Y, { passive: !1 }), c.value.addEventListener("touchend", q, { passive: !0 }));
|
|
14578
14583
|
}), He(() => {
|
|
14579
14584
|
c.value && (c.value.removeEventListener("touchstart", de), c.value.removeEventListener("touchmove", Y), c.value.removeEventListener("touchend", q)), k.value !== null && cancelAnimationFrame(k.value), u.value && clearTimeout(u.value);
|
|
@@ -14644,7 +14649,7 @@ const d1 = {
|
|
|
14644
14649
|
class: "vc-data-table-mobile-card__checkbox",
|
|
14645
14650
|
onClick: ue(G, ["stop"])
|
|
14646
14651
|
}, [
|
|
14647
|
-
$(n(
|
|
14652
|
+
$(n(Jl), {
|
|
14648
14653
|
"model-value": e.isSelected,
|
|
14649
14654
|
disabled: !e.isSelectable,
|
|
14650
14655
|
size: "m"
|
|
@@ -14898,7 +14903,7 @@ function T1(e) {
|
|
|
14898
14903
|
mobileVisibleColumns: t
|
|
14899
14904
|
};
|
|
14900
14905
|
}
|
|
14901
|
-
const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc-pull-to-refresh__text" }, L1 = 0.08, I1 = 0.7, x1 = 1,
|
|
14906
|
+
const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc-pull-to-refresh__text" }, L1 = 0.08, I1 = 0.7, x1 = 1, $n = 60, N1 = /* @__PURE__ */ Q({
|
|
14902
14907
|
__name: "PullToRefresh",
|
|
14903
14908
|
props: {
|
|
14904
14909
|
enabled: { type: Boolean, default: !0 },
|
|
@@ -14914,7 +14919,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
14914
14919
|
"vc-pull-to-refresh__icon--rotate": v.value && !l.refreshing,
|
|
14915
14920
|
"vc-pull-to-refresh__icon--spin": l.refreshing
|
|
14916
14921
|
})), I = y(() => l.refreshing ? l.refreshingText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.REFRESHING") : v.value ? l.releaseText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.RELEASE_TO_REFRESH") : l.pullText ?? r("COMPONENTS.ORGANISMS.VC_TABLE.PULL_TO_REFRESH")), V = y(() => ({
|
|
14917
|
-
transform: `translateY(${Math.min(d.value,
|
|
14922
|
+
transform: `translateY(${Math.min(d.value, $n + 20) - $n}px)`,
|
|
14918
14923
|
opacity: Math.min(d.value / l.threshold, 1)
|
|
14919
14924
|
})), B = y(() => ({
|
|
14920
14925
|
transform: `translateY(${d.value}px)`
|
|
@@ -14963,7 +14968,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
14963
14968
|
Y = Math.min(Y, q), d.value = Y, v.value = Y >= l.threshold;
|
|
14964
14969
|
}
|
|
14965
14970
|
function _() {
|
|
14966
|
-
u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), M(
|
|
14971
|
+
u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), M($n)) : M(0), v.value = !1);
|
|
14967
14972
|
}
|
|
14968
14973
|
return oe(
|
|
14969
14974
|
() => l.refreshing,
|
|
@@ -15172,7 +15177,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
15172
15177
|
}
|
|
15173
15178
|
});
|
|
15174
15179
|
function v$() {
|
|
15175
|
-
return Ce(
|
|
15180
|
+
return Ce(Ul, null);
|
|
15176
15181
|
}
|
|
15177
15182
|
const aa = 40;
|
|
15178
15183
|
function U1(e) {
|
|
@@ -15302,7 +15307,7 @@ function q1(e, a) {
|
|
|
15302
15307
|
d[u] = c > 0 ? r[u] / c : 1 / e.length;
|
|
15303
15308
|
return d;
|
|
15304
15309
|
}
|
|
15305
|
-
function
|
|
15310
|
+
function Rn(e, a) {
|
|
15306
15311
|
const t = a.reduce((l, r) => l + (e[r]?.weight ?? 0), 0);
|
|
15307
15312
|
if (t <= 0) {
|
|
15308
15313
|
const l = 1 / a.length;
|
|
@@ -15540,7 +15545,7 @@ function j1(e, a, t) {
|
|
|
15540
15545
|
pendingReorder: i
|
|
15541
15546
|
};
|
|
15542
15547
|
}
|
|
15543
|
-
function
|
|
15548
|
+
function An(e) {
|
|
15544
15549
|
try {
|
|
15545
15550
|
return structuredClone(co(e));
|
|
15546
15551
|
} catch {
|
|
@@ -15561,12 +15566,12 @@ function X1(e) {
|
|
|
15561
15566
|
Z.delete(K), C.value = Z;
|
|
15562
15567
|
}
|
|
15563
15568
|
}, T = (K, Z) => `${K}:${Z}`, I = () => {
|
|
15564
|
-
c = a.value.map((K) =>
|
|
15569
|
+
c = a.value.map((K) => An(K)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !0;
|
|
15565
15570
|
}, V = () => {
|
|
15566
|
-
a.value.splice(0, a.value.length, ...c.map((K) =>
|
|
15571
|
+
a.value.splice(0, a.value.length, ...c.map((K) => An(K))), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
|
|
15567
15572
|
}, B = async () => {
|
|
15568
15573
|
const { valid: K } = await h();
|
|
15569
|
-
K && (r && await r(_.value), c = a.value.map((Z) =>
|
|
15574
|
+
K && (r && await r(_.value), c = a.value.map((Z) => An(Z)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
|
|
15570
15575
|
}, O = (K, Z, de) => {
|
|
15571
15576
|
if (K < 0 || K >= a.value.length) return;
|
|
15572
15577
|
const Y = T(K, Z), q = a.value[K];
|
|
@@ -15703,7 +15708,7 @@ function f$(e) {
|
|
|
15703
15708
|
(M, R) => {
|
|
15704
15709
|
R > 0 && M !== R && (m = { start: -1, end: -1 });
|
|
15705
15710
|
}
|
|
15706
|
-
),
|
|
15711
|
+
), et(() => {
|
|
15707
15712
|
B(), window.addEventListener("resize", O);
|
|
15708
15713
|
}), He(() => {
|
|
15709
15714
|
window.removeEventListener("resize", O), p && clearTimeout(p);
|
|
@@ -16278,7 +16283,7 @@ function aC(e) {
|
|
|
16278
16283
|
for (const ae of E)
|
|
16279
16284
|
z.has(ae.props.id) || (ee.order.push(ae.props.id), ee.specs[ae.props.id] = I(ae.props, ne, ke));
|
|
16280
16285
|
const W = N.filter((ae) => ee.specs[ae]);
|
|
16281
|
-
|
|
16286
|
+
Rn(ee.specs, W), i.value = ee;
|
|
16282
16287
|
}
|
|
16283
16288
|
else if (Z.length > 0) {
|
|
16284
16289
|
const ee = { ...i.value };
|
|
@@ -16286,13 +16291,13 @@ function aC(e) {
|
|
|
16286
16291
|
const G = N.filter((W) => ee.specs[W] && !Z.includes(W)), ke = G.length > 0 ? G.reduce((W, ae) => W + ee.specs[ae].weight, 0) / G.length : 1 / N.length;
|
|
16287
16292
|
for (const W of Z)
|
|
16288
16293
|
ee.specs[W] && (ee.specs[W] = { ...ee.specs[W], weight: ke });
|
|
16289
|
-
|
|
16294
|
+
Rn(
|
|
16290
16295
|
ee.specs,
|
|
16291
16296
|
N.filter((W) => ee.specs[W])
|
|
16292
16297
|
), i.value = ee;
|
|
16293
16298
|
} else if (de.length > 0) {
|
|
16294
16299
|
const ee = { ...i.value };
|
|
16295
|
-
ee.specs = { ...ee.specs },
|
|
16300
|
+
ee.specs = { ...ee.specs }, Rn(
|
|
16296
16301
|
ee.specs,
|
|
16297
16302
|
N.filter((G) => ee.specs[G])
|
|
16298
16303
|
), i.value = ee;
|
|
@@ -16650,7 +16655,7 @@ function uC(e) {
|
|
|
16650
16655
|
}, Mt = D(null), Lt = () => {
|
|
16651
16656
|
const j = me();
|
|
16652
16657
|
Mt.value && Object.assign(j, Mt.value), t("filter", { filters: j, filteredValue: a.items });
|
|
16653
|
-
},
|
|
16658
|
+
}, ln = (j, ge) => {
|
|
16654
16659
|
const pe = Re(j), Oe = Ee(j);
|
|
16655
16660
|
if (pe === "dateRange") {
|
|
16656
16661
|
const Be = at(j);
|
|
@@ -16663,7 +16668,7 @@ function uC(e) {
|
|
|
16663
16668
|
re(Oe, Be);
|
|
16664
16669
|
}
|
|
16665
16670
|
Lt();
|
|
16666
|
-
},
|
|
16671
|
+
}, nn = (j) => {
|
|
16667
16672
|
const ge = Ee(j);
|
|
16668
16673
|
if (Re(j) === "dateRange") {
|
|
16669
16674
|
const Oe = at(j);
|
|
@@ -16674,9 +16679,9 @@ function uC(e) {
|
|
|
16674
16679
|
} else
|
|
16675
16680
|
te(ge);
|
|
16676
16681
|
Lt();
|
|
16677
|
-
}, ul = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []),
|
|
16682
|
+
}, ul = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []), an = (j) => ul.value.indexOf(j), on = y(() => E.orderedVisibleColumns.value.filter(
|
|
16678
16683
|
(j) => j != null && j.props != null && j.props.id != null
|
|
16679
|
-
)), { handleResizeStart:
|
|
16684
|
+
)), { handleResizeStart: sn } = K1({
|
|
16680
16685
|
columnState: E.columnState,
|
|
16681
16686
|
engineOutput: E.engineOutput,
|
|
16682
16687
|
recompute: E.recompute,
|
|
@@ -16690,7 +16695,7 @@ function uC(e) {
|
|
|
16690
16695
|
containerEl: u
|
|
16691
16696
|
}), {
|
|
16692
16697
|
isDragging: Wt,
|
|
16693
|
-
handleDragStart:
|
|
16698
|
+
handleDragStart: rn,
|
|
16694
16699
|
handleDragOver: Et,
|
|
16695
16700
|
handleDrop: Gt
|
|
16696
16701
|
} = Y1({
|
|
@@ -16731,15 +16736,15 @@ function uC(e) {
|
|
|
16731
16736
|
isColumnFilterMultiple: st,
|
|
16732
16737
|
getColumnRangeFields: at,
|
|
16733
16738
|
getColumnFilterValue: kt,
|
|
16734
|
-
handleColumnFilterApply:
|
|
16735
|
-
handleColumnFilterClear:
|
|
16739
|
+
handleColumnFilterApply: ln,
|
|
16740
|
+
handleColumnFilterClear: nn,
|
|
16736
16741
|
emitFilterPayload: Lt,
|
|
16737
16742
|
// Global filter
|
|
16738
16743
|
globalFilterPayload: Mt,
|
|
16739
16744
|
// Resize / reorder
|
|
16740
|
-
handleResizeStart:
|
|
16745
|
+
handleResizeStart: sn,
|
|
16741
16746
|
isColumnReordering: Wt,
|
|
16742
|
-
handleColumnDragStart:
|
|
16747
|
+
handleColumnDragStart: rn,
|
|
16743
16748
|
handleColumnDragOver: Et,
|
|
16744
16749
|
handleColumnDrop: Gt,
|
|
16745
16750
|
// Row reorder
|
|
@@ -16750,7 +16755,7 @@ function uC(e) {
|
|
|
16750
16755
|
rowReorderListRef: q,
|
|
16751
16756
|
// Derived computeds
|
|
16752
16757
|
displayItems: ul,
|
|
16753
|
-
getGlobalIndex:
|
|
16758
|
+
getGlobalIndex: an,
|
|
16754
16759
|
effectiveSelectionMode: p,
|
|
16755
16760
|
selectionColumn: v,
|
|
16756
16761
|
hasSelectionColumn: b,
|
|
@@ -16760,7 +16765,7 @@ function uC(e) {
|
|
|
16760
16765
|
computedVariant: h,
|
|
16761
16766
|
switcherColumns: F,
|
|
16762
16767
|
switcherVisibleColumnIds: z,
|
|
16763
|
-
safeColumns:
|
|
16768
|
+
safeColumns: on,
|
|
16764
16769
|
isInlineEditing: R,
|
|
16765
16770
|
// Expansion helper
|
|
16766
16771
|
isRowExpanded: V,
|
|
@@ -16948,7 +16953,7 @@ const m$ = {
|
|
|
16948
16953
|
}, pC = {
|
|
16949
16954
|
key: 0,
|
|
16950
16955
|
class: "vc-data-table__mobile-select-toolbar"
|
|
16951
|
-
}, gC = { class: "vc-data-table__mobile-select-toolbar-text" }, bC = { class: "vc-data-table__page-info" },
|
|
16956
|
+
}, gC = { class: "vc-data-table__mobile-select-toolbar-text" }, bC = { class: "vc-data-table__page-info" }, Tn = 37, Ja = 140, hC = /* @__PURE__ */ Q({
|
|
16952
16957
|
inheritAttrs: !1,
|
|
16953
16958
|
__name: "VcDataTable",
|
|
16954
16959
|
props: {
|
|
@@ -17134,30 +17139,30 @@ const m$ = {
|
|
|
17134
17139
|
// Global filter payload (owned by component UI state; orchestrator wires it)
|
|
17135
17140
|
globalFilterPayload: Lt,
|
|
17136
17141
|
// Resize / reorder
|
|
17137
|
-
handleResizeStart:
|
|
17138
|
-
isColumnReordering:
|
|
17142
|
+
handleResizeStart: ln,
|
|
17143
|
+
isColumnReordering: nn,
|
|
17139
17144
|
handleColumnDragStart: ul,
|
|
17140
|
-
handleColumnDragOver:
|
|
17141
|
-
handleColumnDrop:
|
|
17145
|
+
handleColumnDragOver: an,
|
|
17146
|
+
handleColumnDrop: on,
|
|
17142
17147
|
// Row reorder state
|
|
17143
|
-
rowReorderListRef:
|
|
17148
|
+
rowReorderListRef: sn,
|
|
17144
17149
|
// Derived computeds
|
|
17145
17150
|
displayItems: Wt,
|
|
17146
|
-
getGlobalIndex:
|
|
17151
|
+
getGlobalIndex: rn,
|
|
17147
17152
|
effectiveSelectionMode: Et,
|
|
17148
17153
|
hasSelectionColumn: Gt,
|
|
17149
17154
|
isSelectionViaColumn: qt,
|
|
17150
17155
|
isRowReorderEnabled: dl,
|
|
17151
17156
|
showRowDragHandle: It,
|
|
17152
|
-
hasExpanderColumn:
|
|
17157
|
+
hasExpanderColumn: cn,
|
|
17153
17158
|
computedVariant: ia,
|
|
17154
17159
|
switcherColumns: sa,
|
|
17155
17160
|
switcherVisibleColumnIds: ra,
|
|
17156
17161
|
safeColumns: vl,
|
|
17157
17162
|
isInlineEditing: fl,
|
|
17158
17163
|
// Expansion helper
|
|
17159
|
-
isRowExpanded:
|
|
17160
|
-
canExpand:
|
|
17164
|
+
isRowExpanded: un,
|
|
17165
|
+
canExpand: dn,
|
|
17161
17166
|
// Event handlers
|
|
17162
17167
|
handleSort: ca,
|
|
17163
17168
|
handleRowClick: ua,
|
|
@@ -17168,7 +17173,7 @@ const m$ = {
|
|
|
17168
17173
|
handleCellClick: ma,
|
|
17169
17174
|
handleCellEditComplete: pa,
|
|
17170
17175
|
handleCellEditCancel: ga,
|
|
17171
|
-
handleCellValueChange:
|
|
17176
|
+
handleCellValueChange: vn,
|
|
17172
17177
|
handleExpandToggle: j,
|
|
17173
17178
|
handleStartRowEdit: ge,
|
|
17174
17179
|
handleSaveRowEdit: pe,
|
|
@@ -17189,11 +17194,11 @@ const m$ = {
|
|
|
17189
17194
|
tableContainerRef: ne
|
|
17190
17195
|
}), Ke = D(null), ba = D(null);
|
|
17191
17196
|
Hn(() => {
|
|
17192
|
-
|
|
17197
|
+
sn.value = B.value ? ba.value?.listEl : Ke.value?.listEl;
|
|
17193
17198
|
}), De(
|
|
17194
17199
|
$o,
|
|
17195
17200
|
y(() => ie.engineOutput.value.fillerWidth)
|
|
17196
|
-
), De(Ro,
|
|
17201
|
+
), De(Ro, nn);
|
|
17197
17202
|
const ha = (ce) => {
|
|
17198
17203
|
r("pagination-click", ce);
|
|
17199
17204
|
}, Yt = D(l.searchValue ?? "");
|
|
@@ -17213,7 +17218,7 @@ const m$ = {
|
|
|
17213
17218
|
if (!l.infiniteScroll || l.loading) return;
|
|
17214
17219
|
const be = ce.target, _e = l.infiniteScrollDistance ?? 100;
|
|
17215
17220
|
be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
|
|
17216
|
-
},
|
|
17221
|
+
}, fn = y(() => l.addRow?.enabled === !0), ya = y(() => l.addRow?.position ?? "footer"), mn = y(() => l.addRow?.label ?? "Add row"), pn = y(() => l.addRow?.icon ?? "lucide-plus"), Ai = (ce) => {
|
|
17217
17222
|
}, Ti = () => {
|
|
17218
17223
|
}, ml = D(!1), pl = D({}), wa = D(null), Oi = y(() => {
|
|
17219
17224
|
const ce = wa.value;
|
|
@@ -17261,8 +17266,8 @@ const m$ = {
|
|
|
17261
17266
|
reorderable: dl.value,
|
|
17262
17267
|
showDragHandle: It.value,
|
|
17263
17268
|
// Expansion
|
|
17264
|
-
expandable:
|
|
17265
|
-
isExpanded:
|
|
17269
|
+
expandable: cn.value && dn(ce),
|
|
17270
|
+
isExpanded: un(ce),
|
|
17266
17271
|
expandedIcon: l.expandedRowIcon,
|
|
17267
17272
|
collapsedIcon: l.collapsedRowIcon,
|
|
17268
17273
|
// Editing
|
|
@@ -17281,9 +17286,9 @@ const m$ = {
|
|
|
17281
17286
|
rowClass: l.rowClass?.(ce)
|
|
17282
17287
|
}), { width: gl } = No(ee), Di = y(() => {
|
|
17283
17288
|
if (!l.pagination || gl.value === 0) return 5;
|
|
17284
|
-
const ce = gl.value - Ja, be = Math.floor((ce - 2 *
|
|
17289
|
+
const ce = gl.value - Ja, be = Math.floor((ce - 2 * Tn) / Tn);
|
|
17285
17290
|
return be >= 7 ? 5 : be >= 3 ? be : 0;
|
|
17286
|
-
}), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 *
|
|
17291
|
+
}), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * Tn);
|
|
17287
17292
|
return a({
|
|
17288
17293
|
// Selection API (public keys unchanged; sourced from the selection facade)
|
|
17289
17294
|
selectAll: G.selectAll,
|
|
@@ -17357,10 +17362,10 @@ const m$ = {
|
|
|
17357
17362
|
"onUpdate:show": be[3] || (be[3] = (_e) => Xt.value = _e),
|
|
17358
17363
|
onReset: n(fa)
|
|
17359
17364
|
}, null, 8, ["columns", "visible-columns", "show", "anchor-ref", "onUpdate:visibleColumns", "onReset"])) : L("", !0),
|
|
17360
|
-
|
|
17365
|
+
fn.value && ya.value === "header" ? (s(), P(n(Sn), {
|
|
17361
17366
|
key: 4,
|
|
17362
|
-
label:
|
|
17363
|
-
icon:
|
|
17367
|
+
label: mn.value,
|
|
17368
|
+
icon: pn.value,
|
|
17364
17369
|
onAdd: be[4] || (be[4] = (_e) => n(Kt)())
|
|
17365
17370
|
}, null, 8, ["label", "icon"])) : L("", !0),
|
|
17366
17371
|
H(ce.$slots, "selection-banner", {
|
|
@@ -17405,15 +17410,15 @@ const m$ = {
|
|
|
17405
17410
|
"pull-to-refresh-text": e.pullToRefreshText,
|
|
17406
17411
|
"is-inline-editing": n(fl),
|
|
17407
17412
|
"new-row-indices": n(re).newRowIndices.value,
|
|
17408
|
-
"can-expand-row": (_e) => n(
|
|
17409
|
-
"is-row-expanded": n(
|
|
17413
|
+
"can-expand-row": (_e) => n(cn) && n(dn)(_e),
|
|
17414
|
+
"is-row-expanded": n(un),
|
|
17410
17415
|
"expanded-icon": e.expandedRowIcon,
|
|
17411
17416
|
"expand-label": ce.$t("COMPONENTS.ORGANISMS.VC_TABLE.EXPAND_ROW"),
|
|
17412
17417
|
onClick: n(ot),
|
|
17413
17418
|
onSelect: n(Je),
|
|
17414
17419
|
onAction: n(it),
|
|
17415
17420
|
onRefresh: be[10] || (be[10] = (_e) => r("pull-refresh")),
|
|
17416
|
-
onCellValueChange: be[11] || (be[11] = (_e, Me, Ye) => n(
|
|
17421
|
+
onCellValueChange: be[11] || (be[11] = (_e, Me, Ye) => n(vn)(_e, Me, Ye)),
|
|
17417
17422
|
onExpandToggle: be[12] || (be[12] = (_e, Me, Ye) => n(j)(_e, Me, Ye))
|
|
17418
17423
|
}, Ne({
|
|
17419
17424
|
empty: x(() => [
|
|
@@ -17439,10 +17444,10 @@ const m$ = {
|
|
|
17439
17444
|
key: "0"
|
|
17440
17445
|
} : void 0
|
|
17441
17446
|
]), 1032, ["items", "reorderable", "columns", "selection", "selection-mode", "is-row-selectable", "row-actions", "loading", "data-key", "pull-to-refresh", "pull-to-refresh-text", "is-inline-editing", "new-row-indices", "can-expand-row", "is-row-expanded", "expanded-icon", "expand-label", "onClick", "onSelect", "onAction"]),
|
|
17442
|
-
|
|
17447
|
+
fn.value ? (s(), P(n(Sn), {
|
|
17443
17448
|
key: 1,
|
|
17444
|
-
label:
|
|
17445
|
-
icon:
|
|
17449
|
+
label: mn.value,
|
|
17450
|
+
icon: pn.value,
|
|
17446
17451
|
onAdd: be[13] || (be[13] = (_e) => n(Kt)())
|
|
17447
17452
|
}, null, 8, ["label", "icon"])) : L("", !0)
|
|
17448
17453
|
])) : (s(), g("div", {
|
|
@@ -17485,10 +17490,10 @@ const m$ = {
|
|
|
17485
17490
|
"actions-position": e.rowActionsPosition,
|
|
17486
17491
|
onSelectAll: n(G).onSelectAll,
|
|
17487
17492
|
onSort: n(ca),
|
|
17488
|
-
onResizeStart: n(
|
|
17493
|
+
onResizeStart: n(ln),
|
|
17489
17494
|
onReorderStart: n(ul),
|
|
17490
|
-
onReorderOver: n(
|
|
17491
|
-
onReorderDrop: be[5] || (be[5] = (_e, Me) => n(
|
|
17495
|
+
onReorderOver: n(an),
|
|
17496
|
+
onReorderDrop: be[5] || (be[5] = (_e, Me) => n(on)(Me)),
|
|
17492
17497
|
onFilterApply: n(at),
|
|
17493
17498
|
onFilterClear: n(kt),
|
|
17494
17499
|
onColumnSwitcherClick: be[6] || (be[6] = (_e) => Xt.value = !Xt.value)
|
|
@@ -17514,7 +17519,7 @@ const m$ = {
|
|
|
17514
17519
|
"expandable-row-groups": e.expandableRowGroups,
|
|
17515
17520
|
"is-group-expanded": n(ae).isGroupExpanded,
|
|
17516
17521
|
"get-item-group-key": n(ae).getItemGroupKey,
|
|
17517
|
-
"get-global-index": n(
|
|
17522
|
+
"get-global-index": n(rn),
|
|
17518
17523
|
"get-item-key": Y,
|
|
17519
17524
|
"new-row-indices": n(re).newRowIndices.value,
|
|
17520
17525
|
"get-row-props": Ni,
|
|
@@ -17530,7 +17535,7 @@ const m$ = {
|
|
|
17530
17535
|
onRowCancel: n(Oe),
|
|
17531
17536
|
onEditComplete: n(pa),
|
|
17532
17537
|
onEditCancel: n(ga),
|
|
17533
|
-
onCellValueChange: n(
|
|
17538
|
+
onCellValueChange: n(vn),
|
|
17534
17539
|
onCellClick: n(ma)
|
|
17535
17540
|
}, Ne({
|
|
17536
17541
|
"row-actions": x(({ item: _e, index: Me }) => [
|
|
@@ -17593,10 +17598,10 @@ const m$ = {
|
|
|
17593
17598
|
]),
|
|
17594
17599
|
_: 3
|
|
17595
17600
|
})) : L("", !0),
|
|
17596
|
-
|
|
17601
|
+
fn.value && ya.value === "footer" ? (s(), P(n(Sn), {
|
|
17597
17602
|
key: 1,
|
|
17598
|
-
label:
|
|
17599
|
-
icon:
|
|
17603
|
+
label: mn.value,
|
|
17604
|
+
icon: pn.value,
|
|
17600
17605
|
onAdd: be[9] || (be[9] = (_e) => n(Kt)())
|
|
17601
17606
|
}, null, 8, ["label", "icon"])) : L("", !0)
|
|
17602
17607
|
]),
|
|
@@ -18188,7 +18193,7 @@ function DC(e) {
|
|
|
18188
18193
|
function Bt(e) {
|
|
18189
18194
|
return e ? eo[DC(e) % eo.length] : "var(--primary-500)";
|
|
18190
18195
|
}
|
|
18191
|
-
const
|
|
18196
|
+
const On = "#ffffff", Ci = "#18181b";
|
|
18192
18197
|
function _i(e) {
|
|
18193
18198
|
const a = e.trim(), t = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(a);
|
|
18194
18199
|
if (t) {
|
|
@@ -18207,11 +18212,11 @@ function ki([e, a, t]) {
|
|
|
18207
18212
|
}
|
|
18208
18213
|
const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), BC = ki(_i(Ci));
|
|
18209
18214
|
function Ei(e) {
|
|
18210
|
-
if (!e) return
|
|
18215
|
+
if (!e) return On;
|
|
18211
18216
|
const a = _i(e);
|
|
18212
|
-
if (!a) return
|
|
18217
|
+
if (!a) return On;
|
|
18213
18218
|
const t = ki(a);
|
|
18214
|
-
return to(t, 1) >= to(t, BC) ?
|
|
18219
|
+
return to(t, 1) >= to(t, BC) ? On : Ci;
|
|
18215
18220
|
}
|
|
18216
18221
|
function Vn(e, a) {
|
|
18217
18222
|
return a ? {
|
|
@@ -18554,7 +18559,7 @@ const o_ = { class: "vc-scheduler__qi-title" }, i_ = ["aria-label", "onClick"],
|
|
|
18554
18559
|
const k = Te(f.start, "PPP"), C = new Date(f.end.getTime() - 1), S = Te(C, "PPP");
|
|
18555
18560
|
return k === S ? k : `${k} – ${S}`;
|
|
18556
18561
|
}
|
|
18557
|
-
return
|
|
18562
|
+
return Wl(f.start, f.end) ? `${Te(f.start, "PPP")} · ${Te(f.start, "p")} – ${Te(f.end, "p")}` : `${Te(f.start, "PPP p")} – ${Te(f.end, "PPP p")}`;
|
|
18558
18563
|
}), u = y(() => {
|
|
18559
18564
|
const f = t.event;
|
|
18560
18565
|
if (!f) return "";
|
|
@@ -18769,14 +18774,14 @@ function w_(e) {
|
|
|
18769
18774
|
function u(h) {
|
|
18770
18775
|
if (!e.editable.value) return;
|
|
18771
18776
|
const f = Ge(h);
|
|
18772
|
-
t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end:
|
|
18777
|
+
t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: tt(f, 1) };
|
|
18773
18778
|
}
|
|
18774
18779
|
function v(h, f) {
|
|
18775
18780
|
if (!t || !a.value) return;
|
|
18776
18781
|
const k = e.dayFromPoint(h, f);
|
|
18777
18782
|
if (!k) return;
|
|
18778
18783
|
if (t.kind === "create") {
|
|
18779
|
-
const T = Ge(k).getTime(), I = Math.min(r, T), V =
|
|
18784
|
+
const T = Ge(k).getTime(), I = Math.min(r, T), V = tt(new Date(Math.max(r, T)), 1);
|
|
18780
18785
|
a.value = { id: "__new__", start: new Date(I), end: V };
|
|
18781
18786
|
return;
|
|
18782
18787
|
}
|
|
@@ -18831,11 +18836,11 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18831
18836
|
emits: ["event-click", "create-intent", "event-update", "edit-intent", "event-delete"],
|
|
18832
18837
|
setup(e, { emit: a }) {
|
|
18833
18838
|
const t = e, l = a, r = D(null), i = y(() => {
|
|
18834
|
-
const te = t.firstDayOfWeek % 7, me = At(
|
|
18835
|
-
return { start: me, end:
|
|
18839
|
+
const te = t.firstDayOfWeek % 7, me = At(Gl(t.focusedDate), { weekStartsOn: te });
|
|
18840
|
+
return { start: me, end: tt(me, 42) };
|
|
18836
18841
|
}), o = y(
|
|
18837
18842
|
() => Array.from({ length: 42 }, (te, me) => {
|
|
18838
|
-
const se =
|
|
18843
|
+
const se = tt(i.value.start, me);
|
|
18839
18844
|
return {
|
|
18840
18845
|
date: se,
|
|
18841
18846
|
inMonth: Vo(se, t.focusedDate),
|
|
@@ -18844,7 +18849,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18844
18849
|
};
|
|
18845
18850
|
})
|
|
18846
18851
|
), c = y(
|
|
18847
|
-
() => Array.from({ length: 7 }, (te, me) => Te(
|
|
18852
|
+
() => Array.from({ length: 7 }, (te, me) => Te(tt(i.value.start, me), "EEEEEE"))
|
|
18848
18853
|
);
|
|
18849
18854
|
function d(te, me) {
|
|
18850
18855
|
const se = r.value;
|
|
@@ -18852,7 +18857,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18852
18857
|
const ye = se.getBoundingClientRect();
|
|
18853
18858
|
if (ye.width <= 0 || ye.height <= 0) return null;
|
|
18854
18859
|
const Ee = Math.floor((te - ye.left) / ye.width * 7), Re = Math.floor((me - ye.top) / ye.height * 6);
|
|
18855
|
-
return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null :
|
|
18860
|
+
return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null : tt(i.value.start, Re * 7 + Ee);
|
|
18856
18861
|
}
|
|
18857
18862
|
const u = w_({
|
|
18858
18863
|
editable: Ie(t, "editable"),
|
|
@@ -18895,7 +18900,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18895
18900
|
const se = O.get(me);
|
|
18896
18901
|
if (O.delete(me), !se) return;
|
|
18897
18902
|
const ye = Ge(se.date);
|
|
18898
|
-
l("create-intent", { start: ye, end:
|
|
18903
|
+
l("create-intent", { start: ye, end: tt(ye, 1), allDay: !0, anchorRect: se.rect, kind: te });
|
|
18899
18904
|
}
|
|
18900
18905
|
});
|
|
18901
18906
|
function R(te, me) {
|
|
@@ -18910,7 +18915,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18910
18915
|
function E(te) {
|
|
18911
18916
|
if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !B)) {
|
|
18912
18917
|
const me = d(te.clientX, te.clientY);
|
|
18913
|
-
me && !
|
|
18918
|
+
me && !Wl(me, I) && (B = !0);
|
|
18914
18919
|
}
|
|
18915
18920
|
}
|
|
18916
18921
|
function N() {
|
|
@@ -19083,15 +19088,15 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
19083
19088
|
emits: ["event-click", "create-intent", "edit-intent", "event-delete"],
|
|
19084
19089
|
setup(e, { emit: a }) {
|
|
19085
19090
|
const { t } = ze(), l = e, r = a, i = (m) => m.allDay !== void 0 ? m.allDay : m.end.getTime() - m.start.getTime() >= 864e5, o = y(() => {
|
|
19086
|
-
const m =
|
|
19087
|
-
for (let k = Ge(m); k <= h; k =
|
|
19088
|
-
const C = k.getTime(), S =
|
|
19091
|
+
const m = Gl(l.focusedDate), h = mc(l.focusedDate), f = [];
|
|
19092
|
+
for (let k = Ge(m); k <= h; k = tt(k, 1)) {
|
|
19093
|
+
const C = k.getTime(), S = tt(k, 1).getTime(), T = l.events.filter((I) => I.start.getTime() < S && I.end.getTime() > C).sort((I, V) => Number(i(V)) - Number(i(I)) || I.start.getTime() - V.start.getTime());
|
|
19089
19094
|
T.length && f.push({ key: Te(k, "yyyy-MM-dd"), date: new Date(k), isToday: Xn(k), events: T });
|
|
19090
19095
|
}
|
|
19091
19096
|
return f;
|
|
19092
19097
|
});
|
|
19093
19098
|
function c(m) {
|
|
19094
|
-
return i(m) ? t("VC_SCHEDULER.ALL_DAY") :
|
|
19099
|
+
return i(m) ? t("VC_SCHEDULER.ALL_DAY") : Wl(m.start, m.end) ? Te(m.start, "p") : Te(m.start, "MMM d, p");
|
|
19095
19100
|
}
|
|
19096
19101
|
function d(m, h) {
|
|
19097
19102
|
const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Dt(k, f) + 1;
|
|
@@ -19187,7 +19192,7 @@ function H_(e) {
|
|
|
19187
19192
|
function W_(e) {
|
|
19188
19193
|
const a = y(() => Math.max(1, e.dayCount.value)), t = y(() => Math.max(1, e.endHour.value - e.startHour.value)), l = y(() => t.value * e.hourHeight.value), r = y(() => {
|
|
19189
19194
|
const p = Ge(e.rangeStart.value);
|
|
19190
|
-
return Array.from({ length: a.value }, (m, h) =>
|
|
19195
|
+
return Array.from({ length: a.value }, (m, h) => tt(p, h));
|
|
19191
19196
|
}), i = y(
|
|
19192
19197
|
() => r.value.map((p, m) => ({
|
|
19193
19198
|
date: p,
|
|
@@ -19338,7 +19343,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19338
19343
|
};
|
|
19339
19344
|
}
|
|
19340
19345
|
const h = D(null);
|
|
19341
|
-
|
|
19346
|
+
et(() => {
|
|
19342
19347
|
const R = h.value;
|
|
19343
19348
|
if (!R) return;
|
|
19344
19349
|
const _ = v.timedByColumn.value.flat().reduce((E, N) => E === null ? N.top : Math.min(E, N.top), null) ?? Math.max(0, (8 - o.value) * Nt);
|
|
@@ -19346,7 +19351,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19346
19351
|
});
|
|
19347
19352
|
const f = D(Date.now());
|
|
19348
19353
|
let k;
|
|
19349
|
-
|
|
19354
|
+
et(() => {
|
|
19350
19355
|
k = setInterval(() => f.value = Date.now(), 6e4);
|
|
19351
19356
|
}), Rt(() => {
|
|
19352
19357
|
k && clearInterval(k);
|
|
@@ -19636,7 +19641,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19636
19641
|
]), b = y(() => {
|
|
19637
19642
|
const A = At(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
|
|
19638
19643
|
return Array.from({ length: 7 }, (_, E) => {
|
|
19639
|
-
const N =
|
|
19644
|
+
const N = tt(A, E);
|
|
19640
19645
|
return { value: E, label: Te(N, "EEEEE"), fullLabel: Te(N, "EEEE") };
|
|
19641
19646
|
});
|
|
19642
19647
|
}), p = y(() => {
|
|
@@ -19721,14 +19726,14 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19721
19726
|
"onUpdate:modelValue": _[1] || (_[1] = (E) => o.allDay = !!E)
|
|
19722
19727
|
}, null, 8, ["model-value", "label"]),
|
|
19723
19728
|
w("div", fk, [
|
|
19724
|
-
$(n(
|
|
19729
|
+
$(n(gn), {
|
|
19725
19730
|
"model-value": o.start,
|
|
19726
19731
|
type: c.value,
|
|
19727
19732
|
label: A.$t("VC_SCHEDULER.START"),
|
|
19728
19733
|
class: "vc-scheduler__editor-field",
|
|
19729
19734
|
"onUpdate:modelValue": _[2] || (_[2] = (E) => E && (o.start = E))
|
|
19730
19735
|
}, null, 8, ["model-value", "type", "label"]),
|
|
19731
|
-
$(n(
|
|
19736
|
+
$(n(gn), {
|
|
19732
19737
|
"model-value": o.end,
|
|
19733
19738
|
type: c.value,
|
|
19734
19739
|
label: A.$t("VC_SCHEDULER.END"),
|
|
@@ -19807,7 +19812,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19807
19812
|
"data-test": "recur-end-type",
|
|
19808
19813
|
"onUpdate:modelValue": _[7] || (_[7] = (E) => I(E))
|
|
19809
19814
|
}, null, 8, ["model-value", "label", "options"]),
|
|
19810
|
-
m.value === "until" ? (s(), P(n(
|
|
19815
|
+
m.value === "until" ? (s(), P(n(gn), {
|
|
19811
19816
|
key: 0,
|
|
19812
19817
|
"model-value": h.value,
|
|
19813
19818
|
type: "date",
|
|
@@ -19983,7 +19988,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19983
19988
|
});
|
|
19984
19989
|
function Mk(e) {
|
|
19985
19990
|
const a = () => ({ weekStartsOn: e.firstDayOfWeek.value % 7 }), t = y(() => {
|
|
19986
|
-
const d = At(
|
|
19991
|
+
const d = At(Gl(e.date.value), a()), u = new Date(d.getTime() + 42 * 864e5);
|
|
19987
19992
|
return { start: d, end: u };
|
|
19988
19993
|
}), l = y(() => {
|
|
19989
19994
|
const d = e.date.value;
|
|
@@ -20001,7 +20006,7 @@ function Mk(e) {
|
|
|
20001
20006
|
const u = e.date.value;
|
|
20002
20007
|
switch (e.view.value) {
|
|
20003
20008
|
case "timeline-day":
|
|
20004
|
-
return
|
|
20009
|
+
return tt(u, d);
|
|
20005
20010
|
case "timeline-week":
|
|
20006
20011
|
return gc(u, d);
|
|
20007
20012
|
default:
|
|
@@ -20060,7 +20065,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
|
|
|
20060
20065
|
}
|
|
20061
20066
|
function p() {
|
|
20062
20067
|
const W = Ge(Z.value);
|
|
20063
|
-
b({ start: W, end:
|
|
20068
|
+
b({ start: W, end: tt(W, 1), allDay: !0, anchorRect: null, kind: "double" });
|
|
20064
20069
|
}
|
|
20065
20070
|
function m(W) {
|
|
20066
20071
|
if (t.editorMode === "emit") {
|
|
@@ -20243,14 +20248,14 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
|
|
|
20243
20248
|
}
|
|
20244
20249
|
}), de = y(() => {
|
|
20245
20250
|
const W = Z.value, ae = /* @__PURE__ */ new Date();
|
|
20246
|
-
return z.value === "timeline-day" ?
|
|
20251
|
+
return z.value === "timeline-day" ? Wl(W, ae) : z.value === "timeline-week" ? bc(W, ae, { weekStartsOn: t.firstDayOfWeek % 7 }) : Vo(W, ae);
|
|
20247
20252
|
}), Y = y(() => {
|
|
20248
20253
|
const W = Z.value, ae = t.firstDayOfWeek % 7;
|
|
20249
20254
|
if (z.value === "timeline-day") return { start: Ge(W), end: Po(W) };
|
|
20250
20255
|
if (z.value === "timeline-week")
|
|
20251
20256
|
return { start: At(W, { weekStartsOn: ae }), end: Uo(W, { weekStartsOn: ae }) };
|
|
20252
|
-
const re = At(
|
|
20253
|
-
return { start: re, end:
|
|
20257
|
+
const re = At(Gl(W), { weekStartsOn: ae });
|
|
20258
|
+
return { start: re, end: tt(re, 42) };
|
|
20254
20259
|
}), q = y(() => a_(t.events, Y.value)), ne = y(() => t.loading && q.value.length === 0), ee = y(() => z.value === "month" ? r.value ? "agenda" : "month" : "timeline"), G = Mk({
|
|
20255
20260
|
date: Z,
|
|
20256
20261
|
view: z,
|
|
@@ -20437,13 +20442,13 @@ export {
|
|
|
20437
20442
|
Wo as G,
|
|
20438
20443
|
Ma as H,
|
|
20439
20444
|
xS as I,
|
|
20440
|
-
|
|
20445
|
+
Jl as J,
|
|
20441
20446
|
t$ as K,
|
|
20442
20447
|
NS as L,
|
|
20443
20448
|
DS as M,
|
|
20444
20449
|
hC as N,
|
|
20445
|
-
|
|
20446
|
-
|
|
20450
|
+
jl as O,
|
|
20451
|
+
Xl as P,
|
|
20447
20452
|
c$ as Q,
|
|
20448
20453
|
XS as R,
|
|
20449
20454
|
g$ as S,
|
|
@@ -20485,9 +20490,9 @@ export {
|
|
|
20485
20490
|
$S as aP,
|
|
20486
20491
|
vi as aQ,
|
|
20487
20492
|
f$ as aR,
|
|
20488
|
-
|
|
20493
|
+
ql as aS,
|
|
20489
20494
|
Ec as aT,
|
|
20490
|
-
|
|
20495
|
+
Kl as aU,
|
|
20491
20496
|
qc as aV,
|
|
20492
20497
|
Gc as aW,
|
|
20493
20498
|
ES as aX,
|
|
@@ -20509,14 +20514,14 @@ export {
|
|
|
20509
20514
|
hf as am,
|
|
20510
20515
|
QS as an,
|
|
20511
20516
|
VS as ao,
|
|
20512
|
-
|
|
20517
|
+
Dl as ap,
|
|
20513
20518
|
m$ as aq,
|
|
20514
20519
|
ci as ar,
|
|
20515
20520
|
Zn as as,
|
|
20516
20521
|
lh as at,
|
|
20517
|
-
|
|
20522
|
+
en as au,
|
|
20518
20523
|
o$ as av,
|
|
20519
|
-
|
|
20524
|
+
Yl as aw,
|
|
20520
20525
|
hi as ax,
|
|
20521
20526
|
TS as ay,
|
|
20522
20527
|
AS as az,
|
|
@@ -20537,7 +20542,7 @@ export {
|
|
|
20537
20542
|
Xv as bD,
|
|
20538
20543
|
lf as bE,
|
|
20539
20544
|
Yv as bF,
|
|
20540
|
-
|
|
20545
|
+
Zl as bG,
|
|
20541
20546
|
zo as bH,
|
|
20542
20547
|
of as bI,
|
|
20543
20548
|
ti as bJ,
|
|
@@ -20557,18 +20562,18 @@ export {
|
|
|
20557
20562
|
fi as bm,
|
|
20558
20563
|
Gb as bn,
|
|
20559
20564
|
ui as bo,
|
|
20560
|
-
|
|
20565
|
+
tn as bp,
|
|
20561
20566
|
Vh as bq,
|
|
20562
20567
|
di as br,
|
|
20563
20568
|
Cu as bs,
|
|
20564
20569
|
jc as bt,
|
|
20565
20570
|
af as bu,
|
|
20566
20571
|
tf as bv,
|
|
20567
|
-
|
|
20572
|
+
xl as bw,
|
|
20568
20573
|
_c as bx,
|
|
20569
20574
|
kS as by,
|
|
20570
20575
|
Mc as bz,
|
|
20571
|
-
|
|
20576
|
+
Pl as c,
|
|
20572
20577
|
nl as d,
|
|
20573
20578
|
Nw as e,
|
|
20574
20579
|
gi as f,
|