@milaboratories/uikit 2.0.0 → 2.0.1

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/pl-uikit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ss = Object.defineProperty;
2
2
  var Es = (t, e, n) => e in t ? Ss(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Tn = (t, e, n) => Es(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as z, reactive as pe, ref as L, openBlock as d, createElementBlock as p, normalizeClass as W, withModifiers as ie, renderSlot as q, onMounted as he, unref as x, onUnmounted as Oe, watchEffect as dn, createElementVNode as h, createTextVNode as m, createCommentVNode as T, toDisplayString as j, normalizeStyle as te, computed as g, nextTick as xe, watchPostEffect as Lt, createBlock as Y, Fragment as le, renderList as de, createVNode as re, withCtx as ne, mergeProps as me, h as cn, render as Sn, inject as Rs, resolveDynamicComponent as Ln, watch as ae, provide as Nn, useSlots as _e, toRef as pn, Teleport as fn, Transition as mn, withKeys as He, normalizeProps as Os, guardReactiveProps as Bs, onUpdated as hn, onBeforeUnmount as Ds, withDirectives as be, vModelText as Ue, useCssVars as Ps, vShow as St, createSlots as Ms, useAttrs as zn, getCurrentScope as As, onScopeDispose as Is, readonly as js } from "vue";
4
+ import { defineComponent as z, reactive as pe, ref as L, openBlock as d, createElementBlock as p, normalizeClass as W, withModifiers as ie, renderSlot as q, onMounted as he, unref as x, onUnmounted as Oe, watchEffect as dn, createElementVNode as h, createTextVNode as m, createCommentVNode as T, toDisplayString as j, normalizeStyle as te, computed as g, nextTick as xe, watchPostEffect as Lt, createBlock as Y, Fragment as le, renderList as de, createVNode as re, withCtx as ne, mergeProps as me, h as cn, render as Sn, inject as Rs, resolveDynamicComponent as Ln, watch as ae, provide as Nn, useSlots as be, toRef as pn, Teleport as fn, Transition as mn, withKeys as He, normalizeProps as Os, guardReactiveProps as Bs, onUpdated as hn, onBeforeUnmount as Ds, withDirectives as _e, vModelText as Ue, useCssVars as Ps, vShow as St, createSlots as Ms, useAttrs as zn, getCurrentScope as As, onScopeDispose as Is, readonly as js } from "vue";
5
5
  const Fs = 10, Ls = 30, Ns = [
6
6
  {
7
7
  text: "Delete row",
@@ -264,10 +264,10 @@ function yo(t, e) {
264
264
  return Object.keys(e).every((n) => t[n] === e[n]);
265
265
  }
266
266
  const gn = (t) => t;
267
- function _o(t) {
267
+ function bo(t) {
268
268
  return t;
269
269
  }
270
- function bo(t) {
270
+ function _o(t) {
271
271
  return Object.entries(t).map(([e, n]) => ({
272
272
  key: e,
273
273
  value: n
@@ -279,7 +279,7 @@ const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
279
279
  Interval: co,
280
280
  alike: yo,
281
281
  arrayFrom: po,
282
- asConst: _o,
282
+ asConst: bo,
283
283
  async: so,
284
284
  between: Hn,
285
285
  bool: Js,
@@ -308,7 +308,7 @@ const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
308
  times: uo,
309
309
  toList: qn,
310
310
  undef: Xs,
311
- unionize: bo,
311
+ unionize: _o,
312
312
  uniqueValues: Qs,
313
313
  unwrap: vo
314
314
  }, Symbol.toStringTag, { value: "Module" }));
@@ -863,7 +863,7 @@ const Yt = 40, Vf = /* @__PURE__ */ z({
863
863
  return O.map((y, v) => v == O.length - 1 ? D ? "minmax(100px, 1fr)" : y.width ?? "minmax(100px, 1fr)" : Z[v] ? Z[v].width + "px" : y.width ?? "140px").join(" ");
864
864
  }), $ = g(() => ({
865
865
  gridColumn: "1 / " + x(c).length + 1
866
- })), b = g(() => x(c).reduce(
866
+ })), _ = g(() => x(c).reduce(
867
867
  (Z, O) => (Z[O.name] = O.justify ? "justify-" + O.justify : "", Z),
868
868
  {}
869
869
  )), C = g(() => {
@@ -887,7 +887,7 @@ const Yt = 40, Vf = /* @__PURE__ */ z({
887
887
  colName: A,
888
888
  rowIndex: w,
889
889
  value: V[A],
890
- class: b.value[A] + (w === r.rowIndex ? " hovered" : ""),
890
+ class: _.value[A] + (w === r.rowIndex ? " hovered" : ""),
891
891
  slot: N.slot,
892
892
  editable: N.editable
893
893
  };
@@ -905,11 +905,11 @@ const Yt = 40, Vf = /* @__PURE__ */ z({
905
905
  Z.scrollLeft = ((O = a.value) == null ? void 0 : O.scrollLeft) ?? 0;
906
906
  });
907
907
  }
908
- const _ = rs(() => {
908
+ const b = rs(() => {
909
909
  var Z;
910
910
  r.scrollTop = ((Z = a.value) == null ? void 0 : Z.scrollTop) ?? 0;
911
911
  }, 10), B = () => {
912
- P(), _();
912
+ P(), b();
913
913
  };
914
914
  function X(Z) {
915
915
  const O = c.value.findIndex((y) => y.name === Z);
@@ -1013,7 +1013,7 @@ const Yt = 40, Vf = /* @__PURE__ */ z({
1013
1013
  ], 544)
1014
1014
  ], 544));
1015
1015
  }
1016
- }), _r = { class: "context-menu" }, br = ["onClick"], wr = /* @__PURE__ */ z({
1016
+ }), br = { class: "context-menu" }, _r = ["onClick"], wr = /* @__PURE__ */ z({
1017
1017
  __name: "Menu",
1018
1018
  props: {
1019
1019
  options: {}
@@ -1023,13 +1023,13 @@ const Yt = 40, Vf = /* @__PURE__ */ z({
1023
1023
  const n = e, o = (s) => {
1024
1024
  s.cb(), n("close");
1025
1025
  };
1026
- return (s, r) => (d(), p("div", _r, [
1026
+ return (s, r) => (d(), p("div", br, [
1027
1027
  (d(!0), p(le, null, de(s.options, (l, i) => (d(), p("div", {
1028
1028
  key: i,
1029
1029
  onClick: ie((a) => o(l), ["stop"])
1030
1030
  }, [
1031
1031
  h("span", null, j(l.text), 1)
1032
- ], 8, br))), 128))
1032
+ ], 8, _r))), 128))
1033
1033
  ]));
1034
1034
  }
1035
1035
  }), kr = /* @__PURE__ */ Ne(wr, [["__scopeId", "data-v-12530966"]]);
@@ -1061,8 +1061,8 @@ const ls = Symbol(), Nt = () => Rs(ls), xr = ["value"], $r = { key: 1 }, Cr = /*
1061
1061
  const n = e, o = t, s = pe({
1062
1062
  edit: !1
1063
1063
  }), r = g(() => o.valueType), l = (u) => {
1064
- var b;
1065
- let c = (b = u.target) == null ? void 0 : b.value;
1064
+ var _;
1065
+ let c = (_ = u.target) == null ? void 0 : _.value;
1066
1066
  const f = x(r), $ = Un(() => f === "integer" ? parseInt(c, 10) : f === "float" ? Number(c) : c);
1067
1067
  n("update:modelValue", $), s.edit = !1;
1068
1068
  }, i = L(), a = (u) => {
@@ -1106,8 +1106,8 @@ const ls = Symbol(), Nt = () => Rs(ls), xr = ["value"], $r = { key: 1 }, Cr = /*
1106
1106
  u.preventDefault();
1107
1107
  else
1108
1108
  return;
1109
- const f = n.settings ?? {}, $ = [], { onSelectedRows: b, onSelectedColumns: C } = f.value, R = n.data.selectedRows.has(c.primaryKey);
1110
- b && b.length && (R ? $.push({
1109
+ const f = n.settings ?? {}, $ = [], { onSelectedRows: _, onSelectedColumns: C } = f.value, R = n.data.selectedRows.has(c.primaryKey);
1110
+ _ && _.length && (R ? $.push({
1111
1111
  text: "Deselect row",
1112
1112
  cb() {
1113
1113
  n.data.selectedRows.delete(e.cell.row.primaryKey);
@@ -1553,10 +1553,10 @@ function ri(t) {
1553
1553
  tableColumns: i,
1554
1554
  tableRows: a,
1555
1555
  adjustWidth: () => {
1556
- const f = e.columns.reduce((b, C) => b + C.width + Qe, 0), $ = e.bodyWidth + e.scrollLeft;
1556
+ const f = e.columns.reduce((_, C) => _ + C.width + Qe, 0), $ = e.bodyWidth + e.scrollLeft;
1557
1557
  if (f < $) {
1558
- const b = e.columns[e.columns.length - 1];
1559
- b.width = b.width + ($ - f);
1558
+ const _ = e.columns[e.columns.length - 1];
1559
+ _.width = _.width + ($ - f);
1560
1560
  }
1561
1561
  },
1562
1562
  updateOffsets(f) {
@@ -1587,8 +1587,8 @@ function ri(t) {
1587
1587
  e.scrollLeft = at(f, 0, r.value);
1588
1588
  },
1589
1589
  updateBodyHeight() {
1590
- const { height: f } = t.settings, { dataHeight: $ } = e, b = f > $ ? $ : f;
1591
- e.bodyHeight = b;
1590
+ const { height: f } = t.settings, { dataHeight: $ } = e, _ = f > $ ? $ : f;
1591
+ e.bodyHeight = _;
1592
1592
  },
1593
1593
  updateDimensions(f) {
1594
1594
  this.updateBodyHeight(), c.data.bodyWidth = f.width, c.adjustWidth(), e.rows = [], e.currentWindow = void 0;
@@ -1597,8 +1597,8 @@ function ri(t) {
1597
1597
  return ae(
1598
1598
  l,
1599
1599
  (f, $) => {
1600
- const b = f.current;
1601
- (!b || f.scrollTop < b.scrollTop || f.scrollTop + f.bodyHeight > b.bodyHeight + b.scrollTop) && (e.currentWindow = {
1600
+ const _ = f.current;
1601
+ (!_ || f.scrollTop < _.scrollTop || f.scrollTop + f.bodyHeight > _.bodyHeight + _.scrollTop) && (e.currentWindow = {
1602
1602
  scrollTop: f.scrollTop - On,
1603
1603
  bodyHeight: f.bodyHeight + On * 2
1604
1604
  }, oi(dt(e.currentWindow), n.value.dataSource).then(({ rows: R, dataWindow: P }) => {
@@ -1611,7 +1611,7 @@ function ri(t) {
1611
1611
  const ii = { class: "command-menu__container" }, li = {
1612
1612
  key: 0,
1613
1613
  class: "table-body__no-data"
1614
- }, ai = { class: "carets" }, _n = /* @__PURE__ */ z({
1614
+ }, ai = { class: "carets" }, bn = /* @__PURE__ */ z({
1615
1615
  __name: "TableComponent",
1616
1616
  props: {
1617
1617
  settings: {}
@@ -1626,7 +1626,7 @@ const ii = { class: "command-menu__container" }, li = {
1626
1626
  Le(u.value, (R) => {
1627
1627
  s.updateDimensions(R.getBoundingClientRect());
1628
1628
  });
1629
- }, f = s.tableColumns, $ = s.tableRows, { mouseDown: b } = Wr(s, i);
1629
+ }, f = s.tableColumns, $ = s.tableRows, { mouseDown: _ } = Wr(s, i);
1630
1630
  he(() => {
1631
1631
  xe(c);
1632
1632
  }), Lt(() => {
@@ -1640,7 +1640,7 @@ const ii = { class: "command-menu__container" }, li = {
1640
1640
  ref: i,
1641
1641
  class: "data-table",
1642
1642
  onMousedown: P[2] || (P[2] = //@ts-ignore
1643
- (..._) => x(b) && x(b)(..._))
1643
+ (...b) => x(_) && x(_)(...b))
1644
1644
  }, [
1645
1645
  h("div", ii, [
1646
1646
  re(Gr),
@@ -1655,10 +1655,10 @@ const ii = { class: "command-menu__container" }, li = {
1655
1655
  }, [
1656
1656
  re(Pr, null, {
1657
1657
  default: ne(() => [
1658
- (d(!0), p(le, null, de(x(f), (_, B) => (d(), Y(jr, {
1658
+ (d(!0), p(le, null, de(x(f), (b, B) => (d(), Y(jr, {
1659
1659
  key: B,
1660
- col: _,
1661
- style: te(_.style),
1660
+ col: b,
1661
+ style: te(b.style),
1662
1662
  "onChange:sort": P[0] || (P[0] = (X) => R.$emit("change:sort", X))
1663
1663
  }, null, 8, ["col", "style"]))), 128))
1664
1664
  ]),
@@ -1681,12 +1681,12 @@ const ii = { class: "command-menu__container" }, li = {
1681
1681
  ])
1682
1682
  ])) : T("", !0),
1683
1683
  P[6] || (P[6] = m()),
1684
- (d(!0), p(le, null, de(x($), (_, B) => (d(), Y(Fr, {
1684
+ (d(!0), p(le, null, de(x($), (b, B) => (d(), Y(Fr, {
1685
1685
  key: B,
1686
- row: _
1686
+ row: b
1687
1687
  }, {
1688
1688
  default: ne(() => [
1689
- (d(!0), p(le, null, de(_.cells, (X) => (d(), Y(Sr, {
1689
+ (d(!0), p(le, null, de(b.cells, (X) => (d(), Y(Sr, {
1690
1690
  key: X.column.id + ":" + B,
1691
1691
  cell: X,
1692
1692
  style: te(X.style)
@@ -1697,10 +1697,10 @@ const ii = { class: "command-menu__container" }, li = {
1697
1697
  ], 36),
1698
1698
  P[9] || (P[9] = m()),
1699
1699
  h("div", ai, [
1700
- (d(!0), p(le, null, de(x(f), (_, B) => (d(), Y(Lr, {
1700
+ (d(!0), p(le, null, de(x(f), (b, B) => (d(), Y(Lr, {
1701
1701
  key: B,
1702
- column: _,
1703
- style: te(_.style),
1702
+ column: b,
1703
+ style: te(b.style),
1704
1704
  "onChange:sort": P[1] || (P[1] = (X) => R.$emit("change:sort", X))
1705
1705
  }, null, 8, ["column", "style"]))), 128))
1706
1706
  ]),
@@ -1773,33 +1773,33 @@ function ci(t) {
1773
1773
  return Object.freeze(t);
1774
1774
  }
1775
1775
  function pi(t) {
1776
- return cn(_n, { settings: Object.freeze(t) });
1776
+ return cn(bn, { settings: Object.freeze(t) });
1777
1777
  }
1778
- function bn(t, e) {
1778
+ function _n(t, e) {
1779
1779
  const n = new ui(t, e.resolveRowHeight, e.resolvePrimaryKey);
1780
1780
  return { ...e, dataSource: n };
1781
1781
  }
1782
1782
  function fi(t, e) {
1783
1783
  return g(() => {
1784
1784
  const n = x(t);
1785
- return bn(n, x(e));
1785
+ return _n(n, x(e));
1786
1786
  });
1787
1787
  }
1788
1788
  function mi(t, e) {
1789
1789
  const n = g(() => {
1790
1790
  const s = x(t);
1791
- return bn(s, x(e));
1791
+ return _n(s, x(e));
1792
1792
  }), o = pe({
1793
1793
  settings: n
1794
1794
  });
1795
- return g(() => cn(_n, o));
1795
+ return g(() => cn(bn, o));
1796
1796
  }
1797
1797
  const Tf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1798
1798
  __proto__: null,
1799
1799
  AsyncData: di,
1800
- Component: _n,
1800
+ Component: bn,
1801
1801
  factory: pi,
1802
- rawDataSettings: bn,
1802
+ rawDataSettings: _n,
1803
1803
  settings: ci,
1804
1804
  useRawData: fi,
1805
1805
  useRawDataComponent: mi
@@ -1821,7 +1821,7 @@ function gi(t) {
1821
1821
  function yi(t, e) {
1822
1822
  e == null ? localStorage.removeItem(t) : localStorage.setItem(t, e);
1823
1823
  }
1824
- function _i(t) {
1824
+ function bi(t) {
1825
1825
  const e = gi(t);
1826
1826
  return ae(e, (n) => yi(t, n)), e;
1827
1827
  }
@@ -1829,7 +1829,7 @@ const nn = /* @__PURE__ */ new Set();
1829
1829
  window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (t) => {
1830
1830
  vi(hi(nn.values(), (e) => e(t.matches ? "dark" : "light")));
1831
1831
  });
1832
- const bi = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Dn = L(bi), Xt = _i("theme");
1832
+ const _i = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Dn = L(_i), Xt = bi("theme");
1833
1833
  function wi(t) {
1834
1834
  const e = g(() => Xt.value ? Xt.value : Dn.value), n = (s) => {
1835
1835
  Dn.value = s, t && t(s);
@@ -1865,7 +1865,7 @@ const Sf = /* @__PURE__ */ z({
1865
1865
  }, Ef = /* @__PURE__ */ z({
1866
1866
  ...Ti,
1867
1867
  setup(t) {
1868
- const e = _e();
1868
+ const e = be();
1869
1869
  return (n, o) => (d(), p("div", ki, [
1870
1870
  x(e).title ? (d(), p("div", xi, [
1871
1871
  h("h1", null, [
@@ -2157,7 +2157,7 @@ const ji = { key: 0 }, Fi = {
2157
2157
  justifyCenter: { type: Boolean, default: !1 }
2158
2158
  },
2159
2159
  setup(t) {
2160
- const e = t, n = g(() => e.size === "small"), o = g(() => e.size === "large"), s = L(), r = _e();
2160
+ const e = t, n = g(() => e.size === "small"), o = g(() => e.size === "large"), s = L(), r = be();
2161
2161
  return as(s), (l, i) => (d(), p("button", me({
2162
2162
  ref_key: "btnRef",
2163
2163
  ref: s,
@@ -2330,8 +2330,8 @@ const nl = /* @__PURE__ */ Ne(Qi, [["render", tl]]), Jt = /* @__PURE__ */ new Ma
2330
2330
  R && u();
2331
2331
  }
2332
2332
  );
2333
- const $ = L(), b = L(), C = Gi($, pn(s));
2334
- return wn([$, b], () => u()), Oe(() => {
2333
+ const $ = L(), _ = L(), C = Gi($, pn(s));
2334
+ return wn([$, _], () => u()), Oe(() => {
2335
2335
  Jt.delete(o);
2336
2336
  }), (R, P) => (d(), Y(Ln(R.element), me(R.$attrs, {
2337
2337
  ref_key: "rootRef",
@@ -2356,7 +2356,7 @@ const nl = /* @__PURE__ */ Ne(Qi, [["render", tl]]), Jt = /* @__PURE__ */ new Ma
2356
2356
  }, [
2357
2357
  h("div", {
2358
2358
  ref_key: "tooltip",
2359
- ref: b,
2359
+ ref: _,
2360
2360
  class: W(["pl-tooltip", R.position]),
2361
2361
  onMouseover: c,
2362
2362
  onMouseleave: f
@@ -2404,7 +2404,7 @@ const ll = /* @__PURE__ */ Ne(ol, [["render", il]]), al = { key: 0 }, ul = ["tab
2404
2404
  },
2405
2405
  emits: ["update:modelValue"],
2406
2406
  setup(t, { emit: e }) {
2407
- const n = _e(), o = e, s = (i) => o("update:modelValue", i), r = t, l = g(
2407
+ const n = be(), o = e, s = (i) => o("update:modelValue", i), r = t, l = g(
2408
2408
  () => r.options.map((i) => ({
2409
2409
  label: "label" in i ? i.label : i.text,
2410
2410
  value: i.value
@@ -2496,10 +2496,10 @@ function gl(t, e) {
2496
2496
  function ps(t, e) {
2497
2497
  return g(() => gl(t.value, e));
2498
2498
  }
2499
- const yl = { class: "ui-text-field__envelope" }, _l = {
2499
+ const yl = { class: "ui-text-field__envelope" }, bl = {
2500
2500
  key: 0,
2501
2501
  ref: "label"
2502
- }, bl = {
2502
+ }, _l = {
2503
2503
  key: 0,
2504
2504
  class: "required-icon"
2505
2505
  }, wl = {
@@ -2530,7 +2530,7 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2530
2530
  },
2531
2531
  emits: ["update:modelValue"],
2532
2532
  setup(t, { emit: e }) {
2533
- const n = _e(), o = e, s = t, r = L(void 0), l = L(), i = g({
2533
+ const n = be(), o = e, s = t, r = L(void 0), l = L(), i = g({
2534
2534
  get() {
2535
2535
  return s.modelValue ?? "";
2536
2536
  },
@@ -2542,20 +2542,20 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2542
2542
  }, u = ps(i, s.rules || []), c = g(() => s.clearable ? s.clearable === !0 ? s.modelValue === "" : s.modelValue === s.clearable() : s.modelValue === ""), f = g(() => !c.value), $ = g(() => {
2543
2543
  const C = [];
2544
2544
  return s.error && C.push(s.error), u.value.isValid || C.push(...u.value.errors), C;
2545
- }), b = g(() => $.value.length > 0);
2545
+ }), _ = g(() => $.value.length > 0);
2546
2546
  return ot(r), (C, R) => (d(), p("div", yl, [
2547
2547
  h("div", {
2548
2548
  ref_key: "rootRef",
2549
2549
  ref: r,
2550
2550
  class: W(["ui-text-field", {
2551
- error: b.value,
2551
+ error: _.value,
2552
2552
  disabled: C.disabled,
2553
2553
  dashed: C.dashed,
2554
2554
  nonEmpty: f.value
2555
2555
  }])
2556
2556
  }, [
2557
- C.label ? (d(), p("label", _l, [
2558
- C.required ? (d(), p("i", bl)) : T("", !0),
2557
+ C.label ? (d(), p("label", bl, [
2558
+ C.required ? (d(), p("i", _l)) : T("", !0),
2559
2559
  R[1] || (R[1] = m()),
2560
2560
  h("span", null, j(C.label), 1),
2561
2561
  R[2] || (R[2] = m()),
@@ -2573,7 +2573,7 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2573
2573
  R[4] || (R[4] = m()),
2574
2574
  C.prefix ? (d(), p("div", wl, j(C.prefix), 1)) : T("", !0),
2575
2575
  R[5] || (R[5] = m()),
2576
- be(h("input", {
2576
+ _e(h("input", {
2577
2577
  ref_key: "inputRef",
2578
2578
  ref: l,
2579
2579
  "onUpdate:modelValue": R[0] || (R[0] = (P) => i.value = P),
@@ -2598,7 +2598,7 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2598
2598
  re(st, { class: "ui-text-field__contour" })
2599
2599
  ], 2),
2600
2600
  R[8] || (R[8] = m()),
2601
- b.value ? (d(), p("div", $l, j($.value.join(" ")), 1)) : C.helper ? (d(), p("div", Cl, j(C.helper), 1)) : T("", !0)
2601
+ _.value ? (d(), p("div", $l, j($.value.join(" ")), 1)) : C.helper ? (d(), p("div", Cl, j(C.helper), 1)) : T("", !0)
2602
2602
  ]));
2603
2603
  }
2604
2604
  }), Sl = { class: "ui-text-area__envelope" }, El = {
@@ -2633,36 +2633,36 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2633
2633
  },
2634
2634
  emits: ["update:modelValue"],
2635
2635
  setup(t, { emit: e }) {
2636
- const n = _e(), o = e, s = t, r = L(), l = L(), i = g({
2636
+ const n = be(), o = e, s = t, r = L(), l = L(), i = g({
2637
2637
  get() {
2638
2638
  return s.modelValue ?? "";
2639
2639
  },
2640
- set(b) {
2641
- o("update:modelValue", b);
2640
+ set(_) {
2641
+ o("update:modelValue", _);
2642
2642
  }
2643
2643
  }), a = g(() => !!s.modelValue), u = ps(i, s.rules || []);
2644
2644
  ot(r);
2645
2645
  const c = g(() => {
2646
- const b = [];
2647
- return s.error && b.push(s.error), b.push(...u.value.errors), b;
2646
+ const _ = [];
2647
+ return s.error && _.push(s.error), _.push(...u.value.errors), _;
2648
2648
  }), f = g(() => c.value.length > 0), $ = () => {
2649
2649
  if (!s.autogrow)
2650
2650
  return;
2651
- const b = l.value;
2652
- b && (b.style.height = "auto", b.style.height = `${b.scrollHeight}px`);
2651
+ const _ = l.value;
2652
+ _ && (_.style.height = "auto", _.style.height = `${_.scrollHeight}px`);
2653
2653
  };
2654
2654
  return he(() => {
2655
2655
  $();
2656
- }), (b, C) => (d(), p("div", Sl, [
2656
+ }), (_, C) => (d(), p("div", Sl, [
2657
2657
  h("div", {
2658
2658
  ref_key: "root",
2659
2659
  ref: r,
2660
- class: W(["ui-text-area", { error: f.value, disabled: b.disabled, dashed: b.dashed, nonEmpty: a.value }])
2660
+ class: W(["ui-text-area", { error: f.value, disabled: _.disabled, dashed: _.dashed, nonEmpty: a.value }])
2661
2661
  }, [
2662
- b.label ? (d(), p("label", El, [
2663
- b.required ? (d(), p("i", Rl)) : T("", !0),
2662
+ _.label ? (d(), p("label", El, [
2663
+ _.required ? (d(), p("i", Rl)) : T("", !0),
2664
2664
  C[1] || (C[1] = m()),
2665
- h("span", null, j(b.label), 1),
2665
+ h("span", null, j(_.label), 1),
2666
2666
  C[2] || (C[2] = m()),
2667
2667
  x(n).tooltip ? (d(), Y(x(Te), {
2668
2668
  key: 1,
@@ -2670,20 +2670,20 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2670
2670
  position: "top"
2671
2671
  }, {
2672
2672
  tooltip: ne(() => [
2673
- q(b.$slots, "tooltip")
2673
+ q(_.$slots, "tooltip")
2674
2674
  ]),
2675
2675
  _: 3
2676
2676
  })) : T("", !0)
2677
2677
  ], 512)) : T("", !0),
2678
2678
  C[3] || (C[3] = m()),
2679
- be(h("textarea", {
2679
+ _e(h("textarea", {
2680
2680
  ref_key: "input",
2681
2681
  ref: l,
2682
2682
  "onUpdate:modelValue": C[0] || (C[0] = (R) => i.value = R),
2683
- readonly: b.readonly,
2684
- rows: b.rows,
2685
- disabled: b.disabled,
2686
- placeholder: b.placeholder ?? "...",
2683
+ readonly: _.readonly,
2684
+ rows: _.rows,
2685
+ disabled: _.disabled,
2686
+ placeholder: _.placeholder ?? "...",
2687
2687
  spellcheck: "false",
2688
2688
  onInput: $
2689
2689
  }, null, 40, Ol), [
@@ -2691,13 +2691,13 @@ const yl = { class: "ui-text-field__envelope" }, _l = {
2691
2691
  ]),
2692
2692
  C[4] || (C[4] = m()),
2693
2693
  h("div", Bl, [
2694
- q(b.$slots, "append")
2694
+ q(_.$slots, "append")
2695
2695
  ]),
2696
2696
  C[5] || (C[5] = m()),
2697
2697
  re(st, { class: "ui-text-area__contour" })
2698
2698
  ], 2),
2699
2699
  C[6] || (C[6] = m()),
2700
- f.value ? (d(), p("div", Dl, j(c.value.join(" ")), 1)) : b.helper ? (d(), p("div", Pl, j(b.helper), 1)) : T("", !0)
2700
+ f.value ? (d(), p("div", Dl, j(c.value.join(" ")), 1)) : _.helper ? (d(), p("div", Pl, j(_.helper), 1)) : T("", !0)
2701
2701
  ]));
2702
2702
  }
2703
2703
  });
@@ -2856,19 +2856,19 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
2856
2856
  },
2857
2857
  emits: ["update:modelValue"],
2858
2858
  setup(t, { emit: e }) {
2859
- const n = e, o = t, s = _e(), r = L(), l = L(), i = L(), a = pe({
2859
+ const n = e, o = t, s = be(), r = L(), l = L(), i = L(), a = pe({
2860
2860
  search: "",
2861
2861
  activeIndex: -1,
2862
2862
  open: !1
2863
2863
  }), u = () => Zt(
2864
- _.value.findIndex((w) => $e(w.value, o.modelValue)),
2864
+ b.value.findIndex((w) => $e(w.value, o.modelValue)),
2865
2865
  (w) => w < 0 ? 0 : w
2866
2866
  ), c = () => a.activeIndex = u(), f = g(() => o.options.findIndex((w) => $e(w.value, o.modelValue))), $ = g(() => {
2867
2867
  if (o.error)
2868
2868
  return o.error;
2869
2869
  if (o.modelValue !== void 0 && f.value === -1)
2870
2870
  return "The selected value is not one of the options";
2871
- }), b = g(
2871
+ }), _ = g(
2872
2872
  () => ct(o.options).map((w, E) => ({
2873
2873
  ...w,
2874
2874
  index: E,
@@ -2876,10 +2876,10 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
2876
2876
  isActive: E === a.activeIndex
2877
2877
  }))
2878
2878
  ), C = g(() => {
2879
- const E = x(b).find((F) => $e(F.value, o.modelValue));
2879
+ const E = x(_).find((F) => $e(F.value, o.modelValue));
2880
2880
  return (E == null ? void 0 : E.label) || o.modelValue;
2881
- }), R = g(() => !a.open && o.modelValue ? "" : o.modelValue ? String(C.value) : o.placeholder), P = g(() => o.modelValue !== void 0 && o.modelValue !== null), _ = g(() => {
2882
- const w = b.value;
2881
+ }), R = g(() => !a.open && o.modelValue ? "" : o.modelValue ? String(C.value) : o.placeholder), P = g(() => o.modelValue !== void 0 && o.modelValue !== null), b = g(() => {
2882
+ const w = _.value;
2883
2883
  return a.search ? w.filter((E) => {
2884
2884
  const F = a.search.toLowerCase();
2885
2885
  return E.label.toLowerCase().includes(F) || E.description && E.description.toLowerCase().includes(F) ? !0 : typeof E.value == "string" ? E.value.toLowerCase().includes(F) : E.value === a.search;
@@ -2910,12 +2910,12 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
2910
2910
  return;
2911
2911
  }
2912
2912
  w.code === "Escape" && (a.open = !1, (Ke = r.value) == null || Ke.focus());
2913
- const U = x(_), { length: N } = U;
2913
+ const U = x(b), { length: N } = U;
2914
2914
  if (!N)
2915
2915
  return;
2916
2916
  w.code === "Enter" && X((Tt = U.find((Ut) => Ut.index === F)) == null ? void 0 : Tt.value);
2917
2917
  const A = U.findIndex((Ut) => Ut.index === F) ?? -1, oe = w.code === "ArrowDown" ? 1 : w.code === "ArrowUp" ? -1 : 0, se = Math.abs(A + oe + N) % N;
2918
- a.activeIndex = _.value[se].index ?? -1;
2918
+ a.activeIndex = b.value[se].index ?? -1;
2919
2919
  };
2920
2920
  return ot(r), ae(() => o.modelValue, c, { immediate: !0 }), ae(
2921
2921
  () => a.open,
@@ -2936,7 +2936,7 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
2936
2936
  }, [
2937
2937
  h("div", Kl, [
2938
2938
  h("div", Yl, [
2939
- be(h("input", {
2939
+ _e(h("input", {
2940
2940
  ref_key: "input",
2941
2941
  ref: i,
2942
2942
  "onUpdate:modelValue": E[0] || (E[0] = (F) => a.search = F),
@@ -3011,7 +3011,7 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
3011
3011
  ref: l,
3012
3012
  class: "ui-dropdown__options"
3013
3013
  }, [
3014
- (d(!0), p(le, null, de(_.value, (F, U) => (d(), Y($n, {
3014
+ (d(!0), p(le, null, de(b.value, (F, U) => (d(), Y($n, {
3015
3015
  key: U,
3016
3016
  option: F,
3017
3017
  "is-selected": F.isSelected,
@@ -3020,7 +3020,7 @@ const jl = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
3020
3020
  onClick: ie((N) => X(F.value), ["stop"])
3021
3021
  }, null, 8, ["option", "is-selected", "is-hovered", "size", "onClick"]))), 128)),
3022
3022
  E[7] || (E[7] = m()),
3023
- _.value.length ? T("", !0) : (d(), p("div", ea, "Nothing found"))
3023
+ b.value.length ? T("", !0) : (d(), p("div", ea, "Nothing found"))
3024
3024
  ], 512)) : T("", !0),
3025
3025
  E[10] || (E[10] = m()),
3026
3026
  re(st, { class: "ui-dropdown__contour" })
@@ -3158,7 +3158,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3158
3158
  }
3159
3159
  }
3160
3160
  return "";
3161
- }), $ = L(f.value), b = g(() => s.isOpen && a.value && a.value.length >= f.value.length - 1 ? a.value : f.value || "...");
3161
+ }), $ = L(f.value), _ = g(() => s.isOpen && a.value && a.value.length >= f.value.length - 1 ? a.value : f.value || "...");
3162
3162
  wn(r, () => {
3163
3163
  o.mode === "list" && (s.isOpen = !1);
3164
3164
  }), ae(
@@ -3189,7 +3189,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3189
3189
  function P() {
3190
3190
  a.value = "";
3191
3191
  }
3192
- function _() {
3192
+ function b() {
3193
3193
  o.disabled ? s.isOpen = !1 : xe(() => {
3194
3194
  s.isOpen = !s.isOpen;
3195
3195
  });
@@ -3236,24 +3236,24 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3236
3236
  class: W([i.value, "ui-line-dropdown uc-pointer"]),
3237
3237
  onKeydown: D,
3238
3238
  onFocusout: O,
3239
- onClick: _
3239
+ onClick: b
3240
3240
  }, [
3241
3241
  h("div", ca, j(o == null ? void 0 : o.prefix), 1),
3242
3242
  V[6] || (V[6] = m()),
3243
3243
  re(aa, {
3244
3244
  modelValue: $.value,
3245
3245
  "onUpdate:modelValue": V[0] || (V[0] = (w) => $.value = w),
3246
- placeholder: b.value,
3246
+ placeholder: _.value,
3247
3247
  disabled: o.disabled,
3248
3248
  class: "ui-line-dropdown__input"
3249
3249
  }, null, 8, ["modelValue", "placeholder", "disabled"]),
3250
3250
  V[7] || (V[7] = m()),
3251
3251
  h("div", pa, [
3252
- be(h("div", fa, null, 512), [
3252
+ _e(h("div", fa, null, 512), [
3253
3253
  [St, !c.value]
3254
3254
  ]),
3255
3255
  V[1] || (V[1] = m()),
3256
- be(h("div", {
3256
+ _e(h("div", {
3257
3257
  class: "ui-line-dropdown__icon-clear",
3258
3258
  onClick: v
3259
3259
  }, null, 512), [
@@ -3261,7 +3261,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3261
3261
  ])
3262
3262
  ]),
3263
3263
  V[8] || (V[8] = m()),
3264
- o.mode === "list" ? be((d(), p("div", {
3264
+ o.mode === "list" ? _e((d(), p("div", {
3265
3265
  key: 0,
3266
3266
  ref_key: "list",
3267
3267
  ref: l,
@@ -3292,7 +3292,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3292
3292
  [St, s.isOpen]
3293
3293
  ]) : T("", !0),
3294
3294
  V[9] || (V[9] = m()),
3295
- o.mode === "tabs" ? be((d(), p("div", {
3295
+ o.mode === "tabs" ? _e((d(), p("div", {
3296
3296
  key: 1,
3297
3297
  ref_key: "list",
3298
3298
  ref: l,
@@ -3325,7 +3325,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3325
3325
  }), va = {
3326
3326
  key: 0,
3327
3327
  class: "ui-progress-bar"
3328
- }, ga = { class: "ui-progress-bar__messages d-flex align-center pl-6 pr-6" }, ya = { class: "ui-progress-bar__message flex-grow-1" }, _a = { class: "ui-progress-bar__percent" }, Zf = /* @__PURE__ */ z({
3328
+ }, ga = { class: "ui-progress-bar__messages d-flex align-center pl-6 pr-6" }, ya = { class: "ui-progress-bar__message flex-grow-1" }, ba = { class: "ui-progress-bar__percent" }, Zf = /* @__PURE__ */ z({
3329
3329
  __name: "PlProgressBar",
3330
3330
  props: {
3331
3331
  loading: { type: Boolean },
@@ -3343,11 +3343,11 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3343
3343
  h("div", ga, [
3344
3344
  h("div", ya, j(n.value), 1),
3345
3345
  s[0] || (s[0] = m()),
3346
- h("div", _a, j(o.progress + "%"), 1)
3346
+ h("div", ba, j(o.progress + "%"), 1)
3347
3347
  ])
3348
3348
  ])) : T("", !0);
3349
3349
  }
3350
- }), ba = { class: "mi-number-field__main-wrapper d-flex" }, wa = { class: "mi-number-field__wrapper flex-grow d-flex flex-align-center" }, ka = {
3350
+ }), _a = { class: "mi-number-field__main-wrapper d-flex" }, wa = { class: "mi-number-field__wrapper flex-grow d-flex flex-align-center" }, ka = {
3351
3351
  key: 0,
3352
3352
  class: "text-description"
3353
3353
  }, xa = ["disabled", "placeholder"], $a = { class: "mi-number-field__icons d-flex-column" }, Ca = {
@@ -3368,76 +3368,76 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3368
3368
  },
3369
3369
  emits: ["update:modelValue"],
3370
3370
  setup(t, { emit: e }) {
3371
- const n = t, o = e, s = L(), r = _e(), l = L();
3371
+ const n = t, o = e, s = L(), r = be(), l = L();
3372
3372
  ot(s);
3373
3373
  const i = L(!0), a = g({
3374
3374
  get() {
3375
3375
  return i.value && n.modelValue !== void 0 ? new Number(n.modelValue).toString() : "";
3376
3376
  },
3377
- set(_) {
3377
+ set(b) {
3378
3378
  var B;
3379
- _ = _.replace(/,/g, ""), $(_) ? (o("update:modelValue", +_), _.toString() !== ((B = n.modelValue) == null ? void 0 : B.toString()) && +_ === n.modelValue && _[_.length - 1] !== "." && (i.value = !1, xe(() => {
3379
+ b = b.replace(/,/g, ""), $(b) ? (o("update:modelValue", +b), b.toString() !== ((B = n.modelValue) == null ? void 0 : B.toString()) && +b === n.modelValue && b[b.length - 1] !== "." && (i.value = !1, xe(() => {
3380
3380
  i.value = !0;
3381
- }))) : (_.trim() === "" && o("update:modelValue", void 0), i.value = !1, xe(() => {
3381
+ }))) : (b.trim() === "" && o("update:modelValue", void 0), i.value = !1, xe(() => {
3382
3382
  i.value = !0;
3383
3383
  }));
3384
3384
  }
3385
3385
  }), u = g(() => {
3386
- let _ = [];
3387
- return n.errorMessage && _.push(n.errorMessage), $(n.modelValue) ? (n.minValue !== void 0 && n.modelValue !== void 0 && n.modelValue < n.minValue && _.push(`Model value must be higher than ${n.minValue}`), n.maxValue !== void 0 && n.modelValue !== void 0 && n.modelValue > n.maxValue && _.push(`Model value must be less than ${n.maxValue}`)) : _.push("Model value is not a number."), _ = [..._], _.join(" ");
3386
+ let b = [];
3387
+ return n.errorMessage && b.push(n.errorMessage), $(n.modelValue) ? (n.minValue !== void 0 && n.modelValue !== void 0 && n.modelValue < n.minValue && b.push(`Model value must be higher than ${n.minValue}`), n.maxValue !== void 0 && n.modelValue !== void 0 && n.modelValue > n.maxValue && b.push(`Model value must be less than ${n.maxValue}`)) : b.push("Model value is not a number."), b = [...b], b.join(" ");
3388
3388
  }), c = g(() => !!(n.maxValue && n.modelValue !== void 0 && (n.modelValue || 0) + n.step > n.maxValue)), f = g(() => !!(n.minValue && n.modelValue !== void 0 && (n.modelValue || 0) - n.step < n.minValue));
3389
- function $(_) {
3390
- return _ !== void 0 ? (_ = _ == null ? void 0 : _.toString(), !isNaN(+_) && !isNaN(parseFloat(_))) : !1;
3389
+ function $(b) {
3390
+ return b !== void 0 ? (b = b == null ? void 0 : b.toString(), !isNaN(+b) && !isNaN(parseFloat(b))) : !1;
3391
3391
  }
3392
- function b() {
3392
+ function _() {
3393
3393
  if (!c.value) {
3394
- let _ = 0;
3395
- n.modelValue === void 0 ? _ = n.minValue ? n.minValue : 0 : _ = +(n.modelValue || 0) + n.step, a.value = _.toString();
3394
+ let b = 0;
3395
+ n.modelValue === void 0 ? b = n.minValue ? n.minValue : 0 : b = +(n.modelValue || 0) + n.step, a.value = b.toString();
3396
3396
  }
3397
3397
  }
3398
3398
  function C() {
3399
3399
  if (!f.value) {
3400
- let _ = 0;
3401
- n.modelValue === void 0 ? _ = 0 : _ = +(n.modelValue || 0) - n.step, a.value = n.minValue ? Math.max(n.minValue, _).toString() : _.toString();
3400
+ let b = 0;
3401
+ n.modelValue === void 0 ? b = 0 : b = +(n.modelValue || 0) - n.step, a.value = n.minValue ? Math.max(n.minValue, b).toString() : b.toString();
3402
3402
  }
3403
3403
  }
3404
- function R(_) {
3405
- ["ArrowDown", "ArrowUp"].includes(_.code) && _.preventDefault(), _.code === "ArrowUp" ? b() : _.code === "ArrowDown" && C();
3404
+ function R(b) {
3405
+ ["ArrowDown", "ArrowUp"].includes(b.code) && b.preventDefault(), b.code === "ArrowUp" ? _() : b.code === "ArrowDown" && C();
3406
3406
  }
3407
- const P = (_) => {
3408
- _.detail > 1 && _.preventDefault();
3407
+ const P = (b) => {
3408
+ b.detail > 1 && b.preventDefault();
3409
3409
  };
3410
- return (_, B) => (d(), p("div", {
3410
+ return (b, B) => (d(), p("div", {
3411
3411
  ref_key: "root",
3412
3412
  ref: s,
3413
- class: W([{ error: !!u.value.trim(), disabled: _.disabled }, "mi-number-field d-flex-column"]),
3413
+ class: W([{ error: !!u.value.trim(), disabled: b.disabled }, "mi-number-field d-flex-column"]),
3414
3414
  onMousedown: P,
3415
3415
  onKeydown: B[1] || (B[1] = (X) => R(X))
3416
3416
  }, [
3417
- h("div", ba, [
3417
+ h("div", _a, [
3418
3418
  re(st, { class: "mi-number-field__contour" }),
3419
3419
  B[6] || (B[6] = m()),
3420
3420
  h("div", wa, [
3421
- _.label ? (d(), p("label", ka, [
3422
- m(j(_.label) + " ", 1),
3421
+ b.label ? (d(), p("label", ka, [
3422
+ m(j(b.label) + " ", 1),
3423
3423
  x(r).tooltip ? (d(), Y(x(Te), {
3424
3424
  key: 0,
3425
3425
  class: "info",
3426
3426
  position: "top"
3427
3427
  }, {
3428
3428
  tooltip: ne(() => [
3429
- q(_.$slots, "tooltip")
3429
+ q(b.$slots, "tooltip")
3430
3430
  ]),
3431
3431
  _: 3
3432
3432
  })) : T("", !0)
3433
3433
  ])) : T("", !0),
3434
3434
  B[2] || (B[2] = m()),
3435
- be(h("input", {
3435
+ _e(h("input", {
3436
3436
  ref_key: "input",
3437
3437
  ref: l,
3438
3438
  "onUpdate:modelValue": B[0] || (B[0] = (X) => a.value = X),
3439
- disabled: _.disabled,
3440
- placeholder: _.placeholder,
3439
+ disabled: b.disabled,
3440
+ placeholder: b.placeholder,
3441
3441
  class: "text-s flex-grow"
3442
3442
  }, null, 8, xa), [
3443
3443
  [Ue, a.value]
@@ -3447,7 +3447,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3447
3447
  h("div", $a, [
3448
3448
  h("div", {
3449
3449
  class: W([{ disabled: c.value }, "mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),
3450
- onClick: b
3450
+ onClick: _
3451
3451
  }, B[3] || (B[3] = [
3452
3452
  h("svg", {
3453
3453
  xmlns: "http://www.w3.org/2000/svg",
@@ -3568,11 +3568,11 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3568
3568
  },
3569
3569
  emits: ["update:modelValue"],
3570
3570
  setup(t, { emit: e }) {
3571
- const n = e, o = (y) => n("update:modelValue", y), s = _e(), r = t, l = L(), i = L(), a = L(), u = pe({
3571
+ const n = e, o = (y) => n("update:modelValue", y), s = be(), r = t, l = L(), i = L(), a = L(), u = pe({
3572
3572
  search: "",
3573
3573
  activeOption: -1,
3574
3574
  open: !1
3575
- }), c = g(() => Array.isArray(r.modelValue) ? r.modelValue : []), f = g(() => u.open && r.modelValue.length > 0 ? r.placeholder : r.modelValue.length > 0 ? "" : r.placeholder), $ = g(() => ct(r.options).filter((y) => Qt(c.value, y.value))), b = g(() => {
3575
+ }), c = g(() => Array.isArray(r.modelValue) ? r.modelValue : []), f = g(() => u.open && r.modelValue.length > 0 ? r.placeholder : r.modelValue.length > 0 ? "" : r.placeholder), $ = g(() => ct(r.options).filter((y) => Qt(c.value, y.value))), _ = g(() => {
3576
3576
  const y = x(c), v = ct(r.options);
3577
3577
  return (u.search ? v.filter((k) => {
3578
3578
  const V = u.search.toLowerCase();
@@ -3583,14 +3583,14 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3583
3583
  }));
3584
3584
  }), C = g(() => r.disabled ? void 0 : "0"), R = () => {
3585
3585
  u.activeOption = Zt(
3586
- b.value.findIndex((y) => $e(y.value, r.modelValue)),
3586
+ _.value.findIndex((y) => $e(y.value, r.modelValue)),
3587
3587
  (y) => y < 0 ? 0 : y
3588
3588
  );
3589
3589
  }, P = (y) => {
3590
3590
  var k;
3591
3591
  const v = x(c);
3592
3592
  o(Qt(v, y) ? v.filter((V) => !$e(V, y)) : [...v, y]), u.search = "", (k = l == null ? void 0 : l.value) == null || k.focus();
3593
- }, _ = (y) => o(x(c).filter((v) => !$e(v, y))), B = () => {
3593
+ }, b = (y) => o(x(c).filter((v) => !$e(v, y))), B = () => {
3594
3594
  var y;
3595
3595
  return (y = a.value) == null ? void 0 : y.focus();
3596
3596
  }, X = () => u.open = !u.open, Z = (y) => {
@@ -3609,7 +3609,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3609
3609
  return;
3610
3610
  }
3611
3611
  y.code === "Escape" && (u.open = !1, (F = l.value) == null || F.focus());
3612
- const V = x(b), { length: w } = V;
3612
+ const V = x(_), { length: w } = V;
3613
3613
  if (!w)
3614
3614
  return;
3615
3615
  ["ArrowDown", "ArrowUp", "Enter"].includes(y.code) && y.preventDefault(), y.code === "Enter" && P(V[k].value);
@@ -3633,7 +3633,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3633
3633
  }, [
3634
3634
  h("div", Ea, [
3635
3635
  h("div", Ra, [
3636
- be(h("input", {
3636
+ _e(h("input", {
3637
3637
  ref_key: "input",
3638
3638
  ref: a,
3639
3639
  "onUpdate:modelValue": v[0] || (v[0] = (k) => u.search = k),
@@ -3658,7 +3658,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3658
3658
  closeable: "",
3659
3659
  small: "",
3660
3660
  onClick: v[2] || (v[2] = ie((w) => u.open = !0, ["stop"])),
3661
- onClose: (w) => _(k.value)
3661
+ onClose: (w) => b(k.value)
3662
3662
  }, {
3663
3663
  default: ne(() => [
3664
3664
  m(j(k.label || k.value), 1)
@@ -3705,7 +3705,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3705
3705
  key: V,
3706
3706
  closeable: "",
3707
3707
  small: "",
3708
- onClose: (w) => _(k.value)
3708
+ onClose: (w) => b(k.value)
3709
3709
  }, {
3710
3710
  default: ne(() => [
3711
3711
  m(j(k.label || k.value), 1)
@@ -3714,7 +3714,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3714
3714
  }, 1032, ["onClose"]))), 128))
3715
3715
  ]),
3716
3716
  v[8] || (v[8] = m()),
3717
- (d(!0), p(le, null, de(b.value, (k, V) => (d(), Y($n, {
3717
+ (d(!0), p(le, null, de(_.value, (k, V) => (d(), Y($n, {
3718
3718
  key: V,
3719
3719
  option: k,
3720
3720
  "text-item": "text",
@@ -3725,7 +3725,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3725
3725
  onClick: ie((w) => P(k.value), ["stop"])
3726
3726
  }, null, 8, ["option", "is-selected", "is-hovered", "onClick"]))), 128)),
3727
3727
  v[9] || (v[9] = m()),
3728
- b.value.length ? T("", !0) : (d(), p("div", Aa, "Nothing found"))
3728
+ _.value.length ? T("", !0) : (d(), p("div", Aa, "Nothing found"))
3729
3729
  ], 512)) : T("", !0),
3730
3730
  v[12] || (v[12] = m()),
3731
3731
  re(st, { class: "ui-multi-dropdown__contour" })
@@ -3761,7 +3761,7 @@ const ia = { class: "resizable-input" }, la = ["placeholder", "value", "disabled
3761
3761
  },
3762
3762
  emits: ["update:modelValue"],
3763
3763
  setup(t) {
3764
- const e = t, n = _e();
3764
+ const e = t, n = be();
3765
3765
  return (o, s) => x(n).default ? (d(), p("div", {
3766
3766
  key: 0,
3767
3767
  class: W(["pl-checkbox", { disabled: o.disabled }])
@@ -3847,7 +3847,7 @@ const Ka = {
3847
3847
  },
3848
3848
  emits: ["update:modelValue"],
3849
3849
  setup(t, { emit: e }) {
3850
- const n = _e(), o = e, s = t, r = L(), l = zn();
3850
+ const n = be(), o = e, s = t, r = L(), l = zn();
3851
3851
  function i(a) {
3852
3852
  r.value && document.contains(a.target) && !r.value.contains(a.target) && o("update:modelValue", !1);
3853
3853
  }
@@ -3935,7 +3935,7 @@ const Ka = {
3935
3935
  },
3936
3936
  emits: ["update:modelValue"],
3937
3937
  setup(t, { emit: e }) {
3938
- const n = _e(), o = e, s = t, r = L(), l = zn();
3938
+ const n = be(), o = e, s = t, r = L(), l = zn();
3939
3939
  return wn(r, () => {
3940
3940
  s.modelValue && s.closeOnOutsideClick && o("update:modelValue", !1);
3941
3941
  }), ce(document, "keydown", (i) => {
@@ -4185,7 +4185,7 @@ function vu(t) {
4185
4185
  });
4186
4186
  return n;
4187
4187
  }
4188
- const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u = { class: "ls-container" }, bu = { class: "ls-head" }, wu = { class: "ls-head__breadcrumbs" }, ku = ["title", "onClick"], xu = {
4188
+ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, bu = { class: "ls-container" }, _u = { class: "ls-head" }, wu = { class: "ls-head__breadcrumbs" }, ku = ["title", "onClick"], xu = {
4189
4189
  key: 0,
4190
4190
  class: "icon-16 icon-chevron-right"
4191
4191
  }, $u = { class: "d-flex ml-auto align-center gap-12" }, Cu = { class: "ls-head__selected" }, Vu = {
@@ -4246,17 +4246,17 @@ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u =
4246
4246
  y && k && a(y, v);
4247
4247
  }, c = es((y) => {
4248
4248
  y && (r.dirPath = y);
4249
- }, 1e3), f = g(() => vu(r.dirPath)), $ = g(() => r.items.filter((y) => y.canBeSelected && y.selected && !y.isDir)), b = g(() => $.value.length > 0), C = () => {
4249
+ }, 1e3), f = g(() => vu(r.dirPath)), $ = g(() => r.items.filter((y) => y.canBeSelected && y.selected && !y.isDir)), _ = g(() => $.value.length > 0), C = () => {
4250
4250
  n("update:modelValue", !1);
4251
4251
  }, R = () => {
4252
4252
  var y;
4253
- b.value && ((y = r.storageEntry) != null && y.handle) && (n("import:files", {
4253
+ _.value && ((y = r.storageEntry) != null && y.handle) && (n("import:files", {
4254
4254
  storageHandle: r.storageEntry.handle,
4255
4255
  files: $.value.map((v) => v.handle)
4256
4256
  }), C());
4257
4257
  }, P = (y) => {
4258
4258
  r.dirPath = y, r.storageEntry && u();
4259
- }, _ = (y, v) => {
4259
+ }, b = (y, v) => {
4260
4260
  const { shiftKey: k, metaKey: V } = y, { lastSelected: w } = r;
4261
4261
  if (y.preventDefault(), v.canBeSelected) {
4262
4262
  if (o.multi || r.items.forEach((E) => E.selected = !1), v.selected = !0, !o.multi)
@@ -4328,7 +4328,7 @@ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u =
4328
4328
  actions: ne(() => [
4329
4329
  re(x(Ni), {
4330
4330
  style: { "min-width": "160px" },
4331
- disabled: !b.value,
4331
+ disabled: !_.value,
4332
4332
  onClick: ie(R, ["stop"])
4333
4333
  }, {
4334
4334
  default: ne(() => v[14] || (v[14] = [
@@ -4365,8 +4365,8 @@ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u =
4365
4365
  }, null, 8, ["model-value", "onUpdate:modelValue"])
4366
4366
  ]),
4367
4367
  v[13] || (v[13] = m()),
4368
- h("div", _u, [
4369
- h("div", bu, [
4368
+ h("div", bu, [
4369
+ h("div", _u, [
4370
4370
  h("div", wu, [
4371
4371
  (d(!0), p(le, null, de(f.value, (k, V) => (d(), p(le, { key: V }, [
4372
4372
  h("div", {
@@ -4400,7 +4400,7 @@ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u =
4400
4400
  }, [
4401
4401
  v[8] || (v[8] = h("i", { class: "icon-16 icon-chevron-right" }, null, -1)),
4402
4402
  v[9] || (v[9] = m()),
4403
- be((d(), p("span", {
4403
+ _e((d(), p("span", {
4404
4404
  title: k.name
4405
4405
  }, [
4406
4406
  m(j(k.name), 1)
@@ -4410,11 +4410,11 @@ const gu = { class: "file-dialog" }, yu = { class: "file-dialog__search" }, _u =
4410
4410
  ], 8, Ou)) : (d(), p("div", {
4411
4411
  key: 1,
4412
4412
  class: W({ canBeSelected: k.canBeSelected, selected: k.selected }),
4413
- onClick: ie((V) => _(V, k), ["stop"])
4413
+ onClick: ie((V) => b(V, k), ["stop"])
4414
4414
  }, [
4415
4415
  v[10] || (v[10] = h("i", { class: "mask-16 mask-comp isFile" }, null, -1)),
4416
4416
  v[11] || (v[11] = m()),
4417
- be((d(), p("span", {
4417
+ _e((d(), p("span", {
4418
4418
  title: k.name
4419
4419
  }, [
4420
4420
  m(j(k.name), 1)
@@ -4977,15 +4977,15 @@ class Q {
4977
4977
  const Fu = /^c[^\s-]{8,}$/i, Lu = /^[0-9a-z]+$/, Nu = /^[0-9A-HJKMNP-TV-Z]{26}$/, zu = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Zu = /^[a-z0-9_-]{21}$/i, Hu = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Uu = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Wu = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4978
4978
  let en;
4979
4979
  const qu = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ku = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Yu = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ys = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Gu = new RegExp(`^${ys}$`);
4980
- function _s(t) {
4980
+ function bs(t) {
4981
4981
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
4982
4982
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
4983
4983
  }
4984
4984
  function Xu(t) {
4985
- return new RegExp(`^${_s(t)}$`);
4985
+ return new RegExp(`^${bs(t)}$`);
4986
4986
  }
4987
- function bs(t) {
4988
- let e = `${ys}T${_s(t)}`;
4987
+ function _s(t) {
4988
+ let e = `${ys}T${bs(t)}`;
4989
4989
  const n = [];
4990
4990
  return n.push(t.local ? "Z?" : "Z"), t.offset && n.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${n.join("|")})`, new RegExp(`^${e}$`);
4991
4991
  }
@@ -5108,7 +5108,7 @@ class ke extends Q {
5108
5108
  code: S.invalid_string,
5109
5109
  validation: { endsWith: r.value },
5110
5110
  message: r.message
5111
- }), o.dirty()) : r.kind === "datetime" ? bs(r).test(e.data) || (s = this._getOrReturnCtx(e, s), M(s, {
5111
+ }), o.dirty()) : r.kind === "datetime" ? _s(r).test(e.data) || (s = this._getOrReturnCtx(e, s), M(s, {
5112
5112
  code: S.invalid_string,
5113
5113
  validation: "datetime",
5114
5114
  message: r.message
@@ -6305,7 +6305,7 @@ gt.create = (t, e) => new gt({
6305
6305
  typeName: K.ZodUnion,
6306
6306
  ...J(e)
6307
6307
  });
6308
- const Be = (t) => t instanceof bt ? Be(t.schema) : t instanceof Ve ? Be(t.innerType()) : t instanceof wt ? [t.value] : t instanceof je ? t.options : t instanceof kt ? ee.objectValues(t.enum) : t instanceof xt ? Be(t._def.innerType) : t instanceof ht ? [void 0] : t instanceof vt ? [null] : t instanceof Se ? [void 0, ...Be(t.unwrap())] : t instanceof Fe ? [null, ...Be(t.unwrap())] : t instanceof Cn || t instanceof Ct ? Be(t.unwrap()) : t instanceof $t ? Be(t._def.innerType) : [];
6308
+ const Be = (t) => t instanceof _t ? Be(t.schema) : t instanceof Ve ? Be(t.innerType()) : t instanceof wt ? [t.value] : t instanceof je ? t.options : t instanceof kt ? ee.objectValues(t.enum) : t instanceof xt ? Be(t._def.innerType) : t instanceof ht ? [void 0] : t instanceof vt ? [null] : t instanceof Se ? [void 0, ...Be(t.unwrap())] : t instanceof Fe ? [null, ...Be(t.unwrap())] : t instanceof Cn || t instanceof Ct ? Be(t.unwrap()) : t instanceof $t ? Be(t._def.innerType) : [];
6309
6309
  class Ht extends Q {
6310
6310
  _parse(e) {
6311
6311
  const { ctx: n } = this._processInputParams(e);
@@ -6482,7 +6482,7 @@ Re.create = (t, e) => {
6482
6482
  ...J(e)
6483
6483
  });
6484
6484
  };
6485
- class _t extends Q {
6485
+ class bt extends Q {
6486
6486
  get keySchema() {
6487
6487
  return this._def.keyType;
6488
6488
  }
@@ -6510,12 +6510,12 @@ class _t extends Q {
6510
6510
  return this._def.valueType;
6511
6511
  }
6512
6512
  static create(e, n, o) {
6513
- return n instanceof Q ? new _t({
6513
+ return n instanceof Q ? new bt({
6514
6514
  keyType: e,
6515
6515
  valueType: n,
6516
6516
  typeName: K.ZodRecord,
6517
6517
  ...J(o)
6518
- }) : new _t({
6518
+ }) : new bt({
6519
6519
  keyType: ke.create(),
6520
6520
  valueType: e,
6521
6521
  typeName: K.ZodRecord,
@@ -6683,11 +6683,11 @@ class Je extends Q {
6683
6683
  if (this._def.returns instanceof nt) {
6684
6684
  const i = this;
6685
6685
  return ye(async function(...a) {
6686
- const u = new we([]), c = await i._def.args.parseAsync(a, r).catch((b) => {
6687
- throw u.addIssue(o(a, b)), u;
6686
+ const u = new we([]), c = await i._def.args.parseAsync(a, r).catch((_) => {
6687
+ throw u.addIssue(o(a, _)), u;
6688
6688
  }), f = await Reflect.apply(l, this, c);
6689
- return await i._def.returns._def.type.parseAsync(f, r).catch((b) => {
6690
- throw u.addIssue(s(f, b)), u;
6689
+ return await i._def.returns._def.type.parseAsync(f, r).catch((_) => {
6690
+ throw u.addIssue(s(f, _)), u;
6691
6691
  });
6692
6692
  });
6693
6693
  } else {
@@ -6736,7 +6736,7 @@ class Je extends Q {
6736
6736
  });
6737
6737
  }
6738
6738
  }
6739
- class bt extends Q {
6739
+ class _t extends Q {
6740
6740
  get schema() {
6741
6741
  return this._def.getter();
6742
6742
  }
@@ -6745,7 +6745,7 @@ class bt extends Q {
6745
6745
  return this._def.getter()._parse({ data: n.data, path: n.path, parent: n });
6746
6746
  }
6747
6747
  }
6748
- bt.create = (t, e) => new bt({
6748
+ _t.create = (t, e) => new _t({
6749
6749
  getter: t,
6750
6750
  typeName: K.ZodLazy,
6751
6751
  ...J(e)
@@ -7176,7 +7176,7 @@ var K;
7176
7176
  })(K || (K = {}));
7177
7177
  const nd = (t, e = {
7178
7178
  message: `Input not instance of ${t.name}`
7179
- }) => ks((n) => n instanceof t, e), xs = ke.create, $s = Ae.create, sd = Ft.create, od = Ie.create, Cs = mt.create, rd = We.create, id = At.create, ld = ht.create, ad = vt.create, ud = tt.create, dd = Ze.create, cd = De.create, pd = It.create, fd = Ce.create, md = ue.create, hd = ue.strictCreate, vd = gt.create, gd = Ht.create, yd = yt.create, _d = Re.create, bd = _t.create, wd = jt.create, kd = qe.create, xd = Je.create, $d = bt.create, Cd = wt.create, Vd = je.create, Td = kt.create, Sd = nt.create, jn = Ve.create, Ed = Se.create, Rd = Fe.create, Od = Ve.createWithPreprocess, Bd = Vt.create, Dd = () => xs().optional(), Pd = () => $s().optional(), Md = () => Cs().optional(), Ad = {
7179
+ }) => ks((n) => n instanceof t, e), xs = ke.create, $s = Ae.create, sd = Ft.create, od = Ie.create, Cs = mt.create, rd = We.create, id = At.create, ld = ht.create, ad = vt.create, ud = tt.create, dd = Ze.create, cd = De.create, pd = It.create, fd = Ce.create, md = ue.create, hd = ue.strictCreate, vd = gt.create, gd = Ht.create, yd = yt.create, bd = Re.create, _d = bt.create, wd = jt.create, kd = qe.create, xd = Je.create, $d = _t.create, Cd = wt.create, Vd = je.create, Td = kt.create, Sd = nt.create, jn = Ve.create, Ed = Se.create, Rd = Fe.create, Od = Ve.createWithPreprocess, Bd = Vt.create, Dd = () => xs().optional(), Pd = () => $s().optional(), Md = () => Cs().optional(), Ad = {
7180
7180
  string: (t) => ke.create({ ...t, coerce: !0 }),
7181
7181
  number: (t) => Ae.create({ ...t, coerce: !0 }),
7182
7182
  boolean: (t) => mt.create({
@@ -7211,7 +7211,7 @@ var Et = /* @__PURE__ */ Object.freeze({
7211
7211
  ZodParsedType: I,
7212
7212
  getParsedType: Me,
7213
7213
  ZodType: Q,
7214
- datetimeRegex: bs,
7214
+ datetimeRegex: _s,
7215
7215
  ZodString: ke,
7216
7216
  ZodNumber: Ae,
7217
7217
  ZodBigInt: Ie,
@@ -7230,11 +7230,11 @@ var Et = /* @__PURE__ */ Object.freeze({
7230
7230
  ZodDiscriminatedUnion: Ht,
7231
7231
  ZodIntersection: yt,
7232
7232
  ZodTuple: Re,
7233
- ZodRecord: _t,
7233
+ ZodRecord: bt,
7234
7234
  ZodMap: jt,
7235
7235
  ZodSet: qe,
7236
7236
  ZodFunction: Je,
7237
- ZodLazy: bt,
7237
+ ZodLazy: _t,
7238
7238
  ZodLiteral: wt,
7239
7239
  ZodEnum: je,
7240
7240
  ZodNativeEnum: kt,
@@ -7286,13 +7286,13 @@ var Et = /* @__PURE__ */ Object.freeze({
7286
7286
  pipeline: Bd,
7287
7287
  preprocess: Od,
7288
7288
  promise: Sd,
7289
- record: bd,
7289
+ record: _d,
7290
7290
  set: kd,
7291
7291
  strictObject: hd,
7292
7292
  string: xs,
7293
7293
  symbol: id,
7294
7294
  transformer: jn,
7295
- tuple: _d,
7295
+ tuple: bd,
7296
7296
  undefined: ld,
7297
7297
  union: vd,
7298
7298
  unknown: dd,
@@ -7369,49 +7369,49 @@ const Zd = {
7369
7369
  setup(t, { emit: e }) {
7370
7370
  const n = pe({
7371
7371
  fileDialogOpen: !1
7372
- }), o = _e(), s = e, r = t, l = g(() => {
7372
+ }), o = be(), s = e, r = t, l = g(() => {
7373
7373
  if (r.modelValue)
7374
7374
  try {
7375
- const _ = Nd(r.modelValue).trim();
7376
- return r.showFilenameOnly ? zd(_) : _;
7377
- } catch (_) {
7378
- return console.error(_), r.modelValue;
7375
+ const b = Nd(r.modelValue).trim();
7376
+ return r.showFilenameOnly ? zd(b) : b;
7377
+ } catch (b) {
7378
+ return console.error(b), r.modelValue;
7379
7379
  }
7380
7380
  return "";
7381
7381
  }), i = g(() => r.progress && !r.progress.done), a = g(() => r.progress && r.progress.done), u = g(() => r.error), c = g(() => r.error), f = g(() => {
7382
- const { status: _, done: B } = r.progress ?? {};
7383
- return !_ || !_.bytesTotal ? "" : _.bytesProcessed && !B ? Kt(_.bytesProcessed, {}) + " / " + Kt(_.bytesTotal, {}) : Kt(_.bytesTotal, {});
7382
+ const { status: b, done: B } = r.progress ?? {};
7383
+ return !b || !b.bytesTotal ? "" : b.bytesProcessed && !B ? Kt(b.bytesProcessed, {}) + " / " + Kt(b.bytesTotal, {}) : Kt(b.bytesTotal, {});
7384
7384
  }), $ = g(() => {
7385
7385
  var B;
7386
- const { progress: _ } = r;
7387
- return _ ? {
7388
- width: _.done ? "100%" : Math.round((((B = _.status) == null ? void 0 : B.progress) ?? 0) * 100) + "%"
7386
+ const { progress: b } = r;
7387
+ return b ? {
7388
+ width: b.done ? "100%" : Math.round((((B = b.status) == null ? void 0 : B.progress) ?? 0) * 100) + "%"
7389
7389
  } : {};
7390
- }), b = () => {
7390
+ }), _ = () => {
7391
7391
  n.fileDialogOpen = !0;
7392
- }, C = (_) => {
7393
- _.files.length && s("update:modelValue", _.files[0]);
7392
+ }, C = (b) => {
7393
+ b.files.length && s("update:modelValue", b.files[0]);
7394
7394
  }, R = () => s("update:modelValue", void 0), P = L();
7395
- return r.cellStyle || ot(P), (_, B) => (d(), p(le, null, [
7395
+ return r.cellStyle || ot(P), (b, B) => (d(), p(le, null, [
7396
7396
  h("div", {
7397
- class: W([{ "pl-file-input__cell-style": !!_.cellStyle, "has-file": !!l.value }, "pl-file-input__envelope"])
7397
+ class: W([{ "pl-file-input__cell-style": !!b.cellStyle, "has-file": !!l.value }, "pl-file-input__envelope"])
7398
7398
  }, [
7399
7399
  h("div", {
7400
7400
  ref_key: "rootRef",
7401
7401
  ref: P,
7402
- class: W(["pl-file-input", { dashed: _.dashed, error: u.value }]),
7402
+ class: W(["pl-file-input", { dashed: b.dashed, error: u.value }]),
7403
7403
  tabindex: "0",
7404
- onKeyup: He(b, ["enter"])
7404
+ onKeyup: He(_, ["enter"])
7405
7405
  }, [
7406
7406
  h("div", {
7407
7407
  class: "pl-file-input__progress",
7408
7408
  style: te($.value)
7409
7409
  }, null, 4),
7410
7410
  B[3] || (B[3] = m()),
7411
- !_.cellStyle && _.label ? (d(), p("label", Zd, [
7412
- _.required ? (d(), p("i", Hd)) : T("", !0),
7411
+ !b.cellStyle && b.label ? (d(), p("label", Zd, [
7412
+ b.required ? (d(), p("i", Hd)) : T("", !0),
7413
7413
  B[1] || (B[1] = m()),
7414
- h("span", null, j(_.label), 1),
7414
+ h("span", null, j(b.label), 1),
7415
7415
  B[2] || (B[2] = m()),
7416
7416
  x(o).tooltip ? (d(), Y(x(Te), {
7417
7417
  key: 1,
@@ -7419,7 +7419,7 @@ const Zd = {
7419
7419
  position: "top"
7420
7420
  }, {
7421
7421
  tooltip: ne(() => [
7422
- q(_.$slots, "tooltip")
7422
+ q(b.$slots, "tooltip")
7423
7423
  ]),
7424
7424
  _: 3
7425
7425
  })) : T("", !0)
@@ -7440,14 +7440,14 @@ const Zd = {
7440
7440
  })),
7441
7441
  B[5] || (B[5] = m()),
7442
7442
  h("div", {
7443
- "data-placeholder": _.placeholder ?? "Choose file",
7443
+ "data-placeholder": b.placeholder ?? "Choose file",
7444
7444
  class: "pl-file-input__filename",
7445
- onClick: ie(b, ["stop"])
7445
+ onClick: ie(_, ["stop"])
7446
7446
  }, j(l.value), 9, Ud),
7447
7447
  B[6] || (B[6] = m()),
7448
7448
  f.value ? (d(), p("div", Wd, j(f.value), 1)) : T("", !0),
7449
7449
  B[7] || (B[7] = m()),
7450
- _.modelValue ? (d(), Y(Ye, {
7450
+ b.modelValue ? (d(), Y(Ye, {
7451
7451
  key: 6,
7452
7452
  name: "close",
7453
7453
  onClick: ie(R, ["stop"])
@@ -7456,14 +7456,14 @@ const Zd = {
7456
7456
  re(st, { class: "pl-file-input__contour" })
7457
7457
  ], 34),
7458
7458
  B[9] || (B[9] = m()),
7459
- u.value ? (d(), p("div", qd, j(c.value), 1)) : _.helper ? (d(), p("div", Kd, j(_.helper), 1)) : T("", !0)
7459
+ u.value ? (d(), p("div", qd, j(c.value), 1)) : b.helper ? (d(), p("div", Kd, j(b.helper), 1)) : T("", !0)
7460
7460
  ], 2),
7461
7461
  B[10] || (B[10] = m()),
7462
7462
  re(x(Mu), {
7463
7463
  modelValue: n.fileDialogOpen,
7464
7464
  "onUpdate:modelValue": B[0] || (B[0] = (X) => n.fileDialogOpen = X),
7465
- extensions: _.extensions,
7466
- title: _.fileDialogTitle,
7465
+ extensions: b.extensions,
7466
+ title: b.fileDialogTitle,
7467
7467
  "onImport:files": C
7468
7468
  }, null, 8, ["modelValue", "extensions", "title"])
7469
7469
  ], 64));
@@ -7520,12 +7520,12 @@ const Vn = (t) => g(() => {
7520
7520
  },
7521
7521
  emits: ["update:modelValue"],
7522
7522
  setup(t, { emit: e }) {
7523
- const n = _e(), o = e, s = t, r = pe({
7523
+ const n = be(), o = e, s = t, r = pe({
7524
7524
  deltaValue: 0
7525
7525
  }), l = g(() => s.max - s.min), i = g(() => ve((s.modelValue ?? 0) + r.deltaValue, s.min, s.max)), a = L(s.modelValue), u = g(() => {
7526
7526
  const O = s.modelValue;
7527
7527
  return Number.isFinite(O) ? O < s.min ? `Min value: ${s.min}` : O > s.max ? `Max value: ${s.max}` : s.error : "Not a number";
7528
- }), c = g(() => s), f = Vn(c), $ = g(() => (i.value - s.min) / l.value), b = g(() => ({
7528
+ }), c = g(() => s), f = Vn(c), $ = g(() => (i.value - s.min) / l.value), _ = g(() => ({
7529
7529
  right: Math.ceil((1 - $.value) * 100) + "%"
7530
7530
  })), C = g(() => ({
7531
7531
  right: `calc(${Math.ceil((1 - $.value) * 100)}%) `
@@ -7536,7 +7536,7 @@ const Vn = (t) => g(() => {
7536
7536
  a.value = O;
7537
7537
  }
7538
7538
  );
7539
- function _(O) {
7539
+ function b(O) {
7540
7540
  const D = ve(O, s.min, s.max);
7541
7541
  return Math.round((D + Number.EPSILON) * (1 / s.step)) / (1 / s.step);
7542
7542
  }
@@ -7544,11 +7544,11 @@ const Vn = (t) => g(() => {
7544
7544
  var D;
7545
7545
  fe((D = x(R)) == null ? void 0 : D.getBoundingClientRect(), (y) => {
7546
7546
  const { dx: v } = O;
7547
- r.deltaValue = v / y.width * l.value, a.value = _(ve((s.modelValue ?? 0) + r.deltaValue, s.min, s.max)), O.stop && (o("update:modelValue", _(i.value)), r.deltaValue = 0);
7547
+ r.deltaValue = v / y.width * l.value, a.value = b(ve((s.modelValue ?? 0) + r.deltaValue, s.min, s.max)), O.stop && (o("update:modelValue", b(i.value)), r.deltaValue = 0);
7548
7548
  });
7549
7549
  });
7550
7550
  function B(O) {
7551
- o("update:modelValue", _(O));
7551
+ o("update:modelValue", b(O));
7552
7552
  }
7553
7553
  function X(O) {
7554
7554
  B(+O.target.value);
@@ -7593,7 +7593,7 @@ const Vn = (t) => g(() => {
7593
7593
  }, [
7594
7594
  h("div", {
7595
7595
  class: "ui-slider__progress",
7596
- style: te(b.value)
7596
+ style: te(_.value)
7597
7597
  }, null, 4)
7598
7598
  ], 512)
7599
7599
  ]),
@@ -7638,11 +7638,11 @@ function em(t, e = null, n = null) {
7638
7638
  const { scrollTop: a, scrollHeight: u, clientHeight: c } = i;
7639
7639
  if (!(u > c) || !e)
7640
7640
  return null;
7641
- const $ = u - a - c, b = a > e ? e : 0, C = $ > e ? c - e - b : c;
7641
+ const $ = u - a - c, _ = a > e ? e : 0, C = $ > e ? c - e - _ : c;
7642
7642
  return `linear-gradient(
7643
7643
  to bottom,
7644
7644
  transparent,
7645
- black ${b}px,
7645
+ black ${_}px,
7646
7646
  black ${C}px,
7647
7647
  transparent 100%
7648
7648
  )`;
@@ -7651,11 +7651,11 @@ function em(t, e = null, n = null) {
7651
7651
  const { scrollLeft: a, scrollWidth: u, clientWidth: c } = i;
7652
7652
  if (!(u > c) || !n)
7653
7653
  return null;
7654
- const $ = u - a - c, b = a > n ? n : 0, C = $ > n ? c - n - b : c;
7654
+ const $ = u - a - c, _ = a > n ? n : 0, C = $ > n ? c - n - _ : c;
7655
7655
  return `linear-gradient(
7656
7656
  to right,
7657
7657
  transparent,
7658
- black ${b}px,
7658
+ black ${_}px,
7659
7659
  black ${C}px,
7660
7660
  transparent 100%
7661
7661
  )`;
@@ -7695,39 +7695,39 @@ function tm(t, e) {
7695
7695
  const n = {
7696
7696
  item: void 0,
7697
7697
  options() {
7698
- var b;
7699
- return [...((b = t.value) == null ? void 0 : b.children) ?? []];
7698
+ var _;
7699
+ return [...((_ = t.value) == null ? void 0 : _.children) ?? []];
7700
7700
  }
7701
7701
  }, o = g(() => n.options()), s = e.shakeBuffer ?? 10, r = e.reorderDelay ?? 100;
7702
- function l(b) {
7702
+ function l(_) {
7703
7703
  const C = e.handle ? this.querySelector(e.handle) : null;
7704
- C && !C.contains(b.target) || (this.classList.remove(Pe.animate), this.classList.add(Pe.item), n.item = {
7704
+ C && !C.contains(_.target) || (this.classList.remove(Pe.animate), this.classList.add(Pe.item), n.item = {
7705
7705
  el: this,
7706
- y: b.y,
7706
+ y: _.y,
7707
7707
  dy: 0,
7708
7708
  orderChanged: !1
7709
7709
  });
7710
7710
  }
7711
- function i(b) {
7711
+ function i(_) {
7712
7712
  const C = n.options();
7713
- return C.slice(0, C.indexOf(b));
7713
+ return C.slice(0, C.indexOf(_));
7714
7714
  }
7715
- function a(b) {
7715
+ function a(_) {
7716
7716
  const C = n.options();
7717
- return C.slice(C.indexOf(b) + 1);
7717
+ return C.slice(C.indexOf(_) + 1);
7718
7718
  }
7719
- function u(b, C) {
7720
- const R = n.options().filter((_) => _ !== C), P = R.indexOf(b);
7719
+ function u(_, C) {
7720
+ const R = n.options().filter((b) => b !== C), P = R.indexOf(_);
7721
7721
  return R.splice(P, 0, C), R;
7722
7722
  }
7723
- function c(b, C) {
7724
- const R = n.options().filter((_) => _ !== C), P = R.indexOf(b);
7723
+ function c(_, C) {
7724
+ const R = n.options().filter((b) => b !== C), P = R.indexOf(_);
7725
7725
  return R.splice(P + 1, 0, C), R;
7726
7726
  }
7727
- function f(b, C) {
7728
- b.dy = C - b.y, b.el.style.setProperty("transform", `translateY(${b.dy}px)`);
7727
+ function f(_, C) {
7728
+ _.dy = C - _.y, _.el.style.setProperty("transform", `translateY(${_.dy}px)`);
7729
7729
  }
7730
- function $(b) {
7730
+ function $(_) {
7731
7731
  var O;
7732
7732
  if (!n.item)
7733
7733
  return;
@@ -7736,17 +7736,17 @@ function tm(t, e) {
7736
7736
  n.item = void 0;
7737
7737
  return;
7738
7738
  }
7739
- const R = b.map((D) => rt(D)), P = rt(C);
7740
- (O = t.value) == null || O.replaceChildren(...b);
7741
- const _ = rt(C), B = b.map((D) => rt(D)), X = [];
7739
+ const R = _.map((D) => rt(D)), P = rt(C);
7740
+ (O = t.value) == null || O.replaceChildren(..._);
7741
+ const b = rt(C), B = _.map((D) => rt(D)), X = [];
7742
7742
  for (let D = 0; D < B.length; D++) {
7743
- const y = b[D];
7743
+ const y = _[D];
7744
7744
  if (y === n.item.el)
7745
7745
  continue;
7746
7746
  const v = B[D], V = R[D] - v;
7747
7747
  y.style.transform = `translateY(${V}px)`, X.push(y);
7748
7748
  }
7749
- const Z = _ - P;
7749
+ const Z = b - P;
7750
7750
  n.item.y = n.item.y + Z, n.item.dy = n.item.dy - Z, n.item.orderChanged = !0, n.item.el.style.setProperty("transform", `translateY(${n.item.dy}px)`), X.forEach((D) => D.classList.remove(Pe.animate)), requestAnimationFrame(function() {
7751
7751
  X.forEach((D) => {
7752
7752
  D.classList.add(Pe.animate), D.style.transform = "", D.addEventListener("transitionend", () => {
@@ -7755,13 +7755,13 @@ function tm(t, e) {
7755
7755
  });
7756
7756
  });
7757
7757
  }
7758
- ce(window, "mousemove", (b) => {
7758
+ ce(window, "mousemove", (_) => {
7759
7759
  if (!n.item)
7760
7760
  return;
7761
7761
  const { el: C } = n.item;
7762
- f(n.item, b.y);
7763
- const R = rt(n.item.el), P = ic(n.item.el), _ = i(C), B = a(C);
7764
- _.forEach((X) => {
7762
+ f(n.item, _.y);
7763
+ const R = rt(n.item.el), P = ic(n.item.el), b = i(C), B = a(C);
7764
+ b.forEach((X) => {
7765
7765
  const Z = Fn(X);
7766
7766
  R + s < Z && $(u(X, C));
7767
7767
  }), B.forEach((X) => {
@@ -7771,25 +7771,25 @@ function tm(t, e) {
7771
7771
  }), ce(window, "mouseup", () => {
7772
7772
  if (!n.item)
7773
7773
  return;
7774
- const { el: b, orderChanged: C } = n.item;
7775
- b.classList.add(Pe.animate), b.style.removeProperty("transform"), b.addEventListener("transitionend", () => {
7776
- b.classList.remove(Pe.animate, Pe.item);
7774
+ const { el: _, orderChanged: C } = n.item;
7775
+ _.classList.add(Pe.animate), _.style.removeProperty("transform"), _.addEventListener("transitionend", () => {
7776
+ _.classList.remove(Pe.animate, Pe.item);
7777
7777
  }), setTimeout(() => {
7778
7778
  if (!C)
7779
7779
  return;
7780
- const R = n.options().map((_) => Number(_.getAttribute("data-index"))), P = t.value;
7780
+ const R = n.options().map((b) => Number(b.getAttribute("data-index"))), P = t.value;
7781
7781
  if (P) {
7782
- for (const _ of n.options())
7783
- P.removeChild(_);
7784
- o.value.forEach((_) => {
7785
- P.appendChild(_);
7782
+ for (const b of n.options())
7783
+ P.removeChild(b);
7784
+ o.value.forEach((b) => {
7785
+ P.appendChild(b);
7786
7786
  });
7787
7787
  }
7788
7788
  e.onChange(R);
7789
7789
  }, r), n.item = void 0;
7790
7790
  }), dn(() => {
7791
- o.value.forEach((b, C) => {
7792
- b.removeEventListener("mousedown", l), b.addEventListener("mousedown", l), b.setAttribute("data-index", String(C));
7791
+ o.value.forEach((_, C) => {
7792
+ _.removeEventListener("mousedown", l), _.addEventListener("mousedown", l), _.setAttribute("data-index", String(C));
7793
7793
  });
7794
7794
  });
7795
7795
  }
@@ -7899,11 +7899,11 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
7899
7899
  },
7900
7900
  emits: ["update:modelValue"],
7901
7901
  setup(t, { emit: e }) {
7902
- const n = _e(), o = e, s = t, r = pe({
7902
+ const n = be(), o = e, s = t, r = pe({
7903
7903
  deltaValue1: 0,
7904
7904
  deltaValue2: 0,
7905
7905
  deltaValue3: 0
7906
- }), l = L(), i = L(), a = L(), u = L(), c = g(() => s.max - s.min), f = g(() => s), $ = Vn(f), b = g(() => ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), C = g(() => ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), R = g(() => ve((s.modelValue[2] ?? 0) + r.deltaValue3, s.min, s.max)), P = g(() => {
7906
+ }), l = L(), i = L(), a = L(), u = L(), c = g(() => s.max - s.min), f = g(() => s), $ = Vn(f), _ = g(() => ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), C = g(() => ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), R = g(() => ve((s.modelValue[2] ?? 0) + r.deltaValue3, s.min, s.max)), P = g(() => {
7907
7907
  const N = s.modelValue;
7908
7908
  if (!(Array.isArray(N) && N.length === 3 && N.every((se) => Number.isFinite(se))))
7909
7909
  return "Expected model [number, number, number]";
@@ -7911,11 +7911,11 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
7911
7911
  return [...s.modelValue].forEach((se) => {
7912
7912
  se > s.max && oe.push(`Max model value must be lower than max props ${s.max}.`), se < s.min && oe.push("Min model value must be greater than max props.");
7913
7913
  }), oe.length > 0 ? oe.join(" ") : s.error;
7914
- }), _ = g(() => (b.value - s.min) / c.value), B = g(() => (C.value - s.min) / c.value), X = g(() => (R.value - s.min) / c.value), Z = g(() => V()), O = g(() => ({
7914
+ }), b = g(() => (_.value - s.min) / c.value), B = g(() => (C.value - s.min) / c.value), X = g(() => (R.value - s.min) / c.value), Z = g(() => V()), O = g(() => ({
7915
7915
  right: Z.value[0] + "%",
7916
7916
  left: 100 - Z.value[2] + "%"
7917
7917
  })), D = g(() => ({
7918
- right: Math.ceil((1 - _.value) * 100) + "%"
7918
+ right: Math.ceil((1 - b.value) * 100) + "%"
7919
7919
  })), y = g(() => ({
7920
7920
  right: Math.ceil((1 - B.value) * 100) + "%"
7921
7921
  })), v = g(() => ({
@@ -7925,19 +7925,19 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
7925
7925
  var A;
7926
7926
  fe((A = x(l)) == null ? void 0 : A.getBoundingClientRect(), (oe) => {
7927
7927
  const { dx: se } = N;
7928
- r.deltaValue1 = se / oe.width * c.value, i.value && k(i.value, s.modelValue[0], r.deltaValue1), N.stop && (E([w(b.value), w(C.value), w(R.value)]), r.deltaValue1 = 0);
7928
+ r.deltaValue1 = se / oe.width * c.value, i.value && k(i.value, s.modelValue[0], r.deltaValue1), N.stop && (E([w(_.value), w(C.value), w(R.value)]), r.deltaValue1 = 0);
7929
7929
  });
7930
7930
  }), ze(a, (N) => {
7931
7931
  var A;
7932
7932
  fe((A = x(l)) == null ? void 0 : A.getBoundingClientRect(), (oe) => {
7933
7933
  const { dx: se } = N;
7934
- r.deltaValue2 = se / oe.width * c.value, a.value && k(a.value, s.modelValue[1], r.deltaValue2), N.stop && (E([w(b.value), w(C.value), w(R.value)]), r.deltaValue2 = 0);
7934
+ r.deltaValue2 = se / oe.width * c.value, a.value && k(a.value, s.modelValue[1], r.deltaValue2), N.stop && (E([w(_.value), w(C.value), w(R.value)]), r.deltaValue2 = 0);
7935
7935
  });
7936
7936
  }), ze(u, (N) => {
7937
7937
  var A;
7938
7938
  fe((A = x(l)) == null ? void 0 : A.getBoundingClientRect(), (oe) => {
7939
7939
  const { dx: se } = N;
7940
- r.deltaValue3 = se / oe.width * c.value, u.value && k(u.value, s.modelValue[2], r.deltaValue3), N.stop && (E([w(b.value), w(C.value), w(R.value)]), r.deltaValue3 = 0);
7940
+ r.deltaValue3 = se / oe.width * c.value, u.value && k(u.value, s.modelValue[2], r.deltaValue3), N.stop && (E([w(_.value), w(C.value), w(R.value)]), r.deltaValue3 = 0);
7941
7941
  });
7942
7942
  });
7943
7943
  function k(N, A, oe) {
@@ -7945,7 +7945,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
7945
7945
  N.dataset.percent = `${se}${s.measure}`, F();
7946
7946
  }
7947
7947
  function V() {
7948
- const N = Math.ceil((1 - _.value) * 100), A = Math.ceil((1 - B.value) * 100), oe = Math.ceil((1 - X.value) * 100);
7948
+ const N = Math.ceil((1 - b.value) * 100), A = Math.ceil((1 - B.value) * 100), oe = Math.ceil((1 - X.value) * 100);
7949
7949
  return [N, A, oe].sort((se, Ke) => se - Ke);
7950
7950
  }
7951
7951
  function w(N) {
@@ -8099,7 +8099,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8099
8099
  return (c, f) => (d(), p("div", me({
8100
8100
  class: [l.value, "ui-input-range"]
8101
8101
  }, c.$attrs), [
8102
- be(h("input", {
8102
+ _e(h("input", {
8103
8103
  "onUpdate:modelValue": f[0] || (f[0] = ($) => i.value.left = $),
8104
8104
  class: "text-s",
8105
8105
  type: "text",
@@ -8113,7 +8113,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8113
8113
  f[8] || (f[8] = m()),
8114
8114
  h("div", gc, j(n.separator), 1),
8115
8115
  f[9] || (f[9] = m()),
8116
- be(h("input", {
8116
+ _e(h("input", {
8117
8117
  "onUpdate:modelValue": f[4] || (f[4] = ($) => i.value.right = $),
8118
8118
  class: "text-s",
8119
8119
  type: "text",
@@ -8126,7 +8126,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8126
8126
  ])
8127
8127
  ], 16));
8128
8128
  }
8129
- }), _c = { class: "ui-slider__wrapper" }, bc = { class: "ui-slider__label-section" }, wc = {
8129
+ }), bc = { class: "ui-slider__wrapper" }, _c = { class: "ui-slider__label-section" }, wc = {
8130
8130
  key: 0,
8131
8131
  class: "text-s"
8132
8132
  }, kc = {
@@ -8152,13 +8152,13 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8152
8152
  },
8153
8153
  emits: ["update:modelValue"],
8154
8154
  setup(t, { emit: e }) {
8155
- const n = _e(), o = e, s = t, r = pe({
8155
+ const n = be(), o = e, s = t, r = pe({
8156
8156
  deltaValue1: 0,
8157
8157
  deltaValue2: 0
8158
- }), l = L(), i = L(), a = L(), u = L(s.modelValue), c = L(s.modelValue[0]), f = L(s.modelValue[1]), $ = g(() => s), b = Vn($), C = g(() => [c.value, f.value].sort((F, U) => F - U).join("-")), R = g(() => s.max - s.min), P = g(() => ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), _ = g(() => ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), B = g(() => {
8158
+ }), l = L(), i = L(), a = L(), u = L(s.modelValue), c = L(s.modelValue[0]), f = L(s.modelValue[1]), $ = g(() => s), _ = Vn($), C = g(() => [c.value, f.value].sort((F, U) => F - U).join("-")), R = g(() => s.max - s.min), P = g(() => ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), b = g(() => ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), B = g(() => {
8159
8159
  const F = s.modelValue;
8160
8160
  return Array.isArray(F) && F.length === 2 && F.every((N) => Number.isFinite(N)) ? s.error : "Expected model [number, number]";
8161
- }), X = g(() => (P.value - s.min) / R.value), Z = g(() => (_.value - s.min) / R.value), O = g(() => k()), D = g(() => ({
8161
+ }), X = g(() => (P.value - s.min) / R.value), Z = g(() => (b.value - s.min) / R.value), O = g(() => k()), D = g(() => ({
8162
8162
  right: O.value[0] + "%",
8163
8163
  left: 100 - O.value[1] + "%"
8164
8164
  })), y = g(() => ({
@@ -8176,13 +8176,13 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8176
8176
  var U;
8177
8177
  fe((U = x(l)) == null ? void 0 : U.getBoundingClientRect(), (N) => {
8178
8178
  const { dx: A } = F;
8179
- r.deltaValue1 = A / N.width * R.value, c.value = V(ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), u.value = [c.value, f.value].sort((oe, se) => oe - se), F.stop && (w([V(P.value), V(_.value)]), r.deltaValue1 = 0);
8179
+ r.deltaValue1 = A / N.width * R.value, c.value = V(ve((s.modelValue[0] ?? 0) + r.deltaValue1, s.min, s.max)), u.value = [c.value, f.value].sort((oe, se) => oe - se), F.stop && (w([V(P.value), V(b.value)]), r.deltaValue1 = 0);
8180
8180
  });
8181
8181
  }), ze(a, (F) => {
8182
8182
  var U;
8183
8183
  fe((U = x(l)) == null ? void 0 : U.getBoundingClientRect(), (N) => {
8184
8184
  const { dx: A } = F;
8185
- r.deltaValue2 = A / N.width * R.value, f.value = V(ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), u.value = [c.value, f.value].sort((oe, se) => oe - se), F.stop && (w([V(P.value), V(_.value)]), r.deltaValue2 = 0);
8185
+ r.deltaValue2 = A / N.width * R.value, f.value = V(ve((s.modelValue[1] ?? 0) + r.deltaValue2, s.min, s.max)), u.value = [c.value, f.value].sort((oe, se) => oe - se), F.stop && (w([V(P.value), V(b.value)]), r.deltaValue2 = 0);
8186
8186
  });
8187
8187
  });
8188
8188
  function k() {
@@ -8207,8 +8207,8 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8207
8207
  h("div", {
8208
8208
  class: W([`ui-slider__mode-${s.mode}`, "ui-slider"])
8209
8209
  }, [
8210
- h("div", _c, [
8211
- h("div", bc, [
8210
+ h("div", bc, [
8211
+ h("div", _c, [
8212
8212
  F.label ? (d(), p("label", wc, [
8213
8213
  h("span", null, j(F.label), 1),
8214
8214
  U[3] || (U[3] = m()),
@@ -8242,7 +8242,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8242
8242
  ]),
8243
8243
  U[9] || (U[9] = m()),
8244
8244
  h("div", Cc, [
8245
- s.breakpoints ? (d(!0), p(le, { key: 0 }, de(x(b), (N, A) => (d(), p("div", {
8245
+ s.breakpoints ? (d(!0), p(le, { key: 0 }, de(x(_), (N, A) => (d(), p("div", {
8246
8246
  key: A,
8247
8247
  style: te({ right: `${N}%` }),
8248
8248
  class: "ui-slider__thumb-step"
@@ -8307,8 +8307,8 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8307
8307
  const u = {
8308
8308
  clientY: a.clientY
8309
8309
  }, f = fs(document, "mousemove", ($) => {
8310
- const b = ($.clientY - u.clientY) / r.value;
8311
- n("update:scrollTop", o.scrollTop + b), u.clientY = $.clientY;
8310
+ const _ = ($.clientY - u.clientY) / r.value;
8311
+ n("update:scrollTop", o.scrollTop + _), u.clientY = $.clientY;
8312
8312
  });
8313
8313
  ["mouseup", "pointercancel"].forEach(($) => {
8314
8314
  document.addEventListener($, f, { once: !0 });
@@ -8345,8 +8345,8 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8345
8345
  const u = {
8346
8346
  clientX: a.clientX
8347
8347
  }, f = fs(document, "mousemove", ($) => {
8348
- const b = ($.clientX - u.clientX) / r.value;
8349
- n("update:scrollLeft", o.scrollLeft + b), u.clientX = $.clientX;
8348
+ const _ = ($.clientX - u.clientX) / r.value;
8349
+ n("update:scrollLeft", o.scrollLeft + _), u.clientX = $.clientX;
8350
8350
  });
8351
8351
  ["mouseup", "pointercancel"].forEach(($) => {
8352
8352
  document.addEventListener($, f, { once: !0 });
@@ -8484,7 +8484,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8484
8484
  "x-axis": "x-axis.svg",
8485
8485
  "y-axis": "y-axis.svg",
8486
8486
  zip: ip
8487
- }, ap = "add.svg", up = "annotate.svg", dp = "annotation.svg", cp = "area.svg", pp = "axes.svg", fp = "bar.svg", mp = "bindot.svg", hp = "boxplot.svg", vp = "bubble.svg", gp = "canvas.svg", yp = "checkbox.svg", _p = "checkmark.svg", bp = "clipboard.svg", wp = "close.svg", kp = "code.svg", xp = "color.svg", $p = "columns.svg", Cp = "copy.svg", Vp = "cpu.svg", Tp = "dna.svg", Sp = "duplicate.svg", Ep = "edit.svg", Rp = "error.svg", Op = "filter.svg", Bp = "generate.svg", Dp = "graph.svg", Pp = "heatmap.svg", Mp = "help.svg", Ap = "hide.svg", Ip = "jitter.svg", jp = "layers.svg", Fp = "learn.svg", Lp = "legend.svg", Np = "line.svg", zp = "linetype.svg", Zp = "link.svg", Hp = "loading.svg", Up = "local.svg", Wp = "logout.svg", qp = "menu.svg", Kp = "minus.svg", Yp = "pin.svg", Gp = "position.svg", Xp = "progress.svg", Jp = "publications.svg", Qp = "restart.svg", ef = "reverse.svg", tf = "rotation.svg", nf = "save.svg", sf = "search.svg", of = "show.svg", rf = "sina.svg", lf = "skatterplot.svg", af = "sort.svg", uf = "statistics.svg", df = "stroke.svg", cf = "success.svg", pf = "table.svg", ff = "template.svg", mf = "venn.svg", hf = "violin.svg", vf = "warning.svg", gf = "wetlab.svg", yf = {
8487
+ }, ap = "add.svg", up = "annotate.svg", dp = "annotation.svg", cp = "area.svg", pp = "axes.svg", fp = "bar.svg", mp = "bindot.svg", hp = "boxplot.svg", vp = "bubble.svg", gp = "canvas.svg", yp = "checkbox.svg", bp = "checkmark.svg", _p = "clipboard.svg", wp = "close.svg", kp = "code.svg", xp = "color.svg", $p = "columns.svg", Cp = "copy.svg", Vp = "cpu.svg", Tp = "dna.svg", Sp = "duplicate.svg", Ep = "edit.svg", Rp = "error.svg", Op = "filter.svg", Bp = "generate.svg", Dp = "graph.svg", Pp = "heatmap.svg", Mp = "help.svg", Ap = "hide.svg", Ip = "jitter.svg", jp = "layers.svg", Fp = "learn.svg", Lp = "legend.svg", Np = "line.svg", zp = "linetype.svg", Zp = "link.svg", Hp = "loading.svg", Up = "local.svg", Wp = "logout.svg", qp = "menu.svg", Kp = "minus.svg", Yp = "pin.svg", Gp = "position.svg", Xp = "progress.svg", Jp = "publications.svg", Qp = "restart.svg", ef = "reverse.svg", tf = "rotation.svg", nf = "save.svg", sf = "search.svg", of = "show.svg", rf = "sina.svg", lf = "skatterplot.svg", af = "sort.svg", uf = "statistics.svg", df = "stroke.svg", cf = "success.svg", pf = "table.svg", ff = "template.svg", mf = "venn.svg", hf = "violin.svg", vf = "warning.svg", gf = "wetlab.svg", yf = {
8488
8488
  "add-layer": "add-layer.svg",
8489
8489
  add: ap,
8490
8490
  annotate: up,
@@ -8508,14 +8508,14 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8508
8508
  bubble: vp,
8509
8509
  canvas: gp,
8510
8510
  checkbox: yp,
8511
- checkmark: _p,
8511
+ checkmark: bp,
8512
8512
  "chevron-down": "chevron-down.svg",
8513
8513
  "chevron-left": "chevron-left.svg",
8514
8514
  "chevron-right": "chevron-right.svg",
8515
8515
  "chevron-sort": "chevron-sort.svg",
8516
8516
  "chevron-up": "chevron-up.svg",
8517
8517
  "clipboard-copied": "clipboard-copied.svg",
8518
- clipboard: bp,
8518
+ clipboard: _p,
8519
8519
  close: wp,
8520
8520
  "cloud-down": "cloud-down.svg",
8521
8521
  "cloud-offline": "cloud-offline.svg",
@@ -8530,6 +8530,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8530
8530
  cpu: Vp,
8531
8531
  "cross-bars": "cross-bars.svg",
8532
8532
  "dark-mode": "dark-mode.svg",
8533
+ "delete-bin": "delete-bin.svg",
8533
8534
  delete: "delete.svg",
8534
8535
  "dendrogram-X-1": "dendrogram-X-1.svg",
8535
8536
  "dendrogram-X": "dendrogram-X.svg",
@@ -8618,7 +8619,7 @@ const lc = { class: "ui-slider__wrapper" }, ac = { class: "ui-slider__label-sect
8618
8619
  wetlab: gf,
8619
8620
  "zoom-in": "zoom-in.svg"
8620
8621
  };
8621
- function _f() {
8622
+ function bf() {
8622
8623
  return {
8623
8624
  txtSec: {
8624
8625
  title: "Text",
@@ -9036,6 +9037,7 @@ const um = [
9036
9037
  "cpu",
9037
9038
  "cross-bars",
9038
9039
  "dark-mode",
9040
+ "delete-bin",
9039
9041
  "delete",
9040
9042
  "dendrogram-X-1",
9041
9043
  "dendrogram-X",
@@ -9123,7 +9125,7 @@ const um = [
9123
9125
  "warning",
9124
9126
  "wetlab",
9125
9127
  "zoom-in"
9126
- ], cm = { allCssVariables: _f(), icons16: lp, icons24: yf };
9128
+ ], cm = { allCssVariables: bf(), icons16: lp, icons24: yf };
9127
9129
  export {
9128
9130
  Jf as ContextProvider,
9129
9131
  Tf as DataTable,
@@ -9199,7 +9201,7 @@ export {
9199
9201
  ns as useHover,
9200
9202
  nm as useInterval,
9201
9203
  ot as useLabelNotch,
9202
- _i as useLocalStorage,
9204
+ bi as useLocalStorage,
9203
9205
  ts as useMouse,
9204
9206
  ze as useMouseCapture,
9205
9207
  Yi as usePosition,