@point-hub/papp 0.0.94 → 0.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1308,37 +1308,37 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1308
1308
  } }, a.value.getVirtualItems().map((l) => Ho(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
  } }), hu = 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
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
- function m(D = (I) => I) {
1312
- let I = c.value !== null ? u.value[c.value] : null, _ = D(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;
1311
+ function m(B = (I) => 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
- let p = P(() => e.multiple ? 1 : 0), g = P(() => e.nullable), [b, y] = ya(P(() => e.modelValue), (D) => r("update:modelValue", D), P(() => e.defaultValue)), w = P(() => b.value === void 0 ? be(p.value, { 1: [], 0: void 0 }) : b.value), v = null, A = null;
1316
- function x(D) {
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;
1316
+ function x(B) {
1317
1317
  return be(p.value, { 0() {
1318
- return y == null ? void 0 : y(D);
1318
+ return y == null ? void 0 : y(B);
1319
1319
  }, 1: () => {
1320
- let I = Ae(O.value.value).slice(), _ = Ae(D), L = I.findIndex((z) => O.compare(_, Ae(z)));
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
1324
  let k = P(() => {
1325
1325
  });
1326
- re([k], ([D], [I]) => {
1327
- if (O.virtual.value && D && I && c.value !== null) {
1328
- let _ = D.indexOf(I[c.value]);
1326
+ re([k], ([B], [I]) => {
1327
+ if (O.virtual.value && B && I && c.value !== null) {
1328
+ let _ = B.indexOf(I[c.value]);
1329
1329
  _ !== -1 ? c.value = _ : c.value = null;
1330
1330
  }
1331
1331
  });
1332
- let O = { comboboxState: a, value: w, mode: p, compare(D, I) {
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
- return (D == null ? void 0 : D[_]) === (I == null ? void 0 : I[_]);
1335
+ return (B == null ? void 0 : B[_]) === (I == null ? void 0 : I[_]);
1336
1336
  }
1337
- return e.by === null ? cu(D, I) : e.by(D, I);
1338
- }, calculateIndex(D) {
1339
- return O.virtual.value ? e.by === null ? O.virtual.value.options.indexOf(D) : O.virtual.value.options.findIndex((I) => O.compare(I, D)) : u.value.findIndex((I) => O.compare(I.dataRef.value, D));
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(D) {
1341
- y(D);
1337
+ return e.by === null ? cu(B, I) : e.by(B, I);
1338
+ }, calculateIndex(B) {
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
+ }, 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
+ y(B);
1342
1342
  }, activeOptionIndex: P(() => {
1343
1343
  if (h.value && c.value === null && (O.virtual.value ? O.virtual.value.options.length > 0 : u.value.length > 0)) {
1344
1344
  if (O.virtual.value) {
@@ -1348,8 +1348,8 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1348
1348
  });
1349
1349
  if (I !== -1) return I;
1350
1350
  }
1351
- let D = u.value.findIndex((I) => !I.dataRef.disabled);
1352
- if (D !== -1) return D;
1351
+ let B = u.value.findIndex((I) => !I.dataRef.disabled);
1352
+ if (B !== -1) return B;
1353
1353
  }
1354
1354
  return c.value;
1355
1355
  }), activationTrigger: f, optionsPropsRef: d, closeCombobox() {
@@ -1357,18 +1357,18 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1357
1357
  }, openCombobox() {
1358
1358
  if (h.value = !0, !e.disabled && a.value !== 0) {
1359
1359
  if (O.value.value) {
1360
- let D = O.calculateIndex(O.value.value);
1361
- D !== -1 && (c.value = D);
1360
+ let B = O.calculateIndex(O.value.value);
1361
+ B !== -1 && (c.value = B);
1362
1362
  }
1363
1363
  a.value = 0;
1364
1364
  }
1365
- }, setActivationTrigger(D) {
1366
- f.value = D;
1367
- }, goToOption(D, I, _) {
1365
+ }, setActivationTrigger(B) {
1366
+ f.value = B;
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
1370
  if (O.virtual.value) {
1371
- c.value = D === ee.Specific ? I : fr({ focus: D }, { resolveItems: () => O.virtual.value.options, resolveActiveIndex: () => {
1371
+ c.value = B === ee.Specific ? I : fr({ focus: B }, { resolveItems: () => O.virtual.value.options, resolveActiveIndex: () => {
1372
1372
  var Y, G;
1373
1373
  return (G = (Y = O.activeOptionIndex.value) != null ? Y : O.virtual.value.options.findIndex((ae) => {
1374
1374
  var ne;
@@ -1384,11 +1384,11 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1384
1384
  let Y = L.options.findIndex((G) => !G.dataRef.disabled);
1385
1385
  Y !== -1 && (L.activeOptionIndex = Y);
1386
1386
  }
1387
- let z = D === ee.Specific ? I : fr({ focus: D }, { resolveItems: () => L.options, resolveActiveIndex: () => L.activeOptionIndex, resolveId: (Y) => Y.id, resolveDisabled: (Y) => Y.dataRef.disabled });
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
- }, selectOption(D) {
1391
- let I = u.value.find((L) => L.id === D);
1390
+ }, selectOption(B) {
1391
+ let I = u.value.find((L) => L.id === B);
1392
1392
  if (!I) return;
1393
1393
  let { dataRef: _ } = I;
1394
1394
  x(_.value);
@@ -1396,13 +1396,13 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1396
1396
  if (O.activeOptionIndex.value !== null) {
1397
1397
  if (O.virtual.value) x(O.virtual.value.options[O.activeOptionIndex.value]);
1398
1398
  else {
1399
- let { dataRef: D } = u.value[O.activeOptionIndex.value];
1400
- x(D.value);
1399
+ let { dataRef: B } = u.value[O.activeOptionIndex.value];
1400
+ x(B.value);
1401
1401
  }
1402
1402
  O.goToOption(ee.Specific, O.activeOptionIndex.value);
1403
1403
  }
1404
- }, registerOption(D, I) {
1405
- let _ = hr({ id: D, dataRef: I });
1404
+ }, registerOption(B, I) {
1405
+ let _ = hr({ id: B, dataRef: I });
1406
1406
  if (O.virtual.value) {
1407
1407
  u.value.push(_);
1408
1408
  return;
@@ -1413,40 +1413,40 @@ let ui = Symbol("VirtualContext"), mu = R({ name: "VirtualProvider", setup(e, {
1413
1413
  let z = m();
1414
1414
  u.value = z.options, c.value = z.activeOptionIndex;
1415
1415
  }));
1416
- }, unregisterOption(D, I) {
1416
+ }, unregisterOption(B, I) {
1417
1417
  if (v !== null && cancelAnimationFrame(v), I && (h.value = !0), O.virtual.value) {
1418
- u.value = u.value.filter((L) => L.id !== D);
1418
+ u.value = u.value.filter((L) => L.id !== B);
1419
1419
  return;
1420
1420
  }
1421
1421
  let _ = m((L) => {
1422
- let z = L.findIndex((Y) => Y.id === D);
1422
+ let z = L.findIndex((Y) => Y.id === B);
1423
1423
  return z !== -1 && L.splice(z, 1), L;
1424
1424
  });
1425
1425
  u.value = _.options, c.value = _.activeOptionIndex, f.value = 2;
1426
- }, isSelected(D) {
1427
- return be(p.value, { 0: () => O.compare(Ae(O.value.value), Ae(D)), 1: () => Ae(O.value.value).some((I) => O.compare(Ae(I), Ae(D))) });
1428
- }, isActive(D) {
1429
- return c.value === O.calculateIndex(D);
1426
+ }, isSelected(B) {
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
+ }, isActive(B) {
1429
+ return c.value === O.calculateIndex(B);
1430
1430
  } };
1431
1431
  wr([o, l, s], () => O.closeCombobox(), P(() => a.value === 0)), Be(si, O), Sr(P(() => be(a.value, { 0: Oe.Open, 1: Oe.Closed })));
1432
1432
  let $ = P(() => {
1433
- var D;
1434
- return (D = M(o)) == null ? void 0 : D.closest("form");
1433
+ var B;
1434
+ return (B = M(o)) == null ? void 0 : B.closest("form");
1435
1435
  });
1436
1436
  return te(() => {
1437
1437
  re([$], () => {
1438
1438
  if (!$.value || e.defaultValue === void 0) return;
1439
- function D() {
1439
+ function B() {
1440
1440
  O.change(e.defaultValue);
1441
1441
  }
1442
- return $.value.addEventListener("reset", D), () => {
1442
+ return $.value.addEventListener("reset", B), () => {
1443
1443
  var I;
1444
- (I = $.value) == null || I.removeEventListener("reset", D);
1444
+ (I = $.value) == null || I.removeEventListener("reset", B);
1445
1445
  };
1446
1446
  }, { immediate: !0 });
1447
1447
  }), () => {
1448
- var D, I, _;
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[(D = O.activeOptionIndex.value) != null ? D : 0] : (_ = (I = O.options.value[O.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? _ : null, value: w.value };
1448
+ var B, I, _;
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
  } });
@@ -1522,8 +1522,8 @@ let gu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1522
1522
  if (d.value) return;
1523
1523
  let $ = M(l.inputRef);
1524
1524
  $ && ((O === 0 && x === 1 || A !== k) && ($.value = A), requestAnimationFrame(() => {
1525
- var D;
1526
- if (d.value || !$ || ((D = s.value) == null ? void 0 : D.activeElement) !== $) return;
1525
+ var B;
1526
+ if (d.value || !$ || ((B = s.value) == null ? void 0 : B.activeElement) !== $) return;
1527
1527
  let { selectionStart: I, selectionEnd: _ } = $;
1528
1528
  Math.abs((_ ?? 0) - (I ?? 0)) === 0 && I === 0 && $.setSelectionRange($.value.length, $.value.length);
1529
1529
  }));
@@ -1532,8 +1532,8 @@ let gu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1532
1532
  if (d.value) return;
1533
1533
  let k = M(l.inputRef);
1534
1534
  if (!k) return;
1535
- let O = k.value, { selectionStart: $, selectionEnd: D, selectionDirection: I } = k;
1536
- k.value = "", k.value = O, I !== null ? k.setSelectionRange($, D, I) : k.setSelectionRange($, D);
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
  });
@@ -1592,12 +1592,12 @@ let gu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1592
1592
  }
1593
1593
  function y(A) {
1594
1594
  var x, k, O;
1595
- let $ = (x = A.relatedTarget) != null ? x : At.find((D) => D !== A.currentTarget);
1595
+ let $ = (x = A.relatedTarget) != null ? x : At.find((B) => B !== A.currentTarget);
1596
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
1599
  var x, k, O;
1600
- let $ = (x = A.relatedTarget) != null ? x : At.find((D) => D !== A.currentTarget);
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
  }));
@@ -1607,8 +1607,8 @@ let gu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
1607
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, k, O, $, D, 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": (D = (O = M(l.labelRef)) == null ? void 0 : O.id) != null ? D : ($ = 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 };
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
  } }), yu = 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 }) {
@@ -2097,7 +2097,7 @@ let er = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", qu = R({ name: "Dialog", inheri
2097
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] = Nu(), { resolveContainers: x, mainTreeNodeRef: k, MainTreeNode: O } = Mu({ 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"), D = P(() => f !== null ? (f.value & Oe.Closing) === Oe.Closing : !1), I = P(() => w || D.value ? !1 : b.value), _ = 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
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
  });
@@ -2123,7 +2123,7 @@ let er = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", qu = R({ name: "Dialog", inheri
2123
2123
  di((o = p.value) == null ? void 0 : o.defaultView, "keydown", (Z) => {
2124
2124
  fe.value && (Z.defaultPrevented || Z.key === W.Escape && (Z.preventDefault(), Z.stopPropagation(), ae.close()));
2125
2125
  });
2126
- let pe = P(() => !(D.value || g.value !== 0 || w));
2126
+ let pe = P(() => !(B.value || g.value !== 0 || w));
2127
2127
  return Iu(p, pe, (Z) => {
2128
2128
  var ie;
2129
2129
  return { containers: [...(ie = Z.containers) != null ? ie : [], x] };
@@ -2306,7 +2306,7 @@ let Ku = R({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
2306
2306
  }, { immediate: !0 });
2307
2307
  }), () => {
2308
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(([$, D]) => de($t, xa({ features: Mt.Hidden, key: $, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: x, disabled: A, name: $, value: D }))) : [], ue({ ourProps: {}, theirProps: { ...n, ...Lt(k, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: O, slots: t, attrs: n, name: "Listbox" })]);
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 }) {
@@ -3084,7 +3084,7 @@ let Ti = je.RenderStrategy, ra = R({ props: { as: { type: [Object, String], defa
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), k = Ht(e.enterTo), O = Ht(e.entered), $ = Ht(e.leave), D = Ht(e.leaveFrom), I = Ht(e.leaveTo);
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") {
@@ -3097,7 +3097,7 @@ let Ti = je.RenderStrategy, ra = R({ props: { as: { type: [Object, String], defa
3097
3097
  let z = b.value && !h.value, Y = M(u);
3098
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, $, D, I, O, (G) => {
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
  }
@@ -4064,10 +4064,10 @@ function $a(e, t) {
4064
4064
  right: k.right - w.right + p.right
4065
4065
  }, $ = e.modifiersData.offset;
4066
4066
  if (u === xn && $) {
4067
- var D = $[a];
4067
+ var B = $[a];
4068
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
- O[I] += D[L] * _;
4070
+ O[I] += B[L] * _;
4071
4071
  });
4072
4072
  }
4073
4073
  return O;
@@ -4125,8 +4125,8 @@ function Ic(e) {
4125
4125
  u.rects = {
4126
4126
  reference: sc(y, qn(w), u.options.strategy === "fixed"),
4127
4127
  popper: Ba(w)
4128
- }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
4129
- return u.modifiersData[D.name] = Object.assign({}, D.data);
4128
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(B) {
4129
+ return u.modifiersData[B.name] = Object.assign({}, B.data);
4130
4130
  });
4131
4131
  for (var v = 0; v < u.orderedModifiers.length; v++) {
4132
4132
  if (u.reset === !0) {
@@ -4335,7 +4335,7 @@ function Yc(e) {
4335
4335
  altBoundary: u
4336
4336
  }), b = ft(t.placement), y = dn(t.placement), w = !y, v = Ma(b), A = zc(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
- })) : p, D = {
4338
+ })) : p, B = {
4339
4339
  x: 0,
4340
4340
  y: 0
4341
4341
  };
@@ -4347,14 +4347,14 @@ function Yc(e) {
4347
4347
  }, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Wi(), 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
- x[v] = St, D[v] = St - z;
4350
+ x[v] = St, B[v] = St - z;
4351
4351
  }
4352
4352
  if (l) {
4353
4353
  var Zt = v === "x" ? Xe : Qe, en = v === "x" ? rt : at, ut = x[A], Ot = ut + g[Zt], Nt = ut - g[en], Wt = ur(h ? $n(Ot, gt) : Ot, ut, h ? Bt(Nt, Vt) : Nt);
4354
- x[A] = Wt, D[A] = Wt - ut;
4354
+ x[A] = Wt, B[A] = Wt - ut;
4355
4355
  }
4356
4356
  }
4357
- t.modifiersData[r] = D;
4357
+ t.modifiersData[r] = B;
4358
4358
  }
4359
4359
  }
4360
4360
  var Xc = {
@@ -4421,8 +4421,8 @@ function Zc(e) {
4421
4421
  flipVariations: m,
4422
4422
  allowedAutoPlacements: p
4423
4423
  }) : we);
4424
- }, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], D = 0; D < v.length; D++) {
4425
- var I = v[D], _ = ft(I), L = dn(I) === un, z = [Xe, rt].indexOf(_) >= 0, Y = z ? "width" : "height", G = $a(t, {
4424
+ }, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], B = 0; B < v.length; B++) {
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
4428
  rootBoundary: c,
@@ -4806,7 +4806,7 @@ var Ui = {
4806
4806
  triggerNode: o
4807
4807
  }), {
4808
4808
  hasContent: k
4809
- } = ac(r, i, u), O = P(() => w.value !== null), $ = P(() => f.value || !k.value), D = 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 () => {
4809
+ } = ac(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
4810
  $.value || O.value || (z.clear(), L());
4811
4811
  }, G = async () => {
4812
4812
  O.value || (L.clear(), z());
@@ -4852,7 +4852,7 @@ var Ui = {
4852
4852
  isOpen: l.value
4853
4853
  }, () => [Le(Q(V(u)), 1)]), e.arrow ? (S(), N(pf, {
4854
4854
  key: 0
4855
- })) : q("", !0)], 512), [[zl, V(D)]])]),
4855
+ })) : q("", !0)], 512), [[zl, V(B)]])]),
4856
4856
  _: 3
4857
4857
  })], 36));
4858
4858
  }
@@ -5550,11 +5550,11 @@ function Ao(e) {
5550
5550
  }
5551
5551
  if (a === We || (a === Ne || a === Ke) && i === Rn) {
5552
5552
  w = Je;
5553
- var D = c && A.visualViewport ? A.visualViewport.width : (
5553
+ var B = c && A.visualViewport ? A.visualViewport.width : (
5554
5554
  // $FlowFixMe[prop-missing]
5555
5555
  x[O]
5556
5556
  );
5557
- m -= D - r.width, m *= s ? 1 : -1;
5557
+ m -= B - r.width, m *= s ? 1 : -1;
5558
5558
  }
5559
5559
  }
5560
5560
  var I = Object.assign({
@@ -5769,10 +5769,10 @@ function Ln(e, t) {
5769
5769
  right: k.right - w.right + p.right
5770
5770
  }, $ = e.modifiersData.offset;
5771
5771
  if (u === Sn && $) {
5772
- var D = $[a];
5772
+ var B = $[a];
5773
5773
  Object.keys(O).forEach(function(I) {
5774
5774
  var _ = [Je, Ke].indexOf(I) >= 0 ? 1 : -1, L = [Ne, Ke].indexOf(I) >= 0 ? "y" : "x";
5775
- O[I] += D[L] * _;
5775
+ O[I] += B[L] * _;
5776
5776
  });
5777
5777
  }
5778
5778
  return O;
@@ -5815,8 +5815,8 @@ function Jp(e) {
5815
5815
  flipVariations: m,
5816
5816
  allowedAutoPlacements: p
5817
5817
  }) : we);
5818
- }, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], D = 0; D < v.length; D++) {
5819
- var I = v[D], _ = pt(I), L = mn(I) === cn, z = [Ne, Ke].indexOf(_) >= 0, Y = z ? "width" : "height", G = Ln(t, {
5818
+ }, []), A = t.rects.reference, x = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, $ = v[0], B = 0; B < v.length; B++) {
5819
+ var I = v[B], _ = pt(I), L = mn(I) === cn, z = [Ne, Ke].indexOf(_) >= 0, Y = z ? "width" : "height", G = Ln(t, {
5820
5820
  placement: I,
5821
5821
  boundary: u,
5822
5822
  rootBoundary: c,
@@ -5952,7 +5952,7 @@ function sv(e) {
5952
5952
  altBoundary: u
5953
5953
  }), b = pt(t.placement), y = mn(t.placement), w = !y, v = Fa(b), A = lv(v), x = t.modifiersData.popperOffsets, k = t.rects.reference, O = t.rects.popper, $ = typeof p == "function" ? p(Object.assign({}, t.rects, {
5954
5954
  placement: t.placement
5955
- })) : p, D = typeof $ == "number" ? {
5955
+ })) : p, B = typeof $ == "number" ? {
5956
5956
  mainAxis: $,
5957
5957
  altAxis: $
5958
5958
  } : Object.assign({
@@ -5967,11 +5967,11 @@ function sv(e) {
5967
5967
  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) : {
5968
5968
  width: 0,
5969
5969
  height: 0
5970
- }, we = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tl(), Me = we[z], lt = we[Y], Fe = Dn(0, k[G], ve[G]), st = w ? k[G] / 2 - pe - Fe - Me - D.mainAxis : Z - Fe - Me - D.mainAxis, et = w ? -k[G] / 2 + pe + Fe + lt + D.mainAxis : ie + Fe + lt + D.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);
5970
+ }, we = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tl(), 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);
5971
5971
  x[v] = ut, _[v] = ut - ae;
5972
5972
  }
5973
5973
  if (l) {
5974
- 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 + D.altAxis, Qn = yn ? bt + k[kt] + O[kt] - Yn - D.altAxis : jt, Gn = h && yn ? Ip(Xn, bt, Qn) : Dn(h ? Xn : bn, bt, h ? Qn : jt);
5974
+ 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 ? Ip(Xn, bt, Qn) : Dn(h ? Xn : bn, bt, h ? Qn : jt);
5975
5975
  x[A] = Gn, _[A] = Gn - bt;
5976
5976
  }
5977
5977
  t.modifiersData[r] = _;
@@ -6116,8 +6116,8 @@ function bv(e) {
6116
6116
  u.rects = {
6117
6117
  reference: pv(y, zn(w), u.options.strategy === "fixed"),
6118
6118
  popper: _a(w)
6119
- }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
6120
- return u.modifiersData[D.name] = Object.assign({}, D.data);
6119
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(B) {
6120
+ return u.modifiersData[B.name] = Object.assign({}, B.data);
6121
6121
  });
6122
6122
  for (var v = 0; v < u.orderedModifiers.length; v++) {
6123
6123
  if (u.reset === !0) {
@@ -6508,53 +6508,53 @@ function Wv(e, t) {
6508
6508
  return v;
6509
6509
  var A = n.render(v), x = A.popper, k = A.onUpdate;
6510
6510
  x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + v.id, v.popper = x, e._tippy = v, x._tippy = v;
6511
- var O = y.map(function(B) {
6512
- return B.fn(v);
6511
+ var O = y.map(function(D) {
6512
+ return D.fn(v);
6513
6513
  }), $ = e.hasAttribute("aria-expanded");
6514
6514
  return gt(), pe(), ae(), ne("onCreate", [v]), n.showOnCreate && bn(), x.addEventListener("mouseenter", function() {
6515
6515
  v.props.interactive && v.state.isVisible && v.clearDelayTimeouts();
6516
6516
  }), x.addEventListener("mouseleave", function() {
6517
6517
  v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && z().addEventListener("mousemove", m);
6518
6518
  }), v;
6519
- function D() {
6520
- var B = v.props.touch;
6521
- return Array.isArray(B) ? B : [B, 0];
6519
+ function B() {
6520
+ var D = v.props.touch;
6521
+ return Array.isArray(D) ? D : [D, 0];
6522
6522
  }
6523
6523
  function I() {
6524
- return D()[0] === "hold";
6524
+ return B()[0] === "hold";
6525
6525
  }
6526
6526
  function _() {
6527
- var B;
6528
- return !!((B = v.props.render) != null && B.$$tippy);
6527
+ var D;
6528
+ return !!((D = v.props.render) != null && D.$$tippy);
6529
6529
  }
6530
6530
  function L() {
6531
6531
  return p || e;
6532
6532
  }
6533
6533
  function z() {
6534
- var B = L().parentNode;
6535
- return B ? pl(B) : document;
6534
+ var D = L().parentNode;
6535
+ return D ? pl(D) : document;
6536
6536
  }
6537
6537
  function Y() {
6538
6538
  return vr(x);
6539
6539
  }
6540
- function G(B) {
6541
- return v.state.isMounted && !v.state.isVisible || dt.isTouch || u && u.type === "focus" ? 0 : qr(v.props.delay, B ? 0 : 1, tt.delay);
6540
+ function G(D) {
6541
+ return v.state.isMounted && !v.state.isVisible || dt.isTouch || u && u.type === "focus" ? 0 : qr(v.props.delay, D ? 0 : 1, tt.delay);
6542
6542
  }
6543
- function ae(B) {
6544
- B === void 0 && (B = !1), x.style.pointerEvents = v.props.interactive && !B ? "" : "none", x.style.zIndex = "" + v.props.zIndex;
6543
+ function ae(D) {
6544
+ D === void 0 && (D = !1), x.style.pointerEvents = v.props.interactive && !D ? "" : "none", x.style.zIndex = "" + v.props.zIndex;
6545
6545
  }
6546
- function ne(B, j, J) {
6546
+ function ne(D, j, J) {
6547
6547
  if (J === void 0 && (J = !0), O.forEach(function(ce) {
6548
- ce[B] && ce[B].apply(ce, j);
6548
+ ce[D] && ce[D].apply(ce, j);
6549
6549
  }), J) {
6550
6550
  var he;
6551
- (he = v.props)[B].apply(he, j);
6551
+ (he = v.props)[D].apply(he, j);
6552
6552
  }
6553
6553
  }
6554
6554
  function fe() {
6555
- var B = v.props.aria;
6556
- if (B.content) {
6557
- var j = "aria-" + B.content, J = x.id, he = Yt(v.props.triggerTarget || e);
6555
+ var D = v.props.aria;
6556
+ if (D.content) {
6557
+ var j = "aria-" + D.content, J = x.id, he = Yt(v.props.triggerTarget || e);
6558
6558
  he.forEach(function(ce) {
6559
6559
  var Ve = ce.getAttribute(j);
6560
6560
  if (v.state.isVisible)
@@ -6568,20 +6568,20 @@ function Wv(e, t) {
6568
6568
  }
6569
6569
  function pe() {
6570
6570
  if (!($ || !v.props.aria.expanded)) {
6571
- var B = Yt(v.props.triggerTarget || e);
6572
- B.forEach(function(j) {
6571
+ var D = Yt(v.props.triggerTarget || e);
6572
+ D.forEach(function(j) {
6573
6573
  v.props.interactive ? j.setAttribute("aria-expanded", v.state.isVisible && j === L() ? "true" : "false") : j.removeAttribute("aria-expanded");
6574
6574
  });
6575
6575
  }
6576
6576
  }
6577
6577
  function Z() {
6578
- z().removeEventListener("mousemove", m), or = or.filter(function(B) {
6579
- return B !== m;
6578
+ z().removeEventListener("mousemove", m), or = or.filter(function(D) {
6579
+ return D !== m;
6580
6580
  });
6581
6581
  }
6582
- function ie(B) {
6583
- if (!(dt.isTouch && (s || B.type === "mousedown"))) {
6584
- var j = B.composedPath && B.composedPath()[0] || B.target;
6582
+ function ie(D) {
6583
+ if (!(dt.isTouch && (s || D.type === "mousedown"))) {
6584
+ var j = D.composedPath && D.composedPath()[0] || D.target;
6585
6585
  if (!(v.props.interactive && Do(x, j))) {
6586
6586
  if (Yt(v.props.triggerTarget || e).some(function(J) {
6587
6587
  return Do(J, j);
@@ -6589,7 +6589,7 @@ function Wv(e, t) {
6589
6589
  if (dt.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
6590
6590
  return;
6591
6591
  } else
6592
- ne("onClickOutside", [v, B]);
6592
+ ne("onClickOutside", [v, D]);
6593
6593
  v.props.hideOnClick === !0 && (v.clearDelayTimeouts(), v.hide(), l = !0, setTimeout(function() {
6594
6594
  l = !1;
6595
6595
  }), v.state.isMounted || Me());
@@ -6603,37 +6603,37 @@ function Wv(e, t) {
6603
6603
  s = !1;
6604
6604
  }
6605
6605
  function we() {
6606
- var B = z();
6607
- B.addEventListener("mousedown", ie, !0), B.addEventListener("touchend", ie, Ut), B.addEventListener("touchstart", ve, Ut), B.addEventListener("touchmove", Se, Ut);
6606
+ var D = z();
6607
+ D.addEventListener("mousedown", ie, !0), D.addEventListener("touchend", ie, Ut), D.addEventListener("touchstart", ve, Ut), D.addEventListener("touchmove", Se, Ut);
6608
6608
  }
6609
6609
  function Me() {
6610
- var B = z();
6611
- B.removeEventListener("mousedown", ie, !0), B.removeEventListener("touchend", ie, Ut), B.removeEventListener("touchstart", ve, Ut), B.removeEventListener("touchmove", Se, Ut);
6610
+ var D = z();
6611
+ D.removeEventListener("mousedown", ie, !0), D.removeEventListener("touchend", ie, Ut), D.removeEventListener("touchstart", ve, Ut), D.removeEventListener("touchmove", Se, Ut);
6612
6612
  }
6613
- function lt(B, j) {
6614
- st(B, function() {
6613
+ function lt(D, j) {
6614
+ st(D, function() {
6615
6615
  !v.state.isVisible && x.parentNode && x.parentNode.contains(x) && j();
6616
6616
  });
6617
6617
  }
6618
- function Fe(B, j) {
6619
- st(B, j);
6618
+ function Fe(D, j) {
6619
+ st(D, j);
6620
6620
  }
6621
- function st(B, j) {
6621
+ function st(D, j) {
6622
6622
  var J = Y().box;
6623
6623
  function he(ce) {
6624
6624
  ce.target === J && (Ur(J, "remove", he), j());
6625
6625
  }
6626
- if (B === 0)
6626
+ if (D === 0)
6627
6627
  return j();
6628
6628
  Ur(J, "remove", c), Ur(J, "add", he), c = he;
6629
6629
  }
6630
- function et(B, j, J) {
6630
+ function et(D, j, J) {
6631
6631
  J === void 0 && (J = !1);
6632
6632
  var he = Yt(v.props.triggerTarget || e);
6633
6633
  he.forEach(function(ce) {
6634
- ce.addEventListener(B, j, J), h.push({
6634
+ ce.addEventListener(D, j, J), h.push({
6635
6635
  node: ce,
6636
- eventType: B,
6636
+ eventType: D,
6637
6637
  handler: j,
6638
6638
  options: J
6639
6639
  });
@@ -6644,9 +6644,9 @@ function Wv(e, t) {
6644
6644
  passive: !0
6645
6645
  }), et("touchend", en, {
6646
6646
  passive: !0
6647
- })), Sv(v.props.trigger).forEach(function(B) {
6648
- if (B !== "manual")
6649
- switch (et(B, St), B) {
6647
+ })), Sv(v.props.trigger).forEach(function(D) {
6648
+ if (D !== "manual")
6649
+ switch (et(D, St), D) {
6650
6650
  case "mouseenter":
6651
6651
  et("mouseleave", en);
6652
6652
  break;
@@ -6660,23 +6660,23 @@ function Wv(e, t) {
6660
6660
  });
6661
6661
  }
6662
6662
  function Vt() {
6663
- h.forEach(function(B) {
6664
- var j = B.node, J = B.eventType, he = B.handler, ce = B.options;
6663
+ h.forEach(function(D) {
6664
+ var j = D.node, J = D.eventType, he = D.handler, ce = D.options;
6665
6665
  j.removeEventListener(J, he, ce);
6666
6666
  }), h = [];
6667
6667
  }
6668
- function St(B) {
6668
+ function St(D) {
6669
6669
  var j, J = !1;
6670
- if (!(!v.state.isEnabled || Ot(B) || l)) {
6670
+ if (!(!v.state.isEnabled || Ot(D) || l)) {
6671
6671
  var he = ((j = u) == null ? void 0 : j.type) === "focus";
6672
- u = B, p = B.currentTarget, pe(), !v.state.isVisible && qa(B) && or.forEach(function(ce) {
6673
- return ce(B);
6674
- }), B.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || o) && v.props.hideOnClick !== !1 && v.state.isVisible ? J = !0 : bn(B), B.type === "click" && (o = !J), J && !he && jt(B);
6672
+ u = D, p = D.currentTarget, pe(), !v.state.isVisible && qa(D) && or.forEach(function(ce) {
6673
+ return ce(D);
6674
+ }), D.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || o) && v.props.hideOnClick !== !1 && v.state.isVisible ? J = !0 : bn(D), D.type === "click" && (o = !J), J && !he && jt(D);
6675
6675
  }
6676
6676
  }
6677
- function Zt(B) {
6678
- var j = B.target, J = L().contains(j) || x.contains(j);
6679
- if (!(B.type === "mousemove" && J)) {
6677
+ function Zt(D) {
6678
+ var j = D.target, J = L().contains(j) || x.contains(j);
6679
+ if (!(D.type === "mousemove" && J)) {
6680
6680
  var he = kt().concat(x).map(function(ce) {
6681
6681
  var Ve, ze = ce._tippy, tn = (Ve = ze.popperInstance) == null ? void 0 : Ve.state;
6682
6682
  return tn ? {
@@ -6685,28 +6685,28 @@ function Wv(e, t) {
6685
6685
  props: n
6686
6686
  } : null;
6687
6687
  }).filter(Boolean);
6688
- Pv(he, B) && (Z(), jt(B));
6688
+ Pv(he, D) && (Z(), jt(D));
6689
6689
  }
6690
6690
  }
6691
- function en(B) {
6692
- var j = Ot(B) || v.props.trigger.indexOf("click") >= 0 && o;
6691
+ function en(D) {
6692
+ var j = Ot(D) || v.props.trigger.indexOf("click") >= 0 && o;
6693
6693
  if (!j) {
6694
6694
  if (v.props.interactive) {
6695
- v.hideWithInteractivity(B);
6695
+ v.hideWithInteractivity(D);
6696
6696
  return;
6697
6697
  }
6698
- jt(B);
6698
+ jt(D);
6699
6699
  }
6700
6700
  }
6701
- function ut(B) {
6702
- v.props.trigger.indexOf("focusin") < 0 && B.target !== L() || v.props.interactive && B.relatedTarget && x.contains(B.relatedTarget) || jt(B);
6701
+ function ut(D) {
6702
+ v.props.trigger.indexOf("focusin") < 0 && D.target !== L() || v.props.interactive && D.relatedTarget && x.contains(D.relatedTarget) || jt(D);
6703
6703
  }
6704
- function Ot(B) {
6705
- return dt.isTouch ? I() !== B.type.indexOf("touch") >= 0 : !1;
6704
+ function Ot(D) {
6705
+ return dt.isTouch ? I() !== D.type.indexOf("touch") >= 0 : !1;
6706
6706
  }
6707
6707
  function Nt() {
6708
6708
  Wt();
6709
- var B = v.props, j = B.popperOptions, J = B.placement, he = B.offset, ce = B.getReferenceClientRect, Ve = B.moveTransition, ze = _() ? vr(x).arrow : null, tn = ce ? {
6709
+ var D = v.props, j = D.popperOptions, J = D.placement, he = D.offset, ce = D.getReferenceClientRect, Ve = D.moveTransition, ze = _() ? vr(x).arrow : null, tn = ce ? {
6710
6710
  getBoundingClientRect: ce,
6711
6711
  contextElement: ce.contextElement || L()
6712
6712
  } : e, Ha = {
@@ -6765,25 +6765,25 @@ function Wv(e, t) {
6765
6765
  v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
6766
6766
  }
6767
6767
  function bt() {
6768
- var B = v.props.appendTo, j, J = L();
6769
- v.props.interactive && B === dl || B === "parent" ? j = J.parentNode : j = cl(B, [J]), j.contains(x) || j.appendChild(x), v.state.isMounted = !0, Nt();
6768
+ var D = v.props.appendTo, j, J = L();
6769
+ v.props.interactive && D === dl || D === "parent" ? j = J.parentNode : j = cl(D, [J]), j.contains(x) || j.appendChild(x), v.state.isMounted = !0, Nt();
6770
6770
  }
6771
6771
  function kt() {
6772
6772
  return hn(x.querySelectorAll("[data-tippy-root]"));
6773
6773
  }
6774
- function bn(B) {
6775
- v.clearDelayTimeouts(), B && ne("onTrigger", [v, B]), we();
6776
- var j = G(!0), J = D(), he = J[0], ce = J[1];
6774
+ function bn(D) {
6775
+ v.clearDelayTimeouts(), D && ne("onTrigger", [v, D]), we();
6776
+ var j = G(!0), J = B(), he = J[0], ce = J[1];
6777
6777
  dt.isTouch && he === "hold" && ce && (j = ce), j ? r = setTimeout(function() {
6778
6778
  v.show();
6779
6779
  }, j) : v.show();
6780
6780
  }
6781
- function jt(B) {
6782
- if (v.clearDelayTimeouts(), ne("onUntrigger", [v, B]), !v.state.isVisible) {
6781
+ function jt(D) {
6782
+ if (v.clearDelayTimeouts(), ne("onUntrigger", [v, D]), !v.state.isVisible) {
6783
6783
  Me();
6784
6784
  return;
6785
6785
  }
6786
- if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(B.type) >= 0 && o)) {
6786
+ if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && o)) {
6787
6787
  var j = G(!1);
6788
6788
  j ? a = setTimeout(function() {
6789
6789
  v.state.isVisible && v.hide();
@@ -6801,27 +6801,27 @@ function Wv(e, t) {
6801
6801
  function Xn() {
6802
6802
  clearTimeout(r), clearTimeout(a), cancelAnimationFrame(i);
6803
6803
  }
6804
- function Qn(B) {
6804
+ function Qn(D) {
6805
6805
  if (!v.state.isDestroyed) {
6806
- ne("onBeforeUpdate", [v, B]), Vt();
6807
- var j = v.props, J = Io(e, Object.assign({}, j, To(B), {
6806
+ ne("onBeforeUpdate", [v, D]), Vt();
6807
+ var j = v.props, J = Io(e, Object.assign({}, j, To(D), {
6808
6808
  ignoreAttributes: !0
6809
6809
  }));
6810
6810
  v.props = J, gt(), j.interactiveDebounce !== J.interactiveDebounce && (Z(), m = Eo(Zt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? Yt(j.triggerTarget).forEach(function(he) {
6811
6811
  he.removeAttribute("aria-expanded");
6812
6812
  }) : J.triggerTarget && e.removeAttribute("aria-expanded"), pe(), ae(), k && k(j, J), v.popperInstance && (Nt(), kt().forEach(function(he) {
6813
6813
  requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
6814
- })), ne("onAfterUpdate", [v, B]);
6814
+ })), ne("onAfterUpdate", [v, D]);
6815
6815
  }
6816
6816
  }
6817
- function Gn(B) {
6817
+ function Gn(D) {
6818
6818
  v.setProps({
6819
- content: B
6819
+ content: D
6820
6820
  });
6821
6821
  }
6822
6822
  function Dl() {
6823
- var B = v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = dt.isTouch && !v.props.touch, ce = qr(v.props.duration, 0, tt.duration);
6824
- if (!(B || j || J || he) && !L().hasAttribute("disabled") && (ne("onShow", [v], !1), v.props.onShow(v) !== !1)) {
6823
+ var D = v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = dt.isTouch && !v.props.touch, ce = qr(v.props.duration, 0, tt.duration);
6824
+ if (!(D || j || J || he) && !L().hasAttribute("disabled") && (ne("onShow", [v], !1), v.props.onShow(v) !== !1)) {
6825
6825
  if (v.state.isVisible = !0, _() && (x.style.visibility = "visible"), ae(), we(), v.state.isMounted || (x.style.transition = "none"), _()) {
6826
6826
  var Ve = Y(), ze = Ve.box, tn = Ve.content;
6827
6827
  Hr([ze, tn], 0);
@@ -6841,8 +6841,8 @@ function Wv(e, t) {
6841
6841
  }
6842
6842
  }
6843
6843
  function Bl() {
6844
- var B = !v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = qr(v.props.duration, 1, tt.duration);
6845
- if (!(B || j || J) && (ne("onHide", [v], !1), v.props.onHide(v) !== !1)) {
6844
+ var D = !v.state.isVisible, j = v.state.isDestroyed, J = !v.state.isEnabled, he = qr(v.props.duration, 1, tt.duration);
6845
+ if (!(D || j || J) && (ne("onHide", [v], !1), v.props.onHide(v) !== !1)) {
6846
6846
  if (v.state.isVisible = !1, v.state.isShown = !1, d = !1, o = !1, _() && (x.style.visibility = "hidden"), Z(), Me(), ae(!0), _()) {
6847
6847
  var ce = Y(), Ve = ce.box, ze = ce.content;
6848
6848
  v.props.animation && (Hr([Ve, ze], he), _n([Ve, ze], "hidden"));
@@ -6850,14 +6850,14 @@ function Wv(e, t) {
6850
6850
  fe(), pe(), v.props.animation ? _() && lt(he, v.unmount) : v.unmount();
6851
6851
  }
6852
6852
  }
6853
- function Il(B) {
6854
- z().addEventListener("mousemove", m), Po(or, m), m(B);
6853
+ function Il(D) {
6854
+ z().addEventListener("mousemove", m), Po(or, m), m(D);
6855
6855
  }
6856
6856
  function Ml() {
6857
- v.state.isVisible && v.hide(), v.state.isMounted && (Wt(), kt().forEach(function(B) {
6858
- B._tippy.unmount();
6859
- }), x.parentNode && x.parentNode.removeChild(x), zr = zr.filter(function(B) {
6860
- return B !== v;
6857
+ v.state.isVisible && v.hide(), v.state.isMounted && (Wt(), kt().forEach(function(D) {
6858
+ D._tippy.unmount();
6859
+ }), x.parentNode && x.parentNode.removeChild(x), zr = zr.filter(function(D) {
6860
+ return D !== v;
6861
6861
  }), v.state.isMounted = !1, ne("onHidden", [v]));
6862
6862
  }
6863
6863
  function $l() {
@@ -7080,9 +7080,9 @@ var Xv = {
7080
7080
  (g || !t.props.interactive) && t.setProps({
7081
7081
  // @ts-ignore - unneeded DOMRect properties
7082
7082
  getReferenceClientRect: function() {
7083
- var O = n.getBoundingClientRect(), $ = y, D = w;
7084
- b === "initial" && ($ = O.left + A, D = O.top + x);
7085
- var I = b === "horizontal" ? O.top : D, _ = b === "vertical" ? O.right : $, L = b === "horizontal" ? O.bottom : D, z = b === "vertical" ? O.left : $;
7083
+ var O = n.getBoundingClientRect(), $ = y, B = w;
7084
+ b === "initial" && ($ = O.left + A, B = O.top + x);
7085
+ var I = b === "horizontal" ? O.top : B, _ = b === "vertical" ? O.right : $, L = b === "horizontal" ? O.bottom : B, z = b === "vertical" ? O.left : $;
7086
7086
  return {
7087
7087
  width: _ - z,
7088
7088
  height: L - I,
@@ -9589,10 +9589,10 @@ const tg = ["autofocus", "required", "disabled"], ng = /* @__PURE__ */ R({
9589
9589
  props: /* @__PURE__ */ ke({
9590
9590
  modelValue: {},
9591
9591
  id: {},
9592
+ type: { default: "text" },
9592
9593
  label: {},
9593
9594
  description: {},
9594
9595
  placeholder: {},
9595
- type: { default: "text" },
9596
9596
  border: { default: "simple" },
9597
9597
  layout: { default: "vertical" },
9598
9598
  maxlength: {},
@@ -9609,43 +9609,43 @@ const tg = ["autofocus", "required", "disabled"], ng = /* @__PURE__ */ R({
9609
9609
  emits: /* @__PURE__ */ ke(["update:modelValue"], ["update:errors"]),
9610
9610
  setup(e, { expose: t, emit: n }) {
9611
9611
  const r = e, a = n, i = P({
9612
- set: (m) => {
9613
- var p;
9614
- a("update:modelValue", m), r.resetErrorsOnUpdate === !0 && ((p = f.value) != null && p.length) && (f.value = []);
9612
+ set: (h) => {
9613
+ var m;
9614
+ a("update:modelValue", h), r.resetErrorsOnUpdate === !0 && ((m = c.value) != null && m.length) && (c.value = []);
9615
9615
  },
9616
9616
  get: () => r.modelValue
9617
- }), o = P(() => r.type === "password" ? "password" : "text"), l = E(), s = E(), d = E(), u = E(0), c = E(0), f = xe(e, "errors");
9617
+ }), o = E(), l = E(), s = E(), d = E(0), u = E(0), c = xe(e, "errors");
9618
9618
  te(() => {
9619
- h();
9619
+ f();
9620
9620
  });
9621
- const h = () => {
9622
- var p, g, b, y, w, v;
9623
- (r.border === "full" || (p = s.value) != null && p.clientWidth) && (u.value = ((g = s.value) == null ? void 0 : g.clientWidth) === 0 ? 10 : (b = s.value) == null ? void 0 : b.clientWidth), (r.border === "full" || (y = d.value) != null && y.clientWidth) && (c.value = ((w = d.value) == null ? void 0 : w.clientWidth) === 0 ? 10 : (v = d.value) == null ? void 0 : v.clientWidth), setTimeout(() => {
9624
- var A, x, k, O, $, D;
9625
- (r.border === "full" || (A = s.value) != null && A.clientWidth) && (u.value = ((x = s.value) == null ? void 0 : x.clientWidth) === 0 ? 10 : (k = s.value) == null ? void 0 : k.clientWidth), (r.border === "full" || (O = d.value) != null && O.clientWidth) && (c.value = (($ = d.value) == null ? void 0 : $.clientWidth) === 0 ? 10 : (D = d.value) == null ? void 0 : D.clientWidth);
9621
+ const f = () => {
9622
+ var m, p, g, b, y, w;
9623
+ 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(() => {
9624
+ var v, A, x, k, O, $;
9625
+ 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);
9626
9626
  }, 1e3);
9627
9627
  };
9628
9628
  return t({
9629
- inputRef: l
9630
- }), (m, p) => (S(), N(oe(Ue), {
9629
+ inputRef: o
9630
+ }), (h, m) => (S(), N(oe(Ue), {
9631
9631
  label: r.label,
9632
9632
  layout: r.layout,
9633
9633
  description: r.description,
9634
9634
  required: r.required,
9635
9635
  helpers: r.helpers,
9636
- errors: f.value
9636
+ errors: c.value
9637
9637
  }, {
9638
9638
  default: F(() => [
9639
9639
  nt(C("input", {
9640
9640
  ref_key: "inputRef",
9641
- ref: l,
9641
+ ref: o,
9642
9642
  class: H(["form-input", {
9643
- "border-simple": m.border === "simple",
9644
- "border-full": m.border === "full",
9645
- "border-none": m.border === "none"
9643
+ "border-simple": h.border === "simple",
9644
+ "border-full": h.border === "full",
9645
+ "border-none": h.border === "none"
9646
9646
  }]),
9647
- "onUpdate:modelValue": p[0] || (p[0] = (g) => i.value = g),
9648
- type: o.value,
9647
+ "onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p),
9648
+ type: h.type,
9649
9649
  maxlength: r.maxlength,
9650
9650
  placeholder: r.placeholder,
9651
9651
  autofocus: r.autofocus,
@@ -9653,8 +9653,8 @@ const tg = ["autofocus", "required", "disabled"], ng = /* @__PURE__ */ R({
9653
9653
  readonly: r.readonly,
9654
9654
  disabled: r.disabled,
9655
9655
  style: wt({
9656
- paddingLeft: `${u.value}px`,
9657
- paddingRight: `${c.value}px`
9656
+ paddingLeft: `${d.value}px`,
9657
+ paddingRight: `${u.value}px`
9658
9658
  })
9659
9659
  }, null, 14, sg), [
9660
9660
  [
@@ -9666,23 +9666,23 @@ const tg = ["autofocus", "required", "disabled"], ng = /* @__PURE__ */ R({
9666
9666
  ]),
9667
9667
  C("div", {
9668
9668
  ref_key: "suffixRef",
9669
- ref: d,
9669
+ ref: s,
9670
9670
  class: "absolute right-0 h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
9671
9671
  }, [
9672
- K(m.$slots, "suffix", {}, void 0, !0)
9672
+ K(h.$slots, "suffix", {}, void 0, !0)
9673
9673
  ], 512),
9674
9674
  C("div", {
9675
9675
  ref_key: "prefixRef",
9676
- ref: s,
9676
+ ref: l,
9677
9677
  class: "absolute h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
9678
9678
  }, [
9679
- K(m.$slots, "prefix", {}, void 0, !0)
9679
+ K(h.$slots, "prefix", {}, void 0, !0)
9680
9680
  ], 512)
9681
9681
  ]),
9682
9682
  _: 3
9683
9683
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
9684
9684
  }
9685
- }), dg = /* @__PURE__ */ le(ug, [["__scopeId", "data-v-fb3eef9e"]]), cg = ["placeholder", "autofocus", "required", "disabled"], fg = /* @__PURE__ */ R({
9685
+ }), dg = /* @__PURE__ */ le(ug, [["__scopeId", "data-v-789d398e"]]), cg = ["placeholder", "autofocus", "required", "disabled"], fg = /* @__PURE__ */ R({
9686
9686
  __name: "base-input-mask",
9687
9687
  props: /* @__PURE__ */ ke({
9688
9688
  modelValue: { type: [String, Number, Boolean, null] },
@@ -10396,8 +10396,8 @@ const Sg = ["placeholder", "autofocus", "required", "disabled"], Og = /* @__PURE
10396
10396
  numeralDecimalScale: r.decimalLength,
10397
10397
  onValueChanged: m
10398
10398
  }), (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(() => {
10399
- var x, k, O, $, D, I;
10400
- (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 = ((D = s.value) == null ? void 0 : D.clientWidth) === 0 ? 10 : (I = s.value) == null ? void 0 : I.clientWidth);
10399
+ var x, k, O, $, B, I;
10400
+ (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);
10401
10401
  }, 1e3);
10402
10402
  });
10403
10403
  const c = xe(e, "modelValue"), f = xe(e, "errors"), h = n, m = (g) => {