@point-hub/papp 0.0.147 → 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/index.css +1 -1
- package/dist/index.js +135 -131
- 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 = () => {
|
|
@@ -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) {
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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 X = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }), G = E(null), ae = { titleId: G, panelRef: E(null), dialogState: m, setTitleId(
|
|
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);
|
|
@@ -2956,12 +2956,12 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2956
2956
|
C.value = !1, G === Qr.Finished && (br(v) || (m.value = "hidden", p(y), d()));
|
|
2957
2957
|
})));
|
|
2958
2958
|
}
|
|
2959
|
-
return
|
|
2960
|
-
|
|
2959
|
+
return ne(() => {
|
|
2960
|
+
ee([f], ($, U, X) => {
|
|
2961
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: X, enterFrom: G, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo:
|
|
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
|
});
|
|
@@ -3126,9 +3126,9 @@ 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");
|
|
@@ -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,10 +4192,10 @@ 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], 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,
|
|
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
4200
|
var wt = ir(h ? Pn(X, mt) : X, U, h ? Tt(G, Mt) : G);
|
|
4201
4201
|
k[v] = wt, P[v] = wt - U;
|
|
@@ -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.`);
|
|
@@ -4664,9 +4664,9 @@ var Vi = {
|
|
|
4664
4664
|
}, ae = () => {
|
|
4665
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,12 +4678,12 @@ 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
4688
|
onMouseover: ce[0] || (ce[0] = (ve) => e.hover && X()),
|
|
4689
4689
|
onClick: ae,
|
|
@@ -4695,8 +4695,8 @@ 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),
|
|
@@ -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, 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,
|
|
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[X], Re = Cn(0, S[G], me[G]), it = C ? S[G] / 2 - ve - Re - Be - P.mainAxis :
|
|
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) {
|
|
@@ -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
|
});
|
|
@@ -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) {
|
|
@@ -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);
|
|
@@ -6691,7 +6691,7 @@ 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"),
|
|
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
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
|
}
|
|
@@ -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({
|
|
@@ -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;
|
|
@@ -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 = []);
|
|
@@ -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 = []);
|
|
@@ -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,11 +9179,11 @@ 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,
|
|
@@ -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);
|
|
@@ -9469,7 +9469,7 @@ 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
|
|
@@ -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",
|
|
@@ -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: {},
|
|
@@ -10369,10 +10369,14 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10369
10369
|
d.value = u.value?.scrollHeight ?? 0;
|
|
10370
10370
|
});
|
|
10371
10371
|
}
|
|
10372
|
-
|
|
10372
|
+
ee(s, c), ne(() => {
|
|
10373
10373
|
r.autofocus && u.value?.focus(), c();
|
|
10374
10374
|
});
|
|
10375
|
-
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(
|
|
10376
10380
|
(A) => A.label.toLowerCase().includes(b.value.toLowerCase())
|
|
10377
10381
|
) : []);
|
|
10378
10382
|
function C() {
|
|
@@ -10388,7 +10392,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10388
10392
|
$ ? (p.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], l({
|
|
10389
10393
|
trigger: p.value,
|
|
10390
10394
|
query: b.value
|
|
10391
|
-
}), h.value = !0,
|
|
10395
|
+
}), h.value = !0, ke(C)) : S();
|
|
10392
10396
|
}
|
|
10393
10397
|
function x(A) {
|
|
10394
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());
|
|
@@ -10403,9 +10407,9 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10403
10407
|
});
|
|
10404
10408
|
}
|
|
10405
10409
|
function S() {
|
|
10406
|
-
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;
|
|
10407
10411
|
}
|
|
10408
|
-
return
|
|
10412
|
+
return ee(s, () => {
|
|
10409
10413
|
const A = [];
|
|
10410
10414
|
for (const M of r.triggers) {
|
|
10411
10415
|
const P = new RegExp(`\\${M}(\\w+)`, "g"), I = Array.from(s.value.matchAll(P)).map(($) => $[1]?.toLowerCase()), L = r.options[M] || [];
|
|
@@ -10465,7 +10469,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10465
10469
|
"p-1 cursor-pointer flex items-center gap-1",
|
|
10466
10470
|
$ === g.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
10467
10471
|
]),
|
|
10468
|
-
|
|
10472
|
+
onMousedown: (U) => k(L)
|
|
10469
10473
|
}, [
|
|
10470
10474
|
r.showAvatar ? (w(), Y(P, {
|
|
10471
10475
|
key: 0,
|
|
@@ -10473,7 +10477,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10473
10477
|
src: L.avatar_url
|
|
10474
10478
|
}, null, 8, ["src"])) : V("", !0),
|
|
10475
10479
|
Ie(" " + q(L.label), 1)
|
|
10476
|
-
],
|
|
10480
|
+
], 42, Og))), 128))
|
|
10477
10481
|
], 4)) : V("", !0)
|
|
10478
10482
|
])
|
|
10479
10483
|
]),
|
|
@@ -10481,7 +10485,7 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10481
10485
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
10482
10486
|
};
|
|
10483
10487
|
}
|
|
10484
|
-
}), 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 = {
|
|
10485
10489
|
key: 0,
|
|
10486
10490
|
class: "flex items-center shrink-0 text-white"
|
|
10487
10491
|
}, Dg = {
|
|
@@ -10678,14 +10682,14 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10678
10682
|
}, c = E(null), f = () => {
|
|
10679
10683
|
c.value && c.value.el.click();
|
|
10680
10684
|
}, h = E();
|
|
10681
|
-
return
|
|
10685
|
+
return ne(() => {
|
|
10682
10686
|
a.autofocus && h.value?.focus();
|
|
10683
|
-
}),
|
|
10687
|
+
}), ee(
|
|
10684
10688
|
() => o.value,
|
|
10685
10689
|
() => {
|
|
10686
10690
|
n.value = o.value?.label ?? "", r.value = o.value?.value ?? "", s.value?.length && (s.value = []);
|
|
10687
10691
|
}
|
|
10688
|
-
),
|
|
10692
|
+
), ee(
|
|
10689
10693
|
() => r.value,
|
|
10690
10694
|
(g) => {
|
|
10691
10695
|
o.value = a.options.find((p) => p.value === g);
|
|
@@ -10904,9 +10908,9 @@ const Ag = /* @__PURE__ */ gg(yg), wg = { class: "relative w-full" }, xg = ["id"
|
|
|
10904
10908
|
},
|
|
10905
10909
|
get: () => r.modelValue
|
|
10906
10910
|
}), l = E(0), s = E();
|
|
10907
|
-
|
|
10911
|
+
ee(i, () => {
|
|
10908
10912
|
d();
|
|
10909
|
-
}),
|
|
10913
|
+
}), ne(() => {
|
|
10910
10914
|
r.autofocus && s.value?.focus(), d();
|
|
10911
10915
|
});
|
|
10912
10916
|
const d = () => {
|
|
@@ -10989,11 +10993,11 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
10989
10993
|
setup(e) {
|
|
10990
10994
|
const t = E(0), n = E(`is loading ${t.value} %`), r = E();
|
|
10991
10995
|
let a;
|
|
10992
|
-
|
|
10996
|
+
ne(() => {
|
|
10993
10997
|
o(), a = setInterval(() => {
|
|
10994
10998
|
t.value += 20, n.value = `is loading ${t.value} %`;
|
|
10995
10999
|
}, 50);
|
|
10996
|
-
}),
|
|
11000
|
+
}), ee(t, (l) => {
|
|
10997
11001
|
l >= 100 && (clearInterval(a), n.value = "loading complete", i(), r.value.style.display = "none");
|
|
10998
11002
|
});
|
|
10999
11003
|
const o = () => {
|
|
@@ -11042,12 +11046,12 @@ const ab = /* @__PURE__ */ oe(Zg, [["render", rb], ["__scopeId", "data-v-918420e
|
|
|
11042
11046
|
for (const f of c.submenu)
|
|
11043
11047
|
a.path.includes(f.path) && (i.value = c.name);
|
|
11044
11048
|
};
|
|
11045
|
-
|
|
11049
|
+
ee(
|
|
11046
11050
|
() => a.path,
|
|
11047
11051
|
() => {
|
|
11048
11052
|
s(), d();
|
|
11049
11053
|
}
|
|
11050
|
-
),
|
|
11054
|
+
), ne(() => {
|
|
11051
11055
|
d();
|
|
11052
11056
|
});
|
|
11053
11057
|
const u = (c) => c.substring(0, 8) === "https://" ? "external" : "internal";
|
|
@@ -11716,7 +11720,7 @@ function ky() {
|
|
|
11716
11720
|
}
|
|
11717
11721
|
function Sy() {
|
|
11718
11722
|
const e = El();
|
|
11719
|
-
|
|
11723
|
+
ne(async () => {
|
|
11720
11724
|
e.onResizeWindow(), await ke(() => {
|
|
11721
11725
|
window.addEventListener("resize", e.onResizeWindow);
|
|
11722
11726
|
});
|
|
@@ -11744,9 +11748,9 @@ const or = typeof window < "u", Ra = mr("sidebar", {
|
|
|
11744
11748
|
});
|
|
11745
11749
|
function Oy() {
|
|
11746
11750
|
const e = Ra(), t = qo(), { isMobile: n } = py();
|
|
11747
|
-
|
|
11751
|
+
ne(() => {
|
|
11748
11752
|
r();
|
|
11749
|
-
}),
|
|
11753
|
+
}), ee(
|
|
11750
11754
|
t,
|
|
11751
11755
|
async () => {
|
|
11752
11756
|
n() && e.closeSidebar();
|