@point-hub/papp 0.1.14 → 0.1.16
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/index.css +1 -1
- package/dist/index.js +277 -273
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -388,13 +388,13 @@ function en(e, t, n) {
|
|
|
388
388
|
r = f;
|
|
389
389
|
let h;
|
|
390
390
|
if (n.key && ((s = n.debug) != null && s.call(n)) && (h = Date.now()), a = t(...f), n.key && ((d = n.debug) != null && d.call(n))) {
|
|
391
|
-
const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16,
|
|
392
|
-
for (
|
|
393
|
-
|
|
394
|
-
return
|
|
391
|
+
const g = Math.round((Date.now() - u) * 100) / 100, v = Math.round((Date.now() - h) * 100) / 100, m = v / 16, y = (b, S) => {
|
|
392
|
+
for (b = String(b); b.length < S; )
|
|
393
|
+
b = " " + b;
|
|
394
|
+
return b;
|
|
395
395
|
};
|
|
396
396
|
console.info(
|
|
397
|
-
`%c⏱ ${
|
|
397
|
+
`%c⏱ ${y(v, 5)} /${y(g, 5)} ms`,
|
|
398
398
|
`
|
|
399
399
|
font-size: .6rem;
|
|
400
400
|
font-weight: bold;
|
|
@@ -674,11 +674,11 @@ class Ns {
|
|
|
674
674
|
const p = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c);
|
|
675
675
|
m = p ? p.end + this.options.gap : r + a, v = p ? p.lane : c % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(c, v);
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const y = s.get(h), b = typeof y == "number" ? y : this.options.estimateSize(c), S = m + b;
|
|
678
678
|
u[c] = {
|
|
679
679
|
index: c,
|
|
680
680
|
start: m,
|
|
681
|
-
size:
|
|
681
|
+
size: b,
|
|
682
682
|
end: S,
|
|
683
683
|
key: h,
|
|
684
684
|
lane: v
|
|
@@ -1271,7 +1271,7 @@ function Or({ props: e, attrs: t, slots: n, slot: r, name: a }) {
|
|
|
1271
1271
|
if (l === "template") {
|
|
1272
1272
|
if (d = ei(d ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
|
|
1273
1273
|
let [f, ...c] = d ?? [];
|
|
1274
|
-
if (!ru(f) || c.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((v) => v.trim()).filter((v, m,
|
|
1274
|
+
if (!ru(f) || c.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(s).concat(Object.keys(t)).map((v) => v.trim()).filter((v, m, y) => y.indexOf(v) === m).sort((v, m) => v.localeCompare(m)).map((v) => ` - ${v}`).join(`
|
|
1275
1275
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
|
|
1276
1276
|
`)].join(`
|
|
1277
1277
|
`));
|
|
@@ -1445,13 +1445,13 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1445
1445
|
let I = f.value !== null ? u.value[f.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((X, K) => X.dataRef.order.value - K.dataRef.order.value) : bt(L, (X) => F(X.dataRef.domRef)), Y = I ? $.indexOf(I) : null;
|
|
1446
1446
|
return Y === -1 && (Y = null), { options: $, activeOptionIndex: Y };
|
|
1447
1447
|
}
|
|
1448
|
-
let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [
|
|
1448
|
+
let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [y, b] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), S = T(() => y.value === void 0 ? Ce(v.value, { 1: [], 0: void 0 }) : y.value), p = null, x = null;
|
|
1449
1449
|
function k(P) {
|
|
1450
1450
|
return Ce(v.value, { 0() {
|
|
1451
|
-
return
|
|
1451
|
+
return b?.(P);
|
|
1452
1452
|
}, 1: () => {
|
|
1453
1453
|
let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((Y) => A.compare(L, Le(Y)));
|
|
1454
|
-
return $ === -1 ? I.push(L) : I.splice($, 1),
|
|
1454
|
+
return $ === -1 ? I.push(L) : I.splice($, 1), b?.(I);
|
|
1455
1455
|
} });
|
|
1456
1456
|
}
|
|
1457
1457
|
let C = T(() => {
|
|
@@ -1471,7 +1471,7 @@ let si = /* @__PURE__ */ Symbol("VirtualContext"), fu = R({ name: "VirtualProvid
|
|
|
1471
1471
|
}, calculateIndex(P) {
|
|
1472
1472
|
return A.virtual.value ? e.by === null ? A.virtual.value.options.indexOf(P) : A.virtual.value.options.findIndex((I) => A.compare(I, P)) : u.value.findIndex((I) => A.compare(I.dataRef.value, P));
|
|
1473
1473
|
}, defaultValue: T(() => e.defaultValue), nullable: m, immediate: T(() => !1), virtual: T(() => null), inputRef: i, labelRef: o, buttonRef: l, optionsRef: s, disabled: T(() => e.disabled), options: u, change(P) {
|
|
1474
|
-
|
|
1474
|
+
b(P);
|
|
1475
1475
|
}, activeOptionIndex: T(() => {
|
|
1476
1476
|
if (h.value && f.value === null && (A.virtual.value ? A.virtual.value.options.length > 0 : u.value.length > 0)) {
|
|
1477
1477
|
if (A.virtual.value) {
|
|
@@ -1720,10 +1720,10 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1720
1720
|
break;
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function y(x) {
|
|
1724
1724
|
t("change", x), l.nullable.value && l.mode.value === 0 && x.target.value === "" && u(), l.openCombobox();
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function b(x) {
|
|
1727
1727
|
var k, C, A;
|
|
1728
1728
|
let M = (k = x.relatedTarget) != null ? k : yt.find((P) => P !== x.currentTarget);
|
|
1729
1729
|
if (d.value = !1, !((C = F(l.optionsRef)) != null && C.contains(M)) && !((A = F(l.buttonRef)) != null && A.contains(M)) && l.comboboxState.value === 0) return x.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
|
|
@@ -1741,7 +1741,7 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1741
1741
|
});
|
|
1742
1742
|
return () => {
|
|
1743
1743
|
var x, k, C, A, M, P, I;
|
|
1744
|
-
let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: Y, ...X } = e, K = { "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 : (C = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : C.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:
|
|
1744
|
+
let L = { open: l.comboboxState.value === 0 }, { displayValue: $, onChange: Y, ...X } = e, K = { "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 : (C = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : C.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: y, onFocus: S, onBlur: b, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: p.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
|
|
1745
1745
|
return pe({ ourProps: K, theirProps: X, slot: L, attrs: n, slots: r, features: Xe.RenderStrategy | Xe.Static, name: "ComboboxInput" });
|
|
1746
1746
|
};
|
|
1747
1747
|
} }), 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 }) {
|
|
@@ -1769,46 +1769,46 @@ let vu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1769
1769
|
let a = Qt("ComboboxOption"), o = `headlessui-combobox-option-${Te()}`, i = E(null), l = T(() => e.disabled);
|
|
1770
1770
|
r({ el: i, $el: i });
|
|
1771
1771
|
let s = T(() => {
|
|
1772
|
-
var
|
|
1773
|
-
return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((
|
|
1772
|
+
var b;
|
|
1773
|
+
return a.virtual.value ? a.activeOptionIndex.value === a.calculateIndex(e.value) : a.activeOptionIndex.value === null ? !1 : ((b = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : b.id) === o;
|
|
1774
1774
|
}), d = T(() => a.isSelected(e.value)), u = ke(si, null), f = T(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: T(() => e.order) }));
|
|
1775
1775
|
ne(() => a.registerOption(o, f)), Ie(() => a.unregisterOption(o, s.value)), Ee(() => {
|
|
1776
|
-
let
|
|
1777
|
-
|
|
1776
|
+
let b = F(i);
|
|
1777
|
+
b && u?.value.measureElement(b);
|
|
1778
1778
|
}), Ee(() => {
|
|
1779
1779
|
a.comboboxState.value === 0 && s.value && (a.virtual.value || a.activationTrigger.value !== 0 && Se(() => {
|
|
1780
|
-
var
|
|
1781
|
-
return (S = (
|
|
1780
|
+
var b, S;
|
|
1781
|
+
return (S = (b = F(i)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : S.call(b, { block: "nearest" });
|
|
1782
1782
|
}));
|
|
1783
1783
|
});
|
|
1784
|
-
function c(
|
|
1785
|
-
|
|
1784
|
+
function c(b) {
|
|
1785
|
+
b.preventDefault(), b.button === ai.Left && (l.value || (a.selectOption(o), Ko() || requestAnimationFrame(() => {
|
|
1786
1786
|
var S;
|
|
1787
1787
|
return (S = F(a.inputRef)) == null ? void 0 : S.focus({ preventScroll: !0 });
|
|
1788
1788
|
}), a.mode.value === 0 && a.closeCombobox()));
|
|
1789
1789
|
}
|
|
1790
1790
|
function h() {
|
|
1791
|
-
var
|
|
1792
|
-
if (e.disabled || (
|
|
1791
|
+
var b;
|
|
1792
|
+
if (e.disabled || (b = a.virtual.value) != null && b.disabled(e.value)) return a.goToOption(be.Nothing);
|
|
1793
1793
|
let S = a.calculateIndex(e.value);
|
|
1794
1794
|
a.goToOption(be.Specific, S);
|
|
1795
1795
|
}
|
|
1796
1796
|
let g = Zo();
|
|
1797
|
-
function v(
|
|
1798
|
-
g.update(
|
|
1797
|
+
function v(b) {
|
|
1798
|
+
g.update(b);
|
|
1799
1799
|
}
|
|
1800
|
-
function m(
|
|
1800
|
+
function m(b) {
|
|
1801
1801
|
var S;
|
|
1802
|
-
if (!g.wasMoved(
|
|
1802
|
+
if (!g.wasMoved(b) || e.disabled || (S = a.virtual.value) != null && S.disabled(e.value) || s.value) return;
|
|
1803
1803
|
let p = a.calculateIndex(e.value);
|
|
1804
1804
|
a.goToOption(be.Specific, p, 0);
|
|
1805
1805
|
}
|
|
1806
|
-
function b
|
|
1806
|
+
function y(b) {
|
|
1807
1807
|
var S;
|
|
1808
|
-
g.wasMoved(
|
|
1808
|
+
g.wasMoved(b) && (e.disabled || (S = a.virtual.value) != null && S.disabled(e.value) || s.value && (a.optionsPropsRef.value.hold || a.goToOption(be.Nothing)));
|
|
1809
1809
|
}
|
|
1810
1810
|
return () => {
|
|
1811
|
-
let { disabled:
|
|
1811
|
+
let { disabled: b } = e, S = { active: s.value, selected: d.value, disabled: b }, p = { id: o, ref: i, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: c, onFocus: h, onPointerenter: v, onMouseenter: v, onPointermove: m, onMousemove: m, onPointerleave: y, onMouseleave: y }, x = Xt(e, ["order", "value"]);
|
|
1812
1812
|
return pe({ ourProps: p, theirProps: x, slot: S, attrs: n, slots: t, name: "ComboboxOption" });
|
|
1813
1813
|
};
|
|
1814
1814
|
} });
|
|
@@ -1867,8 +1867,8 @@ let hn = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1867
1867
|
v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (fi(g, v) || (u.value ? Ne(F(a), Ce(s.value, { [xn.Forwards]: () => xe.Next, [xn.Backwards]: () => xe.Previous }) | xe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Et(h.target)));
|
|
1868
1868
|
}
|
|
1869
1869
|
return () => {
|
|
1870
|
-
let h = {}, g = { ref: a, onKeydown: f, onFocusout: c }, { features: v, initialFocus: m, containers:
|
|
1871
|
-
return ue(fe, [!!(v & 4) && ue(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Ut.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...
|
|
1870
|
+
let h = {}, g = { ref: a, onKeydown: f, onFocusout: c }, { features: v, initialFocus: m, containers: y, ...b } = e;
|
|
1871
|
+
return ue(fe, [!!(v & 4) && ue(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Ut.Focusable }), pe({ ourProps: g, theirProps: { ...t, ...b }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(v & 4) && ue(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Ut.Focusable })]);
|
|
1872
1872
|
};
|
|
1873
1873
|
} }), { features: ci });
|
|
1874
1874
|
function yu(e) {
|
|
@@ -2227,15 +2227,15 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheri
|
|
|
2227
2227
|
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")), f = E(0), c = Fn(), h = T(() => e.open === Kn && c !== null ? (c.value & Oe.Open) === Oe.Open : e.open), g = E(null), v = T(() => je(g));
|
|
2228
2228
|
if (a({ el: g, $el: g }), !(e.open !== Kn || c !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2229
2229
|
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}`);
|
|
2230
|
-
let m = T(() => s.value && h.value ? 0 : 1),
|
|
2230
|
+
let m = T(() => s.value && h.value ? 0 : 1), y = T(() => m.value === 0), b = T(() => f.value > 1), S = ke(Xr, null) !== null, [p, x] = Fu(), { resolveContainers: k, mainTreeNodeRef: C, MainTreeNode: A } = Pu({ portals: p, defaultContainers: [T(() => {
|
|
2231
2231
|
var te;
|
|
2232
2232
|
return (te = ae.panelRef.value) != null ? te : g.value;
|
|
2233
|
-
})] }), M = T(() =>
|
|
2233
|
+
})] }), M = T(() => b.value ? "parent" : "leaf"), P = T(() => c !== null ? (c.value & Oe.Closing) === Oe.Closing : !1), I = T(() => S || P.value ? !1 : y.value), L = T(() => {
|
|
2234
2234
|
var te, ie, we;
|
|
2235
2235
|
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(C)) && me instanceof HTMLElement)) != null ? we : null;
|
|
2236
2236
|
});
|
|
2237
2237
|
Qa(L, I);
|
|
2238
|
-
let $ = T(() =>
|
|
2238
|
+
let $ = T(() => b.value ? !0 : y.value), Y = T(() => {
|
|
2239
2239
|
var te, ie, we;
|
|
2240
2240
|
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(C)) && me instanceof HTMLElement)) != null ? we : null;
|
|
2241
2241
|
});
|
|
@@ -2248,11 +2248,11 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheri
|
|
|
2248
2248
|
t("close", !1);
|
|
2249
2249
|
} };
|
|
2250
2250
|
De(Xr, ae);
|
|
2251
|
-
let re = T(() => !(!
|
|
2251
|
+
let re = T(() => !(!y.value || b.value));
|
|
2252
2252
|
ua(k, (te, ie) => {
|
|
2253
2253
|
te.preventDefault(), ae.close(), Se(() => ie?.focus());
|
|
2254
2254
|
}, re);
|
|
2255
|
-
let de = T(() => !(
|
|
2255
|
+
let de = T(() => !(b.value || m.value !== 0));
|
|
2256
2256
|
ui((i = v.value) == null ? void 0 : i.defaultView, "keydown", (te) => {
|
|
2257
2257
|
de.value && (te.defaultPrevented || te.key === Z.Escape && (te.preventDefault(), te.stopPropagation(), ae.close()));
|
|
2258
2258
|
});
|
|
@@ -2273,7 +2273,7 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Nu = R({ name: "Dialog", inheri
|
|
|
2273
2273
|
we.observe(ie), te(() => we.disconnect());
|
|
2274
2274
|
}), () => {
|
|
2275
2275
|
let { open: te, initialFocus: ie, ...we } = e, me = { ...n, ref: g, id: l, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": K.value, "aria-describedby": X.value }, Ae = { open: m.value === 0 };
|
|
2276
|
-
return ue(qr, { force: !0 }, () => [ue(hi, () => ue(Vu, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: k, features:
|
|
2276
|
+
return ue(qr, { force: !0 }, () => [ue(hi, () => ue(Vu, { target: g.value }, () => ue(qr, { force: !1 }, () => ue(hn, { initialFocus: ie, containers: k, features: y.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => ue(x, {}, () => pe({ ourProps: me, theirProps: { ...we, ...n }, slot: Ae, attrs: n, slots: r, visible: m.value === 0, features: Xe.RenderStrategy | Xe.Static, name: "Dialog" })))))), ue(A)]);
|
|
2277
2277
|
};
|
|
2278
2278
|
} });
|
|
2279
2279
|
R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -2379,7 +2379,7 @@ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2379
2379
|
let f = { menuState: r, buttonRef: a, itemsRef: o, items: i, searchQuery: l, activeItemIndex: s, activationTrigger: d, closeMenu: () => {
|
|
2380
2380
|
r.value = 1, s.value = null;
|
|
2381
2381
|
}, openMenu: () => r.value = 0, goToItem(c, h, g) {
|
|
2382
|
-
let v = u(), m = Hr(c === be.Specific ? { focus: be.Specific, id: h } : { focus: c }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (
|
|
2382
|
+
let v = u(), m = Hr(c === be.Specific ? { focus: be.Specific, id: h } : { focus: c }, { resolveItems: () => v.items, resolveActiveIndex: () => v.activeItemIndex, resolveId: (y) => y.id, resolveDisabled: (y) => y.dataRef.disabled });
|
|
2383
2383
|
l.value = "", s.value = m, d.value = g ?? 1, i.value = v.items;
|
|
2384
2384
|
}, search(c) {
|
|
2385
2385
|
let h = l.value !== "" ? 0 : 1;
|
|
@@ -2507,12 +2507,12 @@ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2507
2507
|
}, domRef: l }));
|
|
2508
2508
|
ne(() => i.registerItem(o, u)), Ie(() => i.unregisterItem(o)), Ee(() => {
|
|
2509
2509
|
i.menuState.value === 0 && s.value && i.activationTrigger.value !== 0 && Se(() => {
|
|
2510
|
-
var
|
|
2511
|
-
return (
|
|
2510
|
+
var y, b;
|
|
2511
|
+
return (b = (y = F(l)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : b.call(y, { block: "nearest" });
|
|
2512
2512
|
});
|
|
2513
2513
|
});
|
|
2514
|
-
function f(
|
|
2515
|
-
if (e.disabled) return
|
|
2514
|
+
function f(y) {
|
|
2515
|
+
if (e.disabled) return y.preventDefault();
|
|
2516
2516
|
i.closeMenu(), Qo(F(i.buttonRef));
|
|
2517
2517
|
}
|
|
2518
2518
|
function c() {
|
|
@@ -2520,18 +2520,18 @@ let Yu = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2520
2520
|
i.goToItem(be.Specific, o);
|
|
2521
2521
|
}
|
|
2522
2522
|
let h = Zo();
|
|
2523
|
-
function g(
|
|
2524
|
-
h.update(
|
|
2523
|
+
function g(y) {
|
|
2524
|
+
h.update(y);
|
|
2525
2525
|
}
|
|
2526
|
-
function v(
|
|
2527
|
-
h.wasMoved(
|
|
2526
|
+
function v(y) {
|
|
2527
|
+
h.wasMoved(y) && (e.disabled || s.value || i.goToItem(be.Specific, o, 0));
|
|
2528
2528
|
}
|
|
2529
|
-
function m(
|
|
2530
|
-
h.wasMoved(
|
|
2529
|
+
function m(y) {
|
|
2530
|
+
h.wasMoved(y) && (e.disabled || s.value && i.goToItem(be.Nothing));
|
|
2531
2531
|
}
|
|
2532
2532
|
return () => {
|
|
2533
|
-
let { disabled:
|
|
2534
|
-
return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex:
|
|
2533
|
+
let { disabled: y, ...b } = e, S = { active: s.value, disabled: y, close: i.closeMenu };
|
|
2534
|
+
return pe({ ourProps: { id: o, ref: l, role: "menuitem", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, onClick: f, onFocus: c, onPointerenter: g, onMouseenter: g, onPointermove: v, onMousemove: v, onPointerleave: m, onMouseleave: m }, theirProps: { ...n, ...b }, slot: S, attrs: n, slots: t, name: "MenuItem" });
|
|
2535
2535
|
};
|
|
2536
2536
|
} }), yi = /* @__PURE__ */ Symbol("LabelContext");
|
|
2537
2537
|
function Ai() {
|
|
@@ -2576,22 +2576,22 @@ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2576
2576
|
var o;
|
|
2577
2577
|
let i = (o = e.id) != null ? o : `headlessui-radiogroup-${Te()}`, l = E(null), s = E([]), d = wi({ name: "RadioGroupLabel" }), u = va({ name: "RadioGroupDescription" });
|
|
2578
2578
|
a({ el: l, $el: l });
|
|
2579
|
-
let [f, c] = Yo(T(() => e.modelValue), (m) => t("update:modelValue", m), T(() => e.defaultValue)), h = { options: s, value: f, disabled: T(() => e.disabled), firstOption: T(() => s.value.find((m) => !m.propsRef.disabled)), containsCheckedOption: T(() => s.value.some((m) => h.compare(Le(m.propsRef.value), Le(e.modelValue)))), compare(m,
|
|
2579
|
+
let [f, c] = Yo(T(() => e.modelValue), (m) => t("update:modelValue", m), T(() => e.defaultValue)), h = { options: s, value: f, disabled: T(() => e.disabled), firstOption: T(() => s.value.find((m) => !m.propsRef.disabled)), containsCheckedOption: T(() => s.value.some((m) => h.compare(Le(m.propsRef.value), Le(e.modelValue)))), compare(m, y) {
|
|
2580
2580
|
if (typeof e.by == "string") {
|
|
2581
|
-
let
|
|
2582
|
-
return m?.[
|
|
2581
|
+
let b = e.by;
|
|
2582
|
+
return m?.[b] === y?.[b];
|
|
2583
2583
|
}
|
|
2584
|
-
return e.by(m,
|
|
2584
|
+
return e.by(m, y);
|
|
2585
2585
|
}, change(m) {
|
|
2586
|
-
var
|
|
2586
|
+
var y;
|
|
2587
2587
|
if (e.disabled || h.compare(Le(f.value), Le(m))) return !1;
|
|
2588
|
-
let
|
|
2589
|
-
return
|
|
2588
|
+
let b = (y = s.value.find((S) => h.compare(Le(S.propsRef.value), Le(m)))) == null ? void 0 : y.propsRef;
|
|
2589
|
+
return b != null && b.disabled ? !1 : (c(m), !0);
|
|
2590
2590
|
}, registerOption(m) {
|
|
2591
|
-
s.value.push(m), s.value = bt(s.value, (
|
|
2591
|
+
s.value.push(m), s.value = bt(s.value, (y) => y.element);
|
|
2592
2592
|
}, unregisterOption(m) {
|
|
2593
|
-
let
|
|
2594
|
-
|
|
2593
|
+
let y = s.value.findIndex((b) => b.id === m);
|
|
2594
|
+
y !== -1 && s.value.splice(y, 1);
|
|
2595
2595
|
} };
|
|
2596
2596
|
De(xi, h), ca({ container: T(() => F(l)), accept(m) {
|
|
2597
2597
|
return m.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : m.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
@@ -2600,39 +2600,39 @@ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2600
2600
|
} });
|
|
2601
2601
|
function g(m) {
|
|
2602
2602
|
if (!l.value || !l.value.contains(m.target)) return;
|
|
2603
|
-
let
|
|
2603
|
+
let y = s.value.filter((b) => b.propsRef.disabled === !1).map((b) => b.element);
|
|
2604
2604
|
switch (m.key) {
|
|
2605
2605
|
case Z.Enter:
|
|
2606
2606
|
lu(m.currentTarget);
|
|
2607
2607
|
break;
|
|
2608
2608
|
case Z.ArrowLeft:
|
|
2609
2609
|
case Z.ArrowUp:
|
|
2610
|
-
if (m.preventDefault(), m.stopPropagation(), Ne(
|
|
2611
|
-
let
|
|
2610
|
+
if (m.preventDefault(), m.stopPropagation(), Ne(y, xe.Previous | xe.WrapAround) === Ot.Success) {
|
|
2611
|
+
let b = s.value.find((S) => {
|
|
2612
2612
|
var p;
|
|
2613
2613
|
return S.element === ((p = je(l)) == null ? void 0 : p.activeElement);
|
|
2614
2614
|
});
|
|
2615
|
-
|
|
2615
|
+
b && h.change(b.propsRef.value);
|
|
2616
2616
|
}
|
|
2617
2617
|
break;
|
|
2618
2618
|
case Z.ArrowRight:
|
|
2619
2619
|
case Z.ArrowDown:
|
|
2620
|
-
if (m.preventDefault(), m.stopPropagation(), Ne(
|
|
2621
|
-
let
|
|
2620
|
+
if (m.preventDefault(), m.stopPropagation(), Ne(y, xe.Next | xe.WrapAround) === Ot.Success) {
|
|
2621
|
+
let b = s.value.find((S) => {
|
|
2622
2622
|
var p;
|
|
2623
2623
|
return S.element === ((p = je(S.element)) == null ? void 0 : p.activeElement);
|
|
2624
2624
|
});
|
|
2625
|
-
|
|
2625
|
+
b && h.change(b.propsRef.value);
|
|
2626
2626
|
}
|
|
2627
2627
|
break;
|
|
2628
2628
|
case Z.Space:
|
|
2629
2629
|
{
|
|
2630
2630
|
m.preventDefault(), m.stopPropagation();
|
|
2631
|
-
let
|
|
2631
|
+
let b = s.value.find((S) => {
|
|
2632
2632
|
var p;
|
|
2633
2633
|
return S.element === ((p = je(S.element)) == null ? void 0 : p.activeElement);
|
|
2634
2634
|
});
|
|
2635
|
-
|
|
2635
|
+
b && h.change(b.propsRef.value);
|
|
2636
2636
|
}
|
|
2637
2637
|
break;
|
|
2638
2638
|
}
|
|
@@ -2648,13 +2648,13 @@ let Ju = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2648
2648
|
h.change(e.defaultValue);
|
|
2649
2649
|
}
|
|
2650
2650
|
return v.value.addEventListener("reset", m), () => {
|
|
2651
|
-
var
|
|
2652
|
-
(
|
|
2651
|
+
var y;
|
|
2652
|
+
(y = v.value) == null || y.removeEventListener("reset", m);
|
|
2653
2653
|
};
|
|
2654
2654
|
}, { immediate: !0 });
|
|
2655
2655
|
}), () => {
|
|
2656
|
-
let { disabled: m, name:
|
|
2657
|
-
return ue(fe, [...
|
|
2656
|
+
let { disabled: m, name: y, form: b, ...S } = e, p = { ref: l, id: i, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: g };
|
|
2657
|
+
return ue(fe, [...y != null && f.value != null ? pa({ [y]: f.value }).map(([x, k]) => ue(Yt, ni({ features: Ut.Hidden, key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: b, disabled: m, name: x, value: k }))) : [], pe({ ourProps: p, theirProps: { ...n, ...Xt(S, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
|
|
2658
2658
|
};
|
|
2659
2659
|
} });
|
|
2660
2660
|
var Zu = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(Zu || {});
|
|
@@ -2668,18 +2668,18 @@ let ed = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
|
|
|
2668
2668
|
var p;
|
|
2669
2669
|
return ((p = i.firstOption.value) == null ? void 0 : p.id) === o;
|
|
2670
2670
|
}), g = T(() => i.disabled.value || e.disabled), v = T(() => i.compare(Le(i.value.value), Le(e.value))), m = T(() => g.value ? -1 : v.value || !i.containsCheckedOption.value && h.value ? 0 : -1);
|
|
2671
|
-
function
|
|
2671
|
+
function y() {
|
|
2672
2672
|
var p;
|
|
2673
2673
|
i.change(e.value) && (f.value |= 2, (p = F(d)) == null || p.focus());
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function b() {
|
|
2676
2676
|
f.value |= 2;
|
|
2677
2677
|
}
|
|
2678
2678
|
function S() {
|
|
2679
2679
|
f.value &= -3;
|
|
2680
2680
|
}
|
|
2681
2681
|
return () => {
|
|
2682
|
-
let { value: p, disabled: x, ...k } = e, C = { checked: v.value, disabled: g.value, active: !!(f.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 :
|
|
2682
|
+
let { value: p, disabled: x, ...k } = e, C = { checked: v.value, disabled: g.value, active: !!(f.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : y, onFocus: g.value ? void 0 : b, onBlur: g.value ? void 0 : S };
|
|
2683
2683
|
return pe({ ourProps: A, theirProps: k, slot: C, attrs: t, slots: n, name: "RadioGroupOption" });
|
|
2684
2684
|
};
|
|
2685
2685
|
} }), td = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
|
|
@@ -2717,18 +2717,18 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2717
2717
|
let o = E((a = e.selectedIndex) != null ? a : e.defaultIndex), i = E([]), l = E([]), s = T(() => e.selectedIndex !== null), d = T(() => s.value ? e.selectedIndex : o.value);
|
|
2718
2718
|
function u(v) {
|
|
2719
2719
|
var m;
|
|
2720
|
-
let
|
|
2720
|
+
let y = bt(f.tabs.value, F), b = bt(f.panels.value, F), S = y.filter((p) => {
|
|
2721
2721
|
var x;
|
|
2722
2722
|
return !((x = F(p)) != null && x.hasAttribute("disabled"));
|
|
2723
2723
|
});
|
|
2724
|
-
if (v < 0 || v >
|
|
2725
|
-
let p = Ce(o.value === null ? 0 : Math.sign(v - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(v), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), x = Ce(p, { 0: () =>
|
|
2726
|
-
x !== -1 && (o.value = x), f.tabs.value =
|
|
2724
|
+
if (v < 0 || v > y.length - 1) {
|
|
2725
|
+
let p = Ce(o.value === null ? 0 : Math.sign(v - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(v), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), x = Ce(p, { 0: () => y.indexOf(S[0]), 1: () => y.indexOf(S[S.length - 1]) });
|
|
2726
|
+
x !== -1 && (o.value = x), f.tabs.value = y, f.panels.value = b;
|
|
2727
2727
|
} else {
|
|
2728
|
-
let p =
|
|
2728
|
+
let p = y.slice(0, v), x = [...y.slice(v), ...p].find((C) => S.includes(C));
|
|
2729
2729
|
if (!x) return;
|
|
2730
|
-
let k = (m =
|
|
2731
|
-
k === -1 && (k = f.selectedIndex.value), o.value = k, f.tabs.value =
|
|
2730
|
+
let k = (m = y.indexOf(x)) != null ? m : f.selectedIndex.value;
|
|
2731
|
+
k === -1 && (k = f.selectedIndex.value), o.value = k, f.tabs.value = y, f.panels.value = b;
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
2734
|
let f = { selectedIndex: T(() => {
|
|
@@ -2739,10 +2739,10 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2739
2739
|
}, registerTab(v) {
|
|
2740
2740
|
var m;
|
|
2741
2741
|
if (i.value.includes(v)) return;
|
|
2742
|
-
let
|
|
2742
|
+
let y = i.value[o.value];
|
|
2743
2743
|
if (i.value.push(v), i.value = bt(i.value, F), !s.value) {
|
|
2744
|
-
let
|
|
2745
|
-
|
|
2744
|
+
let b = (m = i.value.indexOf(y)) != null ? m : o.value;
|
|
2745
|
+
b !== -1 && (o.value = b);
|
|
2746
2746
|
}
|
|
2747
2747
|
}, unregisterTab(v) {
|
|
2748
2748
|
let m = i.value.indexOf(v);
|
|
@@ -2767,13 +2767,13 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2767
2767
|
}), Ee(() => {
|
|
2768
2768
|
if (!s.value || d.value == null || f.tabs.value.length <= 0) return;
|
|
2769
2769
|
let v = bt(f.tabs.value, F);
|
|
2770
|
-
v.some((m,
|
|
2770
|
+
v.some((m, y) => F(f.tabs.value[y]) !== F(m)) && f.setSelectedIndex(v.findIndex((m) => F(m) === F(f.tabs.value[d.value])));
|
|
2771
2771
|
}), () => {
|
|
2772
2772
|
let v = { selectedIndex: o.value };
|
|
2773
2773
|
return ue(fe, [i.value.length <= 0 && ue(td, { onFocus: () => {
|
|
2774
2774
|
for (let m of i.value) {
|
|
2775
|
-
let
|
|
2776
|
-
if (
|
|
2775
|
+
let y = F(m);
|
|
2776
|
+
if (y?.tabIndex === 0) return y.focus(), !0;
|
|
2777
2777
|
}
|
|
2778
2778
|
return !1;
|
|
2779
2779
|
} }), pe({ theirProps: { ...n, ...Xt(e, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: v, slots: t, attrs: n, name: "TabGroup" })]);
|
|
@@ -2790,57 +2790,57 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), ad = R({ name: "TabGroup", em
|
|
|
2790
2790
|
r({ el: l, $el: l }), ne(() => i.registerTab(l)), Ie(() => i.unregisterTab(l));
|
|
2791
2791
|
let s = ke(ma), d = T(() => {
|
|
2792
2792
|
if (s.value) {
|
|
2793
|
-
let
|
|
2794
|
-
return
|
|
2793
|
+
let b = s.value.tabs.indexOf(o);
|
|
2794
|
+
return b === -1 ? s.value.tabs.push(o) - 1 : b;
|
|
2795
2795
|
}
|
|
2796
2796
|
return -1;
|
|
2797
2797
|
}), u = T(() => {
|
|
2798
|
-
let
|
|
2799
|
-
return
|
|
2798
|
+
let b = i.tabs.value.indexOf(l);
|
|
2799
|
+
return b === -1 ? d.value : b;
|
|
2800
2800
|
}), f = T(() => u.value === i.selectedIndex.value);
|
|
2801
|
-
function c(
|
|
2801
|
+
function c(b) {
|
|
2802
2802
|
var S;
|
|
2803
|
-
let p =
|
|
2803
|
+
let p = b();
|
|
2804
2804
|
if (p === Ot.Success && i.activation.value === "auto") {
|
|
2805
2805
|
let x = (S = je(l)) == null ? void 0 : S.activeElement, k = i.tabs.value.findIndex((C) => F(C) === x);
|
|
2806
2806
|
k !== -1 && i.setSelectedIndex(k);
|
|
2807
2807
|
}
|
|
2808
2808
|
return p;
|
|
2809
2809
|
}
|
|
2810
|
-
function h(
|
|
2810
|
+
function h(b) {
|
|
2811
2811
|
let S = i.tabs.value.map((p) => F(p)).filter(Boolean);
|
|
2812
|
-
if (
|
|
2813
|
-
|
|
2812
|
+
if (b.key === Z.Space || b.key === Z.Enter) {
|
|
2813
|
+
b.preventDefault(), b.stopPropagation(), i.setSelectedIndex(u.value);
|
|
2814
2814
|
return;
|
|
2815
2815
|
}
|
|
2816
|
-
switch (
|
|
2816
|
+
switch (b.key) {
|
|
2817
2817
|
case Z.Home:
|
|
2818
2818
|
case Z.PageUp:
|
|
2819
|
-
return
|
|
2819
|
+
return b.preventDefault(), b.stopPropagation(), c(() => Ne(S, xe.First));
|
|
2820
2820
|
case Z.End:
|
|
2821
2821
|
case Z.PageDown:
|
|
2822
|
-
return
|
|
2822
|
+
return b.preventDefault(), b.stopPropagation(), c(() => Ne(S, xe.Last));
|
|
2823
2823
|
}
|
|
2824
2824
|
if (c(() => Ce(i.orientation.value, { vertical() {
|
|
2825
|
-
return
|
|
2825
|
+
return b.key === Z.ArrowUp ? Ne(S, xe.Previous | xe.WrapAround) : b.key === Z.ArrowDown ? Ne(S, xe.Next | xe.WrapAround) : Ot.Error;
|
|
2826
2826
|
}, horizontal() {
|
|
2827
|
-
return
|
|
2828
|
-
} })) === Ot.Success) return
|
|
2827
|
+
return b.key === Z.ArrowLeft ? Ne(S, xe.Previous | xe.WrapAround) : b.key === Z.ArrowRight ? Ne(S, xe.Next | xe.WrapAround) : Ot.Error;
|
|
2828
|
+
} })) === Ot.Success) return b.preventDefault();
|
|
2829
2829
|
}
|
|
2830
2830
|
let g = E(!1);
|
|
2831
2831
|
function v() {
|
|
2832
|
-
var
|
|
2833
|
-
g.value || (g.value = !0, !e.disabled && ((
|
|
2832
|
+
var b;
|
|
2833
|
+
g.value || (g.value = !0, !e.disabled && ((b = F(l)) == null || b.focus({ preventScroll: !0 }), i.setSelectedIndex(u.value), hr(() => {
|
|
2834
2834
|
g.value = !1;
|
|
2835
2835
|
})));
|
|
2836
2836
|
}
|
|
2837
|
-
function m(
|
|
2838
|
-
|
|
2837
|
+
function m(b) {
|
|
2838
|
+
b.preventDefault();
|
|
2839
2839
|
}
|
|
2840
|
-
let
|
|
2840
|
+
let y = da(T(() => ({ as: e.as, type: t.type })), l);
|
|
2841
2841
|
return () => {
|
|
2842
|
-
var
|
|
2843
|
-
let p = { selected: f.value, disabled: (
|
|
2842
|
+
var b, S;
|
|
2843
|
+
let p = { selected: f.value, disabled: (b = e.disabled) != null ? b : !1 }, { ...x } = e, k = { ref: l, onKeydown: h, onMousedown: m, onClick: v, id: o, role: "tab", type: y.value, "aria-controls": (S = F(i.panels.value[u.value])) == null ? void 0 : S.id, "aria-selected": f.value, tabIndex: f.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
|
|
2844
2844
|
return pe({ ourProps: k, theirProps: x, slot: p, attrs: t, slots: n, name: "Tab" });
|
|
2845
2845
|
};
|
|
2846
2846
|
} }), ld = R({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
@@ -2954,19 +2954,19 @@ let Ci = Xe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2954
2954
|
if (!fd() && au()) return () => ue(ba, { ...e, onBeforeEnter: i, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: d }, r);
|
|
2955
2955
|
let u = E(null), f = T(() => e.unmount ? Ct.Unmount : Ct.Hidden);
|
|
2956
2956
|
a({ el: u, $el: u });
|
|
2957
|
-
let { show: c, appear: h } = pd(), { register: g, unregister: v } = vd(), m = E(c.value ? "visible" : "hidden"),
|
|
2958
|
-
!S.value && m.value !== "hidden" && (m.value = "hidden", v(
|
|
2957
|
+
let { show: c, appear: h } = pd(), { register: g, unregister: v } = vd(), m = E(c.value ? "visible" : "hidden"), y = { value: !0 }, b = Te(), S = { value: !1 }, p = Oi(() => {
|
|
2958
|
+
!S.value && m.value !== "hidden" && (m.value = "hidden", v(b), d());
|
|
2959
2959
|
});
|
|
2960
2960
|
ne(() => {
|
|
2961
|
-
let $ = g(
|
|
2961
|
+
let $ = g(b);
|
|
2962
2962
|
Ie($);
|
|
2963
2963
|
}), Ee(() => {
|
|
2964
|
-
if (f.value === Ct.Hidden &&
|
|
2964
|
+
if (f.value === Ct.Hidden && b) {
|
|
2965
2965
|
if (c.value && m.value !== "visible") {
|
|
2966
2966
|
m.value = "visible";
|
|
2967
2967
|
return;
|
|
2968
2968
|
}
|
|
2969
|
-
Ce(m.value, { hidden: () => v(
|
|
2969
|
+
Ce(m.value, { hidden: () => v(b), visible: () => g(b) });
|
|
2970
2970
|
}
|
|
2971
2971
|
});
|
|
2972
2972
|
let x = Vt(e.enter), k = Vt(e.enterFrom), C = Vt(e.enterTo), A = Vt(e.entered), M = Vt(e.leave), P = Vt(e.leaveFrom), I = Vt(e.leaveTo);
|
|
@@ -2979,16 +2979,16 @@ let Ci = Xe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2979
2979
|
});
|
|
2980
2980
|
});
|
|
2981
2981
|
function L($) {
|
|
2982
|
-
let Y =
|
|
2982
|
+
let Y = y.value && !h.value, X = F(u);
|
|
2983
2983
|
!X || !(X instanceof HTMLElement) || Y || (S.value = !0, c.value && i(), c.value || s(), $(c.value ? Za(X, x, k, C, A, (K) => {
|
|
2984
2984
|
S.value = !1, K === Qr.Finished && l();
|
|
2985
2985
|
}) : Za(X, M, P, I, A, (K) => {
|
|
2986
|
-
S.value = !1, K === Qr.Finished && (br(p) || (m.value = "hidden", v(
|
|
2986
|
+
S.value = !1, K === Qr.Finished && (br(p) || (m.value = "hidden", v(b), d()));
|
|
2987
2987
|
})));
|
|
2988
2988
|
}
|
|
2989
2989
|
return ne(() => {
|
|
2990
2990
|
ee([c], ($, Y, X) => {
|
|
2991
|
-
L(X),
|
|
2991
|
+
L(X), y.value = !1;
|
|
2992
2992
|
}, { immediate: !0 });
|
|
2993
2993
|
}), De(ga, p), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
|
|
2994
2994
|
let { appear: $, show: Y, enter: X, enterFrom: K, enterTo: ae, entered: re, leave: de, leaveFrom: ve, leaveTo: te, ...ie } = e, we = { ref: u }, me = { ...ie, ...h.value && c.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...k]) } : {} };
|
|
@@ -3319,7 +3319,7 @@ const hd = { class: "dropdown-trigger-button" }, gd = /* @__PURE__ */ R({
|
|
|
3319
3319
|
size: "sm",
|
|
3320
3320
|
variant: "text",
|
|
3321
3321
|
shape: "rounded",
|
|
3322
|
-
onClick: (
|
|
3322
|
+
onClick: (y) => i(m),
|
|
3323
3323
|
class: z({
|
|
3324
3324
|
"bg-primary text-white! px-2!": m === a.value
|
|
3325
3325
|
})
|
|
@@ -3421,24 +3421,24 @@ function eo(e, t, n = {}) {
|
|
|
3421
3421
|
trigger: Sn
|
|
3422
3422
|
} : Sn;
|
|
3423
3423
|
let s = !0;
|
|
3424
|
-
const d = (m) => ut(a).some((
|
|
3425
|
-
if (typeof
|
|
3424
|
+
const d = (m) => ut(a).some((y) => {
|
|
3425
|
+
if (typeof y == "string") return Array.from(r.document.querySelectorAll(y)).some((b) => b === m.target || m.composedPath().includes(b));
|
|
3426
3426
|
{
|
|
3427
|
-
const
|
|
3428
|
-
return
|
|
3427
|
+
const b = kn(y);
|
|
3428
|
+
return b && (m.target === b || m.composedPath().includes(b));
|
|
3429
3429
|
}
|
|
3430
3430
|
});
|
|
3431
3431
|
function u(m) {
|
|
3432
|
-
const
|
|
3433
|
-
return
|
|
3432
|
+
const y = ut(m);
|
|
3433
|
+
return y && y.$.subTree.shapeFlag === 16;
|
|
3434
3434
|
}
|
|
3435
|
-
function f(m,
|
|
3436
|
-
const
|
|
3437
|
-
return S == null || !Array.isArray(S) ? !1 : S.some((p) => p.el ===
|
|
3435
|
+
function f(m, y) {
|
|
3436
|
+
const b = ut(m), S = b.$.subTree && b.$.subTree.children;
|
|
3437
|
+
return S == null || !Array.isArray(S) ? !1 : S.some((p) => p.el === y.target || y.composedPath().includes(p.el));
|
|
3438
3438
|
}
|
|
3439
3439
|
const c = (m) => {
|
|
3440
|
-
const
|
|
3441
|
-
if (m.target != null && !(!(
|
|
3440
|
+
const y = kn(e);
|
|
3441
|
+
if (m.target != null && !(!(y instanceof Element) && u(e) && f(e, m)) && !(!y || y === m.target || m.composedPath().includes(y))) {
|
|
3442
3442
|
if ("detail" in m && m.detail === 0 && (s = !d(m)), !s) {
|
|
3443
3443
|
s = !0;
|
|
3444
3444
|
return;
|
|
@@ -3457,14 +3457,14 @@ function eo(e, t, n = {}) {
|
|
|
3457
3457
|
capture: o
|
|
3458
3458
|
}),
|
|
3459
3459
|
Br(r, "pointerdown", (m) => {
|
|
3460
|
-
const
|
|
3461
|
-
s = !d(m) && !!(
|
|
3460
|
+
const y = kn(e);
|
|
3461
|
+
s = !d(m) && !!(y && !m.composedPath().includes(y));
|
|
3462
3462
|
}, { passive: !0 }),
|
|
3463
3463
|
i && Br(r, "blur", (m) => {
|
|
3464
3464
|
setTimeout(() => {
|
|
3465
|
-
var
|
|
3466
|
-
const
|
|
3467
|
-
((
|
|
3465
|
+
var y;
|
|
3466
|
+
const b = kn(e);
|
|
3467
|
+
((y = r.document.activeElement) === null || y === void 0 ? void 0 : y.tagName) === "IFRAME" && !b?.contains(r.document.activeElement) && t(m);
|
|
3468
3468
|
}, 0);
|
|
3469
3469
|
}, { passive: !0 })
|
|
3470
3470
|
].filter(Boolean), v = () => g.forEach((m) => m());
|
|
@@ -3934,11 +3934,11 @@ function Vi(e, t) {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
function Oa(e, t) {
|
|
3936
3936
|
t === void 0 && (t = {});
|
|
3937
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? rc : o, l = n.rootBoundary, s = l === void 0 ? Ii : l, d = n.elementContext, u = d === void 0 ? bn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Fi(typeof g != "number" ? g : Vi(g, jn)), m = u === bn ? ac : bn,
|
|
3937
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? rc : o, l = n.rootBoundary, s = l === void 0 ? Ii : l, d = n.elementContext, u = d === void 0 ? bn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Fi(typeof g != "number" ? g : Vi(g, jn)), m = u === bn ? ac : bn, y = e.rects.popper, b = e.elements[c ? m : u], S = Sc(Tn(b) ? b : b.contextElement || Dt(e.elements.popper), i, s), p = an(e.elements.reference), x = Ri({
|
|
3938
3938
|
reference: p,
|
|
3939
|
-
element:
|
|
3939
|
+
element: y,
|
|
3940
3940
|
placement: a
|
|
3941
|
-
}), k = Jr(Object.assign({},
|
|
3941
|
+
}), k = Jr(Object.assign({}, y, x)), C = u === bn ? k : p, A = {
|
|
3942
3942
|
top: S.top - C.top + v.top,
|
|
3943
3943
|
bottom: C.bottom - S.bottom + v.bottom,
|
|
3944
3944
|
left: S.left - C.left + v.left,
|
|
@@ -3983,9 +3983,9 @@ function kc(e) {
|
|
|
3983
3983
|
styles: {}
|
|
3984
3984
|
}, f = [], c = !1, h = {
|
|
3985
3985
|
state: u,
|
|
3986
|
-
setOptions: function(
|
|
3987
|
-
var
|
|
3988
|
-
v(), u.options = Object.assign({}, o, u.options,
|
|
3986
|
+
setOptions: function(y) {
|
|
3987
|
+
var b = typeof y == "function" ? y(u.options) : y;
|
|
3988
|
+
v(), u.options = Object.assign({}, o, u.options, b), u.scrollParents = {
|
|
3989
3989
|
reference: Tn(l) ? On(l) : l.contextElement ? On(l.contextElement) : [],
|
|
3990
3990
|
popper: On(s)
|
|
3991
3991
|
};
|
|
@@ -4001,10 +4001,10 @@ function kc(e) {
|
|
|
4001
4001
|
// prefer the async Popper#update method
|
|
4002
4002
|
forceUpdate: function() {
|
|
4003
4003
|
if (!c) {
|
|
4004
|
-
var
|
|
4005
|
-
if (oo(
|
|
4004
|
+
var y = u.elements, b = y.reference, S = y.popper;
|
|
4005
|
+
if (oo(b, S)) {
|
|
4006
4006
|
u.rects = {
|
|
4007
|
-
reference: ec(
|
|
4007
|
+
reference: ec(b, Nn(S), u.options.strategy === "fixed"),
|
|
4008
4008
|
popper: xa(S)
|
|
4009
4009
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
|
|
4010
4010
|
return u.modifiersData[P.name] = Object.assign({}, P.data);
|
|
@@ -4043,11 +4043,11 @@ function kc(e) {
|
|
|
4043
4043
|
});
|
|
4044
4044
|
function g() {
|
|
4045
4045
|
u.orderedModifiers.forEach(function(m) {
|
|
4046
|
-
var
|
|
4046
|
+
var y = m.name, b = m.options, S = b === void 0 ? {} : b, p = m.effect;
|
|
4047
4047
|
if (typeof p == "function") {
|
|
4048
4048
|
var x = p({
|
|
4049
4049
|
state: u,
|
|
4050
|
-
name:
|
|
4050
|
+
name: y,
|
|
4051
4051
|
instance: h,
|
|
4052
4052
|
options: S
|
|
4053
4053
|
}), k = function() {
|
|
@@ -4114,19 +4114,19 @@ function Pc(e) {
|
|
|
4114
4114
|
};
|
|
4115
4115
|
}
|
|
4116
4116
|
function io(e) {
|
|
4117
|
-
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = u === !0 ? Pc(i) : typeof u == "function" ? u(i) : i, c = f.x, h = c === void 0 ? 0 : c, g = f.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"),
|
|
4117
|
+
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = u === !0 ? Pc(i) : typeof u == "function" ? u(i) : i, c = f.x, h = c === void 0 ? 0 : c, g = f.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), b = ze, S = qe, p = window;
|
|
4118
4118
|
if (d) {
|
|
4119
4119
|
var x = Nn(n), k = "clientHeight", C = "clientWidth";
|
|
4120
|
-
x === rt(n) && (x = Dt(n), At(x).position !== "static" && l === "absolute" && (k = "scrollHeight", C = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (S = tt, v -= x[k] - r.height, v *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (
|
|
4120
|
+
x === rt(n) && (x = Dt(n), At(x).position !== "static" && l === "absolute" && (k = "scrollHeight", C = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (S = tt, v -= x[k] - r.height, v *= s ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (b = nt, h -= x[C] - r.width, h *= s ? 1 : -1);
|
|
4121
4121
|
}
|
|
4122
4122
|
var A = Object.assign({
|
|
4123
4123
|
position: l
|
|
4124
4124
|
}, d && Bc);
|
|
4125
4125
|
if (s) {
|
|
4126
4126
|
var M;
|
|
4127
|
-
return Object.assign({}, A, (M = {}, M[S] =
|
|
4127
|
+
return Object.assign({}, A, (M = {}, M[S] = y ? "0" : "", M[b] = m ? "0" : "", M.transform = (p.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", M));
|
|
4128
4128
|
}
|
|
4129
|
-
return Object.assign({}, A, (t = {}, t[S] =
|
|
4129
|
+
return Object.assign({}, A, (t = {}, t[S] = y ? v + "px" : "", t[b] = m ? h + "px" : "", t.transform = "", t));
|
|
4130
4130
|
}
|
|
4131
4131
|
function Dc(e) {
|
|
4132
4132
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
|
|
@@ -4213,7 +4213,7 @@ function _c(e) {
|
|
|
4213
4213
|
rootBoundary: d,
|
|
4214
4214
|
padding: f,
|
|
4215
4215
|
altBoundary: u
|
|
4216
|
-
}),
|
|
4216
|
+
}), y = dt(t.placement), b = ln(t.placement), S = !b, p = ka(y), x = Vc(p), k = t.modifiersData.popperOffsets, C = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
4217
4217
|
placement: t.placement
|
|
4218
4218
|
})) : v, P = {
|
|
4219
4219
|
x: 0,
|
|
@@ -4221,7 +4221,7 @@ function _c(e) {
|
|
|
4221
4221
|
};
|
|
4222
4222
|
if (k) {
|
|
4223
4223
|
if (o || l) {
|
|
4224
|
-
var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width", Y = k[p], X = k[p] + m[I], K = k[p] - m[L], ae = h ? -A[$] / 2 : 0, re =
|
|
4224
|
+
var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width", Y = k[p], X = k[p] + m[I], K = k[p] - m[L], ae = h ? -A[$] / 2 : 0, re = b === on ? C[$] : A[$], de = b === on ? -A[$] : -C[$], ve = t.elements.arrow, te = h && ve ? xa(ve) : {
|
|
4225
4225
|
width: 0,
|
|
4226
4226
|
height: 0
|
|
4227
4227
|
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Li(), we = ie[I], me = ie[L], Ae = ir(0, C[$], te[$]), Be = S ? C[$] / 2 - ae - Ae - we - M : re - Ae - we - M, ot = S ? -C[$] / 2 + ae + Ae + me + M : de + Ae + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? p === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Je = t.modifiersData.offset ? t.modifiersData.offset[t.placement][p] : 0, mt = k[p] + Be - Je - it, Mt = k[p] + ot - Je;
|
|
@@ -4292,7 +4292,7 @@ function qc(e) {
|
|
|
4292
4292
|
function zc(e) {
|
|
4293
4293
|
var t = e.state, n = e.options, r = e.name;
|
|
4294
4294
|
if (!t.modifiersData[r]._skip) {
|
|
4295
|
-
for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement,
|
|
4295
|
+
for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, y = dt(m), b = y === m, S = s || (b || !g ? [lr(m)] : qc(m)), p = [m].concat(S).reduce(function(me, Ae) {
|
|
4296
4296
|
return me.concat(dt(Ae) === Sa ? Hc(t, {
|
|
4297
4297
|
placement: Ae,
|
|
4298
4298
|
boundary: u,
|
|
@@ -4379,7 +4379,7 @@ var Qc = {
|
|
|
4379
4379
|
function Kc(e) {
|
|
4380
4380
|
var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = dt(n.placement), s = ka(l), d = [ze, nt].indexOf(l) >= 0, u = d ? "height" : "width";
|
|
4381
4381
|
if (!(!o || !i)) {
|
|
4382
|
-
var f = Gc(a.padding, n), c = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s],
|
|
4382
|
+
var f = Gc(a.padding, n), c = xa(o), h = s === "y" ? qe : ze, g = s === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], y = Nn(o), b = y ? s === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, S = v / 2 - m / 2, p = f[h], x = b - c[u] - f[g], k = b / 2 - c[u] / 2 + S, C = ir(p, k, x), A = s;
|
|
4383
4383
|
n.modifiersData[r] = (t = {}, t[A] = C, t.centerOffset = C - k, t);
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
@@ -4412,9 +4412,9 @@ function ef({
|
|
|
4412
4412
|
popperInstance: null
|
|
4413
4413
|
}), d = (v) => {
|
|
4414
4414
|
var m;
|
|
4415
|
-
(m = s.popperInstance) === null || m === void 0 || m.setOptions((
|
|
4416
|
-
...
|
|
4417
|
-
modifiers: [...
|
|
4415
|
+
(m = s.popperInstance) === null || m === void 0 || m.setOptions((y) => ({
|
|
4416
|
+
...y,
|
|
4417
|
+
modifiers: [...y.modifiers, {
|
|
4418
4418
|
name: "eventListeners",
|
|
4419
4419
|
enabled: v
|
|
4420
4420
|
}]
|
|
@@ -4668,8 +4668,8 @@ var Ni = {
|
|
|
4668
4668
|
locked: g,
|
|
4669
4669
|
offsetDistance: v,
|
|
4670
4670
|
offsetSkid: m,
|
|
4671
|
-
openDelay:
|
|
4672
|
-
placement:
|
|
4671
|
+
openDelay: y,
|
|
4672
|
+
placement: b,
|
|
4673
4673
|
show: S
|
|
4674
4674
|
} = jo(n), {
|
|
4675
4675
|
isOpen: p,
|
|
@@ -4681,12 +4681,12 @@ var Ni = {
|
|
|
4681
4681
|
locked: g,
|
|
4682
4682
|
offsetDistance: v,
|
|
4683
4683
|
offsetSkid: m,
|
|
4684
|
-
placement:
|
|
4684
|
+
placement: b,
|
|
4685
4685
|
popperNode: o,
|
|
4686
4686
|
triggerNode: i
|
|
4687
4687
|
}), {
|
|
4688
4688
|
hasContent: C
|
|
4689
|
-
} = Gd(r, o, u), A = T(() => S.value !== null), M = T(() => c.value || !C.value), P = T(() => p.value && !M.value), I = T(() => !f.value && !A.value), L = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), $ = Mr.debounce(x,
|
|
4689
|
+
} = Gd(r, o, u), A = T(() => S.value !== null), M = T(() => c.value || !C.value), P = T(() => p.value && !M.value), I = T(() => !f.value && !A.value), L = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), $ = Mr.debounce(x, y.value), Y = Mr.debounce(k, d.value), X = async () => {
|
|
4690
4690
|
M.value || A.value || (Y.clear(), $());
|
|
4691
4691
|
}, K = async () => {
|
|
4692
4692
|
A.value || ($.clear(), Y());
|
|
@@ -5386,7 +5386,7 @@ var Cp = function(t, n) {
|
|
|
5386
5386
|
function Ep(e) {
|
|
5387
5387
|
var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, l = ct(n.placement), s = Ba(l), d = [_e, Ge].indexOf(l) >= 0, u = d ? "height" : "width";
|
|
5388
5388
|
if (!(!o || !i)) {
|
|
5389
|
-
var f = Cp(a.padding, n), c = Ta(o), h = s === "y" ? Ve : _e, g = s === "y" ? Qe : Ge, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s],
|
|
5389
|
+
var f = Cp(a.padding, n), c = Ta(o), h = s === "y" ? Ve : _e, g = s === "y" ? Qe : Ge, v = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u], m = i[s] - n.rects.reference[s], y = Hn(o), b = y ? s === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, S = v / 2 - m / 2, p = f[h], x = b - c[u] - f[g], k = b / 2 - c[u] / 2 + S, C = Cn(p, k, x), A = s;
|
|
5390
5390
|
n.modifiersData[r] = (t = {}, t[A] = C, t.centerOffset = C - k, t);
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
@@ -5420,7 +5420,7 @@ function Dp(e) {
|
|
|
5420
5420
|
};
|
|
5421
5421
|
}
|
|
5422
5422
|
function fo(e) {
|
|
5423
|
-
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = u === !0 ? Dp(i) : typeof u == "function" ? u(i) : i, h = c.x, g = h === void 0 ? 0 : h, v = c.y, m = v === void 0 ? 0 : v,
|
|
5423
|
+
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = u === !0 ? Dp(i) : typeof u == "function" ? u(i) : i, h = c.x, g = h === void 0 ? 0 : h, v = c.y, m = v === void 0 ? 0 : v, y = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), S = _e, p = Ve, x = window;
|
|
5424
5424
|
if (d) {
|
|
5425
5425
|
var k = Hn(n), C = "clientHeight", A = "clientWidth";
|
|
5426
5426
|
if (k === at(n) && (k = It(n), vt(k).position !== "static" && l === "absolute" && (C = "scrollHeight", A = "scrollWidth")), k = k, a === Ve || (a === _e || a === Ge) && o === Dn) {
|
|
@@ -5445,9 +5445,9 @@ function fo(e) {
|
|
|
5445
5445
|
}, d && Pp);
|
|
5446
5446
|
if (s) {
|
|
5447
5447
|
var L;
|
|
5448
|
-
return Object.assign({}, I, (L = {}, L[p] =
|
|
5448
|
+
return Object.assign({}, I, (L = {}, L[p] = b ? "0" : "", L[S] = y ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", L));
|
|
5449
5449
|
}
|
|
5450
|
-
return Object.assign({}, I, (t = {}, t[p] =
|
|
5450
|
+
return Object.assign({}, I, (t = {}, t[p] = b ? m + "px" : "", t[S] = y ? g + "px" : "", t.transform = "", t));
|
|
5451
5451
|
}
|
|
5452
5452
|
function Ip(e) {
|
|
5453
5453
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
|
|
@@ -5640,11 +5640,11 @@ function tl(e) {
|
|
|
5640
5640
|
}
|
|
5641
5641
|
function In(e, t) {
|
|
5642
5642
|
t === void 0 && (t = {});
|
|
5643
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? up : o, l = n.rootBoundary, s = l === void 0 ? Ui : l, d = n.elementContext, u = d === void 0 ? yn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Ji(typeof g != "number" ? g : Zi(g, Wn)), m = u === yn ? dp : yn,
|
|
5643
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, o = n.boundary, i = o === void 0 ? up : o, l = n.rootBoundary, s = l === void 0 ? Ui : l, d = n.elementContext, u = d === void 0 ? yn : d, f = n.altBoundary, c = f === void 0 ? !1 : f, h = n.padding, g = h === void 0 ? 0 : h, v = Ji(typeof g != "number" ? g : Zi(g, Wn)), m = u === yn ? dp : yn, y = e.rects.popper, b = e.elements[c ? m : u], S = Wp(un(b) ? b : b.contextElement || It(e.elements.popper), i, s), p = cn(e.elements.reference), x = tl({
|
|
5644
5644
|
reference: p,
|
|
5645
|
-
element:
|
|
5645
|
+
element: y,
|
|
5646
5646
|
placement: a
|
|
5647
|
-
}), k = ta(Object.assign({},
|
|
5647
|
+
}), k = ta(Object.assign({}, y, x)), C = u === yn ? k : p, A = {
|
|
5648
5648
|
top: S.top - C.top + v.top,
|
|
5649
5649
|
bottom: C.bottom - S.bottom + v.bottom,
|
|
5650
5650
|
left: S.left - C.left + v.left,
|
|
@@ -5688,7 +5688,7 @@ function qp(e) {
|
|
|
5688
5688
|
function zp(e) {
|
|
5689
5689
|
var t = e.state, n = e.options, r = e.name;
|
|
5690
5690
|
if (!t.modifiersData[r]._skip) {
|
|
5691
|
-
for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement,
|
|
5691
|
+
for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, s = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, c = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, y = ct(m), b = y === m, S = s || (b || !g ? [sr(m)] : qp(m)), p = [m].concat(S).reduce(function(me, Ae) {
|
|
5692
5692
|
return me.concat(ct(Ae) === Ea ? Hp(t, {
|
|
5693
5693
|
placement: Ae,
|
|
5694
5694
|
boundary: u,
|
|
@@ -5831,7 +5831,7 @@ function tv(e) {
|
|
|
5831
5831
|
rootBoundary: d,
|
|
5832
5832
|
padding: f,
|
|
5833
5833
|
altBoundary: u
|
|
5834
|
-
}),
|
|
5834
|
+
}), y = ct(t.placement), b = fn(t.placement), S = !b, p = Ba(y), x = ev(p), k = t.modifiersData.popperOffsets, C = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
5835
5835
|
placement: t.placement
|
|
5836
5836
|
})) : v, P = typeof M == "number" ? {
|
|
5837
5837
|
mainAxis: M,
|
|
@@ -5845,14 +5845,14 @@ function tv(e) {
|
|
|
5845
5845
|
};
|
|
5846
5846
|
if (k) {
|
|
5847
5847
|
if (o) {
|
|
5848
|
-
var $, Y = p === "y" ? Ve : _e, X = p === "y" ? Qe : Ge, K = p === "y" ? "height" : "width", ae = k[p], re = ae + m[Y], de = ae - m[X], ve = h ? -A[K] / 2 : 0, te =
|
|
5848
|
+
var $, Y = p === "y" ? Ve : _e, X = p === "y" ? Qe : Ge, K = p === "y" ? "height" : "width", ae = k[p], re = ae + m[Y], de = ae - m[X], ve = h ? -A[K] / 2 : 0, te = b === sn ? C[K] : A[K], ie = b === sn ? -A[K] : -C[K], we = t.elements.arrow, me = h && we ? Ta(we) : {
|
|
5849
5849
|
width: 0,
|
|
5850
5850
|
height: 0
|
|
5851
5851
|
}, Ae = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ki(), Be = Ae[Y], ot = Ae[X], Re = Cn(0, C[K], me[K]), it = S ? C[K] / 2 - ve - Re - Be - P.mainAxis : te - Re - Be - P.mainAxis, Je = S ? -C[K] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? p === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = ($ = I?.[p]) != null ? $ : 0, Gt = ae + it - wt - Mt, Kt = ae + Je - wt, lt = Cn(h ? dr(re, Gt) : re, ae, h ? qt(de, Kt) : de);
|
|
5852
5852
|
k[p] = lt, L[p] = lt - ae;
|
|
5853
5853
|
}
|
|
5854
5854
|
if (l) {
|
|
5855
|
-
var xt, $t = p === "x" ? Ve : _e, Rt = p === "x" ? Qe : Ge, ht = k[x], St = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [Ve, _e].indexOf(
|
|
5855
|
+
var xt, $t = p === "x" ? Ve : _e, Rt = p === "x" ? Qe : Ge, ht = k[x], St = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [Ve, _e].indexOf(y) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht - C[St] - A[St] - qn + P.altAxis, Un = mn ? ht + C[St] + A[St] - qn - P.altAxis : Lt, Yn = h && mn ? Op(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
|
|
5856
5856
|
k[x] = Yn, L[x] = Yn - ht;
|
|
5857
5857
|
}
|
|
5858
5858
|
t.modifiersData[r] = L;
|
|
@@ -5974,9 +5974,9 @@ function cv(e) {
|
|
|
5974
5974
|
styles: {}
|
|
5975
5975
|
}, f = [], c = !1, h = {
|
|
5976
5976
|
state: u,
|
|
5977
|
-
setOptions: function(
|
|
5978
|
-
var
|
|
5979
|
-
v(), u.options = Object.assign({}, o, u.options,
|
|
5977
|
+
setOptions: function(y) {
|
|
5978
|
+
var b = typeof y == "function" ? y(u.options) : y;
|
|
5979
|
+
v(), u.options = Object.assign({}, o, u.options, b), u.scrollParents = {
|
|
5980
5980
|
reference: un(l) ? En(l) : l.contextElement ? En(l.contextElement) : [],
|
|
5981
5981
|
popper: En(s)
|
|
5982
5982
|
};
|
|
@@ -5992,10 +5992,10 @@ function cv(e) {
|
|
|
5992
5992
|
// prefer the async Popper#update method
|
|
5993
5993
|
forceUpdate: function() {
|
|
5994
5994
|
if (!c) {
|
|
5995
|
-
var
|
|
5996
|
-
if (bo(
|
|
5995
|
+
var y = u.elements, b = y.reference, S = y.popper;
|
|
5996
|
+
if (bo(b, S)) {
|
|
5997
5997
|
u.rects = {
|
|
5998
|
-
reference: iv(
|
|
5998
|
+
reference: iv(b, Hn(S), u.options.strategy === "fixed"),
|
|
5999
5999
|
popper: Ta(S)
|
|
6000
6000
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
|
|
6001
6001
|
return u.modifiersData[P.name] = Object.assign({}, P.data);
|
|
@@ -6034,11 +6034,11 @@ function cv(e) {
|
|
|
6034
6034
|
});
|
|
6035
6035
|
function g() {
|
|
6036
6036
|
u.orderedModifiers.forEach(function(m) {
|
|
6037
|
-
var
|
|
6037
|
+
var y = m.name, b = m.options, S = b === void 0 ? {} : b, p = m.effect;
|
|
6038
6038
|
if (typeof p == "function") {
|
|
6039
6039
|
var x = p({
|
|
6040
6040
|
state: u,
|
|
6041
|
-
name:
|
|
6041
|
+
name: y,
|
|
6042
6042
|
instance: h,
|
|
6043
6043
|
options: S
|
|
6044
6044
|
}), k = function() {
|
|
@@ -6158,8 +6158,8 @@ function wv(e, t) {
|
|
|
6158
6158
|
var o = a.popperRect, i = a.popperState, l = a.props, s = l.interactiveBorder, d = sl(i.placement), u = i.modifiersData.offset;
|
|
6159
6159
|
if (!u)
|
|
6160
6160
|
return !0;
|
|
6161
|
-
var f = d === "bottom" ? u.top.y : 0, c = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + f > s, m = r - o.bottom - c > s,
|
|
6162
|
-
return v || m ||
|
|
6161
|
+
var f = d === "bottom" ? u.top.y : 0, c = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, g = d === "left" ? u.right.x : 0, v = o.top - r + f > s, m = r - o.bottom - c > s, y = o.left - n + h > s, b = n - o.right - g > s;
|
|
6162
|
+
return v || m || y || b;
|
|
6163
6163
|
});
|
|
6164
6164
|
}
|
|
6165
6165
|
function Vr(e, t, n) {
|
|
@@ -6353,7 +6353,7 @@ function fl(e) {
|
|
|
6353
6353
|
fl.$$tippy = !0;
|
|
6354
6354
|
var Mv = 1, nr = [], _r = [];
|
|
6355
6355
|
function $v(e, t) {
|
|
6356
|
-
var n = ko(e, Object.assign({}, Ze, cl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, f, c, h = [], g = yo(Gt, n.interactiveDebounce), v, m = Mv++,
|
|
6356
|
+
var n = ko(e, Object.assign({}, Ze, cl(wo(t)))), r, a, o, i = !1, l = !1, s = !1, d = !1, u, f, c, h = [], g = yo(Gt, n.interactiveDebounce), v, m = Mv++, y = null, b = gv(n.plugins), S = {
|
|
6357
6357
|
// Is the instance currently enabled?
|
|
6358
6358
|
isEnabled: !0,
|
|
6359
6359
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -6369,10 +6369,10 @@ function $v(e, t) {
|
|
|
6369
6369
|
id: m,
|
|
6370
6370
|
reference: e,
|
|
6371
6371
|
popper: zt(),
|
|
6372
|
-
popperInstance:
|
|
6372
|
+
popperInstance: y,
|
|
6373
6373
|
props: n,
|
|
6374
6374
|
state: S,
|
|
6375
|
-
plugins:
|
|
6375
|
+
plugins: b,
|
|
6376
6376
|
// methods
|
|
6377
6377
|
clearDelayTimeouts: zn,
|
|
6378
6378
|
setProps: Un,
|
|
@@ -6389,7 +6389,7 @@ function $v(e, t) {
|
|
|
6389
6389
|
return p;
|
|
6390
6390
|
var x = n.render(p), k = x.popper, C = x.onUpdate;
|
|
6391
6391
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + p.id, p.popper = k, e._tippy = p, k._tippy = p;
|
|
6392
|
-
var A =
|
|
6392
|
+
var A = b.map(function(D) {
|
|
6393
6393
|
return D.fn(p);
|
|
6394
6394
|
}), M = e.hasAttribute("aria-expanded");
|
|
6395
6395
|
return mt(), ve(), ae(), re("onCreate", [p]), n.showOnCreate && vn(), k.addEventListener("mouseenter", function() {
|
|
@@ -6843,49 +6843,49 @@ var Rv = Object.assign({}, Qi, {
|
|
|
6843
6843
|
}
|
|
6844
6844
|
};
|
|
6845
6845
|
}
|
|
6846
|
-
},
|
|
6846
|
+
}, y = q(zt(), Object.assign({}, mv(n, ["overrides"]), {
|
|
6847
6847
|
plugins: [m].concat(n.plugins || []),
|
|
6848
6848
|
triggerTarget: i,
|
|
6849
6849
|
popperOptions: Object.assign({}, n.popperOptions, {
|
|
6850
6850
|
modifiers: [].concat(((r = n.popperOptions) == null ? void 0 : r.modifiers) || [], [Rv])
|
|
6851
6851
|
})
|
|
6852
|
-
})),
|
|
6853
|
-
|
|
6854
|
-
if (
|
|
6855
|
-
return v(
|
|
6852
|
+
})), b = y.show;
|
|
6853
|
+
y.show = function(p) {
|
|
6854
|
+
if (b(), !l && p == null)
|
|
6855
|
+
return v(y, o[0]);
|
|
6856
6856
|
if (!(l && p == null)) {
|
|
6857
6857
|
if (typeof p == "number")
|
|
6858
|
-
return o[p] && v(
|
|
6858
|
+
return o[p] && v(y, o[p]);
|
|
6859
6859
|
if (a.indexOf(p) >= 0) {
|
|
6860
6860
|
var x = p.reference;
|
|
6861
|
-
return v(
|
|
6861
|
+
return v(y, x);
|
|
6862
6862
|
}
|
|
6863
6863
|
if (o.indexOf(p) >= 0)
|
|
6864
|
-
return v(
|
|
6864
|
+
return v(y, p);
|
|
6865
6865
|
}
|
|
6866
|
-
},
|
|
6866
|
+
}, y.showNext = function() {
|
|
6867
6867
|
var p = o[0];
|
|
6868
6868
|
if (!l)
|
|
6869
|
-
return
|
|
6869
|
+
return y.show(0);
|
|
6870
6870
|
var x = o.indexOf(l);
|
|
6871
|
-
|
|
6872
|
-
},
|
|
6871
|
+
y.show(o[x + 1] || p);
|
|
6872
|
+
}, y.showPrevious = function() {
|
|
6873
6873
|
var p = o[o.length - 1];
|
|
6874
6874
|
if (!l)
|
|
6875
|
-
return
|
|
6875
|
+
return y.show(p);
|
|
6876
6876
|
var x = o.indexOf(l), k = o[x - 1] || p;
|
|
6877
|
-
|
|
6877
|
+
y.show(k);
|
|
6878
6878
|
};
|
|
6879
|
-
var S =
|
|
6880
|
-
return
|
|
6879
|
+
var S = y.setProps;
|
|
6880
|
+
return y.setProps = function(p) {
|
|
6881
6881
|
s = p.overrides || s, S(p);
|
|
6882
|
-
},
|
|
6882
|
+
}, y.setInstances = function(p) {
|
|
6883
6883
|
h(!0), d.forEach(function(x) {
|
|
6884
6884
|
return x();
|
|
6885
|
-
}), a = p, h(!1), c(), f(), d = g(
|
|
6885
|
+
}), a = p, h(!1), c(), f(), d = g(y), y.setProps({
|
|
6886
6886
|
triggerTarget: i
|
|
6887
6887
|
});
|
|
6888
|
-
}, d = g(
|
|
6888
|
+
}, d = g(y), y;
|
|
6889
6889
|
}, Fv = {
|
|
6890
6890
|
name: "animateFill",
|
|
6891
6891
|
defaultValue: !1,
|
|
@@ -6957,13 +6957,13 @@ var jv = {
|
|
|
6957
6957
|
}), a = !1;
|
|
6958
6958
|
}
|
|
6959
6959
|
function c(v) {
|
|
6960
|
-
var m = v.target ? n.contains(v.target) : !0,
|
|
6960
|
+
var m = v.target ? n.contains(v.target) : !0, y = t.props.followCursor, b = v.clientX, S = v.clientY, p = n.getBoundingClientRect(), x = b - p.left, k = S - p.top;
|
|
6961
6961
|
(m || !t.props.interactive) && t.setProps({
|
|
6962
6962
|
// @ts-ignore - unneeded DOMRect properties
|
|
6963
6963
|
getReferenceClientRect: function() {
|
|
6964
|
-
var A = n.getBoundingClientRect(), M =
|
|
6965
|
-
|
|
6966
|
-
var I =
|
|
6964
|
+
var A = n.getBoundingClientRect(), M = b, P = S;
|
|
6965
|
+
y === "initial" && (M = A.left + x, P = A.top + k);
|
|
6966
|
+
var I = y === "horizontal" ? A.top : P, L = y === "vertical" ? A.right : M, $ = y === "horizontal" ? A.bottom : P, Y = y === "vertical" ? A.left : M;
|
|
6967
6967
|
return {
|
|
6968
6968
|
width: L - Y,
|
|
6969
6969
|
height: $ - I,
|
|
@@ -6994,18 +6994,18 @@ var jv = {
|
|
|
6994
6994
|
onBeforeUpdate: function() {
|
|
6995
6995
|
l = t.props;
|
|
6996
6996
|
},
|
|
6997
|
-
onAfterUpdate: function(m,
|
|
6998
|
-
var
|
|
6999
|
-
a ||
|
|
6997
|
+
onAfterUpdate: function(m, y) {
|
|
6998
|
+
var b = y.followCursor;
|
|
6999
|
+
a || b !== void 0 && l.followCursor !== b && (g(), b ? (h(), t.state.isMounted && !o && !s() && d()) : (u(), f()));
|
|
7000
7000
|
},
|
|
7001
7001
|
onMount: function() {
|
|
7002
7002
|
t.props.followCursor && !o && (i && (c(ra), i = !1), s() || d());
|
|
7003
7003
|
},
|
|
7004
|
-
onTrigger: function(m,
|
|
7005
|
-
$a(
|
|
7006
|
-
clientX:
|
|
7007
|
-
clientY:
|
|
7008
|
-
}), o =
|
|
7004
|
+
onTrigger: function(m, y) {
|
|
7005
|
+
$a(y) && (ra = {
|
|
7006
|
+
clientX: y.clientX,
|
|
7007
|
+
clientY: y.clientY
|
|
7008
|
+
}), o = y.type === "focus";
|
|
7009
7009
|
},
|
|
7010
7010
|
onHidden: function() {
|
|
7011
7011
|
t.props.followCursor && (f(), u(), i = !0);
|
|
@@ -7060,10 +7060,10 @@ var Hv = {
|
|
|
7060
7060
|
onAfterUpdate: f,
|
|
7061
7061
|
onTrigger: function(h, g) {
|
|
7062
7062
|
if ($a(g)) {
|
|
7063
|
-
var v = pn(t.reference.getClientRects()), m = v.find(function(
|
|
7064
|
-
return
|
|
7065
|
-
}),
|
|
7066
|
-
o =
|
|
7063
|
+
var v = pn(t.reference.getClientRects()), m = v.find(function(b) {
|
|
7064
|
+
return b.left - 2 <= g.clientX && b.right + 2 >= g.clientX && b.top - 2 <= g.clientY && b.bottom + 2 >= g.clientY;
|
|
7065
|
+
}), y = v.indexOf(m);
|
|
7066
|
+
o = y > -1 ? y : o;
|
|
7067
7067
|
}
|
|
7068
7068
|
},
|
|
7069
7069
|
onHidden: function() {
|
|
@@ -7098,11 +7098,11 @@ function qv(e, t, n, r) {
|
|
|
7098
7098
|
return k.right;
|
|
7099
7099
|
})), v = n.filter(function(k) {
|
|
7100
7100
|
return e === "left" ? k.left === h : k.right === g;
|
|
7101
|
-
}), m = v[0].top,
|
|
7101
|
+
}), m = v[0].top, y = v[v.length - 1].bottom, b = h, S = g, p = S - b, x = y - m;
|
|
7102
7102
|
return {
|
|
7103
7103
|
top: m,
|
|
7104
|
-
bottom:
|
|
7105
|
-
left:
|
|
7104
|
+
bottom: y,
|
|
7105
|
+
left: b,
|
|
7106
7106
|
right: S,
|
|
7107
7107
|
width: p,
|
|
7108
7108
|
height: x
|
|
@@ -7215,10 +7215,10 @@ function vl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7215
7215
|
}, m = () => {
|
|
7216
7216
|
var C;
|
|
7217
7217
|
(C = a.value) === null || C === void 0 || C.show();
|
|
7218
|
-
},
|
|
7218
|
+
}, y = () => {
|
|
7219
7219
|
var C;
|
|
7220
7220
|
(C = a.value) === null || C === void 0 || C.hide();
|
|
7221
|
-
},
|
|
7221
|
+
}, b = () => {
|
|
7222
7222
|
var C;
|
|
7223
7223
|
(C = a.value) === null || C === void 0 || C.disable(), o.value.isEnabled = !1;
|
|
7224
7224
|
}, S = () => {
|
|
@@ -7239,9 +7239,9 @@ function vl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7239
7239
|
setContent: h,
|
|
7240
7240
|
setProps: g,
|
|
7241
7241
|
destroy: v,
|
|
7242
|
-
hide:
|
|
7242
|
+
hide: y,
|
|
7243
7243
|
show: m,
|
|
7244
|
-
disable:
|
|
7244
|
+
disable: b,
|
|
7245
7245
|
enable: S,
|
|
7246
7246
|
unmount: p,
|
|
7247
7247
|
mount: x,
|
|
@@ -7368,24 +7368,24 @@ const ml = R({
|
|
|
7368
7368
|
class: e.contentClass
|
|
7369
7369
|
}, f(c)) : null;
|
|
7370
7370
|
if (e.to === "parent") {
|
|
7371
|
-
const
|
|
7371
|
+
const y = [];
|
|
7372
7372
|
if (!a.value) {
|
|
7373
|
-
const
|
|
7373
|
+
const b = ue("span", {
|
|
7374
7374
|
ref: o,
|
|
7375
7375
|
"data-v-tippy": "",
|
|
7376
7376
|
style: { display: "none" }
|
|
7377
7377
|
});
|
|
7378
|
-
|
|
7378
|
+
y.push(b);
|
|
7379
7379
|
}
|
|
7380
|
-
return g &&
|
|
7380
|
+
return g && y.push(g), y;
|
|
7381
7381
|
}
|
|
7382
7382
|
const v = t.default ? t.default(c) : [];
|
|
7383
7383
|
if (!e.tag) {
|
|
7384
|
-
const
|
|
7384
|
+
const y = ue(v[0], {
|
|
7385
7385
|
ref: a,
|
|
7386
7386
|
"data-v-tippy": ""
|
|
7387
7387
|
});
|
|
7388
|
-
return g ? [
|
|
7388
|
+
return g ? [y, g] : y;
|
|
7389
7389
|
}
|
|
7390
7390
|
const m = (typeof e.tag == "string", e.tag);
|
|
7391
7391
|
return ue(m, { ref: a, "data-v-tippy": "" }, g ? [v, g] : v);
|
|
@@ -7769,9 +7769,9 @@ const tm = /* @__PURE__ */ R({
|
|
|
7769
7769
|
const h = T(() => !o.value || o.value === "" ? i.value : i.value?.filter(
|
|
7770
7770
|
(S) => S.label.toLowerCase().replace(/\s+/g, "").includes(o.value.toLowerCase().replace(/\s+/g, ""))
|
|
7771
7771
|
)), g = (S) => {
|
|
7772
|
-
s.value = S.label, d.value = S.value, r.value = S.label, m("selected", S),
|
|
7772
|
+
s.value = S.label, d.value = S.value, r.value = S.label, m("selected", S), b();
|
|
7773
7773
|
}, v = () => {
|
|
7774
|
-
r.value = "", s.value = "", d.value = "", o.value = "", m("selected", void 0),
|
|
7774
|
+
r.value = "", s.value = "", d.value = "", o.value = "", m("selected", void 0), b();
|
|
7775
7775
|
}, m = t;
|
|
7776
7776
|
ee(
|
|
7777
7777
|
() => d.value,
|
|
@@ -7781,9 +7781,9 @@ const tm = /* @__PURE__ */ R({
|
|
|
7781
7781
|
},
|
|
7782
7782
|
{ immediate: !0 }
|
|
7783
7783
|
);
|
|
7784
|
-
const
|
|
7784
|
+
const y = () => {
|
|
7785
7785
|
n.readonly || n.disabled || (u.value = !0);
|
|
7786
|
-
},
|
|
7786
|
+
}, b = () => {
|
|
7787
7787
|
u.value = !1;
|
|
7788
7788
|
};
|
|
7789
7789
|
return (S, p) => {
|
|
@@ -7804,7 +7804,7 @@ const tm = /* @__PURE__ */ R({
|
|
|
7804
7804
|
readonly: "",
|
|
7805
7805
|
modelValue: r.value,
|
|
7806
7806
|
"onUpdate:modelValue": p[0] || (p[0] = (M) => r.value = M),
|
|
7807
|
-
onClick:
|
|
7807
|
+
onClick: y,
|
|
7808
7808
|
border: e.border,
|
|
7809
7809
|
placeholder: e.placeholder,
|
|
7810
7810
|
class: "w-full",
|
|
@@ -7814,7 +7814,7 @@ const tm = /* @__PURE__ */ R({
|
|
|
7814
7814
|
e.mode === "text" ? (w(), B("div", {
|
|
7815
7815
|
key: 1,
|
|
7816
7816
|
class: "border-b border-dashed cursor-pointer border-black dark:border-white",
|
|
7817
|
-
onClick:
|
|
7817
|
+
onClick: y,
|
|
7818
7818
|
"data-testid": `${e.dataTestid}-input`
|
|
7819
7819
|
}, H(s.value ?? "SELECT"), 9, km)) : _("", !0)
|
|
7820
7820
|
]),
|
|
@@ -7825,7 +7825,7 @@ const tm = /* @__PURE__ */ R({
|
|
|
7825
7825
|
ref: c,
|
|
7826
7826
|
size: "lg",
|
|
7827
7827
|
"is-open": u.value,
|
|
7828
|
-
onOnClose:
|
|
7828
|
+
onOnClose: b,
|
|
7829
7829
|
title: n.title
|
|
7830
7830
|
}, {
|
|
7831
7831
|
default: V(() => [
|
|
@@ -9195,7 +9195,7 @@ const jh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Wh
|
|
|
9195
9195
|
et(O("input", {
|
|
9196
9196
|
ref_key: "dateRef",
|
|
9197
9197
|
ref: l,
|
|
9198
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
9198
|
+
"onUpdate:modelValue": c[0] || (c[0] = (y) => d.value = y),
|
|
9199
9199
|
type: "date",
|
|
9200
9200
|
class: z(["form-input absolute! -z-50 text-transparent bg-transparent", {
|
|
9201
9201
|
"pl-0!": e.border === "simple" || e.border === "none"
|
|
@@ -9208,7 +9208,7 @@ const jh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Wh
|
|
|
9208
9208
|
et(O("input", {
|
|
9209
9209
|
ref_key: "inputRef",
|
|
9210
9210
|
ref: u,
|
|
9211
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
9211
|
+
"onUpdate:modelValue": c[1] || (c[1] = (y) => i.value = y),
|
|
9212
9212
|
type: "text",
|
|
9213
9213
|
class: z(["form-input pl-8! bg-inherit", {
|
|
9214
9214
|
"border-simple": e.border === "simple",
|
|
@@ -9236,7 +9236,7 @@ const jh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Wh
|
|
|
9236
9236
|
variant: "text",
|
|
9237
9237
|
type: "button",
|
|
9238
9238
|
class: "absolute h-full flex px-1 items-center justify-center text-slate-400 dark:text-slate-300",
|
|
9239
|
-
onClick: c[2] || (c[2] = (
|
|
9239
|
+
onClick: c[2] || (c[2] = (y) => s())
|
|
9240
9240
|
}, {
|
|
9241
9241
|
default: V(() => [
|
|
9242
9242
|
W(h, { icon: "i-fa7-regular:calendar" })
|
|
@@ -9431,7 +9431,7 @@ const jh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Wh
|
|
|
9431
9431
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
9432
9432
|
};
|
|
9433
9433
|
}
|
|
9434
|
-
}), Gh = /* @__PURE__ */ oe(Qh, [["__scopeId", "data-v-
|
|
9434
|
+
}), Gh = /* @__PURE__ */ oe(Qh, [["__scopeId", "data-v-299c93c5"]]), Kh = ["required", "readonly", "disabled", "autofocus", "placeholder", "data-testid"], Jh = /* @__PURE__ */ R({
|
|
9435
9435
|
__name: "base-input-mask",
|
|
9436
9436
|
props: /* @__PURE__ */ ye({
|
|
9437
9437
|
modelValue: { type: [String, Number, Boolean, null] },
|
|
@@ -10172,13 +10172,13 @@ const ug = ["placeholder", "required", "readonly", "disabled", "data-testid"], d
|
|
|
10172
10172
|
});
|
|
10173
10173
|
const f = (b) => {
|
|
10174
10174
|
if (!o.value) return;
|
|
10175
|
-
const
|
|
10176
|
-
if (Number.isNaN(
|
|
10175
|
+
const S = Number(b.target.rawValue);
|
|
10176
|
+
if (Number.isNaN(S)) {
|
|
10177
10177
|
s("update:modelValue", void 0);
|
|
10178
10178
|
return;
|
|
10179
10179
|
}
|
|
10180
|
-
const
|
|
10181
|
-
|
|
10180
|
+
const p = d(S);
|
|
10181
|
+
p !== S && o.value.setRawValue(String(p)), s("update:modelValue", p);
|
|
10182
10182
|
};
|
|
10183
10183
|
ee(
|
|
10184
10184
|
() => i.value,
|
|
@@ -10188,12 +10188,14 @@ const ug = ["placeholder", "required", "readonly", "disabled", "data-testid"], d
|
|
|
10188
10188
|
);
|
|
10189
10189
|
const c = E(), h = E(), g = E(0), v = E(0), m = () => {
|
|
10190
10190
|
g.value = c.value?.clientWidth === 0 ? 16 : c.value?.clientWidth, v.value = h.value?.clientWidth === 0 ? 16 : h.value?.clientWidth;
|
|
10191
|
+
}, y = () => {
|
|
10192
|
+
r.resetErrorsOnUpdate && l.value?.length && (l.value = []);
|
|
10191
10193
|
};
|
|
10192
10194
|
return t({
|
|
10193
10195
|
inputRef: a
|
|
10194
|
-
}), (b,
|
|
10195
|
-
const
|
|
10196
|
-
return w(), U(
|
|
10196
|
+
}), (b, S) => {
|
|
10197
|
+
const p = Q("base-form");
|
|
10198
|
+
return w(), U(p, {
|
|
10197
10199
|
label: e.label,
|
|
10198
10200
|
layout: e.layout,
|
|
10199
10201
|
description: e.description,
|
|
@@ -10220,11 +10222,13 @@ const ug = ["placeholder", "required", "readonly", "disabled", "data-testid"], d
|
|
|
10220
10222
|
disabled: e.disabled,
|
|
10221
10223
|
"data-testid": e.dataTestid,
|
|
10222
10224
|
onClick: u,
|
|
10225
|
+
onKeyup: y,
|
|
10226
|
+
onKeydown: y,
|
|
10223
10227
|
style: Ye({
|
|
10224
10228
|
paddingLeft: `${g.value}px`,
|
|
10225
10229
|
paddingRight: `${v.value}px`
|
|
10226
10230
|
})
|
|
10227
|
-
}, null,
|
|
10231
|
+
}, null, 46, ug),
|
|
10228
10232
|
O("div", {
|
|
10229
10233
|
ref_key: "suffixRef",
|
|
10230
10234
|
ref: h,
|
|
@@ -10244,7 +10248,7 @@ const ug = ["placeholder", "required", "readonly", "disabled", "data-testid"], d
|
|
|
10244
10248
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
10245
10249
|
};
|
|
10246
10250
|
}
|
|
10247
|
-
}), cg = /* @__PURE__ */ oe(dg, [["__scopeId", "data-v-
|
|
10251
|
+
}), cg = /* @__PURE__ */ oe(dg, [["__scopeId", "data-v-f7876034"]]);
|
|
10248
10252
|
function fg(e) {
|
|
10249
10253
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10250
10254
|
}
|
|
@@ -10374,12 +10378,12 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10374
10378
|
ee(s, f), ne(() => {
|
|
10375
10379
|
r.autofocus && u.value?.focus(), f();
|
|
10376
10380
|
});
|
|
10377
|
-
const c = E({ top: 0, left: 0 }), h = E(!1), g = E(0), v = E(null), m = E(-1),
|
|
10381
|
+
const c = E({ top: 0, left: 0 }), h = E(!1), g = E(0), v = E(null), m = E(-1), y = E("");
|
|
10378
10382
|
ee(() => h.value, (A) => {
|
|
10379
10383
|
o("showSuggestions", A);
|
|
10380
10384
|
});
|
|
10381
|
-
const
|
|
10382
|
-
(A) => A.label.toLowerCase().includes(
|
|
10385
|
+
const b = T(() => v.value ? (r.options[v.value] || []).filter(
|
|
10386
|
+
(A) => A.label.toLowerCase().includes(y.value.toLowerCase())
|
|
10383
10387
|
) : []);
|
|
10384
10388
|
function S() {
|
|
10385
10389
|
if (!u.value || m.value < 0) return;
|
|
@@ -10391,15 +10395,15 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10391
10395
|
}
|
|
10392
10396
|
function p(A) {
|
|
10393
10397
|
const P = A.target.selectionStart, I = s.value.slice(0, P), L = new RegExp(`([${r.triggers.join("")}])(\\w*)$`), $ = I.match(L);
|
|
10394
|
-
$ ? (v.value = $[1], m.value = P - $[2].length - 1,
|
|
10398
|
+
$ ? (v.value = $[1], m.value = P - $[2].length - 1, y.value = $[2], l({
|
|
10395
10399
|
trigger: v.value,
|
|
10396
|
-
query:
|
|
10400
|
+
query: y.value
|
|
10397
10401
|
}), h.value = !0, Se(S)) : C();
|
|
10398
10402
|
}
|
|
10399
10403
|
function x(A) {
|
|
10400
|
-
if (!(!h.value || !
|
|
10401
|
-
if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) %
|
|
10402
|
-
A.preventDefault(), A.stopPropagation(), k(
|
|
10404
|
+
if (!(!h.value || !b.value.length)) {
|
|
10405
|
+
if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(A.key) && A.preventDefault(), A.key === "ArrowDown" && (g.value = (g.value + 1) % b.value.length), A.key === "ArrowUp" && (g.value = (g.value - 1 + b.value.length) % b.value.length), h.value && A.key === "Enter") {
|
|
10406
|
+
A.preventDefault(), A.stopPropagation(), k(b.value[g.value]);
|
|
10403
10407
|
return;
|
|
10404
10408
|
}
|
|
10405
10409
|
A.key === "Escape" && C();
|
|
@@ -10407,7 +10411,7 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10407
10411
|
}
|
|
10408
10412
|
function k(A) {
|
|
10409
10413
|
if (!v.value || m.value < 0) return;
|
|
10410
|
-
const M = s.value.slice(0, m.value), P = s.value.slice(m.value +
|
|
10414
|
+
const M = s.value.slice(0, m.value), P = s.value.slice(m.value + y.value.length + 1);
|
|
10411
10415
|
s.value = `${M}${v.value}${A.label} ${P}`, C(), Se(() => {
|
|
10412
10416
|
u.value?.focus();
|
|
10413
10417
|
const I = M.length + A.label.length + 2;
|
|
@@ -10415,7 +10419,7 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10415
10419
|
});
|
|
10416
10420
|
}
|
|
10417
10421
|
function C() {
|
|
10418
|
-
i && (clearTimeout(i), i = null), h.value = !1, m.value = -1,
|
|
10422
|
+
i && (clearTimeout(i), i = null), h.value = !1, m.value = -1, y.value = "", v.value = null, g.value = 0;
|
|
10419
10423
|
}
|
|
10420
10424
|
return ee(s, () => {
|
|
10421
10425
|
const A = [];
|
|
@@ -10470,8 +10474,8 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10470
10474
|
class: "absolute bg-white dark:bg-gray-900 border dark:border-gray-500 rounded shadow p-1 z-10 w-48",
|
|
10471
10475
|
style: Ye({ top: `${c.value.top}px`, left: `${c.value.left}px` })
|
|
10472
10476
|
}, [
|
|
10473
|
-
e.loading ? (w(), B("li", bg, "Searching...")) :
|
|
10474
|
-
e.loading ? _("", !0) : (w(!0), B(fe, { key: 2 }, Me(
|
|
10477
|
+
e.loading ? (w(), B("li", bg, "Searching...")) : b.value.length ? _("", !0) : (w(), B("li", yg, "No results")),
|
|
10478
|
+
e.loading ? _("", !0) : (w(!0), B(fe, { key: 2 }, Me(b.value, (L, $) => (w(), B("li", {
|
|
10475
10479
|
key: L.id,
|
|
10476
10480
|
class: z([
|
|
10477
10481
|
"p-1 cursor-pointer flex items-center gap-1",
|
|
@@ -10706,8 +10710,8 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10706
10710
|
), t({
|
|
10707
10711
|
inputRef: h
|
|
10708
10712
|
}), (g, v) => {
|
|
10709
|
-
const m = Q("base-icon"),
|
|
10710
|
-
return w(), U(
|
|
10713
|
+
const m = Q("base-icon"), y = Q("base-button"), b = Q("base-form");
|
|
10714
|
+
return w(), U(b, {
|
|
10711
10715
|
label: a.label,
|
|
10712
10716
|
layout: a.layout,
|
|
10713
10717
|
description: a.description,
|
|
@@ -10753,7 +10757,7 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
|
|
|
10753
10757
|
W(m, { icon: "i-fa7-regular:angle-down" })
|
|
10754
10758
|
]),
|
|
10755
10759
|
_: 1
|
|
10756
|
-
}, 512)) : (w(), U(
|
|
10760
|
+
}, 512)) : (w(), U(y, {
|
|
10757
10761
|
key: 1,
|
|
10758
10762
|
size: "none",
|
|
10759
10763
|
variant: "text",
|