doph-js 0.4.47 → 0.4.48

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
@@ -121,17 +121,17 @@ const Se = (r, e) => {
121
121
  },
122
122
  emits: ["click", "contextmenu"],
123
123
  setup(r, { expose: e, emit: t }) {
124
- const n = r, a = ct(), o = I(null), s = T(() => n.icon ? Ke.getters.getIcon(n.icon) : null), i = (g) => {
125
- t("click", g);
126
- }, l = (g) => {
127
- t("contextmenu", g);
128
- }, d = T(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), v = T(() => n.disabled ? "disabled" : ""), h = (g) => !!a[g], _ = T(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = T(() => {
129
- const g = n.outline ? "-outline" : "";
130
- return n.type === "primary" ? `button${g}-blue` : n.type === "success" ? `button${g}-green` : n.type === "error" ? `button${g}-red` : n.type === "warning" ? `button${g}-orange` : n.type === "wait" ? `button${g}-violet` : n.outline ? `button${g}` : "";
124
+ const n = r, a = ct(), o = I(null), s = T(() => n.icon ? Ke.getters.getIcon(n.icon) : null), i = (y) => {
125
+ t("click", y);
126
+ }, l = (y) => {
127
+ t("contextmenu", y);
128
+ }, d = T(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), v = T(() => n.disabled ? "disabled" : ""), h = (y) => !!a[y], D = T(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = T(() => {
129
+ const y = n.outline ? "-outline" : "";
130
+ return n.type === "primary" ? `button${y}-blue` : n.type === "success" ? `button${y}-green` : n.type === "error" ? `button${y}-red` : n.type === "warning" ? `button${y}-orange` : n.type === "wait" ? `button${y}-violet` : n.outline ? `button${y}` : "";
131
131
  });
132
132
  return e({
133
133
  elementSize: () => Kr(o)
134
- }), (g, S) => (c(), b(pe, null, [
134
+ }), (y, k) => (c(), b(pe, null, [
135
135
  s.value ? L("", !0) : (c(), b("div", {
136
136
  key: 0,
137
137
  title: n.title,
@@ -142,7 +142,7 @@ const Se = (r, e) => {
142
142
  class: ae(["button", [n.class, d.value, C.value, v.value].join(" ")]),
143
143
  style: ue(n.style)
144
144
  }, [
145
- le(g.$slots, "default", {}, void 0, !0),
145
+ le(y.$slots, "default", {}, void 0, !0),
146
146
  n.loading ? (c(), b("svg", ja, qa)) : L("", !0)
147
147
  ], 46, Ya)),
148
148
  s.value ? (c(), b("div", {
@@ -152,7 +152,7 @@ const Se = (r, e) => {
152
152
  ref: o,
153
153
  onClick: i,
154
154
  onContextmenu: l,
155
- class: ae(["button button-ext", [n.class, d.value, _.value, C.value, v.value].join(" ")]),
155
+ class: ae(["button button-ext", [n.class, d.value, D.value, C.value, v.value].join(" ")]),
156
156
  style: ue(n.style)
157
157
  }, [
158
158
  n.icon ? (c(), F(Ae(Qe), {
@@ -161,7 +161,7 @@ const Se = (r, e) => {
161
161
  color: "inherit"
162
162
  }, null, 8, ["component"])) : L("", !0),
163
163
  Q(a).default ? (c(), b("div", Xa, [
164
- le(g.$slots, "default", {}, void 0, !0)
164
+ le(y.$slots, "default", {}, void 0, !0)
165
165
  ])) : L("", !0),
166
166
  n.loading ? (c(), b("svg", Ga, Ka)) : L("", !0)
167
167
  ], 46, Ua)) : L("", !0)
@@ -365,8 +365,8 @@ const Se = (r, e) => {
365
365
  l.style.width = v, l.style.position = "absolute", l.style.visibility = "hidden", l.style.height = "";
366
366
  let { height: h } = getComputedStyle(l);
367
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 : h;
368
- }, a = (l, d, v, h, _) => {
369
- const C = l.animate(h, _);
368
+ }, a = (l, d, v, h, D) => {
369
+ const C = l.animate(h, D);
370
370
  l.style.height = d.height, C.onfinish = () => {
371
371
  l.style.overflow = d.overflow, v();
372
372
  };
@@ -392,12 +392,12 @@ const Se = (r, e) => {
392
392
  marginBottom: d.marginBottom
393
393
  }
394
394
  ], s = (l, d) => {
395
- const v = l, h = t(v), _ = n(v, h), C = o(_, h), E = { duration: e.duration, easing: e.easingEnter };
395
+ const v = l, h = t(v), D = n(v, h), C = o(D, h), E = { duration: e.duration, easing: e.easingEnter };
396
396
  a(v, h, d, C, E);
397
397
  }, i = (l, d) => {
398
- const v = l, h = t(v), { height: _ } = getComputedStyle(v);
399
- v.style.height = _, v.style.overflow = "hidden";
400
- const C = o(_, h).reverse(), E = { duration: e.duration, easing: e.easingLeave };
398
+ const v = l, h = t(v), { height: D } = getComputedStyle(v);
399
+ v.style.height = D, v.style.overflow = "hidden";
400
+ const C = o(D, h).reverse(), E = { duration: e.duration, easing: e.easingLeave };
401
401
  a(v, h, d, C, E);
402
402
  };
403
403
  return (l, d) => (c(), F(Bn, {
@@ -500,61 +500,61 @@ const Se = (r, e) => {
500
500
  },
501
501
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext", "nodedoubleclick", "nodefoldericonclick"],
502
502
  setup(r, { emit: e }) {
503
- const t = r, n = I(null), a = I(!1), o = I(!1), s = I(!1), i = T(() => t.model.children && t.model.children.length), l = T(() => (te.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), d = (y) => {
504
- if (y.stopPropagation(), y.target.tagName !== "A") {
505
- if (y.target.closest(".icon") && !y.target.closest('[class*="tree-open"]')) {
506
- y.stopPropagation();
503
+ const t = r, n = I(null), a = I(!1), o = I(!1), s = I(!1), i = T(() => t.model.children && t.model.children.length), l = T(() => (te.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), d = (g) => {
504
+ if (g.stopPropagation(), g.target.tagName !== "A") {
505
+ if (g.target.closest(".icon") && !g.target.closest('[class*="tree-open"]')) {
506
+ g.stopPropagation();
507
507
  return;
508
508
  }
509
- y.target.closest(".badge-sm") || e("nodeclick", { event: y, model: t.model });
509
+ g.target.closest(".badge-sm") || e("nodeclick", { event: g, model: t.model });
510
510
  }
511
- }, v = (y) => {
512
- e("nodefoldericonclick", { event: y.event, model: y.model });
513
- }, h = (y) => {
514
- e("nodeclick", y);
515
- }, _ = (y) => {
516
- e("nodedoubleclick", y);
517
- }, C = (y) => {
518
- e("nodedrop", y);
519
- }, E = (y) => {
520
- e("nodecontext", y);
521
- }, g = T(() => [
511
+ }, v = (g) => {
512
+ e("nodefoldericonclick", { event: g.event, model: g.model });
513
+ }, h = (g) => {
514
+ e("nodeclick", g);
515
+ }, D = (g) => {
516
+ e("nodedoubleclick", g);
517
+ }, C = (g) => {
518
+ e("nodedrop", g);
519
+ }, E = (g) => {
520
+ e("nodecontext", g);
521
+ }, y = T(() => [
522
522
  te.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "",
523
523
  a.value ? "node-over " : "",
524
524
  o.value ? "node-top " : "",
525
525
  s.value ? "node-bottom " : ""
526
- ]), S = T(() => t.search ? !1 : t.model.draggable === !0), x = (y) => {
527
- let D = an.data;
528
- if (D === void 0 || D.model === void 0)
526
+ ]), k = T(() => t.search ? !1 : t.model.draggable === !0), x = (g) => {
527
+ let S = an.data;
528
+ if (S === void 0 || S.model === void 0)
529
529
  return a.value = !1, !1;
530
- if (D.model.id === t.model.id || te.actions.isChildOfParent(t.treeId, t.items, t.model.id, D.model.id) || te.actions.isParentOfChild(t.treeId, t.items, D.model.id, t.model.id))
530
+ if (S.model.id === t.model.id || te.actions.isChildOfParent(t.treeId, t.items, t.model.id, S.model.id) || te.actions.isParentOfChild(t.treeId, t.items, S.model.id, t.model.id))
531
531
  return a.value = !1, o.value = !1, s.value = !1, !1;
532
- if (!te.state.trees[t.treeId].transfer && D.id !== t.treeId || !te.state.trees[t.treeId].dropInside && !s.value && !o.value || D.id === t.treeId && !t.model.droppable)
532
+ if (!te.state.trees[t.treeId].transfer && S.id !== t.treeId || !te.state.trees[t.treeId].dropInside && !s.value && !o.value || S.id === t.treeId && !t.model.droppable)
533
533
  return !1;
534
- let N = "";
535
- o.value ? N = "before" : s.value ? N = "after" : N = "inside", e("nodedrop", { e: y, model: t.model, place: N }), te.actions.moveTreeNode(D.id, t.treeId, t.items, D.model.id, t.model.id, N, D.model?.transfer), a.value = !1, o.value = !1, s.value = !1;
536
- }, $ = (y) => {
537
- e("nodedragover", { e: y, model: t.model });
538
- let D = an.data;
534
+ let R = "";
535
+ o.value ? R = "before" : s.value ? R = "after" : R = "inside", e("nodedrop", { e: g, model: t.model, place: R }), te.actions.moveTreeNode(S.id, t.treeId, t.items, S.model.id, t.model.id, R, S.model?.transfer), a.value = !1, o.value = !1, s.value = !1;
536
+ }, $ = (g) => {
537
+ e("nodedragover", { e: g, model: t.model });
538
+ let S = an.data;
539
539
  if (!t.model.droppable)
540
540
  return !1;
541
- if (D === void 0 || D.model === void 0)
541
+ if (S === void 0 || S.model === void 0)
542
542
  return a.value = !0, !1;
543
- if (D.model.id === t.model.id || te.actions.isChildOfParent(t.treeId, t.items, t.model.id, D.model.id) || te.actions.isParentOfChild(t.treeId, t.items, D.model.id, t.model.id))
543
+ if (S.model.id === t.model.id || te.actions.isChildOfParent(t.treeId, t.items, t.model.id, S.model.id) || te.actions.isParentOfChild(t.treeId, t.items, S.model.id, t.model.id))
544
544
  return !1;
545
- const N = y.y, ee = n.value.getBoundingClientRect().top, ne = n.value.getBoundingClientRect().height, W = ne / 3;
546
- N > ee && N <= ee + W ? (a.value = !1, o.value = !0, s.value = !1) : N < ee + ne && N >= ee + 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);
545
+ const R = g.y, ee = n.value.getBoundingClientRect().top, ne = n.value.getBoundingClientRect().height, W = ne / 3;
546
+ R > ee && R <= ee + W ? (a.value = !1, o.value = !0, s.value = !1) : R < ee + ne && R >= ee + 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
549
  }, u = T(() => t.model.title.startsWith("-")), p = T(() => {
550
550
  if (t.model.title.startsWith("-")) {
551
- let [y, ...D] = t.model.title.split(" ");
552
- return D = D.join(" "), D;
551
+ let [g, ...S] = t.model.title.split(" ");
552
+ return S = S.join(" "), S;
553
553
  }
554
554
  return null;
555
555
  });
556
- return (y, D) => {
557
- const N = mt("d-tree-item", !0), ee = Yn("touch");
556
+ return (g, S) => {
557
+ const R = mt("d-tree-item", !0), ee = Yn("touch");
558
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
559
  P("div", _o, G(Q(te).actions.renderTitle(t.treeId, p.value)), 1)
560
560
  ])) : t.model.component ? (c(), F(wr, {
@@ -562,9 +562,9 @@ const Se = (r, e) => {
562
562
  tag: "li",
563
563
  class: "tree-item-component",
564
564
  "transfer-data": { id: t.treeId, model: t.model },
565
- draggable: S.value,
565
+ draggable: k.value,
566
566
  onDrop: De(x, ["stop"]),
567
- onDragenter: D[1] || (D[1] = De(() => {
567
+ onDragenter: S[1] || (S[1] = De(() => {
568
568
  }, ["prevent"])),
569
569
  onDragover: De($, ["prevent", "stop"]),
570
570
  onDragleave: De(f, ["prevent"])
@@ -573,8 +573,8 @@ const Se = (r, e) => {
573
573
  He((c(), b("div", {
574
574
  ref_key: "node",
575
575
  ref: n,
576
- class: ae(g.value),
577
- onContextmenu: D[0] || (D[0] = De((ne) => e("nodecontext", { e: ne, model: t.model }), ["prevent"]))
576
+ class: ae(y.value),
577
+ onContextmenu: S[0] || (S[0] = De((ne) => e("nodecontext", { e: ne, model: t.model }), ["prevent"]))
578
578
  }, [
579
579
  (c(), F(Ae(Q(Mt).getters.getComponent(t.model.component).component), Yr(jr(Q(Mt).getters.getComponent(t.model.component).props)), null, 16))
580
580
  ], 34)), [
@@ -587,9 +587,9 @@ const Se = (r, e) => {
587
587
  tag: "li",
588
588
  class: "tree-item",
589
589
  "transfer-data": { id: t.treeId, model: t.model },
590
- draggable: S.value,
590
+ draggable: k.value,
591
591
  onDrop: De(x, ["stop"]),
592
- onDragenter: D[4] || (D[4] = De(() => {
592
+ onDragenter: S[4] || (S[4] = De(() => {
593
593
  }, ["prevent"])),
594
594
  onDragover: De($, ["prevent", "stop"]),
595
595
  onDragleave: De(f, ["prevent"])
@@ -598,9 +598,9 @@ const Se = (r, e) => {
598
598
  P("div", {
599
599
  ref_key: "node",
600
600
  ref: n,
601
- class: ae(g.value),
602
- onDblclick: D[2] || (D[2] = De((ne) => e("nodedoubleclick", { e: ne, model: t.model }), ["prevent"])),
603
- onContextmenu: D[3] || (D[3] = De((ne) => e("nodecontext", { e: ne, model: t.model }), ["prevent"])),
601
+ class: ae(y.value),
602
+ onDblclick: S[2] || (S[2] = De((ne) => e("nodedoubleclick", { e: ne, model: t.model }), ["prevent"])),
603
+ onContextmenu: S[3] || (S[3] = De((ne) => e("nodecontext", { e: ne, model: t.model }), ["prevent"])),
604
604
  onClick: De(d, ["stop"])
605
605
  }, [
606
606
  P("div", null, [
@@ -669,14 +669,14 @@ const Se = (r, e) => {
669
669
  A(ho, null, {
670
670
  default: X(() => [
671
671
  i.value && l.value && !t.search ? (c(), b("ul", Lo, [
672
- (c(!0), b(pe, null, Ce(r.model.children, (ne) => (c(), F(N, {
672
+ (c(!0), b(pe, null, Ce(r.model.children, (ne) => (c(), F(R, {
673
673
  key: ne.id,
674
674
  model: ne,
675
675
  treeId: t.treeId,
676
676
  items: t.items,
677
677
  search: t.search,
678
678
  onNodeclick: h,
679
- onNodedoubleclick: _,
679
+ onNodedoubleclick: D,
680
680
  onNodedrop: C,
681
681
  onNodecontext: E,
682
682
  onNodefoldericonclick: v
@@ -860,10 +860,10 @@ const Ze = Vo(), te = {
860
860
  }), (v, h) => (c(), F(Ae(r.tag), {
861
861
  ref_key: "el",
862
862
  ref: o,
863
- onDragenter: h[0] || (h[0] = (_) => l(Q(We).dragenter, _)),
864
- onDragleave: h[1] || (h[1] = (_) => l(Q(We).dragleave, _)),
865
- onDragover: h[2] || (h[2] = De((_) => l(Q(We).dragover, _), ["prevent"])),
866
- onDrop: h[3] || (h[3] = De((_) => l(Q(We).drop, _), ["prevent"]))
863
+ onDragenter: h[0] || (h[0] = (D) => l(Q(We).dragenter, D)),
864
+ onDragleave: h[1] || (h[1] = (D) => l(Q(We).dragleave, D)),
865
+ onDragover: h[2] || (h[2] = De((D) => l(Q(We).dragover, D), ["prevent"])),
866
+ onDrop: h[3] || (h[3] = De((D) => l(Q(We).drop, D), ["prevent"]))
867
867
  }, {
868
868
  default: X(() => [
869
869
  le(v.$slots, "default", { transferData: i.value })
@@ -901,45 +901,66 @@ const Ze = Vo(), te = {
901
901
  let o = I(null), s = I(!1);
902
902
  const i = () => {
903
903
  Ze.emit("menu-show-request", a), s.value = !0;
904
- }, l = (f = 1) => {
904
+ }, l = (g = 1) => {
905
905
  o.value?.collapseAll(), setTimeout(() => {
906
906
  s.value = !1;
907
- }, f);
907
+ }, g);
908
908
  }, d = () => s.value;
909
- Ze.on("menu-show-request", (f) => {
910
- a !== f && l();
911
- }), e({
909
+ Ze.on("menu-show-request", (g) => {
910
+ a !== g && l();
911
+ });
912
+ const v = () => o.value.elementSize(), h = () => o.value?.itemsCount(), D = (g) => {
913
+ o.value?.selectNode(g);
914
+ }, C = () => {
915
+ o.value?.unSelect();
916
+ }, E = () => {
917
+ o.value.expandAll();
918
+ }, y = () => {
919
+ o.value.collapseAll();
920
+ };
921
+ let k = null;
922
+ const x = (g) => {
923
+ const S = o.value?.$el;
924
+ S && (k && k.disconnect(), k = new MutationObserver(() => {
925
+ $(), k.disconnect();
926
+ }), k.observe(S, { childList: !0, subtree: !0 }));
927
+ }, $ = () => {
928
+ setTimeout(() => {
929
+ const g = o.value?.$el;
930
+ if (!g) return;
931
+ const S = g.getBoundingClientRect(), R = window.innerHeight;
932
+ if (S.bottom > R) {
933
+ const ee = S.bottom - R + 10;
934
+ g.style.transform = `translateY(-${ee}px)`;
935
+ } else
936
+ g.style.transform = "";
937
+ console.log(g.style.transform);
938
+ }, 500);
939
+ };
940
+ e({
912
941
  show: i,
913
942
  hide: l,
914
- elementSize: () => o.value.elementSize(),
943
+ elementSize: v,
915
944
  isShowed: d,
916
- itemsCount: () => o.value?.itemsCount(),
917
- selectNode: (f) => {
918
- o.value?.selectNode(f);
919
- },
920
- unSelect: () => {
921
- o.value?.unSelect();
922
- },
923
- expandAll: () => {
924
- o.value.expandAll();
925
- },
926
- collapseAll: () => {
927
- o.value.collapseAll();
928
- }
945
+ itemsCount: h,
946
+ selectNode: D,
947
+ unSelect: C,
948
+ expandAll: E,
949
+ collapseAll: y
929
950
  });
930
- const S = (f) => {
931
- t("select", f), f.model.children || l(n.delayClick);
932
- }, x = (f) => {
933
- f.target === document && l();
934
- }, $ = () => {
951
+ const f = (g) => {
952
+ t("select", g), g.model.children || l(n.delayClick);
953
+ }, u = (g) => {
954
+ g.target === document && l();
955
+ }, p = () => {
935
956
  l();
936
957
  };
937
958
  return Be(() => {
938
- window.addEventListener("scroll", x, !0), window.addEventListener("resize", $);
959
+ window.addEventListener("scroll", u, !0), window.addEventListener("resize", p);
939
960
  }), jn(() => {
940
- window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", $);
941
- }), (f, u) => {
942
- const p = Yn("click-outside");
961
+ window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", p), k && k.disconnect();
962
+ }), (g, S) => {
963
+ const R = Yn("click-outside");
943
964
  return n.bodyAsParent ? (c(), F(Wr, {
944
965
  key: 0,
945
966
  to: "body"
@@ -952,13 +973,14 @@ const Ze = Vo(), te = {
952
973
  "no-select": n.noSelect,
953
974
  class: ae(n.class),
954
975
  style: ue(n.style),
955
- onSelect: S,
976
+ onSelect: f,
956
977
  "render-title": n.renderItemTitle,
957
978
  "before-item": n.beforeItem,
958
979
  "multi-select": n.multiSelect,
959
- search: n.search
980
+ search: n.search,
981
+ onExpand: x
960
982
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item", "multi-select", "search"])), [
961
- [p, () => l()]
983
+ [R, () => l()]
962
984
  ]) : L("", !0)
963
985
  ])) : (c(), b(pe, { key: 1 }, [
964
986
  Q(s) ? He((c(), F(Ln, {
@@ -969,13 +991,14 @@ const Ze = Vo(), te = {
969
991
  "no-select": n.noSelect,
970
992
  class: ae(n.class),
971
993
  style: ue(n.style),
972
- onSelect: S,
994
+ onSelect: f,
973
995
  "render-title": n.renderItemTitle,
974
996
  "before-item": n.beforeItem,
975
997
  "multi-select": n.multiSelect,
976
- search: n.search
998
+ search: n.search,
999
+ onExpand: x
977
1000
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item", "multi-select", "search"])), [
978
- [p, () => l()]
1001
+ [R, () => l()]
979
1002
  ]) : L("", !0)
980
1003
  ], 64));
981
1004
  };
@@ -998,10 +1021,10 @@ const Ze = Vo(), te = {
998
1021
  top: s.value + "px"
999
1022
  })), l = async (v) => {
1000
1023
  v.preventDefault(), o.value = -1e4, s.value = -1e4, a.value.show(), await lt(), await lt();
1001
- const h = a.value.elementSize(), _ = h.width;
1024
+ const h = a.value.elementSize(), D = h.width;
1002
1025
  document.querySelector(".context-menu"), a.value.collapseAll();
1003
1026
  const C = window.innerWidth, E = window.innerHeight;
1004
- o.value = v.clientX, s.value = v.clientY, v.clientX + _ > C && (o.value = v.clientX - _), v.clientY + h.height > E && (s.value = v.clientY - h.height), o.value = Math.max(2, Math.min(o.value, C - _ - 2)), s.value = Math.max(2, Math.min(s.value, E - h.height - 2));
1027
+ o.value = v.clientX, s.value = v.clientY, v.clientX + D > C && (o.value = v.clientX - D), v.clientY + h.height > E && (s.value = v.clientY - h.height), o.value = Math.max(2, Math.min(o.value, C - D - 2)), s.value = Math.max(2, Math.min(s.value, E - h.height - 2));
1005
1028
  }, d = (v) => {
1006
1029
  t("select", v);
1007
1030
  };
@@ -1092,15 +1115,15 @@ const Ze = Vo(), te = {
1092
1115
  return ve.found = qe, qe.expanded = !0, !0;
1093
1116
  if (h(qe[he], K, q, he, ve))
1094
1117
  return qe.expanded = !0, !0;
1095
- }), ve.found) ? ve.found : !1, _ = (V = null) => {
1118
+ }), ve.found) ? ve.found : !1, D = (V = null) => {
1096
1119
  te.mutations.setItemSelect(i, V.model), !n.doubleClickExpand && n.clickExpand && te.actions.toggleItem(i, V.model), t("select", V);
1097
1120
  }, C = (V = null) => {
1098
1121
  n.doubleClickExpand && te.actions.toggleItem(i, V.model), t("doubleclick", V);
1099
1122
  }, E = (V = null) => {
1100
1123
  te.actions.toggleItem(i, V.model), t("foldericonclick", V);
1101
- }, g = (V = null) => {
1124
+ }, y = (V = null) => {
1102
1125
  t("over", V);
1103
- }, S = (V = null) => {
1126
+ }, k = (V = null) => {
1104
1127
  t("drop", V);
1105
1128
  }, x = () => a.value.elementSize(), $ = () => {
1106
1129
  for (let V = 0; V < n.items.length; V++)
@@ -1108,11 +1131,11 @@ const Ze = Vo(), te = {
1108
1131
  }, f = () => {
1109
1132
  for (let V = 0; V < n.items.length; V++)
1110
1133
  n.items[V].expanded = !1;
1111
- }, u = () => i, p = (V) => te.actions.deepSearch(n.items, V), y = (V) => {
1134
+ }, u = () => i, p = (V) => te.actions.deepSearch(n.items, V), g = (V) => {
1112
1135
  p(V) && te.mutations.setItemSelect(i, p(V));
1113
- }, D = () => {
1136
+ }, S = () => {
1114
1137
  te.mutations.unSelect(i);
1115
- }, N = (V) => {
1138
+ }, R = (V) => {
1116
1139
  n.contextClick({ e: V.e, model: V.model, target: s.value });
1117
1140
  }, ee = (V) => n.contextBeforeClick({ model: V, target: s.value }), ne = T(() => n.context), W = (V) => (ne.value && (s.value = V.model, o.value.show(V.e)), !1), me = () => ie(d.value), ie = (V) => {
1118
1141
  let K = 0;
@@ -1126,10 +1149,10 @@ const Ze = Vo(), te = {
1126
1149
  collapseAll: f,
1127
1150
  getId: u,
1128
1151
  getNode: p,
1129
- selectNode: y,
1152
+ selectNode: g,
1130
1153
  itemsCount: me,
1131
1154
  expandNode: v,
1132
- unSelect: D
1155
+ unSelect: S
1133
1156
  }), (V, K) => (c(), F(zo, {
1134
1157
  ref_key: "treeRef",
1135
1158
  ref: a,
@@ -1144,10 +1167,10 @@ const Ze = Vo(), te = {
1144
1167
  treeId: Q(i),
1145
1168
  items: n.items,
1146
1169
  search: n.search,
1147
- onNodeclick: _,
1170
+ onNodeclick: D,
1148
1171
  onNodedoubleclick: C,
1149
- onNodedragover: g,
1150
- onNodedrop: S,
1172
+ onNodedragover: y,
1173
+ onNodedrop: k,
1151
1174
  onNodecontext: W,
1152
1175
  onNodefoldericonclick: E
1153
1176
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
@@ -1156,7 +1179,7 @@ const Ze = Vo(), te = {
1156
1179
  ref_key: "contextTreeRef",
1157
1180
  ref: o,
1158
1181
  items: ne.value,
1159
- onSelect: N,
1182
+ onSelect: R,
1160
1183
  "before-item": ee
1161
1184
  }, null, 8, ["items"])) : L("", !0)
1162
1185
  ]),
@@ -1272,8 +1295,8 @@ const Ze = Vo(), te = {
1272
1295
  },
1273
1296
  setup(r) {
1274
1297
  const e = r, t = T(() => {
1275
- const { fixed: n, top: a, zIndex: o, minWidth: s, height: i, paddingLeft: l, transitionDuration: d, transitionTimingFunction: v } = e, h = n ? "fixed" : "static", _ = e.useMinWidthLayout ? `min-width: ${s}px;` : "";
1276
- return `position:${h};top:${a}px;z-index:${o};${_}height:${i}px;padding-left:${l}px;transition-duration:${d}ms;transition-timing-function:${v};`;
1298
+ const { fixed: n, top: a, zIndex: o, minWidth: s, height: i, paddingLeft: l, transitionDuration: d, transitionTimingFunction: v } = e, h = n ? "fixed" : "static", D = e.useMinWidthLayout ? `min-width: ${s}px;` : "";
1299
+ return `position:${h};top:${a}px;z-index:${o};${D}height:${i}px;padding-left:${l}px;transition-duration:${d}ms;transition-timing-function:${v};`;
1277
1300
  });
1278
1301
  return (n, a) => (c(), b("div", {
1279
1302
  class: "d-layout-tab",
@@ -1526,10 +1549,10 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1526
1549
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1527
1550
  setup(r, { emit: e }) {
1528
1551
  const t = r, n = T(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), a = T(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), o = Wo(a), s = T(() => t.fixedHeaderAndTab ? o.value : ""), i = T(() => t.fixedFooter ? o.value : ""), l = T(() => {
1529
- const { transitionDuration: p, transitionTimingFunction: y } = t;
1552
+ const { transitionDuration: p, transitionTimingFunction: g } = t;
1530
1553
  return {
1531
1554
  transitionDuration: p,
1532
- transitionTimingFunction: y
1555
+ transitionTimingFunction: g
1533
1556
  };
1534
1557
  }), d = T(() => t.mode === "vertical"), v = T(() => t.isMobile || d.value ? 1003 : 1e3), h = T({
1535
1558
  get() {
@@ -1539,22 +1562,22 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1539
1562
  e("update:sidebar-collapse", p);
1540
1563
  }
1541
1564
  });
1542
- function _() {
1565
+ function D() {
1543
1566
  e("sidebar-mask-click");
1544
1567
  }
1545
1568
  const C = T(() => t.isMobile && !h.value), E = T(() => {
1546
- const { transitionDuration: p, transitionTimingFunction: y } = t;
1547
- return `background-color:${t.maskBg};transition-duration:${p}ms;transition-timing-function:${y};`;
1548
- }), g = T(() => {
1549
- const { sidebarWidth: p, sidebarCollapsedWidth: y } = t, D = t.isMobile ? 0 : y, N = h.value ? D : p;
1550
- return t.sidebarVisible ? N : 0;
1551
- }), S = T(() => t.isMobile ? 0 : g.value), x = T(() => d.value ? S.value : 0), $ = T(
1569
+ const { transitionDuration: p, transitionTimingFunction: g } = t;
1570
+ return `background-color:${t.maskBg};transition-duration:${p}ms;transition-timing-function:${g};`;
1571
+ }), y = T(() => {
1572
+ const { sidebarWidth: p, sidebarCollapsedWidth: g } = t, S = t.isMobile ? 0 : g, R = h.value ? S : p;
1573
+ return t.sidebarVisible ? R : 0;
1574
+ }), k = T(() => t.isMobile ? 0 : y.value), x = T(() => d.value ? k.value : 0), $ = T(
1552
1575
  () => !t.isMobile && !d.value && t.headerVisible ? t.headerHeight : 0
1553
1576
  ), f = T(() => {
1554
1577
  let p = 0;
1555
1578
  return t.fixedHeaderAndTab && (t.headerVisible && (p += t.headerHeight), t.tabVisible && (p += t.tabHeight)), p;
1556
1579
  }), u = T(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1557
- return (p, y) => (c(), b("div", {
1580
+ return (p, g) => (c(), b("div", {
1558
1581
  class: "d-layout",
1559
1582
  style: ue(n.value)
1560
1583
  }, [
@@ -1577,7 +1600,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1577
1600
  "min-width": r.minWidth,
1578
1601
  top: r.headerHeight,
1579
1602
  height: r.tabHeight,
1580
- "padding-left": S.value,
1603
+ "padding-left": k.value,
1581
1604
  style: s.value
1582
1605
  }), {
1583
1606
  default: X(() => [
@@ -1587,7 +1610,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1587
1610
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : L("", !0),
1588
1611
  r.sidebarVisible ? (c(), F(Yo, wt({ key: 2 }, l.value, {
1589
1612
  "z-index": v.value,
1590
- width: g.value,
1613
+ width: y.value,
1591
1614
  "padding-top": $.value
1592
1615
  }), {
1593
1616
  default: X(() => [
@@ -1599,12 +1622,12 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1599
1622
  key: 3,
1600
1623
  class: "d-layout-sidebar-mask",
1601
1624
  style: ue(E.value),
1602
- onClick: _
1625
+ onClick: D
1603
1626
  }, null, 4)) : L("", !0),
1604
1627
  A(jo, wt(l.value, {
1605
1628
  "padding-top": f.value,
1606
1629
  "padding-bottom": u.value,
1607
- "padding-left": S.value,
1630
+ "padding-left": k.value,
1608
1631
  "overflow-hidden": r.addMainOverflowHidden
1609
1632
  }), {
1610
1633
  default: X(() => [
@@ -1617,7 +1640,7 @@ const qo = 1001, Uo = 999, Xo = 998, Bm = {
1617
1640
  "z-index": Xo,
1618
1641
  "min-width": r.minWidth,
1619
1642
  height: r.footerHeight,
1620
- "padding-left": S.value,
1643
+ "padding-left": k.value,
1621
1644
  style: i.value
1622
1645
  }), {
1623
1646
  default: X(() => [
@@ -1936,8 +1959,8 @@ const os = { style: { display: "flex", "flex-direction": "row", "justify-content
1936
1959
  return;
1937
1960
  }
1938
1961
  o.value.show(), t("open"), lt(() => {
1939
- const E = o.value.elementSize(), g = s.value.elementSize(), S = window.innerWidth, x = window.innerHeight;
1940
- i.value = S - (g.x + g.width) < E.width ? g.left - E.width + g.width : g.left, l.value = x - (g.y + g.height) < E.height ? g.top - E.height - 5 : g.height + g.top + 5;
1962
+ const E = o.value.elementSize(), y = s.value.elementSize(), k = window.innerWidth, x = window.innerHeight;
1963
+ i.value = k - (y.x + y.width) < E.width ? y.left - E.width + y.width : y.left, l.value = x - (y.y + y.height) < E.height ? y.top - E.height - 5 : y.height + y.top + 5;
1941
1964
  });
1942
1965
  }, v = (C) => {
1943
1966
  t("select", C);
@@ -1945,9 +1968,9 @@ const os = { style: { display: "flex", "flex-direction": "row", "justify-content
1945
1968
  e({
1946
1969
  show: d
1947
1970
  });
1948
- const _ = (C) => !!a[C];
1971
+ const D = (C) => !!a[C];
1949
1972
  return (C, E) => (c(), b("div", us, [
1950
- _("default") ? (c(), F(fe, {
1973
+ D("default") ? (c(), F(fe, {
1951
1974
  key: 0,
1952
1975
  ref_key: "buttonRef",
1953
1976
  ref: s,
@@ -2216,17 +2239,17 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2216
2239
  width: ie + V
2217
2240
  };
2218
2241
  return me && (K[me] = "0px"), W && (W === "center" ? K.left = `calc(50% - ${+ie / 2}${V})` : K[W] = "0px"), K;
2219
- }), _ = T(() => "bottom" in h.value), C = (W) => {
2242
+ }), D = T(() => "bottom" in h.value), C = (W) => {
2220
2243
  e("click", W), t.closeOnClick && u(W);
2221
2244
  }, E = () => {
2222
2245
  t.pauseOnHover && o.value?.pause();
2223
- }, g = () => {
2246
+ }, y = () => {
2224
2247
  t.pauseOnHover && o.value?.resume();
2225
- }, S = (W) => {
2248
+ }, k = (W) => {
2226
2249
  if (W.group ||= "", W.data ||= {}, t.group !== W.group)
2227
2250
  return;
2228
2251
  if (W.clean || W.clear) {
2229
- y();
2252
+ g();
2230
2253
  return;
2231
2254
  }
2232
2255
  const me = typeof W.duration == "number" ? W.duration : t.duration, ie = typeof W.speed == "number" ? W.speed : t.speed, V = typeof W.ignoreDuplicates == "boolean" ? W.ignoreDuplicates : t.ignoreDuplicates, { title: K, text: q, type: he, data: ve, id: qe } = W, we = {
@@ -2240,7 +2263,7 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2240
2263
  data: ve
2241
2264
  };
2242
2265
  me >= 0 && (o.value = new ys(() => u(we), we.length, we));
2243
- const _e = t.reverse ? !_.value : _.value;
2266
+ const _e = t.reverse ? !D.value : D.value;
2244
2267
  let Ue = -1;
2245
2268
  const Z = d.value.some((O) => O.title === W.title && O.text === W.text);
2246
2269
  (!V || !Z) && (_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]));
@@ -2255,15 +2278,15 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2255
2278
  }, p = (W) => {
2256
2279
  const me = a.value.find((ie) => ie.id === W);
2257
2280
  me && u(me);
2258
- }, y = () => {
2281
+ }, g = () => {
2259
2282
  d.value.forEach(u);
2260
- }, D = (W, me) => {
2283
+ }, S = (W, me) => {
2261
2284
  const ie = t.animation?.[W];
2262
2285
  return typeof ie == "function" ? ie(me) : ie;
2263
- }, N = (W, me) => {
2286
+ }, R = (W, me) => {
2264
2287
  if (!i.value)
2265
2288
  return;
2266
- const ie = D("enter", W);
2289
+ const ie = S("enter", W);
2267
2290
  s.value(W, ie, {
2268
2291
  duration: t.speed,
2269
2292
  complete: me
@@ -2271,7 +2294,7 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2271
2294
  }, ee = (W, me) => {
2272
2295
  if (!i.value)
2273
2296
  return;
2274
- const ie = D("leave", W);
2297
+ const ie = S("leave", W);
2275
2298
  s.value(W, ie, {
2276
2299
  duration: t.speed,
2277
2300
  complete: me
@@ -2281,14 +2304,14 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2281
2304
  a.value = a.value.filter((W) => W.state !== n.DESTROYED);
2282
2305
  }
2283
2306
  return Be(() => {
2284
- Ze.on("notification-add", S), Ze.on("notification-close", x);
2307
+ Ze.on("notification-add", k), Ze.on("notification-close", x);
2285
2308
  }), (W, me) => (c(), b("div", {
2286
2309
  class: "d-notification-group",
2287
2310
  style: ue(h.value)
2288
2311
  }, [
2289
2312
  (c(), F(Ae(l.value), {
2290
2313
  name: r.animationName,
2291
- onEnter: N,
2314
+ onEnter: R,
2292
2315
  onLeave: ee,
2293
2316
  onAfterLeave: ne
2294
2317
  }, {
@@ -2299,7 +2322,7 @@ const Cn = "[-+]?[0-9]*.?[0-9]+", xr = [
2299
2322
  style: ue(f(ie)),
2300
2323
  "data-id": ie.id,
2301
2324
  onMouseenter: E,
2302
- onMouseleave: g
2325
+ onMouseleave: y
2303
2326
  }, [
2304
2327
  le(W.$slots, "body", {
2305
2328
  class: ae([r.classes, ie.type]),
@@ -2594,33 +2617,33 @@ var Mn = function() {
2594
2617
  return Zr.Date.now();
2595
2618
  }, ki = "Expected a function", Si = Math.max, _i = Math.min;
2596
2619
  function Di(r, e, t) {
2597
- var n, a, o, s, i, l, d = 0, v = !1, h = !1, _ = !0;
2620
+ var n, a, o, s, i, l, d = 0, v = !1, h = !1, D = !0;
2598
2621
  if (typeof r != "function")
2599
2622
  throw new TypeError(ki);
2600
- e = Dr(e) || 0, En(t) && (v = !!t.leading, h = "maxWait" in t, o = h ? Si(Dr(t.maxWait) || 0, e) : o, _ = "trailing" in t ? !!t.trailing : _);
2601
- function C(y) {
2602
- var D = n, N = a;
2603
- return n = a = void 0, d = y, s = r.apply(N, D), s;
2623
+ e = Dr(e) || 0, En(t) && (v = !!t.leading, h = "maxWait" in t, o = h ? Si(Dr(t.maxWait) || 0, e) : o, D = "trailing" in t ? !!t.trailing : D);
2624
+ function C(g) {
2625
+ var S = n, R = a;
2626
+ return n = a = void 0, d = g, s = r.apply(R, S), s;
2604
2627
  }
2605
- function E(y) {
2606
- return d = y, i = setTimeout(x, e), v ? C(y) : s;
2628
+ function E(g) {
2629
+ return d = g, i = setTimeout(x, e), v ? C(g) : s;
2607
2630
  }
2608
- function g(y) {
2609
- var D = y - l, N = y - d, ee = e - D;
2610
- return h ? _i(ee, o - N) : ee;
2631
+ function y(g) {
2632
+ var S = g - l, R = g - d, ee = e - S;
2633
+ return h ? _i(ee, o - R) : ee;
2611
2634
  }
2612
- function S(y) {
2613
- var D = y - l, N = y - d;
2614
- return l === void 0 || D >= e || D < 0 || h && N >= o;
2635
+ function k(g) {
2636
+ var S = g - l, R = g - d;
2637
+ return l === void 0 || S >= e || S < 0 || h && R >= o;
2615
2638
  }
2616
2639
  function x() {
2617
- var y = Mn();
2618
- if (S(y))
2619
- return $(y);
2620
- i = setTimeout(x, g(y));
2640
+ var g = Mn();
2641
+ if (k(g))
2642
+ return $(g);
2643
+ i = setTimeout(x, y(g));
2621
2644
  }
2622
- function $(y) {
2623
- return i = void 0, _ && n ? C(y) : (n = a = void 0, s);
2645
+ function $(g) {
2646
+ return i = void 0, D && n ? C(g) : (n = a = void 0, s);
2624
2647
  }
2625
2648
  function f() {
2626
2649
  i !== void 0 && clearTimeout(i), d = 0, n = l = a = i = void 0;
@@ -2629,8 +2652,8 @@ function Di(r, e, t) {
2629
2652
  return i === void 0 ? s : $(Mn());
2630
2653
  }
2631
2654
  function p() {
2632
- var y = Mn(), D = S(y);
2633
- if (n = arguments, a = this, l = y, D) {
2655
+ var g = Mn(), S = k(g);
2656
+ if (n = arguments, a = this, l = g, S) {
2634
2657
  if (i === void 0)
2635
2658
  return E(l);
2636
2659
  if (h)
@@ -2698,18 +2721,18 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2698
2721
  const n = r, a = ct(), o = I(""), s = St(), i = I(!1), l = I(!1), d = I(null);
2699
2722
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2700
2723
  const v = Di(() => {
2701
- S();
2724
+ k();
2702
2725
  }, 300), h = T({
2703
2726
  get: () => n.modelValue,
2704
2727
  //props.form?.fields[props.name].model.value,
2705
- set: (D) => {
2706
- t("update:modelValue", D);
2728
+ set: (S) => {
2729
+ t("update:modelValue", S);
2707
2730
  }
2708
- }), _ = T(() => n.type), C = T(() => n.scale), E = (D) => {
2709
- t("input", D), v();
2710
- }, g = (D) => {
2711
- t("change", D), v.cancel(), S();
2712
- }, S = () => {
2731
+ }), D = T(() => n.type), C = T(() => n.scale), E = (S) => {
2732
+ t("input", S), v();
2733
+ }, y = (S) => {
2734
+ t("change", S), v.cancel(), k();
2735
+ }, k = () => {
2713
2736
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2714
2737
  return o.value = mn.validate(h.value, n.form.fields[n.name].rules), !!o.value;
2715
2738
  };
@@ -2722,19 +2745,19 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2722
2745
  d.value?.focus();
2723
2746
  }, $ = () => {
2724
2747
  h.value = "", t("update:modelValue", ""), t("input", ""), t("clear");
2725
- }, f = (D) => {
2726
- i.value = D;
2727
- }, u = (D) => {
2728
- o.value = D;
2729
- }, p = (D) => {
2730
- t("blur", D), v.cancel(), S();
2748
+ }, f = (S) => {
2749
+ i.value = S;
2750
+ }, u = (S) => {
2751
+ o.value = S;
2752
+ }, p = (S) => {
2753
+ t("blur", S), v.cancel(), k();
2731
2754
  };
2732
2755
  return e({
2733
2756
  focus: x,
2734
2757
  setError: u,
2735
- validate: S,
2758
+ validate: k,
2736
2759
  getRef: () => d
2737
- }), (D, N) => (c(), b("div", {
2760
+ }), (S, R) => (c(), b("div", {
2738
2761
  class: ae(["d-input-string", C.value])
2739
2762
  }, [
2740
2763
  P("div", Ci, [
@@ -2744,26 +2767,26 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2744
2767
  ])) : L("", !0),
2745
2768
  P("div", Pi, [
2746
2769
  Q(a).pre ? (c(), b("div", Ti, [
2747
- le(D.$slots, "pre")
2770
+ le(S.$slots, "pre")
2748
2771
  ])) : L("", !0),
2749
2772
  P("div", Oi, [
2750
2773
  He(P("input", {
2751
2774
  id: Q(s),
2752
2775
  ref_key: "inputRef",
2753
2776
  ref: d,
2754
- "onUpdate:modelValue": N[0] || (N[0] = (ee) => h.value = ee),
2777
+ "onUpdate:modelValue": R[0] || (R[0] = (ee) => h.value = ee),
2755
2778
  style: ue([{ width: "100%" }, n.inputStyle]),
2756
- type: _.value,
2779
+ type: D.value,
2757
2780
  inputmode: r.inputMode,
2758
2781
  enterkeyhint: r.enterKeyHint,
2759
2782
  placeholder: n.placeholder,
2760
2783
  onInput: E,
2761
- onChange: g,
2762
- onFocus: N[1] || (N[1] = (ee) => f(!0)),
2784
+ onChange: y,
2785
+ onFocus: R[1] || (R[1] = (ee) => f(!0)),
2763
2786
  onBlur: p,
2764
2787
  minlength: n.minLength,
2765
2788
  maxlength: n.maxLength,
2766
- onFocusout: N[2] || (N[2] = (ee) => f(!1)),
2789
+ onFocusout: R[2] || (R[2] = (ee) => f(!1)),
2767
2790
  class: ae([
2768
2791
  Q(a).pre ? "has-pre" : "",
2769
2792
  Q(a).post ? "has-post" : "",
@@ -2785,7 +2808,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2785
2808
  }, Ii)) : L("", !0)
2786
2809
  ]),
2787
2810
  Q(a).post ? (c(), b("div", Vi, [
2788
- le(D.$slots, "post")
2811
+ le(S.$slots, "post")
2789
2812
  ])) : L("", !0)
2790
2813
  ]),
2791
2814
  n.help ? (c(), b("div", {
@@ -2849,13 +2872,13 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2849
2872
  A(et, {
2850
2873
  style: { width: "100px" },
2851
2874
  modelValue: a.value,
2852
- "onUpdate:modelValue": h[0] || (h[0] = (_) => a.value = _),
2875
+ "onUpdate:modelValue": h[0] || (h[0] = (D) => a.value = D),
2853
2876
  type: "text",
2854
2877
  placeholder: "000",
2855
2878
  maxlength: "3",
2856
2879
  class: "text-center font-mono",
2857
2880
  onInput: l,
2858
- onKeyup: h[1] || (h[1] = Xr((_) => i() && d(), ["enter"]))
2881
+ onKeyup: h[1] || (h[1] = Xr((D) => i() && d(), ["enter"]))
2859
2882
  }, null, 8, ["modelValue"])
2860
2883
  ]),
2861
2884
  o.value ? (c(), b("div", Yi, " Код неверный ")) : L("", !0)
@@ -2864,7 +2887,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2864
2887
  "modal-footer": X(() => [
2865
2888
  P("div", ji, [
2866
2889
  A(fe, {
2867
- onClick: h[2] || (h[2] = (_) => Q(Pt)()),
2890
+ onClick: h[2] || (h[2] = (D) => Q(Pt)()),
2868
2891
  disabled: !i()
2869
2892
  }, {
2870
2893
  default: X(() => [
@@ -2874,7 +2897,7 @@ const Ci = { style: { display: "flex", "flex-direction": "column" } }, $i = {
2874
2897
  }, 8, ["disabled"]),
2875
2898
  A(fe, {
2876
2899
  class: "button-red",
2877
- onClick: h[3] || (h[3] = (_) => Q(Pt)(!1))
2900
+ onClick: h[3] || (h[3] = (D) => Q(Pt)(!1))
2878
2901
  }, {
2879
2902
  default: X(() => [
2880
2903
  se("Нет")
@@ -3008,13 +3031,13 @@ const Qm = {
3008
3031
  setSelectedIndex: (h) => {
3009
3032
  s(h);
3010
3033
  }
3011
- }), (h, _) => (c(), b(pe, null, [
3034
+ }), (h, D) => (c(), b(pe, null, [
3012
3035
  P("div", al, [
3013
3036
  (c(!0), b(pe, null, Ce(n.value, (C, E) => (c(), F(rl, {
3014
3037
  index: E,
3015
3038
  tab: C,
3016
3039
  class: ae(["d-tab-title", E === o.value ? "active" : ""]),
3017
- onClick: (g) => s(E)
3040
+ onClick: (y) => s(E)
3018
3041
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
3019
3042
  ]),
3020
3043
  (c(), F(Ba, null, [
@@ -3467,51 +3490,51 @@ const Qm = {
3467
3490
  B.mutations.setItems(n.id, n.items);
3468
3491
  }
3469
3492
  ), Be(() => {
3470
- const p = localStorage.getItem(`${n.id}-grid-field`), y = localStorage.getItem(`${n.id}-grid-dir`);
3471
- p && (B.mutations.setSortField(n.id, p), B.mutations.setSortDirection(n.id, y || "asc"));
3493
+ const p = localStorage.getItem(`${n.id}-grid-field`), g = localStorage.getItem(`${n.id}-grid-dir`);
3494
+ p && (B.mutations.setSortField(n.id, p), B.mutations.setSortDirection(n.id, g || "asc"));
3472
3495
  });
3473
3496
  let d = [];
3474
3497
  for (let p = 0; p < n.columns.length; p++)
3475
3498
  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(" ");
3476
- const v = (p, y) => {
3477
- if (B.getters.getSortField(n.id) === y) {
3478
- const N = B.getters.getSortDirection(n.id);
3479
- N ? N === "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"));
3499
+ const v = (p, g) => {
3500
+ if (B.getters.getSortField(n.id) === g) {
3501
+ const R = B.getters.getSortDirection(n.id);
3502
+ 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"));
3480
3503
  } else
3481
- 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");
3504
+ B.mutations.setSortField(n.id, g), B.mutations.setSortDirection(n.id, "asc"), localStorage.setItem(`${n.id}-grid-field`, g), localStorage.setItem(`${n.id}-grid-dir`, "asc");
3482
3505
  }, h = (p) => {
3483
- p.target.checked ? g.value.forEach((y) => {
3484
- B.getters.getSelected(n.id).includes(y.id) || B.mutations.addSelect(n.id, y.id);
3485
- }) : g.value.forEach((y) => {
3486
- B.mutations.unSelect(n.id, y.id);
3506
+ p.target.checked ? y.value.forEach((g) => {
3507
+ B.getters.getSelected(n.id).includes(g.id) || B.mutations.addSelect(n.id, g.id);
3508
+ }) : y.value.forEach((g) => {
3509
+ B.mutations.unSelect(n.id, g.id);
3487
3510
  });
3488
- }, _ = (p) => B.getters.getSelected(n.id).includes(p), C = (p, y) => {
3489
- 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 }));
3490
- }, E = T(() => g.value.length === 0 ? !1 : g.value.every(
3511
+ }, D = (p) => B.getters.getSelected(n.id).includes(p), C = (p, g) => {
3512
+ p.target.checked ? (B.mutations.addSelect(n.id, g), t("check", { grid: n.id, id: g })) : (B.mutations.unSelect(n.id, g), t("uncheck", { grid: n.id, id: g }));
3513
+ }, E = T(() => y.value.length === 0 ? !1 : y.value.every(
3491
3514
  (p) => B.getters.getSelected(n.id).includes(p.id)
3492
- )), g = T(() => {
3493
- const p = a.value * o.value - o.value, y = a.value * o.value - 1;
3494
- let D = B.getters.getItems(n.id);
3515
+ )), y = T(() => {
3516
+ const p = a.value * o.value - o.value, g = a.value * o.value - 1;
3517
+ let S = B.getters.getItems(n.id);
3495
3518
  for (let ee = 0; ee < n.columns.length; ee++) {
3496
3519
  const ne = n.columns[ee], W = l.value[ne.key];
3497
- 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()))));
3520
+ W && (Array.isArray(ne.search) ? S = S.filter((me) => String(me[ne.key]) === String(W)) : (ne.search === "string" || ne.search === "number") && (S = S.filter((me) => me[ne.key] && me[ne.key].toString().toUpperCase().includes(W.toString().toUpperCase()))));
3498
3521
  }
3499
- return D.slice(p, y + 1);
3500
- }), S = T(() => {
3522
+ return S.slice(p, g + 1);
3523
+ }), k = T(() => {
3501
3524
  let p = [];
3502
- for (let y in n.perPageOptions)
3503
- p.push({ label: n.perPageOptions[y], value: n.perPageOptions[y].toString() });
3525
+ for (let g in n.perPageOptions)
3526
+ p.push({ label: n.perPageOptions[g], value: n.perPageOptions[g].toString() });
3504
3527
  return p;
3505
3528
  }), x = (p) => {
3506
3529
  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)));
3507
3530
  }, $ = (p) => {
3508
3531
  o.value = parseInt(p.target.value), localStorage.setItem("datagrid-perpage", p.target.value), a.value = 1;
3509
- }, f = (p, y) => {
3510
- t("select", { e: p, row: y });
3532
+ }, f = (p, g) => {
3533
+ t("select", { e: p, row: g });
3511
3534
  };
3512
3535
  return e({
3513
3536
  getSelection: () => B.getters.getSelected(n.id)
3514
- }), (p, y) => (c(), b("div", null, [
3537
+ }), (p, g) => (c(), b("div", null, [
3515
3538
  P("div", yl, [
3516
3539
  P("table", bl, [
3517
3540
  P("thead", wl, [
@@ -3519,19 +3542,19 @@ const Qm = {
3519
3542
  n.selectable === "check" ? (c(), b("th", kl, [
3520
3543
  A(on, {
3521
3544
  checked: E.value,
3522
- onChange: y[0] || (y[0] = (D) => h(D))
3545
+ onChange: g[0] || (g[0] = (S) => h(S))
3523
3546
  }, null, 8, ["checked"])
3524
3547
  ])) : L("", !0),
3525
- (c(!0), b(pe, null, Ce(n.columns, (D) => (c(), b("th", {
3526
- key: D.key,
3527
- onClick: (N) => v(N, D.key),
3548
+ (c(!0), b(pe, null, Ce(n.columns, (S) => (c(), b("th", {
3549
+ key: S.key,
3550
+ onClick: (R) => v(R, S.key),
3528
3551
  class: "d-cell",
3529
- style: ue(D.style)
3552
+ style: ue(S.style)
3530
3553
  }, [
3531
3554
  P("div", _l, [
3532
- P("div", null, G(D.title), 1),
3533
- Q(B).getters.getSortField(n.id) === D.key && Q(B).getters.getSortDirection(n.id) === "asc" ? (c(), b("svg", Dl, $l)) : L("", !0),
3534
- Q(B).getters.getSortField(n.id) === D.key && Q(B).getters.getSortDirection(n.id) === "desc" ? (c(), b("svg", Ml, Tl)) : L("", !0)
3555
+ P("div", null, G(S.title), 1),
3556
+ Q(B).getters.getSortField(n.id) === S.key && Q(B).getters.getSortDirection(n.id) === "asc" ? (c(), b("svg", Dl, $l)) : L("", !0),
3557
+ Q(B).getters.getSortField(n.id) === S.key && Q(B).getters.getSortDirection(n.id) === "desc" ? (c(), b("svg", Ml, Tl)) : L("", !0)
3535
3558
  ])
3536
3559
  ], 12, Sl))), 128))
3537
3560
  ])
@@ -3539,50 +3562,50 @@ const Qm = {
3539
3562
  P("tbody", Ol, [
3540
3563
  P("tr", Ll, [
3541
3564
  n.selectable === "check" ? (c(), b("td", El)) : L("", !0),
3542
- (c(!0), b(pe, null, Ce(n.columns, (D, N) => (c(), b("td", {
3543
- key: N,
3565
+ (c(!0), b(pe, null, Ce(n.columns, (S, R) => (c(), b("td", {
3566
+ key: R,
3544
3567
  class: "d-cell"
3545
3568
  }, [
3546
- Object.hasOwn(D, "search") && D.search === "string" ? (c(), F(et, {
3569
+ Object.hasOwn(S, "search") && S.search === "string" ? (c(), F(et, {
3547
3570
  key: 0,
3548
- modelValue: l.value[D.key],
3549
- "onUpdate:modelValue": (ee) => l.value[D.key] = ee,
3571
+ modelValue: l.value[S.key],
3572
+ "onUpdate:modelValue": (ee) => l.value[S.key] = ee,
3550
3573
  placeholder: "Поиск..."
3551
3574
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : L("", !0),
3552
- Object.hasOwn(D, "search") && D.search === "number" ? (c(), F(et, {
3575
+ Object.hasOwn(S, "search") && S.search === "number" ? (c(), F(et, {
3553
3576
  key: 1,
3554
- modelValue: l.value[D.key],
3555
- "onUpdate:modelValue": (ee) => l.value[D.key] = ee,
3577
+ modelValue: l.value[S.key],
3578
+ "onUpdate:modelValue": (ee) => l.value[S.key] = ee,
3556
3579
  placeholder: "Поиск...",
3557
3580
  type: "number"
3558
3581
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : L("", !0),
3559
- Object.hasOwn(D, "search") && typeof D.search == "function" ? (c(), F(Ae(D.search()), { key: 2 })) : L("", !0),
3560
- Object.hasOwn(D, "search") && Array.isArray(D.search) ? (c(), F(In, {
3582
+ Object.hasOwn(S, "search") && typeof S.search == "function" ? (c(), F(Ae(S.search()), { key: 2 })) : L("", !0),
3583
+ Object.hasOwn(S, "search") && Array.isArray(S.search) ? (c(), F(In, {
3561
3584
  key: 3,
3562
- modelValue: l.value[D.key],
3563
- "onUpdate:modelValue": (ee) => l.value[D.key] = ee,
3585
+ modelValue: l.value[S.key],
3586
+ "onUpdate:modelValue": (ee) => l.value[S.key] = ee,
3564
3587
  size: "wide",
3565
- options: [{ label: "Все", value: "" }, ...D.search]
3588
+ options: [{ label: "Все", value: "" }, ...S.search]
3566
3589
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : L("", !0)
3567
3590
  ]))), 128))
3568
3591
  ]),
3569
- (c(!0), b(pe, null, Ce(g.value, (D) => (c(), b("tr", {
3570
- key: D.id,
3571
- class: ae(["d-row", Q(B).getters.getSelected(n.id).includes(D.id) ? "active" : ""]),
3572
- onClick: (N) => x(D)
3592
+ (c(!0), b(pe, null, Ce(y.value, (S) => (c(), b("tr", {
3593
+ key: S.id,
3594
+ class: ae(["d-row", Q(B).getters.getSelected(n.id).includes(S.id) ? "active" : ""]),
3595
+ onClick: (R) => x(S)
3573
3596
  }, [
3574
3597
  n.selectable === "check" ? (c(), b("td", Vl, [
3575
3598
  A(on, {
3576
- checked: _(D.id),
3577
- onChange: (N) => C(N, D.id)
3599
+ checked: D(S.id),
3600
+ onChange: (R) => C(R, S.id)
3578
3601
  }, null, 8, ["checked", "onChange"])
3579
3602
  ])) : L("", !0),
3580
- (c(!0), b(pe, null, Ce(n.columns, (N, ee) => (c(), b("td", {
3603
+ (c(!0), b(pe, null, Ce(n.columns, (R, ee) => (c(), b("td", {
3581
3604
  key: ee,
3582
3605
  class: "d-cell",
3583
- onPointerdownCapture: (ne) => f(ne, D)
3606
+ onPointerdownCapture: (ne) => f(ne, S)
3584
3607
  }, [
3585
- N.render ? (c(), F(Ae(N.render(D, N.key)), { key: 0 })) : (c(), b("div", Fl, G(D[N.key]), 1))
3608
+ R.render ? (c(), F(Ae(R.render(S, R.key)), { key: 0 })) : (c(), b("div", Fl, G(S[R.key]), 1))
3586
3609
  ], 40, zl))), 128))
3587
3610
  ], 10, Il))), 128))
3588
3611
  ])
@@ -3591,16 +3614,16 @@ const Qm = {
3591
3614
  n.footerShow ? (c(), b("div", Al, [
3592
3615
  A(ta, {
3593
3616
  modelValue: a.value,
3594
- "onUpdate:modelValue": y[1] || (y[1] = (D) => a.value = D),
3617
+ "onUpdate:modelValue": g[1] || (g[1] = (S) => a.value = S),
3595
3618
  "total-records": Q(B).getters.getItems(n.id).length,
3596
3619
  "per-page": parseInt(o.value)
3597
3620
  }, null, 8, ["modelValue", "total-records", "per-page"]),
3598
3621
  P("div", Hl, [
3599
- P("div", Rl, G(n.pageReport.replace("{startCount}", a.value * o.value - o.value + 1).replace("{endCount}", a.value * o.value - o.value + g.value.length).replace("{totalCount}", Q(B).getters.getItems(n.id).length)), 1),
3622
+ P("div", Rl, G(n.pageReport.replace("{startCount}", a.value * o.value - o.value + 1).replace("{endCount}", a.value * o.value - o.value + y.value.length).replace("{totalCount}", Q(B).getters.getItems(n.id).length)), 1),
3600
3623
  A(In, {
3601
3624
  modelValue: s.value,
3602
- "onUpdate:modelValue": y[2] || (y[2] = (D) => s.value = D),
3603
- options: S.value,
3625
+ "onUpdate:modelValue": g[2] || (g[2] = (S) => s.value = S),
3626
+ options: k.value,
3604
3627
  onChange: $
3605
3628
  }, null, 8, ["modelValue", "options"])
3606
3629
  ])
@@ -3669,23 +3692,23 @@ const Qm = {
3669
3692
  const {
3670
3693
  offsetX: v,
3671
3694
  offsetY: h,
3672
- width: _,
3695
+ width: D,
3673
3696
  height: C
3674
3697
  } = d(t.width, t.height, l.width, l.height);
3675
- a.drawImage(l, v, h, _, C), e("loaded"), i.value = !1;
3698
+ a.drawImage(l, v, h, D, C), e("loaded"), i.value = !1;
3676
3699
  } else
3677
3700
  s.value = l.src, e("loaded"), i.value = !1;
3678
3701
  }, l.onerror = () => {
3679
3702
  l.src = t.srcFail, e("loaded"), i.value = !1;
3680
3703
  };
3681
- const d = (v, h, _, C, E = 1, g = 0.5, S = 0.5) => {
3682
- const x = _ / C, $ = v / h;
3704
+ const d = (v, h, D, C, E = 1, y = 0.5, k = 0.5) => {
3705
+ const x = D / C, $ = v / h;
3683
3706
  let f = v * E, u = h * E;
3684
3707
  return x < $ ? u = f / x : f = u * x, {
3685
3708
  width: f,
3686
3709
  height: u,
3687
- offsetX: (v - f) * g,
3688
- offsetY: (h - u) * S
3710
+ offsetX: (v - f) * y,
3711
+ offsetY: (h - u) * k
3689
3712
  };
3690
3713
  };
3691
3714
  return Be(() => {
@@ -3792,7 +3815,7 @@ const Qm = {
3792
3815
  o.value.style.height = "auto";
3793
3816
  }, h = ($) => {
3794
3817
  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();
3795
- }, _ = () => {
3818
+ }, D = () => {
3796
3819
  n.autoHeight && (o.value.style.height = "auto", o.value.style.height = `${o.value.scrollHeight}px`);
3797
3820
  }, C = () => o, E = ($) => {
3798
3821
  t("change", $);
@@ -3805,7 +3828,7 @@ const Qm = {
3805
3828
  validate: l,
3806
3829
  getRef: () => o,
3807
3830
  reset: v,
3808
- update: _,
3831
+ update: D,
3809
3832
  element: C,
3810
3833
  blur: ($) => {
3811
3834
  t("blur", $);
@@ -3819,7 +3842,7 @@ const Qm = {
3819
3842
  ref_key: "inputRef",
3820
3843
  ref: o,
3821
3844
  "onUpdate:modelValue": f[0] || (f[0] = (u) => i.value = u),
3822
- "on:update:modelValue": _,
3845
+ "on:update:modelValue": D,
3823
3846
  onInput: h,
3824
3847
  onChange: E,
3825
3848
  rows: n.rows,
@@ -3918,7 +3941,7 @@ const Qm = {
3918
3941
  set: (u) => {
3919
3942
  t("update:modelValue", u);
3920
3943
  }
3921
- }), _ = T(() => n.scale), C = (u) => {
3944
+ }), D = T(() => n.scale), C = (u) => {
3922
3945
  t("input", u), E();
3923
3946
  }, E = () => {
3924
3947
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
@@ -3927,11 +3950,11 @@ const Qm = {
3927
3950
  Be(() => {
3928
3951
  l.value = n.readonly, !n.autocomplete && !l.value && (l.value = !0, setTimeout(() => {
3929
3952
  l.value = !1;
3930
- }, 500)), g();
3953
+ }, 500)), y();
3931
3954
  });
3932
- const g = () => {
3955
+ const y = () => {
3933
3956
  v.value?.focus();
3934
- }, S = () => {
3957
+ }, k = () => {
3935
3958
  d.value = d.value === "password" ? "text" : "password";
3936
3959
  }, x = (u) => {
3937
3960
  i.value = u;
@@ -3941,11 +3964,11 @@ const Qm = {
3941
3964
  t("blur", u);
3942
3965
  };
3943
3966
  return e({
3944
- focus: g,
3967
+ focus: y,
3945
3968
  setError: $,
3946
3969
  validate: E
3947
3970
  }), (u, p) => (c(), b("div", {
3948
- class: ae(["d-input-string", _.value])
3971
+ class: ae(["d-input-string", D.value])
3949
3972
  }, [
3950
3973
  P("div", tu, [
3951
3974
  n.label ? (c(), b("div", nu, [
@@ -3958,14 +3981,14 @@ const Qm = {
3958
3981
  id: Q(s),
3959
3982
  ref_key: "inputRef",
3960
3983
  ref: v,
3961
- "onUpdate:modelValue": p[0] || (p[0] = (y) => h.value = y),
3984
+ "onUpdate:modelValue": p[0] || (p[0] = (g) => h.value = g),
3962
3985
  style: { width: "100%" },
3963
3986
  type: d.value,
3964
3987
  placeholder: n.placeholder,
3965
3988
  onInput: C,
3966
- onFocus: p[1] || (p[1] = (y) => x(!0)),
3989
+ onFocus: p[1] || (p[1] = (g) => x(!0)),
3967
3990
  onBlur: f,
3968
- onFocusout: p[2] || (p[2] = (y) => x(!1)),
3991
+ onFocusout: p[2] || (p[2] = (g) => x(!1)),
3969
3992
  class: ae([
3970
3993
  Q(a).pre ? "has-pre" : "",
3971
3994
  Q(a).post ? "has-post" : "",
@@ -3979,7 +4002,7 @@ const Qm = {
3979
4002
  n.toggleView ? (c(), b("div", {
3980
4003
  key: 0,
3981
4004
  class: "d-post-inside-button",
3982
- onClick: S
4005
+ onClick: k
3983
4006
  }, [
3984
4007
  d.value === "password" ? (c(), b("svg", iu, uu)) : (c(), b("svg", cu, fu))
3985
4008
  ])) : L("", !0)
@@ -4130,8 +4153,8 @@ var Qn = Ge({
4130
4153
  left: i - 5 + "px",
4131
4154
  top: l - 5 + "px"
4132
4155
  };
4133
- const d = n.getImageData(Math.min(i, this.size - 1), Math.min(l, this.size - 1), 1, 1), [v, h, _] = d.data;
4134
- this.$emit("selectSaturation", { r: v, g: h, b: _ });
4156
+ const d = n.getImageData(Math.min(i, this.size - 1), Math.min(l, this.size - 1), 1, 1), [v, h, D] = d.data;
4157
+ this.$emit("selectSaturation", { r: v, g: h, b: D });
4135
4158
  };
4136
4159
  a(r);
4137
4160
  const o = () => {
@@ -4427,10 +4450,10 @@ var er = Ge({
4427
4450
  },
4428
4451
  mousemoveHandler(r) {
4429
4452
  const { clientX: e, clientY: t } = r, { top: n, left: a, width: o, height: s } = this.suckerCanvas.getBoundingClientRect(), i = e - a, l = t - n, v = this.suckerCanvas.getContext("2d").getImageData(Math.min(i, o - 1), Math.min(l, s - 1), 1, 1);
4430
- let [h, _, C, E] = v.data;
4453
+ let [h, D, C, E] = v.data;
4431
4454
  E = parseFloat((E / 255).toFixed(2));
4432
- const g = this.suckerPreview.style;
4433
- Object.assign(g, {
4455
+ const y = this.suckerPreview.style;
4456
+ Object.assign(y, {
4434
4457
  position: "absolute",
4435
4458
  left: e + 20 + "px",
4436
4459
  top: t - 36 + "px",
@@ -4439,19 +4462,19 @@ var er = Ge({
4439
4462
  borderRadius: "50%",
4440
4463
  border: "2px solid #fff",
4441
4464
  boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
4442
- background: `rgba(${h}, ${_}, ${C}, ${E})`,
4465
+ background: `rgba(${h}, ${D}, ${C}, ${E})`,
4443
4466
  zIndex: 95
4444
4467
  }), this.suckerArea.length && // @ts-ignore
4445
4468
  e >= this.suckerArea[0] && // @ts-ignore
4446
4469
  t >= this.suckerArea[1] && // @ts-ignore
4447
4470
  e <= this.suckerArea[2] && // @ts-ignore
4448
- t <= this.suckerArea[3] ? g.display = "" : g.display = "none";
4471
+ t <= this.suckerArea[3] ? y.display = "" : y.display = "none";
4449
4472
  },
4450
4473
  suckColor(r) {
4451
4474
  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) => {
4452
4475
  const { clientX: t, clientY: n } = e, { top: a, left: o, width: s, height: i } = r.getBoundingClientRect(), l = t - o, d = n - a, h = r.getContext("2d").getImageData(Math.min(l, s - 1), Math.min(d, i - 1), 1, 1);
4453
- let [_, C, E, g] = h.data;
4454
- g = parseFloat((g / 255).toFixed(2)), this.$emit("selectSucker", { r: _, g: C, b: E, a: g });
4476
+ let [D, C, E, y] = h.data;
4477
+ y = parseFloat((y / 255).toFixed(2)), this.$emit("selectSucker", { r: D, g: C, b: E, a: y });
4455
4478
  }));
4456
4479
  }
4457
4480
  }
@@ -4876,7 +4899,7 @@ var Tt = Ge({
4876
4899
  });
4877
4900
  const Au = { class: "color-set" };
4878
4901
  function Hu(r, e, t, n, a, o) {
4879
- const s = mt("Saturation"), i = mt("Hue"), l = mt("Alpha"), d = mt("Preview"), v = mt("Sucker"), h = mt("Box"), _ = mt("Colors");
4902
+ const s = mt("Saturation"), i = mt("Hue"), l = mt("Alpha"), d = mt("Preview"), v = mt("Sucker"), h = mt("Box"), D = mt("Colors");
4880
4903
  return c(), F(
4881
4904
  "div",
4882
4905
  {
@@ -4945,7 +4968,7 @@ function Hu(r, e, t, n, a, o) {
4945
4968
  onInputFocus: r.handleFocus,
4946
4969
  onInputBlur: r.handleBlur
4947
4970
  }, null, 8, ["color", "onInputColor", "onInputFocus", "onInputBlur"]),
4948
- A(_, {
4971
+ A(D, {
4949
4972
  color: r.rgbaString,
4950
4973
  "colors-default": r.colorsDefault,
4951
4974
  "colors-history-key": r.colorsHistoryKey,
@@ -5006,18 +5029,18 @@ const Ru = /* @__PURE__ */ P("div", { class: "color-indicator" }, null, -1), Nu
5006
5029
  }
5007
5030
  }, v = () => {
5008
5031
  if (t.format === "rgba") {
5009
- const { r: h, g: _, b: C, a: E } = s.value;
5010
- n.value = `rgba(${h}, ${_}, ${C}, ${E})`;
5032
+ const { r: h, g: D, b: C, a: E } = s.value;
5033
+ n.value = `rgba(${h}, ${D}, ${C}, ${E})`;
5011
5034
  } else
5012
5035
  n.value = s.value;
5013
5036
  a.value.hide(), e("change", n.value);
5014
5037
  };
5015
- return (h, _) => (c(), b("div", null, [
5038
+ return (h, D) => (c(), b("div", null, [
5016
5039
  A(et, {
5017
5040
  pre: d,
5018
5041
  label: t.label,
5019
5042
  modelValue: n.value,
5020
- "onUpdate:modelValue": _[0] || (_[0] = (C) => n.value = C),
5043
+ "onUpdate:modelValue": D[0] || (D[0] = (C) => n.value = C),
5021
5044
  onClick: l,
5022
5045
  readonly: !0
5023
5046
  }, {
@@ -5046,7 +5069,7 @@ const Ru = /* @__PURE__ */ P("div", { class: "color-indicator" }, null, -1), Nu
5046
5069
  "modal-footer": X(() => [
5047
5070
  P("div", Nu, [
5048
5071
  A(fe, {
5049
- onClick: _[1] || (_[1] = (C) => a.value.hide())
5072
+ onClick: D[1] || (D[1] = (C) => a.value.hide())
5050
5073
  }, {
5051
5074
  default: X(() => [
5052
5075
  se(G(t.close), 1)
@@ -5583,14 +5606,14 @@ function ia(r) {
5583
5606
  return e.style = i[e.dir][e.ort], e;
5584
5607
  }
5585
5608
  function Dc(r, e, t) {
5586
- var n = Gu(), a = Ku(), o = a && Qu(), s = r, i, l, d, v, h, _, C = e.spectrum, E = [], g = [], S = [], x = 0, $ = {}, f = !1, u = r.ownerDocument, p = e.documentElement || u.documentElement, y = u.body, D = u.dir === "rtl" || e.ort === 1 ? 0 : 100;
5587
- function N(m, w) {
5588
- var k = u.createElement("div");
5589
- return w && je(k, w), m.appendChild(k), k;
5609
+ var n = Gu(), a = Ku(), o = a && Qu(), s = r, i, l, d, v, h, D, C = e.spectrum, E = [], y = [], k = [], x = 0, $ = {}, f = !1, u = r.ownerDocument, p = e.documentElement || u.documentElement, g = u.body, S = u.dir === "rtl" || e.ort === 1 ? 0 : 100;
5610
+ function R(m, w) {
5611
+ var _ = u.createElement("div");
5612
+ return w && je(_, w), m.appendChild(_), _;
5590
5613
  }
5591
5614
  function ee(m, w) {
5592
- var k = N(m, e.cssClasses.origin), H = N(k, e.cssClasses.handle);
5593
- if (N(H, e.cssClasses.touchArea), H.setAttribute("data-handle", String(w)), e.keyboardSupport && (H.setAttribute("tabindex", "0"), H.addEventListener("keydown", function(j) {
5615
+ var _ = R(m, e.cssClasses.origin), H = R(_, e.cssClasses.handle);
5616
+ if (R(H, e.cssClasses.touchArea), H.setAttribute("data-handle", String(w)), e.keyboardSupport && (H.setAttribute("tabindex", "0"), H.addEventListener("keydown", function(j) {
5594
5617
  return Pa(j, w);
5595
5618
  })), e.handleAttributes !== void 0) {
5596
5619
  var Y = e.handleAttributes[w];
@@ -5598,23 +5621,23 @@ function Dc(r, e, t) {
5598
5621
  H.setAttribute(j, Y[j]);
5599
5622
  });
5600
5623
  }
5601
- return H.setAttribute("role", "slider"), H.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), w === 0 ? je(H, e.cssClasses.handleLower) : w === e.handles - 1 && je(H, e.cssClasses.handleUpper), k.handle = H, k;
5624
+ return H.setAttribute("role", "slider"), H.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), w === 0 ? je(H, e.cssClasses.handleLower) : w === e.handles - 1 && je(H, e.cssClasses.handleUpper), _.handle = H, _;
5602
5625
  }
5603
5626
  function ne(m, w) {
5604
- return w ? N(m, e.cssClasses.connect) : !1;
5627
+ return w ? R(m, e.cssClasses.connect) : !1;
5605
5628
  }
5606
5629
  function W(m, w) {
5607
- l = N(w, e.cssClasses.connects), d = [], v = [], v.push(ne(l, m[0]));
5608
- for (var k = 0; k < e.handles; k++)
5609
- d.push(ee(w, k)), S[k] = k, v.push(ne(l, m[k + 1]));
5630
+ l = R(w, e.cssClasses.connects), d = [], v = [], v.push(ne(l, m[0]));
5631
+ for (var _ = 0; _ < e.handles; _++)
5632
+ d.push(ee(w, _)), k[_] = _, v.push(ne(l, m[_ + 1]));
5610
5633
  }
5611
5634
  function me(m) {
5612
5635
  je(m, e.cssClasses.target), e.dir === 0 ? je(m, e.cssClasses.ltr) : je(m, e.cssClasses.rtl), e.ort === 0 ? je(m, e.cssClasses.horizontal) : je(m, e.cssClasses.vertical);
5613
5636
  var w = getComputedStyle(m).direction;
5614
- return w === "rtl" ? je(m, e.cssClasses.textDirectionRtl) : je(m, e.cssClasses.textDirectionLtr), N(m, e.cssClasses.base);
5637
+ return w === "rtl" ? je(m, e.cssClasses.textDirectionRtl) : je(m, e.cssClasses.textDirectionLtr), R(m, e.cssClasses.base);
5615
5638
  }
5616
5639
  function ie(m, w) {
5617
- return !e.tooltips || !e.tooltips[w] ? !1 : N(m.firstChild, e.cssClasses.tooltip);
5640
+ return !e.tooltips || !e.tooltips[w] ? !1 : R(m.firstChild, e.cssClasses.tooltip);
5618
5641
  }
5619
5642
  function V() {
5620
5643
  return s.hasAttribute("disabled");
@@ -5634,22 +5657,22 @@ function Dc(r, e, t) {
5634
5657
  }));
5635
5658
  }
5636
5659
  function ve() {
5637
- _ && (Et("update" + ft.tooltips), _.forEach(function(m) {
5660
+ D && (Et("update" + ft.tooltips), D.forEach(function(m) {
5638
5661
  m && $r(m);
5639
- }), _ = null);
5662
+ }), D = null);
5640
5663
  }
5641
5664
  function qe() {
5642
- ve(), _ = d.map(ie), bn("update" + ft.tooltips, function(m, w, k) {
5643
- if (!(!_ || !e.tooltips) && _[w] !== !1) {
5665
+ ve(), D = d.map(ie), bn("update" + ft.tooltips, function(m, w, _) {
5666
+ if (!(!D || !e.tooltips) && D[w] !== !1) {
5644
5667
  var H = m[w];
5645
- e.tooltips[w] !== !0 && (H = e.tooltips[w].to(k[w])), _[w].innerHTML = H;
5668
+ e.tooltips[w] !== !0 && (H = e.tooltips[w].to(_[w])), D[w].innerHTML = H;
5646
5669
  }
5647
5670
  });
5648
5671
  }
5649
5672
  function we() {
5650
- Et("update" + ft.aria), bn("update" + ft.aria, function(m, w, k, H, Y) {
5651
- S.forEach(function(j) {
5652
- var re = d[j], J = Zt(g, j, 0, !0, !0, !0), xe = Zt(g, j, 100, !0, !0, !0), ke = Y[j], $e = String(e.ariaFormat.to(k[j]));
5673
+ Et("update" + ft.aria), bn("update" + ft.aria, function(m, w, _, H, Y) {
5674
+ k.forEach(function(j) {
5675
+ var re = d[j], J = Zt(y, j, 0, !0, !0, !0), xe = Zt(y, j, 100, !0, !0, !0), ke = Y[j], $e = String(e.ariaFormat.to(_[j]));
5653
5676
  J = C.fromStepping(J).toFixed(1), xe = C.fromStepping(xe).toFixed(1), ke = C.fromStepping(ke).toFixed(1), re.children[0].setAttribute("aria-valuemin", J), re.children[0].setAttribute("aria-valuemax", xe), re.children[0].setAttribute("aria-valuenow", ke), re.children[0].setAttribute("aria-valuetext", $e);
5654
5677
  });
5655
5678
  });
@@ -5660,8 +5683,8 @@ function Dc(r, e, t) {
5660
5683
  if (m.mode === ht.Count) {
5661
5684
  if (m.values < 2)
5662
5685
  throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
5663
- for (var w = m.values - 1, k = 100 / w, H = []; w--; )
5664
- H[w] = w * k;
5686
+ for (var w = m.values - 1, _ = 100 / w, H = []; w--; )
5687
+ H[w] = w * _;
5665
5688
  return H.push(100), Ue(H, m.stepped);
5666
5689
  }
5667
5690
  return m.mode === ht.Positions ? Ue(m.values, m.stepped) : m.mode === ht.Values ? m.stepped ? m.values.map(function(Y) {
@@ -5669,27 +5692,27 @@ function Dc(r, e, t) {
5669
5692
  }) : m.values : [];
5670
5693
  }
5671
5694
  function Ue(m, w) {
5672
- return m.map(function(k) {
5673
- return C.fromStepping(w ? C.getStep(k) : k);
5695
+ return m.map(function(_) {
5696
+ return C.fromStepping(w ? C.getStep(_) : _);
5674
5697
  });
5675
5698
  }
5676
5699
  function Z(m) {
5677
5700
  function w(ke, $e) {
5678
5701
  return Number((ke + $e).toFixed(7));
5679
5702
  }
5680
- var k = _e(m), H = {}, Y = C.xVal[0], j = C.xVal[C.xVal.length - 1], re = !1, J = !1, xe = 0;
5681
- return k = ju(k.slice().sort(function(ke, $e) {
5703
+ var _ = _e(m), H = {}, Y = C.xVal[0], j = C.xVal[C.xVal.length - 1], re = !1, J = !1, xe = 0;
5704
+ return _ = ju(_.slice().sort(function(ke, $e) {
5682
5705
  return ke - $e;
5683
- })), k[0] !== Y && (k.unshift(Y), re = !0), k[k.length - 1] !== j && (k.push(j), J = !0), k.forEach(function(ke, $e) {
5684
- var Me, ye, Ve, Ye = ke, Fe = k[$e + 1], Ne, kn, Sn, _n, gr, Dn, yr, br = m.mode === ht.Steps;
5706
+ })), _[0] !== Y && (_.unshift(Y), re = !0), _[_.length - 1] !== j && (_.push(j), J = !0), _.forEach(function(ke, $e) {
5707
+ var Me, ye, Ve, Ye = ke, Fe = _[$e + 1], Ne, kn, Sn, _n, gr, Dn, yr, br = m.mode === ht.Steps;
5685
5708
  for (br && (Me = C.xNumSteps[$e]), Me || (Me = Fe - Ye), Fe === void 0 && (Fe = Ye), Me = Math.max(Me, 1e-7), ye = Ye; ye <= Fe; ye = w(ye, Me)) {
5686
5709
  for (Ne = C.toStepping(ye), kn = Ne - xe, gr = kn / (m.density || 1), Dn = Math.round(gr), yr = kn / Dn, Ve = 1; Ve <= Dn; Ve += 1)
5687
5710
  Sn = xe + Ve * yr, H[Sn.toFixed(5)] = [C.fromStepping(Sn), 0];
5688
- _n = k.indexOf(ye) > -1 ? Xe.LargeValue : br ? Xe.SmallValue : Xe.NoValue, !$e && re && ye !== Fe && (_n = 0), ye === Fe && J || (H[Ne.toFixed(5)] = [ye, _n]), xe = Ne;
5711
+ _n = _.indexOf(ye) > -1 ? Xe.LargeValue : br ? Xe.SmallValue : Xe.NoValue, !$e && re && ye !== Fe && (_n = 0), ye === Fe && J || (H[Ne.toFixed(5)] = [ye, _n]), xe = Ne;
5689
5712
  }
5690
5713
  }), H;
5691
5714
  }
5692
- function M(m, w, k) {
5715
+ function M(m, w, _) {
5693
5716
  var H, Y, j = u.createElement("div"), re = (H = {}, H[Xe.None] = "", H[Xe.NoValue] = e.cssClasses.valueNormal, H[Xe.LargeValue] = e.cssClasses.valueLarge, H[Xe.SmallValue] = e.cssClasses.valueSub, H), J = (Y = {}, Y[Xe.None] = "", Y[Xe.NoValue] = e.cssClasses.markerNormal, Y[Xe.LargeValue] = e.cssClasses.markerLarge, Y[Xe.SmallValue] = e.cssClasses.markerSub, Y), xe = [e.cssClasses.valueHorizontal, e.cssClasses.valueVertical], ke = [e.cssClasses.markerHorizontal, e.cssClasses.markerVertical];
5694
5717
  je(j, e.cssClasses.pips), je(j, e.ort === 0 ? e.cssClasses.pipsHorizontal : e.cssClasses.pipsVertical);
5695
5718
  function $e(ye, Ve) {
@@ -5698,8 +5721,8 @@ function Dc(r, e, t) {
5698
5721
  }
5699
5722
  function Me(ye, Ve, Ye) {
5700
5723
  if (Ye = w ? w(Ve, Ye) : Ye, Ye !== Xe.None) {
5701
- var Fe = N(j, !1);
5702
- Fe.className = $e(Ye, e.cssClasses.marker), Fe.style[e.style] = ye + "%", Ye > Xe.NoValue && (Fe = N(j, !1), Fe.className = $e(Ye, e.cssClasses.value), Fe.setAttribute("data-value", String(Ve)), Fe.style[e.style] = ye + "%", Fe.innerHTML = String(k.to(Ve)));
5724
+ var Fe = R(j, !1);
5725
+ Fe.className = $e(Ye, e.cssClasses.marker), Fe.style[e.style] = ye + "%", Ye > Xe.NoValue && (Fe = R(j, !1), Fe.className = $e(Ye, e.cssClasses.value), Fe.setAttribute("data-value", String(Ve)), Fe.style[e.style] = ye + "%", Fe.innerHTML = String(_.to(Ve)));
5703
5726
  }
5704
5727
  }
5705
5728
  return Object.keys(m).forEach(function(ye) {
@@ -5711,36 +5734,36 @@ function Dc(r, e, t) {
5711
5734
  }
5712
5735
  function z(m) {
5713
5736
  O();
5714
- var w = Z(m), k = m.filter, H = m.format || {
5737
+ var w = Z(m), _ = m.filter, H = m.format || {
5715
5738
  to: function(Y) {
5716
5739
  return String(Math.round(Y));
5717
5740
  }
5718
5741
  };
5719
- return h = s.appendChild(M(w, k, H)), h;
5742
+ return h = s.appendChild(M(w, _, H)), h;
5720
5743
  }
5721
- function R() {
5744
+ function N() {
5722
5745
  var m = i.getBoundingClientRect(), w = "offset" + ["Width", "Height"][e.ort];
5723
5746
  return e.ort === 0 ? m.width || i[w] : m.height || i[w];
5724
5747
  }
5725
- function U(m, w, k, H) {
5748
+ function U(m, w, _, H) {
5726
5749
  var Y = function(re) {
5727
5750
  var J = oe(re, H.pageOffset, H.target || w);
5728
5751
  if (!J || V() && !H.doNotReject || Xu(s, e.cssClasses.tap) && !H.doNotReject || m === n.start && J.buttons !== void 0 && J.buttons > 1 || H.hover && J.buttons)
5729
5752
  return !1;
5730
- o || J.preventDefault(), J.calcPoint = J.points[e.ort], k(J, H);
5753
+ o || J.preventDefault(), J.calcPoint = J.points[e.ort], _(J, H);
5731
5754
  }, j = [];
5732
5755
  return m.split(" ").forEach(function(re) {
5733
5756
  w.addEventListener(re, Y, o ? { passive: !0 } : !1), j.push([re, Y]);
5734
5757
  }), j;
5735
5758
  }
5736
- function oe(m, w, k) {
5759
+ function oe(m, w, _) {
5737
5760
  var H = m.type.indexOf("touch") === 0, Y = m.type.indexOf("mouse") === 0, j = m.type.indexOf("pointer") === 0, re = 0, J = 0;
5738
5761
  if (m.type.indexOf("MSPointer") === 0 && (j = !0), m.type === "mousedown" && !m.buttons && !m.touches)
5739
5762
  return !1;
5740
5763
  if (H) {
5741
5764
  var xe = function(Me) {
5742
5765
  var ye = Me.target;
5743
- return ye === k || k.contains(ye) || m.composed && m.composedPath().shift() === k;
5766
+ return ye === _ || _.contains(ye) || m.composed && m.composedPath().shift() === _;
5744
5767
  };
5745
5768
  if (m.type === "touchstart") {
5746
5769
  var ke = Array.prototype.filter.call(m.touches, xe);
@@ -5757,17 +5780,17 @@ function Dc(r, e, t) {
5757
5780
  return w = w || na(u), (Y || j) && (re = m.clientX + w.x, J = m.clientY + w.y), m.pageOffset = w, m.points = [re, J], m.cursor = Y || j, m;
5758
5781
  }
5759
5782
  function de(m) {
5760
- var w = m - qu(i, e.ort), k = w * 100 / R();
5761
- return k = Tr(k), e.dir ? 100 - k : k;
5783
+ var w = m - qu(i, e.ort), _ = w * 100 / N();
5784
+ return _ = Tr(_), e.dir ? 100 - _ : _;
5762
5785
  }
5763
5786
  function ze(m) {
5764
- var w = 100, k = !1;
5787
+ var w = 100, _ = !1;
5765
5788
  return d.forEach(function(H, Y) {
5766
5789
  if (!K(Y)) {
5767
- var j = g[Y], re = Math.abs(j - m), J = re === 100 && w === 100, xe = re < w, ke = re <= w && m > j;
5768
- (xe || ke || J) && (k = Y, w = re);
5790
+ var j = y[Y], re = Math.abs(j - m), J = re === 100 && w === 100, xe = re < w, ke = re <= w && m > j;
5791
+ (xe || ke || J) && (_ = Y, w = re);
5769
5792
  }
5770
- }), k;
5793
+ }), _;
5771
5794
  }
5772
5795
  function tt(m, w) {
5773
5796
  m.type === "mouseout" && m.target.nodeName === "HTML" && m.relatedTarget === null && Lt(m, w);
@@ -5775,66 +5798,66 @@ function Dc(r, e, t) {
5775
5798
  function Kt(m, w) {
5776
5799
  if (navigator.appVersion.indexOf("MSIE 9") === -1 && m.buttons === 0 && w.buttonsProperty !== 0)
5777
5800
  return Lt(m, w);
5778
- var k = (e.dir ? -1 : 1) * (m.calcPoint - w.startCalcPoint), H = k * 100 / w.baseSize;
5779
- dr(k > 0, H, w.locations, w.handleNumbers, w.connect);
5801
+ var _ = (e.dir ? -1 : 1) * (m.calcPoint - w.startCalcPoint), H = _ * 100 / w.baseSize;
5802
+ dr(_ > 0, H, w.locations, w.handleNumbers, w.connect);
5780
5803
  }
5781
5804
  function Lt(m, w) {
5782
- w.handle && (rn(w.handle, e.cssClasses.active), x -= 1), w.listeners.forEach(function(k) {
5783
- p.removeEventListener(k[0], k[1]);
5784
- }), x === 0 && (rn(s, e.cssClasses.drag), xn(), m.cursor && (y.style.cursor = "", y.removeEventListener("selectstart", Mr))), e.events.smoothSteps && (w.handleNumbers.forEach(function(k) {
5785
- vt(k, g[k], !0, !0, !1, !1);
5786
- }), w.handleNumbers.forEach(function(k) {
5787
- Le("update", k);
5788
- })), w.handleNumbers.forEach(function(k) {
5789
- Le("change", k), Le("set", k), Le("end", k);
5805
+ w.handle && (rn(w.handle, e.cssClasses.active), x -= 1), w.listeners.forEach(function(_) {
5806
+ p.removeEventListener(_[0], _[1]);
5807
+ }), x === 0 && (rn(s, e.cssClasses.drag), xn(), m.cursor && (g.style.cursor = "", g.removeEventListener("selectstart", Mr))), e.events.smoothSteps && (w.handleNumbers.forEach(function(_) {
5808
+ vt(_, y[_], !0, !0, !1, !1);
5809
+ }), w.handleNumbers.forEach(function(_) {
5810
+ Le("update", _);
5811
+ })), w.handleNumbers.forEach(function(_) {
5812
+ Le("change", _), Le("set", _), Le("end", _);
5790
5813
  });
5791
5814
  }
5792
5815
  function Dt(m, w) {
5793
5816
  if (!w.handleNumbers.some(K)) {
5794
- var k;
5817
+ var _;
5795
5818
  if (w.handleNumbers.length === 1) {
5796
5819
  var H = d[w.handleNumbers[0]];
5797
- k = H.children[0], x += 1, je(k, e.cssClasses.active);
5820
+ _ = H.children[0], x += 1, je(_, e.cssClasses.active);
5798
5821
  }
5799
5822
  m.stopPropagation();
5800
5823
  var Y = [], j = U(n.move, p, Kt, {
5801
5824
  // The event target has changed so we need to propagate the original one so that we keep
5802
5825
  // relying on it to extract target touches.
5803
5826
  target: m.target,
5804
- handle: k,
5827
+ handle: _,
5805
5828
  connect: w.connect,
5806
5829
  listeners: Y,
5807
5830
  startCalcPoint: m.calcPoint,
5808
- baseSize: R(),
5831
+ baseSize: N(),
5809
5832
  pageOffset: m.pageOffset,
5810
5833
  handleNumbers: w.handleNumbers,
5811
5834
  buttonsProperty: m.buttons,
5812
- locations: g.slice()
5835
+ locations: y.slice()
5813
5836
  }), re = U(n.end, p, Lt, {
5814
5837
  target: m.target,
5815
- handle: k,
5838
+ handle: _,
5816
5839
  listeners: Y,
5817
5840
  doNotReject: !0,
5818
5841
  handleNumbers: w.handleNumbers
5819
5842
  }), J = U("mouseout", p, tt, {
5820
5843
  target: m.target,
5821
- handle: k,
5844
+ handle: _,
5822
5845
  listeners: Y,
5823
5846
  doNotReject: !0,
5824
5847
  handleNumbers: w.handleNumbers
5825
5848
  });
5826
- Y.push.apply(Y, j.concat(re, J)), m.cursor && (y.style.cursor = getComputedStyle(m.target).cursor, d.length > 1 && je(s, e.cssClasses.drag), y.addEventListener("selectstart", Mr, !1)), w.handleNumbers.forEach(function(xe) {
5849
+ Y.push.apply(Y, j.concat(re, J)), m.cursor && (g.style.cursor = getComputedStyle(m.target).cursor, d.length > 1 && je(s, e.cssClasses.drag), g.addEventListener("selectstart", Mr, !1)), w.handleNumbers.forEach(function(xe) {
5827
5850
  Le("start", xe);
5828
5851
  });
5829
5852
  }
5830
5853
  }
5831
5854
  function $a(m) {
5832
5855
  m.stopPropagation();
5833
- var w = de(m.calcPoint), k = ze(w);
5834
- k !== !1 && (e.events.snap || Pr(s, e.cssClasses.tap, e.animationDuration), vt(k, w, !0, !0), xn(), Le("slide", k, !0), Le("update", k, !0), e.events.snap ? Dt(m, { handleNumbers: [k] }) : (Le("change", k, !0), Le("set", k, !0)));
5856
+ var w = de(m.calcPoint), _ = ze(w);
5857
+ _ !== !1 && (e.events.snap || Pr(s, e.cssClasses.tap, e.animationDuration), vt(_, w, !0, !0), xn(), Le("slide", _, !0), Le("update", _, !0), e.events.snap ? Dt(m, { handleNumbers: [_] }) : (Le("change", _, !0), Le("set", _, !0)));
5835
5858
  }
5836
5859
  function Ma(m) {
5837
- var w = de(m.calcPoint), k = C.getStep(w), H = C.fromStepping(k);
5860
+ var w = de(m.calcPoint), _ = C.getStep(w), H = C.fromStepping(_);
5838
5861
  Object.keys($).forEach(function(Y) {
5839
5862
  Y.split(".")[0] === "hover" && $[Y].forEach(function(j) {
5840
5863
  j.call(en, H);
@@ -5844,9 +5867,9 @@ function Dc(r, e, t) {
5844
5867
  function Pa(m, w) {
5845
5868
  if (V() || K(w))
5846
5869
  return !1;
5847
- var k = ["Left", "Right"], H = ["Down", "Up"], Y = ["PageDown", "PageUp"], j = ["Home", "End"];
5848
- e.dir && !e.ort ? k.reverse() : e.ort && !e.dir && (H.reverse(), Y.reverse());
5849
- var re = m.key.replace("Arrow", ""), J = re === Y[0], xe = re === Y[1], ke = re === H[0] || re === k[0] || J, $e = re === H[1] || re === k[1] || xe, Me = re === j[0], ye = re === j[1];
5870
+ var _ = ["Left", "Right"], H = ["Down", "Up"], Y = ["PageDown", "PageUp"], j = ["Home", "End"];
5871
+ e.dir && !e.ort ? _.reverse() : e.ort && !e.dir && (H.reverse(), Y.reverse());
5872
+ var re = m.key.replace("Arrow", ""), J = re === Y[0], xe = re === Y[1], ke = re === H[0] || re === _[0] || J, $e = re === H[1] || re === _[1] || xe, Me = re === j[0], ye = re === j[1];
5850
5873
  if (!ke && !$e && !Me && !ye)
5851
5874
  return !0;
5852
5875
  m.preventDefault();
@@ -5855,21 +5878,21 @@ function Dc(r, e, t) {
5855
5878
  var Ye = ke ? 0 : 1, Fe = hr(w), Ne = Fe[Ye];
5856
5879
  if (Ne === null)
5857
5880
  return !1;
5858
- Ne === !1 && (Ne = C.getDefaultStep(g[w], ke, e.keyboardDefaultStep)), xe || J ? Ne *= e.keyboardPageMultiplier : Ne *= e.keyboardMultiplier, Ne = Math.max(Ne, 1e-7), Ne = (ke ? -1 : 1) * Ne, Ve = E[w] + Ne;
5881
+ Ne === !1 && (Ne = C.getDefaultStep(y[w], ke, e.keyboardDefaultStep)), xe || J ? Ne *= e.keyboardPageMultiplier : Ne *= e.keyboardMultiplier, Ne = Math.max(Ne, 1e-7), Ne = (ke ? -1 : 1) * Ne, Ve = E[w] + Ne;
5859
5882
  } else ye ? Ve = e.spectrum.xVal[e.spectrum.xVal.length - 1] : Ve = e.spectrum.xVal[0];
5860
5883
  return vt(w, C.toStepping(Ve), !0, !0), Le("slide", w), Le("update", w), Le("change", w), Le("set", w), !1;
5861
5884
  }
5862
5885
  function cr(m) {
5863
- m.fixed || d.forEach(function(w, k) {
5886
+ m.fixed || d.forEach(function(w, _) {
5864
5887
  U(n.start, w.children[0], Dt, {
5865
- handleNumbers: [k]
5888
+ handleNumbers: [_]
5866
5889
  });
5867
5890
  }), m.tap && U(n.start, i, $a, {}), m.hover && U(n.move, i, Ma, {
5868
5891
  hover: !0
5869
- }), m.drag && v.forEach(function(w, k) {
5870
- if (!(w === !1 || k === 0 || k === v.length - 1)) {
5871
- var H = d[k - 1], Y = d[k], j = [w], re = [H, Y], J = [k - 1, k];
5872
- je(w, e.cssClasses.draggable), m.fixed && (j.push(H.children[0]), j.push(Y.children[0])), m.dragAll && (re = d, J = S), j.forEach(function(xe) {
5892
+ }), m.drag && v.forEach(function(w, _) {
5893
+ if (!(w === !1 || _ === 0 || _ === v.length - 1)) {
5894
+ var H = d[_ - 1], Y = d[_], j = [w], re = [H, Y], J = [_ - 1, _];
5895
+ je(w, e.cssClasses.draggable), m.fixed && (j.push(H.children[0]), j.push(Y.children[0])), m.dragAll && (re = d, J = k), j.forEach(function(xe) {
5873
5896
  U(n.start, xe, Dt, {
5874
5897
  handles: re,
5875
5898
  handleNumbers: J,
@@ -5880,7 +5903,7 @@ function Dc(r, e, t) {
5880
5903
  });
5881
5904
  }
5882
5905
  function bn(m, w) {
5883
- $[m] = $[m] || [], $[m].push(w), m.split(".")[0] === "update" && d.forEach(function(k, H) {
5906
+ $[m] = $[m] || [], $[m].push(w), m.split(".")[0] === "update" && d.forEach(function(_, H) {
5884
5907
  Le("update", H);
5885
5908
  });
5886
5909
  }
@@ -5888,13 +5911,13 @@ function Dc(r, e, t) {
5888
5911
  return m === ft.aria || m === ft.tooltips;
5889
5912
  }
5890
5913
  function Et(m) {
5891
- var w = m && m.split(".")[0], k = w ? m.substring(w.length) : m;
5914
+ var w = m && m.split(".")[0], _ = w ? m.substring(w.length) : m;
5892
5915
  Object.keys($).forEach(function(H) {
5893
5916
  var Y = H.split(".")[0], j = H.substring(Y.length);
5894
- (!w || w === Y) && (!k || k === j) && (!Ta(j) || k === j) && delete $[H];
5917
+ (!w || w === Y) && (!_ || _ === j) && (!Ta(j) || _ === j) && delete $[H];
5895
5918
  });
5896
5919
  }
5897
- function Le(m, w, k) {
5920
+ function Le(m, w, _) {
5898
5921
  Object.keys($).forEach(function(H) {
5899
5922
  var Y = H.split(".")[0];
5900
5923
  m === Y && $[H].forEach(function(j) {
@@ -5908,32 +5931,32 @@ function Dc(r, e, t) {
5908
5931
  // Un-formatted slider values
5909
5932
  E.slice(),
5910
5933
  // Event is fired by tap, true or false
5911
- k || !1,
5934
+ _ || !1,
5912
5935
  // Left offset of the handle, in relation to the slider
5913
- g.slice(),
5936
+ y.slice(),
5914
5937
  // add the slider public API to an accessible parameter when this is unavailable
5915
5938
  en
5916
5939
  );
5917
5940
  });
5918
5941
  });
5919
5942
  }
5920
- function Zt(m, w, k, H, Y, j, re) {
5943
+ function Zt(m, w, _, H, Y, j, re) {
5921
5944
  var J;
5922
- return d.length > 1 && !e.events.unconstrained && (H && w > 0 && (J = C.getAbsoluteDistance(m[w - 1], e.margin, !1), k = Math.max(k, J)), Y && w < d.length - 1 && (J = C.getAbsoluteDistance(m[w + 1], e.margin, !0), k = Math.min(k, J))), d.length > 1 && e.limit && (H && w > 0 && (J = C.getAbsoluteDistance(m[w - 1], e.limit, !1), k = Math.min(k, J)), Y && w < d.length - 1 && (J = C.getAbsoluteDistance(m[w + 1], e.limit, !0), k = Math.max(k, J))), e.padding && (w === 0 && (J = C.getAbsoluteDistance(0, e.padding[0], !1), k = Math.max(k, J)), w === d.length - 1 && (J = C.getAbsoluteDistance(100, e.padding[1], !0), k = Math.min(k, J))), re || (k = C.getStep(k)), k = Tr(k), k === m[w] && !j ? !1 : k;
5945
+ return d.length > 1 && !e.events.unconstrained && (H && w > 0 && (J = C.getAbsoluteDistance(m[w - 1], e.margin, !1), _ = Math.max(_, J)), Y && w < d.length - 1 && (J = C.getAbsoluteDistance(m[w + 1], e.margin, !0), _ = Math.min(_, J))), d.length > 1 && e.limit && (H && w > 0 && (J = C.getAbsoluteDistance(m[w - 1], e.limit, !1), _ = Math.min(_, J)), Y && w < d.length - 1 && (J = C.getAbsoluteDistance(m[w + 1], e.limit, !0), _ = Math.max(_, J))), e.padding && (w === 0 && (J = C.getAbsoluteDistance(0, e.padding[0], !1), _ = Math.max(_, J)), w === d.length - 1 && (J = C.getAbsoluteDistance(100, e.padding[1], !0), _ = Math.min(_, J))), re || (_ = C.getStep(_)), _ = Tr(_), _ === m[w] && !j ? !1 : _;
5923
5946
  }
5924
5947
  function wn(m, w) {
5925
- var k = e.ort;
5926
- return (k ? w : m) + ", " + (k ? m : w);
5948
+ var _ = e.ort;
5949
+ return (_ ? w : m) + ", " + (_ ? m : w);
5927
5950
  }
5928
- function dr(m, w, k, H, Y) {
5929
- var j = k.slice(), re = H[0], J = e.events.smoothSteps, xe = [!m, m], ke = [m, !m];
5951
+ function dr(m, w, _, H, Y) {
5952
+ var j = _.slice(), re = H[0], J = e.events.smoothSteps, xe = [!m, m], ke = [m, !m];
5930
5953
  H = H.slice(), m && H.reverse(), H.length > 1 ? H.forEach(function(Me, ye) {
5931
5954
  var Ve = Zt(j, Me, j[Me] + w, xe[ye], ke[ye], !1, J);
5932
5955
  Ve === !1 ? w = 0 : (w = Ve - j[Me], j[Me] = Ve);
5933
5956
  }) : xe = ke = [!0];
5934
5957
  var $e = !1;
5935
5958
  H.forEach(function(Me, ye) {
5936
- $e = vt(Me, k[Me] + w, xe[ye], ke[ye], !1, J) || $e;
5959
+ $e = vt(Me, _[Me] + w, xe[ye], ke[ye], !1, J) || $e;
5937
5960
  }), $e && (H.forEach(function(Me) {
5938
5961
  Le("update", Me), Le("slide", Me);
5939
5962
  }), Y != null && Le("drag", re));
@@ -5942,10 +5965,10 @@ function Dc(r, e, t) {
5942
5965
  return e.dir ? 100 - m - w : m;
5943
5966
  }
5944
5967
  function Oa(m, w) {
5945
- g[m] = w, E[m] = C.fromStepping(w);
5946
- var k = fr(w, 0) - D, H = "translate(" + wn(k + "%", "0") + ")";
5947
- if (d[m].style[e.transformRule] = H, e.events.invertConnects && g.length > 1) {
5948
- var Y = g.every(function(j, re, J) {
5968
+ y[m] = w, E[m] = C.fromStepping(w);
5969
+ var _ = fr(w, 0) - S, H = "translate(" + wn(_ + "%", "0") + ")";
5970
+ if (d[m].style[e.transformRule] = H, e.events.invertConnects && y.length > 1) {
5971
+ var Y = y.every(function(j, re, J) {
5949
5972
  return re === 0 || j >= J[re - 1];
5950
5973
  });
5951
5974
  if (f !== !Y) {
@@ -5956,56 +5979,56 @@ function Dc(r, e, t) {
5956
5979
  It(m), It(m + 1), f && (It(m - 1), It(m + 2));
5957
5980
  }
5958
5981
  function xn() {
5959
- S.forEach(function(m) {
5960
- var w = g[m] > 50 ? -1 : 1, k = 3 + (d.length + w * m);
5961
- d[m].style.zIndex = String(k);
5982
+ k.forEach(function(m) {
5983
+ var w = y[m] > 50 ? -1 : 1, _ = 3 + (d.length + w * m);
5984
+ d[m].style.zIndex = String(_);
5962
5985
  });
5963
5986
  }
5964
- function vt(m, w, k, H, Y, j) {
5965
- return Y || (w = Zt(g, m, w, k, H, !1, j)), w === !1 ? !1 : (Oa(m, w), !0);
5987
+ function vt(m, w, _, H, Y, j) {
5988
+ return Y || (w = Zt(y, m, w, _, H, !1, j)), w === !1 ? !1 : (Oa(m, w), !0);
5966
5989
  }
5967
5990
  function It(m) {
5968
5991
  if (v[m]) {
5969
- var w = g.slice();
5992
+ var w = y.slice();
5970
5993
  f && w.sort(function(J, xe) {
5971
5994
  return J - xe;
5972
5995
  });
5973
- var k = 0, H = 100;
5974
- m !== 0 && (k = w[m - 1]), m !== v.length - 1 && (H = w[m]);
5975
- var Y = H - k, j = "translate(" + wn(fr(k, Y) + "%", "0") + ")", re = "scale(" + wn(Y / 100, "1") + ")";
5996
+ var _ = 0, H = 100;
5997
+ m !== 0 && (_ = w[m - 1]), m !== v.length - 1 && (H = w[m]);
5998
+ var Y = H - _, j = "translate(" + wn(fr(_, Y) + "%", "0") + ")", re = "scale(" + wn(Y / 100, "1") + ")";
5976
5999
  v[m].style[e.transformRule] = j + " " + re;
5977
6000
  }
5978
6001
  }
5979
6002
  function pr(m, w) {
5980
- return m === null || m === !1 || m === void 0 || (typeof m == "number" && (m = String(m)), m = e.format.from(m), m !== !1 && (m = C.toStepping(m)), m === !1 || isNaN(m)) ? g[w] : m;
6003
+ return m === null || m === !1 || m === void 0 || (typeof m == "number" && (m = String(m)), m = e.format.from(m), m !== !1 && (m = C.toStepping(m)), m === !1 || isNaN(m)) ? y[w] : m;
5981
6004
  }
5982
- function Jt(m, w, k) {
5983
- var H = gn(m), Y = g[0] === void 0;
5984
- w = w === void 0 ? !0 : w, e.animate && !Y && Pr(s, e.cssClasses.tap, e.animationDuration), S.forEach(function(J) {
5985
- vt(J, pr(H[J], J), !0, !1, k);
6005
+ function Jt(m, w, _) {
6006
+ var H = gn(m), Y = y[0] === void 0;
6007
+ w = w === void 0 ? !0 : w, e.animate && !Y && Pr(s, e.cssClasses.tap, e.animationDuration), k.forEach(function(J) {
6008
+ vt(J, pr(H[J], J), !0, !1, _);
5986
6009
  });
5987
- var j = S.length === 1 ? 0 : 1;
5988
- if (Y && C.hasNoSize() && (k = !0, g[0] = 0, S.length > 1)) {
5989
- var re = 100 / (S.length - 1);
5990
- S.forEach(function(J) {
5991
- g[J] = J * re;
6010
+ var j = k.length === 1 ? 0 : 1;
6011
+ if (Y && C.hasNoSize() && (_ = !0, y[0] = 0, k.length > 1)) {
6012
+ var re = 100 / (k.length - 1);
6013
+ k.forEach(function(J) {
6014
+ y[J] = J * re;
5992
6015
  });
5993
6016
  }
5994
- for (; j < S.length; ++j)
5995
- S.forEach(function(J) {
5996
- vt(J, g[J], !0, !0, k);
6017
+ for (; j < k.length; ++j)
6018
+ k.forEach(function(J) {
6019
+ vt(J, y[J], !0, !0, _);
5997
6020
  });
5998
- xn(), S.forEach(function(J) {
6021
+ xn(), k.forEach(function(J) {
5999
6022
  Le("update", J), H[J] !== null && w && Le("set", J);
6000
6023
  });
6001
6024
  }
6002
6025
  function La(m) {
6003
6026
  Jt(e.start, m);
6004
6027
  }
6005
- function Ea(m, w, k, H) {
6006
- if (m = Number(m), !(m >= 0 && m < S.length))
6028
+ function Ea(m, w, _, H) {
6029
+ if (m = Number(m), !(m >= 0 && m < k.length))
6007
6030
  throw new Error("noUiSlider: invalid handle number, got: " + m);
6008
- vt(m, pr(w, m), !0, !0, H), Le("update", m), k && Le("set", m);
6031
+ vt(m, pr(w, m), !0, !0, H), Le("update", m), _ && Le("set", m);
6009
6032
  }
6010
6033
  function mr(m) {
6011
6034
  if (m === void 0 && (m = !1), m)
@@ -6021,21 +6044,21 @@ function Dc(r, e, t) {
6021
6044
  delete s.noUiSlider;
6022
6045
  }
6023
6046
  function hr(m) {
6024
- var w = g[m], k = C.getNearbySteps(w), H = E[m], Y = k.thisStep.step, j = null;
6047
+ var w = y[m], _ = C.getNearbySteps(w), H = E[m], Y = _.thisStep.step, j = null;
6025
6048
  if (e.snap)
6026
6049
  return [
6027
- H - k.stepBefore.startValue || null,
6028
- k.stepAfter.startValue - H || null
6050
+ H - _.stepBefore.startValue || null,
6051
+ _.stepAfter.startValue - H || null
6029
6052
  ];
6030
- Y !== !1 && H + Y > k.stepAfter.startValue && (Y = k.stepAfter.startValue - H), H > k.thisStep.startValue ? j = k.thisStep.step : k.stepBefore.step === !1 ? j = !1 : j = H - k.stepBefore.highestStep, w === 100 ? Y = null : w === 0 && (j = null);
6053
+ Y !== !1 && H + Y > _.stepAfter.startValue && (Y = _.stepAfter.startValue - H), H > _.thisStep.startValue ? j = _.thisStep.step : _.stepBefore.step === !1 ? j = !1 : j = H - _.stepBefore.highestStep, w === 100 ? Y = null : w === 0 && (j = null);
6031
6054
  var re = C.countStepDecimals();
6032
6055
  return Y !== null && Y !== !1 && (Y = Number(Y.toFixed(re))), j !== null && j !== !1 && (j = Number(j.toFixed(re))), [j, Y];
6033
6056
  }
6034
6057
  function Va() {
6035
- return S.map(hr);
6058
+ return k.map(hr);
6036
6059
  }
6037
6060
  function za(m, w) {
6038
- var k = mr(), H = [
6061
+ var _ = mr(), H = [
6039
6062
  "margin",
6040
6063
  "limit",
6041
6064
  "padding",
@@ -6054,7 +6077,7 @@ function Dc(r, e, t) {
6054
6077
  var Y = ia(t);
6055
6078
  H.forEach(function(j) {
6056
6079
  m[j] !== void 0 && (e[j] = Y[j]);
6057
- }), C = Y.spectrum, e.margin = Y.margin, e.limit = Y.limit, e.padding = Y.padding, e.pips ? z(e.pips) : O(), e.tooltips ? qe() : ve(), g = [], Jt(zn(m.start) ? m.start : k, w), m.connect && vr();
6080
+ }), C = Y.spectrum, e.margin = Y.margin, e.limit = Y.limit, e.padding = Y.padding, e.pips ? z(e.pips) : O(), e.tooltips ? qe() : ve(), y = [], Jt(zn(m.start) ? m.start : _, w), m.connect && vr();
6058
6081
  }
6059
6082
  function vr() {
6060
6083
  for (; l.firstChild; )
@@ -6088,8 +6111,8 @@ function Dc(r, e, t) {
6088
6111
  disable: q,
6089
6112
  enable: he,
6090
6113
  // Exposed for unit testing, don't use this in your application.
6091
- __moveHandles: function(m, w, k) {
6092
- dr(m, w, g, k);
6114
+ __moveHandles: function(m, w, _) {
6115
+ dr(m, w, y, _);
6093
6116
  },
6094
6117
  options: t,
6095
6118
  updateOptions: za,
@@ -6097,10 +6120,10 @@ function Dc(r, e, t) {
6097
6120
  removePips: O,
6098
6121
  removeTooltips: ve,
6099
6122
  getPositions: function() {
6100
- return g.slice();
6123
+ return y.slice();
6101
6124
  },
6102
6125
  getTooltips: function() {
6103
- return _;
6126
+ return D;
6104
6127
  },
6105
6128
  getOrigins: function() {
6106
6129
  return d;
@@ -6234,46 +6257,46 @@ const Lr = {
6234
6257
  animationDuration: n.duration
6235
6258
  };
6236
6259
  let i = null;
6237
- Re(() => o.value, (g, S) => {
6260
+ Re(() => o.value, (y, k) => {
6238
6261
  if (!n.selectable)
6239
6262
  return;
6240
6263
  const $ = document.querySelector(`#${a}`).querySelectorAll("[data-handle]");
6241
6264
  for (let f in $) $.hasOwnProperty(f) && $[f].classList.remove("selected");
6242
- g !== null && document.querySelector(`#${a} [data-handle="${g}"]`).classList.add("selected");
6265
+ y !== null && document.querySelector(`#${a} [data-handle="${y}"]`).classList.add("selected");
6243
6266
  }), Be(() => {
6244
6267
  i = document.getElementById(a), Lr.create(i, s), t("init"), l();
6245
6268
  });
6246
6269
  const l = () => {
6247
- i.noUiSlider.on("start", (g, S, x, $, f, u) => {
6248
- o.value = S, t("start", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6249
- }), i.noUiSlider.on("slide", (g, S, x, $, f, u) => {
6250
- o.value = S, t("slide", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6251
- }), i.noUiSlider.on("drag", (g, S, x, $, f, u) => {
6252
- o.value = S, t("drag", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6253
- }), i.noUiSlider.on("update", (g, S, x, $, f, u) => {
6254
- o.value = S, t("update", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6255
- }), i.noUiSlider.on("change", (g, S, x, $, f, u) => {
6256
- o.value = S, t("change", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6257
- }), i.noUiSlider.on("set", (g, S, x, $, f, u) => {
6258
- o.value = S, t("set", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6259
- }), i.noUiSlider.on("end", (g, S, x, $, f, u) => {
6260
- o.value = S, t("end", { values: g, index: S, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6270
+ i.noUiSlider.on("start", (y, k, x, $, f, u) => {
6271
+ o.value = k, t("start", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6272
+ }), i.noUiSlider.on("slide", (y, k, x, $, f, u) => {
6273
+ o.value = k, t("slide", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6274
+ }), i.noUiSlider.on("drag", (y, k, x, $, f, u) => {
6275
+ o.value = k, t("drag", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6276
+ }), i.noUiSlider.on("update", (y, k, x, $, f, u) => {
6277
+ o.value = k, t("update", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6278
+ }), i.noUiSlider.on("change", (y, k, x, $, f, u) => {
6279
+ o.value = k, t("change", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6280
+ }), i.noUiSlider.on("set", (y, k, x, $, f, u) => {
6281
+ o.value = k, t("set", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6282
+ }), i.noUiSlider.on("end", (y, k, x, $, f, u) => {
6283
+ o.value = k, t("end", { values: y, index: k, eunencoded: x, tap: $, positions: f, slider: u, selectedIndex: o });
6261
6284
  });
6262
6285
  };
6263
6286
  return e({
6264
6287
  get: () => i.noUiSlider.get(),
6265
- set: (g) => {
6266
- i.noUiSlider.set(g);
6288
+ set: (y) => {
6289
+ i.noUiSlider.set(y);
6267
6290
  },
6268
6291
  position: () => i.noUiSlider.getPositions(),
6269
6292
  getSelectedIndex: () => o.value,
6270
- updateOptions: (g) => {
6271
- i.noUiSlider.updateOptions(g);
6293
+ updateOptions: (y) => {
6294
+ i.noUiSlider.updateOptions(y);
6272
6295
  },
6273
- updateStart: (g) => {
6274
- o.value = null, i.noUiSlider.destroy(), s.start = g, Lr.create(i, s), t("init"), l();
6296
+ updateStart: (y) => {
6297
+ o.value = null, i.noUiSlider.destroy(), s.start = y, Lr.create(i, s), t("init"), l();
6275
6298
  }
6276
- }), (g, S) => (c(), b("div", {
6299
+ }), (y, k) => (c(), b("div", {
6277
6300
  id: a,
6278
6301
  class: ae(["slider-styled slider-round", [n.type, n.tooltipHide ? "slider-tooltip-hide" : null]])
6279
6302
  }, null, 2));
@@ -6530,19 +6553,19 @@ function Fc() {
6530
6553
  ) || i(
6531
6554
  "radial-gradient",
6532
6555
  e.radialGradient,
6533
- _
6556
+ D
6534
6557
  ) || i(
6535
6558
  "repeating-radial-gradient",
6536
6559
  e.repeatingRadialGradient,
6537
- _
6560
+ D
6538
6561
  );
6539
6562
  }
6540
6563
  function i(Z, M, O) {
6541
6564
  return l(M, function(z) {
6542
- var R = O();
6543
- return R && (_e(e.comma) || n("Missing comma before color stops")), {
6565
+ var N = O();
6566
+ return N && (_e(e.comma) || n("Missing comma before color stops")), {
6544
6567
  type: Z,
6545
- orientation: R,
6568
+ orientation: N,
6546
6569
  colorStops: u(p)
6547
6570
  };
6548
6571
  });
@@ -6571,16 +6594,16 @@ function Fc() {
6571
6594
  function h() {
6572
6595
  return we("angular", e.angleValue, 1) || we("angular", e.radianValue, 1);
6573
6596
  }
6574
- function _() {
6597
+ function D() {
6575
6598
  var Z, M = C(), O;
6576
6599
  return M && (Z = [], Z.push(M), O = t, _e(e.comma) && (M = C(), M ? Z.push(M) : t = O)), Z;
6577
6600
  }
6578
6601
  function C() {
6579
- var Z = E() || g();
6602
+ var Z = E() || y();
6580
6603
  if (Z)
6581
6604
  Z.at = x();
6582
6605
  else {
6583
- var M = S();
6606
+ var M = k();
6584
6607
  if (M) {
6585
6608
  Z = M;
6586
6609
  var O = x();
@@ -6593,10 +6616,10 @@ function Fc() {
6593
6616
  at: z
6594
6617
  };
6595
6618
  else {
6596
- var R = $();
6597
- R && (Z = {
6619
+ var N = $();
6620
+ N && (Z = {
6598
6621
  type: "default-radial",
6599
- at: R
6622
+ at: N
6600
6623
  });
6601
6624
  }
6602
6625
  }
@@ -6605,13 +6628,13 @@ function Fc() {
6605
6628
  }
6606
6629
  function E() {
6607
6630
  var Z = we("shape", /^(circle)/i, 0);
6608
- return Z && (Z.style = qe() || S()), Z;
6631
+ return Z && (Z.style = qe() || k()), Z;
6609
6632
  }
6610
- function g() {
6633
+ function y() {
6611
6634
  var Z = we("shape", /^(ellipse)/i, 0);
6612
- return Z && (Z.style = $() || q() || S()), Z;
6635
+ return Z && (Z.style = $() || q() || k()), Z;
6613
6636
  }
6614
- function S() {
6637
+ function k() {
6615
6638
  return we("extent-keyword", e.extentKeywords, 1);
6616
6639
  }
6617
6640
  function x() {
@@ -6642,16 +6665,16 @@ function Fc() {
6642
6665
  return O;
6643
6666
  }
6644
6667
  function p() {
6645
- var Z = y();
6668
+ var Z = g();
6646
6669
  return Z || n("Expected color definition"), Z.length = q(), Z;
6647
6670
  }
6648
- function y() {
6649
- return N() || ie() || me() || ne() || ee() || W() || D();
6671
+ function g() {
6672
+ return R() || ie() || me() || ne() || ee() || W() || S();
6650
6673
  }
6651
- function D() {
6674
+ function S() {
6652
6675
  return we("literal", e.literalColor, 0);
6653
6676
  }
6654
- function N() {
6677
+ function R() {
6655
6678
  return we("hex", e.hexColor, 1);
6656
6679
  }
6657
6680
  function ee() {
@@ -6686,10 +6709,10 @@ function Fc() {
6686
6709
  _e(e.comma);
6687
6710
  var O = _e(e.percentageValue), z = O ? O[1] : null;
6688
6711
  _e(e.comma), O = _e(e.percentageValue);
6689
- var R = O ? O[1] : null;
6690
- return (!z || !R) && n("Expected percentage value for saturation and lightness in HSL"), {
6712
+ var N = O ? O[1] : null;
6713
+ return (!z || !N) && n("Expected percentage value for saturation and lightness in HSL"), {
6691
6714
  type: "hsl",
6692
- value: [M, z, R]
6715
+ value: [M, z, N]
6693
6716
  };
6694
6717
  });
6695
6718
  }
@@ -6701,10 +6724,10 @@ function Fc() {
6701
6724
  _e(e.comma), M = _e(e.percentageValue);
6702
6725
  var z = M ? M[1] : null;
6703
6726
  _e(e.comma);
6704
- var R = K();
6727
+ var N = K();
6705
6728
  return (!O || !z) && n("Expected percentage value for saturation and lightness in HSLA"), {
6706
6729
  type: "hsla",
6707
- value: [Z, O, z, R]
6730
+ value: [Z, O, z, N]
6708
6731
  };
6709
6732
  });
6710
6733
  }
@@ -6813,26 +6836,26 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6813
6836
  }
6814
6837
  }), a = I(null), o = I(null), s = I([{ code: "#FFFFFF" }]), i = I(""), l = I("linear"), d = I("0"), v = I("");
6815
6838
  let h = 1;
6816
- const _ = () => {
6839
+ const D = () => {
6817
6840
  a.value.show(), C();
6818
6841
  }, C = () => {
6819
- const p = n.value.split(";")[1].trim().split(":")[1].trim(), y = Hc.parse(p), D = y[0].type.split("-");
6820
- l.value = D[0], l.value === "linear" && (d.value = y[0].orientation.value), s.value = [], h = y[0].colorStops.length;
6821
- const N = [];
6822
- for (let ee = 0; ee < y[0].colorStops.length; ee++) {
6823
- const ne = y[0].colorStops[ee].type === "hex" ? `#${y[0].colorStops[ee].value}` : `rgba(${y[0].colorStops[ee].value.join(",")})`;
6824
- s.value.push({ code: ne }), N.push(y[0].colorStops[ee].length.value);
6842
+ const p = n.value.split(";")[1].trim().split(":")[1].trim(), g = Hc.parse(p), S = g[0].type.split("-");
6843
+ l.value = S[0], l.value === "linear" && (d.value = g[0].orientation.value), s.value = [], h = g[0].colorStops.length;
6844
+ const R = [];
6845
+ for (let ee = 0; ee < g[0].colorStops.length; ee++) {
6846
+ const ne = g[0].colorStops[ee].type === "hex" ? `#${g[0].colorStops[ee].value}` : `rgba(${g[0].colorStops[ee].value.join(",")})`;
6847
+ s.value.push({ code: ne }), R.push(g[0].colorStops[ee].length.value);
6825
6848
  }
6826
6849
  setTimeout(() => {
6827
- o.value?.updateStart(N), $();
6850
+ o.value?.updateStart(R), $();
6828
6851
  }, 100);
6829
6852
  }, E = {
6830
6853
  outside: {
6831
6854
  component: Ht("div", { class: "color-indicator", style: n.value })
6832
6855
  }
6833
- }, g = () => {
6856
+ }, y = () => {
6834
6857
  n.value = i.value, a.value.hide(), v.value = `${t.text}: ${s.value.length}`, e("change", n.value);
6835
- }, S = () => {
6858
+ }, k = () => {
6836
6859
  if (h < t.maxColors) {
6837
6860
  s.value.push({ code: "#FFFFFF" }), h++;
6838
6861
  const f = Math.round(100 / h), u = [];
@@ -6855,8 +6878,8 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6855
6878
  const f = l.value + "-gradient", u = o.value.position();
6856
6879
  let p = [];
6857
6880
  p.push(l.value === "radial" ? "circle" : `${d.value}deg`);
6858
- for (let y = 0; y < s.value.length; y++)
6859
- p.push(`${s.value[y].code} ${parseInt(u[y])}%`);
6881
+ for (let g = 0; g < s.value.length; g++)
6882
+ p.push(`${s.value[g].code} ${parseInt(u[g])}%`);
6860
6883
  i.value = `background: ${s.value[0].code};`, s.value.length > 1 && (i.value += `background: ${f}(${p.join(", ")})`);
6861
6884
  };
6862
6885
  return (f, u) => (c(), b("div", null, [
@@ -6865,7 +6888,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6865
6888
  label: t.label,
6866
6889
  modelValue: v.value,
6867
6890
  "onUpdate:modelValue": u[0] || (u[0] = (p) => v.value = p),
6868
- onClick: _,
6891
+ onClick: D,
6869
6892
  readonly: !0
6870
6893
  }, {
6871
6894
  pre: X(() => [
@@ -6924,13 +6947,13 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6924
6947
  }, null, 8, ["modelValue"])) : L("", !0)
6925
6948
  ])
6926
6949
  ]),
6927
- (c(!0), b(pe, null, Ce(s.value, (p, y) => (c(), b("div", {
6950
+ (c(!0), b(pe, null, Ce(s.value, (p, g) => (c(), b("div", {
6928
6951
  style: { display: "flex", gap: "5px", "align-items": "center", "justify-content": "center" },
6929
- key: y
6952
+ key: g
6930
6953
  }, [
6931
6954
  A(Bu, {
6932
6955
  modelValue: p.code,
6933
- "onUpdate:modelValue": (D) => p.code = D,
6956
+ "onUpdate:modelValue": (S) => p.code = S,
6934
6957
  style: { flex: "1" },
6935
6958
  format: "rgba",
6936
6959
  onChange: $
@@ -6938,11 +6961,11 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6938
6961
  Q(h) > 1 ? (c(), F(fe, {
6939
6962
  key: 0,
6940
6963
  icon: "MinusSharp",
6941
- onClick: (D) => x(y)
6964
+ onClick: (S) => x(g)
6942
6965
  }, null, 8, ["onClick"])) : L("", !0)
6943
6966
  ]))), 128)),
6944
6967
  Q(h) < t.maxColors ? (c(), b("div", Nc, [
6945
- A(fe, { onClick: S }, {
6968
+ A(fe, { onClick: k }, {
6946
6969
  default: X(() => [
6947
6970
  se(G(t.add), 1)
6948
6971
  ]),
@@ -6962,7 +6985,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6962
6985
  }),
6963
6986
  A(fe, {
6964
6987
  type: "success",
6965
- onClick: g
6988
+ onClick: y
6966
6989
  }, {
6967
6990
  default: X(() => [
6968
6991
  se(G(t.select), 1)
@@ -6999,31 +7022,31 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
6999
7022
  splitter: null,
7000
7023
  timeoutId: null
7001
7024
  }), h = () => {
7002
- document.addEventListener("mousemove", E, { passive: !1 }), document.addEventListener("mouseup", g), "ontouchstart" in window && (document.addEventListener("touchmove", E, { passive: !1 }), document.addEventListener("touchend", g));
7003
- }, _ = () => {
7004
- document.removeEventListener("mousemove", E, { passive: !1 }), document.removeEventListener("mouseup", g), "ontouchstart" in window && (document.removeEventListener("touchmove", E, { passive: !1 }), document.removeEventListener("touchend", g));
7025
+ document.addEventListener("mousemove", E, { passive: !1 }), document.addEventListener("mouseup", y), "ontouchstart" in window && (document.addEventListener("touchmove", E, { passive: !1 }), document.addEventListener("touchend", y));
7026
+ }, D = () => {
7027
+ document.removeEventListener("mousemove", E, { passive: !1 }), document.removeEventListener("mouseup", y), "ontouchstart" in window && (document.removeEventListener("touchmove", E, { passive: !1 }), document.removeEventListener("touchend", y));
7005
7028
  }, C = (M, O) => {
7006
7029
  h(), d.value.mouseDown = !0, d.value.activeSplitter = O;
7007
7030
  }, E = (M) => {
7008
7031
  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 }))));
7009
- }, g = () => {
7032
+ }, y = () => {
7010
7033
  d.value.dragging && e("resized", a.value.map((M) => ({ min: M.min, max: M.max, size: M.size }))), d.value.mouseDown = !1, setTimeout(() => {
7011
- d.value.dragging = !1, _();
7034
+ d.value.dragging = !1, D();
7012
7035
  }, 100);
7013
- }, S = (M, O) => {
7036
+ }, k = (M, O) => {
7014
7037
  "ontouchstart" in window && (M.preventDefault(), t.dblClickSplitter && (v.value.splitter === O ? (clearTimeout(v.value.timeoutId), v.value.timeoutId = null, x(M, O), v.value.splitter = null) : (v.value.splitter = O, v.value.timeoutId = setTimeout(() => {
7015
7038
  v.value.splitter = null;
7016
7039
  }, 500)))), d.value.dragging || e("splitter-click", a.value[O]);
7017
7040
  }, x = (M, O) => {
7018
7041
  let z = 0;
7019
- a.value = a.value.map((R, U) => (R.size = U === O ? R.max : R.min, U !== O && (z += R.min), R)), a.value[O].size -= z, e("pane-maximize", a.value[O]), e("resized", a.value.map((R) => ({ min: R.min, max: R.max, size: R.size })));
7042
+ a.value = a.value.map((N, U) => (N.size = U === O ? N.max : N.min, U !== O && (z += N.min), N)), a.value[O].size -= z, e("pane-maximize", a.value[O]), e("resized", a.value.map((N) => ({ min: N.min, max: N.max, size: N.size })));
7020
7043
  }, $ = (M, O) => {
7021
7044
  e("pane-click", s.value[O]);
7022
7045
  }, f = (M) => {
7023
- const O = i.value.getBoundingClientRect(), { clientX: z, clientY: R } = "ontouchstart" in window && M.touches ? M.touches[0] : M;
7046
+ const O = i.value.getBoundingClientRect(), { clientX: z, clientY: N } = "ontouchstart" in window && M.touches ? M.touches[0] : M;
7024
7047
  return {
7025
7048
  x: z - O.left,
7026
- y: R - O.top
7049
+ y: N - O.top
7027
7050
  };
7028
7051
  }, u = (M) => {
7029
7052
  M = M[t.horizontal ? "y" : "x"];
@@ -7032,43 +7055,43 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7032
7055
  }, p = (M) => {
7033
7056
  const O = d.value.activeSplitter;
7034
7057
  let z = {
7035
- prevPanesSize: D(O),
7036
- nextPanesSize: N(O),
7058
+ prevPanesSize: S(O),
7059
+ nextPanesSize: R(O),
7037
7060
  prevReachedMinPanes: 0,
7038
7061
  nextReachedMinPanes: 0
7039
7062
  };
7040
- const R = 0 + (t.pushOtherPanes ? 0 : z.prevPanesSize), U = 100 - (t.pushOtherPanes ? 0 : z.nextPanesSize), oe = Math.max(Math.min(u(M), U), R);
7063
+ const N = 0 + (t.pushOtherPanes ? 0 : z.prevPanesSize), U = 100 - (t.pushOtherPanes ? 0 : z.nextPanesSize), oe = Math.max(Math.min(u(M), U), N);
7041
7064
  let de = [O, O + 1], ze = a.value[de[0]] || null, tt = a.value[de[1]] || null;
7042
- const Kt = ze.max < 100 && oe >= ze.max + z.prevPanesSize, Lt = tt.max < 100 && oe <= 100 - (tt.max + N(O + 1));
7065
+ const Kt = ze.max < 100 && oe >= ze.max + z.prevPanesSize, Lt = tt.max < 100 && oe <= 100 - (tt.max + R(O + 1));
7043
7066
  if (Kt || Lt) {
7044
- Kt ? (ze.size = ze.max, tt.size = Math.max(100 - ze.max - z.prevPanesSize - z.nextPanesSize, 0)) : (ze.size = Math.max(100 - tt.max - z.prevPanesSize - N(O + 1), 0), tt.size = tt.max);
7067
+ Kt ? (ze.size = ze.max, tt.size = Math.max(100 - ze.max - z.prevPanesSize - z.nextPanesSize, 0)) : (ze.size = Math.max(100 - tt.max - z.prevPanesSize - R(O + 1), 0), tt.size = tt.max);
7045
7068
  return;
7046
7069
  }
7047
7070
  if (t.pushOtherPanes) {
7048
- const Dt = y(z, oe);
7071
+ const Dt = g(z, oe);
7049
7072
  if (!Dt) return;
7050
7073
  ({ sums: z, panesToResize: de } = Dt), ze = a.value[de[0]] || null, tt = a.value[de[1]] || null;
7051
7074
  }
7052
7075
  ze !== null && (ze.size = Math.min(Math.max(oe - z.prevPanesSize - z.prevReachedMinPanes, ze.min), ze.max)), tt !== null && (tt.size = Math.min(Math.max(100 - oe - z.nextPanesSize - z.nextReachedMinPanes, tt.min), tt.max));
7053
- }, y = (M, O) => {
7054
- const z = d.value.activeSplitter, R = [z, z + 1];
7055
- return O < M.prevPanesSize + a.value[R[0]].min && (R[0] = ee(z).index, M.prevReachedMinPanes = 0, R[0] < z && a.value.forEach((U, oe) => {
7056
- oe > R[0] && oe <= z && (U.size = U.min, M.prevReachedMinPanes += U.min);
7057
- }), M.prevPanesSize = D(R[0]), R[0] === void 0) ? (M.prevReachedMinPanes = 0, a.value[0].size = a.value[0].min, a.value.forEach((U, oe) => {
7076
+ }, g = (M, O) => {
7077
+ const z = d.value.activeSplitter, N = [z, z + 1];
7078
+ return O < M.prevPanesSize + a.value[N[0]].min && (N[0] = ee(z).index, M.prevReachedMinPanes = 0, N[0] < z && a.value.forEach((U, oe) => {
7079
+ oe > N[0] && oe <= z && (U.size = U.min, M.prevReachedMinPanes += U.min);
7080
+ }), M.prevPanesSize = S(N[0]), N[0] === void 0) ? (M.prevReachedMinPanes = 0, a.value[0].size = a.value[0].min, a.value.forEach((U, oe) => {
7058
7081
  oe > 0 && oe <= z && (U.size = U.min, M.prevReachedMinPanes += U.min);
7059
- }), a.value[R[1]].size = 100 - M.prevReachedMinPanes - a.value[0].min - M.prevPanesSize - M.nextPanesSize, null) : O > 100 - M.nextPanesSize - a.value[R[1]].min && (R[1] = ne(z).index, M.nextReachedMinPanes = 0, R[1] > z + 1 && a.value.forEach((U, oe) => {
7060
- oe > z && oe < R[1] && (U.size = U.min, M.nextReachedMinPanes += U.min);
7061
- }), M.nextPanesSize = N(R[1] - 1), R[1] === void 0) ? (M.nextReachedMinPanes = 0, a.value[o.value - 1].size = a.value[o.value - 1].min.value, a.value.forEach((U, oe) => {
7082
+ }), a.value[N[1]].size = 100 - M.prevReachedMinPanes - a.value[0].min - M.prevPanesSize - M.nextPanesSize, null) : O > 100 - M.nextPanesSize - a.value[N[1]].min && (N[1] = ne(z).index, M.nextReachedMinPanes = 0, N[1] > z + 1 && a.value.forEach((U, oe) => {
7083
+ oe > z && oe < N[1] && (U.size = U.min, M.nextReachedMinPanes += U.min);
7084
+ }), M.nextPanesSize = R(N[1] - 1), N[1] === void 0) ? (M.nextReachedMinPanes = 0, a.value[o.value - 1].size = a.value[o.value - 1].min.value, a.value.forEach((U, oe) => {
7062
7085
  oe < o.value - 1 && oe >= z + 1 && (U.size = U.min, M.nextReachedMinPanes += U.min);
7063
- }), a.value[R[0]].size = 100 - M.prevPanesSize - M.nextReachedMinPanes - a.value[o.value - 1].min - M.nextPanesSize.value, null) : { sums: M, panesToResize: R };
7064
- }, D = (M) => a.value.reduce((O, z, R) => O + (R < M ? z.size : 0), 0), N = (M) => a.value.reduce((O, z, R) => O + (R > M + 1 ? z.size : 0), 0), ee = (M) => [...a.value].reverse().find((z) => z.index < M && z.size > z.min) || {}, ne = (M) => a.value.find((z) => z.index > M + 1 && z.size > z.min) || {}, W = () => {
7086
+ }), a.value[N[0]].size = 100 - M.prevPanesSize - M.nextReachedMinPanes - a.value[o.value - 1].min - M.nextPanesSize.value, null) : { sums: M, panesToResize: N };
7087
+ }, S = (M) => a.value.reduce((O, z, N) => O + (N < M ? z.size : 0), 0), R = (M) => a.value.reduce((O, z, N) => O + (N > M + 1 ? z.size : 0), 0), ee = (M) => [...a.value].reverse().find((z) => z.index < M && z.size > z.min) || {}, ne = (M) => a.value.find((z) => z.index > M + 1 && z.size > z.min) || {}, W = () => {
7065
7088
  Array.from(i.value?.children || []).forEach((O) => {
7066
- const z = O.classList.contains("d-splitter__panel"), R = O.classList.contains("d-splitter__splitter");
7067
- !z && !R && (O.remove(), console.warn("DSplitter: Only <d-splitter-panels> elements are allowed at the root of <d-splitter>. One of your DOM nodes was removed."));
7089
+ const z = O.classList.contains("d-splitter__panel"), N = O.classList.contains("d-splitter__splitter");
7090
+ !z && !N && (O.remove(), console.warn("DSplitter: Only <d-splitter-panels> elements are allowed at the root of <d-splitter>. One of your DOM nodes was removed."));
7068
7091
  });
7069
7092
  }, me = (M, O, z = !1) => {
7070
- const R = M - 1, U = document.createElement("div");
7071
- U.classList.add("d-splitter__splitter"), U.style.width = `${t.horizontal ? "auto" : t.size + "px"}`, U.style.height = `${t.horizontal ? t.size + "px" : "auto"}`, U.style.display = `${t.size === 0 ? "none" : "block"}`, z || (U.onmousedown = (oe) => C(oe, R), typeof window < "u" && "ontouchstart" in window && (U.ontouchstart = (oe) => C(oe, R)), U.onclick = (oe) => S(oe, R + 1)), t.dblClickSplitter && (U.ondblclick = (oe) => x(oe, R + 1)), O.parentNode.insertBefore(U, O);
7093
+ const N = M - 1, U = document.createElement("div");
7094
+ U.classList.add("d-splitter__splitter"), U.style.width = `${t.horizontal ? "auto" : t.size + "px"}`, U.style.height = `${t.horizontal ? t.size + "px" : "auto"}`, U.style.display = `${t.size === 0 ? "none" : "block"}`, z || (U.onmousedown = (oe) => C(oe, N), typeof window < "u" && "ontouchstart" in window && (U.ontouchstart = (oe) => C(oe, N)), U.onclick = (oe) => k(oe, N + 1)), t.dblClickSplitter && (U.ondblclick = (oe) => x(oe, N + 1)), O.parentNode.insertBefore(U, O);
7072
7095
  }, ie = (M) => {
7073
7096
  M.onmousedown = void 0, M.onclick = void 0, M.ondblclick = void 0, M.remove();
7074
7097
  }, V = () => {
@@ -7082,53 +7105,53 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7082
7105
  });
7083
7106
  }, K = ({ uid: M, ...O }) => {
7084
7107
  const z = s.value[M];
7085
- Object.entries(O).forEach(([R, U]) => z[R] = U);
7108
+ Object.entries(O).forEach(([N, U]) => z[N] = U);
7086
7109
  }, q = (M) => {
7087
7110
  let O = -1;
7088
- Array.from(i.value?.children || []).some((z) => (z.className.includes("d-splitter__panel") && O++, z.isSameNode(M.el))), a.value.splice(O, 0, { ...M, index: O }), a.value.forEach((z, R) => z.index = R), l.value && lt(() => {
7111
+ Array.from(i.value?.children || []).some((z) => (z.className.includes("d-splitter__panel") && O++, z.isSameNode(M.el))), a.value.splice(O, 0, { ...M, index: O }), a.value.forEach((z, N) => z.index = N), l.value && lt(() => {
7089
7112
  V(), ve({ addedPane: a.value[O] }), e("pane-add", { index: O, panes: a.value.map((z) => ({ min: z.min, max: z.max, size: z.size })) });
7090
7113
  });
7091
7114
  }, he = (M) => {
7092
- const O = a.value.findIndex((R) => R.id === M), z = a.value.splice(O, 1)[0];
7093
- a.value.forEach((R, U) => R.index = U), lt(() => {
7094
- V(), ve({ removedPane: { ...z } }), e("pane-remove", { removed: z, panes: a.value.map((R) => ({ min: R.min, max: R.max, size: R.size })) });
7115
+ const O = a.value.findIndex((N) => N.id === M), z = a.value.splice(O, 1)[0];
7116
+ a.value.forEach((N, U) => N.index = U), lt(() => {
7117
+ V(), ve({ removedPane: { ...z } }), e("pane-remove", { removed: z, panes: a.value.map((N) => ({ min: N.min, max: N.max, size: N.size })) });
7095
7118
  });
7096
7119
  }, ve = (M = {}) => {
7097
7120
  !M.addedPane && !M.removedPane ? we() : a.value.some((O) => O.givenSize !== null || O.min || O.max < 100) ? _e(M) : qe(), l.value && e("resized", a.value.map((O) => ({ min: O.min, max: O.max, size: O.size })));
7098
7121
  }, qe = () => {
7099
7122
  const M = 100 / o.value;
7100
7123
  let O = 0;
7101
- const z = [], R = [];
7124
+ const z = [], N = [];
7102
7125
  a.value.forEach((U) => {
7103
- U.size = Math.max(Math.min(M, U.max), U.min), O -= U.size, U.size >= U.max && z.push(U.id), U.size <= U.min && R.push(U.id);
7104
- }), O > 0.1 && Ue(O, z, R);
7126
+ U.size = Math.max(Math.min(M, U.max), U.min), O -= U.size, U.size >= U.max && z.push(U.id), U.size <= U.min && N.push(U.id);
7127
+ }), O > 0.1 && Ue(O, z, N);
7105
7128
  }, we = () => {
7106
7129
  let M = 100;
7107
7130
  const O = [], z = [];
7108
- let R = 0;
7131
+ let N = 0;
7109
7132
  a.value.forEach((oe) => {
7110
- M -= oe.size, oe.givenSize !== null && R++, oe.size >= oe.max && O.push(oe.id), oe.size <= oe.min && z.push(oe.id);
7133
+ M -= oe.size, oe.givenSize !== null && N++, oe.size >= oe.max && O.push(oe.id), oe.size <= oe.min && z.push(oe.id);
7111
7134
  });
7112
7135
  let U = 100;
7113
7136
  M > 0.1 && (a.value.forEach((oe) => {
7114
- oe.givenSize === null && (oe.size = Math.max(Math.min(M / (o.value - R), oe.max), oe.min)), U -= oe.size;
7137
+ oe.givenSize === null && (oe.size = Math.max(Math.min(M / (o.value - N), oe.max), oe.min)), U -= oe.size;
7115
7138
  }), U > 0.1 && Ue(U, O, z));
7116
7139
  }, _e = ({ addedPane: M, removedPane: O } = {}) => {
7117
- let z = 100 / o.value, R = 0;
7140
+ let z = 100 / o.value, N = 0;
7118
7141
  const U = [], oe = [];
7119
7142
  M?.givenSize !== null && (z = (100 - M.givenSize) / (o.value - 1).value), a.value.forEach((de) => {
7120
- R -= de.size, de.size >= de.max && U.push(de.id), de.size <= de.min && oe.push(de.id);
7121
- }), !(Math.abs(R) < 0.1) && (a.value.forEach((de) => {
7122
- M?.givenSize !== null && M?.id === de.id || (de.size = Math.max(Math.min(z, de.max), de.min)), R -= de.size, de.size >= de.max && U.push(de.id), de.size <= de.min && oe.push(de.id);
7123
- }), R > 0.1 && Ue(R, U, oe));
7143
+ N -= de.size, de.size >= de.max && U.push(de.id), de.size <= de.min && oe.push(de.id);
7144
+ }), !(Math.abs(N) < 0.1) && (a.value.forEach((de) => {
7145
+ M?.givenSize !== null && M?.id === de.id || (de.size = Math.max(Math.min(z, de.max), de.min)), N -= de.size, de.size >= de.max && U.push(de.id), de.size <= de.min && oe.push(de.id);
7146
+ }), N > 0.1 && Ue(N, U, oe));
7124
7147
  }, Ue = (M, O, z) => {
7125
- let R;
7126
- M > 0 ? R = M / (o.value - O.length) : R = M / (o.value - z.length), a.value.forEach((U, oe) => {
7148
+ let N;
7149
+ M > 0 ? N = M / (o.value - O.length) : N = M / (o.value - z.length), a.value.forEach((U, oe) => {
7127
7150
  if (M > 0 && !O.includes(U.id)) {
7128
- const de = Math.max(Math.min(U.size + R, U.max), U.min), ze = de - U.size;
7151
+ const de = Math.max(Math.min(U.size + N, U.max), U.min), ze = de - U.size;
7129
7152
  M -= ze, U.size = de;
7130
7153
  } else if (!z.includes(U.id)) {
7131
- const de = Math.max(Math.min(U.size + R, U.max), U.min), ze = de - U.size;
7154
+ const de = Math.max(Math.min(U.size + N, U.max), U.min), ze = de - U.size;
7132
7155
  M -= ze, U.size = de;
7133
7156
  }
7134
7157
  }), Math.abs(M) > 0.1 && lt(() => {
@@ -7136,8 +7159,8 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7136
7159
  });
7137
7160
  };
7138
7161
  Re(() => t.firstSplitter, () => V()), Re(() => t.dblClickSplitter, (M) => {
7139
- [...i.value.querySelectorAll(".d-splitter__splitter")].forEach((z, R) => {
7140
- z.ondblclick = M ? (U) => x(U, R) : void 0;
7162
+ [...i.value.querySelectorAll(".d-splitter__splitter")].forEach((z, N) => {
7163
+ z.ondblclick = M ? (U) => x(U, N) : void 0;
7141
7164
  });
7142
7165
  }), Gr(() => l.value = !1), Be(() => {
7143
7166
  W(), V(), ve(), e("ready"), l.value = !0;
@@ -7165,34 +7188,34 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7165
7188
  },
7166
7189
  setup(r) {
7167
7190
  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 = T(() => l.value[i]), v = I(null), h = T(() => {
7168
- const g = isNaN(e.size) || e.size === void 0 ? 0 : parseFloat(e.size);
7169
- return Math.max(Math.min(g, C.value), _.value);
7170
- }), _ = T(() => {
7171
- const g = parseFloat(e.minSize);
7172
- return isNaN(g) ? 0 : g;
7191
+ const y = isNaN(e.size) || e.size === void 0 ? 0 : parseFloat(e.size);
7192
+ return Math.max(Math.min(y, C.value), D.value);
7193
+ }), D = T(() => {
7194
+ const y = parseFloat(e.minSize);
7195
+ return isNaN(y) ? 0 : y;
7173
7196
  }), C = T(() => {
7174
- const g = parseFloat(e.maxSize);
7175
- return isNaN(g) ? 100 : g;
7197
+ const y = parseFloat(e.maxSize);
7198
+ return isNaN(y) ? 100 : y;
7176
7199
  }), E = T(() => `${a.value ? "height" : "width"}: ${d.value?.size}%`);
7177
7200
  return Be(() => {
7178
7201
  n({
7179
7202
  id: i,
7180
7203
  el: v.value,
7181
- min: _.value,
7204
+ min: D.value,
7182
7205
  max: C.value,
7183
7206
  // The given size (useful to know the user intention).
7184
7207
  givenSize: e.size === void 0 ? null : h.value,
7185
7208
  size: h.value
7186
7209
  // The computed current size at any time.
7187
7210
  });
7188
- }), Re(() => h.value, (g) => t({ uid: i, size: g })), Re(() => _.value, (g) => t({ uid: i, min: g })), Re(() => C.value, (g) => t({ uid: i, max: g })), Gr(() => o(i)), (g, S) => (c(), b("div", {
7211
+ }), Re(() => h.value, (y) => t({ uid: i, size: y })), Re(() => D.value, (y) => t({ uid: i, min: y })), Re(() => C.value, (y) => t({ uid: i, max: y })), Gr(() => o(i)), (y, k) => (c(), b("div", {
7189
7212
  ref_key: "paneEl",
7190
7213
  ref: v,
7191
7214
  class: "d-splitter__panel",
7192
- onClick: S[0] || (S[0] = (x) => Q(s)(x, g._.uid)),
7215
+ onClick: k[0] || (k[0] = (x) => Q(s)(x, y._.uid)),
7193
7216
  style: ue(E.value)
7194
7217
  }, [
7195
- le(g.$slots, "default")
7218
+ le(y.$slots, "default")
7196
7219
  ], 4));
7197
7220
  }
7198
7221
  }, Yc = {
@@ -7284,7 +7307,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7284
7307
  for (let x = 0; x < n.items.length; x++)
7285
7308
  n.items[x].id === a.value && (v.value = n.items[x].title);
7286
7309
  });
7287
- const _ = (x) => {
7310
+ const D = (x) => {
7288
7311
  if (t("click", x), o.value.isShowed()) {
7289
7312
  o.value.hide();
7290
7313
  return;
@@ -7298,7 +7321,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7298
7321
  return h.value = mn.validate(a.value, n.form.fields[n.name].rules), !!h.value;
7299
7322
  }, E = (x) => {
7300
7323
  a.value = x.model.id, v.value = x.model.title, t("select", x), C();
7301
- }, g = T(() => ({ left: i.value + "px", width: l.value + "px", top: d.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
7324
+ }, y = T(() => ({ left: i.value + "px", width: l.value + "px", top: d.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
7302
7325
  return Be(() => {
7303
7326
  if (a.value)
7304
7327
  for (let x = 0; x < n.items.length; x++)
@@ -7318,7 +7341,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7318
7341
  class: "d-input-select",
7319
7342
  ref_key: "buttonRef",
7320
7343
  ref: s,
7321
- onClick: De(_, ["stop", "prevent"])
7344
+ onClick: De(D, ["stop", "prevent"])
7322
7345
  }, [
7323
7346
  P("div", Qc, [
7324
7347
  P("div", Kc, G(v.value), 1),
@@ -7333,7 +7356,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7333
7356
  ref: o,
7334
7357
  items: n.items,
7335
7358
  class: "dropdown-menu",
7336
- style: ue(g.value),
7359
+ style: ue(y.value),
7337
7360
  "no-select": !0,
7338
7361
  onSelect: E,
7339
7362
  "render-item-title": n.renderItemTitle,
@@ -7417,7 +7440,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7417
7440
  const f = a.value.elementSize(), u = o.value.getBoundingClientRect(), p = window.innerHeight;
7418
7441
  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, C(), (a.value?.itemsCount() === 0 || a.value?.itemsCount() === void 0) && a.value.hide();
7419
7442
  });
7420
- }, _ = (x) => {
7443
+ }, D = (x) => {
7421
7444
  let $ = -1;
7422
7445
  for (let f = 0; f < n.value.length; f++)
7423
7446
  n.value[f] === x.model.title && ($ = f);
@@ -7426,9 +7449,9 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7426
7449
  a.value.unSelect();
7427
7450
  for (let x = 0; x < t.items.length; x++)
7428
7451
  n.value.includes(t.items[x].title) && a.value.selectNode(t.items[x].id);
7429
- }, E = T(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), g = (x, $, f) => {
7452
+ }, E = T(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), y = (x, $, f) => {
7430
7453
  n.value.splice($, 1);
7431
- }, S = () => {
7454
+ }, k = () => {
7432
7455
  if (d.value) {
7433
7456
  const x = d.value.split(",");
7434
7457
  for (let $ = 0; $ < x.length; $++) {
@@ -7456,7 +7479,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7456
7479
  P("div", ud, [
7457
7480
  (c(!0), b(pe, null, Ce(v.value, (f, u) => (c(), F(Q(fe), {
7458
7481
  key: u,
7459
- onClick: De((p) => g(p, u), ["stop"]),
7482
+ onClick: De((p) => y(p, u), ["stop"]),
7460
7483
  scale: "small"
7461
7484
  }, {
7462
7485
  default: X(() => [
@@ -7471,14 +7494,14 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7471
7494
  "onUpdate:modelValue": $[0] || ($[0] = (f) => d.value = f),
7472
7495
  style: { "margin-bottom": "3px", "margin-top": "3px" },
7473
7496
  onKeyup: [
7474
- Xr(S, ["enter"]),
7497
+ Xr(k, ["enter"]),
7475
7498
  $[1] || ($[1] = (f) => h(f, !1))
7476
7499
  ]
7477
7500
  }, {
7478
7501
  post: X(() => [
7479
7502
  A(Q(fe), {
7480
7503
  icon: "PlusSharp",
7481
- onClick: S
7504
+ onClick: k
7482
7505
  })
7483
7506
  ]),
7484
7507
  _: 1
@@ -7491,7 +7514,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7491
7514
  class: "dropdown-menu",
7492
7515
  style: ue(E.value),
7493
7516
  "no-select": !1,
7494
- onSelect: _,
7517
+ onSelect: D,
7495
7518
  "render-item-title": t.renderItemTitle,
7496
7519
  "before-item": t.beforeItem,
7497
7520
  "body-as-parent": t.bodyAsParent,
@@ -7548,13 +7571,13 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7548
7571
  Ke.mutations.addIcons({ PlusSharp: ea });
7549
7572
  const n = T({
7550
7573
  get: () => t.modelValue,
7551
- set: (g) => {
7552
- e("update:modelValue", g);
7574
+ set: (y) => {
7575
+ e("update:modelValue", y);
7553
7576
  }
7554
7577
  }), a = I(null), o = I(null), s = I(0), i = I(0), l = I(0), d = I("");
7555
7578
  let v = !0;
7556
- const h = (g, S = !0) => {
7557
- if (e("click", g), a.value.isShowed() && S) {
7579
+ const h = (y, k = !0) => {
7580
+ if (e("click", y), a.value.isShowed() && k) {
7558
7581
  a.value.hide();
7559
7582
  return;
7560
7583
  }
@@ -7565,22 +7588,22 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7565
7588
  };
7566
7589
  Re(() => d.value, () => {
7567
7590
  if (v)
7568
- for (let g = 0; g < t.items.length; g++)
7569
- t.items[g].title === d.value ? n.value = t.items[g].id : n.value = "";
7591
+ for (let y = 0; y < t.items.length; y++)
7592
+ t.items[y].title === d.value ? n.value = t.items[y].id : n.value = "";
7570
7593
  a.value === "" && a.value.hide();
7571
7594
  }), Re(() => n.value, () => {
7572
7595
  if (n.value === "")
7573
7596
  d.value = "";
7574
7597
  else
7575
- for (let g = 0; g < t.items.length; g++)
7576
- t.items[g].id === n.value && (v = !1, d.value = t.items[g].title);
7598
+ for (let y = 0; y < t.items.length; y++)
7599
+ t.items[y].id === n.value && (v = !1, d.value = t.items[y].title);
7577
7600
  });
7578
- const _ = (g) => {
7579
- n.value = g.model.id, v = !1, d.value = g.model.title, e("select", g);
7580
- }, C = T(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), E = (g) => {
7581
- e("input", { e: g, input: d.value });
7601
+ const D = (y) => {
7602
+ n.value = y.model.id, v = !1, d.value = y.model.title, e("select", y);
7603
+ }, C = T(() => ({ left: s.value + "px", width: i.value + "px", top: l.value + "px", position: t.bodyAsParent ? "absolute" : "fixed", ...t.menuStyle })), E = (y) => {
7604
+ e("input", { e: y, input: d.value });
7582
7605
  };
7583
- return (g, S) => (c(), b("div", {
7606
+ return (y, k) => (c(), b("div", {
7584
7607
  class: ae(t.disabled ? "disabled" : "")
7585
7608
  }, [
7586
7609
  t.label ? (c(), b("div", fd, [
@@ -7597,13 +7620,13 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7597
7620
  A(Q(et), {
7598
7621
  type: "hidden",
7599
7622
  modelValue: n.value,
7600
- "onUpdate:modelValue": S[0] || (S[0] = (x) => n.value = x)
7623
+ "onUpdate:modelValue": k[0] || (k[0] = (x) => n.value = x)
7601
7624
  }, null, 8, ["modelValue"]),
7602
7625
  A(Q(et), {
7603
7626
  modelValue: d.value,
7604
- "onUpdate:modelValue": S[1] || (S[1] = (x) => d.value = x),
7627
+ "onUpdate:modelValue": k[1] || (k[1] = (x) => d.value = x),
7605
7628
  style: { "margin-bottom": "3px", "margin-top": "3px" },
7606
- onKeyup: S[2] || (S[2] = (x) => h(x, !1)),
7629
+ onKeyup: k[2] || (k[2] = (x) => h(x, !1)),
7607
7630
  onInput: E
7608
7631
  }, {
7609
7632
  post: X(() => [
@@ -7621,7 +7644,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7621
7644
  class: "dropdown-menu",
7622
7645
  style: ue(C.value),
7623
7646
  "no-select": !1,
7624
- onSelect: _,
7647
+ onSelect: D,
7625
7648
  "render-item-title": t.renderItemTitle,
7626
7649
  "before-item": t.beforeItem,
7627
7650
  "body-as-parent": t.bodyAsParent,
@@ -7731,10 +7754,10 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7731
7754
  },
7732
7755
  emits: ["action", "select", "unselect", "check", "uncheck", "loading-change", "error"],
7733
7756
  setup(r, { expose: e, emit: t }) {
7734
- 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), v = I(0), h = I(null), _ = I(!1);
7757
+ 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), v = I(0), h = I(null), D = I(!1);
7735
7758
  B.mutations.addDataGrid(n.id), Be(() => {
7736
7759
  C(), setTimeout(() => {
7737
- _.value = !0;
7760
+ D.value = !0;
7738
7761
  }, 100), n.autoLoad && E();
7739
7762
  });
7740
7763
  const C = () => {
@@ -7766,9 +7789,9 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7766
7789
  d.value = !1, t("loading-change", !1);
7767
7790
  }
7768
7791
  };
7769
- let g = null;
7770
- const S = (V = !1) => {
7771
- clearTimeout(g), g = setTimeout(() => {
7792
+ let y = null;
7793
+ const k = (V = !1) => {
7794
+ clearTimeout(y), y = setTimeout(() => {
7772
7795
  E(V);
7773
7796
  }, n.filterDebounce);
7774
7797
  };
@@ -7777,11 +7800,11 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7777
7800
  }), Re(() => s.value, () => {
7778
7801
  E();
7779
7802
  }), Re(l, () => {
7780
- if (!_.value) {
7781
- _.value = !0;
7803
+ if (!D.value) {
7804
+ D.value = !0;
7782
7805
  return;
7783
7806
  }
7784
- S(!0);
7807
+ k(!0);
7785
7808
  }, { deep: !0 });
7786
7809
  const x = (V, K) => {
7787
7810
  V.preventDefault(), V.stopPropagation();
@@ -7803,11 +7826,11 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7803
7826
  V.target.checked ? a.value.forEach((K) => {
7804
7827
  B.mutations.addSelect(n.id, K.id);
7805
7828
  }) : B.actions.unselectAll(n.id);
7806
- }, p = T(() => a.value.length === 0 ? !1 : a.value.every((V) => $(V.id))), y = (V) => {
7829
+ }, p = T(() => a.value.length === 0 ? !1 : a.value.every((V) => $(V.id))), g = (V) => {
7807
7830
  n.selectable === "one" && ($(V.id) ? (B.actions.unselectAll(n.id), t("unselect", V)) : (B.mutations.select(n.id, V.id), t("select", V)));
7808
- }, D = (V) => {
7831
+ }, S = (V) => {
7809
7832
  s.value = parseInt(i.value), localStorage.setItem(`datagrid-perpage-${n.id}`, i.value);
7810
- }, N = T(() => n.perPageOptions.map((V) => ({
7833
+ }, R = T(() => n.perPageOptions.map((V) => ({
7811
7834
  id: V.toString(),
7812
7835
  title: V.toString()
7813
7836
  }))), ee = () => {
@@ -7908,7 +7931,7 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7908
7931
  active: n.selectable === "one" && $(q.id),
7909
7932
  selected: n.selectable === "check" && $(q.id)
7910
7933
  }]),
7911
- onClick: (he) => y(q)
7934
+ onClick: (he) => g(q)
7912
7935
  }, [
7913
7936
  n.selectable === "check" ? (c(), b("td", jd, [
7914
7937
  A(on, {
@@ -7964,8 +7987,8 @@ const Hc = /* @__PURE__ */ zc(Ac), Rc = {
7964
7987
  A(Ir, {
7965
7988
  modelValue: i.value,
7966
7989
  "onUpdate:modelValue": K[2] || (K[2] = (q) => i.value = q),
7967
- items: N.value,
7968
- onSelect: D,
7990
+ items: R.value,
7991
+ onSelect: S,
7969
7992
  disabled: d.value,
7970
7993
  size: "small"
7971
7994
  }, null, 8, ["modelValue", "items", "disabled"])
@@ -9305,8 +9328,8 @@ function Je(r, e, t) {
9305
9328
  let l = e.match(np).map((v) => {
9306
9329
  const h = v[0];
9307
9330
  if (h === "p" || h === "P") {
9308
- const _ = An[h];
9309
- return _(v, a.formatLong);
9331
+ const D = An[h];
9332
+ return D(v, a.formatLong);
9310
9333
  }
9311
9334
  return v;
9312
9335
  }).join("").match(tp).map((v) => {
@@ -9333,8 +9356,8 @@ function Je(r, e, t) {
9333
9356
  if (!v.isToken) return v.value;
9334
9357
  const h = v.value;
9335
9358
  (!t?.useAdditionalWeekYearTokens && ba(h) || !t?.useAdditionalDayOfYearTokens && ya(h)) && Hn(h, e, String(r));
9336
- const _ = zr[h[0]];
9337
- return _(i, h, a.localize, d);
9359
+ const D = zr[h[0]];
9360
+ return D(i, h, a.localize, d);
9338
9361
  }).join("");
9339
9362
  }
9340
9363
  function sp(r) {
@@ -10782,35 +10805,35 @@ function _a(r, e, t, n) {
10782
10805
  firstWeekContainsDate: i,
10783
10806
  weekStartsOn: l,
10784
10807
  locale: s
10785
- }, v = [new pp(n?.in, t)], h = e.match(Zp).map((S) => {
10786
- const x = S[0];
10808
+ }, v = [new pp(n?.in, t)], h = e.match(Zp).map((k) => {
10809
+ const x = k[0];
10787
10810
  if (x in An) {
10788
10811
  const $ = An[x];
10789
- return $(S, s.formatLong);
10812
+ return $(k, s.formatLong);
10790
10813
  }
10791
- return S;
10792
- }).join("").match(Kp), _ = [];
10793
- for (let S of h) {
10794
- ba(S) && Hn(S, e, r), ya(S) && Hn(S, e, r);
10795
- const x = S[0], $ = Qp[x];
10814
+ return k;
10815
+ }).join("").match(Kp), D = [];
10816
+ for (let k of h) {
10817
+ ba(k) && Hn(k, e, r), ya(k) && Hn(k, e, r);
10818
+ const x = k[0], $ = Qp[x];
10796
10819
  if ($) {
10797
10820
  const { incompatibleTokens: f } = $;
10798
10821
  if (Array.isArray(f)) {
10799
- const p = _.find(
10800
- (y) => f.includes(y.token) || y.token === x
10822
+ const p = D.find(
10823
+ (g) => f.includes(g.token) || g.token === x
10801
10824
  );
10802
10825
  if (p)
10803
10826
  throw new RangeError(
10804
- `The format string mustn't contain \`${p.fullToken}\` and \`${S}\` at the same time`
10827
+ `The format string mustn't contain \`${p.fullToken}\` and \`${k}\` at the same time`
10805
10828
  );
10806
- } else if ($.incompatibleTokens === "*" && _.length > 0)
10829
+ } else if ($.incompatibleTokens === "*" && D.length > 0)
10807
10830
  throw new RangeError(
10808
- `The format string mustn't contain \`${S}\` and any other token at the same time`
10831
+ `The format string mustn't contain \`${k}\` and any other token at the same time`
10809
10832
  );
10810
- _.push({ token: x, fullToken: S });
10833
+ D.push({ token: x, fullToken: k });
10811
10834
  const u = $.run(
10812
10835
  r,
10813
- S,
10836
+ k,
10814
10837
  s.match,
10815
10838
  d
10816
10839
  );
@@ -10822,25 +10845,25 @@ function _a(r, e, t, n) {
10822
10845
  throw new RangeError(
10823
10846
  "Format string contains an unescaped latin alphabet character `" + x + "`"
10824
10847
  );
10825
- if (S === "''" ? S = "'" : x === "'" && (S = rm(S)), r.indexOf(S) === 0)
10826
- r = r.slice(S.length);
10848
+ if (k === "''" ? k = "'" : x === "'" && (k = rm(k)), r.indexOf(k) === 0)
10849
+ r = r.slice(k.length);
10827
10850
  else
10828
10851
  return a();
10829
10852
  }
10830
10853
  }
10831
10854
  if (r.length > 0 && tm.test(r))
10832
10855
  return a();
10833
- const C = v.map((S) => S.priority).sort((S, x) => x - S).filter((S, x, $) => $.indexOf(S) === x).map(
10834
- (S) => v.filter((x) => x.priority === S).sort((x, $) => $.subPriority - x.subPriority)
10835
- ).map((S) => S[0]);
10856
+ const C = v.map((k) => k.priority).sort((k, x) => x - k).filter((k, x, $) => $.indexOf(k) === x).map(
10857
+ (k) => v.filter((x) => x.priority === k).sort((x, $) => $.subPriority - x.subPriority)
10858
+ ).map((k) => k[0]);
10836
10859
  let E = ce(t, n?.in);
10837
10860
  if (isNaN(+E)) return a();
10838
- const g = {};
10839
- for (const S of C) {
10840
- if (!S.validate(E, d))
10861
+ const y = {};
10862
+ for (const k of C) {
10863
+ if (!k.validate(E, d))
10841
10864
  return a();
10842
- const x = S.set(E, g, d);
10843
- Array.isArray(x) ? (E = x[0], Object.assign(g, x[1])) : E = x;
10865
+ const x = k.set(E, y, d);
10866
+ Array.isArray(x) ? (E = x[0], Object.assign(y, x[1])) : E = x;
10844
10867
  }
10845
10868
  return E;
10846
10869
  }
@@ -10940,7 +10963,7 @@ const im = {
10940
10963
  },
10941
10964
  emits: ["update:pageDate", "yearClick", "select"],
10942
10965
  setup(r, { emit: e }) {
10943
- const t = r, n = T(() => om(t.pageDate)), a = T(() => mf(t.pageDate)), o = (C, E, g) => !E && !g ? !0 : E && rt(C) < rt(E) ? !1 : !(g && rt(C) > rt(g)), s = T(
10966
+ const t = r, n = T(() => om(t.pageDate)), a = T(() => mf(t.pageDate)), o = (C, E, y) => !E && !y ? !0 : E && rt(C) < rt(E) ? !1 : !(y && rt(C) > rt(y)), s = T(
10944
10967
  () => t.lowerLimit && (nn(t.lowerLimit) === nn(t.pageDate) || Yt(t.pageDate, t.lowerLimit))
10945
10968
  ), i = T(
10946
10969
  () => t.upperLimit && (nn(t.upperLimit) === nn(t.pageDate) || Bt(t.pageDate, t.upperLimit))
@@ -10962,7 +10985,7 @@ const im = {
10962
10985
  return `${C} - ${E}`;
10963
10986
  }), v = (C, E) => {
10964
10987
  e("update:pageDate", E.value), e("yearClick");
10965
- }, h = () => e("update:pageDate", Da(t.pageDate, 10)), _ = () => e("update:pageDate", or(t.pageDate, 10));
10988
+ }, h = () => e("update:pageDate", Da(t.pageDate, 10)), D = () => e("update:pageDate", or(t.pageDate, 10));
10966
10989
  return (C, E) => (c(), b(pe, null, [
10967
10990
  P("div", lm, [
10968
10991
  A(Qe, {
@@ -10974,7 +10997,7 @@ const im = {
10974
10997
  }, null, 8, ["component", "class"]),
10975
10998
  P("div", null, G(d.value), 1),
10976
10999
  A(Qe, {
10977
- onClick: _,
11000
+ onClick: D,
10978
11001
  component: Q(vn),
10979
11002
  size: "20",
10980
11003
  style: { cursor: "pointer" },
@@ -10982,13 +11005,13 @@ const im = {
10982
11005
  }, null, 8, ["component", "class"])
10983
11006
  ]),
10984
11007
  P("div", um, [
10985
- (c(!0), b(pe, null, Ce(l.value, (g) => (c(), F(ur, {
11008
+ (c(!0), b(pe, null, Ce(l.value, (y) => (c(), F(ur, {
10986
11009
  class: "cell",
10987
- key: g.key,
10988
- day: g.display,
10989
- disabled: g.disabled,
11010
+ key: y.key,
11011
+ day: y.display,
11012
+ disabled: y.disabled,
10990
11013
  wide: !0,
10991
- onSelect: (S) => v(S, g)
11014
+ onSelect: (k) => v(k, y)
10992
11015
  }, null, 8, ["day", "disabled", "onSelect"]))), 128))
10993
11016
  ])
10994
11017
  ], 64));
@@ -11038,7 +11061,7 @@ const im = {
11038
11061
  () => (f) => Je(f, "LLLL", {
11039
11062
  locale: t.locale
11040
11063
  })
11041
- ), o = (f, u, p, y) => y?.dates?.some((D) => Pn(f, D)) || y?.predicate?.(f) ? !1 : !u && !p ? !0 : u && Yt(f, Nt(u)) ? !1 : !(p && Bt(f, uf(p))), s = T(
11064
+ ), o = (f, u, p, g) => g?.dates?.some((S) => Pn(f, S)) || g?.predicate?.(f) ? !1 : !u && !p ? !0 : u && Yt(f, Nt(u)) ? !1 : !(p && Bt(f, uf(p))), s = T(
11042
11065
  () => t.lowerLimit && (Rn(t.lowerLimit, t.pageDate) || Yt(t.pageDate, t.lowerLimit))
11043
11066
  ), i = T(
11044
11067
  () => t.upperLimit && (Rn(t.upperLimit, t.pageDate) || Bt(t.pageDate, t.upperLimit))
@@ -11052,9 +11075,9 @@ const im = {
11052
11075
  end: hf(d.value, {
11053
11076
  weekStartsOn: t.weekStartsOn
11054
11077
  })
11055
- })), _ = T(() => {
11078
+ })), D = T(() => {
11056
11079
  const f = t.weekStartsOn, u = n.value(t.weekdayFormat);
11057
- return Array.from(Array(7)).map((p, y) => (f + y) % 7).map(
11080
+ return Array.from(Array(7)).map((p, g) => (f + g) % 7).map(
11058
11081
  (p) => yn(/* @__PURE__ */ new Date(), p, {
11059
11082
  weekStartsOn: t.weekStartsOn
11060
11083
  })
@@ -11079,9 +11102,9 @@ const im = {
11079
11102
  );
11080
11103
  }), E = () => {
11081
11104
  e("monthClick");
11082
- }, g = () => {
11105
+ }, y = () => {
11083
11106
  e("yearClick");
11084
- }, S = (f, u) => {
11107
+ }, k = (f, u) => {
11085
11108
  e("update:pageDate", u.value), e("select", u);
11086
11109
  }, x = () => e("update:pageDate", sm(t.pageDate)), $ = () => e("update:pageDate", ar(t.pageDate, 1));
11087
11110
  return (f, u) => (c(), b(pe, null, [
@@ -11099,7 +11122,7 @@ const im = {
11099
11122
  }, G(a.value(t.pageDate)), 1),
11100
11123
  P("div", {
11101
11124
  style: { cursor: "pointer" },
11102
- onClick: g
11125
+ onClick: y
11103
11126
  }, G(Q(rt)(t.pageDate)), 1),
11104
11127
  A(Qe, {
11105
11128
  onClick: $,
@@ -11110,12 +11133,12 @@ const im = {
11110
11133
  }, null, 8, ["component", "class"])
11111
11134
  ]),
11112
11135
  P("div", fm, [
11113
- (c(!0), b(pe, null, Ce(_.value, (p, y) => (c(), b("div", {
11136
+ (c(!0), b(pe, null, Ce(D.value, (p, g) => (c(), b("div", {
11114
11137
  class: "weekDay",
11115
11138
  key: p
11116
11139
  }, [
11117
11140
  P("div", {
11118
- class: ae([[5, 6].includes(y) ? "weekend" : ""])
11141
+ class: ae([[5, 6].includes(g) ? "weekend" : ""])
11119
11142
  }, G(p), 3)
11120
11143
  ]))), 128)),
11121
11144
  (c(!0), b(pe, null, Ce(C.value, (p) => (c(), F(ur, {
@@ -11124,7 +11147,7 @@ const im = {
11124
11147
  disabled: p.disabled,
11125
11148
  selected: p.selected,
11126
11149
  wide: !0,
11127
- onSelect: (y) => S(y, p)
11150
+ onSelect: (g) => k(g, p)
11128
11151
  }, null, 8, ["day", "disabled", "selected", "onSelect"]))), 128))
11129
11152
  ])
11130
11153
  ], 64));
@@ -11155,10 +11178,10 @@ const im = {
11155
11178
  emits: ["update:pageDate", "yearClick", "dayClick", "select"],
11156
11179
  setup(r, { emit: e }) {
11157
11180
  const t = r, n = T(() => pa(t.pageDate)), a = T(() => ff(t.pageDate)), o = T(
11158
- () => (g) => Je(g, t.format, {
11181
+ () => (y) => Je(y, t.format, {
11159
11182
  locale: t.locale
11160
11183
  })
11161
- ), s = (g, S, x) => !S && !x ? !0 : S && Yt(g, fa(S)) ? !1 : !(x && Bt(g, da(x))), i = T(
11184
+ ), s = (y, k, x) => !k && !x ? !0 : k && Yt(y, fa(k)) ? !1 : !(x && Bt(y, da(x))), i = T(
11162
11185
  () => t.lowerLimit && (Rr(t.lowerLimit, t.pageDate) || Yt(t.pageDate, t.lowerLimit))
11163
11186
  ), l = T(
11164
11187
  () => t.upperLimit && (Rr(t.upperLimit, t.pageDate) || Bt(t.pageDate, t.upperLimit))
@@ -11167,20 +11190,20 @@ const im = {
11167
11190
  start: n.value,
11168
11191
  end: a.value
11169
11192
  }).map(
11170
- (g) => ({
11171
- value: g,
11172
- display: o.value(g),
11173
- key: o.value(g),
11174
- selected: !!t.selected && Rn(t.selected, g),
11175
- disabled: !s(g, t.lowerLimit, t.upperLimit)
11193
+ (y) => ({
11194
+ value: y,
11195
+ display: o.value(y),
11196
+ key: o.value(y),
11197
+ selected: !!t.selected && Rn(t.selected, y),
11198
+ disabled: !s(y, t.lowerLimit, t.upperLimit)
11176
11199
  })
11177
11200
  )
11178
11201
  ), v = T(() => rt(t.pageDate)), h = () => {
11179
11202
  e("yearClick");
11180
- }, _ = (g, S) => {
11181
- e("update:pageDate", S.value), e("dayClick");
11203
+ }, D = (y, k) => {
11204
+ e("update:pageDate", k.value), e("dayClick");
11182
11205
  }, C = () => e("update:pageDate", Da(t.pageDate, 1)), E = () => e("update:pageDate", or(t.pageDate, 1));
11183
- return (g, S) => (c(), b(pe, null, [
11206
+ return (y, k) => (c(), b(pe, null, [
11184
11207
  P("div", mm, [
11185
11208
  A(Qe, {
11186
11209
  onClick: C,
@@ -11208,7 +11231,7 @@ const im = {
11208
11231
  day: x.display,
11209
11232
  wide: !0,
11210
11233
  disabled: x.disabled,
11211
- onSelect: ($) => _($, x)
11234
+ onSelect: ($) => D($, x)
11212
11235
  }, null, 8, ["day", "disabled", "onSelect"]))), 128))
11213
11236
  ])
11214
11237
  ], 64));
@@ -11252,8 +11275,8 @@ const im = {
11252
11275
  },
11253
11276
  emits: ["select", "monthPageChanged", "yearPageChanged", "decadePageChanged"],
11254
11277
  setup(r, { emit: e }) {
11255
- const t = r, n = I(t.initDate ? t.initDate : /* @__PURE__ */ new Date()), a = I(t.mode), o = (h, _) => {
11256
- n.value = _, e("monthPageChanged", _);
11278
+ const t = r, n = I(t.initDate ? t.initDate : /* @__PURE__ */ new Date()), a = I(t.mode), o = (h, D) => {
11279
+ n.value = D, e("monthPageChanged", D);
11257
11280
  }, s = () => {
11258
11281
  a.value = "day";
11259
11282
  }, i = () => {
@@ -11265,14 +11288,14 @@ const im = {
11265
11288
  })), v = (h) => {
11266
11289
  e("select", h);
11267
11290
  };
11268
- return (h, _) => (c(), b("div", null, [
11291
+ return (h, D) => (c(), b("div", null, [
11269
11292
  a.value === "day" ? (c(), F(Gt, {
11270
11293
  key: 0,
11271
11294
  "page-date": n.value,
11272
11295
  locale: t.locale,
11273
11296
  "lower-limit": t.lowerLimit,
11274
11297
  "upper-limit": t.upperLimit,
11275
- "onUpdate:pageDate": _[0] || (_[0] = (C) => o("day", C)),
11298
+ "onUpdate:pageDate": D[0] || (D[0] = (C) => o("day", C)),
11276
11299
  onMonthClick: i,
11277
11300
  onYearClick: l,
11278
11301
  onSelect: v
@@ -11283,7 +11306,7 @@ const im = {
11283
11306
  locale: t.locale,
11284
11307
  "lower-limit": t.lowerLimit,
11285
11308
  "upper-limit": t.upperLimit,
11286
- "onUpdate:pageDate": _[1] || (_[1] = (C) => o("day", C)),
11309
+ "onUpdate:pageDate": D[1] || (D[1] = (C) => o("day", C)),
11287
11310
  onDayClick: s,
11288
11311
  onYearClick: l
11289
11312
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
@@ -11293,7 +11316,7 @@ const im = {
11293
11316
  locale: t.locale,
11294
11317
  "lower-limit": t.lowerLimit,
11295
11318
  "upper-limit": t.upperLimit,
11296
- "onUpdate:pageDate": _[2] || (_[2] = (C) => o("day", C)),
11319
+ "onUpdate:pageDate": D[2] || (D[2] = (C) => o("day", C)),
11297
11320
  onYearClick: i
11298
11321
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11299
11322
  t.showCurrentDate ? (c(), b("div", gm, G(d.value), 1)) : L("", !0)
@@ -11354,29 +11377,29 @@ const im = {
11354
11377
  setup(r, { emit: e }) {
11355
11378
  const t = r, n = ct(), a = T({
11356
11379
  get: () => t.modelValue,
11357
- set: (S) => {
11358
- e("update:modelValue", S);
11380
+ set: (k) => {
11381
+ e("update:modelValue", k);
11359
11382
  }
11360
11383
  }), o = I(null), s = I(a.value ? _a(a.value, t.inputFormat, /* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date()), i = I(t.mode), l = () => {
11361
11384
  i.value = t.mode, o.value.show();
11362
- }, d = (S, x) => {
11385
+ }, d = (k, x) => {
11363
11386
  s.value = x, e("monthPageChanged", x);
11364
11387
  }, v = () => {
11365
11388
  i.value = "day";
11366
11389
  }, h = () => {
11367
11390
  i.value = "month";
11368
- }, _ = () => {
11391
+ }, D = () => {
11369
11392
  i.value = "year";
11370
11393
  }, C = T(() => Je(s.value, t.inputFormat, {
11371
11394
  locale: t.locale
11372
- })), E = (S) => {
11373
- e("select", S);
11374
- }, g = () => {
11395
+ })), E = (k) => {
11396
+ e("select", k);
11397
+ }, y = () => {
11375
11398
  a.value = Je(s.value, t.inputFormat, {
11376
11399
  locale: t.locale
11377
11400
  }), e("apply", Je(s.value, t.inputFormat, { locale: t.locale })), o.value.hide();
11378
11401
  };
11379
- return (S, x) => (c(), b("div", null, [
11402
+ return (k, x) => (c(), b("div", null, [
11380
11403
  A(et, {
11381
11404
  label: t.label,
11382
11405
  modelValue: a.value,
@@ -11387,7 +11410,7 @@ const im = {
11387
11410
  Q(n).post ? {
11388
11411
  name: "post",
11389
11412
  fn: X(() => [
11390
- le(S.$slots, "post", {}, void 0, !0)
11413
+ le(k.$slots, "post", {}, void 0, !0)
11391
11414
  ]),
11392
11415
  key: "0"
11393
11416
  } : void 0
@@ -11410,7 +11433,7 @@ const im = {
11410
11433
  "upper-limit": t.upperLimit,
11411
11434
  "onUpdate:pageDate": x[1] || (x[1] = ($) => d("day", $)),
11412
11435
  onMonthClick: h,
11413
- onYearClick: _,
11436
+ onYearClick: D,
11414
11437
  onSelect: E
11415
11438
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11416
11439
  i.value === "month" ? (c(), F(Qt, {
@@ -11421,7 +11444,7 @@ const im = {
11421
11444
  "upper-limit": t.upperLimit,
11422
11445
  "onUpdate:pageDate": x[2] || (x[2] = ($) => d("day", $)),
11423
11446
  onDayClick: v,
11424
- onYearClick: _
11447
+ onYearClick: D
11425
11448
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11426
11449
  i.value === "year" ? (c(), F(Xt, {
11427
11450
  key: 2,
@@ -11438,7 +11461,7 @@ const im = {
11438
11461
  P("div", wm, [
11439
11462
  A(fe, {
11440
11463
  type: "success",
11441
- onClick: g
11464
+ onClick: y
11442
11465
  }, {
11443
11466
  default: X(() => [
11444
11467
  se(G(t.select), 1)
@@ -11521,7 +11544,7 @@ const im = {
11521
11544
  s.value = "month";
11522
11545
  }, h = () => {
11523
11546
  s.value = "year";
11524
- }, _ = T(() => Je(o.value, n.inputFormat, {
11547
+ }, D = T(() => Je(o.value, n.inputFormat, {
11525
11548
  locale: n.locale
11526
11549
  })), C = (x) => {
11527
11550
  t("select", x);
@@ -11573,7 +11596,7 @@ const im = {
11573
11596
  "onUpdate:pageDate": $[2] || ($[2] = (f) => l("day", f)),
11574
11597
  onYearClick: v
11575
11598
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11576
- r.showCurrentDate ? (c(), b("div", km, G(_.value), 1)) : L("", !0)
11599
+ r.showCurrentDate ? (c(), b("div", km, G(D.value), 1)) : L("", !0)
11577
11600
  ]),
11578
11601
  "modal-footer": X(() => [
11579
11602
  P("div", Sm, [
@@ -11721,15 +11744,15 @@ const im = {
11721
11744
  l.value = t.mode, d(), o.value.show();
11722
11745
  }, h = (u, p) => {
11723
11746
  i.value = p, e("monthPageChanged", p);
11724
- }, _ = () => {
11747
+ }, D = () => {
11725
11748
  l.value = "day";
11726
11749
  }, C = () => {
11727
11750
  l.value = "month";
11728
11751
  }, E = () => {
11729
11752
  l.value = "year";
11730
- }, g = T(() => Je(i.value, t.inputFormat, {
11753
+ }, y = T(() => Je(i.value, t.inputFormat, {
11731
11754
  locale: t.locale
11732
- })), S = (u) => {
11755
+ })), k = (u) => {
11733
11756
  e("select", u);
11734
11757
  }, x = () => {
11735
11758
  a.value = Je(i.value, t.inputFormat, {
@@ -11744,7 +11767,7 @@ const im = {
11744
11767
  A(et, {
11745
11768
  label: t.label,
11746
11769
  modelValue: a.value,
11747
- "onUpdate:modelValue": p[0] || (p[0] = (y) => a.value = y),
11770
+ "onUpdate:modelValue": p[0] || (p[0] = (g) => a.value = g),
11748
11771
  onClick: v,
11749
11772
  readonly: t.readOnly
11750
11773
  }, Qr({ _: 2 }, [
@@ -11772,10 +11795,10 @@ const im = {
11772
11795
  locale: t.locale,
11773
11796
  "lower-limit": t.lowerLimit,
11774
11797
  "upper-limit": t.upperLimit,
11775
- "onUpdate:pageDate": p[1] || (p[1] = (y) => h("day", y)),
11798
+ "onUpdate:pageDate": p[1] || (p[1] = (g) => h("day", g)),
11776
11799
  onMonthClick: C,
11777
11800
  onYearClick: E,
11778
- onSelect: S
11801
+ onSelect: k
11779
11802
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11780
11803
  l.value === "month" ? (c(), F(Qt, {
11781
11804
  key: 1,
@@ -11783,8 +11806,8 @@ const im = {
11783
11806
  locale: t.locale,
11784
11807
  "lower-limit": t.lowerLimit,
11785
11808
  "upper-limit": t.upperLimit,
11786
- "onUpdate:pageDate": p[2] || (p[2] = (y) => h("day", y)),
11787
- onDayClick: _,
11809
+ "onUpdate:pageDate": p[2] || (p[2] = (g) => h("day", g)),
11810
+ onDayClick: D,
11788
11811
  onYearClick: E
11789
11812
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11790
11813
  l.value === "year" ? (c(), F(Xt, {
@@ -11793,10 +11816,10 @@ const im = {
11793
11816
  locale: t.locale,
11794
11817
  "lower-limit": t.lowerLimit,
11795
11818
  "upper-limit": t.upperLimit,
11796
- "onUpdate:pageDate": p[3] || (p[3] = (y) => h("day", y)),
11819
+ "onUpdate:pageDate": p[3] || (p[3] = (g) => h("day", g)),
11797
11820
  onYearClick: C
11798
11821
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11799
- r.showCurrentDate ? (c(), b("div", Cm, G(g.value), 1)) : L("", !0),
11822
+ r.showCurrentDate ? (c(), b("div", Cm, G(y.value), 1)) : L("", !0),
11800
11823
  P("div", $m, G(t.timeTitle), 1),
11801
11824
  P("div", Mm, [
11802
11825
  A(dn, {
@@ -11804,7 +11827,7 @@ const im = {
11804
11827
  min: 0,
11805
11828
  max: 23,
11806
11829
  modelValue: s.value.h,
11807
- "onUpdate:modelValue": p[4] || (p[4] = (y) => s.value.h = y),
11830
+ "onUpdate:modelValue": p[4] || (p[4] = (g) => s.value.h = g),
11808
11831
  style: { width: "50px" },
11809
11832
  "max-length": 2,
11810
11833
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -11815,7 +11838,7 @@ const im = {
11815
11838
  min: 0,
11816
11839
  max: 59,
11817
11840
  modelValue: s.value.m,
11818
- "onUpdate:modelValue": p[5] || (p[5] = (y) => s.value.m = y),
11841
+ "onUpdate:modelValue": p[5] || (p[5] = (g) => s.value.m = g),
11819
11842
  style: { width: "50px" },
11820
11843
  "max-length": 2,
11821
11844
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -11834,7 +11857,7 @@ const im = {
11834
11857
  _: 1
11835
11858
  }),
11836
11859
  A(fe, {
11837
- onClick: p[6] || (p[6] = (y) => o.value.hide())
11860
+ onClick: p[6] || (p[6] = (g) => o.value.hide())
11838
11861
  }, {
11839
11862
  default: X(() => [
11840
11863
  se(G(t.close), 1)
@@ -11913,15 +11936,15 @@ const im = {
11913
11936
  })();
11914
11937
  const h = () => {
11915
11938
  i.value = n.mode, a.value.show();
11916
- }, _ = (p, y) => {
11917
- s.value = y, t("monthPageChanged", y);
11939
+ }, D = (p, g) => {
11940
+ s.value = g, t("monthPageChanged", g);
11918
11941
  }, C = () => {
11919
11942
  i.value = "day";
11920
11943
  }, E = () => {
11921
11944
  i.value = "month";
11922
- }, g = () => {
11945
+ }, y = () => {
11923
11946
  i.value = "year";
11924
- }, S = T(() => Je(s.value, n.inputFormat, {
11947
+ }, k = T(() => Je(s.value, n.inputFormat, {
11925
11948
  locale: n.locale
11926
11949
  })), x = (p) => {
11927
11950
  t("select", p);
@@ -11932,7 +11955,7 @@ const im = {
11932
11955
  h();
11933
11956
  }, setDate: (p) => {
11934
11957
  s.value = p;
11935
- } }), (p, y) => (c(), b("div", null, [
11958
+ } }), (p, g) => (c(), b("div", null, [
11936
11959
  A(dt, {
11937
11960
  ref_key: "modalRef",
11938
11961
  ref: a,
@@ -11949,9 +11972,9 @@ const im = {
11949
11972
  locale: n.locale,
11950
11973
  "lower-limit": n.lowerLimit,
11951
11974
  "upper-limit": n.upperLimit,
11952
- "onUpdate:pageDate": y[0] || (y[0] = (D) => _("day", D)),
11975
+ "onUpdate:pageDate": g[0] || (g[0] = (S) => D("day", S)),
11953
11976
  onMonthClick: E,
11954
- onYearClick: g,
11977
+ onYearClick: y,
11955
11978
  onSelect: x
11956
11979
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11957
11980
  i.value === "month" ? (c(), F(Qt, {
@@ -11960,9 +11983,9 @@ const im = {
11960
11983
  locale: n.locale,
11961
11984
  "lower-limit": n.lowerLimit,
11962
11985
  "upper-limit": n.upperLimit,
11963
- "onUpdate:pageDate": y[1] || (y[1] = (D) => _("day", D)),
11986
+ "onUpdate:pageDate": g[1] || (g[1] = (S) => D("day", S)),
11964
11987
  onDayClick: C,
11965
- onYearClick: g
11988
+ onYearClick: y
11966
11989
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11967
11990
  i.value === "year" ? (c(), F(Xt, {
11968
11991
  key: 2,
@@ -11970,10 +11993,10 @@ const im = {
11970
11993
  locale: n.locale,
11971
11994
  "lower-limit": n.lowerLimit,
11972
11995
  "upper-limit": n.upperLimit,
11973
- "onUpdate:pageDate": y[2] || (y[2] = (D) => _("day", D)),
11996
+ "onUpdate:pageDate": g[2] || (g[2] = (S) => D("day", S)),
11974
11997
  onYearClick: E
11975
11998
  }, null, 8, ["page-date", "locale", "lower-limit", "upper-limit"])) : L("", !0),
11976
- r.showCurrentDate ? (c(), b("div", Em, G(S.value), 1)) : L("", !0),
11999
+ r.showCurrentDate ? (c(), b("div", Em, G(k.value), 1)) : L("", !0),
11977
12000
  P("div", Im, G(n.timeTitle), 1),
11978
12001
  P("div", Vm, [
11979
12002
  A(dn, {
@@ -11981,7 +12004,7 @@ const im = {
11981
12004
  min: 0,
11982
12005
  max: 23,
11983
12006
  modelValue: o.value.h,
11984
- "onUpdate:modelValue": y[3] || (y[3] = (D) => o.value.h = D),
12007
+ "onUpdate:modelValue": g[3] || (g[3] = (S) => o.value.h = S),
11985
12008
  style: { width: "50px" },
11986
12009
  "max-length": 2,
11987
12010
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -11992,7 +12015,7 @@ const im = {
11992
12015
  min: 0,
11993
12016
  max: 59,
11994
12017
  modelValue: o.value.m,
11995
- "onUpdate:modelValue": y[4] || (y[4] = (D) => o.value.m = D),
12018
+ "onUpdate:modelValue": g[4] || (g[4] = (S) => o.value.m = S),
11996
12019
  style: { width: "50px" },
11997
12020
  "max-length": 2,
11998
12021
  "input-style": { fontSize: "1.2em", textAlign: "center" }
@@ -12011,7 +12034,7 @@ const im = {
12011
12034
  _: 1
12012
12035
  }),
12013
12036
  A(fe, {
12014
- onClick: y[5] || (y[5] = (D) => a.value.hide())
12037
+ onClick: g[5] || (g[5] = (S) => a.value.hide())
12015
12038
  }, {
12016
12039
  default: X(() => [
12017
12040
  se(G(n.close), 1)
@@ -12119,10 +12142,10 @@ const kh = {
12119
12142
  // NOTE: When adding props here, update `index.d.ts` as well!!
12120
12143
  }, e);
12121
12144
  function n(f) {
12122
- var u = this.$$touchObj, p = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0, D = this;
12123
- 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 = Nr(f), u.startY = Br(f), u.currentX = 0, u.currentY = 0, u.touchStartTime = f.timeStamp, u.hasSwipe = h(u, "swipe") || h(u, "swipe.left") || h(u, "swipe.right") || h(u, "swipe.top") || h(u, "swipe.bottom"), u.hasZoom = h(u, "zoom") || h(u, "zoom.in") || h(u, "zoom.out"), h(u, "hold") && (u.touchHoldTimer = setTimeout(function() {
12124
- u.touchHoldTimer = null, _(f, D, "hold");
12125
- }, u.options.touchHoldTolerance)), _(f, this, "press")));
12145
+ var u = this.$$touchObj, p = f.type.indexOf("touch") >= 0, g = f.type.indexOf("mouse") >= 0, S = this;
12146
+ p && (u.lastTouchStartTime = f.timeStamp), !(g && 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 = Nr(f), u.startY = Br(f), u.currentX = 0, u.currentY = 0, u.touchStartTime = f.timeStamp, u.hasSwipe = h(u, "swipe") || h(u, "swipe.left") || h(u, "swipe.right") || h(u, "swipe.top") || h(u, "swipe.bottom"), u.hasZoom = h(u, "zoom") || h(u, "zoom.in") || h(u, "zoom.out"), h(u, "hold") && (u.touchHoldTimer = setTimeout(function() {
12147
+ u.touchHoldTimer = null, D(f, S, "hold");
12148
+ }, u.options.touchHoldTolerance)), D(f, this, "press")));
12126
12149
  }
12127
12150
  function a(f) {
12128
12151
  var u = this.$$touchObj;
@@ -12130,14 +12153,14 @@ const kh = {
12130
12153
  o(f, u, !1);
12131
12154
  else if (h(u, "rollover") && f.clientX != null) {
12132
12155
  var p = f;
12133
- const y = u.element.getBoundingClientRect();
12134
- p.clientX >= y.left && p.clientX <= y.right && p.clientY >= y.top && p.clientY <= y.bottom && o(f, u, !0);
12156
+ const g = u.element.getBoundingClientRect();
12157
+ p.clientX >= g.left && p.clientX <= g.right && p.clientY >= g.top && p.clientY <= g.bottom && o(f, u, !0);
12135
12158
  }
12136
12159
  }
12137
12160
  function o(f, u = null, p = !1) {
12138
12161
  u == null && (u = this.$$touchObj);
12139
- var y = Nr(f), D = Br(f), N = u.currentX != y || u.currentY != D;
12140
- if (u.currentX = y, u.currentY = D, !p)
12162
+ var g = Nr(f), S = Br(f), R = u.currentX != g || u.currentY != S;
12163
+ if (u.currentX = g, u.currentY = S, !p)
12141
12164
  if (u.touchMoved) {
12142
12165
  if (u.hasSwipe && !u.swipeOutBounded) {
12143
12166
  var ne = u.options.swipeTolerance;
@@ -12145,16 +12168,16 @@ const kh = {
12145
12168
  }
12146
12169
  } else {
12147
12170
  var ee = u.options.tapTolerance;
12148
- u.touchMoved = Math.abs(u.startX - u.currentX) > ee || Math.abs(u.startY - u.currentY) > ee, u.touchMoved && (g(u), _(f, u.element, "drag.once"));
12171
+ u.touchMoved = Math.abs(u.startX - u.currentX) > ee || Math.abs(u.startY - u.currentY) > ee, u.touchMoved && (y(u), D(f, u.element, "drag.once"));
12149
12172
  }
12150
- if (N && h(u, "rollover")) {
12173
+ if (R && h(u, "rollover")) {
12151
12174
  var W = f.timeStamp;
12152
- (u.touchRollTime == null || W > u.touchRollTime + u.options.rollOverFrequency) && (u.touchRollTime = W, _(f, u.element, "rollover"));
12175
+ (u.touchRollTime == null || W > u.touchRollTime + u.options.rollOverFrequency) && (u.touchRollTime = W, D(f, u.element, "rollover"));
12153
12176
  }
12154
12177
  if (!p) {
12155
- if (u.touchStarted && u.touchMoved && N && h(u, "drag")) {
12178
+ if (u.touchStarted && u.touchMoved && R && h(u, "drag")) {
12156
12179
  var W = f.timeStamp;
12157
- (u.touchDragTime == null || W > u.touchDragTime + u.options.dragFrequency) && (u.touchDragTime = W, _(f, u.element, "drag"));
12180
+ (u.touchDragTime == null || W > u.touchDragTime + u.options.dragFrequency) && (u.touchDragTime = W, D(f, u.element, "drag"));
12158
12181
  }
12159
12182
  if (u.touchStarted && u.hasZoom) {
12160
12183
  var W = f.timeStamp;
@@ -12168,42 +12191,42 @@ const kh = {
12168
12191
  f.isZooming = !1;
12169
12192
  return;
12170
12193
  }
12171
- const y = Math.sqrt(
12194
+ const g = Math.sqrt(
12172
12195
  Math.pow(p[0].clientX - p[1].clientX, 2) + // horizontal distance
12173
12196
  Math.pow(p[0].clientY - p[1].clientY, 2)
12174
12197
  // vertical distance
12175
12198
  );
12176
12199
  if (!f.isZooming) {
12177
- f.isZooming = !0, f.initialZoomDistance = y;
12200
+ f.isZooming = !0, f.initialZoomDistance = g;
12178
12201
  return;
12179
12202
  }
12180
- const D = y / f.initialZoomDistance;
12181
- h(f, "zoom") && Math.abs(D - 1) > f.options.zoomDistance / f.initialZoomDistance && _(u, f.element, "zoom", D), (h(f, "zoom.in") || h(f, "zoom.out")) && Math.abs(y - f.initialZoomDistance) > f.options.zoomInOutDistance && (y > f.initialZoomDistance ? _(u, f.element, "zoom.in") : _(u, f.element, "zoom.out")), f.isZooming = !1;
12203
+ const S = g / f.initialZoomDistance;
12204
+ h(f, "zoom") && Math.abs(S - 1) > f.options.zoomDistance / f.initialZoomDistance && D(u, f.element, "zoom", S), (h(f, "zoom.in") || h(f, "zoom.out")) && Math.abs(g - f.initialZoomDistance) > f.options.zoomInOutDistance && (g > f.initialZoomDistance ? D(u, f.element, "zoom.in") : D(u, f.element, "zoom.out")), f.isZooming = !1;
12182
12205
  }
12183
12206
  function i() {
12184
12207
  var f = this.$$touchObj;
12185
- f.touchStarted == !0 && (g(f), E(this), f.touchStarted = f.touchMoved = !1, f.startX = f.startY = 0);
12208
+ f.touchStarted == !0 && (y(f), E(this), f.touchStarted = f.touchMoved = !1, f.startX = f.startY = 0);
12186
12209
  }
12187
12210
  function l(f) {
12188
12211
  var u = this.$$touchObj;
12189
12212
  if (u.touchStarted == !0) {
12190
- var p = f.type.indexOf("touch") >= 0, y = f.type.indexOf("mouse") >= 0;
12213
+ var p = f.type.indexOf("touch") >= 0, g = f.type.indexOf("mouse") >= 0;
12191
12214
  p && (u.lastTouchEndTime = f.timeStamp);
12192
- var D = p && !u.touchHoldTimer;
12193
- if (g(u), u.touchStarted = !1, E(this), y && u.lastTouchEndTime && f.timeStamp - u.lastTouchEndTime < 350)
12215
+ var S = p && !u.touchHoldTimer;
12216
+ if (y(u), u.touchStarted = !1, E(this), g && u.lastTouchEndTime && f.timeStamp - u.lastTouchEndTime < 350)
12194
12217
  return;
12195
- if (_(f, this, "release"), u.touchMoved) {
12218
+ if (D(f, this, "release"), u.touchMoved) {
12196
12219
  if (u.hasSwipe && !u.swipeOutBounded) {
12197
- var N = u.options.swipeTolerance, ee, ne = Math.abs(u.startY - u.currentY), W = Math.abs(u.startX - u.currentX);
12198
- (ne > N || W > N) && (W > N ? ee = u.startX > u.currentX ? "left" : "right" : ee = u.startY > u.currentY ? "top" : "bottom", h(u, "swipe." + ee) ? _(f, this, "swipe." + ee, ee) : _(f, this, "swipe", ee));
12220
+ var R = u.options.swipeTolerance, ee, ne = Math.abs(u.startY - u.currentY), W = Math.abs(u.startX - u.currentX);
12221
+ (ne > R || W > R) && (W > R ? ee = u.startX > u.currentX ? "left" : "right" : ee = u.startY > u.currentY ? "top" : "bottom", h(u, "swipe." + ee) ? D(f, this, "swipe." + ee, ee) : D(f, this, "swipe", ee));
12199
12222
  }
12200
12223
  } else if (h(u, "longtap") && f.timeStamp - u.touchStartTime > u.options.longTapTimeInterval)
12201
- f.cancelable && f.preventDefault(), _(f, this, "longtap");
12202
- else if (h(u, "hold") && D) {
12224
+ f.cancelable && f.preventDefault(), D(f, this, "longtap");
12225
+ else if (h(u, "hold") && S) {
12203
12226
  f.cancelable && f.preventDefault();
12204
12227
  return;
12205
12228
  } else
12206
- _(f, this, "tap");
12229
+ D(f, this, "tap");
12207
12230
  }
12208
12231
  }
12209
12232
  function d() {
@@ -12216,13 +12239,13 @@ const kh = {
12216
12239
  var p = f.callbacks[u];
12217
12240
  return p != null && p.length > 0;
12218
12241
  }
12219
- function _(f, u, p, y) {
12220
- var D = u.$$touchObj, N = D.callbacks[p];
12221
- if (N == null || N.length === 0)
12242
+ function D(f, u, p, g) {
12243
+ var S = u.$$touchObj, R = S.callbacks[p];
12244
+ if (R == null || R.length === 0)
12222
12245
  return null;
12223
- for (var ee = 0; ee < N.length; ee++) {
12224
- var ne = N[ee];
12225
- ne.modifiers.stop && f.stopPropagation(), ne.modifiers.prevent && f.preventDefault(), !(ne.modifiers.self && f.target !== f.currentTarget) && typeof ne.value == "function" && (y ? ne.value(y, f) : ne.value(f));
12246
+ for (var ee = 0; ee < R.length; ee++) {
12247
+ var ne = R[ee];
12248
+ ne.modifiers.stop && f.stopPropagation(), ne.modifiers.prevent && f.preventDefault(), !(ne.modifiers.self && f.target !== f.currentTarget) && typeof ne.value == "function" && (g ? ne.value(g, f) : ne.value(f));
12226
12249
  }
12227
12250
  }
12228
12251
  function C(f) {
@@ -12233,10 +12256,10 @@ const kh = {
12233
12256
  var u = f.$$touchObj.options.touchClass;
12234
12257
  u && f.classList.remove(u);
12235
12258
  }
12236
- function g(f) {
12259
+ function y(f) {
12237
12260
  f && f.touchHoldTimer && (clearTimeout(f.touchHoldTimer), f.touchHoldTimer = null);
12238
12261
  }
12239
- function S(f, u) {
12262
+ function k(f, u) {
12240
12263
  var p = f.$$touchObj || {
12241
12264
  element: f,
12242
12265
  // an object contains all callbacks registered,
@@ -12253,27 +12276,27 @@ const kh = {
12253
12276
  function x(f) {
12254
12277
  for (const u in f)
12255
12278
  if (f.hasOwnProperty(u)) {
12256
- const [p, y] = f[u];
12257
- p.addEventListener(u, y);
12279
+ const [p, g] = f[u];
12280
+ p.addEventListener(u, g);
12258
12281
  }
12259
12282
  }
12260
12283
  function $(f) {
12261
12284
  for (const u in f)
12262
12285
  if (f.hasOwnProperty(u)) {
12263
- const [p, y] = f[u];
12264
- p.removeEventListener(u, y);
12286
+ const [p, g] = f[u];
12287
+ p.removeEventListener(u, g);
12265
12288
  }
12266
12289
  }
12267
12290
  r.directive(t.namespace, {
12268
12291
  beforeMount: function(f, u) {
12269
- var p = S(f), y = u.arg || "tap";
12270
- switch (y) {
12292
+ var p = k(f), g = u.arg || "tap";
12293
+ switch (g) {
12271
12294
  case "swipe":
12272
- var D = u.modifiers;
12273
- if (D.left || D.right || D.top || D.bottom) {
12274
- for (var N in u.modifiers)
12275
- if (["left", "right", "top", "bottom"].indexOf(N) >= 0) {
12276
- var ee = "swipe." + N;
12295
+ var S = u.modifiers;
12296
+ if (S.left || S.right || S.top || S.bottom) {
12297
+ for (var R in u.modifiers)
12298
+ if (["left", "right", "top", "bottom"].indexOf(R) >= 0) {
12299
+ var ee = "swipe." + R;
12277
12300
  p.callbacks[ee] = p.callbacks[ee] || [], p.callbacks[ee].push(u);
12278
12301
  }
12279
12302
  } else
@@ -12283,23 +12306,23 @@ const kh = {
12283
12306
  case "drag":
12284
12307
  u.modifiers.disablePassive;
12285
12308
  default:
12286
- p.callbacks[y] = p.callbacks[y] || [], p.callbacks[y].push(u);
12309
+ p.callbacks[g] = p.callbacks[g] || [], p.callbacks[g].push(u);
12287
12310
  }
12288
12311
  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, v]) : (p.events.mousedown = [f, n], p.events.mousemove = [f, o], p.events.mouseup = [f, l], p.events.mouseenter = [f, d], p.events.mouseleave = [f, v])), x(p.events), p.hasBindTouchEvents = !0);
12289
12312
  },
12290
12313
  unmounted: function(f) {
12291
12314
  var u = f.$$touchObj;
12292
- g(u), u && u.events && ($(u.events), u.events = {}), delete f.$$touchObj;
12315
+ y(u), u && u.events && ($(u.events), u.events = {}), delete f.$$touchObj;
12293
12316
  }
12294
12317
  }), r.directive(`${t.namespace}-class`, {
12295
12318
  beforeMount: function(f, u) {
12296
- S(f, {
12319
+ k(f, {
12297
12320
  touchClass: u.value
12298
12321
  });
12299
12322
  }
12300
12323
  }), r.directive(`${t.namespace}-options`, {
12301
12324
  beforeMount: function(f, u) {
12302
- S(f, u.value);
12325
+ k(f, u.value);
12303
12326
  }
12304
12327
  });
12305
12328
  }