@point-hub/papp 0.0.146 → 0.0.148
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/components/base-mention.vue.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.js +266 -254
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Fa from "vue";
|
|
2
|
-
import { defineComponent as R, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as
|
|
2
|
+
import { defineComponent as R, ref as E, provide as Pe, createElementBlock as B, openBlock as w, renderSlot as Q, inject as Se, watch as ee, resolveComponent as K, createVNode as H, createElementVNode as O, withCtx as _, toDisplayString as q, normalizeClass as z, normalizeStyle as Ye, createTextVNode as Ie, createCommentVNode as V, createBlock as Y, computed as T, Fragment as fe, renderList as Me, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as ke, watchEffect as Ee, onMounted as ne, cloneVNode as Fo, h as ue, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as $l, Transition as Vo, toRef as Rl, readonly as Ll, customRef as Fl, getCurrentScope as _l, toValue as ut, useCssVars as Vl, useSlots as No, toRefs as jo, withKeys as Nl, withDirectives as Xe, vShow as jl, onBeforeUnmount as vr, isRef as gt, resolveDynamicComponent as ur, mergeProps as Wl, normalizeProps as Hl, guardReactiveProps as ql, useModel as de, isReactive as Va, isVNode as zl, createApp as Na, createSlots as Ul, mergeModels as we, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Yl } from "vue";
|
|
3
3
|
import { useRoute as qo } from "vue-router";
|
|
4
4
|
import { defineStore as mr } from "pinia";
|
|
5
5
|
const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
|
|
@@ -28,7 +28,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
|
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
30
|
const t = Se("alwaysOpen"), n = Se("activeItemId"), r = E(), a = E(0), o = E(!1);
|
|
31
|
-
|
|
31
|
+
ee(n, () => {
|
|
32
32
|
i(), a.value === 0 && (o.value = !1);
|
|
33
33
|
});
|
|
34
34
|
const i = () => {
|
|
@@ -71,7 +71,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
|
|
|
71
71
|
})
|
|
72
72
|
}, [
|
|
73
73
|
Q(d.$slots, "default", {}, () => [
|
|
74
|
-
|
|
74
|
+
Ie(q(s.content), 1)
|
|
75
75
|
], !0)
|
|
76
76
|
], 6)
|
|
77
77
|
]);
|
|
@@ -110,19 +110,19 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
|
|
|
110
110
|
O("div", ts, [
|
|
111
111
|
e.icon ? (w(), B("div", ns, [
|
|
112
112
|
e.icon === "success" ? (w(), B("i", rs)) : V("", !0),
|
|
113
|
-
e.icon === "info" ? (w(),
|
|
113
|
+
e.icon === "info" ? (w(), Y(s, {
|
|
114
114
|
key: 1,
|
|
115
115
|
icon: "i-fa7-regular:circle-info"
|
|
116
116
|
})) : V("", !0),
|
|
117
|
-
e.icon === "success" ? (w(),
|
|
117
|
+
e.icon === "success" ? (w(), Y(s, {
|
|
118
118
|
key: 2,
|
|
119
119
|
icon: "i-fa7-regular:circle-check"
|
|
120
120
|
})) : V("", !0),
|
|
121
|
-
e.icon === "warning" ? (w(),
|
|
121
|
+
e.icon === "warning" ? (w(), Y(s, {
|
|
122
122
|
key: 3,
|
|
123
123
|
icon: "i-fa7-regular:circle-exclamation"
|
|
124
124
|
})) : V("", !0),
|
|
125
|
-
e.icon === "danger" ? (w(),
|
|
125
|
+
e.icon === "danger" ? (w(), Y(s, {
|
|
126
126
|
key: 4,
|
|
127
127
|
icon: "i-fa7-regular:triangle-exclamation"
|
|
128
128
|
})) : V("", !0)
|
|
@@ -138,7 +138,7 @@ const Xl = { class: "accordion-container" }, Ql = /* @__PURE__ */ R({
|
|
|
138
138
|
])
|
|
139
139
|
])
|
|
140
140
|
]),
|
|
141
|
-
e.isDismissable ? (w(),
|
|
141
|
+
e.isDismissable ? (w(), Y(d, {
|
|
142
142
|
key: 0,
|
|
143
143
|
type: "button",
|
|
144
144
|
onClick: l[0] || (l[0] = (u) => o()),
|
|
@@ -242,7 +242,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
|
|
|
242
242
|
setup(e) {
|
|
243
243
|
const t = e;
|
|
244
244
|
return (n, r) => (w(), B("ul", gs, [
|
|
245
|
-
(w(!0), B(fe, null,
|
|
245
|
+
(w(!0), B(fe, null, Me(t.items, (a, o) => (w(), B("li", {
|
|
246
246
|
key: o,
|
|
247
247
|
class: "breadcrumb-li"
|
|
248
248
|
}, [
|
|
@@ -323,7 +323,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
|
|
|
323
323
|
O("div", Os, [
|
|
324
324
|
O("div", null, [
|
|
325
325
|
Q(t.$slots, "header", {}, () => [
|
|
326
|
-
|
|
326
|
+
Ie(q(e.title), 1)
|
|
327
327
|
], !0)
|
|
328
328
|
]),
|
|
329
329
|
O("div", null, [
|
|
@@ -904,7 +904,7 @@ function js({
|
|
|
904
904
|
}
|
|
905
905
|
function Ws(e) {
|
|
906
906
|
const t = new Ns(N(e)), n = Rn(t), r = t._didMount();
|
|
907
|
-
return
|
|
907
|
+
return ee(
|
|
908
908
|
() => N(e).getScrollElement(),
|
|
909
909
|
(a) => {
|
|
910
910
|
a && t._willUpdate();
|
|
@@ -912,7 +912,7 @@ function Ws(e) {
|
|
|
912
912
|
{
|
|
913
913
|
immediate: !0
|
|
914
914
|
}
|
|
915
|
-
),
|
|
915
|
+
), ee(
|
|
916
916
|
() => N(e),
|
|
917
917
|
(a) => {
|
|
918
918
|
t.setOptions({
|
|
@@ -1178,7 +1178,7 @@ function Ya(e, t) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function da(e, t) {
|
|
1180
1180
|
let n = E(Ya(e.value.type, e.value.as));
|
|
1181
|
-
return
|
|
1181
|
+
return ne(() => {
|
|
1182
1182
|
n.value = Ya(e.value.type, e.value.as);
|
|
1183
1183
|
}), Ee(() => {
|
|
1184
1184
|
var r;
|
|
@@ -1393,7 +1393,7 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1393
1393
|
var l;
|
|
1394
1394
|
return (l = n.virtual.value) == null ? void 0 : l.options;
|
|
1395
1395
|
}), i = E(0);
|
|
1396
|
-
return
|
|
1396
|
+
return ee([o], () => {
|
|
1397
1397
|
i.value += 1;
|
|
1398
1398
|
}), Pe(si, n.virtual.value ? a : null), () => [ue("div", { style: { position: "relative", width: "100%", height: `${a.value.getTotalSize()}px` }, ref: (l) => {
|
|
1399
1399
|
if (l) {
|
|
@@ -1404,7 +1404,7 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1404
1404
|
} }), pu = R({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
|
|
1405
1405
|
let a = E(1), o = E(null), i = E(null), l = E(null), s = E(null), d = E({ static: !1, hold: !1 }), u = E([]), c = E(null), f = E(2), h = E(!1);
|
|
1406
1406
|
function g(P = (I) => I) {
|
|
1407
|
-
let I = c.value !== null ? u.value[c.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((
|
|
1407
|
+
let I = c.value !== null ? u.value[c.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((X, G) => X.dataRef.order.value - G.dataRef.order.value) : bt(L, (X) => F(X.dataRef.domRef)), U = I ? $.indexOf(I) : null;
|
|
1408
1408
|
return U === -1 && (U = null), { options: $, activeOptionIndex: U };
|
|
1409
1409
|
}
|
|
1410
1410
|
let p = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(p.value, { 1: [], 0: void 0 }) : b.value), v = null, x = null;
|
|
@@ -1418,7 +1418,7 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1418
1418
|
}
|
|
1419
1419
|
let S = T(() => {
|
|
1420
1420
|
});
|
|
1421
|
-
|
|
1421
|
+
ee([S], ([P], [I]) => {
|
|
1422
1422
|
if (A.virtual.value && P && I && c.value !== null) {
|
|
1423
1423
|
let L = P.indexOf(I[c.value]);
|
|
1424
1424
|
L !== -1 ? c.value = L : c.value = null;
|
|
@@ -1464,22 +1464,22 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1464
1464
|
if (e.disabled || s.value && !d.value.static && a.value === 1) return;
|
|
1465
1465
|
if (A.virtual.value) {
|
|
1466
1466
|
c.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => A.virtual.value.options, resolveActiveIndex: () => {
|
|
1467
|
-
var
|
|
1468
|
-
return (G = (
|
|
1467
|
+
var X, G;
|
|
1468
|
+
return (G = (X = A.activeOptionIndex.value) != null ? X : A.virtual.value.options.findIndex((ae) => {
|
|
1469
1469
|
var re;
|
|
1470
1470
|
return !((re = A.virtual.value) != null && re.disabled(ae));
|
|
1471
1471
|
})) != null ? G : null;
|
|
1472
|
-
}, resolveDisabled: (
|
|
1472
|
+
}, resolveDisabled: (X) => A.virtual.value.disabled(X), resolveId() {
|
|
1473
1473
|
throw new Error("Function not implemented.");
|
|
1474
1474
|
} }), f.value = L ?? 2;
|
|
1475
1475
|
return;
|
|
1476
1476
|
}
|
|
1477
1477
|
let $ = g();
|
|
1478
1478
|
if ($.activeOptionIndex === null) {
|
|
1479
|
-
let
|
|
1480
|
-
|
|
1479
|
+
let X = $.options.findIndex((G) => !G.dataRef.disabled);
|
|
1480
|
+
X !== -1 && ($.activeOptionIndex = X);
|
|
1481
1481
|
}
|
|
1482
|
-
let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (
|
|
1482
|
+
let U = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (X) => X.id, resolveDisabled: (X) => X.dataRef.disabled });
|
|
1483
1483
|
c.value = U, f.value = L ?? 2, u.value = $.options;
|
|
1484
1484
|
});
|
|
1485
1485
|
}, selectOption(P) {
|
|
@@ -1514,7 +1514,7 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1514
1514
|
return;
|
|
1515
1515
|
}
|
|
1516
1516
|
let L = g(($) => {
|
|
1517
|
-
let U = $.findIndex((
|
|
1517
|
+
let U = $.findIndex((X) => X.id === P);
|
|
1518
1518
|
return U !== -1 && $.splice(U, 1), $;
|
|
1519
1519
|
});
|
|
1520
1520
|
u.value = L.options, c.value = L.activeOptionIndex, f.value = 2;
|
|
@@ -1528,8 +1528,8 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1528
1528
|
var P;
|
|
1529
1529
|
return (P = F(i)) == null ? void 0 : P.closest("form");
|
|
1530
1530
|
});
|
|
1531
|
-
return
|
|
1532
|
-
|
|
1531
|
+
return ne(() => {
|
|
1532
|
+
ee([M], () => {
|
|
1533
1533
|
if (!M.value || e.defaultValue === void 0) return;
|
|
1534
1534
|
function P() {
|
|
1535
1535
|
A.change(e.defaultValue);
|
|
@@ -1541,8 +1541,8 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1541
1541
|
}, { immediate: !0 });
|
|
1542
1542
|
}), () => {
|
|
1543
1543
|
var P, I, L;
|
|
1544
|
-
let { name: $, disabled: U, form:
|
|
1545
|
-
return ue(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form:
|
|
1544
|
+
let { name: $, disabled: U, form: X, ...G } = e, ae = { open: a.value === 0, disabled: U, activeIndex: A.activeOptionIndex.value, activeOption: A.activeOptionIndex.value === null ? null : A.virtual.value ? A.virtual.value.options[(P = A.activeOptionIndex.value) != null ? P : 0] : (L = (I = A.options.value[A.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? L : null, value: C.value };
|
|
1545
|
+
return ue(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => ue(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: X, disabled: U, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
|
|
1546
1546
|
};
|
|
1547
1547
|
} });
|
|
1548
1548
|
R({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -1612,8 +1612,8 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1612
1612
|
let k = l.value.value;
|
|
1613
1613
|
return F(l.inputRef) ? typeof e.displayValue < "u" && k !== void 0 ? (x = e.displayValue(k)) != null ? x : "" : typeof k == "string" ? k : "" : "";
|
|
1614
1614
|
});
|
|
1615
|
-
|
|
1616
|
-
|
|
1615
|
+
ne(() => {
|
|
1616
|
+
ee([c, l.comboboxState, s], ([x, k], [S, A]) => {
|
|
1617
1617
|
if (d.value) return;
|
|
1618
1618
|
let M = F(l.inputRef);
|
|
1619
1619
|
M && ((A === 0 && k === 1 || x !== S) && (M.value = x), requestAnimationFrame(() => {
|
|
@@ -1622,7 +1622,7 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1622
1622
|
let { selectionStart: I, selectionEnd: L } = M;
|
|
1623
1623
|
Math.abs((L ?? 0) - (I ?? 0)) === 0 && I === 0 && M.setSelectionRange(M.value.length, M.value.length);
|
|
1624
1624
|
}));
|
|
1625
|
-
}, { immediate: !0 }),
|
|
1625
|
+
}, { immediate: !0 }), ee([l.comboboxState], ([x], [k]) => {
|
|
1626
1626
|
if (x === 0 && k === 1) {
|
|
1627
1627
|
if (d.value) return;
|
|
1628
1628
|
let S = F(l.inputRef);
|
|
@@ -1703,8 +1703,8 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1703
1703
|
});
|
|
1704
1704
|
return () => {
|
|
1705
1705
|
var x, k, S, A, M, P, I;
|
|
1706
|
-
let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: U, ...
|
|
1707
|
-
return pe({ ourProps: G, theirProps:
|
|
1706
|
+
let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: U, ...X } = e, G = { "aria-controls": (x = l.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (k = l.options.value.find((ae) => !l.virtual.value.disabled(ae.dataRef.value) && l.compare(ae.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : k.id : (S = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (P = (A = F(l.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(l.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: v.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
|
|
1707
|
+
return pe({ ourProps: G, theirProps: X, slot: L, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
|
|
1708
1708
|
};
|
|
1709
1709
|
} }), hu = R({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
1710
1710
|
let a = Gt("ComboboxOptions"), o = `headlessui-combobox-options-${Te()}`;
|
|
@@ -1734,7 +1734,7 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1734
1734
|
var y;
|
|
1735
1735
|
return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((y = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : y.id) === o;
|
|
1736
1736
|
}), d = T(() => a.isSelected(e.value)), u = Se(si, null), c = T(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: T(() => e.order) }));
|
|
1737
|
-
|
|
1737
|
+
ne(() => a.registerOption(o, c)), De(() => a.unregisterOption(o, s.value)), Ee(() => {
|
|
1738
1738
|
let y = F(i);
|
|
1739
1739
|
y && u?.value.measureElement(y);
|
|
1740
1740
|
}), Ee(() => {
|
|
@@ -1801,7 +1801,7 @@ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1801
1801
|
let a = E(null);
|
|
1802
1802
|
r({ el: a, $el: a });
|
|
1803
1803
|
let o = T(() => je(a)), i = E(!1);
|
|
1804
|
-
|
|
1804
|
+
ne(() => i.value = !0), De(() => i.value = !1), Au({ ownerDocument: o }, T(() => i.value && !!(e.features & 16)));
|
|
1805
1805
|
let l = wu({ ownerDocument: o, container: a, initialFocus: T(() => e.initialFocus) }, T(() => i.value && !!(e.features & 2)));
|
|
1806
1806
|
xu({ ownerDocument: o, container: a, containers: e.containers, previousActiveElement: l }, T(() => i.value && !!(e.features & 8)));
|
|
1807
1807
|
let s = bu();
|
|
@@ -1835,7 +1835,7 @@ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1835
1835
|
} }), { features: ci });
|
|
1836
1836
|
function yu(e) {
|
|
1837
1837
|
let t = E(yt.slice());
|
|
1838
|
-
return
|
|
1838
|
+
return ee([e], ([n], [r]) => {
|
|
1839
1839
|
r === !0 && n === !1 ? hr(() => {
|
|
1840
1840
|
t.value.splice(0);
|
|
1841
1841
|
}) : r === !1 && n === !0 && (t.value = yt.slice());
|
|
@@ -1846,7 +1846,7 @@ function yu(e) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
function Au({ ownerDocument: e }, t) {
|
|
1848
1848
|
let n = yu(t);
|
|
1849
|
-
|
|
1849
|
+
ne(() => {
|
|
1850
1850
|
Ee(() => {
|
|
1851
1851
|
var r, a;
|
|
1852
1852
|
t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((a = e.value) == null ? void 0 : a.body) && Et(n());
|
|
@@ -1857,8 +1857,8 @@ function Au({ ownerDocument: e }, t) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
function wu({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
1859
1859
|
let a = E(null), o = E(!1);
|
|
1860
|
-
return
|
|
1861
|
-
|
|
1860
|
+
return ne(() => o.value = !0), De(() => o.value = !1), ne(() => {
|
|
1861
|
+
ee([t, n, r], (i, l) => {
|
|
1862
1862
|
if (i.every((d, u) => l?.[u] === d) || !r.value) return;
|
|
1863
1863
|
let s = F(t);
|
|
1864
1864
|
s && hr(() => {
|
|
@@ -2004,7 +2004,7 @@ function Bu(e, t, n) {
|
|
|
2004
2004
|
let o = e.value ? r.value.get(e.value) : void 0;
|
|
2005
2005
|
return o ? o.count > 0 : !1;
|
|
2006
2006
|
});
|
|
2007
|
-
return
|
|
2007
|
+
return ee([e, t], ([o, i], [l], s) => {
|
|
2008
2008
|
if (!o || !i) return;
|
|
2009
2009
|
Wt.dispatch("PUSH", o, n);
|
|
2010
2010
|
let d = !1;
|
|
@@ -2068,8 +2068,8 @@ function Mu({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
|
2068
2068
|
function o(...i) {
|
|
2069
2069
|
r?.(...i), a(...i);
|
|
2070
2070
|
}
|
|
2071
|
-
|
|
2072
|
-
|
|
2071
|
+
ne(() => {
|
|
2072
|
+
ee(t, (i, l) => {
|
|
2073
2073
|
i ? o(0, e, n) : l === !0 && o(1, e, n);
|
|
2074
2074
|
}, { immediate: !0, flush: "sync" });
|
|
2075
2075
|
}), De(() => {
|
|
@@ -2095,7 +2095,7 @@ function va({ slot: e = E({}), name: t = "Description", props: n = {} } = {}) {
|
|
|
2095
2095
|
R({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
2096
2096
|
var r;
|
|
2097
2097
|
let a = (r = e.id) != null ? r : `headlessui-description-${Te()}`, o = $u();
|
|
2098
|
-
return
|
|
2098
|
+
return ne(() => De(o.register(a))), () => {
|
|
2099
2099
|
let { name: i = "Description", slot: l = E({}), props: s = {} } = o, { ...d } = e, u = { ...Object.entries(s).reduce((c, [f, h]) => Object.assign(c, { [f]: N(h) }), {}), id: a };
|
|
2100
2100
|
return pe({ ourProps: u, theirProps: d, slot: l.value, attrs: t, slots: n, name: i });
|
|
2101
2101
|
};
|
|
@@ -2124,13 +2124,13 @@ let hi = R({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
2124
2124
|
let r = E(null), a = T(() => je(r)), o = Du(), i = Se(gi, null), l = E(o === !0 || i == null ? Ru(r.value) : i.resolveTarget());
|
|
2125
2125
|
l.value && Ga(l.value, (f) => f + 1);
|
|
2126
2126
|
let s = E(!1);
|
|
2127
|
-
|
|
2127
|
+
ne(() => {
|
|
2128
2128
|
s.value = !0;
|
|
2129
2129
|
}), Ee(() => {
|
|
2130
2130
|
o || i != null && (l.value = i.resolveTarget());
|
|
2131
2131
|
});
|
|
2132
2132
|
let d = Se(Yr, null), u = !1, c = _o();
|
|
2133
|
-
return
|
|
2133
|
+
return ee(r, () => {
|
|
2134
2134
|
if (u || !d) return;
|
|
2135
2135
|
let f = F(r);
|
|
2136
2136
|
f && (De(d.register(f), c), u = !0);
|
|
@@ -2183,46 +2183,46 @@ function _n(e) {
|
|
|
2183
2183
|
let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Kn }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
|
|
2184
2184
|
var o, i;
|
|
2185
2185
|
let l = (o = e.id) != null ? o : `headlessui-dialog-${Te()}`, s = E(!1);
|
|
2186
|
-
|
|
2186
|
+
ne(() => {
|
|
2187
2187
|
s.value = !0;
|
|
2188
2188
|
});
|
|
2189
2189
|
let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), c = E(0), f = Fn(), h = T(() => e.open === Kn && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), g = E(null), p = T(() => je(g));
|
|
2190
2190
|
if (a({ el: g, $el: g }), !(e.open !== Kn || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2191
2191
|
if (typeof h.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value === Kn ? void 0 : e.open}`);
|
|
2192
2192
|
let m = T(() => s.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => c.value > 1), C = Se(Xr, null) !== null, [v, x] = Fu(), { resolveContainers: k, mainTreeNodeRef: S, MainTreeNode: A } = Pu({ portals: v, defaultContainers: [T(() => {
|
|
2193
|
-
var
|
|
2194
|
-
return (
|
|
2193
|
+
var te;
|
|
2194
|
+
return (te = ae.panelRef.value) != null ? te : g.value;
|
|
2195
2195
|
})] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), L = T(() => {
|
|
2196
|
-
var
|
|
2197
|
-
return (Ae = Array.from((ie = (
|
|
2196
|
+
var te, ie, Ae;
|
|
2197
|
+
return (Ae = Array.from((ie = (te = p.value) == null ? void 0 : te.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
|
|
2198
2198
|
});
|
|
2199
2199
|
Qa(L, I);
|
|
2200
2200
|
let $ = T(() => y.value ? !0 : b.value), U = T(() => {
|
|
2201
|
-
var
|
|
2202
|
-
return (Ae = Array.from((ie = (
|
|
2201
|
+
var te, ie, Ae;
|
|
2202
|
+
return (Ae = Array.from((ie = (te = p.value) == null ? void 0 : te.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(S)) && me instanceof HTMLElement)) != null ? Ae : null;
|
|
2203
2203
|
});
|
|
2204
|
-
Qa(U, $), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (
|
|
2205
|
-
if (ie === "Dialog") return Ce(
|
|
2204
|
+
Qa(U, $), Mu({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (te, ie) => {
|
|
2205
|
+
if (ie === "Dialog") return Ce(te, { [zr.Add]: () => c.value += 1, [zr.Remove]: () => c.value -= 1 });
|
|
2206
2206
|
} });
|
|
2207
|
-
let
|
|
2208
|
-
G.value !==
|
|
2207
|
+
let X = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }), G = E(null), ae = { titleId: G, panelRef: E(null), dialogState: m, setTitleId(te) {
|
|
2208
|
+
G.value !== te && (G.value = te);
|
|
2209
2209
|
}, close() {
|
|
2210
2210
|
t("close", !1);
|
|
2211
2211
|
} };
|
|
2212
2212
|
Pe(Xr, ae);
|
|
2213
2213
|
let re = T(() => !(!b.value || y.value));
|
|
2214
|
-
ua(k, (
|
|
2215
|
-
|
|
2214
|
+
ua(k, (te, ie) => {
|
|
2215
|
+
te.preventDefault(), ae.close(), ke(() => ie?.focus());
|
|
2216
2216
|
}, re);
|
|
2217
2217
|
let ce = T(() => !(y.value || m.value !== 0));
|
|
2218
|
-
ui((i = p.value) == null ? void 0 : i.defaultView, "keydown", (
|
|
2219
|
-
ce.value && (
|
|
2218
|
+
ui((i = p.value) == null ? void 0 : i.defaultView, "keydown", (te) => {
|
|
2219
|
+
ce.value && (te.defaultPrevented || te.key === Z.Escape && (te.preventDefault(), te.stopPropagation(), ae.close()));
|
|
2220
2220
|
});
|
|
2221
2221
|
let ve = T(() => !(P.value || m.value !== 0 || C));
|
|
2222
|
-
return Bu(p, ve, (
|
|
2222
|
+
return Bu(p, ve, (te) => {
|
|
2223
2223
|
var ie;
|
|
2224
|
-
return { containers: [...(ie =
|
|
2225
|
-
}), Ee((
|
|
2224
|
+
return { containers: [...(ie = te.containers) != null ? ie : [], k] };
|
|
2225
|
+
}), Ee((te) => {
|
|
2226
2226
|
if (m.value !== 0) return;
|
|
2227
2227
|
let ie = F(g);
|
|
2228
2228
|
if (!ie) return;
|
|
@@ -2232,9 +2232,9 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheri
|
|
|
2232
2232
|
Be.x === 0 && Be.y === 0 && Be.width === 0 && Be.height === 0 && ae.close();
|
|
2233
2233
|
}
|
|
2234
2234
|
});
|
|
2235
|
-
Ae.observe(ie),
|
|
2235
|
+
Ae.observe(ie), te(() => Ae.disconnect());
|
|
2236
2236
|
}), () => {
|
|
2237
|
-
let { open:
|
|
2237
|
+
let { open: te, initialFocus: ie, ...Ae } = e, me = { ...n, ref: g, id: l, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": X.value }, ye = { open: m.value === 0 };
|
|
2238
2238
|
return ue(qr, { force: !0 }, () => [ue(hi, () => ue(_u, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: k, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(x, {}, () => pe({ ourProps: me, theirProps: { ...Ae, ...n }, slot: ye, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), ue(A)]);
|
|
2239
2239
|
};
|
|
2240
2240
|
} });
|
|
@@ -2252,7 +2252,7 @@ R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
2252
2252
|
R({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2253
2253
|
var a;
|
|
2254
2254
|
let o = (a = e.id) != null ? a : `headlessui-dialog-backdrop-${Te()}`, i = _n("DialogBackdrop"), l = E(null);
|
|
2255
|
-
return r({ el: l, $el: l }),
|
|
2255
|
+
return r({ el: l, $el: l }), ne(() => {
|
|
2256
2256
|
if (i.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
2257
2257
|
}), () => {
|
|
2258
2258
|
let { ...s } = e, d = { id: o, ref: l, "aria-hidden": !0 };
|
|
@@ -2274,7 +2274,7 @@ let ju = R({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
2274
2274
|
R({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
2275
2275
|
var r;
|
|
2276
2276
|
let a = (r = e.id) != null ? r : `headlessui-dialog-title-${Te()}`, o = _n("DialogTitle");
|
|
2277
|
-
return
|
|
2277
|
+
return ne(() => {
|
|
2278
2278
|
o.setTitleId(a), De(() => o.setTitleId(null));
|
|
2279
2279
|
}), () => {
|
|
2280
2280
|
let { ...i } = e;
|
|
@@ -2475,7 +2475,7 @@ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2475
2475
|
let s = T(() => i.activeItemIndex.value !== null ? i.items.value[i.activeItemIndex.value].id === o : !1), d = Hu(l), u = T(() => ({ disabled: e.disabled, get textValue() {
|
|
2476
2476
|
return d();
|
|
2477
2477
|
}, domRef: l }));
|
|
2478
|
-
|
|
2478
|
+
ne(() => i.registerItem(o, u)), De(() => i.unregisterItem(o)), Ee(() => {
|
|
2479
2479
|
i.menuState.value === 0 && s.value && i.activationTrigger.value !== 0 && ke(() => {
|
|
2480
2480
|
var b, y;
|
|
2481
2481
|
return (y = (b = F(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
|
|
@@ -2525,7 +2525,7 @@ function wi({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
|
|
|
2525
2525
|
R({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
|
|
2526
2526
|
var r;
|
|
2527
2527
|
let a = (r = e.id) != null ? r : `headlessui-label-${Te()}`, o = Ai();
|
|
2528
|
-
return
|
|
2528
|
+
return ne(() => De(o.register(a))), () => {
|
|
2529
2529
|
let { name: i = "Label", slot: l = {}, props: s = {} } = o, { passive: d, ...u } = e, c = { ...Object.entries(s).reduce((f, [h, g]) => Object.assign(f, { [h]: N(g) }), {}), id: a };
|
|
2530
2530
|
return d && (delete c.onClick, delete c.htmlFor, delete u.onClick), pe({ ourProps: c, theirProps: u, slot: l, attrs: n, slots: t, name: i });
|
|
2531
2531
|
};
|
|
@@ -2611,8 +2611,8 @@ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2611
2611
|
var m;
|
|
2612
2612
|
return (m = F(l)) == null ? void 0 : m.closest("form");
|
|
2613
2613
|
});
|
|
2614
|
-
return
|
|
2615
|
-
|
|
2614
|
+
return ne(() => {
|
|
2615
|
+
ee([p], () => {
|
|
2616
2616
|
if (!p.value || e.defaultValue === void 0) return;
|
|
2617
2617
|
function m() {
|
|
2618
2618
|
h.change(e.defaultValue);
|
|
@@ -2633,7 +2633,7 @@ let ed = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
|
|
|
2633
2633
|
let o = (a = e.id) != null ? a : `headlessui-radiogroup-option-${Te()}`, i = ki("RadioGroupOption"), l = wi({ name: "RadioGroupLabel" }), s = va({ name: "RadioGroupDescription" }), d = E(null), u = T(() => ({ value: e.value, disabled: e.disabled })), c = E(1);
|
|
2634
2634
|
r({ el: d, $el: d });
|
|
2635
2635
|
let f = T(() => F(d));
|
|
2636
|
-
|
|
2636
|
+
ne(() => i.registerOption({ id: o, element: f, propsRef: u })), De(() => i.unregisterOption(o));
|
|
2637
2637
|
let h = T(() => {
|
|
2638
2638
|
var v;
|
|
2639
2639
|
return ((v = i.firstOption.value) == null ? void 0 : v.id) === o;
|
|
@@ -2725,12 +2725,12 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2725
2725
|
} };
|
|
2726
2726
|
Pe(Si, c);
|
|
2727
2727
|
let f = E({ tabs: [], panels: [] }), h = E(!1);
|
|
2728
|
-
|
|
2728
|
+
ne(() => {
|
|
2729
2729
|
h.value = !0;
|
|
2730
2730
|
}), Pe(ma, T(() => h.value ? null : f.value));
|
|
2731
2731
|
let g = T(() => e.selectedIndex);
|
|
2732
|
-
return
|
|
2733
|
-
|
|
2732
|
+
return ne(() => {
|
|
2733
|
+
ee([g], () => {
|
|
2734
2734
|
var p;
|
|
2735
2735
|
return u((p = e.selectedIndex) != null ? p : e.defaultIndex);
|
|
2736
2736
|
}, { immediate: !0 });
|
|
@@ -2757,7 +2757,7 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2757
2757
|
} }), id = R({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2758
2758
|
var a;
|
|
2759
2759
|
let o = (a = e.id) != null ? a : `headlessui-tabs-tab-${Te()}`, i = Vn("Tab"), l = E(null);
|
|
2760
|
-
r({ el: l, $el: l }),
|
|
2760
|
+
r({ el: l, $el: l }), ne(() => i.registerTab(l)), De(() => i.unregisterTab(l));
|
|
2761
2761
|
let s = Se(ma), d = T(() => {
|
|
2762
2762
|
if (s.value) {
|
|
2763
2763
|
let y = s.value.tabs.indexOf(o);
|
|
@@ -2822,7 +2822,7 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2822
2822
|
} }), sd = R({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null }, tabIndex: { type: Number, default: 0 } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2823
2823
|
var a;
|
|
2824
2824
|
let o = (a = e.id) != null ? a : `headlessui-tabs-panel-${Te()}`, i = Vn("TabPanel"), l = E(null);
|
|
2825
|
-
r({ el: l, $el: l }),
|
|
2825
|
+
r({ el: l, $el: l }), ne(() => i.registerPanel(l)), De(() => i.unregisterPanel(l));
|
|
2826
2826
|
let s = Se(ma), d = T(() => {
|
|
2827
2827
|
if (s.value) {
|
|
2828
2828
|
let f = s.value.panels.indexOf(o);
|
|
@@ -2892,7 +2892,7 @@ function br(e) {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
function Oi(e) {
|
|
2894
2894
|
let t = E([]), n = E(!1);
|
|
2895
|
-
|
|
2895
|
+
ne(() => n.value = !0), De(() => n.value = !1);
|
|
2896
2896
|
function r(o, i = Ct.Hidden) {
|
|
2897
2897
|
let l = t.value.findIndex(({ id: s }) => s === o);
|
|
2898
2898
|
l !== -1 && (Ce(i, { [Ct.Unmount]() {
|
|
@@ -2927,7 +2927,7 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2927
2927
|
let { show: f, appear: h } = pd(), { register: g, unregister: p } = vd(), m = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Te(), C = { value: !1 }, v = Oi(() => {
|
|
2928
2928
|
!C.value && m.value !== "hidden" && (m.value = "hidden", p(y), d());
|
|
2929
2929
|
});
|
|
2930
|
-
|
|
2930
|
+
ne(() => {
|
|
2931
2931
|
let $ = g(y);
|
|
2932
2932
|
De($);
|
|
2933
2933
|
}), Ee(() => {
|
|
@@ -2940,7 +2940,7 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2940
2940
|
}
|
|
2941
2941
|
});
|
|
2942
2942
|
let x = _t(e.enter), k = _t(e.enterFrom), S = _t(e.enterTo), A = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
|
|
2943
|
-
|
|
2943
|
+
ne(() => {
|
|
2944
2944
|
Ee(() => {
|
|
2945
2945
|
if (m.value === "visible") {
|
|
2946
2946
|
let $ = F(u);
|
|
@@ -2949,19 +2949,19 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2949
2949
|
});
|
|
2950
2950
|
});
|
|
2951
2951
|
function L($) {
|
|
2952
|
-
let U = b.value && !h.value,
|
|
2953
|
-
!
|
|
2952
|
+
let U = b.value && !h.value, X = F(u);
|
|
2953
|
+
!X || !(X instanceof HTMLElement) || U || (C.value = !0, f.value && i(), f.value || s(), $(f.value ? Za(X, x, k, S, A, (G) => {
|
|
2954
2954
|
C.value = !1, G === Qr.Finished && l();
|
|
2955
|
-
}) : Za(
|
|
2955
|
+
}) : Za(X, M, P, I, A, (G) => {
|
|
2956
2956
|
C.value = !1, G === Qr.Finished && (br(v) || (m.value = "hidden", p(y), d()));
|
|
2957
2957
|
})));
|
|
2958
2958
|
}
|
|
2959
|
-
return
|
|
2960
|
-
|
|
2961
|
-
L(
|
|
2959
|
+
return ne(() => {
|
|
2960
|
+
ee([f], ($, U, X) => {
|
|
2961
|
+
L(X), b.value = !1;
|
|
2962
2962
|
}, { immediate: !0 });
|
|
2963
2963
|
}), Pe(ga, v), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
|
|
2964
|
-
let { appear: $, show: U, enter:
|
|
2964
|
+
let { appear: $, show: U, enter: X, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: te, ...ie } = e, Ae = { ref: u }, me = { ...ie, ...h.value && f.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...k]) } : {} };
|
|
2965
2965
|
return pe({ theirProps: me, ourProps: Ae, slot: {}, slots: r, attrs: n, features: Ci, visible: m.value === "visible", name: "TransitionChild" });
|
|
2966
2966
|
};
|
|
2967
2967
|
} }), md = Gr, ba = R({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
|
|
@@ -2972,7 +2972,7 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2972
2972
|
let i = E(o.value ? "visible" : "hidden"), l = Oi(() => {
|
|
2973
2973
|
i.value = "hidden";
|
|
2974
2974
|
}), s = E(!0), d = { show: o, appear: T(() => e.appear || !s.value) };
|
|
2975
|
-
return
|
|
2975
|
+
return ne(() => {
|
|
2976
2976
|
Ee(() => {
|
|
2977
2977
|
s.value = !1, o.value ? i.value = "visible" : br(l) || (i.value = "hidden");
|
|
2978
2978
|
});
|
|
@@ -2991,7 +2991,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
2991
2991
|
const t = e;
|
|
2992
2992
|
return (n, r) => {
|
|
2993
2993
|
const a = K("base-icon");
|
|
2994
|
-
return w(),
|
|
2994
|
+
return w(), Y(N(Yu), {
|
|
2995
2995
|
as: "div",
|
|
2996
2996
|
class: "dropdown-menu"
|
|
2997
2997
|
}, {
|
|
@@ -3031,7 +3031,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3031
3031
|
text: { default: "" }
|
|
3032
3032
|
},
|
|
3033
3033
|
setup(e) {
|
|
3034
|
-
return (t, n) => (w(),
|
|
3034
|
+
return (t, n) => (w(), Y(N(Gu), null, {
|
|
3035
3035
|
default: _(({ active: r }) => [
|
|
3036
3036
|
Q(t.$slots, "default", { active: r }, () => [
|
|
3037
3037
|
O("div", {
|
|
@@ -3086,9 +3086,9 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3086
3086
|
return (t, n) => (w(), B("div", {
|
|
3087
3087
|
class: z(`loader-${e.sample}`)
|
|
3088
3088
|
}, [
|
|
3089
|
-
n[1] || (n[1] =
|
|
3089
|
+
n[1] || (n[1] = Ie(" ", -1)),
|
|
3090
3090
|
Q(t.$slots, "default", {}, () => [
|
|
3091
|
-
n[0] || (n[0] =
|
|
3091
|
+
n[0] || (n[0] = Ie("Loading...", -1))
|
|
3092
3092
|
], !0)
|
|
3093
3093
|
], 2));
|
|
3094
3094
|
}
|
|
@@ -3126,13 +3126,13 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3126
3126
|
const r = e, a = E(r.isOpen), o = n, i = () => {
|
|
3127
3127
|
a.value = !1;
|
|
3128
3128
|
};
|
|
3129
|
-
return
|
|
3129
|
+
return ee(a, (l) => {
|
|
3130
3130
|
l === !1 && o("onClose");
|
|
3131
|
-
}),
|
|
3131
|
+
}), ee(r, () => {
|
|
3132
3132
|
a.value = r.isOpen;
|
|
3133
3133
|
}), t({ isOpen: a }), (l, s) => {
|
|
3134
3134
|
const d = K("base-icon"), u = K("base-button");
|
|
3135
|
-
return w(),
|
|
3135
|
+
return w(), Y(N(ba), {
|
|
3136
3136
|
appear: "",
|
|
3137
3137
|
show: a.value,
|
|
3138
3138
|
as: "template"
|
|
@@ -3259,7 +3259,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3259
3259
|
O("p", Ld, " Showing " + q(e.totalDocument ? 1 + (a.value - 1) * e.pageSize : 0) + " to " + q(a.value * e.pageSize > e.totalDocument ? e.totalDocument : a.value * e.pageSize) + " of " + q(e.totalDocument) + " entries ", 1)
|
|
3260
3260
|
]),
|
|
3261
3261
|
o.value > 1 ? (w(), B("div", Fd, [
|
|
3262
|
-
o.value > 5 ? (w(),
|
|
3262
|
+
o.value > 5 ? (w(), Y(p, {
|
|
3263
3263
|
key: 0,
|
|
3264
3264
|
disabled: a.value === 1,
|
|
3265
3265
|
variant: "text",
|
|
@@ -3271,7 +3271,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3271
3271
|
]),
|
|
3272
3272
|
_: 1
|
|
3273
3273
|
}, 8, ["disabled"])) : V("", !0),
|
|
3274
|
-
o.value > 5 ? (w(),
|
|
3274
|
+
o.value > 5 ? (w(), Y(p, {
|
|
3275
3275
|
key: 1,
|
|
3276
3276
|
disabled: a.value === 1,
|
|
3277
3277
|
variant: "text",
|
|
@@ -3283,8 +3283,8 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3283
3283
|
]),
|
|
3284
3284
|
_: 1
|
|
3285
3285
|
}, 8, ["disabled"])) : V("", !0),
|
|
3286
|
-
(w(!0), B(fe, null,
|
|
3287
|
-
c(m) ? (w(),
|
|
3286
|
+
(w(!0), B(fe, null, Me(o.value, (m) => (w(), B(fe, { key: m }, [
|
|
3287
|
+
c(m) ? (w(), Y(p, {
|
|
3288
3288
|
key: 0,
|
|
3289
3289
|
type: "button",
|
|
3290
3290
|
size: "sm",
|
|
@@ -3296,12 +3296,12 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3296
3296
|
})
|
|
3297
3297
|
}, {
|
|
3298
3298
|
default: _(() => [
|
|
3299
|
-
|
|
3299
|
+
Ie(q(m), 1)
|
|
3300
3300
|
]),
|
|
3301
3301
|
_: 2
|
|
3302
3302
|
}, 1032, ["onClick", "class"])) : V("", !0)
|
|
3303
3303
|
], 64))), 128)),
|
|
3304
|
-
o.value > 5 ? (w(),
|
|
3304
|
+
o.value > 5 ? (w(), Y(p, {
|
|
3305
3305
|
key: 2,
|
|
3306
3306
|
disabled: a.value === o.value,
|
|
3307
3307
|
variant: "text",
|
|
@@ -3313,7 +3313,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3313
3313
|
]),
|
|
3314
3314
|
_: 1
|
|
3315
3315
|
}, 8, ["disabled"])) : V("", !0),
|
|
3316
|
-
o.value > 5 ? (w(),
|
|
3316
|
+
o.value > 5 ? (w(), Y(p, {
|
|
3317
3317
|
key: 3,
|
|
3318
3318
|
disabled: a.value === o.value,
|
|
3319
3319
|
variant: "text",
|
|
@@ -3352,7 +3352,7 @@ function qd(e) {
|
|
|
3352
3352
|
return N(e) != null;
|
|
3353
3353
|
}
|
|
3354
3354
|
function zd(e, t, n) {
|
|
3355
|
-
return
|
|
3355
|
+
return ee(e, t, {
|
|
3356
3356
|
...n,
|
|
3357
3357
|
immediate: !0
|
|
3358
3358
|
});
|
|
@@ -3456,7 +3456,7 @@ const Dr = /* @__PURE__ */ new WeakMap();
|
|
|
3456
3456
|
function Ud(e, t = !1) {
|
|
3457
3457
|
const n = Rn(t);
|
|
3458
3458
|
let r = "";
|
|
3459
|
-
|
|
3459
|
+
ee(Hd(e), (i) => {
|
|
3460
3460
|
const l = Pr(ut(i));
|
|
3461
3461
|
if (l) {
|
|
3462
3462
|
const s = l;
|
|
@@ -3503,7 +3503,7 @@ function Xd() {
|
|
|
3503
3503
|
if (t.value = r.value, e) return;
|
|
3504
3504
|
e = !0;
|
|
3505
3505
|
const a = Ud(n, r.value);
|
|
3506
|
-
|
|
3506
|
+
ee(t, (o) => a.value = o);
|
|
3507
3507
|
};
|
|
3508
3508
|
}
|
|
3509
3509
|
Xd();
|
|
@@ -3528,9 +3528,9 @@ function Kr(e, t, n) {
|
|
|
3528
3528
|
Kr.debounce = Kr;
|
|
3529
3529
|
var Mr = Kr;
|
|
3530
3530
|
function Qd(e, t, n) {
|
|
3531
|
-
gt(e) ?
|
|
3531
|
+
gt(e) ? ee(e, (r, a) => {
|
|
3532
3532
|
a?.removeEventListener(t, n), r?.addEventListener(t, n);
|
|
3533
|
-
}) :
|
|
3533
|
+
}) : ne(() => {
|
|
3534
3534
|
e.addEventListener(t, n);
|
|
3535
3535
|
}), vr(() => {
|
|
3536
3536
|
var r;
|
|
@@ -3547,12 +3547,12 @@ function Gd(e, t) {
|
|
|
3547
3547
|
function Kd(e, t, n) {
|
|
3548
3548
|
let r = null;
|
|
3549
3549
|
const a = E(!1);
|
|
3550
|
-
|
|
3550
|
+
ne(() => {
|
|
3551
3551
|
(e.content !== void 0 || n.value) && (a.value = !0), r = new MutationObserver(o), r.observe(t.value, {
|
|
3552
3552
|
childList: !0,
|
|
3553
3553
|
subtree: !0
|
|
3554
3554
|
});
|
|
3555
|
-
}), vr(() => r.disconnect()),
|
|
3555
|
+
}), vr(() => r.disconnect()), ee(n, (i) => {
|
|
3556
3556
|
i ? a.value = !0 : a.value = !1;
|
|
3557
3557
|
});
|
|
3558
3558
|
const o = () => {
|
|
@@ -4192,12 +4192,12 @@ function Nc(e) {
|
|
|
4192
4192
|
};
|
|
4193
4193
|
if (k) {
|
|
4194
4194
|
if (o || l) {
|
|
4195
|
-
var I = v === "y" ? qe : ze, L = v === "y" ? tt : nt, $ = v === "y" ? "height" : "width", U = k[v],
|
|
4195
|
+
var I = v === "y" ? qe : ze, L = v === "y" ? tt : nt, $ = v === "y" ? "height" : "width", U = k[v], X = k[v] + m[I], G = k[v] - m[L], ae = h ? -A[$] / 2 : 0, re = y === on ? S[$] : A[$], ce = y === on ? -A[$] : -S[$], ve = t.elements.arrow, te = h && ve ? xa(ve) : {
|
|
4196
4196
|
width: 0,
|
|
4197
4197
|
height: 0
|
|
4198
|
-
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[L], ye = ir(0, S[$],
|
|
4198
|
+
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ri(), Ae = ie[I], me = ie[L], ye = ir(0, S[$], te[$]), Be = C ? S[$] / 2 - ae - ye - Ae - M : re - ye - Ae - M, ot = C ? -S[$] / 2 + ae + ye + me + M : ce + ye + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? v === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][v] : 0, mt = k[v] + Be - Ze - it, Mt = k[v] + ot - Ze;
|
|
4199
4199
|
if (o) {
|
|
4200
|
-
var wt = ir(h ? Pn(
|
|
4200
|
+
var wt = ir(h ? Pn(X, mt) : X, U, h ? Tt(G, Mt) : G);
|
|
4201
4201
|
k[v] = wt, P[v] = wt - U;
|
|
4202
4202
|
}
|
|
4203
4203
|
if (l) {
|
|
@@ -4273,14 +4273,14 @@ function Uc(e) {
|
|
|
4273
4273
|
allowedAutoPlacements: p
|
|
4274
4274
|
}) : ye);
|
|
4275
4275
|
}, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
|
|
4276
|
-
var I = v[P], L = dt(I), $ = ln(I) === on, U = [qe, tt].indexOf(L) >= 0,
|
|
4276
|
+
var I = v[P], L = dt(I), $ = ln(I) === on, U = [qe, tt].indexOf(L) >= 0, X = U ? "width" : "height", G = Oa(t, {
|
|
4277
4277
|
placement: I,
|
|
4278
4278
|
boundary: u,
|
|
4279
4279
|
rootBoundary: c,
|
|
4280
4280
|
altBoundary: f,
|
|
4281
4281
|
padding: d
|
|
4282
4282
|
}), ae = U ? $ ? nt : ze : $ ? tt : qe;
|
|
4283
|
-
x[
|
|
4283
|
+
x[X] > k[X] && (ae = lr(ae));
|
|
4284
4284
|
var re = lr(ae), ce = [];
|
|
4285
4285
|
if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
|
|
4286
4286
|
return me;
|
|
@@ -4291,7 +4291,7 @@ function Uc(e) {
|
|
|
4291
4291
|
S.set(I, ce);
|
|
4292
4292
|
}
|
|
4293
4293
|
if (A)
|
|
4294
|
-
for (var ve = g ? 3 : 1,
|
|
4294
|
+
for (var ve = g ? 3 : 1, te = function(ye) {
|
|
4295
4295
|
var Be = v.find(function(ot) {
|
|
4296
4296
|
var Re = S.get(ot);
|
|
4297
4297
|
if (Re)
|
|
@@ -4302,7 +4302,7 @@ function Uc(e) {
|
|
|
4302
4302
|
if (Be)
|
|
4303
4303
|
return M = Be, "break";
|
|
4304
4304
|
}, ie = ve; ie > 0; ie--) {
|
|
4305
|
-
var Ae =
|
|
4305
|
+
var Ae = te(ie);
|
|
4306
4306
|
if (Ae === "break") break;
|
|
4307
4307
|
}
|
|
4308
4308
|
t.placement !== M && (t.modifiersData[r]._skip = !0, t.placement = M, t.reset = !0);
|
|
@@ -4395,7 +4395,7 @@ function tf({
|
|
|
4395
4395
|
}, h = () => {
|
|
4396
4396
|
s.isOpen || (s.isOpen = !0, t("open:popper"));
|
|
4397
4397
|
};
|
|
4398
|
-
|
|
4398
|
+
ee([() => s.isOpen, o], async ([p]) => {
|
|
4399
4399
|
p ? (await g(), u()) : c();
|
|
4400
4400
|
});
|
|
4401
4401
|
const g = async () => {
|
|
@@ -4624,7 +4624,7 @@ var Vi = {
|
|
|
4624
4624
|
c81fc0a4: e.zIndex
|
|
4625
4625
|
}));
|
|
4626
4626
|
const r = No(), a = E(null), o = E(null), i = E(null), l = E(!1);
|
|
4627
|
-
|
|
4627
|
+
ne(() => {
|
|
4628
4628
|
const re = r.default();
|
|
4629
4629
|
if (re && re.length > 1)
|
|
4630
4630
|
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${re.length} child nodes.`);
|
|
@@ -4657,16 +4657,16 @@ var Vi = {
|
|
|
4657
4657
|
triggerNode: i
|
|
4658
4658
|
}), {
|
|
4659
4659
|
hasContent: S
|
|
4660
|
-
} = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => v.value && !M.value), I = T(() => !c.value && !A.value), L = T(() => h.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), $ = Mr.debounce(x, b.value), U = Mr.debounce(k, d.value),
|
|
4660
|
+
} = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => f.value || !S.value), P = T(() => v.value && !M.value), I = T(() => !c.value && !A.value), L = T(() => h.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), $ = Mr.debounce(x, b.value), U = Mr.debounce(k, d.value), X = async () => {
|
|
4661
4661
|
M.value || A.value || (U.clear(), $());
|
|
4662
4662
|
}, G = async () => {
|
|
4663
4663
|
A.value || ($.clear(), U());
|
|
4664
4664
|
}, ae = () => {
|
|
4665
|
-
v.value ? G() :
|
|
4665
|
+
v.value ? G() : X();
|
|
4666
4666
|
};
|
|
4667
|
-
return
|
|
4667
|
+
return ee([S, f], ([re, ce]) => {
|
|
4668
4668
|
v.value && (!re || ce) && k();
|
|
4669
|
-
}),
|
|
4669
|
+
}), ee(v, (re) => {
|
|
4670
4670
|
re ? l.value = !0 : Mr.debounce(() => {
|
|
4671
4671
|
l.value = !1;
|
|
4672
4672
|
}, 200);
|
|
@@ -4678,16 +4678,16 @@ var Vi = {
|
|
|
4678
4678
|
class: "inline-block",
|
|
4679
4679
|
style: Ye(N(L)),
|
|
4680
4680
|
onMouseleave: ce[2] || (ce[2] = (ve) => e.hover && G()),
|
|
4681
|
-
ref: (ve,
|
|
4682
|
-
|
|
4681
|
+
ref: (ve, te) => {
|
|
4682
|
+
te.popperContainerNode = ve, a.value = ve;
|
|
4683
4683
|
}
|
|
4684
4684
|
}, [O("div", {
|
|
4685
|
-
ref: (ve,
|
|
4686
|
-
|
|
4685
|
+
ref: (ve, te) => {
|
|
4686
|
+
te.triggerNode = ve, i.value = ve;
|
|
4687
4687
|
},
|
|
4688
|
-
onMouseover: ce[0] || (ce[0] = (ve) => e.hover &&
|
|
4688
|
+
onMouseover: ce[0] || (ce[0] = (ve) => e.hover && X()),
|
|
4689
4689
|
onClick: ae,
|
|
4690
|
-
onFocus:
|
|
4690
|
+
onFocus: X,
|
|
4691
4691
|
onKeyup: Nl(G, ["esc"])
|
|
4692
4692
|
}, [Q(re.$slots, "default")], 40, lf), H(Vo, {
|
|
4693
4693
|
name: "fade"
|
|
@@ -4695,13 +4695,13 @@ var Vi = {
|
|
|
4695
4695
|
default: _(() => [Xe(O("div", {
|
|
4696
4696
|
onClick: ce[1] || (ce[1] = (ve) => !N(h) && G()),
|
|
4697
4697
|
class: "popper",
|
|
4698
|
-
ref: (ve,
|
|
4699
|
-
|
|
4698
|
+
ref: (ve, te) => {
|
|
4699
|
+
te.popperNode = ve, o.value = ve;
|
|
4700
4700
|
}
|
|
4701
4701
|
}, [Q(re.$slots, "content", {
|
|
4702
4702
|
close: N(k),
|
|
4703
4703
|
isOpen: l.value
|
|
4704
|
-
}, () => [
|
|
4704
|
+
}, () => [Ie(q(N(u)), 1)]), e.arrow ? (w(), Y(of, {
|
|
4705
4705
|
key: 0
|
|
4706
4706
|
})) : V("", !0)], 512), [[jl, N(P)]])]),
|
|
4707
4707
|
_: 3
|
|
@@ -4767,7 +4767,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4767
4767
|
}
|
|
4768
4768
|
o.value = !o.value;
|
|
4769
4769
|
};
|
|
4770
|
-
return t({ toggle: i }), (l, s) => (w(),
|
|
4770
|
+
return t({ toggle: i }), (l, s) => (w(), Y(ur(N(uf)), Wl(l.$attrs, {
|
|
4771
4771
|
placement: n.placement,
|
|
4772
4772
|
show: o.value
|
|
4773
4773
|
}), {
|
|
@@ -4851,38 +4851,38 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4851
4851
|
O("a", {
|
|
4852
4852
|
href: t.value.homepage.link
|
|
4853
4853
|
}, [
|
|
4854
|
-
|
|
4854
|
+
Ie(q(t.value.homepage.name) + " ", 1),
|
|
4855
4855
|
t.value.homepage.desc ? (w(), B("small", bf, q(t.value.homepage.desc), 1)) : V("", !0)
|
|
4856
4856
|
], 8, gf),
|
|
4857
4857
|
O("ul", null, [
|
|
4858
|
-
(w(!0), B(fe, null,
|
|
4858
|
+
(w(!0), B(fe, null, Me(t.value.menu, (a) => (w(), B("li", {
|
|
4859
4859
|
key: a.name
|
|
4860
4860
|
}, [
|
|
4861
4861
|
O("a", {
|
|
4862
4862
|
href: a.link ?? ""
|
|
4863
4863
|
}, [
|
|
4864
|
-
|
|
4864
|
+
Ie(q(a.name) + " ", 1),
|
|
4865
4865
|
O("small", null, q(a.desc), 1)
|
|
4866
4866
|
], 8, yf),
|
|
4867
4867
|
a.child ? (w(), B("ul", Af, [
|
|
4868
|
-
(w(!0), B(fe, null,
|
|
4868
|
+
(w(!0), B(fe, null, Me(a.child, (o) => (w(), B("li", {
|
|
4869
4869
|
key: o.name
|
|
4870
4870
|
}, [
|
|
4871
4871
|
O("a", {
|
|
4872
4872
|
href: o.link ?? ""
|
|
4873
4873
|
}, [
|
|
4874
|
-
|
|
4874
|
+
Ie(q(o.name) + " ", 1),
|
|
4875
4875
|
O("small", null, q(o.desc), 1)
|
|
4876
4876
|
], 8, wf),
|
|
4877
4877
|
o.child ? (w(), B("ul", xf, [
|
|
4878
|
-
(w(!0), B(fe, null,
|
|
4878
|
+
(w(!0), B(fe, null, Me(o.child, (i) => (w(), B("li", {
|
|
4879
4879
|
key: i.name
|
|
4880
4880
|
}, [
|
|
4881
4881
|
O("a", {
|
|
4882
4882
|
href: i.link ?? "",
|
|
4883
4883
|
class: "multi"
|
|
4884
4884
|
}, [
|
|
4885
|
-
|
|
4885
|
+
Ie(q(i.name) + " ", 1),
|
|
4886
4886
|
O("small", null, q(i.desc), 1)
|
|
4887
4887
|
], 8, kf)
|
|
4888
4888
|
]))), 128))
|
|
@@ -4933,7 +4933,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4933
4933
|
return (i, l) => {
|
|
4934
4934
|
const s = K("base-icon");
|
|
4935
4935
|
return w(), B("div", Tf, [
|
|
4936
|
-
(w(!0), B(fe, null,
|
|
4936
|
+
(w(!0), B(fe, null, Me(a.value, (d, u) => (w(), B(fe, { key: u }, [
|
|
4937
4937
|
O("div", {
|
|
4938
4938
|
class: "step-body",
|
|
4939
4939
|
onClick: (c) => o(d)
|
|
@@ -4941,7 +4941,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4941
4941
|
O("div", {
|
|
4942
4942
|
class: z(["step-icon-container", { active: d.active }])
|
|
4943
4943
|
}, [
|
|
4944
|
-
d.icon ? (w(),
|
|
4944
|
+
d.icon ? (w(), Y(s, {
|
|
4945
4945
|
key: 0,
|
|
4946
4946
|
icon: d.icon,
|
|
4947
4947
|
class: "step-icon"
|
|
@@ -4960,7 +4960,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4960
4960
|
}), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ R({
|
|
4961
4961
|
__name: "base-tab",
|
|
4962
4962
|
setup(e) {
|
|
4963
|
-
return (t, n) => (w(),
|
|
4963
|
+
return (t, n) => (w(), Y(N(id), { as: "template" }, {
|
|
4964
4964
|
default: _(({ selected: r }) => [
|
|
4965
4965
|
Q(t.$slots, "default", { selected: r })
|
|
4966
4966
|
]),
|
|
@@ -4970,7 +4970,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4970
4970
|
}), ji = /* @__PURE__ */ R({
|
|
4971
4971
|
__name: "base-tab-group",
|
|
4972
4972
|
setup(e) {
|
|
4973
|
-
return (t, n) => (w(),
|
|
4973
|
+
return (t, n) => (w(), Y(N(ad), { as: "div" }, {
|
|
4974
4974
|
default: _(() => [
|
|
4975
4975
|
Q(t.$slots, "default")
|
|
4976
4976
|
]),
|
|
@@ -4980,7 +4980,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4980
4980
|
}), Wi = /* @__PURE__ */ R({
|
|
4981
4981
|
__name: "base-tab-list",
|
|
4982
4982
|
setup(e) {
|
|
4983
|
-
return (t, n) => (w(),
|
|
4983
|
+
return (t, n) => (w(), Y(N(od), null, {
|
|
4984
4984
|
default: _(() => [
|
|
4985
4985
|
Q(t.$slots, "default")
|
|
4986
4986
|
]),
|
|
@@ -4990,7 +4990,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
4990
4990
|
}), ea = /* @__PURE__ */ R({
|
|
4991
4991
|
__name: "base-tab-panel",
|
|
4992
4992
|
setup(e) {
|
|
4993
|
-
return (t, n) => (w(),
|
|
4993
|
+
return (t, n) => (w(), Y(N(sd), null, {
|
|
4994
4994
|
default: _(() => [
|
|
4995
4995
|
Q(t.$slots, "default")
|
|
4996
4996
|
]),
|
|
@@ -5000,7 +5000,7 @@ const Ni = /* @__PURE__ */ R({
|
|
|
5000
5000
|
}), Hi = /* @__PURE__ */ R({
|
|
5001
5001
|
__name: "base-tab-panels",
|
|
5002
5002
|
setup(e) {
|
|
5003
|
-
return (t, n) => (w(),
|
|
5003
|
+
return (t, n) => (w(), Y(N(ld), null, {
|
|
5004
5004
|
default: _(() => [
|
|
5005
5005
|
Q(t.$slots, "default")
|
|
5006
5006
|
]),
|
|
@@ -5032,11 +5032,11 @@ function Yf(e, t) {
|
|
|
5032
5032
|
])
|
|
5033
5033
|
]);
|
|
5034
5034
|
}
|
|
5035
|
-
const Xf = /* @__PURE__ */ oe(Hf, [["render", Yf], ["__scopeId", "data-v-2551c0f0"]]),
|
|
5035
|
+
const Xf = /* @__PURE__ */ oe(Hf, [["render", Yf], ["__scopeId", "data-v-2551c0f0"]]), $e = [];
|
|
5036
5036
|
for (let e = 0; e < 256; ++e)
|
|
5037
|
-
|
|
5037
|
+
$e.push((e + 256).toString(16).slice(1));
|
|
5038
5038
|
function Qf(e, t = 0) {
|
|
5039
|
-
return (
|
|
5039
|
+
return ($e[e[t + 0]] + $e[e[t + 1]] + $e[e[t + 2]] + $e[e[t + 3]] + "-" + $e[e[t + 4]] + $e[e[t + 5]] + "-" + $e[e[t + 6]] + $e[e[t + 7]] + "-" + $e[e[t + 8]] + $e[e[t + 9]] + "-" + $e[e[t + 10]] + $e[e[t + 11]] + $e[e[t + 12]] + $e[e[t + 13]] + $e[e[t + 14]] + $e[e[t + 15]]).toLowerCase();
|
|
5040
5040
|
}
|
|
5041
5041
|
let Rr;
|
|
5042
5042
|
const Gf = new Uint8Array(16);
|
|
@@ -5106,7 +5106,7 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
|
|
|
5106
5106
|
class: "toast-container",
|
|
5107
5107
|
"data-testid": o.dataTestid
|
|
5108
5108
|
}, [
|
|
5109
|
-
(w(!0), B(fe, null,
|
|
5109
|
+
(w(!0), B(fe, null, Me(n.value, (u) => Q(i.$slots, "default", {
|
|
5110
5110
|
key: u,
|
|
5111
5111
|
data: u
|
|
5112
5112
|
}, () => [
|
|
@@ -5128,9 +5128,9 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
|
|
|
5128
5128
|
u.color === "danger" ? (w(), B("i", ip)) : V("", !0)
|
|
5129
5129
|
]),
|
|
5130
5130
|
O("div", lp, [
|
|
5131
|
-
|
|
5131
|
+
Ie(q(u.message) + " ", 1),
|
|
5132
5132
|
O("ul", null, [
|
|
5133
|
-
(w(!0), B(fe, null,
|
|
5133
|
+
(w(!0), B(fe, null, Me(u.lists, (c) => (w(), B("li", { key: c }, "- " + q(c), 1))), 128))
|
|
5134
5134
|
])
|
|
5135
5135
|
]),
|
|
5136
5136
|
H(d, {
|
|
@@ -5665,14 +5665,14 @@ function Up(e) {
|
|
|
5665
5665
|
allowedAutoPlacements: p
|
|
5666
5666
|
}) : ye);
|
|
5667
5667
|
}, []), x = t.rects.reference, k = t.rects.popper, S = /* @__PURE__ */ new Map(), A = !0, M = v[0], P = 0; P < v.length; P++) {
|
|
5668
|
-
var I = v[P], L = ct(I), $ = fn(I) === sn, U = [_e, Ge].indexOf(L) >= 0,
|
|
5668
|
+
var I = v[P], L = ct(I), $ = fn(I) === sn, U = [_e, Ge].indexOf(L) >= 0, X = U ? "width" : "height", G = In(t, {
|
|
5669
5669
|
placement: I,
|
|
5670
5670
|
boundary: u,
|
|
5671
5671
|
rootBoundary: c,
|
|
5672
5672
|
altBoundary: f,
|
|
5673
5673
|
padding: d
|
|
5674
5674
|
}), ae = U ? $ ? Ke : Ve : $ ? Ge : _e;
|
|
5675
|
-
x[
|
|
5675
|
+
x[X] > k[X] && (ae = sr(ae));
|
|
5676
5676
|
var re = sr(ae), ce = [];
|
|
5677
5677
|
if (o && ce.push(G[L] <= 0), l && ce.push(G[ae] <= 0, G[re] <= 0), ce.every(function(me) {
|
|
5678
5678
|
return me;
|
|
@@ -5683,7 +5683,7 @@ function Up(e) {
|
|
|
5683
5683
|
S.set(I, ce);
|
|
5684
5684
|
}
|
|
5685
5685
|
if (A)
|
|
5686
|
-
for (var ve = g ? 3 : 1,
|
|
5686
|
+
for (var ve = g ? 3 : 1, te = function(ye) {
|
|
5687
5687
|
var Be = v.find(function(ot) {
|
|
5688
5688
|
var Re = S.get(ot);
|
|
5689
5689
|
if (Re)
|
|
@@ -5694,7 +5694,7 @@ function Up(e) {
|
|
|
5694
5694
|
if (Be)
|
|
5695
5695
|
return M = Be, "break";
|
|
5696
5696
|
}, ie = ve; ie > 0; ie--) {
|
|
5697
|
-
var Ae =
|
|
5697
|
+
var Ae = te(ie);
|
|
5698
5698
|
if (Ae === "break") break;
|
|
5699
5699
|
}
|
|
5700
5700
|
t.placement !== M && (t.modifiersData[r]._skip = !0, t.placement = M, t.reset = !0);
|
|
@@ -5812,10 +5812,10 @@ function nv(e) {
|
|
|
5812
5812
|
};
|
|
5813
5813
|
if (k) {
|
|
5814
5814
|
if (o) {
|
|
5815
|
-
var $, U = v === "y" ? _e : Ve,
|
|
5815
|
+
var $, U = v === "y" ? _e : Ve, X = v === "y" ? Ge : Ke, G = v === "y" ? "height" : "width", ae = k[v], re = ae + m[U], ce = ae - m[X], ve = h ? -A[G] / 2 : 0, te = y === sn ? S[G] : A[G], ie = y === sn ? -A[G] : -S[G], Ae = t.elements.arrow, me = h && Ae ? Ta(Ae) : {
|
|
5816
5816
|
width: 0,
|
|
5817
5817
|
height: 0
|
|
5818
|
-
}, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[
|
|
5818
|
+
}, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Gi(), Be = ye[U], ot = ye[X], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis : te - Re - Be - P.mainAxis, Ze = C ? -S[G] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? v === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = ($ = I?.[v]) != null ? $ : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, lt = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
|
|
5819
5819
|
k[v] = lt, L[v] = lt - ae;
|
|
5820
5820
|
}
|
|
5821
5821
|
if (l) {
|
|
@@ -6382,7 +6382,7 @@ function Rv(e, t) {
|
|
|
6382
6382
|
var D = $().parentNode;
|
|
6383
6383
|
return D ? sl(D) : document;
|
|
6384
6384
|
}
|
|
6385
|
-
function
|
|
6385
|
+
function X() {
|
|
6386
6386
|
return cr(k);
|
|
6387
6387
|
}
|
|
6388
6388
|
function G(D) {
|
|
@@ -6422,7 +6422,7 @@ function Rv(e, t) {
|
|
|
6422
6422
|
});
|
|
6423
6423
|
}
|
|
6424
6424
|
}
|
|
6425
|
-
function
|
|
6425
|
+
function te() {
|
|
6426
6426
|
U().removeEventListener("mousemove", g), nr = nr.filter(function(D) {
|
|
6427
6427
|
return D !== g;
|
|
6428
6428
|
});
|
|
@@ -6467,7 +6467,7 @@ function Rv(e, t) {
|
|
|
6467
6467
|
it(D, j);
|
|
6468
6468
|
}
|
|
6469
6469
|
function it(D, j) {
|
|
6470
|
-
var J =
|
|
6470
|
+
var J = X().box;
|
|
6471
6471
|
function he(se) {
|
|
6472
6472
|
se.target === J && (_r(J, "remove", he), j());
|
|
6473
6473
|
}
|
|
@@ -6533,7 +6533,7 @@ function Rv(e, t) {
|
|
|
6533
6533
|
props: n
|
|
6534
6534
|
} : null;
|
|
6535
6535
|
}).filter(Boolean);
|
|
6536
|
-
xv(he, D) && (
|
|
6536
|
+
xv(he, D) && (te(), Lt(D));
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
6539
6539
|
function Jt(D) {
|
|
@@ -6565,7 +6565,7 @@ function Rv(e, t) {
|
|
|
6565
6565
|
fn: function(Xn) {
|
|
6566
6566
|
var en = Xn.state;
|
|
6567
6567
|
if (L()) {
|
|
6568
|
-
var Ml =
|
|
6568
|
+
var Ml = X(), Sr = Ml.box;
|
|
6569
6569
|
["placement", "reference-hidden", "escaped"].forEach(function(Qn) {
|
|
6570
6570
|
Qn === "placement" ? Sr.setAttribute("data-placement", en.placement) : en.attributes.popper["data-popper-" + Qn] ? Sr.setAttribute("data-" + Qn, "") : Sr.removeAttribute("data-" + Qn);
|
|
6571
6571
|
}), en.attributes.popper = {};
|
|
@@ -6655,7 +6655,7 @@ function Rv(e, t) {
|
|
|
6655
6655
|
var j = v.props, J = So(e, Object.assign({}, j, wo(D), {
|
|
6656
6656
|
ignoreAttributes: !0
|
|
6657
6657
|
}));
|
|
6658
|
-
v.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (
|
|
6658
|
+
v.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (te(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
|
|
6659
6659
|
he.removeAttribute("aria-expanded");
|
|
6660
6660
|
}) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), S && S(j, J), v.popperInstance && ($t(), kt().forEach(function(he) {
|
|
6661
6661
|
requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
|
|
@@ -6671,14 +6671,14 @@ function Rv(e, t) {
|
|
|
6671
6671
|
var D = v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = st.isTouch && !v.props.touch, se = Lr(v.props.duration, 0, et.duration);
|
|
6672
6672
|
if (!(D || j || J || he) && !$().hasAttribute("disabled") && (re("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
6673
6673
|
if (v.state.isVisible = !0, L() && (k.style.visibility = "visible"), ae(), ye(), v.state.isMounted || (k.style.transition = "none"), L()) {
|
|
6674
|
-
var Fe =
|
|
6674
|
+
var Fe = X(), We = Fe.box, Zt = Fe.content;
|
|
6675
6675
|
Fr([We, Zt], 0);
|
|
6676
6676
|
}
|
|
6677
6677
|
f = function() {
|
|
6678
6678
|
var Ft;
|
|
6679
6679
|
if (!(!v.state.isVisible || d)) {
|
|
6680
6680
|
if (d = !0, k.offsetHeight, k.style.transition = v.props.moveTransition, L() && v.props.animation) {
|
|
6681
|
-
var kr =
|
|
6681
|
+
var kr = X(), Xn = kr.box, en = kr.content;
|
|
6682
6682
|
Fr([Xn, en], se), Mn([Xn, en], "visible");
|
|
6683
6683
|
}
|
|
6684
6684
|
ce(), ve(), Ao(Vr, v), (Ft = v.popperInstance) == null || Ft.forceUpdate(), re("onMount", [v]), v.props.animation && L() && Re(se, function() {
|
|
@@ -6691,8 +6691,8 @@ function Rv(e, t) {
|
|
|
6691
6691
|
function Bl() {
|
|
6692
6692
|
var D = !v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = Lr(v.props.duration, 1, et.duration);
|
|
6693
6693
|
if (!(D || j || J) && (re("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
6694
|
-
if (v.state.isVisible = !1, v.state.isShown = !1, d = !1, i = !1, L() && (k.style.visibility = "hidden"),
|
|
6695
|
-
var se =
|
|
6694
|
+
if (v.state.isVisible = !1, v.state.isShown = !1, d = !1, i = !1, L() && (k.style.visibility = "hidden"), te(), Be(), ae(!0), L()) {
|
|
6695
|
+
var se = X(), Fe = se.box, We = se.content;
|
|
6696
6696
|
v.props.animation && (Fr([Fe, We], he), Mn([Fe, We], "hidden"));
|
|
6697
6697
|
}
|
|
6698
6698
|
ce(), ve(), v.props.animation ? L() && ot(he, v.unmount) : v.unmount();
|
|
@@ -7214,13 +7214,13 @@ function pl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7214
7214
|
mount: x,
|
|
7215
7215
|
state: o
|
|
7216
7216
|
};
|
|
7217
|
-
return n.mount && (r ? r.isMounted ? x() :
|
|
7217
|
+
return n.mount && (r ? r.isMounted ? x() : ne(x) : x()), r && De(() => {
|
|
7218
7218
|
p();
|
|
7219
|
-
}), gt(t) || Va(t) ?
|
|
7219
|
+
}), gt(t) || Va(t) ? ee(t, c, { immediate: !1 }) : gt(t.content) && ee(t.content, f, { immediate: !1 }), k;
|
|
7220
7220
|
}
|
|
7221
7221
|
function Xv(e, t) {
|
|
7222
7222
|
const n = E();
|
|
7223
|
-
return
|
|
7223
|
+
return ne(() => {
|
|
7224
7224
|
const a = (Array.isArray(e) ? e.map((o) => o.value) : typeof e == "function" ? e() : e.value).map((o) => o instanceof Element ? o._tippy : o).filter(Boolean);
|
|
7225
7225
|
n.value = Fv(a, t ? { allowHTML: !0, ...t } : { allowHTML: !0 });
|
|
7226
7226
|
}), {
|
|
@@ -7313,13 +7313,13 @@ const vl = R({
|
|
|
7313
7313
|
} : (typeof e.to == "string" || e.to instanceof String) && (d = () => document.querySelector(e.to)));
|
|
7314
7314
|
const u = pl(d, s());
|
|
7315
7315
|
let c = t.content;
|
|
7316
|
-
!c && e.to === "parent" && (c = t.default),
|
|
7316
|
+
!c && e.to === "parent" && (c = t.default), ne(() => {
|
|
7317
7317
|
l.value = !0, ke(() => {
|
|
7318
7318
|
c && u.setContent(() => i.value);
|
|
7319
7319
|
});
|
|
7320
|
-
}),
|
|
7320
|
+
}), ee(u.state, () => {
|
|
7321
7321
|
n("state", N(u.state));
|
|
7322
|
-
}, { immediate: !0, deep: !0 }),
|
|
7322
|
+
}, { immediate: !0, deep: !0 }), ee(() => e, () => {
|
|
7323
7323
|
u.setProps(s()), c && u.setContent(() => i.value);
|
|
7324
7324
|
}, { deep: !0 });
|
|
7325
7325
|
let f = pr({
|
|
@@ -7446,7 +7446,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7446
7446
|
zIndex: { default: 9999 }
|
|
7447
7447
|
},
|
|
7448
7448
|
setup(e) {
|
|
7449
|
-
return (t, n) => (w(),
|
|
7449
|
+
return (t, n) => (w(), Y(N(vl), {
|
|
7450
7450
|
content: e.content,
|
|
7451
7451
|
interactive: !0,
|
|
7452
7452
|
"z-index": e.zIndex
|
|
@@ -7475,7 +7475,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7475
7475
|
const t = E(!1), n = E(), r = () => {
|
|
7476
7476
|
t.value = !t.value;
|
|
7477
7477
|
}, a = e;
|
|
7478
|
-
return
|
|
7478
|
+
return ee(
|
|
7479
7479
|
a,
|
|
7480
7480
|
() => {
|
|
7481
7481
|
t.value = a.isOpen;
|
|
@@ -7572,7 +7572,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7572
7572
|
]),
|
|
7573
7573
|
t.helpers || N(n).helper ? (w(), B("div", fm, [
|
|
7574
7574
|
Q(o.$slots, "helper", {}, () => [
|
|
7575
|
-
(w(!0), B(fe, null,
|
|
7575
|
+
(w(!0), B(fe, null, Me(t.helpers, (s, d) => (w(), B("div", {
|
|
7576
7576
|
class: "flex items-center gap-1",
|
|
7577
7577
|
key: d
|
|
7578
7578
|
}, [
|
|
@@ -7582,7 +7582,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7582
7582
|
])) : V("", !0),
|
|
7583
7583
|
t.errors || N(n).error ? (w(), B("div", vm, [
|
|
7584
7584
|
Q(o.$slots, "error", {}, () => [
|
|
7585
|
-
(w(!0), B(fe, null,
|
|
7585
|
+
(w(!0), B(fe, null, Me(t.errors, (s, d) => (w(), B("div", {
|
|
7586
7586
|
class: "flex items-center gap-1",
|
|
7587
7587
|
key: d
|
|
7588
7588
|
}, [
|
|
@@ -7625,7 +7625,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7625
7625
|
emits: ["update:modelValue", "update:true-value", "update:false-value", "update:errors"],
|
|
7626
7626
|
setup(e, { expose: t }) {
|
|
7627
7627
|
const n = e, r = de(e, "modelValue"), a = de(e, "true-value"), o = de(e, "false-value");
|
|
7628
|
-
|
|
7628
|
+
ee(
|
|
7629
7629
|
() => r.value,
|
|
7630
7630
|
() => {
|
|
7631
7631
|
s.value?.length && (s.value = []);
|
|
@@ -7637,7 +7637,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7637
7637
|
inputRef: l
|
|
7638
7638
|
}), (d, u) => {
|
|
7639
7639
|
const c = K("base-form");
|
|
7640
|
-
return w(),
|
|
7640
|
+
return w(), Y(c, {
|
|
7641
7641
|
label: n.label,
|
|
7642
7642
|
layout: n.layout,
|
|
7643
7643
|
description: n.description,
|
|
@@ -7729,7 +7729,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7729
7729
|
emits: ["update:modelValue", "update:isLoading", "update:selected", "update:search", "update:options", "update:errors", "update:selected-label", "update:selected-value"],
|
|
7730
7730
|
setup(e) {
|
|
7731
7731
|
const t = e, n = de(e, "modelValue"), r = de(e, "isLoading"), a = de(e, "selected"), o = de(e, "search"), i = de(e, "options"), l = de(e, "errors"), s = de(e, "selected-label"), d = de(e, "selected-value"), u = E(!1), c = E(), f = E();
|
|
7732
|
-
|
|
7732
|
+
ee(
|
|
7733
7733
|
() => f.value?.isOpen,
|
|
7734
7734
|
() => {
|
|
7735
7735
|
f.value.isOpen && ke(() => {
|
|
@@ -7744,7 +7744,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7744
7744
|
}, p = () => {
|
|
7745
7745
|
n.value = "", a.value = void 0, s.value = "", d.value = "", o.value = "", b();
|
|
7746
7746
|
};
|
|
7747
|
-
|
|
7747
|
+
ee(
|
|
7748
7748
|
a,
|
|
7749
7749
|
() => {
|
|
7750
7750
|
n.value = a.value?.label ?? "", s.value = a.value?.label ?? "", d.value = a.value?.value ?? "", l.value?.length && (l.value = []);
|
|
@@ -7769,7 +7769,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7769
7769
|
class: "w-full"
|
|
7770
7770
|
}, {
|
|
7771
7771
|
default: _(() => [
|
|
7772
|
-
e.mode === "input" ? (w(),
|
|
7772
|
+
e.mode === "input" ? (w(), Y(v, {
|
|
7773
7773
|
key: 0,
|
|
7774
7774
|
readonly: "",
|
|
7775
7775
|
modelValue: n.value,
|
|
@@ -7824,14 +7824,14 @@ const nm = /* @__PURE__ */ R({
|
|
|
7824
7824
|
O("div", Mm, [
|
|
7825
7825
|
r.value ? (w(), B("div", $m, " Loading data... ")) : V("", !0),
|
|
7826
7826
|
!r.value && h.value.length === 0 ? (w(), B("div", Rm, " Nothing found. ")) : V("", !0),
|
|
7827
|
-
(w(!0), B(fe, null,
|
|
7827
|
+
(w(!0), B(fe, null, Me(h.value, (A, M) => (w(), B("div", {
|
|
7828
7828
|
key: M,
|
|
7829
7829
|
class: z(["p-2 border-b first:border-t dark:border-b-slate-800 dark:border-t-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer", { "bg-blue-200 dark:bg-slate-700": A?.label === a.value?.label }]),
|
|
7830
7830
|
onClick: (P) => g(A),
|
|
7831
7831
|
"data-testid": `${e.dataTestid}-option-${A._id}`
|
|
7832
7832
|
}, [
|
|
7833
7833
|
Q(y.$slots, "default", { option: A }, () => [
|
|
7834
|
-
|
|
7834
|
+
Ie(q(A?.label), 1)
|
|
7835
7835
|
])
|
|
7836
7836
|
], 10, Lm))), 128))
|
|
7837
7837
|
])
|
|
@@ -9171,7 +9171,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9171
9171
|
}), l = E(), s = () => {
|
|
9172
9172
|
r.disabled || (l.value.focus(), l.value.showPicker());
|
|
9173
9173
|
}, d = E();
|
|
9174
|
-
|
|
9174
|
+
ee(i, (c) => {
|
|
9175
9175
|
const f = c?.split("-");
|
|
9176
9176
|
if (!f || f.length !== 3 || Number(f[0]) < 1e3) {
|
|
9177
9177
|
r.required && (o.value = ["Invalid date format."]), d.value = "", a("update:modelValue", "");
|
|
@@ -9179,18 +9179,18 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9179
9179
|
}
|
|
9180
9180
|
const h = /* @__PURE__ */ new Date();
|
|
9181
9181
|
h.setDate(Number(f[2])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[0])), d.value = `${f[0]}-${f[1]}-${f[2]}`;
|
|
9182
|
-
}),
|
|
9182
|
+
}), ee(d, (c) => {
|
|
9183
9183
|
c ? i.value = Hh(new Date(c), "yyyy-MM-dd") : a("update:modelValue", ""), l.value.blur();
|
|
9184
9184
|
});
|
|
9185
9185
|
const u = E();
|
|
9186
|
-
return
|
|
9186
|
+
return ne(() => {
|
|
9187
9187
|
r.autofocus && u.value?.focus();
|
|
9188
9188
|
}), t({
|
|
9189
9189
|
inputRef: u,
|
|
9190
9190
|
dateRef: l
|
|
9191
9191
|
}), (c, f) => {
|
|
9192
9192
|
const h = K("base-icon"), g = K("base-button"), p = K("base-form"), m = Ho("input-mask");
|
|
9193
|
-
return w(),
|
|
9193
|
+
return w(), Y(p, {
|
|
9194
9194
|
label: r.label,
|
|
9195
9195
|
layout: r.layout,
|
|
9196
9196
|
description: r.description,
|
|
@@ -9284,7 +9284,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9284
9284
|
inputRef: l
|
|
9285
9285
|
}), (d, u) => {
|
|
9286
9286
|
const c = K("base-form");
|
|
9287
|
-
return w(),
|
|
9287
|
+
return w(), Y(c, {
|
|
9288
9288
|
label: r.label,
|
|
9289
9289
|
layout: r.layout,
|
|
9290
9290
|
description: r.description,
|
|
@@ -9364,7 +9364,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9364
9364
|
},
|
|
9365
9365
|
get: () => r.modelValue
|
|
9366
9366
|
}), i = E(), l = E(), s = E(), d = E(0), u = E(0), c = de(e, "errors");
|
|
9367
|
-
|
|
9367
|
+
ne(() => {
|
|
9368
9368
|
r.autofocus && i.value?.focus(), f(), setTimeout(() => {
|
|
9369
9369
|
f();
|
|
9370
9370
|
}, 1e3);
|
|
@@ -9376,7 +9376,7 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9376
9376
|
inputRef: i
|
|
9377
9377
|
}), (h, g) => {
|
|
9378
9378
|
const p = K("base-form");
|
|
9379
|
-
return w(),
|
|
9379
|
+
return w(), Y(p, {
|
|
9380
9380
|
label: r.label,
|
|
9381
9381
|
layout: r.layout,
|
|
9382
9382
|
description: r.description,
|
|
@@ -9469,13 +9469,13 @@ const Uh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Yh
|
|
|
9469
9469
|
},
|
|
9470
9470
|
get: () => r.modelValue
|
|
9471
9471
|
}), i = E(), l = de(e, "errors");
|
|
9472
|
-
return
|
|
9472
|
+
return ne(() => {
|
|
9473
9473
|
r.autofocus && i.value?.focus();
|
|
9474
9474
|
}), t({
|
|
9475
9475
|
inputRef: i
|
|
9476
9476
|
}), (s, d) => {
|
|
9477
9477
|
const u = K("base-form"), c = Ho("input-mask");
|
|
9478
|
-
return w(),
|
|
9478
|
+
return w(), Y(u, {
|
|
9479
9479
|
label: r.label,
|
|
9480
9480
|
layout: r.layout,
|
|
9481
9481
|
description: r.description,
|
|
@@ -10162,7 +10162,7 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
|
|
|
10162
10162
|
const r = e, a = E(), o = E(), i = () => {
|
|
10163
10163
|
o.value.select();
|
|
10164
10164
|
}, l = E(), s = E(), d = E(0), u = E(0);
|
|
10165
|
-
|
|
10165
|
+
ne(() => {
|
|
10166
10166
|
a.value = new kl(o.value, {
|
|
10167
10167
|
numeral: !0,
|
|
10168
10168
|
numeralThousandsGroupStyle: "thousand",
|
|
@@ -10187,7 +10187,7 @@ const vg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
|
|
|
10187
10187
|
inputRef: o
|
|
10188
10188
|
}), (b, y) => {
|
|
10189
10189
|
const C = K("base-form");
|
|
10190
|
-
return w(),
|
|
10190
|
+
return w(), Y(C, {
|
|
10191
10191
|
label: r.label,
|
|
10192
10192
|
layout: r.layout,
|
|
10193
10193
|
description: r.description,
|
|
@@ -10322,7 +10322,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10322
10322
|
}, Sg = {
|
|
10323
10323
|
key: 1,
|
|
10324
10324
|
class: "p-1 text-gray-400 italic"
|
|
10325
|
-
}, Og = ["
|
|
10325
|
+
}, Og = ["onMousedown"], Cg = /* @__PURE__ */ R({
|
|
10326
10326
|
__name: "base-mention",
|
|
10327
10327
|
props: /* @__PURE__ */ we({
|
|
10328
10328
|
modelValue: {},
|
|
@@ -10334,6 +10334,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10334
10334
|
border: { default: "simple" },
|
|
10335
10335
|
layout: { default: "vertical" },
|
|
10336
10336
|
maxlength: {},
|
|
10337
|
+
showAvatar: { type: Boolean, default: !0 },
|
|
10337
10338
|
autofocus: { type: Boolean, default: !1 },
|
|
10338
10339
|
required: { type: Boolean, default: !1 },
|
|
10339
10340
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -10368,10 +10369,14 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10368
10369
|
d.value = u.value?.scrollHeight ?? 0;
|
|
10369
10370
|
});
|
|
10370
10371
|
}
|
|
10371
|
-
|
|
10372
|
+
ee(s, c), ne(() => {
|
|
10372
10373
|
r.autofocus && u.value?.focus(), c();
|
|
10373
10374
|
});
|
|
10374
|
-
const f = E({ top: 0, left: 0 }), h = E(!1), g = E(0), p = E(null), m = E(-1), b = E("")
|
|
10375
|
+
const f = E({ top: 0, left: 0 }), h = E(!1), g = E(0), p = E(null), m = E(-1), b = E("");
|
|
10376
|
+
ee(() => h.value, (A) => {
|
|
10377
|
+
o("showSuggestions", A);
|
|
10378
|
+
});
|
|
10379
|
+
const y = T(() => p.value ? (r.options[p.value] || []).filter(
|
|
10375
10380
|
(A) => A.label.toLowerCase().includes(b.value.toLowerCase())
|
|
10376
10381
|
) : []);
|
|
10377
10382
|
function C() {
|
|
@@ -10387,7 +10392,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10387
10392
|
$ ? (p.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], l({
|
|
10388
10393
|
trigger: p.value,
|
|
10389
10394
|
query: b.value
|
|
10390
|
-
}), h.value = !0,
|
|
10395
|
+
}), h.value = !0, ke(C)) : S();
|
|
10391
10396
|
}
|
|
10392
10397
|
function x(A) {
|
|
10393
10398
|
!h.value || !y.value.length || (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) % y.value.length), A.key === "ArrowUp" && (g.value = (g.value - 1 + y.value.length) % y.value.length), A.key === "Enter" && k(y.value[g.value]), A.key === "Escape" && S());
|
|
@@ -10402,9 +10407,9 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10402
10407
|
});
|
|
10403
10408
|
}
|
|
10404
10409
|
function S() {
|
|
10405
|
-
i && (clearTimeout(i), i = null), h.value = !1,
|
|
10410
|
+
i && (clearTimeout(i), i = null), h.value = !1, m.value = -1, b.value = "", p.value = null, g.value = 0;
|
|
10406
10411
|
}
|
|
10407
|
-
return
|
|
10412
|
+
return ee(s, () => {
|
|
10408
10413
|
const A = [];
|
|
10409
10414
|
for (const M of r.triggers) {
|
|
10410
10415
|
const P = new RegExp(`\\${M}(\\w+)`, "g"), I = Array.from(s.value.matchAll(P)).map(($) => $[1]?.toLowerCase()), L = r.options[M] || [];
|
|
@@ -10412,8 +10417,8 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10412
10417
|
}
|
|
10413
10418
|
o("update:mentions", A);
|
|
10414
10419
|
}), t({ textareaRef: u }), (A, M) => {
|
|
10415
|
-
const P = K("base-form");
|
|
10416
|
-
return w(),
|
|
10420
|
+
const P = K("base-avatar"), I = K("base-form");
|
|
10421
|
+
return w(), Y(I, {
|
|
10417
10422
|
label: r.label,
|
|
10418
10423
|
layout: r.layout,
|
|
10419
10424
|
description: r.description,
|
|
@@ -10426,7 +10431,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10426
10431
|
Xe(O("textarea", {
|
|
10427
10432
|
ref_key: "textareaRef",
|
|
10428
10433
|
ref: u,
|
|
10429
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
10434
|
+
"onUpdate:modelValue": M[0] || (M[0] = (L) => s.value = L),
|
|
10430
10435
|
id: e.id,
|
|
10431
10436
|
placeholder: e.placeholder,
|
|
10432
10437
|
autofocus: e.autofocus,
|
|
@@ -10458,14 +10463,21 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10458
10463
|
style: Ye({ top: `${f.value.top}px`, left: `${f.value.left}px` })
|
|
10459
10464
|
}, [
|
|
10460
10465
|
e.loading ? (w(), B("li", kg, "Searching...")) : y.value.length ? V("", !0) : (w(), B("li", Sg, "No results")),
|
|
10461
|
-
e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 },
|
|
10462
|
-
key:
|
|
10466
|
+
e.loading ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(y.value, (L, $) => (w(), B("li", {
|
|
10467
|
+
key: L.id,
|
|
10463
10468
|
class: z([
|
|
10464
|
-
"p-1 cursor-pointer",
|
|
10465
|
-
|
|
10469
|
+
"p-1 cursor-pointer flex items-center gap-1",
|
|
10470
|
+
$ === g.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
10466
10471
|
]),
|
|
10467
|
-
|
|
10468
|
-
},
|
|
10472
|
+
onMousedown: (U) => k(L)
|
|
10473
|
+
}, [
|
|
10474
|
+
r.showAvatar ? (w(), Y(P, {
|
|
10475
|
+
key: 0,
|
|
10476
|
+
size: 24,
|
|
10477
|
+
src: L.avatar_url
|
|
10478
|
+
}, null, 8, ["src"])) : V("", !0),
|
|
10479
|
+
Ie(" " + q(L.label), 1)
|
|
10480
|
+
], 42, Og))), 128))
|
|
10469
10481
|
], 4)) : V("", !0)
|
|
10470
10482
|
])
|
|
10471
10483
|
]),
|
|
@@ -10473,7 +10485,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10473
10485
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
10474
10486
|
};
|
|
10475
10487
|
}
|
|
10476
|
-
}), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-
|
|
10488
|
+
}), Eg = /* @__PURE__ */ oe(Cg, [["__scopeId", "data-v-432439ca"]]), Tg = { class: "cursor-pointer" }, Bg = { class: "flex items-center justify-between gap-1" }, Pg = {
|
|
10477
10489
|
key: 0,
|
|
10478
10490
|
class: "flex items-center shrink-0 text-white"
|
|
10479
10491
|
}, Dg = {
|
|
@@ -10509,7 +10521,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10509
10521
|
});
|
|
10510
10522
|
return (i, l) => {
|
|
10511
10523
|
const s = K("base-icon"), d = K("base-form");
|
|
10512
|
-
return w(),
|
|
10524
|
+
return w(), Y(d, {
|
|
10513
10525
|
label: n.label,
|
|
10514
10526
|
layout: n.layout,
|
|
10515
10527
|
description: n.description,
|
|
@@ -10527,7 +10539,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10527
10539
|
O("div", {
|
|
10528
10540
|
class: z(["flex w-full gap-2", { "flex-col": n.optionsLayout === "vertical" }])
|
|
10529
10541
|
}, [
|
|
10530
|
-
(w(!0), B(fe, null,
|
|
10542
|
+
(w(!0), B(fe, null, Me(e.options, (u) => (w(), Y(N(ed), {
|
|
10531
10543
|
as: "div",
|
|
10532
10544
|
key: u.label,
|
|
10533
10545
|
disabled: e.disabled || e.readonly,
|
|
@@ -10595,7 +10607,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10595
10607
|
});
|
|
10596
10608
|
return (i, l) => {
|
|
10597
10609
|
const s = K("base-form");
|
|
10598
|
-
return w(),
|
|
10610
|
+
return w(), Y(s, {
|
|
10599
10611
|
label: n.label,
|
|
10600
10612
|
layout: n.layout,
|
|
10601
10613
|
description: n.description,
|
|
@@ -10670,14 +10682,14 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10670
10682
|
}, c = E(null), f = () => {
|
|
10671
10683
|
c.value && c.value.el.click();
|
|
10672
10684
|
}, h = E();
|
|
10673
|
-
return
|
|
10685
|
+
return ne(() => {
|
|
10674
10686
|
a.autofocus && h.value?.focus();
|
|
10675
|
-
}),
|
|
10687
|
+
}), ee(
|
|
10676
10688
|
() => o.value,
|
|
10677
10689
|
() => {
|
|
10678
10690
|
n.value = o.value?.label ?? "", r.value = o.value?.value ?? "", s.value?.length && (s.value = []);
|
|
10679
10691
|
}
|
|
10680
|
-
),
|
|
10692
|
+
), ee(
|
|
10681
10693
|
() => r.value,
|
|
10682
10694
|
(g) => {
|
|
10683
10695
|
o.value = a.options.find((p) => p.value === g);
|
|
@@ -10687,7 +10699,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10687
10699
|
inputRef: h
|
|
10688
10700
|
}), (g, p) => {
|
|
10689
10701
|
const m = K("base-icon"), b = K("base-button"), y = K("base-form");
|
|
10690
|
-
return w(),
|
|
10702
|
+
return w(), Y(y, {
|
|
10691
10703
|
label: a.label,
|
|
10692
10704
|
layout: a.layout,
|
|
10693
10705
|
description: a.description,
|
|
@@ -10723,7 +10735,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10723
10735
|
onChange: p[0] || (p[0] = (C) => l.value = C.target.value),
|
|
10724
10736
|
"data-testid": `${e.dataTestid}-input`
|
|
10725
10737
|
}, null, 8, ["autofocus", "required", "readonly", "disabled", "placeholder", "class", "displayValue", "data-testid"]),
|
|
10726
|
-
N(ml)(o.value) ? (w(),
|
|
10738
|
+
N(ml)(o.value) ? (w(), Y(N(vu), {
|
|
10727
10739
|
key: 0,
|
|
10728
10740
|
ref_key: "buttonRef",
|
|
10729
10741
|
ref: c,
|
|
@@ -10733,7 +10745,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10733
10745
|
H(m, { icon: "i-fa7-regular:angle-down" })
|
|
10734
10746
|
]),
|
|
10735
10747
|
_: 1
|
|
10736
|
-
}, 512)) : (w(),
|
|
10748
|
+
}, 512)) : (w(), Y(b, {
|
|
10737
10749
|
key: 1,
|
|
10738
10750
|
size: "none",
|
|
10739
10751
|
variant: "text",
|
|
@@ -10759,7 +10771,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10759
10771
|
default: _(() => [
|
|
10760
10772
|
i.value ? (w(), B("div", jg, " Loading data... ")) : V("", !0),
|
|
10761
10773
|
!i.value && d.value.length === 0 && l.value !== "" ? (w(), B("div", Wg, " Nothing found. ")) : V("", !0),
|
|
10762
|
-
i.value ? V("", !0) : (w(!0), B(fe, { key: 2 },
|
|
10774
|
+
i.value ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(d.value, (C) => (w(), Y(N(gu), {
|
|
10763
10775
|
as: "template",
|
|
10764
10776
|
key: C._id,
|
|
10765
10777
|
value: C,
|
|
@@ -10825,7 +10837,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10825
10837
|
});
|
|
10826
10838
|
return (i, l) => {
|
|
10827
10839
|
const s = K("base-form");
|
|
10828
|
-
return w(),
|
|
10840
|
+
return w(), Y(s, {
|
|
10829
10841
|
label: n.label,
|
|
10830
10842
|
layout: n.layout,
|
|
10831
10843
|
description: n.description,
|
|
@@ -10839,7 +10851,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10839
10851
|
class: z(["inline-flex cursor-pointer select-none items-center gap-2", { "flex-row-reverse ": e.textPosition === "right" }])
|
|
10840
10852
|
}, [
|
|
10841
10853
|
Q(i.$slots, "label", {}, () => [
|
|
10842
|
-
|
|
10854
|
+
Ie(q(e.text), 1)
|
|
10843
10855
|
]),
|
|
10844
10856
|
Xe(O("input", {
|
|
10845
10857
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.value = d),
|
|
@@ -10896,9 +10908,9 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10896
10908
|
},
|
|
10897
10909
|
get: () => r.modelValue
|
|
10898
10910
|
}), l = E(0), s = E();
|
|
10899
|
-
|
|
10911
|
+
ee(i, () => {
|
|
10900
10912
|
d();
|
|
10901
|
-
}),
|
|
10913
|
+
}), ne(() => {
|
|
10902
10914
|
r.autofocus && s.value?.focus(), d();
|
|
10903
10915
|
});
|
|
10904
10916
|
const d = () => {
|
|
@@ -10910,7 +10922,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10910
10922
|
textareaRef: s
|
|
10911
10923
|
}), (u, c) => {
|
|
10912
10924
|
const f = K("base-form");
|
|
10913
|
-
return w(),
|
|
10925
|
+
return w(), Y(f, {
|
|
10914
10926
|
label: r.label,
|
|
10915
10927
|
layout: r.layout,
|
|
10916
10928
|
description: r.description,
|
|
@@ -10981,11 +10993,11 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
10981
10993
|
setup(e) {
|
|
10982
10994
|
const t = E(0), n = E(`is loading ${t.value} %`), r = E();
|
|
10983
10995
|
let a;
|
|
10984
|
-
|
|
10996
|
+
ne(() => {
|
|
10985
10997
|
o(), a = setInterval(() => {
|
|
10986
10998
|
t.value += 20, n.value = `is loading ${t.value} %`;
|
|
10987
10999
|
}, 50);
|
|
10988
|
-
}),
|
|
11000
|
+
}), ee(t, (l) => {
|
|
10989
11001
|
l >= 100 && (clearInterval(a), n.value = "loading complete", i(), r.value.style.display = "none");
|
|
10990
11002
|
});
|
|
10991
11003
|
const o = () => {
|
|
@@ -11034,12 +11046,12 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11034
11046
|
for (const f of c.submenu)
|
|
11035
11047
|
a.path.includes(f.path) && (i.value = c.name);
|
|
11036
11048
|
};
|
|
11037
|
-
|
|
11049
|
+
ee(
|
|
11038
11050
|
() => a.path,
|
|
11039
11051
|
() => {
|
|
11040
11052
|
s(), d();
|
|
11041
11053
|
}
|
|
11042
|
-
),
|
|
11054
|
+
), ne(() => {
|
|
11043
11055
|
d();
|
|
11044
11056
|
});
|
|
11045
11057
|
const u = (c) => c.substring(0, 8) === "https://" ? "external" : "internal";
|
|
@@ -11049,7 +11061,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11049
11061
|
O("div", cb, [
|
|
11050
11062
|
O("div", fb, [
|
|
11051
11063
|
O("p", pb, q(e.title), 1),
|
|
11052
|
-
n.value ? (w(),
|
|
11064
|
+
n.value ? (w(), Y(ur(N(ia)), {
|
|
11053
11065
|
key: 0,
|
|
11054
11066
|
onClick: f[0] || (f[0] = (p) => N(o).closeSidebar()),
|
|
11055
11067
|
class: "mr-2",
|
|
@@ -11068,11 +11080,11 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11068
11080
|
]),
|
|
11069
11081
|
O("div", mb, [
|
|
11070
11082
|
O("ul", hb, [
|
|
11071
|
-
(w(!0), B(fe, null,
|
|
11083
|
+
(w(!0), B(fe, null, Me(r.value, (p) => (w(), B("li", {
|
|
11072
11084
|
key: p.name
|
|
11073
11085
|
}, [
|
|
11074
11086
|
p.submenu ? (w(), B(fe, { key: 0 }, [
|
|
11075
|
-
p.path ? (w(),
|
|
11087
|
+
p.path ? (w(), Y(g, {
|
|
11076
11088
|
key: 0,
|
|
11077
11089
|
to: p.path,
|
|
11078
11090
|
class: "menu-link-button",
|
|
@@ -11108,7 +11120,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11108
11120
|
"max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === p.name
|
|
11109
11121
|
}])
|
|
11110
11122
|
}, [
|
|
11111
|
-
(w(!0), B(fe, null,
|
|
11123
|
+
(w(!0), B(fe, null, Me(p.submenu, (m) => (w(), B("li", {
|
|
11112
11124
|
key: m.name,
|
|
11113
11125
|
class: "overflow-hidden"
|
|
11114
11126
|
}, [
|
|
@@ -11128,7 +11140,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11128
11140
|
]))), 128))
|
|
11129
11141
|
], 2)
|
|
11130
11142
|
], 64)) : (w(), B(fe, { key: 1 }, [
|
|
11131
|
-
p.path && u(p.path) === "internal" ? (w(),
|
|
11143
|
+
p.path && u(p.path) === "internal" ? (w(), Y(g, {
|
|
11132
11144
|
key: 0,
|
|
11133
11145
|
to: p.path,
|
|
11134
11146
|
class: "menu-link-button",
|
|
@@ -11136,7 +11148,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11136
11148
|
"data-testid": p.dataTestid
|
|
11137
11149
|
}, {
|
|
11138
11150
|
default: _(() => [
|
|
11139
|
-
|
|
11151
|
+
Ie(q(p.name), 1)
|
|
11140
11152
|
]),
|
|
11141
11153
|
_: 2
|
|
11142
11154
|
}, 1032, ["to", "data-testid"])) : V("", !0),
|
|
@@ -11147,7 +11159,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11147
11159
|
target: "_blank",
|
|
11148
11160
|
class: "menu-link-button"
|
|
11149
11161
|
}, [
|
|
11150
|
-
|
|
11162
|
+
Ie(q(p.name) + " ", 1),
|
|
11151
11163
|
H(h, { icon: "i-fa7-solid:up-right-from-square" })
|
|
11152
11164
|
], 8, Ab)) : V("", !0)
|
|
11153
11165
|
], 64)),
|
|
@@ -11185,8 +11197,8 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11185
11197
|
return w(), B("div", kb, [
|
|
11186
11198
|
O("div", Sb, [
|
|
11187
11199
|
O("div", Ob, [
|
|
11188
|
-
(w(!0), B(fe, null,
|
|
11189
|
-
a(u.path) === "internal" ? (w(),
|
|
11200
|
+
(w(!0), B(fe, null, Me(n.apps, (u, c) => (w(), B(fe, null, [
|
|
11201
|
+
a(u.path) === "internal" ? (w(), Y(d, {
|
|
11190
11202
|
key: `internal-${c}`,
|
|
11191
11203
|
to: u.path,
|
|
11192
11204
|
onClick: (f) => i(u.path),
|
|
@@ -11240,11 +11252,11 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11240
11252
|
};
|
|
11241
11253
|
return (u, c) => (w(), B(fe, null, [
|
|
11242
11254
|
O("div", Lb, [
|
|
11243
|
-
(w(),
|
|
11255
|
+
(w(), Y(ur(Cl), {
|
|
11244
11256
|
apps: e.apps,
|
|
11245
11257
|
onChoose: d
|
|
11246
11258
|
}, null, 40, ["apps"])),
|
|
11247
|
-
(w(),
|
|
11259
|
+
(w(), Y(ur(Sl), {
|
|
11248
11260
|
title: o.value,
|
|
11249
11261
|
menus: s.value,
|
|
11250
11262
|
"is-sidebar-open": l.value,
|
|
@@ -11268,7 +11280,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11268
11280
|
const t = e, n = E();
|
|
11269
11281
|
return (r, a) => {
|
|
11270
11282
|
const o = K("base-avatar"), i = K("base-popover");
|
|
11271
|
-
return w(),
|
|
11283
|
+
return w(), Y(i, {
|
|
11272
11284
|
ref_key: "accountPopoverRef",
|
|
11273
11285
|
ref: n,
|
|
11274
11286
|
placement: "bottom-end"
|
|
@@ -11335,7 +11347,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11335
11347
|
const t = e, n = de(e, "is-dark-mode");
|
|
11336
11348
|
return (r, a) => {
|
|
11337
11349
|
const o = K("base-icon"), i = K("base-button");
|
|
11338
|
-
return w(),
|
|
11350
|
+
return w(), Y(i, {
|
|
11339
11351
|
variant: "text",
|
|
11340
11352
|
color: "primary",
|
|
11341
11353
|
size: "sm",
|
|
@@ -11343,11 +11355,11 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11343
11355
|
class: "text-slate-900 dark:text-slate-50 flex justify-left!"
|
|
11344
11356
|
}, {
|
|
11345
11357
|
default: _(() => [
|
|
11346
|
-
n.value ? (w(),
|
|
11358
|
+
n.value ? (w(), Y(o, {
|
|
11347
11359
|
key: 0,
|
|
11348
11360
|
icon: "i-ph-sun-duotone",
|
|
11349
11361
|
class: "text-2xl"
|
|
11350
|
-
})) : (w(),
|
|
11362
|
+
})) : (w(), Y(o, {
|
|
11351
11363
|
key: 1,
|
|
11352
11364
|
icon: "i-ph-moon-duotone",
|
|
11353
11365
|
class: "text-2xl"
|
|
@@ -11367,7 +11379,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11367
11379
|
const t = e;
|
|
11368
11380
|
return (n, r) => {
|
|
11369
11381
|
const a = K("base-icon"), o = K("base-button");
|
|
11370
|
-
return w(),
|
|
11382
|
+
return w(), Y(o, {
|
|
11371
11383
|
variant: "text",
|
|
11372
11384
|
color: "danger",
|
|
11373
11385
|
size: "sm",
|
|
@@ -11413,12 +11425,12 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11413
11425
|
]),
|
|
11414
11426
|
_: 1
|
|
11415
11427
|
}),
|
|
11416
|
-
r.value ? (w(),
|
|
11428
|
+
r.value ? (w(), Y(d, {
|
|
11417
11429
|
key: 0,
|
|
11418
11430
|
class: "p-0! gap-0! overflow-y-auto max-h-50"
|
|
11419
11431
|
}, {
|
|
11420
11432
|
default: _(() => [
|
|
11421
|
-
(w(!0), B(fe, null,
|
|
11433
|
+
(w(!0), B(fe, null, Me(t.organizations, (u) => (w(), Y(s, {
|
|
11422
11434
|
key: u.name,
|
|
11423
11435
|
href: u.link,
|
|
11424
11436
|
"is-block": "",
|
|
@@ -11443,7 +11455,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11443
11455
|
const t = E();
|
|
11444
11456
|
return (n, r) => {
|
|
11445
11457
|
const a = K("BaseIcon"), o = K("base-icon");
|
|
11446
|
-
return w(),
|
|
11458
|
+
return w(), Y(N(Ni), {
|
|
11447
11459
|
ref_key: "notificationPopoverRef",
|
|
11448
11460
|
ref: t,
|
|
11449
11461
|
placement: "bottom"
|
|
@@ -11506,7 +11518,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11506
11518
|
]),
|
|
11507
11519
|
r[5] || (r[5] = O("div", null, [
|
|
11508
11520
|
O("p", { class: "font-medium text-slate-600 dark:text-slate-100" }, [
|
|
11509
|
-
|
|
11521
|
+
Ie(" 01 Jan 2024 "),
|
|
11510
11522
|
O("span", { class: "text-xs font-light" }, "08:10")
|
|
11511
11523
|
]),
|
|
11512
11524
|
O("div", { class: "flex text-sm text-slate-400 dark:text-slate-300" }, [
|
|
@@ -11520,7 +11532,7 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11520
11532
|
]),
|
|
11521
11533
|
r[6] || (r[6] = O("div", null, [
|
|
11522
11534
|
O("p", { class: "font-medium text-slate-600 dark:text-slate-100" }, [
|
|
11523
|
-
|
|
11535
|
+
Ie(" 01 Jan 2024 "),
|
|
11524
11536
|
O("span", { class: "text-xs font-light" }, "08:00")
|
|
11525
11537
|
]),
|
|
11526
11538
|
O("div", { class: "flex text-sm text-slate-400 dark:text-slate-300" }, [
|
|
@@ -11708,7 +11720,7 @@ function ky() {
|
|
|
11708
11720
|
}
|
|
11709
11721
|
function Sy() {
|
|
11710
11722
|
const e = El();
|
|
11711
|
-
|
|
11723
|
+
ne(async () => {
|
|
11712
11724
|
e.onResizeWindow(), await ke(() => {
|
|
11713
11725
|
window.addEventListener("resize", e.onResizeWindow);
|
|
11714
11726
|
});
|
|
@@ -11736,9 +11748,9 @@ const or = typeof window < "u", Ra = mr("sidebar", {
|
|
|
11736
11748
|
});
|
|
11737
11749
|
function Oy() {
|
|
11738
11750
|
const e = Ra(), t = qo(), { isMobile: n } = py();
|
|
11739
|
-
|
|
11751
|
+
ne(() => {
|
|
11740
11752
|
r();
|
|
11741
|
-
}),
|
|
11753
|
+
}), ee(
|
|
11742
11754
|
t,
|
|
11743
11755
|
async () => {
|
|
11744
11756
|
n() && e.closeSidebar();
|