@point-hub/papp 0.0.90 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/base-input-number.vue.d.ts +7 -0
- package/dist/components/base-input.vue.d.ts +10 -1
- package/dist/index.css +1 -1
- package/dist/index.js +638 -635
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ const Jl = { class: "accordion-container" }, Zl = /* @__PURE__ */ R({
|
|
|
75
75
|
}, s = e;
|
|
76
76
|
return (d, u) => (S(), T("div", os, [
|
|
77
77
|
(S(), N(oe(De), {
|
|
78
|
-
onClick: u[0] || (u[0] = (
|
|
78
|
+
onClick: u[0] || (u[0] = (c) => l()),
|
|
79
79
|
class: "accordion-title"
|
|
80
80
|
}, {
|
|
81
81
|
default: F(() => [
|
|
@@ -359,9 +359,9 @@ function rn(e, t, n) {
|
|
|
359
359
|
if (!(u.length !== r.length || u.some((h, m) => r[m] !== h)))
|
|
360
360
|
return a;
|
|
361
361
|
r = u;
|
|
362
|
-
let
|
|
363
|
-
if (n.key && ((o = n.debug) != null && o.call(n)) && (
|
|
364
|
-
const h = Math.round((Date.now() - d) * 100) / 100, m = Math.round((Date.now() -
|
|
362
|
+
let f;
|
|
363
|
+
if (n.key && ((o = n.debug) != null && o.call(n)) && (f = Date.now()), a = t(...u), n.key && ((l = n.debug) != null && l.call(n))) {
|
|
364
|
+
const h = Math.round((Date.now() - d) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, p = m / 16, g = (b, y) => {
|
|
365
365
|
for (b = String(b); b.length < y; )
|
|
366
366
|
b = " " + b;
|
|
367
367
|
return b;
|
|
@@ -442,8 +442,8 @@ const Ms = (e, t) => Math.abs(e - t) < 1, $s = (e, t, n) => {
|
|
|
442
442
|
},
|
|
443
443
|
e.options.isScrollingResetDelay
|
|
444
444
|
), o = (d) => () => {
|
|
445
|
-
const { horizontal: u, isRtl:
|
|
446
|
-
a = u ? n.scrollLeft * (
|
|
445
|
+
const { horizontal: u, isRtl: c } = e.options;
|
|
446
|
+
a = u ? n.scrollLeft * (c && -1 || 1) : n.scrollTop, i(), t(a, d);
|
|
447
447
|
}, l = o(!0), s = o(!1);
|
|
448
448
|
return s(), n.addEventListener("scroll", l, Ga), n.addEventListener("scrollend", s, Ga), () => {
|
|
449
449
|
n.removeEventListener("scroll", l), n.removeEventListener("scrollend", s);
|
|
@@ -613,13 +613,13 @@ class js {
|
|
|
613
613
|
this.pendingMeasuredCacheIndexes = [];
|
|
614
614
|
const d = this.measurementsCache.slice(0, s);
|
|
615
615
|
for (let u = s; u < n; u++) {
|
|
616
|
-
const
|
|
616
|
+
const c = i(u), f = this.options.lanes === 1 ? d[u - 1] : this.getFurthestMeasurement(d, u), h = f ? f.end + this.options.gap : r + a, m = l.get(c), p = typeof m == "number" ? m : this.options.estimateSize(u), g = h + p, b = f ? f.lane : u % this.options.lanes;
|
|
617
617
|
d[u] = {
|
|
618
618
|
index: u,
|
|
619
619
|
start: h,
|
|
620
620
|
size: p,
|
|
621
621
|
end: g,
|
|
622
|
-
key:
|
|
622
|
+
key: c,
|
|
623
623
|
lane: b
|
|
624
624
|
};
|
|
625
625
|
}
|
|
@@ -1018,16 +1018,16 @@ function qe(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: a = [] }
|
|
|
1018
1018
|
if (t & 4) return Math.max(0, l.indexOf(r)) + 1;
|
|
1019
1019
|
if (t & 8) return l.length - 1;
|
|
1020
1020
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
1021
|
-
})(), u = t & 32 ? { preventScroll: !0 } : {},
|
|
1021
|
+
})(), u = t & 32 ? { preventScroll: !0 } : {}, c = 0, f = l.length, h;
|
|
1022
1022
|
do {
|
|
1023
|
-
if (
|
|
1024
|
-
let m = d +
|
|
1025
|
-
if (t & 16) m = (m +
|
|
1023
|
+
if (c >= f || c + f <= 0) return 0;
|
|
1024
|
+
let m = d + c;
|
|
1025
|
+
if (t & 16) m = (m + f) % f;
|
|
1026
1026
|
else {
|
|
1027
1027
|
if (m < 0) return 3;
|
|
1028
|
-
if (m >=
|
|
1028
|
+
if (m >= f) return 1;
|
|
1029
1029
|
}
|
|
1030
|
-
h = l[m], h == null || h.focus(u),
|
|
1030
|
+
h = l[m], h == null || h.focus(u), c += s;
|
|
1031
1031
|
} while (h !== o.activeElement);
|
|
1032
1032
|
return t & 6 && nu(h) && h.select(), 2;
|
|
1033
1033
|
}
|
|
@@ -1131,18 +1131,18 @@ function Rr({ props: e, attrs: t, slots: n, slot: r, name: a }) {
|
|
|
1131
1131
|
var i, o;
|
|
1132
1132
|
let { as: l, ...s } = Lt(e, ["unmount", "static"]), d = (i = n.default) == null ? void 0 : i.call(n, r), u = {};
|
|
1133
1133
|
if (r) {
|
|
1134
|
-
let
|
|
1135
|
-
for (let [h, m] of Object.entries(r)) typeof m == "boolean" && (
|
|
1136
|
-
|
|
1134
|
+
let c = !1, f = [];
|
|
1135
|
+
for (let [h, m] of Object.entries(r)) typeof m == "boolean" && (c = !0), m === !0 && f.push(h);
|
|
1136
|
+
c && (u["data-headlessui-state"] = f.join(" "));
|
|
1137
1137
|
}
|
|
1138
1138
|
if (l === "template") {
|
|
1139
1139
|
if (d = ti(d ?? []), Object.keys(s).length > 0 || Object.keys(t).length > 0) {
|
|
1140
|
-
let [
|
|
1141
|
-
if (!ou(
|
|
1140
|
+
let [c, ...f] = d ?? [];
|
|
1141
|
+
if (!ou(c) || f.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((p) => p.trim()).filter((p, g, b) => b.indexOf(p) === g).sort((p, g) => p.localeCompare(g)).map((p) => ` - ${p}`).join(`
|
|
1142
1142
|
`), "", "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((p) => ` - ${p}`).join(`
|
|
1143
1143
|
`)].join(`
|
|
1144
1144
|
`));
|
|
1145
|
-
let h = ni((o =
|
|
1145
|
+
let h = ni((o = c.props) != null ? o : {}, s, u), m = qo(c, h, !0);
|
|
1146
1146
|
for (let p in h) p.startsWith("on") && (m.props || (m.props = {}), m.props[p] = h[p]);
|
|
1147
1147
|
return m;
|
|
1148
1148
|
}
|
|
@@ -1307,9 +1307,9 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
} }, a.value.getVirtualItems().map((l) => qo(t.default({ option: n.virtual.value.options[l.index], open: n.comboboxState.value === 0 })[0], { key: `${o.value}-${l.index}`, "data-index": l.index, "aria-setsize": n.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
|
|
1309
1309
|
} }), mu = R({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
|
|
1310
|
-
let a = E(1), i = E(null), o = E(null), l = E(null), s = E(null), d = E({ static: !1, hold: !1 }), u = E([]),
|
|
1310
|
+
let a = E(1), i = E(null), o = E(null), l = E(null), s = E(null), d = E({ static: !1, hold: !1 }), u = E([]), c = E(null), f = E(2), h = E(!1);
|
|
1311
1311
|
function m(B = (I) => I) {
|
|
1312
|
-
let I =
|
|
1312
|
+
let I = c.value !== null ? u.value[c.value] : null, _ = B(u.value.slice()), L = _.length > 0 && _[0].dataRef.order.value !== null ? _.sort((Y, G) => Y.dataRef.order.value - G.dataRef.order.value) : ct(_, (Y) => M(Y.dataRef.domRef)), z = I ? L.indexOf(I) : null;
|
|
1313
1313
|
return z === -1 && (z = null), { options: L, activeOptionIndex: z };
|
|
1314
1314
|
}
|
|
1315
1315
|
let p = P(() => e.multiple ? 1 : 0), g = P(() => e.nullable), [b, y] = ya(P(() => e.modelValue), (B) => r("update:modelValue", B), P(() => e.defaultValue)), w = P(() => b.value === void 0 ? be(p.value, { 1: [], 0: void 0 }) : b.value), v = null, A = null;
|
|
@@ -1317,66 +1317,66 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1317
1317
|
return be(p.value, { 0() {
|
|
1318
1318
|
return y == null ? void 0 : y(B);
|
|
1319
1319
|
}, 1: () => {
|
|
1320
|
-
let I = Ae(
|
|
1320
|
+
let I = Ae(O.value.value).slice(), _ = Ae(B), L = I.findIndex((z) => O.compare(_, Ae(z)));
|
|
1321
1321
|
return L === -1 ? I.push(_) : I.splice(L, 1), y == null ? void 0 : y(I);
|
|
1322
1322
|
} });
|
|
1323
1323
|
}
|
|
1324
|
-
let
|
|
1324
|
+
let k = P(() => {
|
|
1325
1325
|
});
|
|
1326
|
-
re([
|
|
1327
|
-
if (
|
|
1328
|
-
let _ = B.indexOf(I[
|
|
1329
|
-
_ !== -1 ?
|
|
1326
|
+
re([k], ([B], [I]) => {
|
|
1327
|
+
if (O.virtual.value && B && I && c.value !== null) {
|
|
1328
|
+
let _ = B.indexOf(I[c.value]);
|
|
1329
|
+
_ !== -1 ? c.value = _ : c.value = null;
|
|
1330
1330
|
}
|
|
1331
1331
|
});
|
|
1332
|
-
let
|
|
1332
|
+
let O = { comboboxState: a, value: w, mode: p, compare(B, I) {
|
|
1333
1333
|
if (typeof e.by == "string") {
|
|
1334
1334
|
let _ = e.by;
|
|
1335
1335
|
return (B == null ? void 0 : B[_]) === (I == null ? void 0 : I[_]);
|
|
1336
1336
|
}
|
|
1337
1337
|
return e.by === null ? du(B, I) : e.by(B, I);
|
|
1338
1338
|
}, calculateIndex(B) {
|
|
1339
|
-
return
|
|
1339
|
+
return O.virtual.value ? e.by === null ? O.virtual.value.options.indexOf(B) : O.virtual.value.options.findIndex((I) => O.compare(I, B)) : u.value.findIndex((I) => O.compare(I.dataRef.value, B));
|
|
1340
1340
|
}, defaultValue: P(() => e.defaultValue), nullable: g, immediate: P(() => !1), virtual: P(() => null), inputRef: o, labelRef: i, buttonRef: l, optionsRef: s, disabled: P(() => e.disabled), options: u, change(B) {
|
|
1341
1341
|
y(B);
|
|
1342
1342
|
}, activeOptionIndex: P(() => {
|
|
1343
|
-
if (h.value &&
|
|
1344
|
-
if (
|
|
1345
|
-
let I =
|
|
1343
|
+
if (h.value && c.value === null && (O.virtual.value ? O.virtual.value.options.length > 0 : u.value.length > 0)) {
|
|
1344
|
+
if (O.virtual.value) {
|
|
1345
|
+
let I = O.virtual.value.options.findIndex((_) => {
|
|
1346
1346
|
var L;
|
|
1347
|
-
return !((L =
|
|
1347
|
+
return !((L = O.virtual.value) != null && L.disabled(_));
|
|
1348
1348
|
});
|
|
1349
1349
|
if (I !== -1) return I;
|
|
1350
1350
|
}
|
|
1351
1351
|
let B = u.value.findIndex((I) => !I.dataRef.disabled);
|
|
1352
1352
|
if (B !== -1) return B;
|
|
1353
1353
|
}
|
|
1354
|
-
return
|
|
1355
|
-
}), activationTrigger:
|
|
1356
|
-
h.value = !1, !e.disabled && a.value !== 1 && (a.value = 1,
|
|
1354
|
+
return c.value;
|
|
1355
|
+
}), activationTrigger: f, optionsPropsRef: d, closeCombobox() {
|
|
1356
|
+
h.value = !1, !e.disabled && a.value !== 1 && (a.value = 1, c.value = null);
|
|
1357
1357
|
}, openCombobox() {
|
|
1358
1358
|
if (h.value = !0, !e.disabled && a.value !== 0) {
|
|
1359
|
-
if (
|
|
1360
|
-
let B =
|
|
1361
|
-
B !== -1 && (
|
|
1359
|
+
if (O.value.value) {
|
|
1360
|
+
let B = O.calculateIndex(O.value.value);
|
|
1361
|
+
B !== -1 && (c.value = B);
|
|
1362
1362
|
}
|
|
1363
1363
|
a.value = 0;
|
|
1364
1364
|
}
|
|
1365
1365
|
}, setActivationTrigger(B) {
|
|
1366
|
-
|
|
1366
|
+
f.value = B;
|
|
1367
1367
|
}, goToOption(B, I, _) {
|
|
1368
1368
|
h.value = !1, v !== null && cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
1369
1369
|
if (e.disabled || s.value && !d.value.static && a.value === 1) return;
|
|
1370
|
-
if (
|
|
1371
|
-
|
|
1370
|
+
if (O.virtual.value) {
|
|
1371
|
+
c.value = B === ee.Specific ? I : fr({ focus: B }, { resolveItems: () => O.virtual.value.options, resolveActiveIndex: () => {
|
|
1372
1372
|
var Y, G;
|
|
1373
|
-
return (G = (Y =
|
|
1373
|
+
return (G = (Y = O.activeOptionIndex.value) != null ? Y : O.virtual.value.options.findIndex((ae) => {
|
|
1374
1374
|
var ne;
|
|
1375
|
-
return !((ne =
|
|
1375
|
+
return !((ne = O.virtual.value) != null && ne.disabled(ae));
|
|
1376
1376
|
})) != null ? G : null;
|
|
1377
|
-
}, resolveDisabled: (Y) =>
|
|
1377
|
+
}, resolveDisabled: (Y) => O.virtual.value.disabled(Y), resolveId() {
|
|
1378
1378
|
throw new Error("Function not implemented.");
|
|
1379
|
-
} }),
|
|
1379
|
+
} }), f.value = _ ?? 2;
|
|
1380
1380
|
return;
|
|
1381
1381
|
}
|
|
1382
1382
|
let L = m();
|
|
@@ -1385,7 +1385,7 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1385
1385
|
Y !== -1 && (L.activeOptionIndex = Y);
|
|
1386
1386
|
}
|
|
1387
1387
|
let z = B === ee.Specific ? I : fr({ focus: B }, { resolveItems: () => L.options, resolveActiveIndex: () => L.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
|
|
1388
|
-
|
|
1388
|
+
c.value = z, f.value = _ ?? 2, u.value = L.options;
|
|
1389
1389
|
});
|
|
1390
1390
|
}, selectOption(B) {
|
|
1391
1391
|
let I = u.value.find((L) => L.id === B);
|
|
@@ -1393,28 +1393,28 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1393
1393
|
let { dataRef: _ } = I;
|
|
1394
1394
|
x(_.value);
|
|
1395
1395
|
}, selectActiveOption() {
|
|
1396
|
-
if (
|
|
1397
|
-
if (
|
|
1396
|
+
if (O.activeOptionIndex.value !== null) {
|
|
1397
|
+
if (O.virtual.value) x(O.virtual.value.options[O.activeOptionIndex.value]);
|
|
1398
1398
|
else {
|
|
1399
|
-
let { dataRef: B } = u.value[
|
|
1399
|
+
let { dataRef: B } = u.value[O.activeOptionIndex.value];
|
|
1400
1400
|
x(B.value);
|
|
1401
1401
|
}
|
|
1402
|
-
|
|
1402
|
+
O.goToOption(ee.Specific, O.activeOptionIndex.value);
|
|
1403
1403
|
}
|
|
1404
1404
|
}, registerOption(B, I) {
|
|
1405
1405
|
let _ = hr({ id: B, dataRef: I });
|
|
1406
|
-
if (
|
|
1406
|
+
if (O.virtual.value) {
|
|
1407
1407
|
u.value.push(_);
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
1410
|
A && cancelAnimationFrame(A);
|
|
1411
1411
|
let L = m((z) => (z.push(_), z));
|
|
1412
|
-
|
|
1412
|
+
c.value === null && O.isSelected(I.value.value) && (L.activeOptionIndex = L.options.indexOf(_)), u.value = L.options, c.value = L.activeOptionIndex, f.value = 2, L.options.some((z) => !M(z.dataRef.domRef)) && (A = requestAnimationFrame(() => {
|
|
1413
1413
|
let z = m();
|
|
1414
|
-
u.value = z.options,
|
|
1414
|
+
u.value = z.options, c.value = z.activeOptionIndex;
|
|
1415
1415
|
}));
|
|
1416
1416
|
}, unregisterOption(B, I) {
|
|
1417
|
-
if (v !== null && cancelAnimationFrame(v), I && (h.value = !0),
|
|
1417
|
+
if (v !== null && cancelAnimationFrame(v), I && (h.value = !0), O.virtual.value) {
|
|
1418
1418
|
u.value = u.value.filter((L) => L.id !== B);
|
|
1419
1419
|
return;
|
|
1420
1420
|
}
|
|
@@ -1422,13 +1422,13 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1422
1422
|
let z = L.findIndex((Y) => Y.id === B);
|
|
1423
1423
|
return z !== -1 && L.splice(z, 1), L;
|
|
1424
1424
|
});
|
|
1425
|
-
u.value = _.options,
|
|
1425
|
+
u.value = _.options, c.value = _.activeOptionIndex, f.value = 2;
|
|
1426
1426
|
}, isSelected(B) {
|
|
1427
|
-
return be(p.value, { 0: () =>
|
|
1427
|
+
return be(p.value, { 0: () => O.compare(Ae(O.value.value), Ae(B)), 1: () => Ae(O.value.value).some((I) => O.compare(Ae(I), Ae(B))) });
|
|
1428
1428
|
}, isActive(B) {
|
|
1429
|
-
return
|
|
1429
|
+
return c.value === O.calculateIndex(B);
|
|
1430
1430
|
} };
|
|
1431
|
-
wr([o, l, s], () =>
|
|
1431
|
+
wr([o, l, s], () => O.closeCombobox(), P(() => a.value === 0)), Be(li, O), Sr(P(() => be(a.value, { 0: Oe.Open, 1: Oe.Closed })));
|
|
1432
1432
|
let $ = P(() => {
|
|
1433
1433
|
var B;
|
|
1434
1434
|
return (B = M(o)) == null ? void 0 : B.closest("form");
|
|
@@ -1437,7 +1437,7 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1437
1437
|
re([$], () => {
|
|
1438
1438
|
if (!$.value || e.defaultValue === void 0) return;
|
|
1439
1439
|
function B() {
|
|
1440
|
-
|
|
1440
|
+
O.change(e.defaultValue);
|
|
1441
1441
|
}
|
|
1442
1442
|
return $.value.addEventListener("reset", B), () => {
|
|
1443
1443
|
var I;
|
|
@@ -1446,7 +1446,7 @@ let si = Symbol("VirtualContext"), vu = R({ name: "VirtualProvider", setup(e, {
|
|
|
1446
1446
|
}, { immediate: !0 });
|
|
1447
1447
|
}), () => {
|
|
1448
1448
|
var B, I, _;
|
|
1449
|
-
let { name: L, disabled: z, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: z, activeIndex:
|
|
1449
|
+
let { name: L, disabled: z, form: Y, ...G } = e, ae = { open: a.value === 0, disabled: z, activeIndex: O.activeOptionIndex.value, activeOption: O.activeOptionIndex.value === null ? null : O.virtual.value ? O.virtual.value.options[(B = O.activeOptionIndex.value) != null ? B : 0] : (_ = (I = O.options.value[O.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? _ : null, value: w.value };
|
|
1450
1450
|
return de(me, [...L != null && w.value != null ? Or({ [L]: w.value }).map(([ne, fe]) => de($t, xa({ features: Mt.Hidden, key: ne, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: Y, disabled: z, name: ne, value: fe }))) : [], ue({ theirProps: { ...n, ...Lt(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
|
|
1451
1451
|
};
|
|
1452
1452
|
} });
|
|
@@ -1468,40 +1468,40 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1468
1468
|
r({ el: o.buttonRef, $el: o.buttonRef });
|
|
1469
1469
|
function l(u) {
|
|
1470
1470
|
o.disabled.value || (o.comboboxState.value === 0 ? o.closeCombobox() : (u.preventDefault(), o.openCombobox()), ye(() => {
|
|
1471
|
-
var
|
|
1472
|
-
return (
|
|
1471
|
+
var c;
|
|
1472
|
+
return (c = M(o.inputRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
1473
1473
|
}));
|
|
1474
1474
|
}
|
|
1475
1475
|
function s(u) {
|
|
1476
1476
|
switch (u.key) {
|
|
1477
1477
|
case W.ArrowDown:
|
|
1478
1478
|
u.preventDefault(), u.stopPropagation(), o.comboboxState.value === 1 && o.openCombobox(), ye(() => {
|
|
1479
|
-
var
|
|
1480
|
-
return (
|
|
1479
|
+
var c;
|
|
1480
|
+
return (c = o.inputRef.value) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
1481
1481
|
});
|
|
1482
1482
|
return;
|
|
1483
1483
|
case W.ArrowUp:
|
|
1484
1484
|
u.preventDefault(), u.stopPropagation(), o.comboboxState.value === 1 && (o.openCombobox(), ye(() => {
|
|
1485
1485
|
o.value.value || o.goToOption(ee.Last);
|
|
1486
1486
|
})), ye(() => {
|
|
1487
|
-
var
|
|
1488
|
-
return (
|
|
1487
|
+
var c;
|
|
1488
|
+
return (c = o.inputRef.value) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
1489
1489
|
});
|
|
1490
1490
|
return;
|
|
1491
1491
|
case W.Escape:
|
|
1492
1492
|
if (o.comboboxState.value !== 0) return;
|
|
1493
1493
|
u.preventDefault(), o.optionsRef.value && !o.optionsPropsRef.value.static && u.stopPropagation(), o.closeCombobox(), ye(() => {
|
|
1494
|
-
var
|
|
1495
|
-
return (
|
|
1494
|
+
var c;
|
|
1495
|
+
return (c = o.inputRef.value) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
1496
1496
|
});
|
|
1497
1497
|
return;
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
let d = xr(P(() => ({ as: e.as, type: t.type })), o.buttonRef);
|
|
1501
1501
|
return () => {
|
|
1502
|
-
var u,
|
|
1503
|
-
let
|
|
1504
|
-
return ue({ ourProps: m, theirProps: h, slot:
|
|
1502
|
+
var u, c;
|
|
1503
|
+
let f = { open: o.comboboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { ...h } = e, m = { ref: o.buttonRef, id: i, type: d.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (u = M(o.optionsRef)) == null ? void 0 : u.id, "aria-expanded": o.comboboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(c = M(o.labelRef)) == null ? void 0 : c.id, i].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: s, onClick: l };
|
|
1504
|
+
return ue({ ourProps: m, theirProps: h, slot: f, attrs: t, slots: n, name: "ComboboxButton" });
|
|
1505
1505
|
};
|
|
1506
1506
|
} }), gu = R({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
|
|
1507
1507
|
var i;
|
|
@@ -1512,16 +1512,16 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1512
1512
|
let A = M(l.optionsRef);
|
|
1513
1513
|
A && (A.scrollTop = 0), l.goToOption(ee.Nothing);
|
|
1514
1514
|
}
|
|
1515
|
-
let
|
|
1515
|
+
let c = P(() => {
|
|
1516
1516
|
var A;
|
|
1517
1517
|
let x = l.value.value;
|
|
1518
1518
|
return M(l.inputRef) ? typeof e.displayValue < "u" && x !== void 0 ? (A = e.displayValue(x)) != null ? A : "" : typeof x == "string" ? x : "" : "";
|
|
1519
1519
|
});
|
|
1520
1520
|
te(() => {
|
|
1521
|
-
re([
|
|
1521
|
+
re([c, l.comboboxState, s], ([A, x], [k, O]) => {
|
|
1522
1522
|
if (d.value) return;
|
|
1523
1523
|
let $ = M(l.inputRef);
|
|
1524
|
-
$ && ((
|
|
1524
|
+
$ && ((O === 0 && x === 1 || A !== k) && ($.value = A), requestAnimationFrame(() => {
|
|
1525
1525
|
var B;
|
|
1526
1526
|
if (d.value || !$ || ((B = s.value) == null ? void 0 : B.activeElement) !== $) return;
|
|
1527
1527
|
let { selectionStart: I, selectionEnd: _ } = $;
|
|
@@ -1530,20 +1530,20 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1530
1530
|
}, { immediate: !0 }), re([l.comboboxState], ([A], [x]) => {
|
|
1531
1531
|
if (A === 0 && x === 1) {
|
|
1532
1532
|
if (d.value) return;
|
|
1533
|
-
let
|
|
1534
|
-
if (!
|
|
1535
|
-
let
|
|
1536
|
-
|
|
1533
|
+
let k = M(l.inputRef);
|
|
1534
|
+
if (!k) return;
|
|
1535
|
+
let O = k.value, { selectionStart: $, selectionEnd: B, selectionDirection: I } = k;
|
|
1536
|
+
k.value = "", k.value = O, I !== null ? k.setSelectionRange($, B, I) : k.setSelectionRange($, B);
|
|
1537
1537
|
}
|
|
1538
1538
|
});
|
|
1539
1539
|
});
|
|
1540
|
-
let
|
|
1540
|
+
let f = E(!1);
|
|
1541
1541
|
function h() {
|
|
1542
|
-
|
|
1542
|
+
f.value = !0;
|
|
1543
1543
|
}
|
|
1544
1544
|
function m() {
|
|
1545
1545
|
It().nextFrame(() => {
|
|
1546
|
-
|
|
1546
|
+
f.value = !1;
|
|
1547
1547
|
});
|
|
1548
1548
|
}
|
|
1549
1549
|
let p = Ys();
|
|
@@ -1552,7 +1552,7 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1552
1552
|
d.value = !1;
|
|
1553
1553
|
}), A.key) {
|
|
1554
1554
|
case W.Enter:
|
|
1555
|
-
if (d.value = !1, l.comboboxState.value !== 0 ||
|
|
1555
|
+
if (d.value = !1, l.comboboxState.value !== 0 || f.value) return;
|
|
1556
1556
|
if (A.preventDefault(), A.stopPropagation(), l.activeOptionIndex.value === null) {
|
|
1557
1557
|
l.closeCombobox();
|
|
1558
1558
|
return;
|
|
@@ -1591,24 +1591,24 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1591
1591
|
t("change", A), l.nullable.value && l.mode.value === 0 && A.target.value === "" && u(), l.openCombobox();
|
|
1592
1592
|
}
|
|
1593
1593
|
function y(A) {
|
|
1594
|
-
var x,
|
|
1594
|
+
var x, k, O;
|
|
1595
1595
|
let $ = (x = A.relatedTarget) != null ? x : At.find((B) => B !== A.currentTarget);
|
|
1596
|
-
if (d.value = !1, !((
|
|
1596
|
+
if (d.value = !1, !((k = M(l.optionsRef)) != null && k.contains($)) && !((O = M(l.buttonRef)) != null && O.contains($)) && l.comboboxState.value === 0) return A.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? u() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
|
|
1597
1597
|
}
|
|
1598
1598
|
function w(A) {
|
|
1599
|
-
var x,
|
|
1599
|
+
var x, k, O;
|
|
1600
1600
|
let $ = (x = A.relatedTarget) != null ? x : At.find((B) => B !== A.currentTarget);
|
|
1601
|
-
(
|
|
1601
|
+
(k = M(l.buttonRef)) != null && k.contains($) || (O = M(l.optionsRef)) != null && O.contains($) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), It().nextFrame(() => {
|
|
1602
1602
|
l.setActivationTrigger(1);
|
|
1603
1603
|
}));
|
|
1604
1604
|
}
|
|
1605
1605
|
let v = P(() => {
|
|
1606
|
-
var A, x,
|
|
1607
|
-
return (
|
|
1606
|
+
var A, x, k, O;
|
|
1607
|
+
return (O = (k = (x = e.defaultValue) != null ? x : l.defaultValue.value !== void 0 ? (A = e.displayValue) == null ? void 0 : A.call(e, l.defaultValue.value) : null) != null ? k : l.defaultValue.value) != null ? O : "";
|
|
1608
1608
|
});
|
|
1609
1609
|
return () => {
|
|
1610
|
-
var A, x,
|
|
1611
|
-
let _ = { open: l.comboboxState.value === 0 }, { displayValue: L, onChange: z, ...Y } = e, G = { "aria-controls": (A = l.optionsRef.value) == null ? void 0 : A.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (x = 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 : x.id : (
|
|
1610
|
+
var A, x, k, O, $, B, I;
|
|
1611
|
+
let _ = { open: l.comboboxState.value === 0 }, { displayValue: L, onChange: z, ...Y } = e, G = { "aria-controls": (A = l.optionsRef.value) == null ? void 0 : A.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (x = 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 : x.id : (k = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : k.id, "aria-labelledby": (B = (O = M(l.labelRef)) == null ? void 0 : O.id) != null ? B : ($ = M(l.buttonRef)) == null ? void 0 : $.id, "aria-autocomplete": "list", id: o, onCompositionstart: h, onCompositionend: m, onKeydown: g, onInput: b, onFocus: w, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: l.inputRef, defaultValue: v.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
|
|
1612
1612
|
return ue({ ourProps: G, theirProps: Y, slot: _, attrs: n, slots: r, features: je.RenderStrategy | je.Static, name: "ComboboxInput" });
|
|
1613
1613
|
};
|
|
1614
1614
|
} }), bu = 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 }) {
|
|
@@ -1628,9 +1628,9 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1628
1628
|
d.preventDefault();
|
|
1629
1629
|
}
|
|
1630
1630
|
return () => {
|
|
1631
|
-
var d, u,
|
|
1632
|
-
let
|
|
1633
|
-
return ue({ ourProps: h, theirProps: m, slot:
|
|
1631
|
+
var d, u, c;
|
|
1632
|
+
let f = { open: a.comboboxState.value === 0 }, h = { "aria-labelledby": (c = (d = M(a.labelRef)) == null ? void 0 : d.id) != null ? c : (u = M(a.buttonRef)) == null ? void 0 : u.id, id: i, ref: a.optionsRef, role: "listbox", "aria-multiselectable": a.mode.value === 1 ? !0 : void 0, onMousedown: s }, m = Lt(e, ["hold"]);
|
|
1633
|
+
return ue({ ourProps: h, theirProps: m, slot: f, attrs: t, slots: a.virtual.value && a.comboboxState.value === 0 ? { ...n, default: () => [de(vu, {}, n.default)] } : n, features: je.RenderStrategy | je.Static, visible: l.value, name: "ComboboxOptions" });
|
|
1634
1634
|
};
|
|
1635
1635
|
} }), yu = R({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
|
|
1636
1636
|
let a = Jt("ComboboxOption"), i = `headlessui-combobox-option-${Ee()}`, o = E(null), l = P(() => e.disabled);
|
|
@@ -1638,8 +1638,8 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1638
1638
|
let s = P(() => {
|
|
1639
1639
|
var y;
|
|
1640
1640
|
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) === i;
|
|
1641
|
-
}), d = P(() => a.isSelected(e.value)), u = Pe(si, null),
|
|
1642
|
-
te(() => a.registerOption(i,
|
|
1641
|
+
}), d = P(() => a.isSelected(e.value)), u = Pe(si, null), c = P(() => ({ disabled: e.disabled, value: e.value, domRef: o, order: P(() => e.order) }));
|
|
1642
|
+
te(() => a.registerOption(i, c)), Ie(() => a.unregisterOption(i, s.value)), Te(() => {
|
|
1643
1643
|
let y = M(o);
|
|
1644
1644
|
y && (u == null || u.value.measureElement(y));
|
|
1645
1645
|
}), Te(() => {
|
|
@@ -1648,7 +1648,7 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1648
1648
|
return (w = (y = M(o)) == null ? void 0 : y.scrollIntoView) == null ? void 0 : w.call(y, { block: "nearest" });
|
|
1649
1649
|
}));
|
|
1650
1650
|
});
|
|
1651
|
-
function
|
|
1651
|
+
function f(y) {
|
|
1652
1652
|
y.preventDefault(), y.button === ai.Left && (l.value || (a.selectOption(i), Zo() || requestAnimationFrame(() => {
|
|
1653
1653
|
var w;
|
|
1654
1654
|
return (w = M(a.inputRef)) == null ? void 0 : w.focus({ preventScroll: !0 });
|
|
@@ -1675,7 +1675,7 @@ let hu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1675
1675
|
m.wasMoved(y) && (e.disabled || (w = a.virtual.value) != null && w.disabled(e.value) || s.value && (a.optionsPropsRef.value.hold || a.goToOption(ee.Nothing)));
|
|
1676
1676
|
}
|
|
1677
1677
|
return () => {
|
|
1678
|
-
let { disabled: y } = e, w = { active: s.value, selected: d.value, disabled: y }, v = { id: i, ref: o, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown:
|
|
1678
|
+
let { disabled: y } = e, w = { active: s.value, selected: d.value, disabled: y }, v = { id: i, ref: o, role: "option", tabIndex: y === !0 ? void 0 : -1, "aria-disabled": y === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onMousedown: f, onFocus: h, onPointerenter: p, onMouseenter: p, onPointermove: g, onMousemove: g, onPointerleave: b, onMouseleave: b }, A = Lt(e, ["order", "value"]);
|
|
1679
1679
|
return ue({ ourProps: v, theirProps: A, slot: w, attrs: n, slots: t, name: "ComboboxOption" });
|
|
1680
1680
|
};
|
|
1681
1681
|
} });
|
|
@@ -1721,12 +1721,12 @@ let An = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
1723
|
let u = E(!1);
|
|
1724
|
-
function
|
|
1724
|
+
function c(h) {
|
|
1725
1725
|
h.key === "Tab" && (u.value = !0, requestAnimationFrame(() => {
|
|
1726
1726
|
u.value = !1;
|
|
1727
1727
|
}));
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function f(h) {
|
|
1730
1730
|
if (!o.value) return;
|
|
1731
1731
|
let m = di(e.containers);
|
|
1732
1732
|
M(a) instanceof HTMLElement && m.add(M(a));
|
|
@@ -1734,7 +1734,7 @@ let An = Object.assign(R({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1734
1734
|
p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (fi(m, p) || (u.value ? qe(M(a), be(s.value, { [Cn.Forwards]: () => Ce.Next, [Cn.Backwards]: () => Ce.Previous }) | Ce.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Tt(h.target)));
|
|
1735
1735
|
}
|
|
1736
1736
|
return () => {
|
|
1737
|
-
let h = {}, m = { ref: a, onKeydown:
|
|
1737
|
+
let h = {}, m = { ref: a, onKeydown: c, onFocusout: f }, { features: p, initialFocus: g, containers: b, ...y } = e;
|
|
1738
1738
|
return de(me, [!!(p & 4) && de($t, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Mt.Focusable }), ue({ ourProps: m, theirProps: { ...t, ...y }, slot: h, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && de($t, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: d, features: Mt.Focusable })]);
|
|
1739
1739
|
};
|
|
1740
1740
|
} }), { features: ci });
|
|
@@ -1769,17 +1769,17 @@ function Su({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
|
1769
1769
|
s && br(() => {
|
|
1770
1770
|
var d, u;
|
|
1771
1771
|
if (!i.value) return;
|
|
1772
|
-
let
|
|
1773
|
-
if (
|
|
1774
|
-
if (
|
|
1775
|
-
a.value =
|
|
1772
|
+
let c = M(n), f = (d = e.value) == null ? void 0 : d.activeElement;
|
|
1773
|
+
if (c) {
|
|
1774
|
+
if (c === f) {
|
|
1775
|
+
a.value = f;
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
|
-
} else if (s.contains(
|
|
1779
|
-
a.value =
|
|
1778
|
+
} else if (s.contains(f)) {
|
|
1779
|
+
a.value = f;
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
|
-
|
|
1782
|
+
c ? Tt(c) : qe(s, Ce.First | Ce.NoScroll) === Et.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), a.value = (u = e.value) == null ? void 0 : u.activeElement;
|
|
1783
1783
|
});
|
|
1784
1784
|
}, { immediate: !0, flush: "post" });
|
|
1785
1785
|
}), a;
|
|
@@ -1944,7 +1944,7 @@ function Iu({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
|
|
|
1944
1944
|
let d = [];
|
|
1945
1945
|
for (let u of e) u !== null && (u instanceof HTMLElement ? d.push(u) : "value" in u && u.value instanceof HTMLElement && d.push(u.value));
|
|
1946
1946
|
if (t != null && t.value) for (let u of t.value) d.push(u);
|
|
1947
|
-
for (let u of (o = a == null ? void 0 : a.querySelectorAll("html > *, body > *")) != null ? o : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(M(r)) || u.contains((s = (l = M(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((
|
|
1947
|
+
for (let u of (o = a == null ? void 0 : a.querySelectorAll("html > *, body > *")) != null ? o : []) u !== document.body && u !== document.head && u instanceof HTMLElement && u.id !== "headlessui-portal-root" && (u.contains(M(r)) || u.contains((s = (l = M(r)) == null ? void 0 : l.getRootNode()) == null ? void 0 : s.host) || d.some((c) => u.contains(c)) || d.push(u));
|
|
1948
1948
|
return d;
|
|
1949
1949
|
}
|
|
1950
1950
|
return { resolveContainers: i, contains(o) {
|
|
@@ -2001,7 +2001,7 @@ R({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
2001
2001
|
var r;
|
|
2002
2002
|
let a = (r = e.id) != null ? r : `headlessui-description-${Ee()}`, i = Lu();
|
|
2003
2003
|
return te(() => Ie(i.register(a))), () => {
|
|
2004
|
-
let { name: o = "Description", slot: l = E({}), props: s = {} } = i, { ...d } = e, u = { ...Object.entries(s).reduce((
|
|
2004
|
+
let { name: o = "Description", slot: l = E({}), props: s = {} } = i, { ...d } = e, u = { ...Object.entries(s).reduce((c, [f, h]) => Object.assign(c, { [f]: V(h) }), {}), id: a };
|
|
2005
2005
|
return ue({ ourProps: u, theirProps: d, slot: l.value, attrs: t, slots: n, name: o });
|
|
2006
2006
|
};
|
|
2007
2007
|
} });
|
|
@@ -2027,26 +2027,26 @@ function no(e, t) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
let hi = R({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
2029
2029
|
let r = E(null), a = P(() => He(r)), i = Mu(), o = Pe(gi, null), l = E(i === !0 || o == null ? _u(r.value) : o.resolveTarget());
|
|
2030
|
-
l.value && no(l.value, (
|
|
2030
|
+
l.value && no(l.value, (f) => f + 1);
|
|
2031
2031
|
let s = E(!1);
|
|
2032
2032
|
te(() => {
|
|
2033
2033
|
s.value = !0;
|
|
2034
2034
|
}), Te(() => {
|
|
2035
2035
|
i || o != null && (l.value = o.resolveTarget());
|
|
2036
2036
|
});
|
|
2037
|
-
let d = Pe(ea, null), u = !1,
|
|
2037
|
+
let d = Pe(ea, null), u = !1, c = Ho();
|
|
2038
2038
|
return re(r, () => {
|
|
2039
2039
|
if (u || !d) return;
|
|
2040
|
-
let
|
|
2041
|
-
|
|
2040
|
+
let f = M(r);
|
|
2041
|
+
f && (Ie(d.register(f), c), u = !0);
|
|
2042
2042
|
}), Ie(() => {
|
|
2043
|
-
var
|
|
2044
|
-
let m = (
|
|
2043
|
+
var f, h;
|
|
2044
|
+
let m = (f = a.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
|
|
2045
2045
|
!m || l.value !== m || no(l.value, (p) => p - 1) || l.value.children.length > 0 || (h = l.value.parentElement) == null || h.removeChild(l.value);
|
|
2046
2046
|
}), () => {
|
|
2047
2047
|
if (!s.value || l.value === null) return null;
|
|
2048
|
-
let
|
|
2049
|
-
return de(_l, { to: l.value }, ue({ ourProps:
|
|
2048
|
+
let f = { ref: r, "data-headlessui-portal": "" };
|
|
2049
|
+
return de(_l, { to: l.value }, ue({ ourProps: f, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
2050
2050
|
};
|
|
2051
2051
|
} }), ea = Symbol("PortalParentContext");
|
|
2052
2052
|
function Vu() {
|
|
@@ -2091,23 +2091,23 @@ let er = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
|
|
|
2091
2091
|
te(() => {
|
|
2092
2092
|
s.value = !0;
|
|
2093
2093
|
});
|
|
2094
|
-
let d = !1, u = P(() => 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")),
|
|
2095
|
-
if (a({ el: m, $el: m }), !(e.open !== er ||
|
|
2094
|
+
let d = !1, u = P(() => 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 = gn(), h = P(() => e.open === er && f !== null ? (f.value & Oe.Open) === Oe.Open : e.open), m = E(null), p = P(() => He(m));
|
|
2095
|
+
if (a({ el: m, $el: m }), !(e.open !== er || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2096
2096
|
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 === er ? void 0 : e.open}`);
|
|
2097
|
-
let g = P(() => s.value && h.value ? 0 : 1), b = P(() => g.value === 0), y = P(() =>
|
|
2097
|
+
let g = P(() => s.value && h.value ? 0 : 1), b = P(() => g.value === 0), y = P(() => c.value > 1), w = Pe(ta, null) !== null, [v, A] = Vu(), { resolveContainers: x, mainTreeNodeRef: k, MainTreeNode: O } = Iu({ portals: v, defaultContainers: [P(() => {
|
|
2098
2098
|
var Z;
|
|
2099
2099
|
return (Z = ae.panelRef.value) != null ? Z : m.value;
|
|
2100
|
-
})] }), $ = P(() => y.value ? "parent" : "leaf"), B = P(() =>
|
|
2100
|
+
})] }), $ = P(() => y.value ? "parent" : "leaf"), B = P(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = P(() => w || B.value ? !1 : b.value), _ = P(() => {
|
|
2101
2101
|
var Z, ie, Se;
|
|
2102
|
-
return (Se = Array.from((ie = (Z = p.value) == null ? void 0 : Z.querySelectorAll("body > *")) != null ? ie : []).find((ve) => ve.id === "headlessui-portal-root" ? !1 : ve.contains(M(
|
|
2102
|
+
return (Se = Array.from((ie = (Z = p.value) == null ? void 0 : Z.querySelectorAll("body > *")) != null ? ie : []).find((ve) => ve.id === "headlessui-portal-root" ? !1 : ve.contains(M(k)) && ve instanceof HTMLElement)) != null ? Se : null;
|
|
2103
2103
|
});
|
|
2104
2104
|
to(_, I);
|
|
2105
2105
|
let L = P(() => y.value ? !0 : b.value), z = P(() => {
|
|
2106
2106
|
var Z, ie, Se;
|
|
2107
|
-
return (Se = Array.from((ie = (Z = p.value) == null ? void 0 : Z.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((ve) => ve.contains(M(
|
|
2107
|
+
return (Se = Array.from((ie = (Z = p.value) == null ? void 0 : Z.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((ve) => ve.contains(M(k)) && ve instanceof HTMLElement)) != null ? Se : null;
|
|
2108
2108
|
});
|
|
2109
2109
|
to(z, L), Ru({ type: "Dialog", enabled: P(() => g.value === 0), element: m, onUpdate: (Z, ie) => {
|
|
2110
|
-
if (ie === "Dialog") return be(Z, { [Jr.Add]: () =>
|
|
2110
|
+
if (ie === "Dialog") return be(Z, { [Jr.Add]: () => c.value += 1, [Jr.Remove]: () => c.value -= 1 });
|
|
2111
2111
|
} });
|
|
2112
2112
|
let Y = Sa({ name: "DialogDescription", slot: P(() => ({ open: h.value })) }), G = E(null), ae = { titleId: G, panelRef: E(null), dialogState: g, setTitleId(Z) {
|
|
2113
2113
|
G.value !== Z && (G.value = Z);
|
|
@@ -2140,7 +2140,7 @@ let er = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
|
|
|
2140
2140
|
Se.observe(ie), Z(() => Se.disconnect());
|
|
2141
2141
|
}), () => {
|
|
2142
2142
|
let { open: Z, initialFocus: ie, ...Se } = e, ve = { ...n, ref: m, id: l, role: u.value, "aria-modal": g.value === 0 ? !0 : void 0, "aria-labelledby": G.value, "aria-describedby": Y.value }, we = { open: g.value === 0 };
|
|
2143
|
-
return de(Kr, { force: !0 }, () => [de(hi, () => de(Nu, { target: m.value }, () => de(Kr, { force: !1 }, () => de(An, { initialFocus: ie, containers: x, features: b.value ? be($.value, { parent: An.features.RestoreFocus, leaf: An.features.All & ~An.features.FocusLock }) : An.features.None }, () => de(A, {}, () => ue({ ourProps: ve, theirProps: { ...Se, ...n }, slot: we, attrs: n, slots: r, visible: g.value === 0, features: je.RenderStrategy | je.Static, name: "Dialog" })))))), de(
|
|
2143
|
+
return de(Kr, { force: !0 }, () => [de(hi, () => de(Nu, { target: m.value }, () => de(Kr, { force: !1 }, () => de(An, { initialFocus: ie, containers: x, features: b.value ? be($.value, { parent: An.features.RestoreFocus, leaf: An.features.All & ~An.features.FocusLock }) : An.features.None }, () => de(A, {}, () => ue({ ourProps: ve, theirProps: { ...Se, ...n }, slot: we, attrs: n, slots: r, visible: g.value === 0, features: je.RenderStrategy | je.Static, name: "Dialog" })))))), de(O)]);
|
|
2144
2144
|
};
|
|
2145
2145
|
} });
|
|
2146
2146
|
R({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -2241,9 +2241,9 @@ function Wn(e) {
|
|
|
2241
2241
|
return t;
|
|
2242
2242
|
}
|
|
2243
2243
|
let Gu = R({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => Uu }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
|
|
2244
|
-
let a = E(1), i = E(null), o = E(null), l = E(null), s = E([]), d = E(""), u = E(null),
|
|
2245
|
-
function
|
|
2246
|
-
let v = u.value !== null ? s.value[u.value] : null, A = ct(w(s.value.slice()), (
|
|
2244
|
+
let a = E(1), i = E(null), o = E(null), l = E(null), s = E([]), d = E(""), u = E(null), c = E(1);
|
|
2245
|
+
function f(w = (v) => v) {
|
|
2246
|
+
let v = u.value !== null ? s.value[u.value] : null, A = ct(w(s.value.slice()), (k) => M(k.dataRef.domRef)), x = v ? A.indexOf(v) : null;
|
|
2247
2247
|
return x === -1 && (x = null), { options: A, activeOptionIndex: x };
|
|
2248
2248
|
}
|
|
2249
2249
|
let h = P(() => e.multiple ? 1 : 0), [m, p] = ya(P(() => e.modelValue), (w) => r("update:modelValue", w), P(() => e.defaultValue)), g = P(() => m.value === void 0 ? be(h.value, { 1: [], 0: void 0 }) : m.value), b = { listboxState: a, value: g, mode: h, compare(w, v) {
|
|
@@ -2252,36 +2252,36 @@ let Gu = R({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
2252
2252
|
return (w == null ? void 0 : w[A]) === (v == null ? void 0 : v[A]);
|
|
2253
2253
|
}
|
|
2254
2254
|
return e.by(w, v);
|
|
2255
|
-
}, orientation: P(() => e.horizontal ? "horizontal" : "vertical"), labelRef: i, buttonRef: o, optionsRef: l, disabled: P(() => e.disabled), options: s, searchQuery: d, activeOptionIndex: u, activationTrigger:
|
|
2255
|
+
}, orientation: P(() => e.horizontal ? "horizontal" : "vertical"), labelRef: i, buttonRef: o, optionsRef: l, disabled: P(() => e.disabled), options: s, searchQuery: d, activeOptionIndex: u, activationTrigger: c, closeListbox() {
|
|
2256
2256
|
e.disabled || a.value !== 1 && (a.value = 1, u.value = null);
|
|
2257
2257
|
}, openListbox() {
|
|
2258
2258
|
e.disabled || a.value !== 0 && (a.value = 0);
|
|
2259
2259
|
}, goToOption(w, v, A) {
|
|
2260
2260
|
if (e.disabled || a.value === 1) return;
|
|
2261
|
-
let x =
|
|
2262
|
-
d.value = "", u.value =
|
|
2261
|
+
let x = f(), k = fr(w === ee.Specific ? { focus: ee.Specific, id: v } : { focus: w }, { resolveItems: () => x.options, resolveActiveIndex: () => x.activeOptionIndex, resolveId: (O) => O.id, resolveDisabled: (O) => O.dataRef.disabled });
|
|
2262
|
+
d.value = "", u.value = k, c.value = A ?? 1, s.value = x.options;
|
|
2263
2263
|
}, search(w) {
|
|
2264
2264
|
if (e.disabled || a.value === 1) return;
|
|
2265
2265
|
let v = d.value !== "" ? 0 : 1;
|
|
2266
2266
|
d.value += w.toLowerCase();
|
|
2267
|
-
let A = (u.value !== null ? s.value.slice(u.value + v).concat(s.value.slice(0, u.value + v)) : s.value).find((
|
|
2268
|
-
x === -1 || x === u.value || (u.value = x,
|
|
2267
|
+
let A = (u.value !== null ? s.value.slice(u.value + v).concat(s.value.slice(0, u.value + v)) : s.value).find((k) => k.dataRef.textValue.startsWith(d.value) && !k.dataRef.disabled), x = A ? s.value.indexOf(A) : -1;
|
|
2268
|
+
x === -1 || x === u.value || (u.value = x, c.value = 1);
|
|
2269
2269
|
}, clearSearch() {
|
|
2270
2270
|
e.disabled || a.value !== 1 && d.value !== "" && (d.value = "");
|
|
2271
2271
|
}, registerOption(w, v) {
|
|
2272
|
-
let A =
|
|
2272
|
+
let A = f((x) => [...x, { id: w, dataRef: v }]);
|
|
2273
2273
|
s.value = A.options, u.value = A.activeOptionIndex;
|
|
2274
2274
|
}, unregisterOption(w) {
|
|
2275
|
-
let v =
|
|
2276
|
-
let x = A.findIndex((
|
|
2275
|
+
let v = f((A) => {
|
|
2276
|
+
let x = A.findIndex((k) => k.id === w);
|
|
2277
2277
|
return x !== -1 && A.splice(x, 1), A;
|
|
2278
2278
|
});
|
|
2279
|
-
s.value = v.options, u.value = v.activeOptionIndex,
|
|
2279
|
+
s.value = v.options, u.value = v.activeOptionIndex, c.value = 1;
|
|
2280
2280
|
}, theirOnChange(w) {
|
|
2281
2281
|
e.disabled || p(w);
|
|
2282
2282
|
}, select(w) {
|
|
2283
2283
|
e.disabled || p(be(h.value, { 0: () => w, 1: () => {
|
|
2284
|
-
let v = Ae(b.value.value).slice(), A = Ae(w), x = v.findIndex((
|
|
2284
|
+
let v = Ae(b.value.value).slice(), A = Ae(w), x = v.findIndex((k) => b.compare(A, Ae(k)));
|
|
2285
2285
|
return x === -1 ? v.push(A) : v.splice(x, 1), v;
|
|
2286
2286
|
} }));
|
|
2287
2287
|
} };
|
|
@@ -2305,8 +2305,8 @@ let Gu = R({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
|
|
|
2305
2305
|
};
|
|
2306
2306
|
}, { immediate: !0 });
|
|
2307
2307
|
}), () => {
|
|
2308
|
-
let { name: w, modelValue: v, disabled: A, form: x, ...
|
|
2309
|
-
return de(me, [...w != null && g.value != null ? Or({ [w]: g.value }).map(([$, B]) => de($t, xa({ features: Mt.Hidden, key: $, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: x, disabled: A, name: $, value: B }))) : [], ue({ ourProps: {}, theirProps: { ...n, ...Lt(
|
|
2308
|
+
let { name: w, modelValue: v, disabled: A, form: x, ...k } = e, O = { open: a.value === 0, disabled: A, value: g.value };
|
|
2309
|
+
return de(me, [...w != null && g.value != null ? Or({ [w]: g.value }).map(([$, B]) => de($t, xa({ features: Mt.Hidden, key: $, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: x, disabled: A, name: $, value: B }))) : [], ue({ ourProps: {}, theirProps: { ...n, ...Lt(k, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: O, slots: t, attrs: n, name: "Listbox" })]);
|
|
2310
2310
|
};
|
|
2311
2311
|
} });
|
|
2312
2312
|
R({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -2325,92 +2325,92 @@ let Ku = R({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
2325
2325
|
var a;
|
|
2326
2326
|
let i = (a = e.id) != null ? a : `headlessui-listbox-button-${Ee()}`, o = Wn("ListboxButton");
|
|
2327
2327
|
r({ el: o.buttonRef, $el: o.buttonRef });
|
|
2328
|
-
function l(
|
|
2329
|
-
switch (
|
|
2328
|
+
function l(c) {
|
|
2329
|
+
switch (c.key) {
|
|
2330
2330
|
case W.Space:
|
|
2331
2331
|
case W.Enter:
|
|
2332
2332
|
case W.ArrowDown:
|
|
2333
|
-
|
|
2334
|
-
var
|
|
2335
|
-
(
|
|
2333
|
+
c.preventDefault(), o.openListbox(), ye(() => {
|
|
2334
|
+
var f;
|
|
2335
|
+
(f = M(o.optionsRef)) == null || f.focus({ preventScroll: !0 }), o.value.value || o.goToOption(ee.First);
|
|
2336
2336
|
});
|
|
2337
2337
|
break;
|
|
2338
2338
|
case W.ArrowUp:
|
|
2339
|
-
|
|
2340
|
-
var
|
|
2341
|
-
(
|
|
2339
|
+
c.preventDefault(), o.openListbox(), ye(() => {
|
|
2340
|
+
var f;
|
|
2341
|
+
(f = M(o.optionsRef)) == null || f.focus({ preventScroll: !0 }), o.value.value || o.goToOption(ee.Last);
|
|
2342
2342
|
});
|
|
2343
2343
|
break;
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
|
-
function s(
|
|
2347
|
-
switch (
|
|
2346
|
+
function s(c) {
|
|
2347
|
+
switch (c.key) {
|
|
2348
2348
|
case W.Space:
|
|
2349
|
-
|
|
2349
|
+
c.preventDefault();
|
|
2350
2350
|
break;
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
|
-
function d(
|
|
2353
|
+
function d(c) {
|
|
2354
2354
|
o.disabled.value || (o.listboxState.value === 0 ? (o.closeListbox(), ye(() => {
|
|
2355
|
-
var
|
|
2356
|
-
return (
|
|
2357
|
-
})) : (
|
|
2358
|
-
var
|
|
2359
|
-
return (
|
|
2355
|
+
var f;
|
|
2356
|
+
return (f = M(o.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2357
|
+
})) : (c.preventDefault(), o.openListbox(), Qu(() => {
|
|
2358
|
+
var f;
|
|
2359
|
+
return (f = M(o.optionsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2360
2360
|
})));
|
|
2361
2361
|
}
|
|
2362
2362
|
let u = xr(P(() => ({ as: e.as, type: t.type })), o.buttonRef);
|
|
2363
2363
|
return () => {
|
|
2364
|
-
var
|
|
2365
|
-
let h = { open: o.listboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { ...m } = e, p = { ref: o.buttonRef, id: i, type: u.value, "aria-haspopup": "listbox", "aria-controls": (
|
|
2364
|
+
var c, f;
|
|
2365
|
+
let h = { open: o.listboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { ...m } = e, p = { ref: o.buttonRef, id: i, type: u.value, "aria-haspopup": "listbox", "aria-controls": (c = M(o.optionsRef)) == null ? void 0 : c.id, "aria-expanded": o.listboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(f = M(o.labelRef)) == null ? void 0 : f.id, i].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: l, onKeyup: s, onClick: d };
|
|
2366
2366
|
return ue({ ourProps: p, theirProps: m, slot: h, attrs: t, slots: n, name: "ListboxButton" });
|
|
2367
2367
|
};
|
|
2368
2368
|
} }), Ju = R({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2369
2369
|
var a;
|
|
2370
2370
|
let i = (a = e.id) != null ? a : `headlessui-listbox-options-${Ee()}`, o = Wn("ListboxOptions"), l = E(null);
|
|
2371
2371
|
r({ el: o.optionsRef, $el: o.optionsRef });
|
|
2372
|
-
function s(
|
|
2373
|
-
switch (l.value && clearTimeout(l.value),
|
|
2372
|
+
function s(c) {
|
|
2373
|
+
switch (l.value && clearTimeout(l.value), c.key) {
|
|
2374
2374
|
case W.Space:
|
|
2375
|
-
if (o.searchQuery.value !== "") return
|
|
2375
|
+
if (o.searchQuery.value !== "") return c.preventDefault(), c.stopPropagation(), o.search(c.key);
|
|
2376
2376
|
case W.Enter:
|
|
2377
|
-
if (
|
|
2378
|
-
let
|
|
2379
|
-
o.select(
|
|
2377
|
+
if (c.preventDefault(), c.stopPropagation(), o.activeOptionIndex.value !== null) {
|
|
2378
|
+
let f = o.options.value[o.activeOptionIndex.value];
|
|
2379
|
+
o.select(f.dataRef.value);
|
|
2380
2380
|
}
|
|
2381
2381
|
o.mode.value === 0 && (o.closeListbox(), ye(() => {
|
|
2382
|
-
var
|
|
2383
|
-
return (
|
|
2382
|
+
var f;
|
|
2383
|
+
return (f = M(o.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2384
2384
|
}));
|
|
2385
2385
|
break;
|
|
2386
2386
|
case be(o.orientation.value, { vertical: W.ArrowDown, horizontal: W.ArrowRight }):
|
|
2387
|
-
return
|
|
2387
|
+
return c.preventDefault(), c.stopPropagation(), o.goToOption(ee.Next);
|
|
2388
2388
|
case be(o.orientation.value, { vertical: W.ArrowUp, horizontal: W.ArrowLeft }):
|
|
2389
|
-
return
|
|
2389
|
+
return c.preventDefault(), c.stopPropagation(), o.goToOption(ee.Previous);
|
|
2390
2390
|
case W.Home:
|
|
2391
2391
|
case W.PageUp:
|
|
2392
|
-
return
|
|
2392
|
+
return c.preventDefault(), c.stopPropagation(), o.goToOption(ee.First);
|
|
2393
2393
|
case W.End:
|
|
2394
2394
|
case W.PageDown:
|
|
2395
|
-
return
|
|
2395
|
+
return c.preventDefault(), c.stopPropagation(), o.goToOption(ee.Last);
|
|
2396
2396
|
case W.Escape:
|
|
2397
|
-
|
|
2398
|
-
var
|
|
2399
|
-
return (
|
|
2397
|
+
c.preventDefault(), c.stopPropagation(), o.closeListbox(), ye(() => {
|
|
2398
|
+
var f;
|
|
2399
|
+
return (f = M(o.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2400
2400
|
});
|
|
2401
2401
|
break;
|
|
2402
2402
|
case W.Tab:
|
|
2403
|
-
|
|
2403
|
+
c.preventDefault(), c.stopPropagation();
|
|
2404
2404
|
break;
|
|
2405
2405
|
default:
|
|
2406
|
-
|
|
2406
|
+
c.key.length === 1 && (o.search(c.key), l.value = setTimeout(() => o.clearSearch(), 350));
|
|
2407
2407
|
break;
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
2410
|
let d = gn(), u = P(() => d !== null ? (d.value & Oe.Open) === Oe.Open : o.listboxState.value === 0);
|
|
2411
2411
|
return () => {
|
|
2412
|
-
var
|
|
2413
|
-
let h = { open: o.listboxState.value === 0 }, { ...m } = e, p = { "aria-activedescendant": o.activeOptionIndex.value === null || (
|
|
2412
|
+
var c, f;
|
|
2413
|
+
let h = { open: o.listboxState.value === 0 }, { ...m } = e, p = { "aria-activedescendant": o.activeOptionIndex.value === null || (c = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : c.id, "aria-multiselectable": o.mode.value === 1 ? !0 : void 0, "aria-labelledby": (f = M(o.buttonRef)) == null ? void 0 : f.id, "aria-orientation": o.orientation.value, id: i, onKeydown: s, role: "listbox", tabIndex: 0, ref: o.optionsRef };
|
|
2414
2414
|
return ue({ ourProps: p, theirProps: m, slot: h, attrs: t, slots: n, features: je.RenderStrategy | je.Static, visible: u.value, name: "ListboxOptions" });
|
|
2415
2415
|
};
|
|
2416
2416
|
} }), Zu = R({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
|
|
@@ -2421,10 +2421,10 @@ let Ku = R({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
2421
2421
|
var w;
|
|
2422
2422
|
let v = Ae(o.value.value);
|
|
2423
2423
|
return ((w = o.options.value.find((A) => v.some((x) => o.compare(Ae(x), Ae(A.dataRef.value))))) == null ? void 0 : w.id) === i;
|
|
2424
|
-
}, 0: () => d.value })),
|
|
2425
|
-
return
|
|
2424
|
+
}, 0: () => d.value })), c = bi(l), f = P(() => ({ disabled: e.disabled, value: e.value, get textValue() {
|
|
2425
|
+
return c();
|
|
2426
2426
|
}, domRef: l }));
|
|
2427
|
-
te(() => o.registerOption(i,
|
|
2427
|
+
te(() => o.registerOption(i, f)), Ie(() => o.unregisterOption(i)), te(() => {
|
|
2428
2428
|
re([o.listboxState, d], () => {
|
|
2429
2429
|
o.listboxState.value === 0 && d.value && be(o.mode.value, { 1: () => {
|
|
2430
2430
|
u.value && o.goToOption(ee.Specific, i);
|
|
@@ -2460,8 +2460,8 @@ let Ku = R({ name: "ListboxButton", props: { as: { type: [Object, String], defau
|
|
|
2460
2460
|
p.wasMoved(w) && (e.disabled || s.value && o.goToOption(ee.Nothing));
|
|
2461
2461
|
}
|
|
2462
2462
|
return () => {
|
|
2463
|
-
let { disabled: w } = e, v = { active: s.value, selected: d.value, disabled: w }, { value: A, disabled: x, ...
|
|
2464
|
-
return ue({ ourProps:
|
|
2463
|
+
let { disabled: w } = e, v = { active: s.value, selected: d.value, disabled: w }, { value: A, disabled: x, ...k } = e, O = { id: i, ref: l, role: "option", tabIndex: w === !0 ? void 0 : -1, "aria-disabled": w === !0 ? !0 : void 0, "aria-selected": d.value, disabled: void 0, onClick: h, onFocus: m, onPointerenter: g, onMouseenter: g, onPointermove: b, onMousemove: b, onPointerleave: y, onMouseleave: y };
|
|
2464
|
+
return ue({ ourProps: O, theirProps: k, slot: v, attrs: n, slots: t, name: "ListboxOption" });
|
|
2465
2465
|
};
|
|
2466
2466
|
} });
|
|
2467
2467
|
var ed = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ed || {}), td = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(td || {});
|
|
@@ -2479,139 +2479,139 @@ function kr(e) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
let rd = R({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
|
|
2481
2481
|
let r = E(1), a = E(null), i = E(null), o = E([]), l = E(""), s = E(null), d = E(1);
|
|
2482
|
-
function u(
|
|
2483
|
-
let h = s.value !== null ? o.value[s.value] : null, m = ct(
|
|
2482
|
+
function u(f = (h) => h) {
|
|
2483
|
+
let h = s.value !== null ? o.value[s.value] : null, m = ct(f(o.value.slice()), (g) => M(g.dataRef.domRef)), p = h ? m.indexOf(h) : null;
|
|
2484
2484
|
return p === -1 && (p = null), { items: m, activeItemIndex: p };
|
|
2485
2485
|
}
|
|
2486
|
-
let
|
|
2486
|
+
let c = { menuState: r, buttonRef: a, itemsRef: i, items: o, searchQuery: l, activeItemIndex: s, activationTrigger: d, closeMenu: () => {
|
|
2487
2487
|
r.value = 1, s.value = null;
|
|
2488
|
-
}, openMenu: () => r.value = 0, goToItem(
|
|
2489
|
-
let p = u(), g = fr(
|
|
2488
|
+
}, openMenu: () => r.value = 0, goToItem(f, h, m) {
|
|
2489
|
+
let p = u(), g = fr(f === ee.Specific ? { focus: ee.Specific, id: h } : { focus: f }, { resolveItems: () => p.items, resolveActiveIndex: () => p.activeItemIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.disabled });
|
|
2490
2490
|
l.value = "", s.value = g, d.value = m ?? 1, o.value = p.items;
|
|
2491
|
-
}, search(
|
|
2491
|
+
}, search(f) {
|
|
2492
2492
|
let h = l.value !== "" ? 0 : 1;
|
|
2493
|
-
l.value +=
|
|
2493
|
+
l.value += f.toLowerCase();
|
|
2494
2494
|
let m = (s.value !== null ? o.value.slice(s.value + h).concat(o.value.slice(0, s.value + h)) : o.value).find((g) => g.dataRef.textValue.startsWith(l.value) && !g.dataRef.disabled), p = m ? o.value.indexOf(m) : -1;
|
|
2495
2495
|
p === -1 || p === s.value || (s.value = p, d.value = 1);
|
|
2496
2496
|
}, clearSearch() {
|
|
2497
2497
|
l.value = "";
|
|
2498
|
-
}, registerItem(
|
|
2499
|
-
let m = u((p) => [...p, { id:
|
|
2498
|
+
}, registerItem(f, h) {
|
|
2499
|
+
let m = u((p) => [...p, { id: f, dataRef: h }]);
|
|
2500
2500
|
o.value = m.items, s.value = m.activeItemIndex, d.value = 1;
|
|
2501
|
-
}, unregisterItem(
|
|
2501
|
+
}, unregisterItem(f) {
|
|
2502
2502
|
let h = u((m) => {
|
|
2503
|
-
let p = m.findIndex((g) => g.id ===
|
|
2503
|
+
let p = m.findIndex((g) => g.id === f);
|
|
2504
2504
|
return p !== -1 && m.splice(p, 1), m;
|
|
2505
2505
|
});
|
|
2506
2506
|
o.value = h.items, s.value = h.activeItemIndex, d.value = 1;
|
|
2507
2507
|
} };
|
|
2508
|
-
return wr([a, i], (
|
|
2508
|
+
return wr([a, i], (f, h) => {
|
|
2509
2509
|
var m;
|
|
2510
|
-
|
|
2511
|
-
}, P(() => r.value === 0)), Be(Ai,
|
|
2512
|
-
let
|
|
2513
|
-
return ue({ ourProps: {}, theirProps: e, slot:
|
|
2510
|
+
c.closeMenu(), Ar(h, yr.Loose) || (f.preventDefault(), (m = M(a)) == null || m.focus());
|
|
2511
|
+
}, P(() => r.value === 0)), Be(Ai, c), Sr(P(() => be(r.value, { 0: Oe.Open, 1: Oe.Closed }))), () => {
|
|
2512
|
+
let f = { open: r.value === 0, close: c.closeMenu };
|
|
2513
|
+
return ue({ ourProps: {}, theirProps: e, slot: f, slots: t, attrs: n, name: "Menu" });
|
|
2514
2514
|
};
|
|
2515
2515
|
} }), ad = R({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2516
2516
|
var a;
|
|
2517
2517
|
let i = (a = e.id) != null ? a : `headlessui-menu-button-${Ee()}`, o = kr("MenuButton");
|
|
2518
2518
|
r({ el: o.buttonRef, $el: o.buttonRef });
|
|
2519
|
-
function l(
|
|
2520
|
-
switch (
|
|
2519
|
+
function l(c) {
|
|
2520
|
+
switch (c.key) {
|
|
2521
2521
|
case W.Space:
|
|
2522
2522
|
case W.Enter:
|
|
2523
2523
|
case W.ArrowDown:
|
|
2524
|
-
|
|
2525
|
-
var
|
|
2526
|
-
(
|
|
2524
|
+
c.preventDefault(), c.stopPropagation(), o.openMenu(), ye(() => {
|
|
2525
|
+
var f;
|
|
2526
|
+
(f = M(o.itemsRef)) == null || f.focus({ preventScroll: !0 }), o.goToItem(ee.First);
|
|
2527
2527
|
});
|
|
2528
2528
|
break;
|
|
2529
2529
|
case W.ArrowUp:
|
|
2530
|
-
|
|
2531
|
-
var
|
|
2532
|
-
(
|
|
2530
|
+
c.preventDefault(), c.stopPropagation(), o.openMenu(), ye(() => {
|
|
2531
|
+
var f;
|
|
2532
|
+
(f = M(o.itemsRef)) == null || f.focus({ preventScroll: !0 }), o.goToItem(ee.Last);
|
|
2533
2533
|
});
|
|
2534
2534
|
break;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
function s(
|
|
2538
|
-
switch (
|
|
2537
|
+
function s(c) {
|
|
2538
|
+
switch (c.key) {
|
|
2539
2539
|
case W.Space:
|
|
2540
|
-
|
|
2540
|
+
c.preventDefault();
|
|
2541
2541
|
break;
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function d(
|
|
2544
|
+
function d(c) {
|
|
2545
2545
|
e.disabled || (o.menuState.value === 0 ? (o.closeMenu(), ye(() => {
|
|
2546
|
-
var
|
|
2547
|
-
return (
|
|
2548
|
-
})) : (
|
|
2549
|
-
var
|
|
2550
|
-
return (
|
|
2546
|
+
var f;
|
|
2547
|
+
return (f = M(o.buttonRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2548
|
+
})) : (c.preventDefault(), o.openMenu(), nd(() => {
|
|
2549
|
+
var f;
|
|
2550
|
+
return (f = M(o.itemsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
2551
2551
|
})));
|
|
2552
2552
|
}
|
|
2553
2553
|
let u = xr(P(() => ({ as: e.as, type: t.type })), o.buttonRef);
|
|
2554
2554
|
return () => {
|
|
2555
|
-
var
|
|
2556
|
-
let
|
|
2557
|
-
return ue({ ourProps: m, theirProps: h, slot:
|
|
2555
|
+
var c;
|
|
2556
|
+
let f = { open: o.menuState.value === 0 }, { ...h } = e, m = { ref: o.buttonRef, id: i, type: u.value, "aria-haspopup": "menu", "aria-controls": (c = M(o.itemsRef)) == null ? void 0 : c.id, "aria-expanded": o.menuState.value === 0, onKeydown: l, onKeyup: s, onClick: d };
|
|
2557
|
+
return ue({ ourProps: m, theirProps: h, slot: f, attrs: t, slots: n, name: "MenuButton" });
|
|
2558
2558
|
};
|
|
2559
2559
|
} }), od = R({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2560
2560
|
var a;
|
|
2561
2561
|
let i = (a = e.id) != null ? a : `headlessui-menu-items-${Ee()}`, o = kr("MenuItems"), l = E(null);
|
|
2562
|
-
r({ el: o.itemsRef, $el: o.itemsRef }), wa({ container: P(() => M(o.itemsRef)), enabled: P(() => o.menuState.value === 0), accept(
|
|
2563
|
-
return
|
|
2564
|
-
}, walk(
|
|
2565
|
-
|
|
2562
|
+
r({ el: o.itemsRef, $el: o.itemsRef }), wa({ container: P(() => M(o.itemsRef)), enabled: P(() => o.menuState.value === 0), accept(f) {
|
|
2563
|
+
return f.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : f.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
2564
|
+
}, walk(f) {
|
|
2565
|
+
f.setAttribute("role", "none");
|
|
2566
2566
|
} });
|
|
2567
|
-
function s(
|
|
2567
|
+
function s(f) {
|
|
2568
2568
|
var h;
|
|
2569
|
-
switch (l.value && clearTimeout(l.value),
|
|
2569
|
+
switch (l.value && clearTimeout(l.value), f.key) {
|
|
2570
2570
|
case W.Space:
|
|
2571
|
-
if (o.searchQuery.value !== "") return
|
|
2571
|
+
if (o.searchQuery.value !== "") return f.preventDefault(), f.stopPropagation(), o.search(f.key);
|
|
2572
2572
|
case W.Enter:
|
|
2573
|
-
if (
|
|
2573
|
+
if (f.preventDefault(), f.stopPropagation(), o.activeItemIndex.value !== null) {
|
|
2574
2574
|
let m = o.items.value[o.activeItemIndex.value];
|
|
2575
2575
|
(h = M(m.dataRef.domRef)) == null || h.click();
|
|
2576
2576
|
}
|
|
2577
2577
|
o.closeMenu(), Ko(M(o.buttonRef));
|
|
2578
2578
|
break;
|
|
2579
2579
|
case W.ArrowDown:
|
|
2580
|
-
return
|
|
2580
|
+
return f.preventDefault(), f.stopPropagation(), o.goToItem(ee.Next);
|
|
2581
2581
|
case W.ArrowUp:
|
|
2582
|
-
return
|
|
2582
|
+
return f.preventDefault(), f.stopPropagation(), o.goToItem(ee.Previous);
|
|
2583
2583
|
case W.Home:
|
|
2584
2584
|
case W.PageUp:
|
|
2585
|
-
return
|
|
2585
|
+
return f.preventDefault(), f.stopPropagation(), o.goToItem(ee.First);
|
|
2586
2586
|
case W.End:
|
|
2587
2587
|
case W.PageDown:
|
|
2588
|
-
return
|
|
2588
|
+
return f.preventDefault(), f.stopPropagation(), o.goToItem(ee.Last);
|
|
2589
2589
|
case W.Escape:
|
|
2590
|
-
|
|
2590
|
+
f.preventDefault(), f.stopPropagation(), o.closeMenu(), ye(() => {
|
|
2591
2591
|
var m;
|
|
2592
2592
|
return (m = M(o.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
2593
2593
|
});
|
|
2594
2594
|
break;
|
|
2595
2595
|
case W.Tab:
|
|
2596
|
-
|
|
2596
|
+
f.preventDefault(), f.stopPropagation(), o.closeMenu(), ye(() => ru(M(o.buttonRef), f.shiftKey ? Ce.Previous : Ce.Next));
|
|
2597
2597
|
break;
|
|
2598
2598
|
default:
|
|
2599
|
-
|
|
2599
|
+
f.key.length === 1 && (o.search(f.key), l.value = setTimeout(() => o.clearSearch(), 350));
|
|
2600
2600
|
break;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function d(
|
|
2604
|
-
switch (
|
|
2603
|
+
function d(f) {
|
|
2604
|
+
switch (f.key) {
|
|
2605
2605
|
case W.Space:
|
|
2606
|
-
|
|
2606
|
+
f.preventDefault();
|
|
2607
2607
|
break;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
let u = gn(),
|
|
2610
|
+
let u = gn(), c = P(() => u !== null ? (u.value & Oe.Open) === Oe.Open : o.menuState.value === 0);
|
|
2611
2611
|
return () => {
|
|
2612
|
-
var
|
|
2613
|
-
let m = { open: o.menuState.value === 0 }, { ...p } = e, g = { "aria-activedescendant": o.activeItemIndex.value === null || (
|
|
2614
|
-
return ue({ ourProps: g, theirProps: p, slot: m, attrs: t, slots: n, features: je.RenderStrategy | je.Static, visible:
|
|
2612
|
+
var f, h;
|
|
2613
|
+
let m = { open: o.menuState.value === 0 }, { ...p } = e, g = { "aria-activedescendant": o.activeItemIndex.value === null || (f = o.items.value[o.activeItemIndex.value]) == null ? void 0 : f.id, "aria-labelledby": (h = M(o.buttonRef)) == null ? void 0 : h.id, id: i, onKeydown: s, onKeyup: d, role: "menu", tabIndex: 0, ref: o.itemsRef };
|
|
2614
|
+
return ue({ ourProps: g, theirProps: p, slot: m, attrs: t, slots: n, features: je.RenderStrategy | je.Static, visible: c.value, name: "MenuItems" });
|
|
2615
2615
|
};
|
|
2616
2616
|
} }), id = R({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n, expose: r }) {
|
|
2617
2617
|
var a;
|
|
@@ -2626,11 +2626,11 @@ let rd = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2626
2626
|
return (y = (b = M(l)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : y.call(b, { block: "nearest" });
|
|
2627
2627
|
});
|
|
2628
2628
|
});
|
|
2629
|
-
function
|
|
2629
|
+
function c(b) {
|
|
2630
2630
|
if (e.disabled) return b.preventDefault();
|
|
2631
2631
|
o.closeMenu(), Ko(M(o.buttonRef));
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2633
|
+
function f() {
|
|
2634
2634
|
if (e.disabled) return o.goToItem(ee.Nothing);
|
|
2635
2635
|
o.goToItem(ee.Specific, i);
|
|
2636
2636
|
}
|
|
@@ -2646,7 +2646,7 @@ let rd = R({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
2646
2646
|
}
|
|
2647
2647
|
return () => {
|
|
2648
2648
|
let { disabled: b, ...y } = e, w = { active: s.value, disabled: b, close: o.closeMenu };
|
|
2649
|
-
return ue({ ourProps: { id: i, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick:
|
|
2649
|
+
return ue({ ourProps: { id: i, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: c, onFocus: f, onPointerenter: m, onMouseenter: m, onPointermove: p, onMousemove: p, onPointerleave: g, onMouseleave: g }, theirProps: { ...n, ...y }, slot: w, attrs: n, slots: t, name: "MenuItem" });
|
|
2650
2650
|
};
|
|
2651
2651
|
} }), wi = Symbol("LabelContext");
|
|
2652
2652
|
function xi() {
|
|
@@ -2671,8 +2671,8 @@ R({ name: "Label", props: { as: { type: [Object, String], default: "label" }, pa
|
|
|
2671
2671
|
var r;
|
|
2672
2672
|
let a = (r = e.id) != null ? r : `headlessui-label-${Ee()}`, i = xi();
|
|
2673
2673
|
return te(() => Ie(i.register(a))), () => {
|
|
2674
|
-
let { name: o = "Label", slot: l = {}, props: s = {} } = i, { passive: d, ...u } = e,
|
|
2675
|
-
return d && (delete
|
|
2674
|
+
let { name: o = "Label", slot: l = {}, props: s = {} } = i, { passive: d, ...u } = e, c = { ...Object.entries(s).reduce((f, [h, m]) => Object.assign(f, { [h]: V(m) }), {}), id: a };
|
|
2675
|
+
return d && (delete c.onClick, delete c.htmlFor, delete u.onClick), ue({ ourProps: c, theirProps: u, slot: l, attrs: n, slots: t, name: o });
|
|
2676
2676
|
};
|
|
2677
2677
|
} });
|
|
2678
2678
|
function ld(e, t) {
|
|
@@ -2691,7 +2691,7 @@ let sd = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2691
2691
|
var i;
|
|
2692
2692
|
let o = (i = e.id) != null ? i : `headlessui-radiogroup-${Ee()}`, l = E(null), s = E([]), d = Si({ name: "RadioGroupLabel" }), u = Sa({ name: "RadioGroupDescription" });
|
|
2693
2693
|
a({ el: l, $el: l });
|
|
2694
|
-
let [
|
|
2694
|
+
let [c, f] = ya(P(() => e.modelValue), (g) => t("update:modelValue", g), P(() => e.defaultValue)), h = { options: s, value: c, disabled: P(() => e.disabled), firstOption: P(() => s.value.find((g) => !g.propsRef.disabled)), containsCheckedOption: P(() => s.value.some((g) => h.compare(Ae(g.propsRef.value), Ae(e.modelValue)))), compare(g, b) {
|
|
2695
2695
|
if (typeof e.by == "string") {
|
|
2696
2696
|
let y = e.by;
|
|
2697
2697
|
return (g == null ? void 0 : g[y]) === (b == null ? void 0 : b[y]);
|
|
@@ -2699,9 +2699,9 @@ let sd = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2699
2699
|
return e.by(g, b);
|
|
2700
2700
|
}, change(g) {
|
|
2701
2701
|
var b;
|
|
2702
|
-
if (e.disabled || h.compare(Ae(
|
|
2702
|
+
if (e.disabled || h.compare(Ae(c.value), Ae(g))) return !1;
|
|
2703
2703
|
let y = (b = s.value.find((w) => h.compare(Ae(w.propsRef.value), Ae(g)))) == null ? void 0 : b.propsRef;
|
|
2704
|
-
return y != null && y.disabled ? !1 : (
|
|
2704
|
+
return y != null && y.disabled ? !1 : (f(g), !0);
|
|
2705
2705
|
}, registerOption(g) {
|
|
2706
2706
|
s.value.push(g), s.value = ct(s.value, (b) => b.element);
|
|
2707
2707
|
}, unregisterOption(g) {
|
|
@@ -2769,33 +2769,33 @@ let sd = R({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
|
|
|
2769
2769
|
}, { immediate: !0 });
|
|
2770
2770
|
}), () => {
|
|
2771
2771
|
let { disabled: g, name: b, form: y, ...w } = e, v = { ref: l, id: o, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: m };
|
|
2772
|
-
return de(me, [...b != null &&
|
|
2772
|
+
return de(me, [...b != null && c.value != null ? Or({ [b]: c.value }).map(([A, x]) => de($t, xa({ features: Mt.Hidden, key: A, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: g, name: A, value: x }))) : [], ue({ ourProps: v, theirProps: { ...n, ...Lt(w, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
|
|
2773
2773
|
};
|
|
2774
2774
|
} });
|
|
2775
2775
|
var ud = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(ud || {});
|
|
2776
2776
|
let dd = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2777
2777
|
var a;
|
|
2778
|
-
let i = (a = e.id) != null ? a : `headlessui-radiogroup-option-${Ee()}`, o = ki("RadioGroupOption"), l = Si({ name: "RadioGroupLabel" }), s = Sa({ name: "RadioGroupDescription" }), d = E(null), u = P(() => ({ value: e.value, disabled: e.disabled })),
|
|
2778
|
+
let i = (a = e.id) != null ? a : `headlessui-radiogroup-option-${Ee()}`, o = ki("RadioGroupOption"), l = Si({ name: "RadioGroupLabel" }), s = Sa({ name: "RadioGroupDescription" }), d = E(null), u = P(() => ({ value: e.value, disabled: e.disabled })), c = E(1);
|
|
2779
2779
|
r({ el: d, $el: d });
|
|
2780
|
-
let
|
|
2781
|
-
te(() => o.registerOption({ id: i, element:
|
|
2780
|
+
let f = P(() => M(d));
|
|
2781
|
+
te(() => o.registerOption({ id: i, element: f, propsRef: u })), Ie(() => o.unregisterOption(i));
|
|
2782
2782
|
let h = P(() => {
|
|
2783
2783
|
var v;
|
|
2784
2784
|
return ((v = o.firstOption.value) == null ? void 0 : v.id) === i;
|
|
2785
2785
|
}), m = P(() => o.disabled.value || e.disabled), p = P(() => o.compare(Ae(o.value.value), Ae(e.value))), g = P(() => m.value ? -1 : p.value || !o.containsCheckedOption.value && h.value ? 0 : -1);
|
|
2786
2786
|
function b() {
|
|
2787
2787
|
var v;
|
|
2788
|
-
o.change(e.value) && (
|
|
2788
|
+
o.change(e.value) && (c.value |= 2, (v = M(d)) == null || v.focus());
|
|
2789
2789
|
}
|
|
2790
2790
|
function y() {
|
|
2791
|
-
|
|
2791
|
+
c.value |= 2;
|
|
2792
2792
|
}
|
|
2793
2793
|
function w() {
|
|
2794
|
-
|
|
2794
|
+
c.value &= -3;
|
|
2795
2795
|
}
|
|
2796
2796
|
return () => {
|
|
2797
|
-
let { value: v, disabled: A, ...x } = e,
|
|
2798
|
-
return ue({ ourProps:
|
|
2797
|
+
let { value: v, disabled: A, ...x } = e, k = { checked: p.value, disabled: m.value, active: !!(c.value & 2) }, O = { id: i, ref: d, role: "radio", "aria-checked": p.value ? "true" : "false", "aria-labelledby": l.value, "aria-describedby": s.value, "aria-disabled": m.value ? !0 : void 0, tabIndex: g.value, onClick: m.value ? void 0 : b, onFocus: m.value ? void 0 : y, onBlur: m.value ? void 0 : w };
|
|
2798
|
+
return ue({ ourProps: O, theirProps: x, slot: k, attrs: t, slots: n, name: "RadioGroupOption" });
|
|
2799
2799
|
};
|
|
2800
2800
|
} }), cd = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
|
|
2801
2801
|
let t = E(!0);
|
|
@@ -2832,21 +2832,21 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2832
2832
|
let i = E((a = e.selectedIndex) != null ? a : e.defaultIndex), o = E([]), l = E([]), s = P(() => e.selectedIndex !== null), d = P(() => s.value ? e.selectedIndex : i.value);
|
|
2833
2833
|
function u(p) {
|
|
2834
2834
|
var g;
|
|
2835
|
-
let b = ct(
|
|
2835
|
+
let b = ct(c.tabs.value, M), y = ct(c.panels.value, M), w = b.filter((v) => {
|
|
2836
2836
|
var A;
|
|
2837
2837
|
return !((A = M(v)) != null && A.hasAttribute("disabled"));
|
|
2838
2838
|
});
|
|
2839
2839
|
if (p < 0 || p > b.length - 1) {
|
|
2840
2840
|
let v = be(i.value === null ? 0 : Math.sign(p - i.value), { [-1]: () => 1, 0: () => be(Math.sign(p), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), A = be(v, { 0: () => b.indexOf(w[0]), 1: () => b.indexOf(w[w.length - 1]) });
|
|
2841
|
-
A !== -1 && (i.value = A),
|
|
2841
|
+
A !== -1 && (i.value = A), c.tabs.value = b, c.panels.value = y;
|
|
2842
2842
|
} else {
|
|
2843
|
-
let v = b.slice(0, p), A = [...b.slice(p), ...v].find((
|
|
2843
|
+
let v = b.slice(0, p), A = [...b.slice(p), ...v].find((k) => w.includes(k));
|
|
2844
2844
|
if (!A) return;
|
|
2845
|
-
let x = (g = b.indexOf(A)) != null ? g :
|
|
2846
|
-
x === -1 && (x =
|
|
2845
|
+
let x = (g = b.indexOf(A)) != null ? g : c.selectedIndex.value;
|
|
2846
|
+
x === -1 && (x = c.selectedIndex.value), i.value = x, c.tabs.value = b, c.panels.value = y;
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
let
|
|
2849
|
+
let c = { selectedIndex: P(() => {
|
|
2850
2850
|
var p, g;
|
|
2851
2851
|
return (g = (p = i.value) != null ? p : e.defaultIndex) != null ? g : null;
|
|
2852
2852
|
}), orientation: P(() => e.vertical ? "vertical" : "horizontal"), activation: P(() => e.manual ? "manual" : "auto"), tabs: o, panels: l, setSelectedIndex(p) {
|
|
@@ -2868,11 +2868,11 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2868
2868
|
let g = l.value.indexOf(p);
|
|
2869
2869
|
g !== -1 && l.value.splice(g, 1);
|
|
2870
2870
|
} };
|
|
2871
|
-
Be(Ci,
|
|
2872
|
-
let
|
|
2871
|
+
Be(Ci, c);
|
|
2872
|
+
let f = E({ tabs: [], panels: [] }), h = E(!1);
|
|
2873
2873
|
te(() => {
|
|
2874
2874
|
h.value = !0;
|
|
2875
|
-
}), Be(Oa, P(() => h.value ? null :
|
|
2875
|
+
}), Be(Oa, P(() => h.value ? null : f.value));
|
|
2876
2876
|
let m = P(() => e.selectedIndex);
|
|
2877
2877
|
return te(() => {
|
|
2878
2878
|
re([m], () => {
|
|
@@ -2880,9 +2880,9 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2880
2880
|
return u((p = e.selectedIndex) != null ? p : e.defaultIndex);
|
|
2881
2881
|
}, { immediate: !0 });
|
|
2882
2882
|
}), Te(() => {
|
|
2883
|
-
if (!s.value || d.value == null ||
|
|
2884
|
-
let p = ct(
|
|
2885
|
-
p.some((g, b) => M(
|
|
2883
|
+
if (!s.value || d.value == null || c.tabs.value.length <= 0) return;
|
|
2884
|
+
let p = ct(c.tabs.value, M);
|
|
2885
|
+
p.some((g, b) => M(c.tabs.value[b]) !== M(g)) && c.setSelectedIndex(p.findIndex((g) => M(g) === M(c.tabs.value[d.value])));
|
|
2886
2886
|
}), () => {
|
|
2887
2887
|
let p = { selectedIndex: i.value };
|
|
2888
2888
|
return de(me, [o.value.length <= 0 && de(cd, { onFocus: () => {
|
|
@@ -2912,12 +2912,12 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2912
2912
|
}), u = P(() => {
|
|
2913
2913
|
let y = o.tabs.value.indexOf(l);
|
|
2914
2914
|
return y === -1 ? d.value : y;
|
|
2915
|
-
}),
|
|
2916
|
-
function
|
|
2915
|
+
}), c = P(() => u.value === o.selectedIndex.value);
|
|
2916
|
+
function f(y) {
|
|
2917
2917
|
var w;
|
|
2918
2918
|
let v = y();
|
|
2919
2919
|
if (v === Et.Success && o.activation.value === "auto") {
|
|
2920
|
-
let A = (w = He(l)) == null ? void 0 : w.activeElement, x = o.tabs.value.findIndex((
|
|
2920
|
+
let A = (w = He(l)) == null ? void 0 : w.activeElement, x = o.tabs.value.findIndex((k) => M(k) === A);
|
|
2921
2921
|
x !== -1 && o.setSelectedIndex(x);
|
|
2922
2922
|
}
|
|
2923
2923
|
return v;
|
|
@@ -2931,12 +2931,12 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2931
2931
|
switch (y.key) {
|
|
2932
2932
|
case W.Home:
|
|
2933
2933
|
case W.PageUp:
|
|
2934
|
-
return y.preventDefault(), y.stopPropagation(),
|
|
2934
|
+
return y.preventDefault(), y.stopPropagation(), f(() => qe(w, Ce.First));
|
|
2935
2935
|
case W.End:
|
|
2936
2936
|
case W.PageDown:
|
|
2937
|
-
return y.preventDefault(), y.stopPropagation(),
|
|
2937
|
+
return y.preventDefault(), y.stopPropagation(), f(() => qe(w, Ce.Last));
|
|
2938
2938
|
}
|
|
2939
|
-
if (
|
|
2939
|
+
if (f(() => be(o.orientation.value, { vertical() {
|
|
2940
2940
|
return y.key === W.ArrowUp ? qe(w, Ce.Previous | Ce.WrapAround) : y.key === W.ArrowDown ? qe(w, Ce.Next | Ce.WrapAround) : Et.Error;
|
|
2941
2941
|
}, horizontal() {
|
|
2942
2942
|
return y.key === W.ArrowLeft ? qe(w, Ce.Previous | Ce.WrapAround) : y.key === W.ArrowRight ? qe(w, Ce.Next | Ce.WrapAround) : Et.Error;
|
|
@@ -2955,7 +2955,7 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2955
2955
|
let b = xr(P(() => ({ as: e.as, type: t.type })), l);
|
|
2956
2956
|
return () => {
|
|
2957
2957
|
var y, w;
|
|
2958
|
-
let v = { selected:
|
|
2958
|
+
let v = { selected: c.value, disabled: (y = e.disabled) != null ? y : !1 }, { ...A } = e, x = { ref: l, onKeydown: h, onMousedown: g, onClick: p, id: i, role: "tab", type: b.value, "aria-controls": (w = M(o.panels.value[u.value])) == null ? void 0 : w.id, "aria-selected": c.value, tabIndex: c.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
|
|
2959
2959
|
return ue({ ourProps: x, theirProps: A, slot: v, attrs: t, slots: n, name: "Tab" });
|
|
2960
2960
|
};
|
|
2961
2961
|
} }), gd = R({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
@@ -2970,18 +2970,18 @@ let Oa = Symbol("TabsSSRContext"), vd = R({ name: "TabGroup", emits: { change: (
|
|
|
2970
2970
|
r({ el: l, $el: l }), te(() => o.registerPanel(l)), Ie(() => o.unregisterPanel(l));
|
|
2971
2971
|
let s = Pe(Oa), d = P(() => {
|
|
2972
2972
|
if (s.value) {
|
|
2973
|
-
let
|
|
2974
|
-
return
|
|
2973
|
+
let f = s.value.panels.indexOf(i);
|
|
2974
|
+
return f === -1 ? s.value.panels.push(i) - 1 : f;
|
|
2975
2975
|
}
|
|
2976
2976
|
return -1;
|
|
2977
2977
|
}), u = P(() => {
|
|
2978
|
-
let
|
|
2979
|
-
return
|
|
2980
|
-
}),
|
|
2978
|
+
let f = o.panels.value.indexOf(l);
|
|
2979
|
+
return f === -1 ? d.value : f;
|
|
2980
|
+
}), c = P(() => u.value === o.selectedIndex.value);
|
|
2981
2981
|
return () => {
|
|
2982
|
-
var
|
|
2983
|
-
let h = { selected:
|
|
2984
|
-
return !
|
|
2982
|
+
var f;
|
|
2983
|
+
let h = { selected: c.value }, { tabIndex: m, ...p } = e, g = { ref: l, id: i, role: "tabpanel", "aria-labelledby": (f = M(o.tabs.value[u.value])) == null ? void 0 : f.id, tabIndex: c.value ? m : -1 };
|
|
2984
|
+
return !c.value && e.unmount && !e.static ? de($t, { as: "span", "aria-hidden": !0, ...g }) : ue({ ourProps: g, theirProps: p, slot: h, attrs: t, slots: n, features: je.Static | je.RenderStrategy, visible: c.value, name: "TabPanel" });
|
|
2985
2985
|
};
|
|
2986
2986
|
} });
|
|
2987
2987
|
function yd(e) {
|
|
@@ -3067,24 +3067,24 @@ let Pi = je.RenderStrategy, ra = R({ props: { as: { type: [Object, String], defa
|
|
|
3067
3067
|
i.value &= ~Oe.Closing, t("afterLeave");
|
|
3068
3068
|
}
|
|
3069
3069
|
if (!xd() && iu()) return () => de(Ea, { ...e, onBeforeEnter: o, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: d }, r);
|
|
3070
|
-
let u = E(null),
|
|
3070
|
+
let u = E(null), c = P(() => e.unmount ? Pt.Unmount : Pt.Hidden);
|
|
3071
3071
|
a({ el: u, $el: u });
|
|
3072
|
-
let { show:
|
|
3072
|
+
let { show: f, appear: h } = Sd(), { register: m, unregister: p } = Od(), g = E(f.value ? "visible" : "hidden"), b = { value: !0 }, y = Ee(), w = { value: !1 }, v = Ei(() => {
|
|
3073
3073
|
!w.value && g.value !== "hidden" && (g.value = "hidden", p(y), d());
|
|
3074
3074
|
});
|
|
3075
3075
|
te(() => {
|
|
3076
3076
|
let L = m(y);
|
|
3077
3077
|
Ie(L);
|
|
3078
3078
|
}), Te(() => {
|
|
3079
|
-
if (
|
|
3080
|
-
if (
|
|
3079
|
+
if (c.value === Pt.Hidden && y) {
|
|
3080
|
+
if (f.value && g.value !== "visible") {
|
|
3081
3081
|
g.value = "visible";
|
|
3082
3082
|
return;
|
|
3083
3083
|
}
|
|
3084
3084
|
be(g.value, { hidden: () => p(y), visible: () => m(y) });
|
|
3085
3085
|
}
|
|
3086
3086
|
});
|
|
3087
|
-
let A = Ht(e.enter), x = Ht(e.enterFrom),
|
|
3087
|
+
let A = Ht(e.enter), x = Ht(e.enterFrom), k = Ht(e.enterTo), O = Ht(e.entered), $ = Ht(e.leave), B = Ht(e.leaveFrom), I = Ht(e.leaveTo);
|
|
3088
3088
|
te(() => {
|
|
3089
3089
|
Te(() => {
|
|
3090
3090
|
if (g.value === "visible") {
|
|
@@ -3095,18 +3095,18 @@ let Pi = je.RenderStrategy, ra = R({ props: { as: { type: [Object, String], defa
|
|
|
3095
3095
|
});
|
|
3096
3096
|
function _(L) {
|
|
3097
3097
|
let z = b.value && !h.value, Y = M(u);
|
|
3098
|
-
!Y || !(Y instanceof HTMLElement) || z || (w.value = !0,
|
|
3098
|
+
!Y || !(Y instanceof HTMLElement) || z || (w.value = !0, f.value && o(), f.value || s(), L(f.value ? oo(Y, A, x, k, O, (G) => {
|
|
3099
3099
|
w.value = !1, G === na.Finished && l();
|
|
3100
|
-
}) : oo(Y, $, B, I,
|
|
3100
|
+
}) : oo(Y, $, B, I, O, (G) => {
|
|
3101
3101
|
w.value = !1, G === na.Finished && (Cr(v) || (g.value = "hidden", p(y), d()));
|
|
3102
3102
|
})));
|
|
3103
3103
|
}
|
|
3104
3104
|
return te(() => {
|
|
3105
|
-
re([
|
|
3105
|
+
re([f], (L, z, Y) => {
|
|
3106
3106
|
_(Y), b.value = !1;
|
|
3107
3107
|
}, { immediate: !0 });
|
|
3108
3108
|
}), Be(Ca, v), Sr(P(() => be(g.value, { visible: Oe.Open, hidden: Oe.Closed }) | i.value)), () => {
|
|
3109
|
-
let { appear: L, show: z, enter: Y, enterFrom: G, enterTo: ae, entered: ne, leave: fe, leaveFrom: pe, leaveTo: Z, ...ie } = e, Se = { ref: u }, ve = { ...ie, ...h.value &&
|
|
3109
|
+
let { appear: L, show: z, enter: Y, enterFrom: G, enterTo: ae, entered: ne, leave: fe, leaveFrom: pe, leaveTo: Z, ...ie } = e, Se = { ref: u }, ve = { ...ie, ...h.value && f.value && Vn.isServer ? { class: H([n.class, ie.class, ...A, ...x]) } : {} };
|
|
3110
3110
|
return ue({ theirProps: ve, ourProps: Se, slot: {}, slots: r, attrs: n, features: Pi, visible: g.value === "visible", name: "TransitionChild" });
|
|
3111
3111
|
};
|
|
3112
3112
|
} }), kd = ra, Ea = 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 }) {
|
|
@@ -3122,8 +3122,8 @@ let Pi = je.RenderStrategy, ra = R({ props: { as: { type: [Object, String], defa
|
|
|
3122
3122
|
s.value = !1, i.value ? o.value = "visible" : Cr(l) || (o.value = "hidden");
|
|
3123
3123
|
});
|
|
3124
3124
|
}), Be(Ca, l), Be(ka, d), () => {
|
|
3125
|
-
let u = Lt(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]),
|
|
3126
|
-
return ue({ ourProps: { ...
|
|
3125
|
+
let u = Lt(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), c = { unmount: e.unmount };
|
|
3126
|
+
return ue({ ourProps: { ...c, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [de(kd, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...c, ...u }, r.default)] }, attrs: {}, features: Pi, visible: o.value === "visible", name: "Transition" });
|
|
3127
3127
|
};
|
|
3128
3128
|
} });
|
|
3129
3129
|
const Cd = { class: "dropdown-trigger-button" }, Ed = /* @__PURE__ */ R({
|
|
@@ -3372,16 +3372,16 @@ const Cd = { class: "dropdown-trigger-button" }, Ed = /* @__PURE__ */ R({
|
|
|
3372
3372
|
emits: ["update:modelValue"],
|
|
3373
3373
|
setup(e, { emit: t }) {
|
|
3374
3374
|
const n = e, r = t, a = P({
|
|
3375
|
-
set: (
|
|
3376
|
-
r("update:modelValue",
|
|
3375
|
+
set: (f) => {
|
|
3376
|
+
r("update:modelValue", f);
|
|
3377
3377
|
},
|
|
3378
3378
|
get: () => n.modelValue
|
|
3379
3379
|
}), i = P({
|
|
3380
3380
|
set: () => {
|
|
3381
3381
|
},
|
|
3382
3382
|
get: () => Math.ceil(n.totalDocument / n.pageSize)
|
|
3383
|
-
}), o = (
|
|
3384
|
-
a.value =
|
|
3383
|
+
}), o = (f) => {
|
|
3384
|
+
a.value = f;
|
|
3385
3385
|
}, l = () => {
|
|
3386
3386
|
a.value = 1;
|
|
3387
3387
|
}, s = () => {
|
|
@@ -3390,15 +3390,15 @@ const Cd = { class: "dropdown-trigger-button" }, Ed = /* @__PURE__ */ R({
|
|
|
3390
3390
|
a.value < i.value && (a.value += 1);
|
|
3391
3391
|
}, u = () => {
|
|
3392
3392
|
a.value = i.value;
|
|
3393
|
-
},
|
|
3394
|
-
if (!(n.maxButton % 2) && a.value + Math.floor(n.maxButton / 2) >=
|
|
3393
|
+
}, c = (f) => {
|
|
3394
|
+
if (!(n.maxButton % 2) && a.value + Math.floor(n.maxButton / 2) >= f && a.value - Math.floor(n.maxButton / 2) < f || n.maxButton % 2 && a.value + Math.floor(n.maxButton / 2) >= f && a.value - Math.floor(n.maxButton / 2) <= f || f <= n.maxButton && a.value < Math.ceil(n.maxButton / 2) || f > i.value - n.maxButton && a.value > i.value - Math.floor(n.maxButton / 2))
|
|
3395
3395
|
return !0;
|
|
3396
3396
|
};
|
|
3397
|
-
return (
|
|
3397
|
+
return (f, h) => {
|
|
3398
3398
|
const m = $e("base-icon");
|
|
3399
3399
|
return i.value > 1 ? (S(), T("div", jd, [
|
|
3400
3400
|
C("div", null, [
|
|
3401
|
-
C("p", qd, " Showing " + Q(1 + (a.value - 1) *
|
|
3401
|
+
C("p", qd, " Showing " + Q(1 + (a.value - 1) * f.pageSize) + " to " + Q(a.value * f.pageSize > f.totalDocument ? f.totalDocument : a.value * f.pageSize) + " of " + Q(f.totalDocument) + " entries ", 1)
|
|
3402
3402
|
]),
|
|
3403
3403
|
C("div", Hd, [
|
|
3404
3404
|
a.value > 1 ? (S(), N(oe(De), {
|
|
@@ -3424,7 +3424,7 @@ const Cd = { class: "dropdown-trigger-button" }, Ed = /* @__PURE__ */ R({
|
|
|
3424
3424
|
_: 1
|
|
3425
3425
|
})) : q("", !0),
|
|
3426
3426
|
(S(!0), T(me, null, _e(i.value, (p) => (S(), T(me, { key: p }, [
|
|
3427
|
-
|
|
3427
|
+
c(p) ? (S(), N(oe(De), {
|
|
3428
3428
|
key: 0,
|
|
3429
3429
|
type: "button",
|
|
3430
3430
|
size: "xs",
|
|
@@ -3503,14 +3503,14 @@ function sr(...e) {
|
|
|
3503
3503
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
3504
3504
|
const i = [], o = () => {
|
|
3505
3505
|
i.forEach((u) => u()), i.length = 0;
|
|
3506
|
-
}, l = (u,
|
|
3506
|
+
}, l = (u, c, f, h) => (u.addEventListener(c, f, h), () => u.removeEventListener(c, f, h)), s = re(
|
|
3507
3507
|
() => [En(t), Dt(a)],
|
|
3508
|
-
([u,
|
|
3508
|
+
([u, c]) => {
|
|
3509
3509
|
if (o(), !u)
|
|
3510
3510
|
return;
|
|
3511
|
-
const
|
|
3511
|
+
const f = Xd(c) ? { ...c } : c;
|
|
3512
3512
|
i.push(
|
|
3513
|
-
...n.flatMap((h) => r.map((m) => l(u, h, m,
|
|
3513
|
+
...n.flatMap((h) => r.map((m) => l(u, h, m, f)))
|
|
3514
3514
|
);
|
|
3515
3515
|
},
|
|
3516
3516
|
{ immediate: !0, flush: "post" }
|
|
@@ -3542,7 +3542,7 @@ function lo(e, t, n = {}) {
|
|
|
3542
3542
|
const b = Dt(p), y = b.$.subTree && b.$.subTree.children;
|
|
3543
3543
|
return y == null || !Array.isArray(y) ? !1 : y.some((w) => w.el === g.target || g.composedPath().includes(w.el));
|
|
3544
3544
|
}
|
|
3545
|
-
const
|
|
3545
|
+
const c = (p) => {
|
|
3546
3546
|
const g = En(e);
|
|
3547
3547
|
if (p.target != null && !(!(g instanceof Element) && d(e) && u(e, p)) && !(!g || g === p.target || p.composedPath().includes(g))) {
|
|
3548
3548
|
if (p.detail === 0 && (l = !s(p)), !l) {
|
|
@@ -3552,12 +3552,12 @@ function lo(e, t, n = {}) {
|
|
|
3552
3552
|
t(p);
|
|
3553
3553
|
}
|
|
3554
3554
|
};
|
|
3555
|
-
let
|
|
3555
|
+
let f = !1;
|
|
3556
3556
|
const h = [
|
|
3557
3557
|
sr(r, "click", (p) => {
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
}, 0),
|
|
3558
|
+
f || (f = !0, setTimeout(() => {
|
|
3559
|
+
f = !1;
|
|
3560
|
+
}, 0), c(p));
|
|
3561
3561
|
}, { passive: !0, capture: i }),
|
|
3562
3562
|
sr(r, "pointerdown", (p) => {
|
|
3563
3563
|
const g = En(e);
|
|
@@ -4052,25 +4052,25 @@ function ji(e, t) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
function $a(e, t) {
|
|
4054
4054
|
t === void 0 && (t = {});
|
|
4055
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.boundary, o = i === void 0 ? dc : i, l = n.rootBoundary, s = l === void 0 ? Li : l, d = n.elementContext, u = d === void 0 ? xn : d,
|
|
4055
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.boundary, o = i === void 0 ? dc : i, l = n.rootBoundary, s = l === void 0 ? Li : l, d = n.elementContext, u = d === void 0 ? xn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, m = h === void 0 ? 0 : h, p = Wi(typeof m != "number" ? m : ji(m, Hn)), g = u === xn ? cc : xn, b = e.rects.popper, y = e.elements[f ? g : u], w = Dc(In(y) ? y : y.contextElement || _t(e.elements.popper), o, s), v = sn(e.elements.reference), A = Vi({
|
|
4056
4056
|
reference: v,
|
|
4057
4057
|
element: b,
|
|
4058
4058
|
strategy: "absolute",
|
|
4059
4059
|
placement: a
|
|
4060
|
-
}), x = ia(Object.assign({}, b, A)),
|
|
4061
|
-
top: w.top -
|
|
4062
|
-
bottom:
|
|
4063
|
-
left: w.left -
|
|
4064
|
-
right:
|
|
4060
|
+
}), x = ia(Object.assign({}, b, A)), k = u === xn ? x : v, O = {
|
|
4061
|
+
top: w.top - k.top + p.top,
|
|
4062
|
+
bottom: k.bottom - w.bottom + p.bottom,
|
|
4063
|
+
left: w.left - k.left + p.left,
|
|
4064
|
+
right: k.right - w.right + p.right
|
|
4065
4065
|
}, $ = e.modifiersData.offset;
|
|
4066
4066
|
if (u === xn && $) {
|
|
4067
4067
|
var B = $[a];
|
|
4068
|
-
Object.keys(
|
|
4068
|
+
Object.keys(O).forEach(function(I) {
|
|
4069
4069
|
var _ = [at, rt].indexOf(I) >= 0 ? 1 : -1, L = [Xe, rt].indexOf(I) >= 0 ? "y" : "x";
|
|
4070
|
-
|
|
4070
|
+
O[I] += B[L] * _;
|
|
4071
4071
|
});
|
|
4072
4072
|
}
|
|
4073
|
-
return
|
|
4073
|
+
return O;
|
|
4074
4074
|
}
|
|
4075
4075
|
var fo = {
|
|
4076
4076
|
placement: "bottom",
|
|
@@ -4100,7 +4100,7 @@ function Bc(e) {
|
|
|
4100
4100
|
},
|
|
4101
4101
|
attributes: {},
|
|
4102
4102
|
styles: {}
|
|
4103
|
-
},
|
|
4103
|
+
}, c = [], f = !1, h = {
|
|
4104
4104
|
state: u,
|
|
4105
4105
|
setOptions: function(b) {
|
|
4106
4106
|
var y = typeof b == "function" ? b(u.options) : b;
|
|
@@ -4119,7 +4119,7 @@ function Bc(e) {
|
|
|
4119
4119
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
4120
4120
|
// prefer the async Popper#update method
|
|
4121
4121
|
forceUpdate: function() {
|
|
4122
|
-
if (!
|
|
4122
|
+
if (!f) {
|
|
4123
4123
|
var b = u.elements, y = b.reference, w = b.popper;
|
|
4124
4124
|
if (po(y, w)) {
|
|
4125
4125
|
u.rects = {
|
|
@@ -4133,10 +4133,10 @@ function Bc(e) {
|
|
|
4133
4133
|
u.reset = !1, v = -1;
|
|
4134
4134
|
continue;
|
|
4135
4135
|
}
|
|
4136
|
-
var A = u.orderedModifiers[v], x = A.fn,
|
|
4136
|
+
var A = u.orderedModifiers[v], x = A.fn, k = A.options, O = k === void 0 ? {} : k, $ = A.name;
|
|
4137
4137
|
typeof x == "function" && (u = x({
|
|
4138
4138
|
state: u,
|
|
4139
|
-
options:
|
|
4139
|
+
options: O,
|
|
4140
4140
|
name: $,
|
|
4141
4141
|
instance: h
|
|
4142
4142
|
}) || u);
|
|
@@ -4152,13 +4152,13 @@ function Bc(e) {
|
|
|
4152
4152
|
});
|
|
4153
4153
|
}),
|
|
4154
4154
|
destroy: function() {
|
|
4155
|
-
p(),
|
|
4155
|
+
p(), f = !0;
|
|
4156
4156
|
}
|
|
4157
4157
|
};
|
|
4158
4158
|
if (!po(l, s))
|
|
4159
4159
|
return h;
|
|
4160
4160
|
h.setOptions(d).then(function(g) {
|
|
4161
|
-
!
|
|
4161
|
+
!f && d.onFirstUpdate && d.onFirstUpdate(g);
|
|
4162
4162
|
});
|
|
4163
4163
|
function m() {
|
|
4164
4164
|
u.orderedModifiers.forEach(function(g) {
|
|
@@ -4171,14 +4171,14 @@ function Bc(e) {
|
|
|
4171
4171
|
options: w
|
|
4172
4172
|
}), x = function() {
|
|
4173
4173
|
};
|
|
4174
|
-
|
|
4174
|
+
c.push(A || x);
|
|
4175
4175
|
}
|
|
4176
4176
|
});
|
|
4177
4177
|
}
|
|
4178
4178
|
function p() {
|
|
4179
|
-
|
|
4179
|
+
c.forEach(function(g) {
|
|
4180
4180
|
return g();
|
|
4181
|
-
}),
|
|
4181
|
+
}), c = [];
|
|
4182
4182
|
}
|
|
4183
4183
|
return h;
|
|
4184
4184
|
};
|
|
@@ -4234,19 +4234,19 @@ function _c(e) {
|
|
|
4234
4234
|
};
|
|
4235
4235
|
}
|
|
4236
4236
|
function vo(e) {
|
|
4237
|
-
var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, o = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets,
|
|
4237
|
+
var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, o = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = u === !0 ? _c(o) : typeof u == "function" ? u(o) : o, f = c.x, h = f === void 0 ? 0 : f, m = c.y, p = m === void 0 ? 0 : m, g = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), y = Qe, w = Xe, v = window;
|
|
4238
4238
|
if (d) {
|
|
4239
|
-
var A = qn(n), x = "clientHeight",
|
|
4240
|
-
A === ot(n) && (A = _t(n), xt(A).position !== "static" && l === "absolute" && (x = "scrollHeight",
|
|
4239
|
+
var A = qn(n), x = "clientHeight", k = "clientWidth";
|
|
4240
|
+
A === ot(n) && (A = _t(n), xt(A).position !== "static" && l === "absolute" && (x = "scrollHeight", k = "scrollWidth")), A = A, (a === Xe || (a === Qe || a === at) && i === Mn) && (w = rt, p -= A[x] - r.height, p *= s ? 1 : -1), (a === Qe || (a === Xe || a === rt) && i === Mn) && (y = at, h -= A[k] - r.width, h *= s ? 1 : -1);
|
|
4241
4241
|
}
|
|
4242
|
-
var
|
|
4242
|
+
var O = Object.assign({
|
|
4243
4243
|
position: l
|
|
4244
4244
|
}, d && Lc);
|
|
4245
4245
|
if (s) {
|
|
4246
4246
|
var $;
|
|
4247
|
-
return Object.assign({},
|
|
4247
|
+
return Object.assign({}, O, ($ = {}, $[w] = b ? "0" : "", $[y] = g ? "0" : "", $.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", $));
|
|
4248
4248
|
}
|
|
4249
|
-
return Object.assign({},
|
|
4249
|
+
return Object.assign({}, O, (t = {}, t[w] = b ? p + "px" : "", t[y] = g ? h + "px" : "", t.transform = "", t));
|
|
4250
4250
|
}
|
|
4251
4251
|
function Fc(e) {
|
|
4252
4252
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, i = n.adaptive, o = i === void 0 ? !0 : i, l = n.roundOffsets, s = l === void 0 ? !0 : l, d = {
|
|
@@ -4328,12 +4328,12 @@ function ur(e, t, n) {
|
|
|
4328
4328
|
return Bt(e, $n(t, n));
|
|
4329
4329
|
}
|
|
4330
4330
|
function zc(e) {
|
|
4331
|
-
var t = e.state, n = e.options, r = e.name, a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, s = n.boundary, d = n.rootBoundary, u = n.altBoundary,
|
|
4331
|
+
var t = e.state, n = e.options, r = e.name, a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, m = n.tetherOffset, p = m === void 0 ? 0 : m, g = $a(t, {
|
|
4332
4332
|
boundary: s,
|
|
4333
4333
|
rootBoundary: d,
|
|
4334
|
-
padding:
|
|
4334
|
+
padding: c,
|
|
4335
4335
|
altBoundary: u
|
|
4336
|
-
}), b = ft(t.placement), y = dn(t.placement), w = !y, v = Ma(b), A = Uc(v), x = t.modifiersData.popperOffsets,
|
|
4336
|
+
}), b = ft(t.placement), y = dn(t.placement), w = !y, v = Ma(b), A = Uc(v), x = t.modifiersData.popperOffsets, k = t.rects.reference, O = t.rects.popper, $ = typeof p == "function" ? p(Object.assign({}, t.rects, {
|
|
4337
4337
|
placement: t.placement
|
|
4338
4338
|
})) : p, B = {
|
|
4339
4339
|
x: 0,
|
|
@@ -4341,10 +4341,10 @@ function zc(e) {
|
|
|
4341
4341
|
};
|
|
4342
4342
|
if (x) {
|
|
4343
4343
|
if (i || l) {
|
|
4344
|
-
var I = v === "y" ? Xe : Qe, _ = v === "y" ? rt : at, L = v === "y" ? "height" : "width", z = x[v], Y = x[v] + g[I], G = x[v] - g[_], ae = h ? -
|
|
4344
|
+
var I = v === "y" ? Xe : Qe, _ = v === "y" ? rt : at, L = v === "y" ? "height" : "width", z = x[v], Y = x[v] + g[I], G = x[v] - g[_], ae = h ? -O[L] / 2 : 0, ne = y === un ? k[L] : O[L], fe = y === un ? -O[L] : -k[L], pe = t.elements.arrow, Z = h && pe ? Ba(pe) : {
|
|
4345
4345
|
width: 0,
|
|
4346
4346
|
height: 0
|
|
4347
|
-
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ni(), Se = ie[I], ve = ie[_], we = ur(0,
|
|
4347
|
+
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ni(), Se = ie[I], ve = ie[_], we = ur(0, k[L], Z[L]), Me = w ? k[L] / 2 - ae - we - Se - $ : ne - we - Se - $, lt = w ? -k[L] / 2 + ae + we + ve + $ : fe + we + ve + $, Fe = t.elements.arrow && qn(t.elements.arrow), st = Fe ? v === "y" ? Fe.clientTop || 0 : Fe.clientLeft || 0 : 0, et = t.modifiersData.offset ? t.modifiersData.offset[t.placement][v] : 0, gt = x[v] + Me - et - st, Vt = x[v] + lt - et;
|
|
4348
4348
|
if (i) {
|
|
4349
4349
|
var St = ur(h ? $n(Y, gt) : Y, z, h ? Bt(G, Vt) : G);
|
|
4350
4350
|
x[v] = St, B[v] = St - z;
|
|
@@ -4385,13 +4385,13 @@ function mo(e) {
|
|
|
4385
4385
|
}
|
|
4386
4386
|
function Gc(e, t) {
|
|
4387
4387
|
t === void 0 && (t = {});
|
|
4388
|
-
var n = t, r = n.placement, a = n.boundary, i = n.rootBoundary, o = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, d = s === void 0 ? _i : s, u = dn(r),
|
|
4388
|
+
var n = t, r = n.placement, a = n.boundary, i = n.rootBoundary, o = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, d = s === void 0 ? _i : s, u = dn(r), c = u ? l ? uo : uo.filter(function(m) {
|
|
4389
4389
|
return dn(m) === u;
|
|
4390
|
-
}) : Hn,
|
|
4390
|
+
}) : Hn, f = c.filter(function(m) {
|
|
4391
4391
|
return d.indexOf(m) >= 0;
|
|
4392
4392
|
});
|
|
4393
|
-
|
|
4394
|
-
var h =
|
|
4393
|
+
f.length === 0 && (f = c);
|
|
4394
|
+
var h = f.reduce(function(m, p) {
|
|
4395
4395
|
return m[p] = $a(e, {
|
|
4396
4396
|
placement: p,
|
|
4397
4397
|
boundary: a,
|
|
@@ -4412,21 +4412,21 @@ function Kc(e) {
|
|
|
4412
4412
|
function Jc(e) {
|
|
4413
4413
|
var t = e.state, n = e.options, r = e.name;
|
|
4414
4414
|
if (!t.modifiersData[r]._skip) {
|
|
4415
|
-
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, s = n.fallbackPlacements, d = n.padding, u = n.boundary,
|
|
4415
|
+
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, g = t.options.placement, b = ft(g), y = b === g, w = s || (y || !m ? [dr(g)] : Kc(g)), v = [g].concat(w).reduce(function(ve, we) {
|
|
4416
4416
|
return ve.concat(ft(we) === Ia ? Gc(t, {
|
|
4417
4417
|
placement: we,
|
|
4418
4418
|
boundary: u,
|
|
4419
|
-
rootBoundary:
|
|
4419
|
+
rootBoundary: c,
|
|
4420
4420
|
padding: d,
|
|
4421
4421
|
flipVariations: m,
|
|
4422
4422
|
allowedAutoPlacements: p
|
|
4423
4423
|
}) : we);
|
|
4424
|
-
}, []), A = t.rects.reference, x = t.rects.popper,
|
|
4424
|
+
}, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], B = 0; B < v.length; B++) {
|
|
4425
4425
|
var I = v[B], _ = ft(I), L = dn(I) === un, z = [Xe, rt].indexOf(_) >= 0, Y = z ? "width" : "height", G = $a(t, {
|
|
4426
4426
|
placement: I,
|
|
4427
4427
|
boundary: u,
|
|
4428
|
-
rootBoundary:
|
|
4429
|
-
altBoundary:
|
|
4428
|
+
rootBoundary: c,
|
|
4429
|
+
altBoundary: f,
|
|
4430
4430
|
padding: d
|
|
4431
4431
|
}), ae = z ? L ? at : Qe : L ? rt : Xe;
|
|
4432
4432
|
A[Y] > x[Y] && (ae = dr(ae));
|
|
@@ -4434,15 +4434,15 @@ function Jc(e) {
|
|
|
4434
4434
|
if (i && fe.push(G[_] <= 0), l && fe.push(G[ae] <= 0, G[ne] <= 0), fe.every(function(ve) {
|
|
4435
4435
|
return ve;
|
|
4436
4436
|
})) {
|
|
4437
|
-
$ = I,
|
|
4437
|
+
$ = I, O = !1;
|
|
4438
4438
|
break;
|
|
4439
4439
|
}
|
|
4440
|
-
|
|
4440
|
+
k.set(I, fe);
|
|
4441
4441
|
}
|
|
4442
|
-
if (
|
|
4442
|
+
if (O)
|
|
4443
4443
|
for (var pe = m ? 3 : 1, Z = function(we) {
|
|
4444
4444
|
var Me = v.find(function(lt) {
|
|
4445
|
-
var Fe =
|
|
4445
|
+
var Fe = k.get(lt);
|
|
4446
4446
|
if (Fe)
|
|
4447
4447
|
return Fe.slice(0, we).every(function(st) {
|
|
4448
4448
|
return st;
|
|
@@ -4480,8 +4480,8 @@ function ef(e, t, n) {
|
|
|
4480
4480
|
};
|
|
4481
4481
|
}
|
|
4482
4482
|
function tf(e) {
|
|
4483
|
-
var t = e.state, n = e.options, r = e.name, a = n.offset, i = a === void 0 ? [0, 0] : a, o = _i.reduce(function(u,
|
|
4484
|
-
return u[
|
|
4483
|
+
var t = e.state, n = e.options, r = e.name, a = n.offset, i = a === void 0 ? [0, 0] : a, o = _i.reduce(function(u, c) {
|
|
4484
|
+
return u[c] = ef(c, t.rects, i), u;
|
|
4485
4485
|
}, {}), l = o[t.placement], s = l.x, d = l.y;
|
|
4486
4486
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += d), t.modifiersData[r] = o;
|
|
4487
4487
|
}
|
|
@@ -4499,8 +4499,8 @@ var nf = {
|
|
|
4499
4499
|
function af(e) {
|
|
4500
4500
|
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, l = ft(n.placement), s = Ma(l), d = [Qe, at].indexOf(l) >= 0, u = d ? "height" : "width";
|
|
4501
4501
|
if (!(!i || !o)) {
|
|
4502
|
-
var
|
|
4503
|
-
n.modifiersData[r] = (t = {}, t[
|
|
4502
|
+
var c = rf(a.padding, n), f = Ba(i), h = s === "y" ? Xe : Qe, m = s === "y" ? rt : at, p = n.rects.reference[u] + n.rects.reference[s] - o[s] - n.rects.popper[u], g = o[s] - n.rects.reference[s], b = qn(i), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, w = p / 2 - g / 2, v = c[h], A = y - f[u] - c[m], x = y / 2 - f[u] / 2 + w, k = ur(v, x, A), O = s;
|
|
4503
|
+
n.modifiersData[r] = (t = {}, t[O] = k, t.centerOffset = k - x, t);
|
|
4504
4504
|
}
|
|
4505
4505
|
}
|
|
4506
4506
|
function of(e) {
|
|
@@ -4539,13 +4539,13 @@ function sf({
|
|
|
4539
4539
|
enabled: p
|
|
4540
4540
|
}]
|
|
4541
4541
|
}));
|
|
4542
|
-
}, u = () => d(!0),
|
|
4542
|
+
}, u = () => d(!0), c = () => d(!1), f = () => {
|
|
4543
4543
|
s.isOpen && (s.isOpen = !1, t("close:popper"));
|
|
4544
4544
|
}, h = () => {
|
|
4545
4545
|
s.isOpen || (s.isOpen = !0, t("open:popper"));
|
|
4546
4546
|
};
|
|
4547
4547
|
re([() => s.isOpen, i], async ([p]) => {
|
|
4548
|
-
p ? (await m(), u()) :
|
|
4548
|
+
p ? (await m(), u()) : c();
|
|
4549
4549
|
});
|
|
4550
4550
|
const m = async () => {
|
|
4551
4551
|
await ye(), s.popperInstance = Hc(l.value, o.value, {
|
|
@@ -4572,7 +4572,7 @@ function sf({
|
|
|
4572
4572
|
}), {
|
|
4573
4573
|
...Uo(s),
|
|
4574
4574
|
open: h,
|
|
4575
|
-
close:
|
|
4575
|
+
close: f
|
|
4576
4576
|
};
|
|
4577
4577
|
}
|
|
4578
4578
|
const uf = {
|
|
@@ -4782,8 +4782,8 @@ var Hi = {
|
|
|
4782
4782
|
arrowPadding: s,
|
|
4783
4783
|
closeDelay: d,
|
|
4784
4784
|
content: u,
|
|
4785
|
-
disableClickAway:
|
|
4786
|
-
disabled:
|
|
4785
|
+
disableClickAway: c,
|
|
4786
|
+
disabled: f,
|
|
4787
4787
|
interactive: h,
|
|
4788
4788
|
locked: m,
|
|
4789
4789
|
offsetDistance: p,
|
|
@@ -4805,22 +4805,22 @@ var Hi = {
|
|
|
4805
4805
|
popperNode: i,
|
|
4806
4806
|
triggerNode: o
|
|
4807
4807
|
}), {
|
|
4808
|
-
hasContent:
|
|
4809
|
-
} = rc(r, i, u),
|
|
4810
|
-
$.value ||
|
|
4808
|
+
hasContent: k
|
|
4809
|
+
} = rc(r, i, u), O = P(() => w.value !== null), $ = P(() => f.value || !k.value), B = P(() => v.value && !$.value), I = P(() => !c.value && !O.value), _ = P(() => h.value ? `border: ${p.value}px solid transparent; margin: -${p.value}px;` : null), L = Nr.debounce(A, b.value), z = Nr.debounce(x, d.value), Y = async () => {
|
|
4810
|
+
$.value || O.value || (z.clear(), L());
|
|
4811
4811
|
}, G = async () => {
|
|
4812
|
-
|
|
4812
|
+
O.value || (L.clear(), z());
|
|
4813
4813
|
}, ae = () => {
|
|
4814
4814
|
v.value ? G() : Y();
|
|
4815
4815
|
};
|
|
4816
|
-
return re([
|
|
4816
|
+
return re([k, f], ([ne, fe]) => {
|
|
4817
4817
|
v.value && (!ne || fe) && x();
|
|
4818
4818
|
}), re(v, (ne) => {
|
|
4819
4819
|
ne ? l.value = !0 : Nr.debounce(() => {
|
|
4820
4820
|
l.value = !1;
|
|
4821
4821
|
}, 200);
|
|
4822
4822
|
}), Te(() => {
|
|
4823
|
-
|
|
4823
|
+
O.value && (w.value ? L() : z());
|
|
4824
4824
|
}), Te(() => {
|
|
4825
4825
|
I.value && nc(a, G);
|
|
4826
4826
|
}), (ne, fe) => (S(), T("div", {
|
|
@@ -5085,7 +5085,7 @@ const la = /* @__PURE__ */ R({
|
|
|
5085
5085
|
(S(!0), T(me, null, _e(a.value, (d, u) => (S(), T(me, { key: u }, [
|
|
5086
5086
|
C("div", {
|
|
5087
5087
|
class: "step-body",
|
|
5088
|
-
onClick: (
|
|
5088
|
+
onClick: (c) => i(d)
|
|
5089
5089
|
}, [
|
|
5090
5090
|
C("div", {
|
|
5091
5091
|
class: H(["step-icon-container", { active: d.active }])
|
|
@@ -5497,8 +5497,8 @@ var Ip = function(t, n) {
|
|
|
5497
5497
|
function Mp(e) {
|
|
5498
5498
|
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, l = pt(n.placement), s = Fa(l), d = [We, Je].indexOf(l) >= 0, u = d ? "height" : "width";
|
|
5499
5499
|
if (!(!i || !o)) {
|
|
5500
|
-
var
|
|
5501
|
-
n.modifiersData[r] = (t = {}, t[
|
|
5500
|
+
var c = Ip(a.padding, n), f = _a(i), h = s === "y" ? Ne : We, m = s === "y" ? Ke : Je, p = n.rects.reference[u] + n.rects.reference[s] - o[s] - n.rects.popper[u], g = o[s] - n.rects.reference[s], b = zn(i), y = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, w = p / 2 - g / 2, v = c[h], A = y - f[u] - c[m], x = y / 2 - f[u] / 2 + w, k = Dn(v, x, A), O = s;
|
|
5501
|
+
n.modifiersData[r] = (t = {}, t[O] = k, t.centerOffset = k - x, t);
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
5504
|
function $p(e) {
|
|
@@ -5531,22 +5531,22 @@ function _p(e) {
|
|
|
5531
5531
|
};
|
|
5532
5532
|
}
|
|
5533
5533
|
function yo(e) {
|
|
5534
|
-
var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, o = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets,
|
|
5534
|
+
var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, o = e.offsets, l = e.position, s = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, c = e.isFixed, f = u === !0 ? _p(o) : typeof u == "function" ? u(o) : o, h = f.x, m = h === void 0 ? 0 : h, p = f.y, g = p === void 0 ? 0 : p, b = o.hasOwnProperty("x"), y = o.hasOwnProperty("y"), w = We, v = Ne, A = window;
|
|
5535
5535
|
if (d) {
|
|
5536
|
-
var x = zn(n),
|
|
5537
|
-
if (x === it(n) && (x = Ft(n), ht(x).position !== "static" && l === "absolute" && (
|
|
5536
|
+
var x = zn(n), k = "clientHeight", O = "clientWidth";
|
|
5537
|
+
if (x === it(n) && (x = Ft(n), ht(x).position !== "static" && l === "absolute" && (k = "scrollHeight", O = "scrollWidth")), x = x, a === Ne || (a === We || a === Je) && i === Rn) {
|
|
5538
5538
|
v = Ke;
|
|
5539
|
-
var $ =
|
|
5539
|
+
var $ = c && A.visualViewport ? A.visualViewport.height : (
|
|
5540
5540
|
// $FlowFixMe[prop-missing]
|
|
5541
|
-
x[
|
|
5541
|
+
x[k]
|
|
5542
5542
|
);
|
|
5543
5543
|
g -= $ - r.height, g *= s ? 1 : -1;
|
|
5544
5544
|
}
|
|
5545
5545
|
if (a === We || (a === Ne || a === Ke) && i === Rn) {
|
|
5546
5546
|
w = Je;
|
|
5547
|
-
var B =
|
|
5547
|
+
var B = c && A.visualViewport ? A.visualViewport.width : (
|
|
5548
5548
|
// $FlowFixMe[prop-missing]
|
|
5549
|
-
x[
|
|
5549
|
+
x[O]
|
|
5550
5550
|
);
|
|
5551
5551
|
m -= B - r.width, m *= s ? 1 : -1;
|
|
5552
5552
|
}
|
|
@@ -5751,35 +5751,35 @@ function al(e) {
|
|
|
5751
5751
|
}
|
|
5752
5752
|
function Ln(e, t) {
|
|
5753
5753
|
t === void 0 && (t = {});
|
|
5754
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.boundary, o = i === void 0 ? mp : i, l = n.rootBoundary, s = l === void 0 ? Qi : l, d = n.elementContext, u = d === void 0 ? Sn : d,
|
|
5754
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.boundary, o = i === void 0 ? mp : i, l = n.rootBoundary, s = l === void 0 ? Qi : l, d = n.elementContext, u = d === void 0 ? Sn : d, c = n.altBoundary, f = c === void 0 ? !1 : c, h = n.padding, m = h === void 0 ? 0 : h, p = tl(typeof m != "number" ? m : nl(m, Un)), g = u === Sn ? hp : Sn, b = e.rects.popper, y = e.elements[f ? g : u], w = Xp(fn(y) ? y : y.contextElement || Ft(e.elements.popper), o, s), v = vn(e.elements.reference), A = al({
|
|
5755
5755
|
reference: v,
|
|
5756
5756
|
element: b,
|
|
5757
5757
|
strategy: "absolute",
|
|
5758
5758
|
placement: a
|
|
5759
|
-
}), x = da(Object.assign({}, b, A)),
|
|
5760
|
-
top: w.top -
|
|
5761
|
-
bottom:
|
|
5762
|
-
left: w.left -
|
|
5763
|
-
right:
|
|
5759
|
+
}), x = da(Object.assign({}, b, A)), k = u === Sn ? x : v, O = {
|
|
5760
|
+
top: w.top - k.top + p.top,
|
|
5761
|
+
bottom: k.bottom - w.bottom + p.bottom,
|
|
5762
|
+
left: w.left - k.left + p.left,
|
|
5763
|
+
right: k.right - w.right + p.right
|
|
5764
5764
|
}, $ = e.modifiersData.offset;
|
|
5765
5765
|
if (u === Sn && $) {
|
|
5766
5766
|
var B = $[a];
|
|
5767
|
-
Object.keys(
|
|
5767
|
+
Object.keys(O).forEach(function(I) {
|
|
5768
5768
|
var _ = [Je, Ke].indexOf(I) >= 0 ? 1 : -1, L = [Ne, Ke].indexOf(I) >= 0 ? "y" : "x";
|
|
5769
|
-
|
|
5769
|
+
O[I] += B[L] * _;
|
|
5770
5770
|
});
|
|
5771
5771
|
}
|
|
5772
|
-
return
|
|
5772
|
+
return O;
|
|
5773
5773
|
}
|
|
5774
5774
|
function Qp(e, t) {
|
|
5775
5775
|
t === void 0 && (t = {});
|
|
5776
|
-
var n = t, r = n.placement, a = n.boundary, i = n.rootBoundary, o = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, d = s === void 0 ? Gi : s, u = mn(r),
|
|
5776
|
+
var n = t, r = n.placement, a = n.boundary, i = n.rootBoundary, o = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, d = s === void 0 ? Gi : s, u = mn(r), c = u ? l ? go : go.filter(function(m) {
|
|
5777
5777
|
return mn(m) === u;
|
|
5778
|
-
}) : Un,
|
|
5778
|
+
}) : Un, f = c.filter(function(m) {
|
|
5779
5779
|
return d.indexOf(m) >= 0;
|
|
5780
5780
|
});
|
|
5781
|
-
|
|
5782
|
-
var h =
|
|
5781
|
+
f.length === 0 && (f = c);
|
|
5782
|
+
var h = f.reduce(function(m, p) {
|
|
5783
5783
|
return m[p] = Ln(e, {
|
|
5784
5784
|
placement: p,
|
|
5785
5785
|
boundary: a,
|
|
@@ -5800,21 +5800,21 @@ function Gp(e) {
|
|
|
5800
5800
|
function Kp(e) {
|
|
5801
5801
|
var t = e.state, n = e.options, r = e.name;
|
|
5802
5802
|
if (!t.modifiersData[r]._skip) {
|
|
5803
|
-
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, s = n.fallbackPlacements, d = n.padding, u = n.boundary,
|
|
5803
|
+
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, s = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, g = t.options.placement, b = pt(g), y = b === g, w = s || (y || !m ? [cr(g)] : Gp(g)), v = [g].concat(w).reduce(function(ve, we) {
|
|
5804
5804
|
return ve.concat(pt(we) === La ? Qp(t, {
|
|
5805
5805
|
placement: we,
|
|
5806
5806
|
boundary: u,
|
|
5807
|
-
rootBoundary:
|
|
5807
|
+
rootBoundary: c,
|
|
5808
5808
|
padding: d,
|
|
5809
5809
|
flipVariations: m,
|
|
5810
5810
|
allowedAutoPlacements: p
|
|
5811
5811
|
}) : we);
|
|
5812
|
-
}, []), A = t.rects.reference, x = t.rects.popper,
|
|
5812
|
+
}, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], B = 0; B < v.length; B++) {
|
|
5813
5813
|
var I = v[B], _ = pt(I), L = mn(I) === cn, z = [Ne, Ke].indexOf(_) >= 0, Y = z ? "width" : "height", G = Ln(t, {
|
|
5814
5814
|
placement: I,
|
|
5815
5815
|
boundary: u,
|
|
5816
|
-
rootBoundary:
|
|
5817
|
-
altBoundary:
|
|
5816
|
+
rootBoundary: c,
|
|
5817
|
+
altBoundary: f,
|
|
5818
5818
|
padding: d
|
|
5819
5819
|
}), ae = z ? L ? Je : We : L ? Ke : Ne;
|
|
5820
5820
|
A[Y] > x[Y] && (ae = cr(ae));
|
|
@@ -5822,15 +5822,15 @@ function Kp(e) {
|
|
|
5822
5822
|
if (i && fe.push(G[_] <= 0), l && fe.push(G[ae] <= 0, G[ne] <= 0), fe.every(function(ve) {
|
|
5823
5823
|
return ve;
|
|
5824
5824
|
})) {
|
|
5825
|
-
$ = I,
|
|
5825
|
+
$ = I, O = !1;
|
|
5826
5826
|
break;
|
|
5827
5827
|
}
|
|
5828
|
-
|
|
5828
|
+
k.set(I, fe);
|
|
5829
5829
|
}
|
|
5830
|
-
if (
|
|
5830
|
+
if (O)
|
|
5831
5831
|
for (var pe = m ? 3 : 1, Z = function(we) {
|
|
5832
5832
|
var Me = v.find(function(lt) {
|
|
5833
|
-
var Fe =
|
|
5833
|
+
var Fe = k.get(lt);
|
|
5834
5834
|
if (Fe)
|
|
5835
5835
|
return Fe.slice(0, we).every(function(st) {
|
|
5836
5836
|
return st;
|
|
@@ -5876,15 +5876,15 @@ function Zp(e) {
|
|
|
5876
5876
|
elementContext: "reference"
|
|
5877
5877
|
}), l = Ln(t, {
|
|
5878
5878
|
altBoundary: !0
|
|
5879
|
-
}), s = xo(o, r), d = xo(l, a, i), u = So(s),
|
|
5879
|
+
}), s = xo(o, r), d = xo(l, a, i), u = So(s), c = So(d);
|
|
5880
5880
|
t.modifiersData[n] = {
|
|
5881
5881
|
referenceClippingOffsets: s,
|
|
5882
5882
|
popperEscapeOffsets: d,
|
|
5883
5883
|
isReferenceHidden: u,
|
|
5884
|
-
hasPopperEscaped:
|
|
5884
|
+
hasPopperEscaped: c
|
|
5885
5885
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
5886
5886
|
"data-popper-reference-hidden": u,
|
|
5887
|
-
"data-popper-escaped":
|
|
5887
|
+
"data-popper-escaped": c
|
|
5888
5888
|
});
|
|
5889
5889
|
}
|
|
5890
5890
|
var ev = {
|
|
@@ -5907,8 +5907,8 @@ function tv(e, t, n) {
|
|
|
5907
5907
|
};
|
|
5908
5908
|
}
|
|
5909
5909
|
function nv(e) {
|
|
5910
|
-
var t = e.state, n = e.options, r = e.name, a = n.offset, i = a === void 0 ? [0, 0] : a, o = Gi.reduce(function(u,
|
|
5911
|
-
return u[
|
|
5910
|
+
var t = e.state, n = e.options, r = e.name, a = n.offset, i = a === void 0 ? [0, 0] : a, o = Gi.reduce(function(u, c) {
|
|
5911
|
+
return u[c] = tv(c, t.rects, i), u;
|
|
5912
5912
|
}, {}), l = o[t.placement], s = l.x, d = l.y;
|
|
5913
5913
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += d), t.modifiersData[r] = o;
|
|
5914
5914
|
}
|
|
@@ -5939,12 +5939,12 @@ function iv(e) {
|
|
|
5939
5939
|
return e === "x" ? "y" : "x";
|
|
5940
5940
|
}
|
|
5941
5941
|
function lv(e) {
|
|
5942
|
-
var t = e.state, n = e.options, r = e.name, a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, s = n.boundary, d = n.rootBoundary, u = n.altBoundary,
|
|
5942
|
+
var t = e.state, n = e.options, r = e.name, a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, s = n.boundary, d = n.rootBoundary, u = n.altBoundary, c = n.padding, f = n.tether, h = f === void 0 ? !0 : f, m = n.tetherOffset, p = m === void 0 ? 0 : m, g = Ln(t, {
|
|
5943
5943
|
boundary: s,
|
|
5944
5944
|
rootBoundary: d,
|
|
5945
|
-
padding:
|
|
5945
|
+
padding: c,
|
|
5946
5946
|
altBoundary: u
|
|
5947
|
-
}), b = pt(t.placement), y = mn(t.placement), w = !y, v = Fa(b), A = iv(v), x = t.modifiersData.popperOffsets,
|
|
5947
|
+
}), b = pt(t.placement), y = mn(t.placement), w = !y, v = Fa(b), A = iv(v), x = t.modifiersData.popperOffsets, k = t.rects.reference, O = t.rects.popper, $ = typeof p == "function" ? p(Object.assign({}, t.rects, {
|
|
5948
5948
|
placement: t.placement
|
|
5949
5949
|
})) : p, B = typeof $ == "number" ? {
|
|
5950
5950
|
mainAxis: $,
|
|
@@ -5958,14 +5958,14 @@ function lv(e) {
|
|
|
5958
5958
|
};
|
|
5959
5959
|
if (x) {
|
|
5960
5960
|
if (i) {
|
|
5961
|
-
var L, z = v === "y" ? Ne : We, Y = v === "y" ? Ke : Je, G = v === "y" ? "height" : "width", ae = x[v], ne = ae + g[z], fe = ae - g[Y], pe = h ? -
|
|
5961
|
+
var L, z = v === "y" ? Ne : We, Y = v === "y" ? Ke : Je, G = v === "y" ? "height" : "width", ae = x[v], ne = ae + g[z], fe = ae - g[Y], pe = h ? -O[G] / 2 : 0, Z = y === cn ? k[G] : O[G], ie = y === cn ? -O[G] : -k[G], Se = t.elements.arrow, ve = h && Se ? _a(Se) : {
|
|
5962
5962
|
width: 0,
|
|
5963
5963
|
height: 0
|
|
5964
|
-
}, we = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : el(), Me = we[z], lt = we[Y], Fe = Dn(0,
|
|
5964
|
+
}, we = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : el(), Me = we[z], lt = we[Y], Fe = Dn(0, k[G], ve[G]), st = w ? k[G] / 2 - pe - Fe - Me - B.mainAxis : Z - Fe - Me - B.mainAxis, et = w ? -k[G] / 2 + pe + Fe + lt + B.mainAxis : ie + Fe + lt + B.mainAxis, gt = t.elements.arrow && zn(t.elements.arrow), Vt = gt ? v === "y" ? gt.clientTop || 0 : gt.clientLeft || 0 : 0, St = (L = I == null ? void 0 : I[v]) != null ? L : 0, Zt = ae + st - St - Vt, en = ae + et - St, ut = Dn(h ? pr(ne, Zt) : ne, ae, h ? Gt(fe, en) : fe);
|
|
5965
5965
|
x[v] = ut, _[v] = ut - ae;
|
|
5966
5966
|
}
|
|
5967
5967
|
if (l) {
|
|
5968
|
-
var Ot, Nt = v === "x" ? Ne : We, Wt = v === "x" ? Ke : Je, bt = x[A], kt = A === "y" ? "height" : "width", bn = bt + g[Nt], jt = bt - g[Wt], yn = [Ne, We].indexOf(b) !== -1, Yn = (Ot = I == null ? void 0 : I[A]) != null ? Ot : 0, Xn = yn ? bn : bt -
|
|
5968
|
+
var Ot, Nt = v === "x" ? Ne : We, Wt = v === "x" ? Ke : Je, bt = x[A], kt = A === "y" ? "height" : "width", bn = bt + g[Nt], jt = bt - g[Wt], yn = [Ne, We].indexOf(b) !== -1, Yn = (Ot = I == null ? void 0 : I[A]) != null ? Ot : 0, Xn = yn ? bn : bt - k[kt] - O[kt] - Yn + B.altAxis, Qn = yn ? bt + k[kt] + O[kt] - Yn - B.altAxis : jt, Gn = h && yn ? Bp(Xn, bt, Qn) : Dn(h ? Xn : bn, bt, h ? Qn : jt);
|
|
5969
5969
|
x[A] = Gn, _[A] = Gn - bt;
|
|
5970
5970
|
}
|
|
5971
5971
|
t.modifiersData[r] = _;
|
|
@@ -6085,7 +6085,7 @@ function gv(e) {
|
|
|
6085
6085
|
},
|
|
6086
6086
|
attributes: {},
|
|
6087
6087
|
styles: {}
|
|
6088
|
-
},
|
|
6088
|
+
}, c = [], f = !1, h = {
|
|
6089
6089
|
state: u,
|
|
6090
6090
|
setOptions: function(b) {
|
|
6091
6091
|
var y = typeof b == "function" ? b(u.options) : b;
|
|
@@ -6104,7 +6104,7 @@ function gv(e) {
|
|
|
6104
6104
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
6105
6105
|
// prefer the async Popper#update method
|
|
6106
6106
|
forceUpdate: function() {
|
|
6107
|
-
if (!
|
|
6107
|
+
if (!f) {
|
|
6108
6108
|
var b = u.elements, y = b.reference, w = b.popper;
|
|
6109
6109
|
if (ko(y, w)) {
|
|
6110
6110
|
u.rects = {
|
|
@@ -6118,10 +6118,10 @@ function gv(e) {
|
|
|
6118
6118
|
u.reset = !1, v = -1;
|
|
6119
6119
|
continue;
|
|
6120
6120
|
}
|
|
6121
|
-
var A = u.orderedModifiers[v], x = A.fn,
|
|
6121
|
+
var A = u.orderedModifiers[v], x = A.fn, k = A.options, O = k === void 0 ? {} : k, $ = A.name;
|
|
6122
6122
|
typeof x == "function" && (u = x({
|
|
6123
6123
|
state: u,
|
|
6124
|
-
options:
|
|
6124
|
+
options: O,
|
|
6125
6125
|
name: $,
|
|
6126
6126
|
instance: h
|
|
6127
6127
|
}) || u);
|
|
@@ -6137,13 +6137,13 @@ function gv(e) {
|
|
|
6137
6137
|
});
|
|
6138
6138
|
}),
|
|
6139
6139
|
destroy: function() {
|
|
6140
|
-
p(),
|
|
6140
|
+
p(), f = !0;
|
|
6141
6141
|
}
|
|
6142
6142
|
};
|
|
6143
6143
|
if (!ko(l, s))
|
|
6144
6144
|
return h;
|
|
6145
6145
|
h.setOptions(d).then(function(g) {
|
|
6146
|
-
!
|
|
6146
|
+
!f && d.onFirstUpdate && d.onFirstUpdate(g);
|
|
6147
6147
|
});
|
|
6148
6148
|
function m() {
|
|
6149
6149
|
u.orderedModifiers.forEach(function(g) {
|
|
@@ -6156,14 +6156,14 @@ function gv(e) {
|
|
|
6156
6156
|
options: w
|
|
6157
6157
|
}), x = function() {
|
|
6158
6158
|
};
|
|
6159
|
-
|
|
6159
|
+
c.push(A || x);
|
|
6160
6160
|
}
|
|
6161
6161
|
});
|
|
6162
6162
|
}
|
|
6163
6163
|
function p() {
|
|
6164
|
-
|
|
6164
|
+
c.forEach(function(g) {
|
|
6165
6165
|
return g();
|
|
6166
|
-
}),
|
|
6166
|
+
}), c = [];
|
|
6167
6167
|
}
|
|
6168
6168
|
return h;
|
|
6169
6169
|
};
|
|
@@ -6271,7 +6271,7 @@ function Ev(e, t) {
|
|
|
6271
6271
|
var i = a.popperRect, o = a.popperState, l = a.props, s = l.interactiveBorder, d = cl(o.placement), u = o.modifiersData.offset;
|
|
6272
6272
|
if (!u)
|
|
6273
6273
|
return !0;
|
|
6274
|
-
var
|
|
6274
|
+
var c = d === "bottom" ? u.top.y : 0, f = d === "top" ? u.bottom.y : 0, h = d === "right" ? u.left.x : 0, m = d === "left" ? u.right.x : 0, p = i.top - r + c > s, g = r - i.bottom - f > s, b = i.left - n + h > s, y = n - i.right - m > s;
|
|
6275
6275
|
return p || g || b || y;
|
|
6276
6276
|
});
|
|
6277
6277
|
}
|
|
@@ -6466,7 +6466,7 @@ function ml(e) {
|
|
|
6466
6466
|
ml.$$tippy = !0;
|
|
6467
6467
|
var Vv = 1, or = [], zr = [];
|
|
6468
6468
|
function Nv(e, t) {
|
|
6469
|
-
var n = Bo(e, Object.assign({}, tt, vl(Po(t)))), r, a, i, o = !1, l = !1, s = !1, d = !1, u,
|
|
6469
|
+
var n = Bo(e, Object.assign({}, tt, vl(Po(t)))), r, a, i, o = !1, l = !1, s = !1, d = !1, u, c, f, h = [], m = Co(Zt, n.interactiveDebounce), p, g = Vv++, b = null, y = Sv(n.plugins), w = {
|
|
6470
6470
|
// Is the instance currently enabled?
|
|
6471
6471
|
isEnabled: !0,
|
|
6472
6472
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -6500,9 +6500,9 @@ function Nv(e, t) {
|
|
|
6500
6500
|
};
|
|
6501
6501
|
if (!n.render)
|
|
6502
6502
|
return v;
|
|
6503
|
-
var A = n.render(v), x = A.popper,
|
|
6503
|
+
var A = n.render(v), x = A.popper, k = A.onUpdate;
|
|
6504
6504
|
x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + v.id, v.popper = x, e._tippy = v, x._tippy = v;
|
|
6505
|
-
var
|
|
6505
|
+
var O = y.map(function(D) {
|
|
6506
6506
|
return D.fn(v);
|
|
6507
6507
|
}), $ = e.hasAttribute("aria-expanded");
|
|
6508
6508
|
return gt(), pe(), ae(), ne("onCreate", [v]), n.showOnCreate && bn(), x.addEventListener("mouseenter", function() {
|
|
@@ -6538,7 +6538,7 @@ function Nv(e, t) {
|
|
|
6538
6538
|
D === void 0 && (D = !1), x.style.pointerEvents = v.props.interactive && !D ? "" : "none", x.style.zIndex = "" + v.props.zIndex;
|
|
6539
6539
|
}
|
|
6540
6540
|
function ne(D, j, J) {
|
|
6541
|
-
if (J === void 0 && (J = !0),
|
|
6541
|
+
if (J === void 0 && (J = !0), O.forEach(function(ce) {
|
|
6542
6542
|
ce[D] && ce[D].apply(ce, j);
|
|
6543
6543
|
}), J) {
|
|
6544
6544
|
var he;
|
|
@@ -6619,7 +6619,7 @@ function Nv(e, t) {
|
|
|
6619
6619
|
}
|
|
6620
6620
|
if (D === 0)
|
|
6621
6621
|
return j();
|
|
6622
|
-
Ur(J, "remove",
|
|
6622
|
+
Ur(J, "remove", c), Ur(J, "add", he), c = he;
|
|
6623
6623
|
}
|
|
6624
6624
|
function et(D, j, J) {
|
|
6625
6625
|
J === void 0 && (J = !1);
|
|
@@ -6751,7 +6751,7 @@ function Nv(e, t) {
|
|
|
6751
6751
|
}
|
|
6752
6752
|
}), qt.push.apply(qt, (j == null ? void 0 : j.modifiers) || []), v.popperInstance = yv(tn, x, Object.assign({}, j, {
|
|
6753
6753
|
placement: J,
|
|
6754
|
-
onFirstUpdate:
|
|
6754
|
+
onFirstUpdate: f,
|
|
6755
6755
|
modifiers: qt
|
|
6756
6756
|
}));
|
|
6757
6757
|
}
|
|
@@ -6803,7 +6803,7 @@ function Nv(e, t) {
|
|
|
6803
6803
|
}));
|
|
6804
6804
|
v.props = J, gt(), j.interactiveDebounce !== J.interactiveDebounce && (Z(), m = Co(Zt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? Yt(j.triggerTarget).forEach(function(he) {
|
|
6805
6805
|
he.removeAttribute("aria-expanded");
|
|
6806
|
-
}) : J.triggerTarget && e.removeAttribute("aria-expanded"), pe(), ae(),
|
|
6806
|
+
}) : J.triggerTarget && e.removeAttribute("aria-expanded"), pe(), ae(), k && k(j, J), v.popperInstance && (Nt(), kt().forEach(function(he) {
|
|
6807
6807
|
requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
|
|
6808
6808
|
})), ne("onAfterUpdate", [v, D]);
|
|
6809
6809
|
}
|
|
@@ -6820,7 +6820,7 @@ function Nv(e, t) {
|
|
|
6820
6820
|
var Ve = Y(), ze = Ve.box, tn = Ve.content;
|
|
6821
6821
|
Hr([ze, tn], 0);
|
|
6822
6822
|
}
|
|
6823
|
-
|
|
6823
|
+
f = function() {
|
|
6824
6824
|
var qt;
|
|
6825
6825
|
if (!(!v.state.isVisible || d)) {
|
|
6826
6826
|
if (d = !0, x.offsetHeight, x.style.transition = v.props.moveTransition, _() && v.props.animation) {
|
|
@@ -6893,14 +6893,14 @@ var Wv = Object.assign({}, Ji, {
|
|
|
6893
6893
|
var r;
|
|
6894
6894
|
n === void 0 && (n = {});
|
|
6895
6895
|
var a = t, i = [], o = [], l, s = n.overrides, d = [], u = !1;
|
|
6896
|
-
function
|
|
6896
|
+
function c() {
|
|
6897
6897
|
o = a.map(function(v) {
|
|
6898
6898
|
return Yt(v.props.triggerTarget || v.reference);
|
|
6899
6899
|
}).reduce(function(v, A) {
|
|
6900
6900
|
return v.concat(A);
|
|
6901
6901
|
}, []);
|
|
6902
6902
|
}
|
|
6903
|
-
function
|
|
6903
|
+
function f() {
|
|
6904
6904
|
i = a.map(function(v) {
|
|
6905
6905
|
return v.reference;
|
|
6906
6906
|
});
|
|
@@ -6913,8 +6913,8 @@ var Wv = Object.assign({}, Ji, {
|
|
|
6913
6913
|
function m(v) {
|
|
6914
6914
|
return a.map(function(A) {
|
|
6915
6915
|
var x = A.setProps;
|
|
6916
|
-
return A.setProps = function(
|
|
6917
|
-
x(
|
|
6916
|
+
return A.setProps = function(k) {
|
|
6917
|
+
x(k), A.reference === l && v.setProps(k);
|
|
6918
6918
|
}, function() {
|
|
6919
6919
|
A.setProps = x;
|
|
6920
6920
|
};
|
|
@@ -6924,18 +6924,18 @@ var Wv = Object.assign({}, Ji, {
|
|
|
6924
6924
|
var x = o.indexOf(A);
|
|
6925
6925
|
if (A !== l) {
|
|
6926
6926
|
l = A;
|
|
6927
|
-
var
|
|
6928
|
-
return
|
|
6927
|
+
var k = (s || []).concat("content").reduce(function(O, $) {
|
|
6928
|
+
return O[$] = a[x].props[$], O;
|
|
6929
6929
|
}, {});
|
|
6930
|
-
v.setProps(Object.assign({},
|
|
6931
|
-
getReferenceClientRect: typeof
|
|
6932
|
-
var
|
|
6933
|
-
return (
|
|
6930
|
+
v.setProps(Object.assign({}, k, {
|
|
6931
|
+
getReferenceClientRect: typeof k.getReferenceClientRect == "function" ? k.getReferenceClientRect : function() {
|
|
6932
|
+
var O;
|
|
6933
|
+
return (O = i[x]) == null ? void 0 : O.getBoundingClientRect();
|
|
6934
6934
|
}
|
|
6935
6935
|
}));
|
|
6936
6936
|
}
|
|
6937
6937
|
}
|
|
6938
|
-
h(!1),
|
|
6938
|
+
h(!1), f(), c();
|
|
6939
6939
|
var g = {
|
|
6940
6940
|
fn: function() {
|
|
6941
6941
|
return {
|
|
@@ -6951,8 +6951,8 @@ var Wv = Object.assign({}, Ji, {
|
|
|
6951
6951
|
onShow: function(x) {
|
|
6952
6952
|
x.props.showOnCreate && !u && (u = !0, p(x, i[0]));
|
|
6953
6953
|
},
|
|
6954
|
-
onTrigger: function(x,
|
|
6955
|
-
p(x,
|
|
6954
|
+
onTrigger: function(x, k) {
|
|
6955
|
+
p(x, k.currentTarget);
|
|
6956
6956
|
}
|
|
6957
6957
|
};
|
|
6958
6958
|
}
|
|
@@ -6995,7 +6995,7 @@ var Wv = Object.assign({}, Ji, {
|
|
|
6995
6995
|
}, b.setInstances = function(v) {
|
|
6996
6996
|
h(!0), d.forEach(function(A) {
|
|
6997
6997
|
return A();
|
|
6998
|
-
}), a = v, h(!1),
|
|
6998
|
+
}), a = v, h(!1), f(), c(), d = m(b), b.setProps({
|
|
6999
6999
|
triggerTarget: o
|
|
7000
7000
|
});
|
|
7001
7001
|
}, d = m(b), b;
|
|
@@ -7059,24 +7059,24 @@ var Yv = {
|
|
|
7059
7059
|
return t.props.followCursor === "initial" && t.state.isVisible;
|
|
7060
7060
|
}
|
|
7061
7061
|
function d() {
|
|
7062
|
-
r.addEventListener("mousemove",
|
|
7062
|
+
r.addEventListener("mousemove", f);
|
|
7063
7063
|
}
|
|
7064
7064
|
function u() {
|
|
7065
|
-
r.removeEventListener("mousemove",
|
|
7065
|
+
r.removeEventListener("mousemove", f);
|
|
7066
7066
|
}
|
|
7067
|
-
function
|
|
7067
|
+
function c() {
|
|
7068
7068
|
a = !0, t.setProps({
|
|
7069
7069
|
getReferenceClientRect: null
|
|
7070
7070
|
}), a = !1;
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7072
|
+
function f(p) {
|
|
7073
7073
|
var g = p.target ? n.contains(p.target) : !0, b = t.props.followCursor, y = p.clientX, w = p.clientY, v = n.getBoundingClientRect(), A = y - v.left, x = w - v.top;
|
|
7074
7074
|
(g || !t.props.interactive) && t.setProps({
|
|
7075
7075
|
// @ts-ignore - unneeded DOMRect properties
|
|
7076
7076
|
getReferenceClientRect: function() {
|
|
7077
|
-
var
|
|
7078
|
-
b === "initial" && ($ =
|
|
7079
|
-
var I = b === "horizontal" ?
|
|
7077
|
+
var O = n.getBoundingClientRect(), $ = y, B = w;
|
|
7078
|
+
b === "initial" && ($ = O.left + A, B = O.top + x);
|
|
7079
|
+
var I = b === "horizontal" ? O.top : B, _ = b === "vertical" ? O.right : $, L = b === "horizontal" ? O.bottom : B, z = b === "vertical" ? O.left : $;
|
|
7080
7080
|
return {
|
|
7081
7081
|
width: _ - z,
|
|
7082
7082
|
height: L - I,
|
|
@@ -7109,10 +7109,10 @@ var Yv = {
|
|
|
7109
7109
|
},
|
|
7110
7110
|
onAfterUpdate: function(g, b) {
|
|
7111
7111
|
var y = b.followCursor;
|
|
7112
|
-
a || y !== void 0 && l.followCursor !== y && (m(), y ? (h(), t.state.isMounted && !i && !s() && d()) : (u(),
|
|
7112
|
+
a || y !== void 0 && l.followCursor !== y && (m(), y ? (h(), t.state.isMounted && !i && !s() && d()) : (u(), c()));
|
|
7113
7113
|
},
|
|
7114
7114
|
onMount: function() {
|
|
7115
|
-
t.props.followCursor && !i && (o && (
|
|
7115
|
+
t.props.followCursor && !i && (o && (f(fa), o = !1), s() || d());
|
|
7116
7116
|
},
|
|
7117
7117
|
onTrigger: function(g, b) {
|
|
7118
7118
|
qa(b) && (fa = {
|
|
@@ -7121,7 +7121,7 @@ var Yv = {
|
|
|
7121
7121
|
}), i = b.type === "focus";
|
|
7122
7122
|
},
|
|
7123
7123
|
onHidden: function() {
|
|
7124
|
-
t.props.followCursor && (
|
|
7124
|
+
t.props.followCursor && (c(), u(), o = !0);
|
|
7125
7125
|
}
|
|
7126
7126
|
};
|
|
7127
7127
|
}
|
|
@@ -7159,18 +7159,18 @@ var Qv = {
|
|
|
7159
7159
|
})), a = m.placement);
|
|
7160
7160
|
}
|
|
7161
7161
|
};
|
|
7162
|
-
function d(
|
|
7163
|
-
return Gv(cl(
|
|
7162
|
+
function d(f) {
|
|
7163
|
+
return Gv(cl(f), n.getBoundingClientRect(), hn(n.getClientRects()), i);
|
|
7164
7164
|
}
|
|
7165
|
-
function u(
|
|
7166
|
-
o = !0, t.setProps(
|
|
7165
|
+
function u(f) {
|
|
7166
|
+
o = !0, t.setProps(f), o = !1;
|
|
7167
7167
|
}
|
|
7168
|
-
function
|
|
7168
|
+
function c() {
|
|
7169
7169
|
o || u(Xv(t.props, s));
|
|
7170
7170
|
}
|
|
7171
7171
|
return {
|
|
7172
|
-
onCreate:
|
|
7173
|
-
onAfterUpdate:
|
|
7172
|
+
onCreate: c,
|
|
7173
|
+
onAfterUpdate: c,
|
|
7174
7174
|
onTrigger: function(h, m) {
|
|
7175
7175
|
if (qa(m)) {
|
|
7176
7176
|
var p = hn(t.reference.getClientRects()), g = p.find(function(y) {
|
|
@@ -7193,14 +7193,14 @@ function Gv(e, t, n, r) {
|
|
|
7193
7193
|
switch (e) {
|
|
7194
7194
|
case "top":
|
|
7195
7195
|
case "bottom": {
|
|
7196
|
-
var a = n[0], i = n[n.length - 1], o = e === "top", l = a.top, s = i.bottom, d = o ? a.left : i.left, u = o ? a.right : i.right,
|
|
7196
|
+
var a = n[0], i = n[n.length - 1], o = e === "top", l = a.top, s = i.bottom, d = o ? a.left : i.left, u = o ? a.right : i.right, c = u - d, f = s - l;
|
|
7197
7197
|
return {
|
|
7198
7198
|
top: l,
|
|
7199
7199
|
bottom: s,
|
|
7200
7200
|
left: d,
|
|
7201
7201
|
right: u,
|
|
7202
|
-
width:
|
|
7203
|
-
height:
|
|
7202
|
+
width: c,
|
|
7203
|
+
height: f
|
|
7204
7204
|
};
|
|
7205
7205
|
}
|
|
7206
7206
|
case "left":
|
|
@@ -7271,18 +7271,18 @@ function gl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7271
7271
|
isShown: !1
|
|
7272
7272
|
}), o = ha();
|
|
7273
7273
|
let l = null;
|
|
7274
|
-
const s = () => l || (l = document.createDocumentFragment(), l), d = (
|
|
7275
|
-
let
|
|
7274
|
+
const s = () => l || (l = document.createDocumentFragment(), l), d = (k) => {
|
|
7275
|
+
let O, $ = yt(k) ? k.value : k;
|
|
7276
7276
|
return Ql($) ? (o.value || (o.value = Qa({
|
|
7277
7277
|
name: n.appName,
|
|
7278
|
-
setup: () => () => yt(
|
|
7279
|
-
}), r && Object.assign(o.value._context, r.appContext), o.value.mount(s())),
|
|
7278
|
+
setup: () => () => yt(k) ? k.value : k
|
|
7279
|
+
}), r && Object.assign(o.value._context, r.appContext), o.value.mount(s())), O = () => s()) : typeof $ == "object" ? (o.value || (o.value = Qa({
|
|
7280
7280
|
name: n.appName,
|
|
7281
|
-
setup: () => () => de(yt(
|
|
7282
|
-
}), r && Object.assign(o.value._context, r.appContext), o.value.mount(s())),
|
|
7283
|
-
}, u = (
|
|
7284
|
-
let
|
|
7285
|
-
return yt(
|
|
7281
|
+
setup: () => () => de(yt(k) ? k.value : k)
|
|
7282
|
+
}), r && Object.assign(o.value._context, r.appContext), o.value.mount(s())), O = () => s()) : O = $, O;
|
|
7283
|
+
}, u = (k) => {
|
|
7284
|
+
let O = {};
|
|
7285
|
+
return yt(k) ? O = k.value || {} : Xa(k) ? O = { ...k } : O = { ...k }, O.content && (O.content = d(O.content)), O.triggerTarget && (O.triggerTarget = yt(O.triggerTarget) ? O.triggerTarget.value : O.triggerTarget), (!O.plugins || !Array.isArray(O.plugins)) && (O.plugins = []), O.plugins = O.plugins.filter(($) => $.name !== "vueTippyReactiveState"), O.plugins.push({
|
|
7286
7286
|
name: "vueTippyReactiveState",
|
|
7287
7287
|
fn: () => ({
|
|
7288
7288
|
onCreate() {
|
|
@@ -7310,44 +7310,44 @@ function gl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7310
7310
|
i.value.isDestroyed = !0;
|
|
7311
7311
|
}
|
|
7312
7312
|
})
|
|
7313
|
-
}),
|
|
7314
|
-
}, f = () => {
|
|
7315
|
-
a.value && a.value.setProps(u(t));
|
|
7313
|
+
}), O;
|
|
7316
7314
|
}, c = () => {
|
|
7315
|
+
a.value && a.value.setProps(u(t));
|
|
7316
|
+
}, f = () => {
|
|
7317
7317
|
!a.value || !t.content || a.value.setContent(d(t.content));
|
|
7318
|
-
}, h = (
|
|
7319
|
-
var k;
|
|
7320
|
-
(k = a.value) === null || k === void 0 || k.setContent(d(O));
|
|
7321
|
-
}, m = (O) => {
|
|
7322
|
-
var k;
|
|
7323
|
-
(k = a.value) === null || k === void 0 || k.setProps(u(O));
|
|
7324
|
-
}, p = () => {
|
|
7318
|
+
}, h = (k) => {
|
|
7325
7319
|
var O;
|
|
7326
|
-
|
|
7327
|
-
},
|
|
7320
|
+
(O = a.value) === null || O === void 0 || O.setContent(d(k));
|
|
7321
|
+
}, m = (k) => {
|
|
7328
7322
|
var O;
|
|
7329
|
-
(O = a.value) === null || O === void 0 || O.
|
|
7323
|
+
(O = a.value) === null || O === void 0 || O.setProps(u(k));
|
|
7324
|
+
}, p = () => {
|
|
7325
|
+
var k;
|
|
7326
|
+
a.value && (a.value.destroy(), a.value = void 0), l = null, (k = o.value) === null || k === void 0 || k.unmount(), o.value = void 0;
|
|
7327
|
+
}, g = () => {
|
|
7328
|
+
var k;
|
|
7329
|
+
(k = a.value) === null || k === void 0 || k.show();
|
|
7330
7330
|
}, b = () => {
|
|
7331
|
-
var
|
|
7332
|
-
(
|
|
7331
|
+
var k;
|
|
7332
|
+
(k = a.value) === null || k === void 0 || k.hide();
|
|
7333
7333
|
}, y = () => {
|
|
7334
|
-
var
|
|
7335
|
-
(
|
|
7334
|
+
var k;
|
|
7335
|
+
(k = a.value) === null || k === void 0 || k.disable(), i.value.isEnabled = !1;
|
|
7336
7336
|
}, w = () => {
|
|
7337
|
-
var
|
|
7338
|
-
(
|
|
7337
|
+
var k;
|
|
7338
|
+
(k = a.value) === null || k === void 0 || k.enable(), i.value.isEnabled = !0;
|
|
7339
7339
|
}, v = () => {
|
|
7340
|
-
var
|
|
7341
|
-
(
|
|
7340
|
+
var k;
|
|
7341
|
+
(k = a.value) === null || k === void 0 || k.unmount();
|
|
7342
7342
|
}, A = () => {
|
|
7343
7343
|
if (!e)
|
|
7344
7344
|
return;
|
|
7345
|
-
let
|
|
7346
|
-
typeof
|
|
7345
|
+
let k = yt(e) ? e.value : e;
|
|
7346
|
+
typeof k == "function" && (k = k()), k && (a.value = U(k, u(t)), k.$tippy = x);
|
|
7347
7347
|
}, x = {
|
|
7348
7348
|
tippy: a,
|
|
7349
|
-
refresh:
|
|
7350
|
-
refreshContent:
|
|
7349
|
+
refresh: c,
|
|
7350
|
+
refreshContent: f,
|
|
7351
7351
|
setContent: h,
|
|
7352
7352
|
setProps: m,
|
|
7353
7353
|
destroy: p,
|
|
@@ -7361,7 +7361,7 @@ function gl(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7361
7361
|
};
|
|
7362
7362
|
return n.mount && (r ? r.isMounted ? A() : te(A) : A()), r && Ie(() => {
|
|
7363
7363
|
p();
|
|
7364
|
-
}), yt(t) || Xa(t) ? re(t,
|
|
7364
|
+
}), yt(t) || Xa(t) ? re(t, c, { immediate: !1 }) : yt(t.content) && re(t.content, f, { immediate: !1 }), x;
|
|
7365
7365
|
}
|
|
7366
7366
|
function Jv(e, t) {
|
|
7367
7367
|
const n = E();
|
|
@@ -7457,28 +7457,28 @@ const bl = R({
|
|
|
7457
7457
|
return h || (h = a.value = i.value.parentElement), h;
|
|
7458
7458
|
} : (typeof e.to == "string" || e.to instanceof String) && (d = () => document.querySelector(e.to)));
|
|
7459
7459
|
const u = gl(d, s());
|
|
7460
|
-
let
|
|
7461
|
-
!
|
|
7460
|
+
let c = t.content;
|
|
7461
|
+
!c && e.to === "parent" && (c = t.default), te(() => {
|
|
7462
7462
|
l.value = !0, ye(() => {
|
|
7463
|
-
|
|
7463
|
+
c && u.setContent(() => o.value);
|
|
7464
7464
|
});
|
|
7465
7465
|
}), re(u.state, () => {
|
|
7466
7466
|
n("state", V(u.state));
|
|
7467
7467
|
}, { immediate: !0, deep: !0 }), re(() => e, () => {
|
|
7468
|
-
u.setProps(s()),
|
|
7468
|
+
u.setProps(s()), c && u.setContent(() => o.value);
|
|
7469
7469
|
}, { deep: !0 });
|
|
7470
|
-
let
|
|
7470
|
+
let f = hr({
|
|
7471
7471
|
elem: a,
|
|
7472
7472
|
contentElem: o,
|
|
7473
7473
|
mounted: l,
|
|
7474
7474
|
...u
|
|
7475
7475
|
});
|
|
7476
|
-
return r(
|
|
7477
|
-
const h = (typeof e.contentTag == "string", e.contentTag), m =
|
|
7476
|
+
return r(f), () => {
|
|
7477
|
+
const h = (typeof e.contentTag == "string", e.contentTag), m = c ? de(h, {
|
|
7478
7478
|
ref: o,
|
|
7479
7479
|
style: { display: l.value ? "inherit" : "none" },
|
|
7480
7480
|
class: e.contentClass
|
|
7481
|
-
}, f
|
|
7481
|
+
}, c(f)) : null;
|
|
7482
7482
|
if (e.to === "parent") {
|
|
7483
7483
|
const b = [];
|
|
7484
7484
|
if (!a.value) {
|
|
@@ -7491,7 +7491,7 @@ const bl = R({
|
|
|
7491
7491
|
}
|
|
7492
7492
|
return m && b.push(m), b;
|
|
7493
7493
|
}
|
|
7494
|
-
const p = t.default ? t.default(
|
|
7494
|
+
const p = t.default ? t.default(f) : [];
|
|
7495
7495
|
if (!e.tag) {
|
|
7496
7496
|
const b = de(p[0], {
|
|
7497
7497
|
ref: a,
|
|
@@ -7765,25 +7765,25 @@ const im = /* @__PURE__ */ R({
|
|
|
7765
7765
|
setup(e, { expose: t }) {
|
|
7766
7766
|
const n = e, r = xe(e, "modelValue"), a = xe(e, "isLoading"), i = xe(e, "query"), o = xe(e, "errors"), l = P(
|
|
7767
7767
|
() => i.value === "" ? n.options : n.options.filter(
|
|
7768
|
-
(
|
|
7768
|
+
(f) => {
|
|
7769
7769
|
var h;
|
|
7770
|
-
return (h =
|
|
7770
|
+
return (h = f == null ? void 0 : f.label) == null ? void 0 : h.toLowerCase().replace(/\s+/g, "").includes(i.value.toLowerCase().replace(/\s+/g, ""));
|
|
7771
7771
|
}
|
|
7772
7772
|
)
|
|
7773
7773
|
), s = () => {
|
|
7774
7774
|
n.disabled || (r.value = void 0);
|
|
7775
7775
|
}, d = E(null), u = () => {
|
|
7776
7776
|
d.value && d.value.el.click();
|
|
7777
|
-
},
|
|
7777
|
+
}, c = E();
|
|
7778
7778
|
return re(
|
|
7779
7779
|
() => r.value,
|
|
7780
7780
|
() => {
|
|
7781
|
-
var
|
|
7782
|
-
(
|
|
7781
|
+
var f;
|
|
7782
|
+
(f = o.value) != null && f.length && (o.value = []);
|
|
7783
7783
|
}
|
|
7784
7784
|
), t({
|
|
7785
|
-
inputRef:
|
|
7786
|
-
}), (
|
|
7785
|
+
inputRef: c
|
|
7786
|
+
}), (f, h) => {
|
|
7787
7787
|
const m = $e("base-icon");
|
|
7788
7788
|
return S(), N(oe(Ue), {
|
|
7789
7789
|
label: n.label,
|
|
@@ -7803,18 +7803,18 @@ const im = /* @__PURE__ */ R({
|
|
|
7803
7803
|
C("div", Cm, [
|
|
7804
7804
|
X(V(gu), {
|
|
7805
7805
|
ref_key: "inputRef",
|
|
7806
|
-
ref:
|
|
7806
|
+
ref: c,
|
|
7807
7807
|
class: H(["form-input", {
|
|
7808
|
-
"border-simple pl-0!":
|
|
7809
|
-
"border-full":
|
|
7810
|
-
"border-none pl-0!":
|
|
7808
|
+
"border-simple pl-0!": f.border === "simple",
|
|
7809
|
+
"border-full": f.border === "full",
|
|
7810
|
+
"border-none pl-0!": f.border === "none"
|
|
7811
7811
|
}]),
|
|
7812
7812
|
onClick: u,
|
|
7813
7813
|
autocomplete: "off",
|
|
7814
7814
|
autofocus: n.autofocus,
|
|
7815
7815
|
required: n.required,
|
|
7816
7816
|
disabled: n.disabled,
|
|
7817
|
-
placeholder:
|
|
7817
|
+
placeholder: f.placeholder,
|
|
7818
7818
|
displayValue: () => {
|
|
7819
7819
|
var p;
|
|
7820
7820
|
return ((p = r.value) == null ? void 0 : p.label) ?? "";
|
|
@@ -7933,7 +7933,7 @@ const im = /* @__PURE__ */ R({
|
|
|
7933
7933
|
ref_key: "inputRef",
|
|
7934
7934
|
ref: l,
|
|
7935
7935
|
id: V(o),
|
|
7936
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
7936
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => i.value = c),
|
|
7937
7937
|
required: d.required,
|
|
7938
7938
|
disabled: d.disabled,
|
|
7939
7939
|
"true-value": !0,
|
|
@@ -8011,12 +8011,12 @@ const im = /* @__PURE__ */ R({
|
|
|
8011
8011
|
});
|
|
8012
8012
|
}
|
|
8013
8013
|
);
|
|
8014
|
-
const
|
|
8014
|
+
const c = P(() => {
|
|
8015
8015
|
var p;
|
|
8016
8016
|
return !i.value || i.value === "" ? o.value : (p = o.value) == null ? void 0 : p.filter(
|
|
8017
8017
|
(g) => g.label.toLowerCase().replace(/\s+/g, "").includes(i.value.toLowerCase().replace(/\s+/g, ""))
|
|
8018
8018
|
);
|
|
8019
|
-
}),
|
|
8019
|
+
}), f = (p) => {
|
|
8020
8020
|
a.value = p, n.value = p.label, m();
|
|
8021
8021
|
};
|
|
8022
8022
|
re(
|
|
@@ -8084,11 +8084,11 @@ const im = /* @__PURE__ */ R({
|
|
|
8084
8084
|
C("div", Nm, [
|
|
8085
8085
|
C("div", Wm, [
|
|
8086
8086
|
r.value ? (S(), T("div", jm, " Loading data... ")) : q("", !0),
|
|
8087
|
-
!r.value &&
|
|
8088
|
-
(S(!0), T(me, null, _e(
|
|
8087
|
+
!r.value && c.value.length === 0 ? (S(), T("div", qm, " Nothing found. ")) : q("", !0),
|
|
8088
|
+
(S(!0), T(me, null, _e(c.value, (v, A) => (S(), T("div", {
|
|
8089
8089
|
key: A,
|
|
8090
8090
|
class: "py-4 px-8 border-b dark:border-b-slate-800 hover:bg-blue-100 dark:hover-bg-slate-800 cursor-pointer",
|
|
8091
|
-
onClick: (x) =>
|
|
8091
|
+
onClick: (x) => f(v)
|
|
8092
8092
|
}, [
|
|
8093
8093
|
K(p.$slots, "default", { option: v }, () => [
|
|
8094
8094
|
Le(Q(v == null ? void 0 : v.label), 1)
|
|
@@ -8457,9 +8457,9 @@ function kn(e) {
|
|
|
8457
8457
|
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
|
|
8458
8458
|
if (!i)
|
|
8459
8459
|
return null;
|
|
8460
|
-
const o = i[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(l) ? gh(l, (
|
|
8460
|
+
const o = i[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(l) ? gh(l, (c) => c.test(o)) : (
|
|
8461
8461
|
// [TODO] -- I challenge you to fix the type
|
|
8462
|
-
hh(l, (
|
|
8462
|
+
hh(l, (c) => c.test(o))
|
|
8463
8463
|
);
|
|
8464
8464
|
let d;
|
|
8465
8465
|
d = e.valueCallback ? e.valueCallback(s) : s, d = n.valueCallback ? (
|
|
@@ -8617,8 +8617,8 @@ function $h(e, t) {
|
|
|
8617
8617
|
return Math.round(r / yl) + 1;
|
|
8618
8618
|
}
|
|
8619
8619
|
function wl(e, t) {
|
|
8620
|
-
var u,
|
|
8621
|
-
const n = Ze(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = Dr(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
8620
|
+
var u, c, f, h;
|
|
8621
|
+
const n = Ze(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = Dr(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((h = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = Rt((t == null ? void 0 : t.in) || e, 0);
|
|
8622
8622
|
o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
|
|
8623
8623
|
const l = Fn(o, t), s = Rt((t == null ? void 0 : t.in) || e, 0);
|
|
8624
8624
|
s.setFullYear(r, 0, i), s.setHours(0, 0, 0, 0);
|
|
@@ -9332,8 +9332,8 @@ function Uh(e, t, n) {
|
|
|
9332
9332
|
}
|
|
9333
9333
|
const zh = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Yh = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xh = /^'([^]*?)'?$/, Qh = /''/g, Gh = /[a-zA-Z]/;
|
|
9334
9334
|
function Kh(e, t, n) {
|
|
9335
|
-
var u,
|
|
9336
|
-
const r = Dr(), a = r.locale ?? Ih, i = r.firstWeekContainsDate ?? ((
|
|
9335
|
+
var u, c, f, h;
|
|
9336
|
+
const r = Dr(), a = r.locale ?? Ih, i = r.firstWeekContainsDate ?? ((c = (u = r.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, o = r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, l = Ze(e, n == null ? void 0 : n.in);
|
|
9337
9337
|
if (!Jm(l))
|
|
9338
9338
|
throw new RangeError("Invalid time value");
|
|
9339
9339
|
let s = t.match(Yh).map((m) => {
|
|
@@ -9392,8 +9392,8 @@ function Zh(e, t) {
|
|
|
9392
9392
|
a = `${l < 0 ? "+" : "-"}${m}:${p}`;
|
|
9393
9393
|
} else
|
|
9394
9394
|
a = "Z";
|
|
9395
|
-
const s = se(n.getHours(), 2), d = se(n.getMinutes(), 2), u = se(n.getSeconds(), 2),
|
|
9396
|
-
r = `${r}${
|
|
9395
|
+
const s = se(n.getHours(), 2), d = se(n.getMinutes(), 2), u = se(n.getSeconds(), 2), c = r === "" ? "" : "T", f = [s, d, u].join(o);
|
|
9396
|
+
r = `${r}${c}${f}${a}`;
|
|
9397
9397
|
}
|
|
9398
9398
|
return r;
|
|
9399
9399
|
}
|
|
@@ -9417,38 +9417,38 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9417
9417
|
emits: /* @__PURE__ */ ke(["isoValue", "update:modelValue"], ["update:errors"]),
|
|
9418
9418
|
setup(e, { expose: t, emit: n }) {
|
|
9419
9419
|
const r = e, a = n, i = xe(e, "errors"), o = P({
|
|
9420
|
-
set: (
|
|
9420
|
+
set: (c) => {
|
|
9421
9421
|
if (!r.disabled) {
|
|
9422
9422
|
i.value = [];
|
|
9423
|
-
const
|
|
9424
|
-
if (
|
|
9423
|
+
const f = c.split("-");
|
|
9424
|
+
if (f.length !== 3 || Number(f[0]) < 1e3) {
|
|
9425
9425
|
i.value = ["Invalid date format."], d.value = "", a("update:modelValue", "");
|
|
9426
9426
|
return;
|
|
9427
9427
|
}
|
|
9428
9428
|
const h = /* @__PURE__ */ new Date();
|
|
9429
|
-
h.setDate(Number(
|
|
9429
|
+
h.setDate(Number(f[2])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[0])), d.value = `${f[0]}-${f[1]}-${f[2]}`, a("isoValue", Zh(h)), a("update:modelValue", c);
|
|
9430
9430
|
}
|
|
9431
9431
|
},
|
|
9432
9432
|
get: () => r.modelValue
|
|
9433
9433
|
}), l = E(), s = () => {
|
|
9434
9434
|
r.disabled || (l.value.focus(), l.value.showPicker());
|
|
9435
9435
|
}, d = E();
|
|
9436
|
-
re(o, (
|
|
9437
|
-
const
|
|
9438
|
-
if (
|
|
9436
|
+
re(o, (c) => {
|
|
9437
|
+
const f = c.split("-");
|
|
9438
|
+
if (f.length !== 3 || Number(f[0]) < 1e3) {
|
|
9439
9439
|
i.value = ["Invalid date format."], d.value = "", a("update:modelValue", "");
|
|
9440
9440
|
return;
|
|
9441
9441
|
}
|
|
9442
9442
|
const h = /* @__PURE__ */ new Date();
|
|
9443
|
-
h.setDate(Number(
|
|
9444
|
-
}), re(d, (
|
|
9445
|
-
|
|
9443
|
+
h.setDate(Number(f[2])), h.setMonth(Number(f[1])), h.setFullYear(Number(f[0])), d.value = `${f[0]}-${f[1]}-${f[2]}`;
|
|
9444
|
+
}), re(d, (c) => {
|
|
9445
|
+
c ? o.value = Kh(new Date(c), "yyyy-MM-dd") : a("update:modelValue", ""), l.value.blur();
|
|
9446
9446
|
});
|
|
9447
9447
|
const u = E();
|
|
9448
9448
|
return t({
|
|
9449
9449
|
inputRef: u,
|
|
9450
9450
|
dateRef: l
|
|
9451
|
-
}), (
|
|
9451
|
+
}), (c, f) => {
|
|
9452
9452
|
const h = $e("base-icon"), m = Yo("input-mask");
|
|
9453
9453
|
return S(), N(oe(Ue), {
|
|
9454
9454
|
label: r.label,
|
|
@@ -9462,10 +9462,10 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9462
9462
|
nt(C("input", {
|
|
9463
9463
|
ref_key: "dateRef",
|
|
9464
9464
|
ref: l,
|
|
9465
|
-
"onUpdate:modelValue":
|
|
9465
|
+
"onUpdate:modelValue": f[0] || (f[0] = (p) => d.value = p),
|
|
9466
9466
|
type: "date",
|
|
9467
9467
|
class: H(["form-input absolute! -z-50 text-transparent bg-transparent", {
|
|
9468
|
-
"pl-0!":
|
|
9468
|
+
"pl-0!": c.border === "simple" || c.border === "none"
|
|
9469
9469
|
}])
|
|
9470
9470
|
}, null, 2), [
|
|
9471
9471
|
[ln, d.value]
|
|
@@ -9474,9 +9474,9 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9474
9474
|
variant: "text",
|
|
9475
9475
|
type: "button",
|
|
9476
9476
|
class: H(["absolute left-0 px-0! py-2", {
|
|
9477
|
-
"px-2!":
|
|
9477
|
+
"px-2!": c.border === "full"
|
|
9478
9478
|
}]),
|
|
9479
|
-
onClick:
|
|
9479
|
+
onClick: f[1] || (f[1] = (p) => s())
|
|
9480
9480
|
}, {
|
|
9481
9481
|
default: F(() => [
|
|
9482
9482
|
X(h, { icon: "i-far-calendar" })
|
|
@@ -9486,12 +9486,12 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9486
9486
|
nt(C("input", {
|
|
9487
9487
|
ref_key: "inputRef",
|
|
9488
9488
|
ref: u,
|
|
9489
|
-
"onUpdate:modelValue":
|
|
9489
|
+
"onUpdate:modelValue": f[2] || (f[2] = (p) => o.value = p),
|
|
9490
9490
|
type: "text",
|
|
9491
9491
|
class: H(["form-input bg-inherit", {
|
|
9492
|
-
"border-simple pl-6!":
|
|
9493
|
-
"border-full pl-8!":
|
|
9494
|
-
"border-none pl-6!":
|
|
9492
|
+
"border-simple pl-6!": c.border === "simple",
|
|
9493
|
+
"border-full pl-8!": c.border === "full",
|
|
9494
|
+
"border-none pl-6!": c.border === "none"
|
|
9495
9495
|
}]),
|
|
9496
9496
|
placeholder: "YYYY-MM-DD",
|
|
9497
9497
|
autofocus: r.autofocus,
|
|
@@ -9556,7 +9556,7 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9556
9556
|
"border-full": d.border === "full",
|
|
9557
9557
|
"border-none": d.border === "none"
|
|
9558
9558
|
}]),
|
|
9559
|
-
onChange: u[0] || (u[0] = (
|
|
9559
|
+
onChange: u[0] || (u[0] = (c) => i(c)),
|
|
9560
9560
|
type: "file",
|
|
9561
9561
|
multiple: d.multiple,
|
|
9562
9562
|
autofocus: r.autofocus,
|
|
@@ -9568,7 +9568,7 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9568
9568
|
ref_key: "fileRef",
|
|
9569
9569
|
ref: o,
|
|
9570
9570
|
class: "hidden",
|
|
9571
|
-
onChange: u[1] || (u[1] = (
|
|
9571
|
+
onChange: u[1] || (u[1] = (c) => i(c)),
|
|
9572
9572
|
type: "file",
|
|
9573
9573
|
multiple: d.multiple,
|
|
9574
9574
|
required: r.required,
|
|
@@ -9594,8 +9594,8 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9594
9594
|
required: { type: Boolean, default: !1 },
|
|
9595
9595
|
readonly: { type: Boolean, default: !1 },
|
|
9596
9596
|
disabled: { type: Boolean, default: !1 },
|
|
9597
|
-
|
|
9598
|
-
|
|
9597
|
+
resetErrorsOnUpdate: { type: Boolean, default: !0 },
|
|
9598
|
+
helpers: {}
|
|
9599
9599
|
}, {
|
|
9600
9600
|
errors: {},
|
|
9601
9601
|
errorsModifiers: {}
|
|
@@ -9603,40 +9603,42 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9603
9603
|
emits: /* @__PURE__ */ ke(["update:modelValue"], ["update:errors"]),
|
|
9604
9604
|
setup(e, { expose: t, emit: n }) {
|
|
9605
9605
|
const r = e, a = n, i = P({
|
|
9606
|
-
set: (
|
|
9607
|
-
var
|
|
9608
|
-
a("update:modelValue",
|
|
9606
|
+
set: (h) => {
|
|
9607
|
+
var m;
|
|
9608
|
+
a("update:modelValue", h), r.resetErrorsOnUpdate === !0 && ((m = c.value) != null && m.length) && (c.value = []);
|
|
9609
9609
|
},
|
|
9610
9610
|
get: () => r.modelValue
|
|
9611
|
-
}), o = E(), l = E(), s = E(
|
|
9611
|
+
}), o = E(), l = E(), s = E(), d = E(0), u = E(0), c = xe(e, "errors");
|
|
9612
9612
|
te(() => {
|
|
9613
|
-
|
|
9614
|
-
(r.border === "full" || (c = o.value) != null && c.clientWidth) && (s.value = ((h = o.value) == null ? void 0 : h.clientWidth) === 0 ? 10 : (m = o.value) == null ? void 0 : m.clientWidth), (r.border === "full" || (p = l.value) != null && p.clientWidth) && (d.value = ((g = l.value) == null ? void 0 : g.clientWidth) === 0 ? 10 : (b = l.value) == null ? void 0 : b.clientWidth), setTimeout(() => {
|
|
9615
|
-
var y, w, v, A, x, O;
|
|
9616
|
-
(r.border === "full" || (y = o.value) != null && y.clientWidth) && (s.value = ((w = o.value) == null ? void 0 : w.clientWidth) === 0 ? 10 : (v = o.value) == null ? void 0 : v.clientWidth), (r.border === "full" || (A = l.value) != null && A.clientWidth) && (d.value = ((x = l.value) == null ? void 0 : x.clientWidth) === 0 ? 10 : (O = l.value) == null ? void 0 : O.clientWidth);
|
|
9617
|
-
}, 1e3);
|
|
9613
|
+
f();
|
|
9618
9614
|
});
|
|
9619
|
-
const
|
|
9615
|
+
const f = () => {
|
|
9616
|
+
var m, p, g, b, y, w;
|
|
9617
|
+
(r.border === "full" || (m = l.value) != null && m.clientWidth) && (d.value = ((p = l.value) == null ? void 0 : p.clientWidth) === 0 ? 10 : (g = l.value) == null ? void 0 : g.clientWidth), (r.border === "full" || (b = s.value) != null && b.clientWidth) && (u.value = ((y = s.value) == null ? void 0 : y.clientWidth) === 0 ? 10 : (w = s.value) == null ? void 0 : w.clientWidth), setTimeout(() => {
|
|
9618
|
+
var v, A, x, k, O, $;
|
|
9619
|
+
(r.border === "full" || (v = l.value) != null && v.clientWidth) && (d.value = ((A = l.value) == null ? void 0 : A.clientWidth) === 0 ? 10 : (x = l.value) == null ? void 0 : x.clientWidth), (r.border === "full" || (k = s.value) != null && k.clientWidth) && (u.value = ((O = s.value) == null ? void 0 : O.clientWidth) === 0 ? 10 : ($ = s.value) == null ? void 0 : $.clientWidth);
|
|
9620
|
+
}, 1e3);
|
|
9621
|
+
};
|
|
9620
9622
|
return t({
|
|
9621
|
-
inputRef:
|
|
9622
|
-
}), (
|
|
9623
|
+
inputRef: o
|
|
9624
|
+
}), (h, m) => (S(), N(oe(Ue), {
|
|
9623
9625
|
label: r.label,
|
|
9624
9626
|
layout: r.layout,
|
|
9625
9627
|
description: r.description,
|
|
9626
9628
|
required: r.required,
|
|
9627
9629
|
helpers: r.helpers,
|
|
9628
|
-
errors:
|
|
9630
|
+
errors: c.value
|
|
9629
9631
|
}, {
|
|
9630
9632
|
default: F(() => [
|
|
9631
9633
|
nt(C("input", {
|
|
9632
9634
|
ref_key: "inputRef",
|
|
9633
|
-
ref:
|
|
9635
|
+
ref: o,
|
|
9634
9636
|
class: H(["form-input", {
|
|
9635
|
-
"border-simple":
|
|
9636
|
-
"border-full":
|
|
9637
|
-
"border-none":
|
|
9637
|
+
"border-simple": h.border === "simple",
|
|
9638
|
+
"border-full": h.border === "full",
|
|
9639
|
+
"border-none": h.border === "none"
|
|
9638
9640
|
}]),
|
|
9639
|
-
"onUpdate:modelValue":
|
|
9641
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p),
|
|
9640
9642
|
type: r.type,
|
|
9641
9643
|
maxlength: r.maxlength,
|
|
9642
9644
|
placeholder: r.placeholder,
|
|
@@ -9645,8 +9647,8 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9645
9647
|
readonly: r.readonly,
|
|
9646
9648
|
disabled: r.disabled,
|
|
9647
9649
|
style: wt({
|
|
9648
|
-
paddingLeft: `${
|
|
9649
|
-
paddingRight: `${
|
|
9650
|
+
paddingLeft: `${d.value}px`,
|
|
9651
|
+
paddingRight: `${u.value}px`
|
|
9650
9652
|
})
|
|
9651
9653
|
}, null, 14, lg), [
|
|
9652
9654
|
[
|
|
@@ -9658,23 +9660,23 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9658
9660
|
]),
|
|
9659
9661
|
C("div", {
|
|
9660
9662
|
ref_key: "suffixRef",
|
|
9661
|
-
ref:
|
|
9663
|
+
ref: s,
|
|
9662
9664
|
class: "absolute right-0 h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
|
|
9663
9665
|
}, [
|
|
9664
|
-
K(
|
|
9666
|
+
K(h.$slots, "suffix", {}, void 0, !0)
|
|
9665
9667
|
], 512),
|
|
9666
9668
|
C("div", {
|
|
9667
9669
|
ref_key: "prefixRef",
|
|
9668
|
-
ref:
|
|
9670
|
+
ref: l,
|
|
9669
9671
|
class: "absolute h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
|
|
9670
9672
|
}, [
|
|
9671
|
-
K(
|
|
9673
|
+
K(h.$slots, "prefix", {}, void 0, !0)
|
|
9672
9674
|
], 512)
|
|
9673
9675
|
]),
|
|
9674
9676
|
_: 3
|
|
9675
9677
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
|
|
9676
9678
|
}
|
|
9677
|
-
}), ug = /* @__PURE__ */ le(sg, [["__scopeId", "data-v-
|
|
9679
|
+
}), ug = /* @__PURE__ */ le(sg, [["__scopeId", "data-v-566d5cfc"]]), dg = ["placeholder", "autofocus", "required", "disabled"], cg = /* @__PURE__ */ R({
|
|
9678
9680
|
__name: "base-input-mask",
|
|
9679
9681
|
props: /* @__PURE__ */ ke({
|
|
9680
9682
|
modelValue: { type: [String, Number, Boolean, null] },
|
|
@@ -9723,7 +9725,7 @@ const eg = ["autofocus", "required", "disabled"], tg = /* @__PURE__ */ R({
|
|
|
9723
9725
|
"border-full": s.border === "full",
|
|
9724
9726
|
"border-none px-0!": s.border === "none"
|
|
9725
9727
|
}]),
|
|
9726
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
9728
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => i.value = c),
|
|
9727
9729
|
placeholder: r.placeholder,
|
|
9728
9730
|
autofocus: r.autofocus,
|
|
9729
9731
|
required: r.required,
|
|
@@ -9813,8 +9815,8 @@ Sl.prototype = {
|
|
|
9813
9815
|
}), this.getFixedDateString(n);
|
|
9814
9816
|
},
|
|
9815
9817
|
getFixedDateString: function(e) {
|
|
9816
|
-
var t = this, n = t.datePattern, r = [], a = 0, i = 0, o = 0, l = 0, s = 0, d = 0, u,
|
|
9817
|
-
e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10),
|
|
9818
|
+
var t = this, n = t.datePattern, r = [], a = 0, i = 0, o = 0, l = 0, s = 0, d = 0, u, c, f, h = !1;
|
|
9819
|
+
e.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, s = 2 - l, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), r = this.getFixedDate(u, c, 0)), e.length === 8 && (n.forEach(function(p, g) {
|
|
9818
9820
|
switch (p) {
|
|
9819
9821
|
case "d":
|
|
9820
9822
|
a = g;
|
|
@@ -9826,7 +9828,7 @@ Sl.prototype = {
|
|
|
9826
9828
|
o = g;
|
|
9827
9829
|
break;
|
|
9828
9830
|
}
|
|
9829
|
-
}), d = o * 2, l = a <= o ? a * 2 : a * 2 + 2, s = i <= o ? i * 2 : i * 2 + 2, u = parseInt(e.slice(l, l + 2), 10),
|
|
9831
|
+
}), d = o * 2, l = a <= o ? a * 2 : a * 2 + 2, s = i <= o ? i * 2 : i * 2 + 2, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = this.getFixedDate(u, c, f)), e.length === 4 && (n[0] === "y" || n[1] === "y") && (s = n[0] === "m" ? 0 : 2, d = 2 - s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 2), 10), h = e.slice(d, d + 2).length === 2, r = [0, c, f]), e.length === 6 && (n[0] === "Y" || n[1] === "Y") && (s = n[0] === "m" ? 0 : 4, d = 2 - 0.5 * s, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 4), 10), h = e.slice(d, d + 4).length === 4, r = [0, c, f]), r = t.getRangeFixedDate(r), t.date = r;
|
|
9830
9832
|
var m = r.length === 0 ? e : n.reduce(function(p, g) {
|
|
9831
9833
|
switch (g) {
|
|
9832
9834
|
case "d":
|
|
@@ -9913,7 +9915,7 @@ Ol.prototype = {
|
|
|
9913
9915
|
}), this.getFixedTimeString(n);
|
|
9914
9916
|
},
|
|
9915
9917
|
getFixedTimeString: function(e) {
|
|
9916
|
-
var t = this, n = t.timePattern, r = [], a = 0, i = 0, o = 0, l = 0, s = 0, d = 0, u,
|
|
9918
|
+
var t = this, n = t.timePattern, r = [], a = 0, i = 0, o = 0, l = 0, s = 0, d = 0, u, c, f;
|
|
9917
9919
|
return e.length === 6 && (n.forEach(function(h, m) {
|
|
9918
9920
|
switch (h) {
|
|
9919
9921
|
case "s":
|
|
@@ -9926,7 +9928,7 @@ Ol.prototype = {
|
|
|
9926
9928
|
o = m * 2;
|
|
9927
9929
|
break;
|
|
9928
9930
|
}
|
|
9929
|
-
}), d = o, s = i, l = a, u = parseInt(e.slice(l, l + 2), 10),
|
|
9931
|
+
}), d = o, s = i, l = a, u = parseInt(e.slice(l, l + 2), 10), c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 2), 10), r = this.getFixedTime(f, c, u)), e.length === 4 && t.timePattern.indexOf("s") < 0 && (n.forEach(function(h, m) {
|
|
9930
9932
|
switch (h) {
|
|
9931
9933
|
case "m":
|
|
9932
9934
|
i = m * 2;
|
|
@@ -9935,7 +9937,7 @@ Ol.prototype = {
|
|
|
9935
9937
|
o = m * 2;
|
|
9936
9938
|
break;
|
|
9937
9939
|
}
|
|
9938
|
-
}), d = o, s = i, u = 0,
|
|
9940
|
+
}), d = o, s = i, u = 0, c = parseInt(e.slice(s, s + 2), 10), f = parseInt(e.slice(d, d + 2), 10), r = this.getFixedTime(f, c, u)), t.time = r, r.length === 0 ? e : n.reduce(function(h, m) {
|
|
9939
9941
|
switch (m) {
|
|
9940
9942
|
case "s":
|
|
9941
9943
|
return h + t.addLeadingZero(r[2]);
|
|
@@ -10112,8 +10114,8 @@ var hg = kl, ma = {
|
|
|
10112
10114
|
var o = "", l = a.length > 0, s = "";
|
|
10113
10115
|
return n === 0 ? e : (t.forEach(function(d, u) {
|
|
10114
10116
|
if (e.length > 0) {
|
|
10115
|
-
var
|
|
10116
|
-
l ? s = a[i ? u - 1 : u] || s : s = r, i ? (u > 0 && (o += s), o +=
|
|
10117
|
+
var c = e.slice(0, d), f = e.slice(d);
|
|
10118
|
+
l ? s = a[i ? u - 1 : u] || s : s = r, i ? (u > 0 && (o += s), o += c) : (o += c, c.length === d && u < n - 1 && (o += s)), e = f;
|
|
10117
10119
|
}
|
|
10118
10120
|
}), o);
|
|
10119
10121
|
},
|
|
@@ -10367,6 +10369,7 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10367
10369
|
autofocus: { type: Boolean, default: !1 },
|
|
10368
10370
|
required: { type: Boolean, default: !1 },
|
|
10369
10371
|
disabled: { type: Boolean, default: !1 },
|
|
10372
|
+
resetErrorsOnUpdate: { type: Boolean, default: !0 },
|
|
10370
10373
|
helpers: {}
|
|
10371
10374
|
}, {
|
|
10372
10375
|
modelValue: {},
|
|
@@ -10387,19 +10390,19 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10387
10390
|
numeralDecimalScale: r.decimalLength,
|
|
10388
10391
|
onValueChanged: m
|
|
10389
10392
|
}), (r.border === "full" || (g = l.value) != null && g.clientWidth) && (d.value = ((b = l.value) == null ? void 0 : b.clientWidth) === 0 ? 10 : (y = l.value) == null ? void 0 : y.clientWidth), (r.border === "full" || (w = s.value) != null && w.clientWidth) && (u.value = ((v = s.value) == null ? void 0 : v.clientWidth) === 0 ? 10 : (A = s.value) == null ? void 0 : A.clientWidth), setTimeout(() => {
|
|
10390
|
-
var x,
|
|
10391
|
-
(r.border === "full" || (x = l.value) != null && x.clientWidth) && (d.value = ((
|
|
10393
|
+
var x, k, O, $, B, I;
|
|
10394
|
+
(r.border === "full" || (x = l.value) != null && x.clientWidth) && (d.value = ((k = l.value) == null ? void 0 : k.clientWidth) === 0 ? 10 : (O = l.value) == null ? void 0 : O.clientWidth), (r.border === "full" || ($ = s.value) != null && $.clientWidth) && (u.value = ((B = s.value) == null ? void 0 : B.clientWidth) === 0 ? 10 : (I = s.value) == null ? void 0 : I.clientWidth);
|
|
10392
10395
|
}, 1e3);
|
|
10393
10396
|
});
|
|
10394
|
-
const
|
|
10397
|
+
const c = xe(e, "modelValue"), f = xe(e, "errors"), h = n, m = (g) => {
|
|
10395
10398
|
var b;
|
|
10396
|
-
h("update:modelValue", Number(g.target.rawValue)), (b =
|
|
10399
|
+
h("update:modelValue", Number(g.target.rawValue)), r.resetErrorsOnUpdate === !0 && ((b = f.value) != null && b.length) && (f.value = []);
|
|
10397
10400
|
}, p = P({
|
|
10398
10401
|
set: () => {
|
|
10399
10402
|
},
|
|
10400
10403
|
get: () => new Intl.NumberFormat("en-US", {
|
|
10401
10404
|
maximumFractionDigits: r.decimalLength
|
|
10402
|
-
}).format(
|
|
10405
|
+
}).format(c.value)
|
|
10403
10406
|
});
|
|
10404
10407
|
return t({
|
|
10405
10408
|
inputRef: i
|
|
@@ -10409,7 +10412,7 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10409
10412
|
description: r.description,
|
|
10410
10413
|
required: r.required,
|
|
10411
10414
|
helpers: r.helpers,
|
|
10412
|
-
errors:
|
|
10415
|
+
errors: f.value
|
|
10413
10416
|
}, {
|
|
10414
10417
|
default: F(() => [
|
|
10415
10418
|
nt(C("input", {
|
|
@@ -10452,7 +10455,7 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10452
10455
|
_: 3
|
|
10453
10456
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
|
|
10454
10457
|
}
|
|
10455
|
-
}), Og = /* @__PURE__ */ le(Sg, [["__scopeId", "data-v-
|
|
10458
|
+
}), Og = /* @__PURE__ */ le(Sg, [["__scopeId", "data-v-ed3969cf"]]), kg = { class: "cursor-pointer" }, Cg = { class: "flex items-center justify-between gap-2" }, Eg = {
|
|
10456
10459
|
key: 0,
|
|
10457
10460
|
class: "shrink-0 text-white"
|
|
10458
10461
|
}, Pg = {
|
|
@@ -10511,18 +10514,18 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10511
10514
|
disabled: o.disabled,
|
|
10512
10515
|
value: d
|
|
10513
10516
|
}, {
|
|
10514
|
-
default: F(({ active: u, checked:
|
|
10517
|
+
default: F(({ active: u, checked: c }) => [
|
|
10515
10518
|
K(o.$slots, "default", {
|
|
10516
10519
|
active: u,
|
|
10517
|
-
checked:
|
|
10520
|
+
checked: c,
|
|
10518
10521
|
option: d
|
|
10519
10522
|
}, () => [
|
|
10520
10523
|
C("div", kg, [
|
|
10521
10524
|
C("div", {
|
|
10522
|
-
class: H([[
|
|
10525
|
+
class: H([[c ? "bg-primary text-white " : "bg-white text-slate-900"], "border rounded p-2"])
|
|
10523
10526
|
}, [
|
|
10524
10527
|
C("div", Cg, [
|
|
10525
|
-
|
|
10528
|
+
c ? (S(), T("div", Eg, [
|
|
10526
10529
|
X(s, { icon: "i-fas-circle-check" })
|
|
10527
10530
|
])) : (S(), T("div", Pg, [
|
|
10528
10531
|
X(s, { icon: "i-far-circle" })
|
|
@@ -10657,14 +10660,14 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10657
10660
|
}])
|
|
10658
10661
|
}, {
|
|
10659
10662
|
default: F(() => {
|
|
10660
|
-
var d, u,
|
|
10663
|
+
var d, u, c;
|
|
10661
10664
|
return [
|
|
10662
10665
|
(d = i.value) != null && d.label ? (S(), T("span", Fg, Q((u = i.value) == null ? void 0 : u.label), 1)) : (S(), T("span", _g, Q(n.placeholder), 1)),
|
|
10663
10666
|
C("span", Vg, [
|
|
10664
|
-
(
|
|
10667
|
+
(c = i.value) != null && c.label ? (S(), T("i", {
|
|
10665
10668
|
key: 1,
|
|
10666
10669
|
class: "i-fas-xmark block h-5 w-5 text-gray-400",
|
|
10667
|
-
onClick: s[0] || (s[0] = (
|
|
10670
|
+
onClick: s[0] || (s[0] = (f) => o())
|
|
10668
10671
|
})) : (S(), T("i", Ng))
|
|
10669
10672
|
])
|
|
10670
10673
|
];
|
|
@@ -10680,15 +10683,15 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10680
10683
|
value: d,
|
|
10681
10684
|
as: "template"
|
|
10682
10685
|
}, {
|
|
10683
|
-
default: F(({ active:
|
|
10686
|
+
default: F(({ active: c, selected: f }) => [
|
|
10684
10687
|
C("li", {
|
|
10685
10688
|
class: H([
|
|
10686
|
-
|
|
10689
|
+
c ? "list-box-option-active" : "list-box-option-inactive",
|
|
10687
10690
|
"list-box-option"
|
|
10688
10691
|
])
|
|
10689
10692
|
}, [
|
|
10690
10693
|
C("span", {
|
|
10691
|
-
class: H([
|
|
10694
|
+
class: H([f ? "font-extrabold" : "font-normal", "block "])
|
|
10692
10695
|
}, Q(d.label), 3)
|
|
10693
10696
|
], 2)
|
|
10694
10697
|
]),
|
|
@@ -10799,8 +10802,8 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10799
10802
|
setup(e, { expose: t, emit: n }) {
|
|
10800
10803
|
const r = e, a = xe(e, "errors"), i = n, o = P({
|
|
10801
10804
|
set: (u) => {
|
|
10802
|
-
var
|
|
10803
|
-
i("update:modelValue", u), (
|
|
10805
|
+
var c;
|
|
10806
|
+
i("update:modelValue", u), (c = a.value) != null && c.length && (a.value = []), d();
|
|
10804
10807
|
},
|
|
10805
10808
|
get: () => r.modelValue
|
|
10806
10809
|
}), l = E(0), s = E();
|
|
@@ -10817,7 +10820,7 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10817
10820
|
};
|
|
10818
10821
|
return t({
|
|
10819
10822
|
textareaRef: s
|
|
10820
|
-
}), (u,
|
|
10823
|
+
}), (u, c) => (S(), N(oe(Ue), {
|
|
10821
10824
|
label: r.label,
|
|
10822
10825
|
layout: r.layout,
|
|
10823
10826
|
description: r.description,
|
|
@@ -10845,7 +10848,7 @@ const xg = ["placeholder", "autofocus", "required", "disabled"], Sg = /* @__PURE
|
|
|
10845
10848
|
minHeight: u.minHeight ? u.minHeight + "px" : "inherit",
|
|
10846
10849
|
maxHeight: u.maxHeight ? u.maxHeight + "px" : "inherit"
|
|
10847
10850
|
}),
|
|
10848
|
-
"onUpdate:modelValue":
|
|
10851
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => o.value = f)
|
|
10849
10852
|
}, null, 14, Ug), [
|
|
10850
10853
|
[ln, o.value]
|
|
10851
10854
|
])
|
|
@@ -11048,11 +11051,11 @@ const iy = ba("websocket", () => {
|
|
|
11048
11051
|
}, e.value.onerror = (p) => {
|
|
11049
11052
|
};
|
|
11050
11053
|
};
|
|
11051
|
-
function
|
|
11054
|
+
function c() {
|
|
11052
11055
|
var m;
|
|
11053
11056
|
(m = e.value) == null || m.close();
|
|
11054
11057
|
}
|
|
11055
|
-
function
|
|
11058
|
+
function f(m) {
|
|
11056
11059
|
var p;
|
|
11057
11060
|
(p = e.value) == null || p.send(pm(m));
|
|
11058
11061
|
}
|
|
@@ -11063,9 +11066,9 @@ const iy = ba("websocket", () => {
|
|
|
11063
11066
|
return {
|
|
11064
11067
|
readyState: h,
|
|
11065
11068
|
socket: e,
|
|
11066
|
-
send:
|
|
11069
|
+
send: f,
|
|
11067
11070
|
open: u,
|
|
11068
|
-
close:
|
|
11071
|
+
close: c,
|
|
11069
11072
|
status: i,
|
|
11070
11073
|
isOpen: l,
|
|
11071
11074
|
isClosed: s
|
|
@@ -11408,24 +11411,24 @@ const iy = ba("websocket", () => {
|
|
|
11408
11411
|
te(() => {
|
|
11409
11412
|
for (const u of r.value)
|
|
11410
11413
|
if (o.value === u && (o.value = u.name), u.submenu)
|
|
11411
|
-
for (const
|
|
11412
|
-
a.path.includes(
|
|
11414
|
+
for (const c of u.submenu)
|
|
11415
|
+
a.path.includes(c.path) && (o.value = u.name);
|
|
11413
11416
|
});
|
|
11414
11417
|
const d = (u) => u.substring(0, 8) === "https://" ? "external" : "internal";
|
|
11415
|
-
return (u,
|
|
11416
|
-
const
|
|
11418
|
+
return (u, c) => {
|
|
11419
|
+
const f = $e("base-icon"), h = $e("router-link");
|
|
11417
11420
|
return S(), T("div", bb, [
|
|
11418
11421
|
C("div", yb, [
|
|
11419
11422
|
C("div", Ab, [
|
|
11420
11423
|
C("p", wb, Q(u.title), 1),
|
|
11421
11424
|
n.value ? (S(), N(oe(V(De)), {
|
|
11422
11425
|
key: 0,
|
|
11423
|
-
onClick:
|
|
11426
|
+
onClick: c[0] || (c[0] = (m) => V(i).closeSidebar()),
|
|
11424
11427
|
class: "mr-2"
|
|
11425
11428
|
}, {
|
|
11426
11429
|
default: F(() => [
|
|
11427
11430
|
V(i).isSidebarOpen ? (S(), T("div", xb, [
|
|
11428
|
-
X(
|
|
11431
|
+
X(f, {
|
|
11429
11432
|
icon: "i-fas-angle-left",
|
|
11430
11433
|
class: "text-white"
|
|
11431
11434
|
})
|
|
@@ -11497,7 +11500,7 @@ const iy = ba("websocket", () => {
|
|
|
11497
11500
|
key: 0,
|
|
11498
11501
|
to: m.path,
|
|
11499
11502
|
class: "menu-link-button",
|
|
11500
|
-
onClick:
|
|
11503
|
+
onClick: c[1] || (c[1] = (p) => s())
|
|
11501
11504
|
}, {
|
|
11502
11505
|
default: F(() => [
|
|
11503
11506
|
Le(Q(m.name), 1)
|
|
@@ -11507,12 +11510,12 @@ const iy = ba("websocket", () => {
|
|
|
11507
11510
|
m.path && d(m.path) === "external" ? (S(), T("a", {
|
|
11508
11511
|
key: 1,
|
|
11509
11512
|
href: m.path,
|
|
11510
|
-
onClick:
|
|
11513
|
+
onClick: c[2] || (c[2] = (p) => s()),
|
|
11511
11514
|
target: "_blank",
|
|
11512
11515
|
class: "menu-link-button"
|
|
11513
11516
|
}, [
|
|
11514
11517
|
Le(Q(m.name) + " ", 1),
|
|
11515
|
-
X(
|
|
11518
|
+
X(f, { icon: "i-fas-up-right-from-square" })
|
|
11516
11519
|
], 8, Pb)) : q("", !0)
|
|
11517
11520
|
], 64)),
|
|
11518
11521
|
m.separator ? (S(), T("div", Tb)) : q("", !0)
|
|
@@ -11549,11 +11552,11 @@ const iy = ba("websocket", () => {
|
|
|
11549
11552
|
return S(), T("div", Ib, [
|
|
11550
11553
|
C("div", Mb, [
|
|
11551
11554
|
C("div", $b, [
|
|
11552
|
-
(S(!0), T(me, null, _e(n.apps, (u,
|
|
11555
|
+
(S(!0), T(me, null, _e(n.apps, (u, c) => (S(), T(me, null, [
|
|
11553
11556
|
a(u.path) === "internal" ? (S(), N(d, {
|
|
11554
|
-
key: `internal-${
|
|
11557
|
+
key: `internal-${c}`,
|
|
11555
11558
|
to: u.path,
|
|
11556
|
-
onClick: (
|
|
11559
|
+
onClick: (f) => o(u.path),
|
|
11557
11560
|
class: "sidebar-panel-link"
|
|
11558
11561
|
}, {
|
|
11559
11562
|
default: F(() => [
|
|
@@ -11568,7 +11571,7 @@ const iy = ba("websocket", () => {
|
|
|
11568
11571
|
]),
|
|
11569
11572
|
_: 2
|
|
11570
11573
|
}, 1032, ["to", "onClick"])) : a(u.path) === "external" ? (S(), T("a", {
|
|
11571
|
-
key: `external-${
|
|
11574
|
+
key: `external-${c}`,
|
|
11572
11575
|
href: u.path,
|
|
11573
11576
|
class: "sidebar-panel-link"
|
|
11574
11577
|
}, [
|
|
@@ -11601,7 +11604,7 @@ const iy = ba("websocket", () => {
|
|
|
11601
11604
|
const n = Br(), r = e, a = t, i = P(() => r.title), o = P(() => r.isMobile), l = P(() => r.isSidebarOpen), s = P(() => r.menus), d = (u) => {
|
|
11602
11605
|
a("choose", u);
|
|
11603
11606
|
};
|
|
11604
|
-
return (u,
|
|
11607
|
+
return (u, c) => (S(), T(me, null, [
|
|
11605
11608
|
C("div", zb, [
|
|
11606
11609
|
(S(), N(oe(Ub), {
|
|
11607
11610
|
apps: u.apps,
|
|
@@ -11616,7 +11619,7 @@ const iy = ba("websocket", () => {
|
|
|
11616
11619
|
]),
|
|
11617
11620
|
C("div", {
|
|
11618
11621
|
class: "sidebar-backdrop",
|
|
11619
|
-
onClick:
|
|
11622
|
+
onClick: c[0] || (c[0] = (f) => V(n).closeSidebar())
|
|
11620
11623
|
})
|
|
11621
11624
|
], 64));
|
|
11622
11625
|
}
|