@vc-shell/framework 2.5.0-pr343.9724376 → 2.5.0-pr344.5e6d922
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-CMAnQNhn.js → VcScheduler.vue_vue_type_script_setup_true_lang-CwazU2Jy.js} +281 -282
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CwazU2Jy.js.map +1 -0
- package/dist/framework.js +5 -5
- 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/components/organisms/vc-blade/_internal/BladeHeader.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-CMAnQNhn.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 tt, 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 On, 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 Mn, t as Ln, n as qi, O as Ki, af as bo, M as Yi, U as Gn, E as ol, z as In, 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 Pl, 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 Vl, 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 Fl, 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 pn } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
|
|
4
|
+
import { q as Ft, p as gn, o as ks, n as Ml, r as Es, m as xn, 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 Ul, 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 zl, 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 Hl, W as Ge, d as Dt, J as et, x as At, z as Wl, 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 Nn(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 Gl() {
|
|
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 xl = /* @__PURE__ */ new Map();
|
|
308
308
|
function _S(e, a) {
|
|
309
|
-
|
|
309
|
+
xl.has(e) && console.warn(`[defineBlade] Duplicate blade name: "${e}". Overwriting.`), xl.set(e, a);
|
|
310
310
|
}
|
|
311
311
|
function Mc(e) {
|
|
312
|
-
return
|
|
312
|
+
return xl.get(e);
|
|
313
313
|
}
|
|
314
314
|
function kS() {
|
|
315
|
-
return
|
|
315
|
+
return xl;
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const ql = 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 bn(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 = bn(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 = bn(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 = bn(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
|
+
), tt(() => {
|
|
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 Kl(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 hn = 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), hn.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 = []), hn.debug("Select all changed", { selected: f });
|
|
653
653
|
},
|
|
654
654
|
resetSelection: () => {
|
|
655
|
-
l.value = [], r.value = !1,
|
|
655
|
+
l.value = [], r.value = !1, hn.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(ql, 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(ql, 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(ql, 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 yn = 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
|
+
yn.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 && yn.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
|
+
yn.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
|
+
ql,
|
|
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
|
+
}, Yl = /* @__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" }, jl = /* @__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(Yl), {
|
|
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
|
+
$(jl, {
|
|
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 Xl(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 && gn(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 (gn(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 (gn(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
|
+
tt(() => {
|
|
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) && !Xl(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 wn(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, Cn = 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 ? On(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 = wn("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
|
+
}) : (Cn.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 = wn("error");
|
|
2033
2033
|
if (!I) {
|
|
2034
|
-
|
|
2034
|
+
Cn.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 = wn("info");
|
|
2041
2041
|
if (!I) {
|
|
2042
|
-
|
|
2042
|
+
Cn.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, On(l)])
|
|
2074
2074
|
);
|
|
2075
2075
|
return {
|
|
2076
2076
|
...e,
|
|
2077
2077
|
slots: a,
|
|
2078
|
-
component:
|
|
2078
|
+
component: On(oo(e.component))
|
|
2079
2079
|
};
|
|
2080
2080
|
}
|
|
2081
2081
|
const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
@@ -2109,20 +2109,24 @@ 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(() => xn(Ml.escape, i)), c = y(() => xn(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: () => [Ul()]
|
|
2115
2115
|
}), C = D(null);
|
|
2116
2116
|
function S() {
|
|
2117
2117
|
C.value?.contains(document.activeElement) && requestAnimationFrame(() => {
|
|
2118
2118
|
C.value?.querySelector("[data-blade-expand-control]")?.focus();
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
+
oe(
|
|
2122
|
+
() => b?.value?.maximized,
|
|
2123
|
+
() => S()
|
|
2124
|
+
);
|
|
2121
2125
|
function T() {
|
|
2122
|
-
t.closable &&
|
|
2126
|
+
t.closable && l("expand");
|
|
2123
2127
|
}
|
|
2124
2128
|
function I() {
|
|
2125
|
-
t.closable &&
|
|
2129
|
+
t.closable && l("collapse");
|
|
2126
2130
|
}
|
|
2127
2131
|
function V() {
|
|
2128
2132
|
t.closable && l("close");
|
|
@@ -2695,7 +2699,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2695
2699
|
])) : L("", !0)
|
|
2696
2700
|
], 42, _d));
|
|
2697
2701
|
}
|
|
2698
|
-
}),
|
|
2702
|
+
}), Nl = $d, Rd = ["role", "aria-label"], Ad = { class: "vc-banner__body" }, Td = {
|
|
2699
2703
|
key: 0,
|
|
2700
2704
|
class: "vc-banner__title"
|
|
2701
2705
|
}, Od = {
|
|
@@ -2711,7 +2715,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2711
2715
|
collapsedHeight: { default: 100 }
|
|
2712
2716
|
},
|
|
2713
2717
|
setup(e) {
|
|
2714
|
-
const a = e, t = Qe(), l = ht(), { contentRef: r, isExpanded: i, hasOverflow: o, wrapperStyle: c, toggle: d } =
|
|
2718
|
+
const a = e, t = Qe(), l = ht(), { contentRef: r, isExpanded: i, hasOverflow: o, wrapperStyle: c, toggle: d } = Kl({
|
|
2715
2719
|
collapsedHeight: a.collapsedHeight
|
|
2716
2720
|
});
|
|
2717
2721
|
function u(k) {
|
|
@@ -2814,7 +2818,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2814
2818
|
return b.icon ? typeof b.icon == "function" ? b.icon() : b.icon : "";
|
|
2815
2819
|
}
|
|
2816
2820
|
function i(b) {
|
|
2817
|
-
return
|
|
2821
|
+
return Xl(b.disabled);
|
|
2818
2822
|
}
|
|
2819
2823
|
function o(b) {
|
|
2820
2824
|
return { transitionDelay: t.value ? `${b * 40}ms` : `${(a.items.length - 1 - b) * 25}ms` };
|
|
@@ -2937,13 +2941,13 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
2937
2941
|
onClick: {}
|
|
2938
2942
|
},
|
|
2939
2943
|
setup(e) {
|
|
2940
|
-
const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() =>
|
|
2944
|
+
const a = e, { isMac: t } = Oo(), l = D(!1), r = y(() => Xl(a.disabled)), i = y(() => ({
|
|
2941
2945
|
"vc-blade-toolbar-base-button--disabled": r.value || l.value,
|
|
2942
2946
|
"vc-blade-toolbar-base-button--with-separator-left": a.separator === "left",
|
|
2943
2947
|
"vc-blade-toolbar-base-button--with-separator-right": a.separator === "right",
|
|
2944
2948
|
"vc-blade-toolbar-base-button--with-separator-both": a.separator === "both"
|
|
2945
2949
|
})), o = y(
|
|
2946
|
-
() => a.shortcut ?
|
|
2950
|
+
() => a.shortcut ? xn(a.shortcut, t) : { parts: [], aria: "" }
|
|
2947
2951
|
), 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
2952
|
async function v() {
|
|
2949
2953
|
if (!(r.value || l.value || !a.onClick)) {
|
|
@@ -3048,7 +3052,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
3048
3052
|
"show-title": e.isExpanded,
|
|
3049
3053
|
"on-click": p.clickHandler
|
|
3050
3054
|
}), null, 16, ["data-item-key", "show-title", "on-click"]))), 128)),
|
|
3051
|
-
n(o) ? (s(), P(n(
|
|
3055
|
+
n(o) ? (s(), P(n(Yl), {
|
|
3052
3056
|
key: 0,
|
|
3053
3057
|
"model-value": t.value,
|
|
3054
3058
|
items: n(i),
|
|
@@ -3069,7 +3073,7 @@ const Nu = { class: "vc-blade-header__status-container" }, Du = {
|
|
|
3069
3073
|
], 2)
|
|
3070
3074
|
]),
|
|
3071
3075
|
item: x(({ item: p }) => [
|
|
3072
|
-
$(
|
|
3076
|
+
$(jl, {
|
|
3073
3077
|
title: xe(p.title) ?? "",
|
|
3074
3078
|
icon: typeof p.icon == "function" ? p.icon() : p.icon
|
|
3075
3079
|
}, null, 8, ["title", "icon"])
|
|
@@ -3109,7 +3113,7 @@ function Jd(e) {
|
|
|
3109
3113
|
u.clear();
|
|
3110
3114
|
}
|
|
3111
3115
|
const h = y(() => r(v.value).filter(
|
|
3112
|
-
(f) => a(f.permissions) && Jn(f.isVisible) && (d.value ? !
|
|
3116
|
+
(f) => a(f.permissions) && Jn(f.isVisible) && (d.value ? !Xl(f.disabled) : !0)
|
|
3113
3117
|
).sort((f, k) => {
|
|
3114
3118
|
const C = f.priority ?? 0;
|
|
3115
3119
|
return (k.priority ?? 0) - C;
|
|
@@ -3241,7 +3245,7 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
|
|
|
3241
3245
|
isExpanded: p,
|
|
3242
3246
|
wrapperStyle: m,
|
|
3243
3247
|
toggle: h
|
|
3244
|
-
} =
|
|
3248
|
+
} = Kl(), f = D(!1), k = u;
|
|
3245
3249
|
async function C() {
|
|
3246
3250
|
await v() && (f.value = !0, setTimeout(() => {
|
|
3247
3251
|
f.value = !1;
|
|
@@ -3394,10 +3398,10 @@ const sv = ["role"], rv = { class: "vc-blade-status-banners__text" }, cv = ["tit
|
|
|
3394
3398
|
function yv() {
|
|
3395
3399
|
const e = Ce(go);
|
|
3396
3400
|
if (!e)
|
|
3397
|
-
throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new
|
|
3401
|
+
throw hv.error("Widget service not found in current context. Injection chain:", Tt()), new Pl("WidgetService");
|
|
3398
3402
|
return e;
|
|
3399
3403
|
}
|
|
3400
|
-
const
|
|
3404
|
+
const Dl = /* @__PURE__ */ Q({
|
|
3401
3405
|
__name: "WidgetScope",
|
|
3402
3406
|
props: {
|
|
3403
3407
|
widgetId: {}
|
|
@@ -3463,7 +3467,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3463
3467
|
height: 10,
|
|
3464
3468
|
class: "tw-mt-1"
|
|
3465
3469
|
})
|
|
3466
|
-
])) : m.headless ? (s(), P(n(
|
|
3470
|
+
])) : m.headless ? (s(), P(n(Nl), {
|
|
3467
3471
|
key: 1,
|
|
3468
3472
|
icon: m.headless?.icon,
|
|
3469
3473
|
title: n(o)(m),
|
|
@@ -3471,7 +3475,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3471
3475
|
disabled: n(i)(m),
|
|
3472
3476
|
"widget-id": m.id,
|
|
3473
3477
|
onClick: (h) => n(c)(m)
|
|
3474
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3478
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
|
|
3475
3479
|
key: 2,
|
|
3476
3480
|
"widget-id": m.id
|
|
3477
3481
|
}, {
|
|
@@ -3483,7 +3487,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3483
3487
|
_: 2
|
|
3484
3488
|
}, 1032, ["widget-id"]))
|
|
3485
3489
|
], 64))), 128)),
|
|
3486
|
-
v.value ? (s(), P(n(
|
|
3490
|
+
v.value ? (s(), P(n(Yl), {
|
|
3487
3491
|
key: 0,
|
|
3488
3492
|
"model-value": t.value,
|
|
3489
3493
|
items: u.value,
|
|
@@ -3506,7 +3510,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3506
3510
|
variant: "block",
|
|
3507
3511
|
width: "100%",
|
|
3508
3512
|
height: 32
|
|
3509
|
-
})) : m.headless ? (s(), P(n(
|
|
3513
|
+
})) : m.headless ? (s(), P(n(Nl), {
|
|
3510
3514
|
key: 1,
|
|
3511
3515
|
class: "tw-w-full",
|
|
3512
3516
|
icon: m.headless?.icon,
|
|
@@ -3518,7 +3522,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3518
3522
|
onClick: (h) => {
|
|
3519
3523
|
n(c)(m), t.value = !1;
|
|
3520
3524
|
}
|
|
3521
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3525
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
|
|
3522
3526
|
key: 2,
|
|
3523
3527
|
"widget-id": m.id
|
|
3524
3528
|
}, {
|
|
@@ -3866,7 +3870,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3866
3870
|
height: 10,
|
|
3867
3871
|
class: "tw-mt-1"
|
|
3868
3872
|
})
|
|
3869
|
-
], 8, Dv)) : f.headless ? (s(), P(n(
|
|
3873
|
+
], 8, Dv)) : f.headless ? (s(), P(n(Nl), {
|
|
3870
3874
|
key: 1,
|
|
3871
3875
|
icon: f.headless?.icon,
|
|
3872
3876
|
title: n(d)(f),
|
|
@@ -3875,7 +3879,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3875
3879
|
"data-item-key": f.id,
|
|
3876
3880
|
"widget-id": f.id,
|
|
3877
3881
|
onClick: (k) => n(u)(f)
|
|
3878
|
-
}, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(
|
|
3882
|
+
}, null, 8, ["icon", "title", "value", "disabled", "data-item-key", "widget-id", "onClick"])) : (s(), P(Dl, {
|
|
3879
3883
|
key: 2,
|
|
3880
3884
|
"widget-id": f.id
|
|
3881
3885
|
}, {
|
|
@@ -3917,7 +3921,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3917
3921
|
variant: "block",
|
|
3918
3922
|
width: "100%",
|
|
3919
3923
|
height: 32
|
|
3920
|
-
})) : f.headless ? (s(), P(n(
|
|
3924
|
+
})) : f.headless ? (s(), P(n(Nl), {
|
|
3921
3925
|
key: 1,
|
|
3922
3926
|
class: "tw-w-full",
|
|
3923
3927
|
icon: f.headless?.icon,
|
|
@@ -3929,7 +3933,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3929
3933
|
onClick: (k) => {
|
|
3930
3934
|
n(u)(f), l.value = !1;
|
|
3931
3935
|
}
|
|
3932
|
-
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(
|
|
3936
|
+
}, null, 8, ["icon", "title", "value", "disabled", "widget-id", "onClick"])) : (s(), P(Dl, {
|
|
3933
3937
|
key: 2,
|
|
3934
3938
|
"widget-id": f.id
|
|
3935
3939
|
}, {
|
|
@@ -3989,7 +3993,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
3989
3993
|
}
|
|
3990
3994
|
}), d.clear();
|
|
3991
3995
|
}
|
|
3992
|
-
|
|
3996
|
+
tt(u), Rt(v);
|
|
3993
3997
|
const b = y(() => i.getWidgets(r.value)), p = y(
|
|
3994
3998
|
() => b.value.filter((m) => Jn(m.isVisible, o?.value))
|
|
3995
3999
|
);
|
|
@@ -4005,7 +4009,7 @@ const wv = { class: "vc-widget-container-desktop" }, Cv = { class: "vc-widget-co
|
|
|
4005
4009
|
}
|
|
4006
4010
|
});
|
|
4007
4011
|
function Zo() {
|
|
4008
|
-
const e =
|
|
4012
|
+
const e = zl("VC_LANGUAGE_SETTINGS", "");
|
|
4009
4013
|
function a(d) {
|
|
4010
4014
|
if (!d)
|
|
4011
4015
|
return "en";
|
|
@@ -4057,39 +4061,39 @@ function Zo() {
|
|
|
4057
4061
|
};
|
|
4058
4062
|
}
|
|
4059
4063
|
const Jo = lt("use-languages");
|
|
4060
|
-
let
|
|
4064
|
+
let _n = null;
|
|
4061
4065
|
function ei() {
|
|
4062
|
-
return
|
|
4066
|
+
return _n || (_n = Zo()), _n;
|
|
4063
4067
|
}
|
|
4064
4068
|
function US() {
|
|
4065
4069
|
if (!so())
|
|
4066
4070
|
return Jo.warn("No injection context for provideLanguages; using fallback language service"), ei();
|
|
4067
|
-
const e = Ce(
|
|
4071
|
+
const e = Ce(Mn, null);
|
|
4068
4072
|
if (e)
|
|
4069
4073
|
return e;
|
|
4070
4074
|
const a = Zo();
|
|
4071
|
-
return De(
|
|
4075
|
+
return De(Mn, a), a;
|
|
4072
4076
|
}
|
|
4073
4077
|
function ti() {
|
|
4074
4078
|
if (!so())
|
|
4075
4079
|
return ei();
|
|
4076
|
-
const e = Ce(
|
|
4080
|
+
const e = Ce(Mn, null);
|
|
4077
4081
|
if (!e)
|
|
4078
|
-
throw Jo.error("Language service not found"), new
|
|
4082
|
+
throw Jo.error("Language service not found"), new Pl("LanguageService");
|
|
4079
4083
|
return e;
|
|
4080
4084
|
}
|
|
4081
4085
|
const Fv = lt("use-app-bar-widget");
|
|
4082
4086
|
function zS() {
|
|
4083
|
-
const e = Ce(
|
|
4087
|
+
const e = Ce(Ln, null);
|
|
4084
4088
|
if (e)
|
|
4085
4089
|
return e;
|
|
4086
4090
|
const a = ss();
|
|
4087
|
-
return De(
|
|
4091
|
+
return De(Ln, a), ro() && zn(() => rs.dispose(a)), a;
|
|
4088
4092
|
}
|
|
4089
|
-
function
|
|
4090
|
-
const e = Ce(
|
|
4093
|
+
function Ql() {
|
|
4094
|
+
const e = Ce(Ln);
|
|
4091
4095
|
if (!e)
|
|
4092
|
-
throw Fv.error("AppBarWidgetService not found"), new
|
|
4096
|
+
throw Fv.error("AppBarWidgetService not found"), new Pl("AppBarWidgetService");
|
|
4093
4097
|
return e;
|
|
4094
4098
|
}
|
|
4095
4099
|
function Uv(e) {
|
|
@@ -4122,7 +4126,7 @@ function Yv(e) {
|
|
|
4122
4126
|
return `${qv}_${a}`;
|
|
4123
4127
|
}
|
|
4124
4128
|
function jv() {
|
|
4125
|
-
const e =
|
|
4129
|
+
const e = zl(Yv(), !0), a = D(!1), t = D(!1), l = y(() => e.value || a.value);
|
|
4126
4130
|
let r = null;
|
|
4127
4131
|
const i = () => {
|
|
4128
4132
|
e.value = !e.value;
|
|
@@ -4243,7 +4247,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
|
|
|
4243
4247
|
return oe(u, (z) => {
|
|
4244
4248
|
const K = N.value;
|
|
4245
4249
|
!z || !K || document.activeElement && K.contains(document.activeElement) && K.focus({ preventScroll: !0 });
|
|
4246
|
-
}),
|
|
4250
|
+
}), tt(() => Nn(() => N.value)), (z, K) => (s(), g("div", Le({
|
|
4247
4251
|
ref_key: "bladeRef",
|
|
4248
4252
|
ref: N
|
|
4249
4253
|
}, B.value, {
|
|
@@ -4641,7 +4645,7 @@ const of = cc(af), sf = ["aria-busy", "aria-labelledby", "aria-label"], rf = {
|
|
|
4641
4645
|
hasOverflow: u,
|
|
4642
4646
|
hasScroll: v,
|
|
4643
4647
|
wrapperStyle: b
|
|
4644
|
-
} =
|
|
4648
|
+
} = Kl({
|
|
4645
4649
|
collapsedHeight: t.collapsedHeight,
|
|
4646
4650
|
maxExpandedHeight: t.maxExpandedHeight,
|
|
4647
4651
|
expanded: t.isExpanded
|
|
@@ -5038,7 +5042,7 @@ const Df = {
|
|
|
5038
5042
|
function v(b) {
|
|
5039
5043
|
b.target.closest(".vc-editor-font-selector") || u();
|
|
5040
5044
|
}
|
|
5041
|
-
return
|
|
5045
|
+
return tt(() => {
|
|
5042
5046
|
document.addEventListener("click", v);
|
|
5043
5047
|
}), Rt(() => {
|
|
5044
5048
|
document.removeEventListener("click", v);
|
|
@@ -5769,7 +5773,7 @@ const Df = {
|
|
|
5769
5773
|
_.style.height = E, l.onReportHeight?.(l.notificationId, N);
|
|
5770
5774
|
}
|
|
5771
5775
|
}
|
|
5772
|
-
|
|
5776
|
+
tt(() => {
|
|
5773
5777
|
requestAnimationFrame(() => {
|
|
5774
5778
|
requestAnimationFrame(() => {
|
|
5775
5779
|
c.value = !0, f();
|
|
@@ -6579,7 +6583,7 @@ function rp(e) {
|
|
|
6579
6583
|
placement: "bottom",
|
|
6580
6584
|
middleware: y(() => [
|
|
6581
6585
|
Kn({ fallbackPlacements: ["top", "bottom"] }),
|
|
6582
|
-
|
|
6586
|
+
Ul({ mainAxis: !1 }),
|
|
6583
6587
|
o(),
|
|
6584
6588
|
Yn({ mainAxis: 4 })
|
|
6585
6589
|
])
|
|
@@ -7157,7 +7161,7 @@ const up = {
|
|
|
7157
7161
|
key: 1,
|
|
7158
7162
|
class: "vc-checkbox__required",
|
|
7159
7163
|
"aria-hidden": "true"
|
|
7160
|
-
}, Lp = { key: 0 },
|
|
7164
|
+
}, Lp = { key: 0 }, Zl = /* @__PURE__ */ Q({
|
|
7161
7165
|
__name: "vc-checkbox",
|
|
7162
7166
|
props: {
|
|
7163
7167
|
label: {},
|
|
@@ -7203,7 +7207,7 @@ const up = {
|
|
|
7203
7207
|
p.value && (p.value.indeterminate = f);
|
|
7204
7208
|
},
|
|
7205
7209
|
{ immediate: !0 }
|
|
7206
|
-
),
|
|
7210
|
+
), tt(() => {
|
|
7207
7211
|
p.value && t.indeterminate && (p.value.indeterminate = t.indeterminate);
|
|
7208
7212
|
}), (f, k) => n(b) ? (s(), g("div", Ep, [
|
|
7209
7213
|
$(n(we), {
|
|
@@ -7379,7 +7383,7 @@ const up = {
|
|
|
7379
7383
|
name: c.value
|
|
7380
7384
|
}, {
|
|
7381
7385
|
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(
|
|
7386
|
+
b.$slots.default ? H(b.$slots, "default", { key: 0 }) : (s(!0), g(J, { key: 1 }, ve(e.options, (m, h) => (s(), P(n(Zl), {
|
|
7383
7387
|
key: v(m, h),
|
|
7384
7388
|
"model-value": d.value,
|
|
7385
7389
|
value: m.value,
|
|
@@ -7561,7 +7565,7 @@ const up = {
|
|
|
7561
7565
|
middleware: y(() => [
|
|
7562
7566
|
Yn(4),
|
|
7563
7567
|
Kn(),
|
|
7564
|
-
|
|
7568
|
+
Ul({ padding: 16 }),
|
|
7565
7569
|
Rs({
|
|
7566
7570
|
padding: 16,
|
|
7567
7571
|
apply({ availableHeight: C, elements: S }) {
|
|
@@ -7841,7 +7845,7 @@ const up = {
|
|
|
7841
7845
|
},
|
|
7842
7846
|
emits: ["update:open"],
|
|
7843
7847
|
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 =
|
|
7848
|
+
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 = zl(o, t.open ?? !1), d = () => {
|
|
7845
7849
|
c.value = !c.value;
|
|
7846
7850
|
};
|
|
7847
7851
|
return a({
|
|
@@ -8065,7 +8069,7 @@ const mg = {
|
|
|
8065
8069
|
i.value = !1, l("update:modelValue", u.value);
|
|
8066
8070
|
};
|
|
8067
8071
|
return (u, v) => (s(), g("div", Eg, [
|
|
8068
|
-
$(n(
|
|
8072
|
+
$(n(Yl), {
|
|
8069
8073
|
"model-value": i.value,
|
|
8070
8074
|
items: e.options,
|
|
8071
8075
|
floating: !0,
|
|
@@ -8394,7 +8398,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
|
|
|
8394
8398
|
isExpanded: { type: Boolean }
|
|
8395
8399
|
},
|
|
8396
8400
|
setup(e) {
|
|
8397
|
-
const a = e, { user: t } =
|
|
8401
|
+
const a = e, { user: t } = Vl(), l = y(() => {
|
|
8398
8402
|
if (a.avatarUrl)
|
|
8399
8403
|
return `background-image: url(${CSS.escape(a.avatarUrl)})`;
|
|
8400
8404
|
});
|
|
@@ -8557,7 +8561,7 @@ const Wg = 3, Bn = /* @__PURE__ */ Q({
|
|
|
8557
8561
|
emits: ["item:click"],
|
|
8558
8562
|
setup(e, { emit: a }) {
|
|
8559
8563
|
const t = e, l = a, r = Ce(ol, !1), i = D(null), o = D("");
|
|
8560
|
-
|
|
8564
|
+
tt(() => {
|
|
8561
8565
|
$e(() => i.value?.updateScrollState());
|
|
8562
8566
|
}), oe(
|
|
8563
8567
|
() => t.expanded,
|
|
@@ -8659,8 +8663,8 @@ function vi(e, a) {
|
|
|
8659
8663
|
}
|
|
8660
8664
|
};
|
|
8661
8665
|
}
|
|
8662
|
-
function
|
|
8663
|
-
const { items: e } =
|
|
8666
|
+
function Jl() {
|
|
8667
|
+
const { items: e } = Ql(), { activeWidgetId: a } = Eo(), {
|
|
8664
8668
|
showItem: t,
|
|
8665
8669
|
hideAllItems: l,
|
|
8666
8670
|
toggleItem: r,
|
|
@@ -8696,7 +8700,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8696
8700
|
mobile: { type: Boolean, default: !1 }
|
|
8697
8701
|
},
|
|
8698
8702
|
setup(e) {
|
|
8699
|
-
const { currentWidget: a, hideAllWidgets: t, isAnyWidgetVisible: l } =
|
|
8703
|
+
const { currentWidget: a, hideAllWidgets: t, isAnyWidgetVisible: l } = Jl(), r = y(() => ({
|
|
8700
8704
|
...a.value?.props ?? {},
|
|
8701
8705
|
onClose: t
|
|
8702
8706
|
}));
|
|
@@ -8737,7 +8741,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8737
8741
|
},
|
|
8738
8742
|
emits: ["switch-app"],
|
|
8739
8743
|
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 } =
|
|
8744
|
+
const t = e, l = a, r = ht(), i = y(() => typeof r.applications == "function"), o = D(null), c = D(null), { items: d } = Ql(), { currentWidget: u, hideAllWidgets: v, isAnyWidgetVisible: b, toggleWidget: p } = Jl(), { searchQuery: m, filteredApps: h, filteredWidgets: f, getWidgetTitle: k } = rb({
|
|
8741
8745
|
appsList: Ie(t, "appsList"),
|
|
8742
8746
|
widgets: d,
|
|
8743
8747
|
showApplications: Ie(t, "showApplications"),
|
|
@@ -8984,7 +8988,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8984
8988
|
},
|
|
8985
8989
|
emits: ["update:show", "switch-app"],
|
|
8986
8990
|
setup(e, { emit: a }) {
|
|
8987
|
-
const t = e, l = a, { hideAllWidgets: r } =
|
|
8991
|
+
const t = e, l = a, { hideAllWidgets: r } = Jl(), i = y({
|
|
8988
8992
|
get: () => t.show,
|
|
8989
8993
|
set: (c) => {
|
|
8990
8994
|
l("update:show", c);
|
|
@@ -9089,7 +9093,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
9089
9093
|
},
|
|
9090
9094
|
emits: ["onClick"],
|
|
9091
9095
|
setup(e, { emit: a }) {
|
|
9092
|
-
const t = e, l = a, r =
|
|
9096
|
+
const t = e, l = a, r = Gl(), i = y(() => {
|
|
9093
9097
|
const c = t.notification.notifyType;
|
|
9094
9098
|
if (c)
|
|
9095
9099
|
return r.registry.get(c)?.template;
|
|
@@ -9137,7 +9141,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
9137
9141
|
}, Xb = /* @__PURE__ */ Q({
|
|
9138
9142
|
__name: "notification-dropdown",
|
|
9139
9143
|
setup(e) {
|
|
9140
|
-
const a =
|
|
9144
|
+
const a = Gl(), { t } = ze({ useScope: "global" }), l = y(
|
|
9141
9145
|
() => [...a.history.value].sort(
|
|
9142
9146
|
(r, i) => new Date(i.created).getTime() - new Date(r.created).getTime()
|
|
9143
9147
|
)
|
|
@@ -9326,17 +9330,17 @@ function Jb() {
|
|
|
9326
9330
|
}
|
|
9327
9331
|
const eh = lt("use-app-bar-mobile-buttons");
|
|
9328
9332
|
function th() {
|
|
9329
|
-
const e = Ce(
|
|
9333
|
+
const e = Ce(In, null);
|
|
9330
9334
|
if (e)
|
|
9331
9335
|
return e;
|
|
9332
9336
|
const a = Jb();
|
|
9333
|
-
return De(
|
|
9337
|
+
return De(In, a), ro() && zn(() => {
|
|
9334
9338
|
}), a;
|
|
9335
9339
|
}
|
|
9336
9340
|
function mi() {
|
|
9337
|
-
const e = Ce(
|
|
9341
|
+
const e = Ce(In);
|
|
9338
9342
|
if (!e)
|
|
9339
|
-
throw eh.error("AppBarMobileButtonsService not found"), new
|
|
9343
|
+
throw eh.error("AppBarMobileButtonsService not found"), new Pl("AppBarMobileButtonsService");
|
|
9340
9344
|
return e;
|
|
9341
9345
|
}
|
|
9342
9346
|
function lh() {
|
|
@@ -9547,7 +9551,7 @@ const nh = {
|
|
|
9547
9551
|
},
|
|
9548
9552
|
emits: ["item:click", "switch-app", "logo:click"],
|
|
9549
9553
|
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 } =
|
|
9554
|
+
const t = e, l = a, r = D(""), i = ea(), o = Ce(ol, !1), { blades: c, activeBlade: d } = Ft(), { items: u } = Ql(), v = y(
|
|
9551
9555
|
() => u.value.some((Y) => Y.badge === void 0 ? !1 : typeof Y.badge == "function" ? Y.badge() : !!Y.badge)
|
|
9552
9556
|
), 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
9557
|
let S = 0, T = 0, I = 0, V = 0;
|
|
@@ -9859,7 +9863,7 @@ const nh = {
|
|
|
9859
9863
|
}
|
|
9860
9864
|
}), Mh = "NG_TRANSLATE_LANG_KEY";
|
|
9861
9865
|
function Lh() {
|
|
9862
|
-
const { setLocale: e, currentLocale: a } = ti(), t =
|
|
9866
|
+
const { setLocale: e, currentLocale: a } = ti(), t = zl(Mh, ""), l = (r) => {
|
|
9863
9867
|
r && r !== a.value && e(r);
|
|
9864
9868
|
};
|
|
9865
9869
|
l(t.value), oe(t, l);
|
|
@@ -9867,7 +9871,7 @@ function Lh() {
|
|
|
9867
9871
|
const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__title" }, Nh = {
|
|
9868
9872
|
key: 0,
|
|
9869
9873
|
class: "vc-menu-item__value"
|
|
9870
|
-
}, Dh = { class: "tw-p-1" },
|
|
9874
|
+
}, Dh = { class: "tw-p-1" }, en = /* @__PURE__ */ Q({
|
|
9871
9875
|
__name: "settings-menu-item",
|
|
9872
9876
|
props: {
|
|
9873
9877
|
title: {},
|
|
@@ -9883,7 +9887,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
9883
9887
|
},
|
|
9884
9888
|
emits: ["trigger:click", "trigger:hover"],
|
|
9885
9889
|
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 } =
|
|
9890
|
+
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 } = Kl();
|
|
9887
9891
|
oe(v, (k) => {
|
|
9888
9892
|
m.value !== k && (m.value = k);
|
|
9889
9893
|
}), oe(d, () => {
|
|
@@ -9986,13 +9990,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
9986
9990
|
})).filter((d) => d.title), o = y(() => i.find((u) => u.lang === r.value)?.title), c = (d) => {
|
|
9987
9991
|
Object.prototype.hasOwnProperty.call(d, "clickHandler") && d.clickHandler(d.lang);
|
|
9988
9992
|
};
|
|
9989
|
-
return (d, u) => (s(), P(n(
|
|
9993
|
+
return (d, u) => (s(), P(n(en), {
|
|
9990
9994
|
icon: "lucide-languages",
|
|
9991
9995
|
title: d.$t("COMPONENTS.LANGUAGE_SELECTOR.TITLE"),
|
|
9992
9996
|
value: o.value
|
|
9993
9997
|
}, {
|
|
9994
9998
|
submenu: x(() => [
|
|
9995
|
-
(s(!0), g(J, null, ve(n(i), (v) => (s(), P(
|
|
9999
|
+
(s(!0), g(J, null, ve(n(i), (v) => (s(), P(jl, {
|
|
9996
10000
|
key: v.lang,
|
|
9997
10001
|
title: v.title,
|
|
9998
10002
|
active: v.lang === n(r),
|
|
@@ -10008,13 +10012,13 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10008
10012
|
const { currentThemeKey: a, currentLocalizedName: t, themes: l, setTheme: r } = gs(), i = (o) => {
|
|
10009
10013
|
r(o.key), t.value && St(t.value);
|
|
10010
10014
|
};
|
|
10011
|
-
return (o, c) => (s(), P(n(
|
|
10015
|
+
return (o, c) => (s(), P(n(en), {
|
|
10012
10016
|
icon: "lucide-palette",
|
|
10013
10017
|
title: o.$t("COMPONENTS.THEME_SELECTOR.THEME_SELECTOR"),
|
|
10014
10018
|
value: n(t)
|
|
10015
10019
|
}, {
|
|
10016
10020
|
submenu: x(() => [
|
|
10017
|
-
(s(!0), g(J, null, ve(n(l), (d) => (s(), P(
|
|
10021
|
+
(s(!0), g(J, null, ve(n(l), (d) => (s(), P(jl, {
|
|
10018
10022
|
key: d.key,
|
|
10019
10023
|
title: d.name,
|
|
10020
10024
|
active: d.key === n(a),
|
|
@@ -10035,7 +10039,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10035
10039
|
},
|
|
10036
10040
|
emits: ["close"],
|
|
10037
10041
|
setup(e, { emit: a }) {
|
|
10038
|
-
const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } =
|
|
10042
|
+
const t = e, l = a, { t: r } = ze({ useScope: "global" }), { changeUserPassword: i, loading: o, validatePassword: c, signOut: d } = Vl();
|
|
10039
10043
|
Mo({ validateOnMount: !1 });
|
|
10040
10044
|
const u = Br(), v = Pr(), b = Ut(), p = vt({
|
|
10041
10045
|
isValid: !1,
|
|
@@ -10210,7 +10214,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10210
10214
|
const { open: a } = jo({ component: Gh }), t = Ce(Gn, void 0), l = () => {
|
|
10211
10215
|
t?.(), a();
|
|
10212
10216
|
};
|
|
10213
|
-
return (r, i) => (s(), P(n(
|
|
10217
|
+
return (r, i) => (s(), P(n(en), {
|
|
10214
10218
|
icon: "lucide-key",
|
|
10215
10219
|
title: r.$t("SHELL.ACCOUNT.CHANGE_PASSWORD"),
|
|
10216
10220
|
"onTrigger:click": l
|
|
@@ -10219,7 +10223,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10219
10223
|
}), Kh = /* @__PURE__ */ Q({
|
|
10220
10224
|
__name: "logout-button",
|
|
10221
10225
|
setup(e) {
|
|
10222
|
-
const { signOut: a } =
|
|
10226
|
+
const { signOut: a } = Vl(), t = Ut(), { blades: l, closeBlade: r } = Ft(), i = Ce(Gn, void 0), o = async () => {
|
|
10223
10227
|
for (i?.(); l.value.length > 1; ) {
|
|
10224
10228
|
const c = l.value[l.value.length - 1];
|
|
10225
10229
|
if (await r(c.id))
|
|
@@ -10227,7 +10231,7 @@ const Ih = { class: "vc-menu-item__content" }, xh = { class: "vc-menu-item__titl
|
|
|
10227
10231
|
}
|
|
10228
10232
|
await a(), t.push({ name: "Login" });
|
|
10229
10233
|
};
|
|
10230
|
-
return (c, d) => (s(), P(n(
|
|
10234
|
+
return (c, d) => (s(), P(n(en), {
|
|
10231
10235
|
icon: "lucide-log-out",
|
|
10232
10236
|
title: c.$t("SHELL.ACCOUNT.LOGOUT"),
|
|
10233
10237
|
"onTrigger:click": o
|
|
@@ -10247,7 +10251,7 @@ function Yh(e) {
|
|
|
10247
10251
|
});
|
|
10248
10252
|
}
|
|
10249
10253
|
function jh(e) {
|
|
10250
|
-
const a =
|
|
10254
|
+
const a = Gl();
|
|
10251
10255
|
e.isEmbedded || e.registerMobileButton({
|
|
10252
10256
|
id: "notifications",
|
|
10253
10257
|
component: fi,
|
|
@@ -10306,7 +10310,7 @@ function Jh() {
|
|
|
10306
10310
|
};
|
|
10307
10311
|
}
|
|
10308
10312
|
function ey(e) {
|
|
10309
|
-
const a = D(!1), t = D(!1), { isAuthenticated: l } =
|
|
10313
|
+
const a = D(!1), t = D(!1), { isAuthenticated: l } = Vl(), { loadHistory: r } = Gl(), { appsList: i, switchApp: o, getApps: c } = Jh();
|
|
10310
10314
|
return oe(
|
|
10311
10315
|
[() => e.isReady, l],
|
|
10312
10316
|
async ([d, u]) => {
|
|
@@ -10341,11 +10345,11 @@ const ty = { class: "vc-app__main-content" }, a$ = /* @__PURE__ */ Q({
|
|
|
10341
10345
|
const d = zt(), u = d.query.EmbeddedMode === "true", v = D(null);
|
|
10342
10346
|
oe(
|
|
10343
10347
|
() => d.fullPath,
|
|
10344
|
-
() =>
|
|
10348
|
+
() => Nn(() => v.value)
|
|
10345
10349
|
), oe(
|
|
10346
10350
|
v,
|
|
10347
10351
|
(_) => {
|
|
10348
|
-
_ &&
|
|
10352
|
+
_ && Nn(() => _);
|
|
10349
10353
|
},
|
|
10350
10354
|
{ flush: "post" }
|
|
10351
10355
|
);
|
|
@@ -10528,7 +10532,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10528
10532
|
},
|
|
10529
10533
|
emits: ["toggle"],
|
|
10530
10534
|
setup(e, { emit: a }) {
|
|
10531
|
-
const t = e, l = a, { isMobile: r } = Ve(), { toggleWidget: i, currentWidget: o } =
|
|
10535
|
+
const t = e, l = a, { isMobile: r } = Ve(), { toggleWidget: i, currentWidget: o } = Jl(), c = y(() => t.widgetId ? o.value?.id === t.widgetId : !1);
|
|
10532
10536
|
function d() {
|
|
10533
10537
|
if (!(t.beforeOpen && typeof t.beforeOpen == "function" && t.beforeOpen() === !1) && t.widgetId) {
|
|
10534
10538
|
const u = !c.value;
|
|
@@ -10586,7 +10590,7 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10586
10590
|
}, s$ = /* @__PURE__ */ Q({
|
|
10587
10591
|
__name: "AppBarWidgetsMenu",
|
|
10588
10592
|
setup(e) {
|
|
10589
|
-
const { items: a } =
|
|
10593
|
+
const { items: a } = Ql();
|
|
10590
10594
|
function t(l) {
|
|
10591
10595
|
return l.badge === void 0 ? !1 : typeof l.badge == "function" ? l.badge() : !!l.badge;
|
|
10592
10596
|
}
|
|
@@ -10667,43 +10671,38 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10667
10671
|
logoAlt: { default: "Logo" }
|
|
10668
10672
|
},
|
|
10669
10673
|
setup(e) {
|
|
10670
|
-
const a = D(
|
|
10671
|
-
et(() => xl(() => a.value));
|
|
10672
|
-
const t = e, r = Ut().currentRoute.value.meta?.appVersion, i = D(!1), o = D(!1);
|
|
10674
|
+
const a = e, l = Ut().currentRoute.value.meta?.appVersion, r = D(!1), i = D(!1);
|
|
10673
10675
|
oe(
|
|
10674
|
-
() =>
|
|
10675
|
-
(
|
|
10676
|
-
if (
|
|
10677
|
-
const
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
},
|
|
10676
|
+
() => a.background,
|
|
10677
|
+
(c) => {
|
|
10678
|
+
if (i.value = !1, !c) return;
|
|
10679
|
+
const d = new Image();
|
|
10680
|
+
d.onload = () => {
|
|
10681
|
+
i.value = !0;
|
|
10682
|
+
}, d.src = c;
|
|
10681
10683
|
},
|
|
10682
10684
|
{ immediate: !0 }
|
|
10683
10685
|
);
|
|
10684
|
-
const
|
|
10685
|
-
if (
|
|
10686
|
+
const o = y(() => {
|
|
10687
|
+
if (a.background)
|
|
10686
10688
|
return {
|
|
10687
|
-
background:
|
|
10688
|
-
backgroundColor:
|
|
10689
|
+
background: i.value ? `url(${a.background}) center / cover no-repeat` : void 0,
|
|
10690
|
+
backgroundColor: a.bgColor || void 0
|
|
10689
10691
|
};
|
|
10690
|
-
if (
|
|
10691
|
-
return { backgroundColor:
|
|
10692
|
+
if (a.bgColor)
|
|
10693
|
+
return { backgroundColor: a.bgColor };
|
|
10692
10694
|
});
|
|
10693
|
-
return (
|
|
10694
|
-
ref_key: "rootRef",
|
|
10695
|
-
ref: a,
|
|
10695
|
+
return (c, d) => (s(), g("main", {
|
|
10696
10696
|
class: "vc-auth-layout",
|
|
10697
|
-
|
|
10698
|
-
style: he(c.value)
|
|
10697
|
+
style: he(o.value)
|
|
10699
10698
|
}, [
|
|
10700
10699
|
w("div", cy, [
|
|
10701
10700
|
e.logo ? (s(), g("img", {
|
|
10702
10701
|
key: 0,
|
|
10703
10702
|
src: e.logo,
|
|
10704
10703
|
alt: e.logoAlt,
|
|
10705
|
-
class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded":
|
|
10706
|
-
onLoad:
|
|
10704
|
+
class: X(["vc-auth-layout__logo", { "vc-auth-layout__logo--loaded": r.value }]),
|
|
10705
|
+
onLoad: d[0] || (d[0] = (u) => r.value = !0)
|
|
10707
10706
|
}, null, 42, uy)) : L("", !0)
|
|
10708
10707
|
]),
|
|
10709
10708
|
w("div", dy, [
|
|
@@ -10712,13 +10711,13 @@ const ly = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, i$
|
|
|
10712
10711
|
e.subtitle ? (s(), g("p", my, U(e.subtitle), 1)) : L("", !0)
|
|
10713
10712
|
])) : L("", !0),
|
|
10714
10713
|
w("div", py, [
|
|
10715
|
-
H(
|
|
10714
|
+
H(c.$slots, "default")
|
|
10716
10715
|
])
|
|
10717
10716
|
]),
|
|
10718
|
-
|
|
10719
|
-
H(
|
|
10717
|
+
c.$slots.footer ? (s(), g("div", gy, [
|
|
10718
|
+
H(c.$slots, "footer")
|
|
10720
10719
|
])) : L("", !0),
|
|
10721
|
-
n(
|
|
10720
|
+
n(l) ? (s(), g("div", by, U(n(l)), 1)) : L("", !0)
|
|
10722
10721
|
], 4));
|
|
10723
10722
|
}
|
|
10724
10723
|
});
|
|
@@ -10836,7 +10835,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
|
|
|
10836
10835
|
});
|
|
10837
10836
|
}
|
|
10838
10837
|
});
|
|
10839
|
-
|
|
10838
|
+
tt(async () => {
|
|
10840
10839
|
await T(), await I(), d.value = o.value;
|
|
10841
10840
|
});
|
|
10842
10841
|
function S(O) {
|
|
@@ -11386,7 +11385,7 @@ const yy = ["onClick", "onKeydown"], wy = { class: "tw-flex tw-items-center tw-g
|
|
|
11386
11385
|
O.key === "Escape" && (O.preventDefault(), t("close"));
|
|
11387
11386
|
}
|
|
11388
11387
|
const B = oc(document.body);
|
|
11389
|
-
return
|
|
11388
|
+
return tt(() => {
|
|
11390
11389
|
window.addEventListener("keydown", V), B.value = !0;
|
|
11391
11390
|
}), He(() => {
|
|
11392
11391
|
window.removeEventListener("keydown", V), B.value = !1;
|
|
@@ -12057,7 +12056,7 @@ const Yy = {
|
|
|
12057
12056
|
},
|
|
12058
12057
|
variant: y(() => a.variant)
|
|
12059
12058
|
};
|
|
12060
|
-
return De(
|
|
12059
|
+
return De(Fl, i), (o, c) => (s(), g("div", {
|
|
12061
12060
|
role: "table",
|
|
12062
12061
|
class: X(["vc-table-composition", e.variant && `vc-table-composition--${e.variant}`])
|
|
12063
12062
|
}, [
|
|
@@ -12131,7 +12130,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
|
|
|
12131
12130
|
},
|
|
12132
12131
|
emits: ["click", "hover", "leave", "space-press"],
|
|
12133
12132
|
setup(e, { emit: a }) {
|
|
12134
|
-
const t = e, l = a, r = Ce(
|
|
12133
|
+
const t = e, l = a, r = Ce(Fl, null), i = Ce(
|
|
12135
12134
|
$o,
|
|
12136
12135
|
y(() => 0)
|
|
12137
12136
|
), o = Ce(Ro, D(!1)), c = y(() => !!t.clickable), d = y(() => t.variant === "header" ? "columnheader" : "cell"), u = (m) => {
|
|
@@ -12327,7 +12326,7 @@ const cw = /* @__PURE__ */ So(iw, [["render", rw]]), uw = ["data-items-count"],
|
|
|
12327
12326
|
])], 34)) : L("", !0)
|
|
12328
12327
|
], 46, hw));
|
|
12329
12328
|
}
|
|
12330
|
-
}), _w = ["data-column-id"], kw = 2,
|
|
12329
|
+
}), _w = ["data-column-id"], kw = 2, Bl = /* @__PURE__ */ Q({
|
|
12331
12330
|
__name: "TableCell",
|
|
12332
12331
|
props: {
|
|
12333
12332
|
width: {},
|
|
@@ -12477,7 +12476,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12477
12476
|
key: v.id,
|
|
12478
12477
|
class: "vc-column-switcher-panel__item"
|
|
12479
12478
|
}, [
|
|
12480
|
-
$(n(
|
|
12479
|
+
$(n(Zl), {
|
|
12481
12480
|
"model-value": r(v.id),
|
|
12482
12481
|
"onUpdate:modelValue": (b) => i(v.id)
|
|
12483
12482
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
@@ -12500,9 +12499,9 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12500
12499
|
},
|
|
12501
12500
|
emits: ["action"],
|
|
12502
12501
|
setup(e, { emit: a }) {
|
|
12503
|
-
const t = e, l = a, r = Ce(
|
|
12502
|
+
const t = e, l = a, r = Ce(Fl, 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, {
|
|
12504
12503
|
placement: "bottom-end",
|
|
12505
|
-
middleware: () => [Yn(4), Kn(),
|
|
12504
|
+
middleware: () => [Yn(4), Kn(), Ul({ padding: 8 })]
|
|
12506
12505
|
});
|
|
12507
12506
|
oe(b, (E) => {
|
|
12508
12507
|
!E && !m.value && !i.value && (o.value = !1, i.value = !1);
|
|
@@ -12680,7 +12679,7 @@ const Rw = /* @__PURE__ */ So(Ew, [["render", $w]]), Aw = { class: "vc-table-com
|
|
|
12680
12679
|
onClick: c[0] || (c[0] = ue(() => {
|
|
12681
12680
|
}, ["stop"]))
|
|
12682
12681
|
}, [
|
|
12683
|
-
$(n(
|
|
12682
|
+
$(n(Zl), {
|
|
12684
12683
|
"model-value": r.value,
|
|
12685
12684
|
disabled: e.disabled,
|
|
12686
12685
|
indeterminate: e.indeterminate,
|
|
@@ -13172,15 +13171,15 @@ function Zt(e) {
|
|
|
13172
13171
|
function Ya(e) {
|
|
13173
13172
|
return typeof e == "object" && "options" in e && "field" in e;
|
|
13174
13173
|
}
|
|
13175
|
-
function
|
|
13174
|
+
function kn(e) {
|
|
13176
13175
|
return typeof e == "object" && "range" in e;
|
|
13177
13176
|
}
|
|
13178
13177
|
function hi() {
|
|
13179
13178
|
return {
|
|
13180
|
-
getFilterType: (o) => o ? o === !0 || typeof o == "string" ? "text" :
|
|
13179
|
+
getFilterType: (o) => o ? o === !0 || typeof o == "string" ? "text" : kn(o) ? "dateRange" : Zt(o) ? "select" : "none" : "none",
|
|
13181
13180
|
getFilterField: (o, c) => !c || c === !0 ? o : typeof c == "string" ? c : Ya(c) ? c.field : (Zt(c), o),
|
|
13182
13181
|
getRangeFields: (o) => {
|
|
13183
|
-
if (o &&
|
|
13182
|
+
if (o && kn(o))
|
|
13184
13183
|
return o.range;
|
|
13185
13184
|
},
|
|
13186
13185
|
getFilterOptions: (o) => {
|
|
@@ -13192,7 +13191,7 @@ function hi() {
|
|
|
13192
13191
|
// Export type guards for external use
|
|
13193
13192
|
isSelectFilter: Zt,
|
|
13194
13193
|
isSelectFilterWithField: Ya,
|
|
13195
|
-
isDateRangeFilter:
|
|
13194
|
+
isDateRangeFilter: kn
|
|
13196
13195
|
};
|
|
13197
13196
|
}
|
|
13198
13197
|
const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-global-filters-panel__label" }, y0 = {
|
|
@@ -13476,7 +13475,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13476
13475
|
}), I0 = {
|
|
13477
13476
|
class: "vc-table-add-row",
|
|
13478
13477
|
role: "row"
|
|
13479
|
-
}, x0 = { role: "cell" },
|
|
13478
|
+
}, x0 = { role: "cell" }, En = /* @__PURE__ */ Q({
|
|
13480
13479
|
__name: "TableAddRowButton",
|
|
13481
13480
|
props: {
|
|
13482
13481
|
label: { default: void 0 },
|
|
@@ -13775,7 +13774,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13775
13774
|
onMouseleave: c
|
|
13776
13775
|
}, Ne({
|
|
13777
13776
|
default: x(() => [
|
|
13778
|
-
e.showSelectionCell ? (s(), P(
|
|
13777
|
+
e.showSelectionCell ? (s(), P(Bl, {
|
|
13779
13778
|
key: 0,
|
|
13780
13779
|
class: "vc-data-table__selection-cell",
|
|
13781
13780
|
"line-clamp": 0,
|
|
@@ -13799,7 +13798,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13799
13798
|
]),
|
|
13800
13799
|
_: 1
|
|
13801
13800
|
})) : L("", !0),
|
|
13802
|
-
(s(!0), g(J, null, ve(e.columns, (V) => (s(), P(
|
|
13801
|
+
(s(!0), g(J, null, ve(e.columns, (V) => (s(), P(Bl, {
|
|
13803
13802
|
key: V.props.id,
|
|
13804
13803
|
"column-id": V.props.id,
|
|
13805
13804
|
width: e.getColumnWidth(V.props),
|
|
@@ -13890,7 +13889,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13890
13889
|
return (l, r) => (s(), g("div", q0, [
|
|
13891
13890
|
e.columns.length > 0 ? (s(!0), g(J, { key: 0 }, ve(e.rows, (i) => (s(), P(na, { key: i }, {
|
|
13892
13891
|
default: x(() => [
|
|
13893
|
-
e.showSelectionCell ? (s(), P(
|
|
13892
|
+
e.showSelectionCell ? (s(), P(Bl, {
|
|
13894
13893
|
key: 0,
|
|
13895
13894
|
class: "vc-data-table__selection-cell",
|
|
13896
13895
|
"line-clamp": 0
|
|
@@ -13904,7 +13903,7 @@ const b0 = { class: "vc-global-filters-panel__content" }, h0 = { class: "vc-glob
|
|
|
13904
13903
|
]),
|
|
13905
13904
|
_: 1
|
|
13906
13905
|
})) : L("", !0),
|
|
13907
|
-
(s(!0), g(J, null, ve(e.columns, (o) => (s(), P(
|
|
13906
|
+
(s(!0), g(J, null, ve(e.columns, (o) => (s(), P(Bl, {
|
|
13908
13907
|
key: o.props.id,
|
|
13909
13908
|
width: e.getColumnWidth(o.props),
|
|
13910
13909
|
style: he(e.getCellStyle(o.props)),
|
|
@@ -14578,7 +14577,7 @@ const d1 = {
|
|
|
14578
14577
|
function ae(re) {
|
|
14579
14578
|
l("action", re, t.item, t.index);
|
|
14580
14579
|
}
|
|
14581
|
-
return
|
|
14580
|
+
return tt(() => {
|
|
14582
14581
|
c.value && (c.value.addEventListener("touchstart", de, { passive: !0 }), c.value.addEventListener("touchmove", Y, { passive: !1 }), c.value.addEventListener("touchend", q, { passive: !0 }));
|
|
14583
14582
|
}), He(() => {
|
|
14584
14583
|
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);
|
|
@@ -14649,7 +14648,7 @@ const d1 = {
|
|
|
14649
14648
|
class: "vc-data-table-mobile-card__checkbox",
|
|
14650
14649
|
onClick: ue(G, ["stop"])
|
|
14651
14650
|
}, [
|
|
14652
|
-
$(n(
|
|
14651
|
+
$(n(Zl), {
|
|
14653
14652
|
"model-value": e.isSelected,
|
|
14654
14653
|
disabled: !e.isSelectable,
|
|
14655
14654
|
size: "m"
|
|
@@ -14903,7 +14902,7 @@ function T1(e) {
|
|
|
14903
14902
|
mobileVisibleColumns: t
|
|
14904
14903
|
};
|
|
14905
14904
|
}
|
|
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,
|
|
14905
|
+
const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc-pull-to-refresh__text" }, L1 = 0.08, I1 = 0.7, x1 = 1, Sn = 60, N1 = /* @__PURE__ */ Q({
|
|
14907
14906
|
__name: "PullToRefresh",
|
|
14908
14907
|
props: {
|
|
14909
14908
|
enabled: { type: Boolean, default: !0 },
|
|
@@ -14919,7 +14918,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
14919
14918
|
"vc-pull-to-refresh__icon--rotate": v.value && !l.refreshing,
|
|
14920
14919
|
"vc-pull-to-refresh__icon--spin": l.refreshing
|
|
14921
14920
|
})), 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(() => ({
|
|
14922
|
-
transform: `translateY(${Math.min(d.value,
|
|
14921
|
+
transform: `translateY(${Math.min(d.value, Sn + 20) - Sn}px)`,
|
|
14923
14922
|
opacity: Math.min(d.value / l.threshold, 1)
|
|
14924
14923
|
})), B = y(() => ({
|
|
14925
14924
|
transform: `translateY(${d.value}px)`
|
|
@@ -14968,7 +14967,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
14968
14967
|
Y = Math.min(Y, q), d.value = Y, v.value = Y >= l.threshold;
|
|
14969
14968
|
}
|
|
14970
14969
|
function _() {
|
|
14971
|
-
u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), M(
|
|
14970
|
+
u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), M(Sn)) : M(0), v.value = !1);
|
|
14972
14971
|
}
|
|
14973
14972
|
return oe(
|
|
14974
14973
|
() => l.refreshing,
|
|
@@ -15177,7 +15176,7 @@ const O1 = { class: "vc-pull-to-refresh__indicator-content" }, M1 = { class: "vc
|
|
|
15177
15176
|
}
|
|
15178
15177
|
});
|
|
15179
15178
|
function v$() {
|
|
15180
|
-
return Ce(
|
|
15179
|
+
return Ce(Fl, null);
|
|
15181
15180
|
}
|
|
15182
15181
|
const aa = 40;
|
|
15183
15182
|
function U1(e) {
|
|
@@ -15307,7 +15306,7 @@ function q1(e, a) {
|
|
|
15307
15306
|
d[u] = c > 0 ? r[u] / c : 1 / e.length;
|
|
15308
15307
|
return d;
|
|
15309
15308
|
}
|
|
15310
|
-
function
|
|
15309
|
+
function $n(e, a) {
|
|
15311
15310
|
const t = a.reduce((l, r) => l + (e[r]?.weight ?? 0), 0);
|
|
15312
15311
|
if (t <= 0) {
|
|
15313
15312
|
const l = 1 / a.length;
|
|
@@ -15545,7 +15544,7 @@ function j1(e, a, t) {
|
|
|
15545
15544
|
pendingReorder: i
|
|
15546
15545
|
};
|
|
15547
15546
|
}
|
|
15548
|
-
function
|
|
15547
|
+
function Rn(e) {
|
|
15549
15548
|
try {
|
|
15550
15549
|
return structuredClone(co(e));
|
|
15551
15550
|
} catch {
|
|
@@ -15566,12 +15565,12 @@ function X1(e) {
|
|
|
15566
15565
|
Z.delete(K), C.value = Z;
|
|
15567
15566
|
}
|
|
15568
15567
|
}, T = (K, Z) => `${K}:${Z}`, I = () => {
|
|
15569
|
-
c = a.value.map((K) =>
|
|
15568
|
+
c = a.value.map((K) => Rn(K)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !0;
|
|
15570
15569
|
}, V = () => {
|
|
15571
|
-
a.value.splice(0, a.value.length, ...c.map((K) =>
|
|
15570
|
+
a.value.splice(0, a.value.length, ...c.map((K) => Rn(K))), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
|
|
15572
15571
|
}, B = async () => {
|
|
15573
15572
|
const { valid: K } = await h();
|
|
15574
|
-
K && (r && await r(_.value), c = a.value.map((Z) =>
|
|
15573
|
+
K && (r && await r(_.value), c = a.value.map((Z) => Rn(Z)), f(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
|
|
15575
15574
|
}, O = (K, Z, de) => {
|
|
15576
15575
|
if (K < 0 || K >= a.value.length) return;
|
|
15577
15576
|
const Y = T(K, Z), q = a.value[K];
|
|
@@ -15708,7 +15707,7 @@ function f$(e) {
|
|
|
15708
15707
|
(M, R) => {
|
|
15709
15708
|
R > 0 && M !== R && (m = { start: -1, end: -1 });
|
|
15710
15709
|
}
|
|
15711
|
-
),
|
|
15710
|
+
), tt(() => {
|
|
15712
15711
|
B(), window.addEventListener("resize", O);
|
|
15713
15712
|
}), He(() => {
|
|
15714
15713
|
window.removeEventListener("resize", O), p && clearTimeout(p);
|
|
@@ -16283,7 +16282,7 @@ function aC(e) {
|
|
|
16283
16282
|
for (const ae of E)
|
|
16284
16283
|
z.has(ae.props.id) || (ee.order.push(ae.props.id), ee.specs[ae.props.id] = I(ae.props, ne, ke));
|
|
16285
16284
|
const W = N.filter((ae) => ee.specs[ae]);
|
|
16286
|
-
|
|
16285
|
+
$n(ee.specs, W), i.value = ee;
|
|
16287
16286
|
}
|
|
16288
16287
|
else if (Z.length > 0) {
|
|
16289
16288
|
const ee = { ...i.value };
|
|
@@ -16291,13 +16290,13 @@ function aC(e) {
|
|
|
16291
16290
|
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;
|
|
16292
16291
|
for (const W of Z)
|
|
16293
16292
|
ee.specs[W] && (ee.specs[W] = { ...ee.specs[W], weight: ke });
|
|
16294
|
-
|
|
16293
|
+
$n(
|
|
16295
16294
|
ee.specs,
|
|
16296
16295
|
N.filter((W) => ee.specs[W])
|
|
16297
16296
|
), i.value = ee;
|
|
16298
16297
|
} else if (de.length > 0) {
|
|
16299
16298
|
const ee = { ...i.value };
|
|
16300
|
-
ee.specs = { ...ee.specs },
|
|
16299
|
+
ee.specs = { ...ee.specs }, $n(
|
|
16301
16300
|
ee.specs,
|
|
16302
16301
|
N.filter((G) => ee.specs[G])
|
|
16303
16302
|
), i.value = ee;
|
|
@@ -16655,7 +16654,7 @@ function uC(e) {
|
|
|
16655
16654
|
}, Mt = D(null), Lt = () => {
|
|
16656
16655
|
const j = me();
|
|
16657
16656
|
Mt.value && Object.assign(j, Mt.value), t("filter", { filters: j, filteredValue: a.items });
|
|
16658
|
-
},
|
|
16657
|
+
}, tn = (j, ge) => {
|
|
16659
16658
|
const pe = Re(j), Oe = Ee(j);
|
|
16660
16659
|
if (pe === "dateRange") {
|
|
16661
16660
|
const Be = at(j);
|
|
@@ -16668,7 +16667,7 @@ function uC(e) {
|
|
|
16668
16667
|
re(Oe, Be);
|
|
16669
16668
|
}
|
|
16670
16669
|
Lt();
|
|
16671
|
-
},
|
|
16670
|
+
}, ln = (j) => {
|
|
16672
16671
|
const ge = Ee(j);
|
|
16673
16672
|
if (Re(j) === "dateRange") {
|
|
16674
16673
|
const Oe = at(j);
|
|
@@ -16679,9 +16678,9 @@ function uC(e) {
|
|
|
16679
16678
|
} else
|
|
16680
16679
|
te(ge);
|
|
16681
16680
|
Lt();
|
|
16682
|
-
}, ul = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []),
|
|
16681
|
+
}, ul = y(() => ee.value && de.value ? [...ne.value] : a.items ?? []), nn = (j) => ul.value.indexOf(j), an = y(() => E.orderedVisibleColumns.value.filter(
|
|
16683
16682
|
(j) => j != null && j.props != null && j.props.id != null
|
|
16684
|
-
)), { handleResizeStart:
|
|
16683
|
+
)), { handleResizeStart: on } = K1({
|
|
16685
16684
|
columnState: E.columnState,
|
|
16686
16685
|
engineOutput: E.engineOutput,
|
|
16687
16686
|
recompute: E.recompute,
|
|
@@ -16695,7 +16694,7 @@ function uC(e) {
|
|
|
16695
16694
|
containerEl: u
|
|
16696
16695
|
}), {
|
|
16697
16696
|
isDragging: Wt,
|
|
16698
|
-
handleDragStart:
|
|
16697
|
+
handleDragStart: sn,
|
|
16699
16698
|
handleDragOver: Et,
|
|
16700
16699
|
handleDrop: Gt
|
|
16701
16700
|
} = Y1({
|
|
@@ -16736,15 +16735,15 @@ function uC(e) {
|
|
|
16736
16735
|
isColumnFilterMultiple: st,
|
|
16737
16736
|
getColumnRangeFields: at,
|
|
16738
16737
|
getColumnFilterValue: kt,
|
|
16739
|
-
handleColumnFilterApply:
|
|
16740
|
-
handleColumnFilterClear:
|
|
16738
|
+
handleColumnFilterApply: tn,
|
|
16739
|
+
handleColumnFilterClear: ln,
|
|
16741
16740
|
emitFilterPayload: Lt,
|
|
16742
16741
|
// Global filter
|
|
16743
16742
|
globalFilterPayload: Mt,
|
|
16744
16743
|
// Resize / reorder
|
|
16745
|
-
handleResizeStart:
|
|
16744
|
+
handleResizeStart: on,
|
|
16746
16745
|
isColumnReordering: Wt,
|
|
16747
|
-
handleColumnDragStart:
|
|
16746
|
+
handleColumnDragStart: sn,
|
|
16748
16747
|
handleColumnDragOver: Et,
|
|
16749
16748
|
handleColumnDrop: Gt,
|
|
16750
16749
|
// Row reorder
|
|
@@ -16755,7 +16754,7 @@ function uC(e) {
|
|
|
16755
16754
|
rowReorderListRef: q,
|
|
16756
16755
|
// Derived computeds
|
|
16757
16756
|
displayItems: ul,
|
|
16758
|
-
getGlobalIndex:
|
|
16757
|
+
getGlobalIndex: nn,
|
|
16759
16758
|
effectiveSelectionMode: p,
|
|
16760
16759
|
selectionColumn: v,
|
|
16761
16760
|
hasSelectionColumn: b,
|
|
@@ -16765,7 +16764,7 @@ function uC(e) {
|
|
|
16765
16764
|
computedVariant: h,
|
|
16766
16765
|
switcherColumns: F,
|
|
16767
16766
|
switcherVisibleColumnIds: z,
|
|
16768
|
-
safeColumns:
|
|
16767
|
+
safeColumns: an,
|
|
16769
16768
|
isInlineEditing: R,
|
|
16770
16769
|
// Expansion helper
|
|
16771
16770
|
isRowExpanded: V,
|
|
@@ -16953,7 +16952,7 @@ const m$ = {
|
|
|
16953
16952
|
}, pC = {
|
|
16954
16953
|
key: 0,
|
|
16955
16954
|
class: "vc-data-table__mobile-select-toolbar"
|
|
16956
|
-
}, gC = { class: "vc-data-table__mobile-select-toolbar-text" }, bC = { class: "vc-data-table__page-info" },
|
|
16955
|
+
}, gC = { class: "vc-data-table__mobile-select-toolbar-text" }, bC = { class: "vc-data-table__page-info" }, An = 37, Ja = 140, hC = /* @__PURE__ */ Q({
|
|
16957
16956
|
inheritAttrs: !1,
|
|
16958
16957
|
__name: "VcDataTable",
|
|
16959
16958
|
props: {
|
|
@@ -17139,30 +17138,30 @@ const m$ = {
|
|
|
17139
17138
|
// Global filter payload (owned by component UI state; orchestrator wires it)
|
|
17140
17139
|
globalFilterPayload: Lt,
|
|
17141
17140
|
// Resize / reorder
|
|
17142
|
-
handleResizeStart:
|
|
17143
|
-
isColumnReordering:
|
|
17141
|
+
handleResizeStart: tn,
|
|
17142
|
+
isColumnReordering: ln,
|
|
17144
17143
|
handleColumnDragStart: ul,
|
|
17145
|
-
handleColumnDragOver:
|
|
17146
|
-
handleColumnDrop:
|
|
17144
|
+
handleColumnDragOver: nn,
|
|
17145
|
+
handleColumnDrop: an,
|
|
17147
17146
|
// Row reorder state
|
|
17148
|
-
rowReorderListRef:
|
|
17147
|
+
rowReorderListRef: on,
|
|
17149
17148
|
// Derived computeds
|
|
17150
17149
|
displayItems: Wt,
|
|
17151
|
-
getGlobalIndex:
|
|
17150
|
+
getGlobalIndex: sn,
|
|
17152
17151
|
effectiveSelectionMode: Et,
|
|
17153
17152
|
hasSelectionColumn: Gt,
|
|
17154
17153
|
isSelectionViaColumn: qt,
|
|
17155
17154
|
isRowReorderEnabled: dl,
|
|
17156
17155
|
showRowDragHandle: It,
|
|
17157
|
-
hasExpanderColumn:
|
|
17156
|
+
hasExpanderColumn: rn,
|
|
17158
17157
|
computedVariant: ia,
|
|
17159
17158
|
switcherColumns: sa,
|
|
17160
17159
|
switcherVisibleColumnIds: ra,
|
|
17161
17160
|
safeColumns: vl,
|
|
17162
17161
|
isInlineEditing: fl,
|
|
17163
17162
|
// Expansion helper
|
|
17164
|
-
isRowExpanded:
|
|
17165
|
-
canExpand:
|
|
17163
|
+
isRowExpanded: cn,
|
|
17164
|
+
canExpand: un,
|
|
17166
17165
|
// Event handlers
|
|
17167
17166
|
handleSort: ca,
|
|
17168
17167
|
handleRowClick: ua,
|
|
@@ -17173,7 +17172,7 @@ const m$ = {
|
|
|
17173
17172
|
handleCellClick: ma,
|
|
17174
17173
|
handleCellEditComplete: pa,
|
|
17175
17174
|
handleCellEditCancel: ga,
|
|
17176
|
-
handleCellValueChange:
|
|
17175
|
+
handleCellValueChange: dn,
|
|
17177
17176
|
handleExpandToggle: j,
|
|
17178
17177
|
handleStartRowEdit: ge,
|
|
17179
17178
|
handleSaveRowEdit: pe,
|
|
@@ -17194,11 +17193,11 @@ const m$ = {
|
|
|
17194
17193
|
tableContainerRef: ne
|
|
17195
17194
|
}), Ke = D(null), ba = D(null);
|
|
17196
17195
|
Hn(() => {
|
|
17197
|
-
|
|
17196
|
+
on.value = B.value ? ba.value?.listEl : Ke.value?.listEl;
|
|
17198
17197
|
}), De(
|
|
17199
17198
|
$o,
|
|
17200
17199
|
y(() => ie.engineOutput.value.fillerWidth)
|
|
17201
|
-
), De(Ro,
|
|
17200
|
+
), De(Ro, ln);
|
|
17202
17201
|
const ha = (ce) => {
|
|
17203
17202
|
r("pagination-click", ce);
|
|
17204
17203
|
}, Yt = D(l.searchValue ?? "");
|
|
@@ -17218,7 +17217,7 @@ const m$ = {
|
|
|
17218
17217
|
if (!l.infiniteScroll || l.loading) return;
|
|
17219
17218
|
const be = ce.target, _e = l.infiniteScrollDistance ?? 100;
|
|
17220
17219
|
be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
|
|
17221
|
-
},
|
|
17220
|
+
}, vn = y(() => l.addRow?.enabled === !0), ya = y(() => l.addRow?.position ?? "footer"), fn = y(() => l.addRow?.label ?? "Add row"), mn = y(() => l.addRow?.icon ?? "lucide-plus"), Ai = (ce) => {
|
|
17222
17221
|
}, Ti = () => {
|
|
17223
17222
|
}, ml = D(!1), pl = D({}), wa = D(null), Oi = y(() => {
|
|
17224
17223
|
const ce = wa.value;
|
|
@@ -17266,8 +17265,8 @@ const m$ = {
|
|
|
17266
17265
|
reorderable: dl.value,
|
|
17267
17266
|
showDragHandle: It.value,
|
|
17268
17267
|
// Expansion
|
|
17269
|
-
expandable:
|
|
17270
|
-
isExpanded:
|
|
17268
|
+
expandable: rn.value && un(ce),
|
|
17269
|
+
isExpanded: cn(ce),
|
|
17271
17270
|
expandedIcon: l.expandedRowIcon,
|
|
17272
17271
|
collapsedIcon: l.collapsedRowIcon,
|
|
17273
17272
|
// Editing
|
|
@@ -17286,9 +17285,9 @@ const m$ = {
|
|
|
17286
17285
|
rowClass: l.rowClass?.(ce)
|
|
17287
17286
|
}), { width: gl } = No(ee), Di = y(() => {
|
|
17288
17287
|
if (!l.pagination || gl.value === 0) return 5;
|
|
17289
|
-
const ce = gl.value - Ja, be = Math.floor((ce - 2 *
|
|
17288
|
+
const ce = gl.value - Ja, be = Math.floor((ce - 2 * An) / An);
|
|
17290
17289
|
return be >= 7 ? 5 : be >= 3 ? be : 0;
|
|
17291
|
-
}), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 *
|
|
17290
|
+
}), Bi = y(() => !l.pagination || gl.value === 0 ? !0 : gl.value - Ja >= 5 * An);
|
|
17292
17291
|
return a({
|
|
17293
17292
|
// Selection API (public keys unchanged; sourced from the selection facade)
|
|
17294
17293
|
selectAll: G.selectAll,
|
|
@@ -17362,10 +17361,10 @@ const m$ = {
|
|
|
17362
17361
|
"onUpdate:show": be[3] || (be[3] = (_e) => Xt.value = _e),
|
|
17363
17362
|
onReset: n(fa)
|
|
17364
17363
|
}, null, 8, ["columns", "visible-columns", "show", "anchor-ref", "onUpdate:visibleColumns", "onReset"])) : L("", !0),
|
|
17365
|
-
|
|
17364
|
+
vn.value && ya.value === "header" ? (s(), P(n(En), {
|
|
17366
17365
|
key: 4,
|
|
17367
|
-
label:
|
|
17368
|
-
icon:
|
|
17366
|
+
label: fn.value,
|
|
17367
|
+
icon: mn.value,
|
|
17369
17368
|
onAdd: be[4] || (be[4] = (_e) => n(Kt)())
|
|
17370
17369
|
}, null, 8, ["label", "icon"])) : L("", !0),
|
|
17371
17370
|
H(ce.$slots, "selection-banner", {
|
|
@@ -17410,15 +17409,15 @@ const m$ = {
|
|
|
17410
17409
|
"pull-to-refresh-text": e.pullToRefreshText,
|
|
17411
17410
|
"is-inline-editing": n(fl),
|
|
17412
17411
|
"new-row-indices": n(re).newRowIndices.value,
|
|
17413
|
-
"can-expand-row": (_e) => n(
|
|
17414
|
-
"is-row-expanded": n(
|
|
17412
|
+
"can-expand-row": (_e) => n(rn) && n(un)(_e),
|
|
17413
|
+
"is-row-expanded": n(cn),
|
|
17415
17414
|
"expanded-icon": e.expandedRowIcon,
|
|
17416
17415
|
"expand-label": ce.$t("COMPONENTS.ORGANISMS.VC_TABLE.EXPAND_ROW"),
|
|
17417
17416
|
onClick: n(ot),
|
|
17418
17417
|
onSelect: n(Je),
|
|
17419
17418
|
onAction: n(it),
|
|
17420
17419
|
onRefresh: be[10] || (be[10] = (_e) => r("pull-refresh")),
|
|
17421
|
-
onCellValueChange: be[11] || (be[11] = (_e, Me, Ye) => n(
|
|
17420
|
+
onCellValueChange: be[11] || (be[11] = (_e, Me, Ye) => n(dn)(_e, Me, Ye)),
|
|
17422
17421
|
onExpandToggle: be[12] || (be[12] = (_e, Me, Ye) => n(j)(_e, Me, Ye))
|
|
17423
17422
|
}, Ne({
|
|
17424
17423
|
empty: x(() => [
|
|
@@ -17444,10 +17443,10 @@ const m$ = {
|
|
|
17444
17443
|
key: "0"
|
|
17445
17444
|
} : void 0
|
|
17446
17445
|
]), 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"]),
|
|
17447
|
-
|
|
17446
|
+
vn.value ? (s(), P(n(En), {
|
|
17448
17447
|
key: 1,
|
|
17449
|
-
label:
|
|
17450
|
-
icon:
|
|
17448
|
+
label: fn.value,
|
|
17449
|
+
icon: mn.value,
|
|
17451
17450
|
onAdd: be[13] || (be[13] = (_e) => n(Kt)())
|
|
17452
17451
|
}, null, 8, ["label", "icon"])) : L("", !0)
|
|
17453
17452
|
])) : (s(), g("div", {
|
|
@@ -17490,10 +17489,10 @@ const m$ = {
|
|
|
17490
17489
|
"actions-position": e.rowActionsPosition,
|
|
17491
17490
|
onSelectAll: n(G).onSelectAll,
|
|
17492
17491
|
onSort: n(ca),
|
|
17493
|
-
onResizeStart: n(
|
|
17492
|
+
onResizeStart: n(tn),
|
|
17494
17493
|
onReorderStart: n(ul),
|
|
17495
|
-
onReorderOver: n(
|
|
17496
|
-
onReorderDrop: be[5] || (be[5] = (_e, Me) => n(
|
|
17494
|
+
onReorderOver: n(nn),
|
|
17495
|
+
onReorderDrop: be[5] || (be[5] = (_e, Me) => n(an)(Me)),
|
|
17497
17496
|
onFilterApply: n(at),
|
|
17498
17497
|
onFilterClear: n(kt),
|
|
17499
17498
|
onColumnSwitcherClick: be[6] || (be[6] = (_e) => Xt.value = !Xt.value)
|
|
@@ -17519,7 +17518,7 @@ const m$ = {
|
|
|
17519
17518
|
"expandable-row-groups": e.expandableRowGroups,
|
|
17520
17519
|
"is-group-expanded": n(ae).isGroupExpanded,
|
|
17521
17520
|
"get-item-group-key": n(ae).getItemGroupKey,
|
|
17522
|
-
"get-global-index": n(
|
|
17521
|
+
"get-global-index": n(sn),
|
|
17523
17522
|
"get-item-key": Y,
|
|
17524
17523
|
"new-row-indices": n(re).newRowIndices.value,
|
|
17525
17524
|
"get-row-props": Ni,
|
|
@@ -17535,7 +17534,7 @@ const m$ = {
|
|
|
17535
17534
|
onRowCancel: n(Oe),
|
|
17536
17535
|
onEditComplete: n(pa),
|
|
17537
17536
|
onEditCancel: n(ga),
|
|
17538
|
-
onCellValueChange: n(
|
|
17537
|
+
onCellValueChange: n(dn),
|
|
17539
17538
|
onCellClick: n(ma)
|
|
17540
17539
|
}, Ne({
|
|
17541
17540
|
"row-actions": x(({ item: _e, index: Me }) => [
|
|
@@ -17598,10 +17597,10 @@ const m$ = {
|
|
|
17598
17597
|
]),
|
|
17599
17598
|
_: 3
|
|
17600
17599
|
})) : L("", !0),
|
|
17601
|
-
|
|
17600
|
+
vn.value && ya.value === "footer" ? (s(), P(n(En), {
|
|
17602
17601
|
key: 1,
|
|
17603
|
-
label:
|
|
17604
|
-
icon:
|
|
17602
|
+
label: fn.value,
|
|
17603
|
+
icon: mn.value,
|
|
17605
17604
|
onAdd: be[9] || (be[9] = (_e) => n(Kt)())
|
|
17606
17605
|
}, null, 8, ["label", "icon"])) : L("", !0)
|
|
17607
17606
|
]),
|
|
@@ -18193,7 +18192,7 @@ function DC(e) {
|
|
|
18193
18192
|
function Bt(e) {
|
|
18194
18193
|
return e ? eo[DC(e) % eo.length] : "var(--primary-500)";
|
|
18195
18194
|
}
|
|
18196
|
-
const
|
|
18195
|
+
const Tn = "#ffffff", Ci = "#18181b";
|
|
18197
18196
|
function _i(e) {
|
|
18198
18197
|
const a = e.trim(), t = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(a);
|
|
18199
18198
|
if (t) {
|
|
@@ -18212,11 +18211,11 @@ function ki([e, a, t]) {
|
|
|
18212
18211
|
}
|
|
18213
18212
|
const to = (e, a) => (Math.max(e, a) + 0.05) / (Math.min(e, a) + 0.05), BC = ki(_i(Ci));
|
|
18214
18213
|
function Ei(e) {
|
|
18215
|
-
if (!e) return
|
|
18214
|
+
if (!e) return Tn;
|
|
18216
18215
|
const a = _i(e);
|
|
18217
|
-
if (!a) return
|
|
18216
|
+
if (!a) return Tn;
|
|
18218
18217
|
const t = ki(a);
|
|
18219
|
-
return to(t, 1) >= to(t, BC) ?
|
|
18218
|
+
return to(t, 1) >= to(t, BC) ? Tn : Ci;
|
|
18220
18219
|
}
|
|
18221
18220
|
function Vn(e, a) {
|
|
18222
18221
|
return a ? {
|
|
@@ -18559,7 +18558,7 @@ const o_ = { class: "vc-scheduler__qi-title" }, i_ = ["aria-label", "onClick"],
|
|
|
18559
18558
|
const k = Te(f.start, "PPP"), C = new Date(f.end.getTime() - 1), S = Te(C, "PPP");
|
|
18560
18559
|
return k === S ? k : `${k} – ${S}`;
|
|
18561
18560
|
}
|
|
18562
|
-
return
|
|
18561
|
+
return Hl(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")}`;
|
|
18563
18562
|
}), u = y(() => {
|
|
18564
18563
|
const f = t.event;
|
|
18565
18564
|
if (!f) return "";
|
|
@@ -18774,14 +18773,14 @@ function w_(e) {
|
|
|
18774
18773
|
function u(h) {
|
|
18775
18774
|
if (!e.editable.value) return;
|
|
18776
18775
|
const f = Ge(h);
|
|
18777
|
-
t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end:
|
|
18776
|
+
t = { kind: "create" }, r = f.getTime(), a.value = { id: "__new__", start: f, end: et(f, 1) };
|
|
18778
18777
|
}
|
|
18779
18778
|
function v(h, f) {
|
|
18780
18779
|
if (!t || !a.value) return;
|
|
18781
18780
|
const k = e.dayFromPoint(h, f);
|
|
18782
18781
|
if (!k) return;
|
|
18783
18782
|
if (t.kind === "create") {
|
|
18784
|
-
const T = Ge(k).getTime(), I = Math.min(r, T), V =
|
|
18783
|
+
const T = Ge(k).getTime(), I = Math.min(r, T), V = et(new Date(Math.max(r, T)), 1);
|
|
18785
18784
|
a.value = { id: "__new__", start: new Date(I), end: V };
|
|
18786
18785
|
return;
|
|
18787
18786
|
}
|
|
@@ -18836,11 +18835,11 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18836
18835
|
emits: ["event-click", "create-intent", "event-update", "edit-intent", "event-delete"],
|
|
18837
18836
|
setup(e, { emit: a }) {
|
|
18838
18837
|
const t = e, l = a, r = D(null), i = y(() => {
|
|
18839
|
-
const te = t.firstDayOfWeek % 7, me = At(
|
|
18840
|
-
return { start: me, end:
|
|
18838
|
+
const te = t.firstDayOfWeek % 7, me = At(Wl(t.focusedDate), { weekStartsOn: te });
|
|
18839
|
+
return { start: me, end: et(me, 42) };
|
|
18841
18840
|
}), o = y(
|
|
18842
18841
|
() => Array.from({ length: 42 }, (te, me) => {
|
|
18843
|
-
const se =
|
|
18842
|
+
const se = et(i.value.start, me);
|
|
18844
18843
|
return {
|
|
18845
18844
|
date: se,
|
|
18846
18845
|
inMonth: Vo(se, t.focusedDate),
|
|
@@ -18849,7 +18848,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18849
18848
|
};
|
|
18850
18849
|
})
|
|
18851
18850
|
), c = y(
|
|
18852
|
-
() => Array.from({ length: 7 }, (te, me) => Te(
|
|
18851
|
+
() => Array.from({ length: 7 }, (te, me) => Te(et(i.value.start, me), "EEEEEE"))
|
|
18853
18852
|
);
|
|
18854
18853
|
function d(te, me) {
|
|
18855
18854
|
const se = r.value;
|
|
@@ -18857,7 +18856,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18857
18856
|
const ye = se.getBoundingClientRect();
|
|
18858
18857
|
if (ye.width <= 0 || ye.height <= 0) return null;
|
|
18859
18858
|
const Ee = Math.floor((te - ye.left) / ye.width * 7), Re = Math.floor((me - ye.top) / ye.height * 6);
|
|
18860
|
-
return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null :
|
|
18859
|
+
return Ee < 0 || Ee > 6 || Re < 0 || Re > 5 ? null : et(i.value.start, Re * 7 + Ee);
|
|
18861
18860
|
}
|
|
18862
18861
|
const u = w_({
|
|
18863
18862
|
editable: Ie(t, "editable"),
|
|
@@ -18900,7 +18899,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18900
18899
|
const se = O.get(me);
|
|
18901
18900
|
if (O.delete(me), !se) return;
|
|
18902
18901
|
const ye = Ge(se.date);
|
|
18903
|
-
l("create-intent", { start: ye, end:
|
|
18902
|
+
l("create-intent", { start: ye, end: et(ye, 1), allDay: !0, anchorRect: se.rect, kind: te });
|
|
18904
18903
|
}
|
|
18905
18904
|
});
|
|
18906
18905
|
function R(te, me) {
|
|
@@ -18915,7 +18914,7 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
18915
18914
|
function E(te) {
|
|
18916
18915
|
if (u.pending.value && (u.updatePointer(te.clientX, te.clientY), T === "create" && I && !B)) {
|
|
18917
18916
|
const me = d(te.clientX, te.clientY);
|
|
18918
|
-
me && !
|
|
18917
|
+
me && !Hl(me, I) && (B = !0);
|
|
18919
18918
|
}
|
|
18920
18919
|
}
|
|
18921
18920
|
function N() {
|
|
@@ -19088,15 +19087,15 @@ const C_ = { class: "vc-scheduler__month" }, __ = {
|
|
|
19088
19087
|
emits: ["event-click", "create-intent", "edit-intent", "event-delete"],
|
|
19089
19088
|
setup(e, { emit: a }) {
|
|
19090
19089
|
const { t } = ze(), l = e, r = a, i = (m) => m.allDay !== void 0 ? m.allDay : m.end.getTime() - m.start.getTime() >= 864e5, o = y(() => {
|
|
19091
|
-
const m =
|
|
19092
|
-
for (let k = Ge(m); k <= h; k =
|
|
19093
|
-
const C = k.getTime(), S =
|
|
19090
|
+
const m = Wl(l.focusedDate), h = mc(l.focusedDate), f = [];
|
|
19091
|
+
for (let k = Ge(m); k <= h; k = et(k, 1)) {
|
|
19092
|
+
const C = k.getTime(), S = et(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());
|
|
19094
19093
|
T.length && f.push({ key: Te(k, "yyyy-MM-dd"), date: new Date(k), isToday: Xn(k), events: T });
|
|
19095
19094
|
}
|
|
19096
19095
|
return f;
|
|
19097
19096
|
});
|
|
19098
19097
|
function c(m) {
|
|
19099
|
-
return i(m) ? t("VC_SCHEDULER.ALL_DAY") :
|
|
19098
|
+
return i(m) ? t("VC_SCHEDULER.ALL_DAY") : Hl(m.start, m.end) ? Te(m.start, "p") : Te(m.start, "MMM d, p");
|
|
19100
19099
|
}
|
|
19101
19100
|
function d(m, h) {
|
|
19102
19101
|
const f = Ge(m.start), k = Ge(new Date(m.end.getTime() - 1)), C = Dt(k, f) + 1;
|
|
@@ -19192,7 +19191,7 @@ function H_(e) {
|
|
|
19192
19191
|
function W_(e) {
|
|
19193
19192
|
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(() => {
|
|
19194
19193
|
const p = Ge(e.rangeStart.value);
|
|
19195
|
-
return Array.from({ length: a.value }, (m, h) =>
|
|
19194
|
+
return Array.from({ length: a.value }, (m, h) => et(p, h));
|
|
19196
19195
|
}), i = y(
|
|
19197
19196
|
() => r.value.map((p, m) => ({
|
|
19198
19197
|
date: p,
|
|
@@ -19343,7 +19342,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19343
19342
|
};
|
|
19344
19343
|
}
|
|
19345
19344
|
const h = D(null);
|
|
19346
|
-
|
|
19345
|
+
tt(() => {
|
|
19347
19346
|
const R = h.value;
|
|
19348
19347
|
if (!R) return;
|
|
19349
19348
|
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);
|
|
@@ -19351,7 +19350,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19351
19350
|
});
|
|
19352
19351
|
const f = D(Date.now());
|
|
19353
19352
|
let k;
|
|
19354
|
-
|
|
19353
|
+
tt(() => {
|
|
19355
19354
|
k = setInterval(() => f.value = Date.now(), 6e4);
|
|
19356
19355
|
}), Rt(() => {
|
|
19357
19356
|
k && clearInterval(k);
|
|
@@ -19641,7 +19640,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19641
19640
|
]), b = y(() => {
|
|
19642
19641
|
const A = At(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
|
|
19643
19642
|
return Array.from({ length: 7 }, (_, E) => {
|
|
19644
|
-
const N =
|
|
19643
|
+
const N = et(A, E);
|
|
19645
19644
|
return { value: E, label: Te(N, "EEEEE"), fullLabel: Te(N, "EEEE") };
|
|
19646
19645
|
});
|
|
19647
19646
|
}), p = y(() => {
|
|
@@ -19726,14 +19725,14 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19726
19725
|
"onUpdate:modelValue": _[1] || (_[1] = (E) => o.allDay = !!E)
|
|
19727
19726
|
}, null, 8, ["model-value", "label"]),
|
|
19728
19727
|
w("div", fk, [
|
|
19729
|
-
$(n(
|
|
19728
|
+
$(n(pn), {
|
|
19730
19729
|
"model-value": o.start,
|
|
19731
19730
|
type: c.value,
|
|
19732
19731
|
label: A.$t("VC_SCHEDULER.START"),
|
|
19733
19732
|
class: "vc-scheduler__editor-field",
|
|
19734
19733
|
"onUpdate:modelValue": _[2] || (_[2] = (E) => E && (o.start = E))
|
|
19735
19734
|
}, null, 8, ["model-value", "type", "label"]),
|
|
19736
|
-
$(n(
|
|
19735
|
+
$(n(pn), {
|
|
19737
19736
|
"model-value": o.end,
|
|
19738
19737
|
type: c.value,
|
|
19739
19738
|
label: A.$t("VC_SCHEDULER.END"),
|
|
@@ -19812,7 +19811,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19812
19811
|
"data-test": "recur-end-type",
|
|
19813
19812
|
"onUpdate:modelValue": _[7] || (_[7] = (E) => I(E))
|
|
19814
19813
|
}, null, 8, ["model-value", "label", "options"]),
|
|
19815
|
-
m.value === "until" ? (s(), P(n(
|
|
19814
|
+
m.value === "until" ? (s(), P(n(pn), {
|
|
19816
19815
|
key: 0,
|
|
19817
19816
|
"model-value": h.value,
|
|
19818
19817
|
type: "date",
|
|
@@ -19988,7 +19987,7 @@ const G_ = { class: "vc-scheduler__tg" }, q_ = { class: "vc-scheduler__tg-head"
|
|
|
19988
19987
|
});
|
|
19989
19988
|
function Mk(e) {
|
|
19990
19989
|
const a = () => ({ weekStartsOn: e.firstDayOfWeek.value % 7 }), t = y(() => {
|
|
19991
|
-
const d = At(
|
|
19990
|
+
const d = At(Wl(e.date.value), a()), u = new Date(d.getTime() + 42 * 864e5);
|
|
19992
19991
|
return { start: d, end: u };
|
|
19993
19992
|
}), l = y(() => {
|
|
19994
19993
|
const d = e.date.value;
|
|
@@ -20006,7 +20005,7 @@ function Mk(e) {
|
|
|
20006
20005
|
const u = e.date.value;
|
|
20007
20006
|
switch (e.view.value) {
|
|
20008
20007
|
case "timeline-day":
|
|
20009
|
-
return
|
|
20008
|
+
return et(u, d);
|
|
20010
20009
|
case "timeline-week":
|
|
20011
20010
|
return gc(u, d);
|
|
20012
20011
|
default:
|
|
@@ -20065,7 +20064,7 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
|
|
|
20065
20064
|
}
|
|
20066
20065
|
function p() {
|
|
20067
20066
|
const W = Ge(Z.value);
|
|
20068
|
-
b({ start: W, end:
|
|
20067
|
+
b({ start: W, end: et(W, 1), allDay: !0, anchorRect: null, kind: "double" });
|
|
20069
20068
|
}
|
|
20070
20069
|
function m(W) {
|
|
20071
20070
|
if (t.editorMode === "emit") {
|
|
@@ -20248,14 +20247,14 @@ const Lk = Symbol("VcSchedulerCalendarContext"), Ik = ["aria-busy"], b$ = /* @__
|
|
|
20248
20247
|
}
|
|
20249
20248
|
}), de = y(() => {
|
|
20250
20249
|
const W = Z.value, ae = /* @__PURE__ */ new Date();
|
|
20251
|
-
return z.value === "timeline-day" ?
|
|
20250
|
+
return z.value === "timeline-day" ? Hl(W, ae) : z.value === "timeline-week" ? bc(W, ae, { weekStartsOn: t.firstDayOfWeek % 7 }) : Vo(W, ae);
|
|
20252
20251
|
}), Y = y(() => {
|
|
20253
20252
|
const W = Z.value, ae = t.firstDayOfWeek % 7;
|
|
20254
20253
|
if (z.value === "timeline-day") return { start: Ge(W), end: Po(W) };
|
|
20255
20254
|
if (z.value === "timeline-week")
|
|
20256
20255
|
return { start: At(W, { weekStartsOn: ae }), end: Uo(W, { weekStartsOn: ae }) };
|
|
20257
|
-
const re = At(
|
|
20258
|
-
return { start: re, end:
|
|
20256
|
+
const re = At(Wl(W), { weekStartsOn: ae });
|
|
20257
|
+
return { start: re, end: et(re, 42) };
|
|
20259
20258
|
}), 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({
|
|
20260
20259
|
date: Z,
|
|
20261
20260
|
view: z,
|
|
@@ -20442,13 +20441,13 @@ export {
|
|
|
20442
20441
|
Wo as G,
|
|
20443
20442
|
Ma as H,
|
|
20444
20443
|
xS as I,
|
|
20445
|
-
|
|
20444
|
+
Zl as J,
|
|
20446
20445
|
t$ as K,
|
|
20447
20446
|
NS as L,
|
|
20448
20447
|
DS as M,
|
|
20449
20448
|
hC as N,
|
|
20450
|
-
|
|
20451
|
-
|
|
20449
|
+
Yl as O,
|
|
20450
|
+
jl as P,
|
|
20452
20451
|
c$ as Q,
|
|
20453
20452
|
XS as R,
|
|
20454
20453
|
g$ as S,
|
|
@@ -20490,9 +20489,9 @@ export {
|
|
|
20490
20489
|
$S as aP,
|
|
20491
20490
|
vi as aQ,
|
|
20492
20491
|
f$ as aR,
|
|
20493
|
-
|
|
20492
|
+
Gl as aS,
|
|
20494
20493
|
Ec as aT,
|
|
20495
|
-
|
|
20494
|
+
ql as aU,
|
|
20496
20495
|
qc as aV,
|
|
20497
20496
|
Gc as aW,
|
|
20498
20497
|
ES as aX,
|
|
@@ -20514,14 +20513,14 @@ export {
|
|
|
20514
20513
|
hf as am,
|
|
20515
20514
|
QS as an,
|
|
20516
20515
|
VS as ao,
|
|
20517
|
-
|
|
20516
|
+
Nl as ap,
|
|
20518
20517
|
m$ as aq,
|
|
20519
20518
|
ci as ar,
|
|
20520
20519
|
Zn as as,
|
|
20521
20520
|
lh as at,
|
|
20522
|
-
|
|
20521
|
+
Jl as au,
|
|
20523
20522
|
o$ as av,
|
|
20524
|
-
|
|
20523
|
+
Kl as aw,
|
|
20525
20524
|
hi as ax,
|
|
20526
20525
|
TS as ay,
|
|
20527
20526
|
AS as az,
|
|
@@ -20542,7 +20541,7 @@ export {
|
|
|
20542
20541
|
Xv as bD,
|
|
20543
20542
|
lf as bE,
|
|
20544
20543
|
Yv as bF,
|
|
20545
|
-
|
|
20544
|
+
Ql as bG,
|
|
20546
20545
|
zo as bH,
|
|
20547
20546
|
of as bI,
|
|
20548
20547
|
ti as bJ,
|
|
@@ -20562,18 +20561,18 @@ export {
|
|
|
20562
20561
|
fi as bm,
|
|
20563
20562
|
Gb as bn,
|
|
20564
20563
|
ui as bo,
|
|
20565
|
-
|
|
20564
|
+
en as bp,
|
|
20566
20565
|
Vh as bq,
|
|
20567
20566
|
di as br,
|
|
20568
20567
|
Cu as bs,
|
|
20569
20568
|
jc as bt,
|
|
20570
20569
|
af as bu,
|
|
20571
20570
|
tf as bv,
|
|
20572
|
-
|
|
20571
|
+
Nn as bw,
|
|
20573
20572
|
_c as bx,
|
|
20574
20573
|
kS as by,
|
|
20575
20574
|
Mc as bz,
|
|
20576
|
-
|
|
20575
|
+
Bl as c,
|
|
20577
20576
|
nl as d,
|
|
20578
20577
|
Nw as e,
|
|
20579
20578
|
gi as f,
|