doph-js 0.4.62 → 0.4.64

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/dophJs.js CHANGED
@@ -125,7 +125,7 @@ const Se = (r, e) => {
125
125
  t("click", v);
126
126
  }, l = (v) => {
127
127
  t("contextmenu", v);
128
- }, d = P(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), g = P(() => n.disabled ? "disabled" : ""), p = (v) => !!a[v], S = P(() => p("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = P(() => {
128
+ }, d = P(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), g = P(() => n.disabled ? "disabled" : ""), m = (v) => !!a[v], S = P(() => m("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = P(() => {
129
129
  const v = n.outline ? "-outline" : "";
130
130
  return n.type === "primary" ? `button${v}-blue` : n.type === "success" ? `button${v}-green` : n.type === "error" ? `button${v}-red` : n.type === "warning" ? `button${v}-orange` : n.type === "wait" ? `button${v}-violet` : n.outline ? `button${v}` : "";
131
131
  });
@@ -363,10 +363,10 @@ const Se = (r, e) => {
363
363
  }), n = (l, d) => {
364
364
  const { width: g } = getComputedStyle(l);
365
365
  l.style.width = g, l.style.position = "absolute", l.style.visibility = "hidden", l.style.height = "";
366
- let { height: p } = getComputedStyle(l);
367
- return l.style.width = d.width, l.style.position = d.position, l.style.visibility = d.visibility, l.style.height = it, l.style.overflow = "hidden", d.height && d.height !== it ? d.height : p;
368
- }, a = (l, d, g, p, S) => {
369
- const C = l.animate(p, S);
366
+ let { height: m } = getComputedStyle(l);
367
+ return l.style.width = d.width, l.style.position = d.position, l.style.visibility = d.visibility, l.style.height = it, l.style.overflow = "hidden", d.height && d.height !== it ? d.height : m;
368
+ }, a = (l, d, g, m, S) => {
369
+ const C = l.animate(m, S);
370
370
  l.style.height = d.height, C.onfinish = () => {
371
371
  l.style.overflow = d.overflow, g();
372
372
  };
@@ -392,13 +392,13 @@ const Se = (r, e) => {
392
392
  marginBottom: d.marginBottom
393
393
  }
394
394
  ], s = (l, d) => {
395
- const g = l, p = t(g), S = n(g, p), C = o(S, p), E = { duration: e.duration, easing: e.easingEnter };
396
- a(g, p, d, C, E);
395
+ const g = l, m = t(g), S = n(g, m), C = o(S, m), E = { duration: e.duration, easing: e.easingEnter };
396
+ a(g, m, d, C, E);
397
397
  }, i = (l, d) => {
398
- const g = l, p = t(g), { height: S } = getComputedStyle(g);
398
+ const g = l, m = t(g), { height: S } = getComputedStyle(g);
399
399
  g.style.height = S, g.style.overflow = "hidden";
400
- const C = o(S, p).reverse(), E = { duration: e.duration, easing: e.easingLeave };
401
- a(g, p, d, C, E);
400
+ const C = o(S, m).reverse(), E = { duration: e.duration, easing: e.easingLeave };
401
+ a(g, m, d, C, E);
402
402
  };
403
403
  return (l, d) => (c(), H(Bn, {
404
404
  css: !1,
@@ -510,7 +510,7 @@ const Se = (r, e) => {
510
510
  }
511
511
  }, g = (y) => {
512
512
  e("nodefoldericonclick", { event: y.event, model: y.model });
513
- }, p = (y) => {
513
+ }, m = (y) => {
514
514
  e("nodeclick", y);
515
515
  }, S = (y) => {
516
516
  e("nodedoubleclick", y);
@@ -546,7 +546,7 @@ const Se = (r, e) => {
546
546
  R > Z && R <= Z + W ? (a.value = !1, o.value = !0, s.value = !1) : R < Z + ne && R >= Z + ne - W ? (a.value = !1, o.value = !1, s.value = !0) : (a.value = te.state.trees[t.treeId].dropInside, o.value = !1, s.value = !1);
547
547
  }, f = () => {
548
548
  a.value = !1, o.value = !1, s.value = !1;
549
- }, u = P(() => t.model.title.startsWith("-")), m = P(() => {
549
+ }, u = P(() => t.model.title.startsWith("-")), p = P(() => {
550
550
  if (t.model.title.startsWith("-")) {
551
551
  let [y, ...D] = t.model.title.split(" ");
552
552
  return D = D.join(" "), D;
@@ -555,8 +555,8 @@ const Se = (r, e) => {
555
555
  });
556
556
  return (y, D) => {
557
557
  const R = mt("d-tree-item", !0), Z = Yn("touch");
558
- return Q(te).actions.beforeItem(t.treeId, r.model) ? u.value && !m.value ? (c(), b("li", wo, ko)) : u.value && m.value ? (c(), b("li", So, [
559
- T("div", _o, G(Q(te).actions.renderTitle(t.treeId, m.value)), 1)
558
+ return Q(te).actions.beforeItem(t.treeId, r.model) ? u.value && !p.value ? (c(), b("li", wo, ko)) : u.value && p.value ? (c(), b("li", So, [
559
+ T("div", _o, G(Q(te).actions.renderTitle(t.treeId, p.value)), 1)
560
560
  ])) : t.model.component ? (c(), H(kr, {
561
561
  key: 3,
562
562
  tag: "li",
@@ -675,7 +675,7 @@ const Se = (r, e) => {
675
675
  treeId: t.treeId,
676
676
  items: t.items,
677
677
  search: t.search,
678
- onNodeclick: p,
678
+ onNodeclick: m,
679
679
  onNodedoubleclick: S,
680
680
  onNodedrop: C,
681
681
  onNodecontext: E,
@@ -852,18 +852,18 @@ const Ze = Vo(), te = {
852
852
  emits: Object.keys(We),
853
853
  setup(r, { expose: e, emit: t }) {
854
854
  let n = fn({});
855
- const a = I("false"), o = I(null), s = /* @__PURE__ */ new Set(), i = P(() => a.value && n), l = (g, p) => {
856
- n = an.data, t(g, p, n), g === We.dragenter && (s.size || p.target === o.value) && s.add(p.target), g === We.dragleave && s.delete(p.target), g === We.drop && s.clear(), a.value = !!s.size;
855
+ const a = I("false"), o = I(null), s = /* @__PURE__ */ new Set(), i = P(() => a.value && n), l = (g, m) => {
856
+ n = an.data, t(g, m, n), g === We.dragenter && (s.size || m.target === o.value) && s.add(m.target), g === We.dragleave && s.delete(m.target), g === We.drop && s.clear(), a.value = !!s.size;
857
857
  };
858
858
  return e({
859
859
  elementSize: () => Kr(o)
860
- }), (g, p) => (c(), H(Ae(r.tag), {
860
+ }), (g, m) => (c(), H(Ae(r.tag), {
861
861
  ref_key: "el",
862
862
  ref: o,
863
- onDragenter: p[0] || (p[0] = (S) => l(Q(We).dragenter, S)),
864
- onDragleave: p[1] || (p[1] = (S) => l(Q(We).dragleave, S)),
865
- onDragover: p[2] || (p[2] = De((S) => l(Q(We).dragover, S), ["prevent"])),
866
- onDrop: p[3] || (p[3] = De((S) => l(Q(We).drop, S), ["prevent"]))
863
+ onDragenter: m[0] || (m[0] = (S) => l(Q(We).dragenter, S)),
864
+ onDragleave: m[1] || (m[1] = (S) => l(Q(We).dragleave, S)),
865
+ onDragover: m[2] || (m[2] = De((S) => l(Q(We).dragover, S), ["prevent"])),
866
+ onDrop: m[3] || (m[3] = De((S) => l(Q(We).drop, S), ["prevent"]))
867
867
  }, {
868
868
  default: X(() => [
869
869
  le(g.$slots, "default", { transferData: i.value })
@@ -909,7 +909,7 @@ const Ze = Vo(), te = {
909
909
  Ze.on("menu-show-request", (u) => {
910
910
  a !== u && l();
911
911
  });
912
- const g = () => o.value.elementSize(), p = () => o.value?.itemsCount(), S = (u) => {
912
+ const g = () => o.value.elementSize(), m = () => o.value?.itemsCount(), S = (u) => {
913
913
  o.value?.selectNode(u);
914
914
  }, C = () => {
915
915
  o.value?.unSelect();
@@ -921,7 +921,7 @@ const Ze = Vo(), te = {
921
921
  setTimeout(() => {
922
922
  const u = o.value?.$el;
923
923
  if (!u) return;
924
- const m = u.style.transform;
924
+ const p = u.style.transform;
925
925
  u.style.transform = "";
926
926
  const y = u.getBoundingClientRect(), D = window.innerHeight, R = window.innerWidth;
927
927
  let Z = "";
@@ -929,7 +929,7 @@ const Ze = Vo(), te = {
929
929
  const ne = y.right - R + 10;
930
930
  Z = Z ? `${Z} translateX(-${ne}px)` : `translateX(-${ne}px)`;
931
931
  }
932
- u.style.transform = Z || m;
932
+ u.style.transform = Z || p;
933
933
  }, 500);
934
934
  };
935
935
  e({
@@ -937,7 +937,7 @@ const Ze = Vo(), te = {
937
937
  hide: l,
938
938
  elementSize: g,
939
939
  isShowed: d,
940
- itemsCount: p,
940
+ itemsCount: m,
941
941
  selectNode: S,
942
942
  unSelect: C,
943
943
  expandAll: E,
@@ -954,7 +954,7 @@ const Ze = Vo(), te = {
954
954
  window.addEventListener("scroll", $, !0), window.addEventListener("resize", f);
955
955
  }), qn(() => {
956
956
  window.removeEventListener("scroll", $, !0), window.removeEventListener("resize", f);
957
- }), (u, m) => {
957
+ }), (u, p) => {
958
958
  const y = Yn("click-outside");
959
959
  return n.bodyAsParent ? (c(), H(Wr, {
960
960
  key: 0,
@@ -1018,21 +1018,21 @@ const Ze = Vo(), te = {
1018
1018
  const n = r, a = I(null), o = I(0), s = I(0), i = P(() => ({
1019
1019
  left: o.value + "px",
1020
1020
  top: s.value + "px"
1021
- })), l = async (p) => {
1022
- p.preventDefault(), o.value = -1e4, s.value = -1e4, a.value.show(), await lt(), await lt();
1021
+ })), l = async (m) => {
1022
+ m.preventDefault(), o.value = -1e4, s.value = -1e4, a.value.show(), await lt(), await lt();
1023
1023
  const S = a.value.elementSize(), C = S.width;
1024
1024
  document.querySelector(".context-menu"), a.value.collapseAll();
1025
1025
  const E = window.innerWidth, v = window.innerHeight;
1026
- o.value = p.clientX, s.value = p.clientY, p.clientX + C > E && (o.value = p.clientX - C), p.clientY + S.height > v && (s.value = p.clientY - S.height), o.value = Math.max(2, Math.min(o.value, E - C - 2)), s.value = Math.max(2, Math.min(s.value, v - S.height - 2));
1026
+ o.value = m.clientX, s.value = m.clientY, m.clientX + C > E && (o.value = m.clientX - C), m.clientY + S.height > v && (s.value = m.clientY - S.height), o.value = Math.max(2, Math.min(o.value, E - C - 2)), s.value = Math.max(2, Math.min(s.value, v - S.height - 2));
1027
1027
  }, d = () => {
1028
1028
  a.value.hide();
1029
- }, g = (p) => {
1030
- t("select", p);
1029
+ }, g = (m) => {
1030
+ t("select", m);
1031
1031
  };
1032
1032
  return e({
1033
1033
  show: l,
1034
1034
  hide: d
1035
- }), (p, S) => (c(), H(qt, {
1035
+ }), (m, S) => (c(), H(qt, {
1036
1036
  ref_key: "dMenuRef",
1037
1037
  ref: a,
1038
1038
  onSelect: g,
@@ -1112,11 +1112,11 @@ const Ze = Vo(), te = {
1112
1112
  t("move", V);
1113
1113
  });
1114
1114
  const d = P(() => n.search ? te.actions.deepSearchByTitle(n.items, n.search) : n.items), g = (V) => {
1115
- p(n.items, V);
1116
- }, p = (V, K, q = "id", he = "children", ve = {}) => K && V && (V.find((qe) => {
1115
+ m(n.items, V);
1116
+ }, m = (V, K, q = "id", he = "children", ve = {}) => K && V && (V.find((qe) => {
1117
1117
  if (qe[q] === K)
1118
1118
  return ve.found = qe, qe.expanded = !0, !0;
1119
- if (p(qe[he], K, q, he, ve))
1119
+ if (m(qe[he], K, q, he, ve))
1120
1120
  return qe.expanded = !0, !0;
1121
1121
  }), ve.found) ? ve.found : !1, S = (V = null) => {
1122
1122
  te.mutations.setItemSelect(i, V.model), !n.doubleClickExpand && n.clickExpand && te.actions.toggleItem(i, V.model), t("select", V);
@@ -1134,8 +1134,8 @@ const Ze = Vo(), te = {
1134
1134
  }, f = () => {
1135
1135
  for (let V = 0; V < n.items.length; V++)
1136
1136
  n.items[V].expanded = !1;
1137
- }, u = () => i, m = (V) => te.actions.deepSearch(n.items, V), y = (V) => {
1138
- m(V) && te.mutations.setItemSelect(i, m(V));
1137
+ }, u = () => i, p = (V) => te.actions.deepSearch(n.items, V), y = (V) => {
1138
+ p(V) && te.mutations.setItemSelect(i, p(V));
1139
1139
  }, D = () => {
1140
1140
  te.mutations.unSelect(i);
1141
1141
  }, R = (V) => {
@@ -1151,7 +1151,7 @@ const Ze = Vo(), te = {
1151
1151
  expandAll: $,
1152
1152
  collapseAll: f,
1153
1153
  getId: u,
1154
- getNode: m,
1154
+ getNode: p,
1155
1155
  selectNode: y,
1156
1156
  itemsCount: me,
1157
1157
  expandNode: g,
@@ -1249,8 +1249,8 @@ const Ze = Vo(), te = {
1249
1249
  },
1250
1250
  setup(r) {
1251
1251
  const e = r, t = P(() => {
1252
- const { fixed: n, zIndex: a, minWidth: o, height: s, paddingLeft: i, transitionDuration: l, transitionTimingFunction: d } = e, g = n ? "fixed" : "static", p = e.useMinWidthLayout ? `min-width:${o}px;` : "";
1253
- return `position:${g};z-index:${a};${p}height:${s}px;padding-left:${i}px;transition-duration:${l}ms;transition-timing-function:${d};`;
1252
+ const { fixed: n, zIndex: a, minWidth: o, height: s, paddingLeft: i, transitionDuration: l, transitionTimingFunction: d } = e, g = n ? "fixed" : "static", m = e.useMinWidthLayout ? `min-width:${o}px;` : "";
1253
+ return `position:${g};z-index:${a};${m}height:${s}px;padding-left:${i}px;transition-duration:${l}ms;transition-timing-function:${d};`;
1254
1254
  });
1255
1255
  return (n, a) => (c(), b("header", {
1256
1256
  class: "d-layout-header",
@@ -1298,8 +1298,8 @@ const Ze = Vo(), te = {
1298
1298
  },
1299
1299
  setup(r) {
1300
1300
  const e = r, t = P(() => {
1301
- const { fixed: n, top: a, zIndex: o, minWidth: s, height: i, paddingLeft: l, transitionDuration: d, transitionTimingFunction: g } = e, p = n ? "fixed" : "static", S = e.useMinWidthLayout ? `min-width: ${s}px;` : "";
1302
- return `position:${p};top:${a}px;z-index:${o};${S}height:${i}px;padding-left:${l}px;transition-duration:${d}ms;transition-timing-function:${g};`;
1301
+ const { fixed: n, top: a, zIndex: o, minWidth: s, height: i, paddingLeft: l, transitionDuration: d, transitionTimingFunction: g } = e, m = n ? "fixed" : "static", S = e.useMinWidthLayout ? `min-width: ${s}px;` : "";
1302
+ return `position:${m};top:${a}px;z-index:${o};${S}height:${i}px;padding-left:${l}px;transition-duration:${d}ms;transition-timing-function:${g};`;
1303
1303
  });
1304
1304
  return (n, a) => (c(), b("div", {
1305
1305
  class: "d-layout-tab",
@@ -1343,8 +1343,8 @@ const Ze = Vo(), te = {
1343
1343
  },
1344
1344
  setup(r) {
1345
1345
  const e = r, t = P(() => {
1346
- const { fixed: n, zIndex: a, minWidth: o, height: s, paddingLeft: i, transitionDuration: l, transitionTimingFunction: d } = e, g = n ? "fixed" : "static", p = e.useMinWidthLayout ? `min-width:${o}px;` : "";
1347
- return `position:${g};z-index:${a};${p}height:${s}px;padding-left:${i}px;transition-duration:${l}ms;transition-timing-function:${d};`;
1346
+ const { fixed: n, zIndex: a, minWidth: o, height: s, paddingLeft: i, transitionDuration: l, transitionTimingFunction: d } = e, g = n ? "fixed" : "static", m = e.useMinWidthLayout ? `min-width:${o}px;` : "";
1347
+ return `position:${g};z-index:${a};${m}height:${s}px;padding-left:${i}px;transition-duration:${l}ms;transition-timing-function:${d};`;
1348
1348
  });
1349
1349
  return (n, a) => (c(), b("footer", {
1350
1350
  class: "d-layout-footer",
@@ -1439,8 +1439,8 @@ function Wo(r) {
1439
1439
  }
1440
1440
  function o() {
1441
1441
  var g;
1442
- const p = ((g = document.scrollingElement) === null || g === void 0 ? void 0 : g.scrollLeft) || 0;
1443
- a(p);
1442
+ const m = ((g = document.scrollingElement) === null || g === void 0 ? void 0 : g.scrollLeft) || 0;
1443
+ a(m);
1444
1444
  }
1445
1445
  function s() {
1446
1446
  o();
@@ -1552,35 +1552,35 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1552
1552
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1553
1553
  setup(r, { emit: e }) {
1554
1554
  const t = r, n = P(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), a = P(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), o = Wo(a), s = P(() => t.fixedHeaderAndTab ? o.value : ""), i = P(() => t.fixedFooter ? o.value : ""), l = P(() => {
1555
- const { transitionDuration: m, transitionTimingFunction: y } = t;
1555
+ const { transitionDuration: p, transitionTimingFunction: y } = t;
1556
1556
  return {
1557
- transitionDuration: m,
1557
+ transitionDuration: p,
1558
1558
  transitionTimingFunction: y
1559
1559
  };
1560
- }), d = P(() => t.mode === "vertical"), g = P(() => t.isMobile || d.value ? 1003 : 1e3), p = P({
1560
+ }), d = P(() => t.mode === "vertical"), g = P(() => t.isMobile || d.value ? 1003 : 1e3), m = P({
1561
1561
  get() {
1562
1562
  return t.sidebarCollapse;
1563
1563
  },
1564
- set(m) {
1565
- e("update:sidebar-collapse", m);
1564
+ set(p) {
1565
+ e("update:sidebar-collapse", p);
1566
1566
  }
1567
1567
  });
1568
1568
  function S() {
1569
1569
  e("sidebar-mask-click");
1570
1570
  }
1571
- const C = P(() => t.isMobile && !p.value), E = P(() => {
1572
- const { transitionDuration: m, transitionTimingFunction: y } = t;
1573
- return `background-color:${t.maskBg};transition-duration:${m}ms;transition-timing-function:${y};`;
1571
+ const C = P(() => t.isMobile && !m.value), E = P(() => {
1572
+ const { transitionDuration: p, transitionTimingFunction: y } = t;
1573
+ return `background-color:${t.maskBg};transition-duration:${p}ms;transition-timing-function:${y};`;
1574
1574
  }), v = P(() => {
1575
- const { sidebarWidth: m, sidebarCollapsedWidth: y } = t, D = t.isMobile ? 0 : y, R = p.value ? D : m;
1575
+ const { sidebarWidth: p, sidebarCollapsedWidth: y } = t, D = t.isMobile ? 0 : y, R = m.value ? D : p;
1576
1576
  return t.sidebarVisible ? R : 0;
1577
1577
  }), _ = P(() => t.isMobile ? 0 : v.value), x = P(() => d.value ? _.value : 0), $ = P(
1578
1578
  () => !t.isMobile && !d.value && t.headerVisible ? t.headerHeight : 0
1579
1579
  ), f = P(() => {
1580
- let m = 0;
1581
- return t.fixedHeaderAndTab && (t.headerVisible && (m += t.headerHeight), t.tabVisible && (m += t.tabHeight)), m;
1580
+ let p = 0;
1581
+ return t.fixedHeaderAndTab && (t.headerVisible && (p += t.headerHeight), t.tabVisible && (p += t.tabHeight)), p;
1582
1582
  }), u = P(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1583
- return (m, y) => (c(), b("div", {
1583
+ return (p, y) => (c(), b("div", {
1584
1584
  class: "d-layout",
1585
1585
  style: ue(n.value)
1586
1586
  }, [
@@ -1593,7 +1593,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1593
1593
  style: s.value
1594
1594
  }), {
1595
1595
  default: X(() => [
1596
- le(m.$slots, "header")
1596
+ le(p.$slots, "header")
1597
1597
  ]),
1598
1598
  _: 3
1599
1599
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : L("", !0),
@@ -1607,7 +1607,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1607
1607
  style: s.value
1608
1608
  }), {
1609
1609
  default: X(() => [
1610
- le(m.$slots, "tab")
1610
+ le(p.$slots, "tab")
1611
1611
  ]),
1612
1612
  _: 3
1613
1613
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : L("", !0),
@@ -1617,7 +1617,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1617
1617
  "padding-top": $.value
1618
1618
  }), {
1619
1619
  default: X(() => [
1620
- le(m.$slots, "sidebar")
1620
+ le(p.$slots, "sidebar")
1621
1621
  ]),
1622
1622
  _: 3
1623
1623
  }, 16, ["z-index", "width", "padding-top"])) : L("", !0),
@@ -1634,7 +1634,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1634
1634
  "overflow-hidden": r.addMainOverflowHidden
1635
1635
  }), {
1636
1636
  default: X(() => [
1637
- le(m.$slots, "default")
1637
+ le(p.$slots, "default")
1638
1638
  ]),
1639
1639
  _: 3
1640
1640
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
@@ -1647,7 +1647,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1647
1647
  style: i.value
1648
1648
  }), {
1649
1649
  default: X(() => [
1650
- le(m.$slots, "footer")
1650
+ le(p.$slots, "footer")
1651
1651
  ]),
1652
1652
  _: 3
1653
1653
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : L("", !0)
@@ -1967,7 +1967,7 @@ const os = { style: { display: "flex", "flex-direction": "row", "justify-content
1967
1967
  });
1968
1968
  }, g = (C) => {
1969
1969
  t("select", C);
1970
- }, p = P(() => ({ left: i.value + "px", top: l.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1970
+ }, m = P(() => ({ left: i.value + "px", top: l.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1971
1971
  e({
1972
1972
  show: d
1973
1973
  });
@@ -2000,7 +2000,7 @@ const os = { style: { display: "flex", "flex-direction": "row", "justify-content
2000
2000
  ref: o,
2001
2001
  items: n.items,
2002
2002
  class: "dropdown-menu",
2003
- style: ue(p.value),
2003
+ style: ue(m.value),
2004
2004
  "no-select": !0,
2005
2005
  onSelect: g,
2006
2006
  "render-item-title": n.renderItemTitle,
@@ -2237,12 +2237,12 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", Sr = [
2237
2237
  const t = r, n = {
2238
2238
  IDLE: 0,
2239
2239
  DESTROYED: 2
2240
- }, a = I([]), o = I(null), s = I(gs.get("velocity")), i = P(() => t.animationType === "velocity"), l = P(() => i.value ? _s : Ds), d = P(() => a.value.filter((W) => W.state !== n.DESTROYED)), g = P(() => ws(t.width)), p = P(() => {
2240
+ }, a = I([]), o = I(null), s = I(gs.get("velocity")), i = P(() => t.animationType === "velocity"), l = P(() => i.value ? _s : Ds), d = P(() => a.value.filter((W) => W.state !== n.DESTROYED)), g = P(() => ws(t.width)), m = P(() => {
2241
2241
  const { x: W, y: me } = Ss(t.position), ie = g.value.value, V = g.value.type, K = {
2242
2242
  width: ie + V
2243
2243
  };
2244
2244
  return me && (K[me] = "0px"), W && (W === "center" ? K.left = `calc(50% - ${+ie / 2}${V})` : K[W] = "0px"), K;
2245
- }), S = P(() => "bottom" in p.value), C = (W) => {
2245
+ }), S = P(() => "bottom" in m.value), C = (W) => {
2246
2246
  e("click", W), t.closeOnClick && u(W);
2247
2247
  }, E = () => {
2248
2248
  t.pauseOnHover && o.value?.pause();
@@ -2271,14 +2271,14 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", Sr = [
2271
2271
  const J = d.value.some((O) => O.title === W.title && O.text === W.text);
2272
2272
  (!V || !J) && (_e ? (a.value.push(we), e("start", we), d.value.length > t.max && (Ue = 0)) : (a.value.unshift(we), e("start", we), d.value.length > t.max && (Ue = d.value.length - 1)), Ue !== -1 && u(d.value[Ue]));
2273
2273
  }, x = (W) => {
2274
- m(W);
2274
+ p(W);
2275
2275
  }, $ = (W) => [
2276
2276
  "d-notification-template",
2277
2277
  t.classes,
2278
2278
  W.type || ""
2279
2279
  ], f = (W) => i.value ? void 0 : { transition: `all ${W.speed}ms` }, u = (W) => {
2280
2280
  clearTimeout(W.timer), W.state = n.DESTROYED, ne(), e("destroy", W);
2281
- }, m = (W) => {
2281
+ }, p = (W) => {
2282
2282
  const me = a.value.find((ie) => ie.id === W);
2283
2283
  me && u(me);
2284
2284
  }, y = () => {
@@ -2310,7 +2310,7 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", Sr = [
2310
2310
  Ze.on("notification-add", _), Ze.on("notification-close", x);
2311
2311
  }), (W, me) => (c(), b("div", {
2312
2312
  class: "d-notification-group",
2313
- style: ue(p.value)
2313
+ style: ue(m.value)
2314
2314
  }, [
2315
2315
  (c(), H(Ae(l.value), {
2316
2316
  name: r.animationName,
@@ -2620,10 +2620,10 @@ var Mn = function() {
2620
2620
  return Zr.Date.now();
2621
2621
  }, ki = "Expected a function", Si = Math.max, _i = Math.min;
2622
2622
  function Di(r, e, t) {
2623
- var n, a, o, s, i, l, d = 0, g = !1, p = !1, S = !0;
2623
+ var n, a, o, s, i, l, d = 0, g = !1, m = !1, S = !0;
2624
2624
  if (typeof r != "function")
2625
2625
  throw new TypeError(ki);
2626
- e = $r(e) || 0, En(t) && (g = !!t.leading, p = "maxWait" in t, o = p ? Si($r(t.maxWait) || 0, e) : o, S = "trailing" in t ? !!t.trailing : S);
2626
+ e = $r(e) || 0, En(t) && (g = !!t.leading, m = "maxWait" in t, o = m ? Si($r(t.maxWait) || 0, e) : o, S = "trailing" in t ? !!t.trailing : S);
2627
2627
  function C(y) {
2628
2628
  var D = n, R = a;
2629
2629
  return n = a = void 0, d = y, s = r.apply(R, D), s;
@@ -2633,11 +2633,11 @@ function Di(r, e, t) {
2633
2633
  }
2634
2634
  function v(y) {
2635
2635
  var D = y - l, R = y - d, Z = e - D;
2636
- return p ? _i(Z, o - R) : Z;
2636
+ return m ? _i(Z, o - R) : Z;
2637
2637
  }
2638
2638
  function _(y) {
2639
2639
  var D = y - l, R = y - d;
2640
- return l === void 0 || D >= e || D < 0 || p && R >= o;
2640
+ return l === void 0 || D >= e || D < 0 || m && R >= o;
2641
2641
  }
2642
2642
  function x() {
2643
2643
  var y = Mn();
@@ -2654,17 +2654,17 @@ function Di(r, e, t) {
2654
2654
  function u() {
2655
2655
  return i === void 0 ? s : $(Mn());
2656
2656
  }
2657
- function m() {
2657
+ function p() {
2658
2658
  var y = Mn(), D = _(y);
2659
2659
  if (n = arguments, a = this, l = y, D) {
2660
2660
  if (i === void 0)
2661
2661
  return E(l);
2662
- if (p)
2662
+ if (m)
2663
2663
  return clearTimeout(i), i = setTimeout(x, e), C(l);
2664
2664
  }
2665
2665
  return i === void 0 && (i = setTimeout(x, e)), s;
2666
2666
  }
2667
- return m.cancel = f, m.flush = u, m;
2667
+ return p.cancel = f, p.flush = u, p;
2668
2668
  }
2669
2669
  const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2670
2670
  key: 0,
@@ -2725,7 +2725,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2725
2725
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2726
2726
  const g = Di(() => {
2727
2727
  _();
2728
- }, 300), p = P({
2728
+ }, 300), m = P({
2729
2729
  get: () => n.modelValue,
2730
2730
  //props.form?.fields[props.name].model.value,
2731
2731
  set: (D) => {
@@ -2737,7 +2737,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2737
2737
  t("change", D), g.cancel(), _();
2738
2738
  }, _ = () => {
2739
2739
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2740
- return o.value = mn.validate(p.value, n.form.fields[n.name].rules), !!o.value;
2740
+ return o.value = mn.validate(m.value, n.form.fields[n.name].rules), !!o.value;
2741
2741
  };
2742
2742
  Be(() => {
2743
2743
  l.value = n.readonly, !n.autocomplete && !l.value && (l.value = !0, setTimeout(() => {
@@ -2747,12 +2747,12 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2747
2747
  const x = () => {
2748
2748
  d.value?.focus();
2749
2749
  }, $ = () => {
2750
- p.value = "", t("update:modelValue", ""), t("input", ""), t("clear");
2750
+ m.value = "", t("update:modelValue", ""), t("input", ""), t("clear");
2751
2751
  }, f = (D) => {
2752
2752
  i.value = D;
2753
2753
  }, u = (D) => {
2754
2754
  o.value = D;
2755
- }, m = (D) => {
2755
+ }, p = (D) => {
2756
2756
  t("blur", D), g.cancel(), _();
2757
2757
  };
2758
2758
  return e({
@@ -2777,7 +2777,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2777
2777
  id: Q(s),
2778
2778
  ref_key: "inputRef",
2779
2779
  ref: d,
2780
- "onUpdate:modelValue": R[0] || (R[0] = (Z) => p.value = Z),
2780
+ "onUpdate:modelValue": R[0] || (R[0] = (Z) => m.value = Z),
2781
2781
  style: ue([{ width: "100%" }, n.inputStyle]),
2782
2782
  type: S.value,
2783
2783
  inputmode: r.inputMode,
@@ -2786,7 +2786,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2786
2786
  onInput: E,
2787
2787
  onChange: v,
2788
2788
  onFocus: R[1] || (R[1] = (Z) => f(!0)),
2789
- onBlur: m,
2789
+ onBlur: p,
2790
2790
  minlength: n.minLength,
2791
2791
  maxlength: n.maxLength,
2792
2792
  onFocusout: R[2] || (R[2] = (Z) => f(!1)),
@@ -2802,9 +2802,9 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2802
2802
  disabled: n.disabled,
2803
2803
  readonly: l.value
2804
2804
  }, null, 46, Li), [
2805
- [At, p.value]
2805
+ [At, m.value]
2806
2806
  ]),
2807
- n.clear && p.value?.length > 0 ? (c(), b("div", {
2807
+ n.clear && m.value?.length > 0 ? (c(), b("div", {
2808
2808
  key: 0,
2809
2809
  class: "d-post-inside-button",
2810
2810
  onClick: $
@@ -2861,7 +2861,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2861
2861
  }
2862
2862
  Tt(!0);
2863
2863
  };
2864
- return Be(s), e({ returnValue: i }), (g, p) => (c(), b("div", null, [
2864
+ return Be(s), e({ returnValue: i }), (g, m) => (c(), b("div", null, [
2865
2865
  F(dt, { show: !0 }, {
2866
2866
  "modal-title": X(() => [
2867
2867
  se(G(t.title), 1)
@@ -2877,13 +2877,13 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2877
2877
  F(et, {
2878
2878
  style: { width: "100px" },
2879
2879
  modelValue: a.value,
2880
- "onUpdate:modelValue": p[0] || (p[0] = (S) => a.value = S),
2880
+ "onUpdate:modelValue": m[0] || (m[0] = (S) => a.value = S),
2881
2881
  type: "text",
2882
2882
  placeholder: "000",
2883
2883
  maxlength: "3",
2884
2884
  class: "text-center font-mono",
2885
2885
  onInput: l,
2886
- onKeyup: p[1] || (p[1] = Xr((S) => i() && d(), ["enter"])),
2886
+ onKeyup: m[1] || (m[1] = Xr((S) => i() && d(), ["enter"])),
2887
2887
  focus: !0
2888
2888
  }, null, 8, ["modelValue"])
2889
2889
  ]),
@@ -2893,7 +2893,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2893
2893
  "modal-footer": X(() => [
2894
2894
  T("div", ji, [
2895
2895
  F(fe, {
2896
- onClick: p[2] || (p[2] = (S) => Q(Tt)()),
2896
+ onClick: m[2] || (m[2] = (S) => Q(Tt)()),
2897
2897
  disabled: !i()
2898
2898
  }, {
2899
2899
  default: X(() => [
@@ -2903,7 +2903,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2903
2903
  }, 8, ["disabled"]),
2904
2904
  F(fe, {
2905
2905
  class: "button-red",
2906
- onClick: p[3] || (p[3] = (S) => Q(Tt)(!1))
2906
+ onClick: m[3] || (m[3] = (S) => Q(Tt)(!1))
2907
2907
  }, {
2908
2908
  default: X(() => [
2909
2909
  se("Нет")
@@ -3024,21 +3024,21 @@ const Qm = {
3024
3024
  tabs: Array
3025
3025
  },
3026
3026
  setup(r, { expose: e }) {
3027
- const t = r, n = Na(t, "tabs"), a = I([]), o = I(0), s = (p) => {
3028
- o.value = p, Ze.emit("change_tab", {
3027
+ const t = r, n = Na(t, "tabs"), a = I([]), o = I(0), s = (m) => {
3028
+ o.value = m, Ze.emit("change_tab", {
3029
3029
  id: t.id,
3030
3030
  index: o.value
3031
3031
  });
3032
- }, i = (p) => {
3033
- p && !a.value.includes(p) && a.value.push(p);
3032
+ }, i = (m) => {
3033
+ m && !a.value.includes(m) && a.value.push(m);
3034
3034
  };
3035
3035
  return e({
3036
3036
  refs: () => a.value,
3037
3037
  getSelectedIndex: () => o.value,
3038
- setSelectedIndex: (p) => {
3039
- s(p);
3038
+ setSelectedIndex: (m) => {
3039
+ s(m);
3040
3040
  }
3041
- }), (p, S) => (c(), b(pe, null, [
3041
+ }), (m, S) => (c(), b(pe, null, [
3042
3042
  T("div", al, [
3043
3043
  (c(!0), b(pe, null, Ce(n.value, (C, E) => (c(), H(rl, {
3044
3044
  index: E,
@@ -3497,51 +3497,51 @@ const Qm = {
3497
3497
  B.mutations.setItems(n.id, n.items);
3498
3498
  }
3499
3499
  ), Be(() => {
3500
- const m = localStorage.getItem(`${n.id}-grid-field`), y = localStorage.getItem(`${n.id}-grid-dir`);
3501
- m && (B.mutations.setSortField(n.id, m), B.mutations.setSortDirection(n.id, y || "asc"));
3500
+ const p = localStorage.getItem(`${n.id}-grid-field`), y = localStorage.getItem(`${n.id}-grid-dir`);
3501
+ p && (B.mutations.setSortField(n.id, p), B.mutations.setSortDirection(n.id, y || "asc"));
3502
3502
  });
3503
3503
  let d = [];
3504
- for (let m = 0; m < n.columns.length; m++)
3505
- Object.hasOwn(n.columns[m], "search") && (n.columns[m].search === "string" || n.columns[m].search === "number" || Array.isArray(n.columns[m].search)) && (l.value[n.columns[m].key] = ""), d.push(Object.hasOwn(n.columns[m], "size") ? n.columns[m].size : "minmax(100px, 1fr)"), i.value = d.join(" ");
3506
- const g = (m, y) => {
3504
+ for (let p = 0; p < n.columns.length; p++)
3505
+ Object.hasOwn(n.columns[p], "search") && (n.columns[p].search === "string" || n.columns[p].search === "number" || Array.isArray(n.columns[p].search)) && (l.value[n.columns[p].key] = ""), d.push(Object.hasOwn(n.columns[p], "size") ? n.columns[p].size : "minmax(100px, 1fr)"), i.value = d.join(" ");
3506
+ const g = (p, y) => {
3507
3507
  if (B.getters.getSortField(n.id) === y) {
3508
3508
  const R = B.getters.getSortDirection(n.id);
3509
3509
  R ? R === "asc" ? (B.mutations.setSortDirection(n.id, "desc"), localStorage.setItem(`${n.id}-grid-dir`, "desc")) : (B.mutations.setSortField(n.id, null), B.mutations.setSortDirection(n.id, null), localStorage.removeItem(`${n.id}-grid-field`), localStorage.removeItem(`${n.id}-grid-dir`)) : (B.mutations.setSortDirection(n.id, "asc"), localStorage.setItem(`${n.id}-grid-dir`, "asc"));
3510
3510
  } else
3511
3511
  B.mutations.setSortField(n.id, y), B.mutations.setSortDirection(n.id, "asc"), localStorage.setItem(`${n.id}-grid-field`, y), localStorage.setItem(`${n.id}-grid-dir`, "asc");
3512
- }, p = (m) => {
3513
- m.target.checked ? v.value.forEach((y) => {
3512
+ }, m = (p) => {
3513
+ p.target.checked ? v.value.forEach((y) => {
3514
3514
  B.getters.getSelected(n.id).includes(y.id) || B.mutations.addSelect(n.id, y.id);
3515
3515
  }) : v.value.forEach((y) => {
3516
3516
  B.mutations.unSelect(n.id, y.id);
3517
3517
  });
3518
- }, S = (m) => B.getters.getSelected(n.id).includes(m), C = (m, y) => {
3519
- m.target.checked ? (B.mutations.addSelect(n.id, y), t("check", { grid: n.id, id: y })) : (B.mutations.unSelect(n.id, y), t("uncheck", { grid: n.id, id: y }));
3518
+ }, S = (p) => B.getters.getSelected(n.id).includes(p), C = (p, y) => {
3519
+ p.target.checked ? (B.mutations.addSelect(n.id, y), t("check", { grid: n.id, id: y })) : (B.mutations.unSelect(n.id, y), t("uncheck", { grid: n.id, id: y }));
3520
3520
  }, E = P(() => v.value.length === 0 ? !1 : v.value.every(
3521
- (m) => B.getters.getSelected(n.id).includes(m.id)
3521
+ (p) => B.getters.getSelected(n.id).includes(p.id)
3522
3522
  )), v = P(() => {
3523
- const m = a.value * o.value - o.value, y = a.value * o.value - 1;
3523
+ const p = a.value * o.value - o.value, y = a.value * o.value - 1;
3524
3524
  let D = B.getters.getItems(n.id);
3525
3525
  for (let Z = 0; Z < n.columns.length; Z++) {
3526
3526
  const ne = n.columns[Z], W = l.value[ne.key];
3527
3527
  W && (Array.isArray(ne.search) ? D = D.filter((me) => String(me[ne.key]) === String(W)) : (ne.search === "string" || ne.search === "number") && (D = D.filter((me) => me[ne.key] && me[ne.key].toString().toUpperCase().includes(W.toString().toUpperCase()))));
3528
3528
  }
3529
- return D.slice(m, y + 1);
3529
+ return D.slice(p, y + 1);
3530
3530
  }), _ = P(() => {
3531
- let m = [];
3531
+ let p = [];
3532
3532
  for (let y in n.perPageOptions)
3533
- m.push({ label: n.perPageOptions[y], value: n.perPageOptions[y].toString() });
3534
- return m;
3535
- }), x = (m) => {
3536
- n.selectable === "one" && (B.getters.getSelected(n.id).includes(m.id) ? (B.actions.unselectAll(n.id), t("unselect")) : (B.mutations.select(n.id, m.id), t("select", m)));
3537
- }, $ = (m) => {
3538
- o.value = parseInt(m.target.value), localStorage.setItem("datagrid-perpage", m.target.value), a.value = 1;
3539
- }, f = (m, y) => {
3540
- t("select", { e: m, row: y });
3533
+ p.push({ label: n.perPageOptions[y], value: n.perPageOptions[y].toString() });
3534
+ return p;
3535
+ }), x = (p) => {
3536
+ n.selectable === "one" && (B.getters.getSelected(n.id).includes(p.id) ? (B.actions.unselectAll(n.id), t("unselect")) : (B.mutations.select(n.id, p.id), t("select", p)));
3537
+ }, $ = (p) => {
3538
+ o.value = parseInt(p.target.value), localStorage.setItem("datagrid-perpage", p.target.value), a.value = 1;
3539
+ }, f = (p, y) => {
3540
+ t("select", { e: p, row: y });
3541
3541
  };
3542
3542
  return e({
3543
3543
  getSelection: () => B.getters.getSelected(n.id)
3544
- }), (m, y) => (c(), b("div", null, [
3544
+ }), (p, y) => (c(), b("div", null, [
3545
3545
  T("div", yl, [
3546
3546
  T("table", bl, [
3547
3547
  T("thead", wl, [
@@ -3549,7 +3549,7 @@ const Qm = {
3549
3549
  n.selectable === "check" ? (c(), b("th", kl, [
3550
3550
  F(on, {
3551
3551
  checked: E.value,
3552
- onChange: y[0] || (y[0] = (D) => p(D))
3552
+ onChange: y[0] || (y[0] = (D) => m(D))
3553
3553
  }, null, 8, ["checked"])
3554
3554
  ])) : L("", !0),
3555
3555
  (c(!0), b(pe, null, Ce(n.columns, (D) => (c(), b("th", {
@@ -3698,31 +3698,31 @@ const Qm = {
3698
3698
  if (t.canvas) {
3699
3699
  const {
3700
3700
  offsetX: g,
3701
- offsetY: p,
3701
+ offsetY: m,
3702
3702
  width: S,
3703
3703
  height: C
3704
3704
  } = d(t.width, t.height, l.width, l.height);
3705
- a.drawImage(l, g, p, S, C), e("loaded"), i.value = !1;
3705
+ a.drawImage(l, g, m, S, C), e("loaded"), i.value = !1;
3706
3706
  } else
3707
3707
  s.value = l.src, e("loaded"), i.value = !1;
3708
3708
  }, l.onerror = () => {
3709
3709
  l.src = t.srcFail, e("loaded"), i.value = !1;
3710
3710
  };
3711
- const d = (g, p, S, C, E = 1, v = 0.5, _ = 0.5) => {
3712
- const x = S / C, $ = g / p;
3713
- let f = g * E, u = p * E;
3711
+ const d = (g, m, S, C, E = 1, v = 0.5, _ = 0.5) => {
3712
+ const x = S / C, $ = g / m;
3713
+ let f = g * E, u = m * E;
3714
3714
  return x < $ ? u = f / x : f = u * x, {
3715
3715
  width: f,
3716
3716
  height: u,
3717
3717
  offsetX: (g - f) * v,
3718
- offsetY: (p - u) * _
3718
+ offsetY: (m - u) * _
3719
3719
  };
3720
3720
  };
3721
3721
  return Be(() => {
3722
3722
  t.canvas && (n = o.value, a = n.getContext("2d")), e("loading"), i.value = !0, l.src = t.src;
3723
- }), Re(() => t.src, (g, p) => {
3723
+ }), Re(() => t.src, (g, m) => {
3724
3724
  e("loading"), i.value = !0, l.src = t.src;
3725
- }), (g, p) => (c(), b("div", {
3725
+ }), (g, m) => (c(), b("div", {
3726
3726
  style: ue([{ position: "relative", display: "inline-block" }, {
3727
3727
  width: `${t.width}px`,
3728
3728
  height: `${t.height}px`,
@@ -3820,7 +3820,7 @@ const Qm = {
3820
3820
  o.value.focus();
3821
3821
  }, g = () => {
3822
3822
  o.value.style.height = "auto";
3823
- }, p = ($) => {
3823
+ }, m = ($) => {
3824
3824
  t("input", $), n.autoHeight && (o.value.style.overflow = "hidden", o.value.style.minHeight = n.minHeight, o.value.style.maxHeight = n.maxHeight, o.value.style.height = "auto", o.value.style.height = `${o.value.scrollHeight}px`), l();
3825
3825
  }, S = () => {
3826
3826
  n.autoHeight && (o.value.style.height = "auto", o.value.style.height = `${o.value.scrollHeight}px`);
@@ -3850,7 +3850,7 @@ const Qm = {
3850
3850
  ref: o,
3851
3851
  "onUpdate:modelValue": f[0] || (f[0] = (u) => i.value = u),
3852
3852
  "on:update:modelValue": S,
3853
- onInput: p,
3853
+ onInput: m,
3854
3854
  onChange: E,
3855
3855
  rows: n.rows,
3856
3856
  cols: n.cols,
@@ -3942,7 +3942,7 @@ const Qm = {
3942
3942
  setup(r, { expose: e, emit: t }) {
3943
3943
  const n = r, a = ct(), o = I(""), s = St(), i = I(!1), l = I(!1), d = I("password"), g = I(null);
3944
3944
  //!props.form ? ref(null) : props.form.fields[props.name].ref
3945
- const p = P({
3945
+ const m = P({
3946
3946
  get: () => n.modelValue,
3947
3947
  //props.form?.fields[props.name].model.value,
3948
3948
  set: (u) => {
@@ -3952,7 +3952,7 @@ const Qm = {
3952
3952
  t("input", u), E();
3953
3953
  }, E = () => {
3954
3954
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
3955
- return o.value = mn.validate(p.value, n.form.fields[n.name].rules), !!o.value;
3955
+ return o.value = mn.validate(m.value, n.form.fields[n.name].rules), !!o.value;
3956
3956
  };
3957
3957
  Be(() => {
3958
3958
  l.value = n.readonly, !n.autocomplete && !l.value && (l.value = !0, setTimeout(() => {
@@ -3974,7 +3974,7 @@ const Qm = {
3974
3974
  focus: v,
3975
3975
  setError: $,
3976
3976
  validate: E
3977
- }), (u, m) => (c(), b("div", {
3977
+ }), (u, p) => (c(), b("div", {
3978
3978
  class: ae(["d-input-string", S.value])
3979
3979
  }, [
3980
3980
  T("div", tu, [
@@ -3988,14 +3988,14 @@ const Qm = {
3988
3988
  id: Q(s),
3989
3989
  ref_key: "inputRef",
3990
3990
  ref: g,
3991
- "onUpdate:modelValue": m[0] || (m[0] = (y) => p.value = y),
3991
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => m.value = y),
3992
3992
  style: { width: "100%" },
3993
3993
  type: d.value,
3994
3994
  placeholder: n.placeholder,
3995
3995
  onInput: C,
3996
- onFocus: m[1] || (m[1] = (y) => x(!0)),
3996
+ onFocus: p[1] || (p[1] = (y) => x(!0)),
3997
3997
  onBlur: f,
3998
- onFocusout: m[2] || (m[2] = (y) => x(!1)),
3998
+ onFocusout: p[2] || (p[2] = (y) => x(!1)),
3999
3999
  class: ae([
4000
4000
  Q(a).pre ? "has-pre" : "",
4001
4001
  Q(a).post ? "has-post" : "",
@@ -4004,7 +4004,7 @@ const Qm = {
4004
4004
  disabled: n.disabled,
4005
4005
  readonly: l.value
4006
4006
  }, null, 42, su), [
4007
- [At, p.value]
4007
+ [At, m.value]
4008
4008
  ]),
4009
4009
  n.toggleView ? (c(), b("div", {
4010
4010
  key: 0,
@@ -4160,8 +4160,8 @@ var Zn = Ge({
4160
4160
  left: i - 5 + "px",
4161
4161
  top: l - 5 + "px"
4162
4162
  };
4163
- const d = n.getImageData(Math.min(i, this.size - 1), Math.min(l, this.size - 1), 1, 1), [g, p, S] = d.data;
4164
- this.$emit("selectSaturation", { r: g, g: p, b: S });
4163
+ const d = n.getImageData(Math.min(i, this.size - 1), Math.min(l, this.size - 1), 1, 1), [g, m, S] = d.data;
4164
+ this.$emit("selectSaturation", { r: g, g: m, b: S });
4165
4165
  };
4166
4166
  a(r);
4167
4167
  const o = () => {
@@ -4457,7 +4457,7 @@ var nr = Ge({
4457
4457
  },
4458
4458
  mousemoveHandler(r) {
4459
4459
  const { clientX: e, clientY: t } = r, { top: n, left: a, width: o, height: s } = this.suckerCanvas.getBoundingClientRect(), i = e - a, l = t - n, g = this.suckerCanvas.getContext("2d").getImageData(Math.min(i, o - 1), Math.min(l, s - 1), 1, 1);
4460
- let [p, S, C, E] = g.data;
4460
+ let [m, S, C, E] = g.data;
4461
4461
  E = parseFloat((E / 255).toFixed(2));
4462
4462
  const v = this.suckerPreview.style;
4463
4463
  Object.assign(v, {
@@ -4469,7 +4469,7 @@ var nr = Ge({
4469
4469
  borderRadius: "50%",
4470
4470
  border: "2px solid #fff",
4471
4471
  boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
4472
- background: `rgba(${p}, ${S}, ${C}, ${E})`,
4472
+ background: `rgba(${m}, ${S}, ${C}, ${E})`,
4473
4473
  zIndex: 95
4474
4474
  }), this.suckerArea.length && // @ts-ignore
4475
4475
  e >= this.suckerArea[0] && // @ts-ignore
@@ -4479,8 +4479,8 @@ var nr = Ge({
4479
4479
  },
4480
4480
  suckColor(r) {
4481
4481
  r && r.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), r.addEventListener("click", (e) => {
4482
- const { clientX: t, clientY: n } = e, { top: a, left: o, width: s, height: i } = r.getBoundingClientRect(), l = t - o, d = n - a, p = r.getContext("2d").getImageData(Math.min(l, s - 1), Math.min(d, i - 1), 1, 1);
4483
- let [S, C, E, v] = p.data;
4482
+ const { clientX: t, clientY: n } = e, { top: a, left: o, width: s, height: i } = r.getBoundingClientRect(), l = t - o, d = n - a, m = r.getContext("2d").getImageData(Math.min(l, s - 1), Math.min(d, i - 1), 1, 1);
4483
+ let [S, C, E, v] = m.data;
4484
4484
  v = parseFloat((v / 255).toFixed(2)), this.$emit("selectSucker", { r: S, g: C, b: E, a: v });
4485
4485
  }));
4486
4486
  }
@@ -4906,7 +4906,7 @@ var Pt = Ge({
4906
4906
  });
4907
4907
  const Au = { class: "color-set" };
4908
4908
  function Hu(r, e, t, n, a, o) {
4909
- const s = mt("Saturation"), i = mt("Hue"), l = mt("Alpha"), d = mt("Preview"), g = mt("Sucker"), p = mt("Box"), S = mt("Colors");
4909
+ const s = mt("Saturation"), i = mt("Hue"), l = mt("Alpha"), d = mt("Preview"), g = mt("Sucker"), m = mt("Box"), S = mt("Colors");
4910
4910
  return c(), H(
4911
4911
  "div",
4912
4912
  {
@@ -4961,14 +4961,14 @@ function Hu(r, e, t, n, a, o) {
4961
4961
  4
4962
4962
  /* STYLE */
4963
4963
  ),
4964
- F(p, {
4964
+ F(m, {
4965
4965
  name: "HEX",
4966
4966
  color: r.modelHex,
4967
4967
  onInputColor: r.inputHex,
4968
4968
  onInputFocus: r.handleFocus,
4969
4969
  onInputBlur: r.handleBlur
4970
4970
  }, null, 8, ["color", "onInputColor", "onInputFocus", "onInputBlur"]),
4971
- F(p, {
4971
+ F(m, {
4972
4972
  name: "RGBA",
4973
4973
  color: r.modelRgba,
4974
4974
  onInputColor: r.inputRgba,
@@ -5018,16 +5018,16 @@ const Ru = /* @__PURE__ */ T("div", { class: "color-indicator" }, null, -1), Nu
5018
5018
  emits: ["update:modelValue", "change"],
5019
5019
  setup(r, { emit: e }) {
5020
5020
  const t = r;
5021
- Un((p) => ({
5021
+ Un((m) => ({
5022
5022
  "2c1f41d3": n.value
5023
5023
  }));
5024
5024
  const n = P({
5025
5025
  get: () => t.modelValue,
5026
- set: (p) => {
5027
- e("update:modelValue", p);
5026
+ set: (m) => {
5027
+ e("update:modelValue", m);
5028
5028
  }
5029
- }), a = I(null), o = I(n), s = I(null), i = (p) => {
5030
- s.value = t.format === "rgba" ? p.rgba : p.hex;
5029
+ }), a = I(null), o = I(n), s = I(null), i = (m) => {
5030
+ s.value = t.format === "rgba" ? m.rgba : m.hex;
5031
5031
  }, l = () => {
5032
5032
  a.value.show();
5033
5033
  }, d = {
@@ -5036,13 +5036,13 @@ const Ru = /* @__PURE__ */ T("div", { class: "color-indicator" }, null, -1), Nu
5036
5036
  }
5037
5037
  }, g = () => {
5038
5038
  if (t.format === "rgba") {
5039
- const { r: p, g: S, b: C, a: E } = s.value;
5040
- n.value = `rgba(${p}, ${S}, ${C}, ${E})`;
5039
+ const { r: m, g: S, b: C, a: E } = s.value;
5040
+ n.value = `rgba(${m}, ${S}, ${C}, ${E})`;
5041
5041
  } else
5042
5042
  n.value = s.value;
5043
5043
  a.value.hide(), e("change", n.value);
5044
5044
  };
5045
- return (p, S) => (c(), b("div", null, [
5045
+ return (m, S) => (c(), b("div", null, [
5046
5046
  F(et, {
5047
5047
  pre: d,
5048
5048
  label: t.label,
@@ -5261,9 +5261,9 @@ var ra = (
5261
5261
  a++;
5262
5262
  else e === this.xPct[this.xPct.length - 1] && (a = this.xPct.length - 2);
5263
5263
  !n && e === this.xPct[a + 1] && a++, t === null && (t = []);
5264
- var o, s = 1, i = t[a], l = 0, d = 0, g = 0, p = 0;
5264
+ var o, s = 1, i = t[a], l = 0, d = 0, g = 0, m = 0;
5265
5265
  for (n ? o = (e - this.xPct[a]) / (this.xPct[a + 1] - this.xPct[a]) : o = (this.xPct[a + 1] - e) / (this.xPct[a + 1] - this.xPct[a]); i > 0; )
5266
- l = this.xPct[a + 1 + p] - this.xPct[a + p], t[a + p] * s + 100 - o * 100 > 100 ? (d = l * o, s = (i - 100 * o) / t[a + p], o = 1) : (d = t[a + p] * l / 100 * s, s = 0), n ? (g = g - d, this.xPct.length + p >= 1 && p--) : (g = g + d, this.xPct.length - p >= 1 && p++), i = t[a + p] * s;
5266
+ l = this.xPct[a + 1 + m] - this.xPct[a + m], t[a + m] * s + 100 - o * 100 > 100 ? (d = l * o, s = (i - 100 * o) / t[a + m], o = 1) : (d = t[a + m] * l / 100 * s, s = 0), n ? (g = g - d, this.xPct.length + m >= 1 && m--) : (g = g + d, this.xPct.length - m >= 1 && m++), i = t[a + m] * s;
5267
5267
  return e + g;
5268
5268
  }, r.prototype.toStepping = function(e) {
5269
5269
  return e = ec(this.xVal, this.xPct, e), e;
@@ -5613,7 +5613,7 @@ function ia(r) {
5613
5613
  return e.style = i[e.dir][e.ort], e;
5614
5614
  }
5615
5615
  function Dc(r, e, t) {
5616
- var n = Gu(), a = Ku(), o = a && Qu(), s = r, i, l, d, g, p, S, C = e.spectrum, E = [], v = [], _ = [], x = 0, $ = {}, f = !1, u = r.ownerDocument, m = e.documentElement || u.documentElement, y = u.body, D = u.dir === "rtl" || e.ort === 1 ? 0 : 100;
5616
+ var n = Gu(), a = Ku(), o = a && Qu(), s = r, i, l, d, g, m, S, C = e.spectrum, E = [], v = [], _ = [], x = 0, $ = {}, f = !1, u = r.ownerDocument, p = e.documentElement || u.documentElement, y = u.body, D = u.dir === "rtl" || e.ort === 1 ? 0 : 100;
5617
5617
  function R(h, w) {
5618
5618
  var k = u.createElement("div");
5619
5619
  return w && je(k, w), h.appendChild(k), k;
@@ -5737,7 +5737,7 @@ function Dc(r, e, t) {
5737
5737
  }), j;
5738
5738
  }
5739
5739
  function O() {
5740
- p && (Tr(p), p = null);
5740
+ m && (Tr(m), m = null);
5741
5741
  }
5742
5742
  function z(h) {
5743
5743
  O();
@@ -5746,7 +5746,7 @@ function Dc(r, e, t) {
5746
5746
  return String(Math.round(Y));
5747
5747
  }
5748
5748
  };
5749
- return p = s.appendChild(M(w, k, A)), p;
5749
+ return m = s.appendChild(M(w, k, A)), m;
5750
5750
  }
5751
5751
  function N() {
5752
5752
  var h = i.getBoundingClientRect(), w = "offset" + ["Width", "Height"][e.ort];
@@ -5810,7 +5810,7 @@ function Dc(r, e, t) {
5810
5810
  }
5811
5811
  function Lt(h, w) {
5812
5812
  w.handle && (rn(w.handle, e.cssClasses.active), x -= 1), w.listeners.forEach(function(k) {
5813
- m.removeEventListener(k[0], k[1]);
5813
+ p.removeEventListener(k[0], k[1]);
5814
5814
  }), x === 0 && (rn(s, e.cssClasses.drag), xn(), h.cursor && (y.style.cursor = "", y.removeEventListener("selectstart", Pr))), e.events.smoothSteps && (w.handleNumbers.forEach(function(k) {
5815
5815
  vt(k, v[k], !0, !0, !1, !1);
5816
5816
  }), w.handleNumbers.forEach(function(k) {
@@ -5827,7 +5827,7 @@ function Dc(r, e, t) {
5827
5827
  k = A.children[0], x += 1, je(k, e.cssClasses.active);
5828
5828
  }
5829
5829
  h.stopPropagation();
5830
- var Y = [], j = U(n.move, m, Kt, {
5830
+ var Y = [], j = U(n.move, p, Kt, {
5831
5831
  // The event target has changed so we need to propagate the original one so that we keep
5832
5832
  // relying on it to extract target touches.
5833
5833
  target: h.target,
@@ -5840,13 +5840,13 @@ function Dc(r, e, t) {
5840
5840
  handleNumbers: w.handleNumbers,
5841
5841
  buttonsProperty: h.buttons,
5842
5842
  locations: v.slice()
5843
- }), re = U(n.end, m, Lt, {
5843
+ }), re = U(n.end, p, Lt, {
5844
5844
  target: h.target,
5845
5845
  handle: k,
5846
5846
  listeners: Y,
5847
5847
  doNotReject: !0,
5848
5848
  handleNumbers: w.handleNumbers
5849
- }), ee = U("mouseout", m, tt, {
5849
+ }), ee = U("mouseout", p, tt, {
5850
5850
  target: h.target,
5851
5851
  handle: k,
5852
5852
  listeners: Y,
@@ -6324,10 +6324,10 @@ const Ir = {
6324
6324
  Re(() => t.angle, (l) => {
6325
6325
  a.value = -~l;
6326
6326
  });
6327
- const s = (l, d, g, p) => Math.atan2(l - g, d - p) * (180 / Math.PI) * -1 + 180, i = (l) => {
6327
+ const s = (l, d, g, m) => Math.atan2(l - g, d - m) * (180 / Math.PI) * -1 + 180, i = (l) => {
6328
6328
  if (o.value) {
6329
- let d = -~(n.value.offsetHeight || n.value.height) / 2, g = -~(n.value.offsetWidth || n.value.width) / 2, p = s(l.offsetX, l.offsetY, d, g);
6330
- a.value = -~p, e("angle", p);
6329
+ let d = -~(n.value.offsetHeight || n.value.height) / 2, g = -~(n.value.offsetWidth || n.value.width) / 2, m = s(l.offsetX, l.offsetY, d, g);
6330
+ a.value = -~m, e("angle", m);
6331
6331
  }
6332
6332
  };
6333
6333
  return (l, d) => (c(), b("div", null, [
@@ -6573,7 +6573,7 @@ function Fc() {
6573
6573
  return N && (_e(e.comma) || n("Missing comma before color stops")), {
6574
6574
  type: J,
6575
6575
  orientation: N,
6576
- colorStops: u(m)
6576
+ colorStops: u(p)
6577
6577
  };
6578
6578
  });
6579
6579
  }
@@ -6593,12 +6593,12 @@ function Fc() {
6593
6593
  return M ? {
6594
6594
  type: "directional",
6595
6595
  value: M.value
6596
- } : p();
6596
+ } : m();
6597
6597
  }
6598
6598
  function g() {
6599
6599
  return we("directional", e.sideOrCorner, 1);
6600
6600
  }
6601
- function p() {
6601
+ function m() {
6602
6602
  return we("angular", e.angleValue, 1) || we("angular", e.radianValue, 1);
6603
6603
  }
6604
6604
  function S() {
@@ -6671,7 +6671,7 @@ function Fc() {
6671
6671
  M = J(), M ? O.push(M) : n("One extra comma");
6672
6672
  return O;
6673
6673
  }
6674
- function m() {
6674
+ function p() {
6675
6675
  var J = y();
6676
6676
  return J || n("Expected color definition"), J.length = q(), J;
6677
6677
  }
@@ -6842,12 +6842,12 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6842
6842
  e("update:modelValue", f);
6843
6843
  }
6844
6844
  }), a = I(null), o = I(null), s = I([{ code: "#FFFFFF" }]), i = I(""), l = I("linear"), d = I("0"), g = I("");
6845
- let p = 1;
6845
+ let m = 1;
6846
6846
  const S = () => {
6847
6847
  a.value.show(), C();
6848
6848
  }, C = () => {
6849
- const m = n.value.split(";")[1].trim().split(":")[1].trim(), y = Hc.parse(m), D = y[0].type.split("-");
6850
- l.value = D[0], l.value === "linear" && (d.value = y[0].orientation.value), s.value = [], p = y[0].colorStops.length;
6849
+ const p = n.value.split(";")[1].trim().split(":")[1].trim(), y = Hc.parse(p), D = y[0].type.split("-");
6850
+ l.value = D[0], l.value === "linear" && (d.value = y[0].orientation.value), s.value = [], m = y[0].colorStops.length;
6851
6851
  const R = [];
6852
6852
  for (let Z = 0; Z < y[0].colorStops.length; Z++) {
6853
6853
  const ne = y[0].colorStops[Z].type === "hex" ? `#${y[0].colorStops[Z].value}` : `rgba(${y[0].colorStops[Z].value.join(",")})`;
@@ -6863,17 +6863,17 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6863
6863
  }, v = () => {
6864
6864
  n.value = i.value, a.value.hide(), g.value = `${t.text}: ${s.value.length}`, e("change", n.value);
6865
6865
  }, _ = () => {
6866
- if (p < t.maxColors) {
6867
- s.value.push({ code: "#FFFFFF" }), p++;
6868
- const f = Math.round(100 / p), u = [];
6869
- for (let m = 0; m < p; m++)
6870
- u.push(m * f);
6866
+ if (m < t.maxColors) {
6867
+ s.value.push({ code: "#FFFFFF" }), m++;
6868
+ const f = Math.round(100 / m), u = [];
6869
+ for (let p = 0; p < m; p++)
6870
+ u.push(p * f);
6871
6871
  o.value.updateStart(u);
6872
6872
  }
6873
6873
  }, x = (f) => {
6874
- if (p > 1) {
6874
+ if (m > 1) {
6875
6875
  const u = o.value.get();
6876
- u.splice(f, 1), s.value.splice(f, 1), o.value.updateStart(u), p--;
6876
+ u.splice(f, 1), s.value.splice(f, 1), o.value.updateStart(u), m--;
6877
6877
  }
6878
6878
  };
6879
6879
  Be(() => {
@@ -6883,18 +6883,18 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6883
6883
  if (!o.value)
6884
6884
  return;
6885
6885
  const f = l.value + "-gradient", u = o.value.position();
6886
- let m = [];
6887
- m.push(l.value === "radial" ? "circle" : `${d.value}deg`);
6886
+ let p = [];
6887
+ p.push(l.value === "radial" ? "circle" : `${d.value}deg`);
6888
6888
  for (let y = 0; y < s.value.length; y++)
6889
- m.push(`${s.value[y].code} ${parseInt(u[y])}%`);
6890
- i.value = `background: ${s.value[0].code};`, s.value.length > 1 && (i.value += `background: ${f}(${m.join(", ")})`);
6889
+ p.push(`${s.value[y].code} ${parseInt(u[y])}%`);
6890
+ i.value = `background: ${s.value[0].code};`, s.value.length > 1 && (i.value += `background: ${f}(${p.join(", ")})`);
6891
6891
  };
6892
6892
  return (f, u) => (c(), b("div", null, [
6893
6893
  F(et, {
6894
6894
  pre: E,
6895
6895
  label: t.label,
6896
6896
  modelValue: g.value,
6897
- "onUpdate:modelValue": u[0] || (u[0] = (m) => g.value = m),
6897
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => g.value = p),
6898
6898
  onClick: S,
6899
6899
  readonly: !0
6900
6900
  }, {
@@ -6908,7 +6908,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6908
6908
  }, 8, ["label", "modelValue"]),
6909
6909
  He(T("input", {
6910
6910
  type: "hidden",
6911
- "onUpdate:modelValue": u[1] || (u[1] = (m) => n.value = m)
6911
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => n.value = p)
6912
6912
  }, null, 512), [
6913
6913
  [Xn, n.value]
6914
6914
  ]),
@@ -6932,7 +6932,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6932
6932
  ref_key: "sliderRef",
6933
6933
  ref: o,
6934
6934
  start: 50,
6935
- tooltips: { to: (m) => parseInt(m) },
6935
+ tooltips: { to: (p) => parseInt(p) },
6936
6936
  "tooltip-hide": !0
6937
6937
  }, null, 8, ["tooltips"]),
6938
6938
  T("div", Rc, [
@@ -6940,7 +6940,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6940
6940
  F(In, {
6941
6941
  onChange: $,
6942
6942
  modelValue: l.value,
6943
- "onUpdate:modelValue": u[2] || (u[2] = (m) => l.value = m),
6943
+ "onUpdate:modelValue": u[2] || (u[2] = (p) => l.value = p),
6944
6944
  options: [{ label: t.linear, value: "linear" }, { label: t.radial, value: "radial" }],
6945
6945
  size: "wide"
6946
6946
  }, null, 8, ["modelValue", "options"])
@@ -6950,28 +6950,28 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6950
6950
  key: 0,
6951
6951
  onChange: $,
6952
6952
  modelValue: d.value,
6953
- "onUpdate:modelValue": u[3] || (u[3] = (m) => d.value = m)
6953
+ "onUpdate:modelValue": u[3] || (u[3] = (p) => d.value = p)
6954
6954
  }, null, 8, ["modelValue"])) : L("", !0)
6955
6955
  ])
6956
6956
  ]),
6957
- (c(!0), b(pe, null, Ce(s.value, (m, y) => (c(), b("div", {
6957
+ (c(!0), b(pe, null, Ce(s.value, (p, y) => (c(), b("div", {
6958
6958
  style: { display: "flex", gap: "5px", "align-items": "center", "justify-content": "center" },
6959
6959
  key: y
6960
6960
  }, [
6961
6961
  F(Bu, {
6962
- modelValue: m.code,
6963
- "onUpdate:modelValue": (D) => m.code = D,
6962
+ modelValue: p.code,
6963
+ "onUpdate:modelValue": (D) => p.code = D,
6964
6964
  style: { flex: "1" },
6965
6965
  format: "rgba",
6966
6966
  onChange: $
6967
6967
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
6968
- Q(p) > 1 ? (c(), H(fe, {
6968
+ Q(m) > 1 ? (c(), H(fe, {
6969
6969
  key: 0,
6970
6970
  icon: "MinusSharp",
6971
6971
  onClick: (D) => x(y)
6972
6972
  }, null, 8, ["onClick"])) : L("", !0)
6973
6973
  ]))), 128)),
6974
- Q(p) < t.maxColors ? (c(), b("div", Nc, [
6974
+ Q(m) < t.maxColors ? (c(), b("div", Nc, [
6975
6975
  F(fe, { onClick: _ }, {
6976
6976
  default: X(() => [
6977
6977
  se(G(t.add), 1)
@@ -6983,7 +6983,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6983
6983
  "modal-footer": X(() => [
6984
6984
  T("div", Bc, [
6985
6985
  F(fe, {
6986
- onClick: u[4] || (u[4] = (m) => a.value.hide())
6986
+ onClick: u[4] || (u[4] = (p) => a.value.hide())
6987
6987
  }, {
6988
6988
  default: X(() => [
6989
6989
  se(G(t.close), 1)
@@ -7028,14 +7028,14 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7028
7028
  // Used to detect double click on touch devices.
7029
7029
  splitter: null,
7030
7030
  timeoutId: null
7031
- }), p = () => {
7031
+ }), m = () => {
7032
7032
  document.addEventListener("mousemove", E, { passive: !1 }), document.addEventListener("mouseup", v), "ontouchstart" in window && (document.addEventListener("touchmove", E, { passive: !1 }), document.addEventListener("touchend", v));
7033
7033
  }, S = () => {
7034
7034
  document.removeEventListener("mousemove", E, { passive: !1 }), document.removeEventListener("mouseup", v), "ontouchstart" in window && (document.removeEventListener("touchmove", E, { passive: !1 }), document.removeEventListener("touchend", v));
7035
7035
  }, C = (M, O) => {
7036
- p(), d.value.mouseDown = !0, d.value.activeSplitter = O;
7036
+ m(), d.value.mouseDown = !0, d.value.activeSplitter = O;
7037
7037
  }, E = (M) => {
7038
- t.movable && d.value.mouseDown && (M.preventDefault(), d.value.dragging = !0, m(f(M)), e("resize", a.value.map((O) => ({ min: O.min, max: O.max, size: O.size }))));
7038
+ t.movable && d.value.mouseDown && (M.preventDefault(), d.value.dragging = !0, p(f(M)), e("resize", a.value.map((O) => ({ min: O.min, max: O.max, size: O.size }))));
7039
7039
  }, v = () => {
7040
7040
  d.value.dragging && e("resized", a.value.map((M) => ({ min: M.min, max: M.max, size: M.size }))), d.value.mouseDown = !1, setTimeout(() => {
7041
7041
  d.value.dragging = !1, S();
@@ -7059,7 +7059,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7059
7059
  M = M[t.horizontal ? "y" : "x"];
7060
7060
  const O = i.value[t.horizontal ? "clientHeight" : "clientWidth"];
7061
7061
  return t.rtl && !t.horizontal && (M = O - M), M * 100 / O;
7062
- }, m = (M) => {
7062
+ }, p = (M) => {
7063
7063
  const O = d.value.activeSplitter;
7064
7064
  let z = {
7065
7065
  prevPanesSize: D(O),
@@ -7194,7 +7194,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7194
7194
  maxSize: { type: [Number, String], default: 100 }
7195
7195
  },
7196
7196
  setup(r) {
7197
- const e = r, t = Ct("requestUpdate"), n = Ct("onPaneAdd"), a = Ct("horizontal"), o = Ct("onPaneRemove"), s = Ct("onPaneClick"), i = pn()?.uid, l = Ct("indexedPanes"), d = P(() => l.value[i]), g = I(null), p = P(() => {
7197
+ const e = r, t = Ct("requestUpdate"), n = Ct("onPaneAdd"), a = Ct("horizontal"), o = Ct("onPaneRemove"), s = Ct("onPaneClick"), i = pn()?.uid, l = Ct("indexedPanes"), d = P(() => l.value[i]), g = I(null), m = P(() => {
7198
7198
  const v = isNaN(e.size) || e.size === void 0 ? 0 : parseFloat(e.size);
7199
7199
  return Math.max(Math.min(v, C.value), S.value);
7200
7200
  }), S = P(() => {
@@ -7211,11 +7211,11 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7211
7211
  min: S.value,
7212
7212
  max: C.value,
7213
7213
  // The given size (useful to know the user intention).
7214
- givenSize: e.size === void 0 ? null : p.value,
7215
- size: p.value
7214
+ givenSize: e.size === void 0 ? null : m.value,
7215
+ size: m.value
7216
7216
  // The computed current size at any time.
7217
7217
  });
7218
- }), Re(() => p.value, (v) => t({ uid: i, size: v })), Re(() => S.value, (v) => t({ uid: i, min: v })), Re(() => C.value, (v) => t({ uid: i, max: v })), Gr(() => o(i)), (v, _) => (c(), b("div", {
7218
+ }), Re(() => m.value, (v) => t({ uid: i, size: v })), Re(() => S.value, (v) => t({ uid: i, min: v })), Re(() => C.value, (v) => t({ uid: i, max: v })), Gr(() => o(i)), (v, _) => (c(), b("div", {
7219
7219
  ref_key: "paneEl",
7220
7220
  ref: g,
7221
7221
  class: "d-splitter__panel",
@@ -7308,7 +7308,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7308
7308
  set: (x) => {
7309
7309
  t("update:modelValue", x);
7310
7310
  }
7311
- }), o = I(null), s = I(null), i = I(0), l = I(0), d = I(0), g = I(""), p = I("");
7311
+ }), o = I(null), s = I(null), i = I(0), l = I(0), d = I(0), g = I(""), m = I("");
7312
7312
  Re(() => a.value, () => {
7313
7313
  if (a.value === "")
7314
7314
  g.value = "";
@@ -7327,7 +7327,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7327
7327
  });
7328
7328
  }, C = () => {
7329
7329
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
7330
- return p.value = mn.validate(a.value, n.form.fields[n.name].rules), !!p.value;
7330
+ return m.value = mn.validate(a.value, n.form.fields[n.name].rules), !!m.value;
7331
7331
  }, E = (x) => {
7332
7332
  a.value = x.model.id, g.value = x.model.title, t("select", x), C();
7333
7333
  }, v = P(() => ({ left: i.value + "px", width: l.value + "px", top: d.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
@@ -7337,7 +7337,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7337
7337
  n.items[x].id === a.value && (g.value = n.items[x].title);
7338
7338
  }), e({
7339
7339
  setError: (x) => {
7340
- p.value = x;
7340
+ m.value = x;
7341
7341
  },
7342
7342
  validate: C
7343
7343
  }), (x, $) => (c(), b("div", Wc, [
@@ -7384,10 +7384,10 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7384
7384
  class: "d-error text-red",
7385
7385
  innerHTML: n.error
7386
7386
  }, null, 8, nd)) : L("", !0),
7387
- p.value ? (c(), b("div", {
7387
+ m.value ? (c(), b("div", {
7388
7388
  key: 3,
7389
7389
  class: "d-error text-red",
7390
- innerHTML: p.value
7390
+ innerHTML: m.value
7391
7391
  }, null, 8, rd)) : L("", !0)
7392
7392
  ]));
7393
7393
  }
@@ -7421,11 +7421,6 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7421
7421
  type: Number,
7422
7422
  default: 100
7423
7423
  },
7424
- useIds: {
7425
- // Что попадает в результирующий массив. id или title
7426
- type: Boolean,
7427
- default: !1
7428
- },
7429
7424
  modelValue: Array,
7430
7425
  label: String
7431
7426
  },
@@ -7442,38 +7437,41 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7442
7437
  Re(() => n, () => {
7443
7438
  t.sort && n.value.sort, a.value?.itemsCount() === 0 && a.value.hide();
7444
7439
  });
7445
- const a = I(null), o = I(null), s = I(0), i = I(0), l = I(0), d = I(""), g = P(() => {
7446
- let x = n.value;
7447
- return t.sort && x.sort(), x;
7448
- }), p = (x, $ = !0) => {
7440
+ const a = I(null), o = I(null), s = I(0), i = I(0), l = I(0), d = I(""), g = (x, $ = !0) => {
7449
7441
  if (e("click", x), a.value.isShowed() && $) {
7450
7442
  a.value.hide();
7451
7443
  return;
7452
7444
  }
7453
7445
  a.value.show(), e("open"), lt(() => {
7454
- const f = a.value.elementSize(), u = o.value.getBoundingClientRect(), m = window.innerHeight;
7455
- s.value = u.left, i.value = u.width, l.value = m - (u.y + u.height) < f.height ? u.top - f.height - 5 : u.height + u.top + 5, C(), (a.value?.itemsCount() === 0 || a.value?.itemsCount() === void 0) && a.value.hide();
7446
+ const f = a.value.elementSize(), u = o.value.getBoundingClientRect(), p = window.innerHeight;
7447
+ s.value = u.left, i.value = u.width, l.value = p - (u.y + u.height) < f.height ? u.top - f.height - 5 : u.height + u.top + 5, S(), (a.value?.itemsCount() === 0 || a.value?.itemsCount() === void 0) && a.value.hide();
7456
7448
  });
7457
- }, S = (x) => {
7458
- const $ = t.useIds ? x.model.id : x.model.title;
7459
- let f = -1;
7460
- for (let u = 0; u < n.value.length; u++)
7461
- n.value[u] === $ && (f = u);
7462
- f >= 0 ? n.value.splice(f, 1) : n.value.push($), e("select", x);
7463
- }, C = () => {
7449
+ }, m = (x) => {
7450
+ let $ = -1;
7451
+ for (let f = 0; f < n.value.length; f++)
7452
+ n.value[f] === x.model.id && ($ = f);
7453
+ $ >= 0 ? n.value.splice($, 1) : n.value.push(x.model.id), e("select", x);
7454
+ }, S = () => {
7464
7455
  a.value.unSelect();
7465
7456
  for (let x = 0; x < t.items.length; x++)
7466
- n.value.includes(t.items[x].title) && a.value.selectNode(t.items[x].id);
7467
- }, E = P(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), v = (x, $, f) => {
7468
- n.value.splice($, 1);
7457
+ n.value.includes(t.items[x].id) && a.value.selectNode(t.items[x].id);
7458
+ }, C = P(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), E = P(() => n.value.map((x) => {
7459
+ const $ = t.items.find((f) => f.id === x);
7460
+ return $ ? $.title : x;
7461
+ })), v = (x, $, f) => {
7462
+ const u = t.useIds ? t.items.find((p) => p.title === f)?.id : f;
7463
+ if (u) {
7464
+ const p = n.value.indexOf(u);
7465
+ p > -1 && n.value.splice(p, 1);
7466
+ }
7469
7467
  }, _ = () => {
7470
7468
  if (d.value) {
7471
7469
  const x = d.value.split(",");
7472
7470
  for (let $ = 0; $ < x.length; $++) {
7473
7471
  const f = x[$].toLowerCase().trim();
7474
7472
  let u = !1;
7475
- for (let m = 0; m < n.value.length; m++)
7476
- n.value[m] === f && (u = !0);
7473
+ for (let p = 0; p < n.value.length; p++)
7474
+ n.value[p] === f && (u = !0);
7477
7475
  u || n.value.push(f);
7478
7476
  }
7479
7477
  d.value = "";
@@ -7489,12 +7487,12 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7489
7487
  class: "d-input-select",
7490
7488
  ref_key: "buttonRef",
7491
7489
  ref: o,
7492
- onClick: De(p, ["stop", "prevent"])
7490
+ onClick: De(g, ["stop", "prevent"])
7493
7491
  }, [
7494
7492
  T("div", ud, [
7495
- (c(!0), b(pe, null, Ce(g.value, (f, u) => (c(), H(Q(fe), {
7493
+ (c(!0), b(pe, null, Ce(E.value, (f, u) => (c(), H(Q(fe), {
7496
7494
  key: u,
7497
- onClick: De((m) => v(m, u), ["stop"]),
7495
+ onClick: De((p) => v(p, u, f), ["stop"]),
7498
7496
  scale: "small"
7499
7497
  }, {
7500
7498
  default: X(() => [
@@ -7510,7 +7508,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7510
7508
  style: { "margin-bottom": "3px", "margin-top": "3px" },
7511
7509
  onKeyup: [
7512
7510
  Xr(_, ["enter"]),
7513
- $[1] || ($[1] = (f) => p(f, !1))
7511
+ $[1] || ($[1] = (f) => g(f, !1))
7514
7512
  ]
7515
7513
  }, {
7516
7514
  post: X(() => [
@@ -7527,9 +7525,9 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7527
7525
  ref: a,
7528
7526
  items: t.items,
7529
7527
  class: "dropdown-menu",
7530
- style: ue(E.value),
7528
+ style: ue(C.value),
7531
7529
  "no-select": !1,
7532
- onSelect: S,
7530
+ onSelect: m,
7533
7531
  "render-item-title": t.renderItemTitle,
7534
7532
  "before-item": t.beforeItem,
7535
7533
  "body-as-parent": t.bodyAsParent,
@@ -7540,7 +7538,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7540
7538
  ])
7541
7539
  ], 64));
7542
7540
  }
7543
- }, uh = /* @__PURE__ */ Se(cd, [["__scopeId", "data-v-1d371ab5"]]), dd = (r) => (jt("data-v-1460b3a5"), r = r(), Wt(), r), fd = {
7541
+ }, uh = /* @__PURE__ */ Se(cd, [["__scopeId", "data-v-94e1a740"]]), dd = (r) => (jt("data-v-1460b3a5"), r = r(), Wt(), r), fd = {
7544
7542
  key: 0,
7545
7543
  class: "d-label"
7546
7544
  }, pd = {
@@ -7591,7 +7589,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7591
7589
  }
7592
7590
  }), a = I(null), o = I(null), s = I(0), i = I(0), l = I(0), d = I("");
7593
7591
  let g = !0;
7594
- const p = (v, _ = !0) => {
7592
+ const m = (v, _ = !0) => {
7595
7593
  if (e("click", v), a.value.isShowed() && _) {
7596
7594
  a.value.hide();
7597
7595
  return;
@@ -7630,7 +7628,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7630
7628
  class: "d-input-select",
7631
7629
  ref_key: "buttonRef",
7632
7630
  ref: o,
7633
- onClick: De(p, ["stop", "prevent"])
7631
+ onClick: De(m, ["stop", "prevent"])
7634
7632
  }, [
7635
7633
  F(Q(et), {
7636
7634
  type: "hidden",
@@ -7641,7 +7639,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7641
7639
  modelValue: d.value,
7642
7640
  "onUpdate:modelValue": _[1] || (_[1] = (x) => d.value = x),
7643
7641
  style: { "margin-bottom": "3px", "margin-top": "3px" },
7644
- onKeyup: _[2] || (_[2] = (x) => p(x, !1)),
7642
+ onKeyup: _[2] || (_[2] = (x) => m(x, !1)),
7645
7643
  onInput: E
7646
7644
  }, {
7647
7645
  post: X(() => [
@@ -7769,7 +7767,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7769
7767
  },
7770
7768
  emits: ["action", "select", "unselect", "check", "uncheck", "loading-change", "error"],
7771
7769
  setup(r, { expose: e, emit: t }) {
7772
- const n = r, a = I([]), o = I(n.page), s = I(localStorage.getItem(`datagrid-perpage-${n.id}`) || n.perPage), i = I(s.value.toString()), l = I({}), d = I(!1), g = I(0), p = I(null), S = I(!1);
7770
+ const n = r, a = I([]), o = I(n.page), s = I(localStorage.getItem(`datagrid-perpage-${n.id}`) || n.perPage), i = I(s.value.toString()), l = I({}), d = I(!1), g = I(0), m = I(null), S = I(!1);
7773
7771
  B.mutations.addDataGrid(n.id), Be(() => {
7774
7772
  C(), setTimeout(() => {
7775
7773
  S.value = !0;
@@ -7781,7 +7779,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7781
7779
  Object.hasOwn(K, "search") && (K.search === "string" || K.search === "number" || Array.isArray(K.search)) && (l.value[K.key] = "");
7782
7780
  }
7783
7781
  }, E = async (V = !1) => {
7784
- V && (o.value = 1), d.value = !0, t("loading-change", !0), p.value = null;
7782
+ V && (o.value = 1), d.value = !0, t("loading-change", !0), m.value = null;
7785
7783
  try {
7786
7784
  const K = {
7787
7785
  page: o.value,
@@ -7799,7 +7797,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7799
7797
  else
7800
7798
  throw new Error("Некорректный формат ответа от fetchData");
7801
7799
  } catch (K) {
7802
- console.error("Ошибка при загрузке данных:", K), p.value = K.message, t("error", K), a.value = [], g.value = 0;
7800
+ console.error("Ошибка при загрузке данных:", K), m.value = K.message, t("error", K), a.value = [], g.value = 0;
7803
7801
  } finally {
7804
7802
  d.value = !1, t("loading-change", !1);
7805
7803
  }
@@ -7841,7 +7839,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7841
7839
  V.target.checked ? a.value.forEach((K) => {
7842
7840
  B.mutations.addSelect(n.id, K.id);
7843
7841
  }) : B.actions.unselectAll(n.id);
7844
- }, m = P(() => a.value.length === 0 ? !1 : a.value.every((V) => $(V.id))), y = (V) => {
7842
+ }, p = P(() => a.value.length === 0 ? !1 : a.value.every((V) => $(V.id))), y = (V) => {
7845
7843
  n.selectable === "one" && ($(V.id) ? (B.actions.unselectAll(n.id), t("unselect", V)) : (B.mutations.select(n.id, V.id), t("select", V)));
7846
7844
  }, D = (V) => {
7847
7845
  s.value = parseInt(i.value), localStorage.setItem(`datagrid-perpage-${n.id}`, i.value);
@@ -7867,8 +7865,8 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7867
7865
  loadData: E
7868
7866
  }), (V, K) => (c(), b("div", xd, [
7869
7867
  d.value ? (c(), b("div", kd, _d)) : L("", !0),
7870
- p.value ? (c(), b("div", Dd, [
7871
- se(" Ошибка: " + G(p.value) + " ", 1),
7868
+ m.value ? (c(), b("div", Dd, [
7869
+ se(" Ошибка: " + G(m.value) + " ", 1),
7872
7870
  T("button", {
7873
7871
  onClick: E,
7874
7872
  class: "d-retry-btn"
@@ -7880,7 +7878,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7880
7878
  T("tr", Td, [
7881
7879
  n.selectable === "check" ? (c(), b("th", Pd, [
7882
7880
  F(on, {
7883
- checked: m.value,
7881
+ checked: p.value,
7884
7882
  onChange: K[0] || (K[0] = (q) => u(q)),
7885
7883
  disabled: d.value
7886
7884
  }, null, 8, ["checked", "disabled"])
@@ -8466,9 +8464,9 @@ function Ft(r) {
8466
8464
  const n = t.width, a = n && r.matchPatterns[n] || r.matchPatterns[r.defaultMatchWidth], o = e.match(a);
8467
8465
  if (!o)
8468
8466
  return null;
8469
- const s = o[0], i = n && r.parsePatterns[n] || r.parsePatterns[r.defaultParseWidth], l = Array.isArray(i) ? Ef(i, (p) => p.test(s)) : (
8467
+ const s = o[0], i = n && r.parsePatterns[n] || r.parsePatterns[r.defaultParseWidth], l = Array.isArray(i) ? Ef(i, (m) => m.test(s)) : (
8470
8468
  // [TODO] -- I challenge you to fix the type
8471
- Lf(i, (p) => p.test(s))
8469
+ Lf(i, (m) => m.test(s))
8472
8470
  );
8473
8471
  let d;
8474
8472
  d = r.valueCallback ? r.valueCallback(l) : l, d = t.valueCallback ? (
@@ -9341,23 +9339,23 @@ function Je(r, e, t) {
9341
9339
  if (!lf(i))
9342
9340
  throw new RangeError("Invalid time value");
9343
9341
  let l = e.match(np).map((g) => {
9344
- const p = g[0];
9345
- if (p === "p" || p === "P") {
9346
- const S = An[p];
9342
+ const m = g[0];
9343
+ if (m === "p" || m === "P") {
9344
+ const S = An[m];
9347
9345
  return S(g, a.formatLong);
9348
9346
  }
9349
9347
  return g;
9350
9348
  }).join("").match(tp).map((g) => {
9351
9349
  if (g === "''")
9352
9350
  return { isToken: !1, value: "'" };
9353
- const p = g[0];
9354
- if (p === "'")
9351
+ const m = g[0];
9352
+ if (m === "'")
9355
9353
  return { isToken: !1, value: sp(g) };
9356
- if (Ar[p])
9354
+ if (Ar[m])
9357
9355
  return { isToken: !0, value: g };
9358
- if (p.match(op))
9356
+ if (m.match(op))
9359
9357
  throw new RangeError(
9360
- "Format string contains an unescaped latin alphabet character `" + p + "`"
9358
+ "Format string contains an unescaped latin alphabet character `" + m + "`"
9361
9359
  );
9362
9360
  return { isToken: !1, value: g };
9363
9361
  });
@@ -9369,10 +9367,10 @@ function Je(r, e, t) {
9369
9367
  };
9370
9368
  return l.map((g) => {
9371
9369
  if (!g.isToken) return g.value;
9372
- const p = g.value;
9373
- (!t?.useAdditionalWeekYearTokens && ba(p) || !t?.useAdditionalDayOfYearTokens && ya(p)) && Hn(p, e, String(r));
9374
- const S = Ar[p[0]];
9375
- return S(i, p, a.localize, d);
9370
+ const m = g.value;
9371
+ (!t?.useAdditionalWeekYearTokens && ba(m) || !t?.useAdditionalDayOfYearTokens && ya(m)) && Hn(m, e, String(r));
9372
+ const S = Ar[m[0]];
9373
+ return S(i, m, a.localize, d);
9376
9374
  }).join("");
9377
9375
  }
9378
9376
  function sp(r) {
@@ -10820,7 +10818,7 @@ function _a(r, e, t, n) {
10820
10818
  firstWeekContainsDate: i,
10821
10819
  weekStartsOn: l,
10822
10820
  locale: s
10823
- }, g = [new pp(n?.in, t)], p = e.match(Zp).map((_) => {
10821
+ }, g = [new pp(n?.in, t)], m = e.match(Zp).map((_) => {
10824
10822
  const x = _[0];
10825
10823
  if (x in An) {
10826
10824
  const $ = An[x];
@@ -10828,18 +10826,18 @@ function _a(r, e, t, n) {
10828
10826
  }
10829
10827
  return _;
10830
10828
  }).join("").match(Kp), S = [];
10831
- for (let _ of p) {
10829
+ for (let _ of m) {
10832
10830
  ba(_) && Hn(_, e, r), ya(_) && Hn(_, e, r);
10833
10831
  const x = _[0], $ = Qp[x];
10834
10832
  if ($) {
10835
10833
  const { incompatibleTokens: f } = $;
10836
10834
  if (Array.isArray(f)) {
10837
- const m = S.find(
10835
+ const p = S.find(
10838
10836
  (y) => f.includes(y.token) || y.token === x
10839
10837
  );
10840
- if (m)
10838
+ if (p)
10841
10839
  throw new RangeError(
10842
- `The format string mustn't contain \`${m.fullToken}\` and \`${_}\` at the same time`
10840
+ `The format string mustn't contain \`${p.fullToken}\` and \`${_}\` at the same time`
10843
10841
  );
10844
10842
  } else if ($.incompatibleTokens === "*" && S.length > 0)
10845
10843
  throw new RangeError(
@@ -11000,11 +10998,11 @@ const im = {
11000
10998
  return `${C} - ${E}`;
11001
10999
  }), g = (C, E) => {
11002
11000
  e("update:pageDate", E.value), e("yearClick");
11003
- }, p = () => e("update:pageDate", Da(t.pageDate, 10)), S = () => e("update:pageDate", ir(t.pageDate, 10));
11001
+ }, m = () => e("update:pageDate", Da(t.pageDate, 10)), S = () => e("update:pageDate", ir(t.pageDate, 10));
11004
11002
  return (C, E) => (c(), b(pe, null, [
11005
11003
  T("div", lm, [
11006
11004
  F(Qe, {
11007
- onClick: p,
11005
+ onClick: m,
11008
11006
  component: Q(hn),
11009
11007
  size: "20",
11010
11008
  style: { cursor: "pointer" },
@@ -11076,14 +11074,14 @@ const im = {
11076
11074
  () => (f) => Je(f, "LLLL", {
11077
11075
  locale: t.locale
11078
11076
  })
11079
- ), o = (f, u, m, y) => y?.dates?.some((D) => Tn(f, D)) || y?.predicate?.(f) ? !1 : !u && !m ? !0 : u && Yt(f, Nt(u)) ? !1 : !(m && Bt(f, uf(m))), s = P(
11077
+ ), o = (f, u, p, y) => y?.dates?.some((D) => Tn(f, D)) || y?.predicate?.(f) ? !1 : !u && !p ? !0 : u && Yt(f, Nt(u)) ? !1 : !(p && Bt(f, uf(p))), s = P(
11080
11078
  () => t.lowerLimit && (Rn(t.lowerLimit, t.pageDate) || Yt(t.pageDate, t.lowerLimit))
11081
11079
  ), i = P(
11082
11080
  () => t.upperLimit && (Rn(t.upperLimit, t.pageDate) || Bt(t.pageDate, t.upperLimit))
11083
11081
  ), l = P(() => fa(t.pageDate)), d = P(() => da(t.pageDate)), g = P(() => ({
11084
11082
  start: l.value,
11085
11083
  end: d.value
11086
- })), p = P(() => ({
11084
+ })), m = P(() => ({
11087
11085
  start: ut(l.value, {
11088
11086
  weekStartsOn: t.weekStartsOn
11089
11087
  }),
@@ -11092,27 +11090,27 @@ const im = {
11092
11090
  })
11093
11091
  })), S = P(() => {
11094
11092
  const f = t.weekStartsOn, u = n.value(t.weekdayFormat);
11095
- return Array.from(Array(7)).map((m, y) => (f + y) % 7).map(
11096
- (m) => yn(/* @__PURE__ */ new Date(), m, {
11093
+ return Array.from(Array(7)).map((p, y) => (f + y) % 7).map(
11094
+ (p) => yn(/* @__PURE__ */ new Date(), p, {
11097
11095
  weekStartsOn: t.weekStartsOn
11098
11096
  })
11099
11097
  ).map(u);
11100
11098
  }), C = P(() => {
11101
11099
  const f = /* @__PURE__ */ new Date(), u = n.value(t.format);
11102
- return cf(p.value).map(
11103
- (m) => ({
11104
- value: m,
11105
- display: u(m),
11100
+ return cf(m.value).map(
11101
+ (p) => ({
11102
+ value: p,
11103
+ display: u(p),
11106
11104
  //selected: !!props.selected && isSameDay(props.selected, value),
11107
- selected: !!t.pageDate && Tn(t.pageDate, m),
11108
- current: Tn(f, m),
11109
- disabled: !t.allowOutsideInterval && !am(m, g.value) || !o(
11110
- m,
11105
+ selected: !!t.pageDate && Tn(t.pageDate, p),
11106
+ current: Tn(f, p),
11107
+ disabled: !t.allowOutsideInterval && !am(p, g.value) || !o(
11108
+ p,
11111
11109
  t.lowerLimit,
11112
11110
  t.upperLimit,
11113
11111
  t.disabledDates
11114
11112
  ),
11115
- key: n.value("yyyy-MM-dd")(m)
11113
+ key: n.value("yyyy-MM-dd")(p)
11116
11114
  })
11117
11115
  );
11118
11116
  }), E = () => {
@@ -11148,21 +11146,21 @@ const im = {
11148
11146
  }, null, 8, ["component", "class"])
11149
11147
  ]),
11150
11148
  T("div", fm, [
11151
- (c(!0), b(pe, null, Ce(S.value, (m, y) => (c(), b("div", {
11149
+ (c(!0), b(pe, null, Ce(S.value, (p, y) => (c(), b("div", {
11152
11150
  class: "weekDay",
11153
- key: m
11151
+ key: p
11154
11152
  }, [
11155
11153
  T("div", {
11156
11154
  class: ae([[5, 6].includes(y) ? "weekend" : ""])
11157
- }, G(m), 3)
11155
+ }, G(p), 3)
11158
11156
  ]))), 128)),
11159
- (c(!0), b(pe, null, Ce(C.value, (m) => (c(), H(dr, {
11160
- key: m.key,
11161
- day: m.display,
11162
- disabled: m.disabled,
11163
- selected: m.selected,
11157
+ (c(!0), b(pe, null, Ce(C.value, (p) => (c(), H(dr, {
11158
+ key: p.key,
11159
+ day: p.display,
11160
+ disabled: p.disabled,
11161
+ selected: p.selected,
11164
11162
  wide: !0,
11165
- onSelect: (y) => _(y, m)
11163
+ onSelect: (y) => _(y, p)
11166
11164
  }, null, 8, ["day", "disabled", "selected", "onSelect"]))), 128))
11167
11165
  ])
11168
11166
  ], 64));
@@ -11213,7 +11211,7 @@ const im = {
11213
11211
  disabled: !s(v, t.lowerLimit, t.upperLimit)
11214
11212
  })
11215
11213
  )
11216
- ), g = P(() => rt(t.pageDate)), p = () => {
11214
+ ), g = P(() => rt(t.pageDate)), m = () => {
11217
11215
  e("yearClick");
11218
11216
  }, S = (v, _) => {
11219
11217
  e("update:pageDate", _.value), e("dayClick");
@@ -11229,7 +11227,7 @@ const im = {
11229
11227
  }, null, 8, ["component", "class"]),
11230
11228
  T("div", {
11231
11229
  style: { cursor: "pointer" },
11232
- onClick: p
11230
+ onClick: m
11233
11231
  }, G(g.value), 1),
11234
11232
  F(Qe, {
11235
11233
  onClick: E,
@@ -11290,7 +11288,7 @@ const im = {
11290
11288
  },
11291
11289
  emits: ["select", "monthPageChanged", "yearPageChanged", "decadePageChanged"],
11292
11290
  setup(r, { emit: e }) {
11293
- const t = r, n = I(t.initDate ? t.initDate : /* @__PURE__ */ new Date()), a = I(t.mode), o = (p, S) => {
11291
+ const t = r, n = I(t.initDate ? t.initDate : /* @__PURE__ */ new Date()), a = I(t.mode), o = (m, S) => {
11294
11292
  n.value = S, e("monthPageChanged", S);
11295
11293
  }, s = () => {
11296
11294
  a.value = "day";
@@ -11300,10 +11298,10 @@ const im = {
11300
11298
  a.value = "year";
11301
11299
  }, d = P(() => Je(n.value, t.inputFormat, {
11302
11300
  locale: t.locale
11303
- })), g = (p) => {
11304
- e("select", p);
11301
+ })), g = (m) => {
11302
+ e("select", m);
11305
11303
  };
11306
- return (p, S) => (c(), b("div", null, [
11304
+ return (m, S) => (c(), b("div", null, [
11307
11305
  a.value === "day" ? (c(), H(Gt, {
11308
11306
  key: 0,
11309
11307
  "page-date": n.value,
@@ -11401,7 +11399,7 @@ const im = {
11401
11399
  s.value = x, e("monthPageChanged", x);
11402
11400
  }, g = () => {
11403
11401
  i.value = "day";
11404
- }, p = () => {
11402
+ }, m = () => {
11405
11403
  i.value = "month";
11406
11404
  }, S = () => {
11407
11405
  i.value = "year";
@@ -11447,7 +11445,7 @@ const im = {
11447
11445
  "lower-limit": t.lowerLimit,
11448
11446
  "upper-limit": t.upperLimit,
11449
11447
  "onUpdate:pageDate": x[1] || (x[1] = ($) => d("day", $)),
11450
- onMonthClick: p,
11448
+ onMonthClick: m,
11451
11449
  onYearClick: S,
11452
11450
  onSelect: E
11453
11451
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
@@ -11468,7 +11466,7 @@ const im = {
11468
11466
  "lower-limit": t.lowerLimit,
11469
11467
  "upper-limit": t.upperLimit,
11470
11468
  "onUpdate:pageDate": x[3] || (x[3] = ($) => d("day", $)),
11471
- onYearClick: p
11469
+ onYearClick: m
11472
11470
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11473
11471
  r.showCurrentDate ? (c(), b("div", bm, G(C.value), 1)) : L("", !0)
11474
11472
  ]),
@@ -11557,7 +11555,7 @@ const im = {
11557
11555
  s.value = "day";
11558
11556
  }, g = () => {
11559
11557
  s.value = "month";
11560
- }, p = () => {
11558
+ }, m = () => {
11561
11559
  s.value = "year";
11562
11560
  }, S = P(() => Je(o.value, n.inputFormat, {
11563
11561
  locale: n.locale
@@ -11589,7 +11587,7 @@ const im = {
11589
11587
  "upper-limit": n.upperLimit,
11590
11588
  "onUpdate:pageDate": $[0] || ($[0] = (f) => l("day", f)),
11591
11589
  onMonthClick: g,
11592
- onYearClick: p,
11590
+ onYearClick: m,
11593
11591
  onSelect: C
11594
11592
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11595
11593
  s.value === "month" ? (c(), H(Qt, {
@@ -11600,7 +11598,7 @@ const im = {
11600
11598
  "upper-limit": n.upperLimit,
11601
11599
  "onUpdate:pageDate": $[1] || ($[1] = (f) => l("day", f)),
11602
11600
  onDayClick: d,
11603
- onYearClick: p
11601
+ onYearClick: m
11604
11602
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11605
11603
  s.value === "year" ? (c(), H(Xt, {
11606
11604
  key: 2,
@@ -11750,15 +11748,15 @@ const im = {
11750
11748
  if (a.value) {
11751
11749
  const u = a.value.split(" ");
11752
11750
  i.value = _a(u[0], t.inputFormat, /* @__PURE__ */ new Date());
11753
- const m = u[1].split(":");
11754
- s.value.h = m[0], s.value.m = m[1];
11751
+ const p = u[1].split(":");
11752
+ s.value.h = p[0], s.value.m = p[1];
11755
11753
  }
11756
11754
  };
11757
11755
  d();
11758
11756
  const g = () => {
11759
11757
  l.value = t.mode, d(), o.value.show();
11760
- }, p = (u, m) => {
11761
- i.value = m, e("monthPageChanged", m);
11758
+ }, m = (u, p) => {
11759
+ i.value = p, e("monthPageChanged", p);
11762
11760
  }, S = () => {
11763
11761
  l.value = "day";
11764
11762
  }, C = () => {
@@ -11778,11 +11776,11 @@ const im = {
11778
11776
  }, f = () => {
11779
11777
  s.value.h = parseInt(s.value.h) < 10 ? `0${parseInt(s.value.h)}` : s.value.h;
11780
11778
  };
11781
- return (u, m) => (c(), b("div", null, [
11779
+ return (u, p) => (c(), b("div", null, [
11782
11780
  F(et, {
11783
11781
  label: t.label,
11784
11782
  modelValue: a.value,
11785
- "onUpdate:modelValue": m[0] || (m[0] = (y) => a.value = y),
11783
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => a.value = y),
11786
11784
  onClick: g,
11787
11785
  readonly: t.readOnly
11788
11786
  }, Qr({ _: 2 }, [
@@ -11810,7 +11808,7 @@ const im = {
11810
11808
  locale: t.locale,
11811
11809
  "lower-limit": t.lowerLimit,
11812
11810
  "upper-limit": t.upperLimit,
11813
- "onUpdate:pageDate": m[1] || (m[1] = (y) => p("day", y)),
11811
+ "onUpdate:pageDate": p[1] || (p[1] = (y) => m("day", y)),
11814
11812
  onMonthClick: C,
11815
11813
  onYearClick: E,
11816
11814
  onSelect: _
@@ -11821,7 +11819,7 @@ const im = {
11821
11819
  locale: t.locale,
11822
11820
  "lower-limit": t.lowerLimit,
11823
11821
  "upper-limit": t.upperLimit,
11824
- "onUpdate:pageDate": m[2] || (m[2] = (y) => p("day", y)),
11822
+ "onUpdate:pageDate": p[2] || (p[2] = (y) => m("day", y)),
11825
11823
  onDayClick: S,
11826
11824
  onYearClick: E
11827
11825
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
@@ -11831,7 +11829,7 @@ const im = {
11831
11829
  locale: t.locale,
11832
11830
  "lower-limit": t.lowerLimit,
11833
11831
  "upper-limit": t.upperLimit,
11834
- "onUpdate:pageDate": m[3] || (m[3] = (y) => p("day", y)),
11832
+ "onUpdate:pageDate": p[3] || (p[3] = (y) => m("day", y)),
11835
11833
  onYearClick: C
11836
11834
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11837
11835
  r.showCurrentDate ? (c(), b("div", Cm, G(v.value), 1)) : L("", !0),
@@ -11842,7 +11840,7 @@ const im = {
11842
11840
  min: 0,
11843
11841
  max: 23,
11844
11842
  modelValue: s.value.h,
11845
- "onUpdate:modelValue": m[4] || (m[4] = (y) => s.value.h = y),
11843
+ "onUpdate:modelValue": p[4] || (p[4] = (y) => s.value.h = y),
11846
11844
  style: { width: "50px" },
11847
11845
  "max-length": 2,
11848
11846
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -11853,7 +11851,7 @@ const im = {
11853
11851
  min: 0,
11854
11852
  max: 59,
11855
11853
  modelValue: s.value.m,
11856
- "onUpdate:modelValue": m[5] || (m[5] = (y) => s.value.m = y),
11854
+ "onUpdate:modelValue": p[5] || (p[5] = (y) => s.value.m = y),
11857
11855
  style: { width: "50px" },
11858
11856
  "max-length": 2,
11859
11857
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -11872,7 +11870,7 @@ const im = {
11872
11870
  _: 1
11873
11871
  }),
11874
11872
  F(fe, {
11875
- onClick: m[6] || (m[6] = (y) => o.value.hide())
11873
+ onClick: p[6] || (p[6] = (y) => o.value.hide())
11876
11874
  }, {
11877
11875
  default: X(() => [
11878
11876
  se(G(t.close), 1)
@@ -11949,9 +11947,9 @@ const im = {
11949
11947
  (() => {
11950
11948
  n.initDate && (s.value = n.initDate, o.value.h = `${s.value.getHours()}`, o.value.m = `${s.value.getMinutes()}`, d(), l());
11951
11949
  })();
11952
- const p = () => {
11950
+ const m = () => {
11953
11951
  i.value = n.mode, a.value.show();
11954
- }, S = (m, y) => {
11952
+ }, S = (p, y) => {
11955
11953
  s.value = y, t("monthPageChanged", y);
11956
11954
  }, C = () => {
11957
11955
  i.value = "day";
@@ -11961,16 +11959,16 @@ const im = {
11961
11959
  i.value = "year";
11962
11960
  }, _ = P(() => Je(s.value, n.inputFormat, {
11963
11961
  locale: n.locale
11964
- })), x = (m) => {
11965
- t("select", m);
11962
+ })), x = (p) => {
11963
+ t("select", p);
11966
11964
  }, $ = () => {
11967
11965
  s.value.setHours(parseInt(o.value.h)), s.value.setMinutes(parseInt(o.value.m)), t("apply", Je(s.value, n.inputFormat, { locale: n.locale })), a.value.hide();
11968
11966
  };
11969
11967
  return e({ show: () => {
11970
- p();
11971
- }, setDate: (m) => {
11972
- s.value = m;
11973
- } }), (m, y) => (c(), b("div", null, [
11968
+ m();
11969
+ }, setDate: (p) => {
11970
+ s.value = p;
11971
+ } }), (p, y) => (c(), b("div", null, [
11974
11972
  F(dt, {
11975
11973
  ref_key: "modalRef",
11976
11974
  ref: a,
@@ -12166,8 +12164,8 @@ const Sh = {
12166
12164
  // NOTE: When adding props here, update `index.d.ts` as well!!
12167
12165
  }, e);
12168
12166
  function n(f) {
12169
- var u = this.$$touchObj, m = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0, D = this;
12170
- m && (u.lastTouchStartTime = f.timeStamp), !(y && u.lastTouchStartTime && f.timeStamp - u.lastTouchStartTime < 350) && (u.touchStarted || (C(this), u.touchStarted = !0, u.touchMoved = !1, u.swipeOutBounded = !1, u.isZooming = !1, u.startX = Yr(f), u.startY = jr(f), u.currentX = 0, u.currentY = 0, u.touchStartTime = f.timeStamp, u.hasSwipe = p(u, "swipe") || p(u, "swipe.left") || p(u, "swipe.right") || p(u, "swipe.top") || p(u, "swipe.bottom"), u.hasZoom = p(u, "zoom") || p(u, "zoom.in") || p(u, "zoom.out"), p(u, "hold") && (u.touchHoldTimer = setTimeout(function() {
12167
+ var u = this.$$touchObj, p = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0, D = this;
12168
+ p && (u.lastTouchStartTime = f.timeStamp), !(y && u.lastTouchStartTime && f.timeStamp - u.lastTouchStartTime < 350) && (u.touchStarted || (C(this), u.touchStarted = !0, u.touchMoved = !1, u.swipeOutBounded = !1, u.isZooming = !1, u.startX = Yr(f), u.startY = jr(f), u.currentX = 0, u.currentY = 0, u.touchStartTime = f.timeStamp, u.hasSwipe = m(u, "swipe") || m(u, "swipe.left") || m(u, "swipe.right") || m(u, "swipe.top") || m(u, "swipe.bottom"), u.hasZoom = m(u, "zoom") || m(u, "zoom.in") || m(u, "zoom.out"), m(u, "hold") && (u.touchHoldTimer = setTimeout(function() {
12171
12169
  u.touchHoldTimer = null, S(f, D, "hold");
12172
12170
  }, u.options.touchHoldTolerance)), S(f, this, "press")));
12173
12171
  }
@@ -12175,16 +12173,16 @@ const Sh = {
12175
12173
  var u = this.$$touchObj;
12176
12174
  if (u.touchStarted == !0)
12177
12175
  o(f, u, !1);
12178
- else if (p(u, "rollover") && f.clientX != null) {
12179
- var m = f;
12176
+ else if (m(u, "rollover") && f.clientX != null) {
12177
+ var p = f;
12180
12178
  const y = u.element.getBoundingClientRect();
12181
- m.clientX >= y.left && m.clientX <= y.right && m.clientY >= y.top && m.clientY <= y.bottom && o(f, u, !0);
12179
+ p.clientX >= y.left && p.clientX <= y.right && p.clientY >= y.top && p.clientY <= y.bottom && o(f, u, !0);
12182
12180
  }
12183
12181
  }
12184
- function o(f, u = null, m = !1) {
12182
+ function o(f, u = null, p = !1) {
12185
12183
  u == null && (u = this.$$touchObj);
12186
12184
  var y = Yr(f), D = jr(f), R = u.currentX != y || u.currentY != D;
12187
- if (u.currentX = y, u.currentY = D, !m)
12185
+ if (u.currentX = y, u.currentY = D, !p)
12188
12186
  if (u.touchMoved) {
12189
12187
  if (u.hasSwipe && !u.swipeOutBounded) {
12190
12188
  var ne = u.options.swipeTolerance;
@@ -12194,12 +12192,12 @@ const Sh = {
12194
12192
  var Z = u.options.tapTolerance;
12195
12193
  u.touchMoved = Math.abs(u.startX - u.currentX) > Z || Math.abs(u.startY - u.currentY) > Z, u.touchMoved && (v(u), S(f, u.element, "drag.once"));
12196
12194
  }
12197
- if (R && p(u, "rollover")) {
12195
+ if (R && m(u, "rollover")) {
12198
12196
  var W = f.timeStamp;
12199
12197
  (u.touchRollTime == null || W > u.touchRollTime + u.options.rollOverFrequency) && (u.touchRollTime = W, S(f, u.element, "rollover"));
12200
12198
  }
12201
- if (!m) {
12202
- if (u.touchStarted && u.touchMoved && R && p(u, "drag")) {
12199
+ if (!p) {
12200
+ if (u.touchStarted && u.touchMoved && R && m(u, "drag")) {
12203
12201
  var W = f.timeStamp;
12204
12202
  (u.touchDragTime == null || W > u.touchDragTime + u.options.dragFrequency) && (u.touchDragTime = W, S(f, u.element, "drag"));
12205
12203
  }
@@ -12210,14 +12208,14 @@ const Sh = {
12210
12208
  }
12211
12209
  }
12212
12210
  function s(f, u) {
12213
- const m = u.changedTouches;
12214
- if (m.length !== 2) {
12211
+ const p = u.changedTouches;
12212
+ if (p.length !== 2) {
12215
12213
  f.isZooming = !1;
12216
12214
  return;
12217
12215
  }
12218
12216
  const y = Math.sqrt(
12219
- Math.pow(m[0].clientX - m[1].clientX, 2) + // horizontal distance
12220
- Math.pow(m[0].clientY - m[1].clientY, 2)
12217
+ Math.pow(p[0].clientX - p[1].clientX, 2) + // horizontal distance
12218
+ Math.pow(p[0].clientY - p[1].clientY, 2)
12221
12219
  // vertical distance
12222
12220
  );
12223
12221
  if (!f.isZooming) {
@@ -12225,7 +12223,7 @@ const Sh = {
12225
12223
  return;
12226
12224
  }
12227
12225
  const D = y / f.initialZoomDistance;
12228
- p(f, "zoom") && Math.abs(D - 1) > f.options.zoomDistance / f.initialZoomDistance && S(u, f.element, "zoom", D), (p(f, "zoom.in") || p(f, "zoom.out")) && Math.abs(y - f.initialZoomDistance) > f.options.zoomInOutDistance && (y > f.initialZoomDistance ? S(u, f.element, "zoom.in") : S(u, f.element, "zoom.out")), f.isZooming = !1;
12226
+ m(f, "zoom") && Math.abs(D - 1) > f.options.zoomDistance / f.initialZoomDistance && S(u, f.element, "zoom", D), (m(f, "zoom.in") || m(f, "zoom.out")) && Math.abs(y - f.initialZoomDistance) > f.options.zoomInOutDistance && (y > f.initialZoomDistance ? S(u, f.element, "zoom.in") : S(u, f.element, "zoom.out")), f.isZooming = !1;
12229
12227
  }
12230
12228
  function i() {
12231
12229
  var f = this.$$touchObj;
@@ -12234,19 +12232,19 @@ const Sh = {
12234
12232
  function l(f) {
12235
12233
  var u = this.$$touchObj;
12236
12234
  if (u.touchStarted == !0) {
12237
- var m = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0;
12238
- m && (u.lastTouchEndTime = f.timeStamp);
12239
- var D = m && !u.touchHoldTimer;
12235
+ var p = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0;
12236
+ p && (u.lastTouchEndTime = f.timeStamp);
12237
+ var D = p && !u.touchHoldTimer;
12240
12238
  if (v(u), u.touchStarted = !1, E(this), y && u.lastTouchEndTime && f.timeStamp - u.lastTouchEndTime < 350)
12241
12239
  return;
12242
12240
  if (S(f, this, "release"), u.touchMoved) {
12243
12241
  if (u.hasSwipe && !u.swipeOutBounded) {
12244
12242
  var R = u.options.swipeTolerance, Z, ne = Math.abs(u.startY - u.currentY), W = Math.abs(u.startX - u.currentX);
12245
- (ne > R || W > R) && (W > R ? Z = u.startX > u.currentX ? "left" : "right" : Z = u.startY > u.currentY ? "top" : "bottom", p(u, "swipe." + Z) ? S(f, this, "swipe." + Z, Z) : S(f, this, "swipe", Z));
12243
+ (ne > R || W > R) && (W > R ? Z = u.startX > u.currentX ? "left" : "right" : Z = u.startY > u.currentY ? "top" : "bottom", m(u, "swipe." + Z) ? S(f, this, "swipe." + Z, Z) : S(f, this, "swipe", Z));
12246
12244
  }
12247
- } else if (p(u, "longtap") && f.timeStamp - u.touchStartTime > u.options.longTapTimeInterval)
12245
+ } else if (m(u, "longtap") && f.timeStamp - u.touchStartTime > u.options.longTapTimeInterval)
12248
12246
  f.cancelable && f.preventDefault(), S(f, this, "longtap");
12249
- else if (p(u, "hold") && D) {
12247
+ else if (m(u, "hold") && D) {
12250
12248
  f.cancelable && f.preventDefault();
12251
12249
  return;
12252
12250
  } else
@@ -12259,12 +12257,12 @@ const Sh = {
12259
12257
  function g() {
12260
12258
  E(this);
12261
12259
  }
12262
- function p(f, u) {
12263
- var m = f.callbacks[u];
12264
- return m != null && m.length > 0;
12260
+ function m(f, u) {
12261
+ var p = f.callbacks[u];
12262
+ return p != null && p.length > 0;
12265
12263
  }
12266
- function S(f, u, m, y) {
12267
- var D = u.$$touchObj, R = D.callbacks[m];
12264
+ function S(f, u, p, y) {
12265
+ var D = u.$$touchObj, R = D.callbacks[p];
12268
12266
  if (R == null || R.length === 0)
12269
12267
  return null;
12270
12268
  for (var Z = 0; Z < R.length; Z++) {
@@ -12284,7 +12282,7 @@ const Sh = {
12284
12282
  f && f.touchHoldTimer && (clearTimeout(f.touchHoldTimer), f.touchHoldTimer = null);
12285
12283
  }
12286
12284
  function _(f, u) {
12287
- var m = f.$$touchObj || {
12285
+ var p = f.$$touchObj || {
12288
12286
  element: f,
12289
12287
  // an object contains all callbacks registered,
12290
12288
  // key is event name, value is an array
@@ -12295,25 +12293,25 @@ const Sh = {
12295
12293
  options: t,
12296
12294
  events: {}
12297
12295
  };
12298
- return u && (m.options = Object.assign({}, m.options, u)), f.$$touchObj = m, f.$$touchObj;
12296
+ return u && (p.options = Object.assign({}, p.options, u)), f.$$touchObj = p, f.$$touchObj;
12299
12297
  }
12300
12298
  function x(f) {
12301
12299
  for (const u in f)
12302
12300
  if (f.hasOwnProperty(u)) {
12303
- const [m, y] = f[u];
12304
- m.addEventListener(u, y);
12301
+ const [p, y] = f[u];
12302
+ p.addEventListener(u, y);
12305
12303
  }
12306
12304
  }
12307
12305
  function $(f) {
12308
12306
  for (const u in f)
12309
12307
  if (f.hasOwnProperty(u)) {
12310
- const [m, y] = f[u];
12311
- m.removeEventListener(u, y);
12308
+ const [p, y] = f[u];
12309
+ p.removeEventListener(u, y);
12312
12310
  }
12313
12311
  }
12314
12312
  r.directive(t.namespace, {
12315
12313
  beforeMount: function(f, u) {
12316
- var m = _(f), y = u.arg || "tap";
12314
+ var p = _(f), y = u.arg || "tap";
12317
12315
  switch (y) {
12318
12316
  case "swipe":
12319
12317
  var D = u.modifiers;
@@ -12321,18 +12319,18 @@ const Sh = {
12321
12319
  for (var R in u.modifiers)
12322
12320
  if (["left", "right", "top", "bottom"].indexOf(R) >= 0) {
12323
12321
  var Z = "swipe." + R;
12324
- m.callbacks[Z] = m.callbacks[Z] || [], m.callbacks[Z].push(u);
12322
+ p.callbacks[Z] = p.callbacks[Z] || [], p.callbacks[Z].push(u);
12325
12323
  }
12326
12324
  } else
12327
- m.callbacks.swipe = m.callbacks.swipe || [], m.callbacks.swipe.push(u);
12325
+ p.callbacks.swipe = p.callbacks.swipe || [], p.callbacks.swipe.push(u);
12328
12326
  break;
12329
12327
  case "press":
12330
12328
  case "drag":
12331
12329
  u.modifiers.disablePassive;
12332
12330
  default:
12333
- m.callbacks[y] = m.callbacks[y] || [], m.callbacks[y].push(u);
12331
+ p.callbacks[y] = p.callbacks[y] || [], p.callbacks[y].push(u);
12334
12332
  }
12335
- m.hasBindTouchEvents || (m.options.dragOutside ? (m.events.touchstart = [f, n], m.events.touchmove = [window, a.bind(f)], m.events.touchcancel = [window, i.bind(f)], m.events.touchend = [window, l.bind(f)]) : (m.events.touchstart = [f, n], m.events.touchmove = [f, a], m.events.touchcancel = [f, i], m.events.touchend = [f, l]), m.options.disableClick || (m.options.dragOutside ? (m.events.mousedown = [f, n], m.events.mousemove = [window, a.bind(f)], m.events.mouseup = [window, l.bind(f)], m.events.mouseenter = [f, d], m.events.mouseleave = [f, g]) : (m.events.mousedown = [f, n], m.events.mousemove = [f, o], m.events.mouseup = [f, l], m.events.mouseenter = [f, d], m.events.mouseleave = [f, g])), x(m.events), m.hasBindTouchEvents = !0);
12333
+ p.hasBindTouchEvents || (p.options.dragOutside ? (p.events.touchstart = [f, n], p.events.touchmove = [window, a.bind(f)], p.events.touchcancel = [window, i.bind(f)], p.events.touchend = [window, l.bind(f)]) : (p.events.touchstart = [f, n], p.events.touchmove = [f, a], p.events.touchcancel = [f, i], p.events.touchend = [f, l]), p.options.disableClick || (p.options.dragOutside ? (p.events.mousedown = [f, n], p.events.mousemove = [window, a.bind(f)], p.events.mouseup = [window, l.bind(f)], p.events.mouseenter = [f, d], p.events.mouseleave = [f, g]) : (p.events.mousedown = [f, n], p.events.mousemove = [f, o], p.events.mouseup = [f, l], p.events.mouseenter = [f, d], p.events.mouseleave = [f, g])), x(p.events), p.hasBindTouchEvents = !0);
12336
12334
  },
12337
12335
  unmounted: function(f) {
12338
12336
  var u = f.$$touchObj;