doph-js 0.3.29 → 0.3.31

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
@@ -1,4 +1,4 @@
1
- import { useSlots as nt, computed as $, h as ft, openBlock as d, createBlock as A, unref as z, ref as R, createElementBlock as y, Fragment as Se, normalizeClass as Q, renderSlot as q, createCommentVNode as V, normalizeStyle as ae, resolveDynamicComponent as ke, createStaticVNode as wn, onMounted as Pe, toDisplayString as K, withDirectives as $e, createElementVNode as D, vModelDynamic as ct, withCtx as X, createTextVNode as pe, Transition as Ht, withModifiers as de, resolveComponent as Be, resolveDirective as Bt, normalizeProps as $n, guardReactiveProps as Cn, createVNode as B, renderList as De, pushScopeId as Dn, popScopeId as En, reactive as mt, Teleport as Tn, nextTick as An, getCurrentInstance as Rt, watch as vt, onUnmounted as Ln, mergeProps as qe, useCssVars as gt, shallowRef as cr, defineComponent as Ie, TransitionGroup as Fn, vModelCheckbox as In, vModelSelect as dr, toRef as fr, KeepAlive as pr, vShow as hr, toRefs as mr, vModelText as Ot } from "vue";
1
+ import { useSlots as nt, computed as $, h as ft, openBlock as d, createBlock as L, unref as z, ref as R, createElementBlock as y, Fragment as Se, normalizeClass as Q, renderSlot as q, createCommentVNode as V, normalizeStyle as ae, resolveDynamicComponent as ke, createStaticVNode as wn, onMounted as Pe, toDisplayString as K, withDirectives as $e, createElementVNode as D, vModelDynamic as ct, withCtx as X, createTextVNode as pe, Transition as Ht, withModifiers as de, resolveComponent as Be, resolveDirective as Bt, normalizeProps as $n, guardReactiveProps as Cn, createVNode as B, renderList as De, pushScopeId as Dn, popScopeId as En, reactive as mt, Teleport as Tn, nextTick as An, getCurrentInstance as Rt, watch as vt, onUnmounted as Ln, mergeProps as qe, useCssVars as gt, shallowRef as cr, defineComponent as Ie, TransitionGroup as Fn, vModelCheckbox as In, vModelSelect as dr, toRef as fr, KeepAlive as pr, vShow as hr, toRefs as mr, vModelText as Ot } from "vue";
2
2
  const Oe = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -29,7 +29,7 @@ const Oe = {
29
29
  },
30
30
  e.component ? ft(e.component) : n
31
31
  ));
32
- return (l, a) => (d(), A(z(i)));
32
+ return (l, a) => (d(), L(z(i)));
33
33
  }
34
34
  }, Te = {
35
35
  state: {},
@@ -124,7 +124,7 @@ const Le = (t, e) => {
124
124
  n("click", b);
125
125
  }, a = (b) => {
126
126
  n("contextmenu", b);
127
- }, p = $(() => r.scale === "large" ? "button-lg" : r.scale === "small" ? "button-sm" : ""), h = $(() => r.disabled ? "disabled" : ""), m = (b) => !!o[b], g = $(() => m("default") ? "" : r.scale === "large" ? "d-button-lg-icon" : r.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), L = $(() => {
127
+ }, p = $(() => r.scale === "large" ? "button-lg" : r.scale === "small" ? "button-sm" : ""), h = $(() => r.disabled ? "disabled" : ""), m = (b) => !!o[b], g = $(() => m("default") ? "" : r.scale === "large" ? "d-button-lg-icon" : r.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), E = $(() => {
128
128
  const b = r.outline ? "-outline" : "";
129
129
  return r.type === "primary" ? `button${b}-blue` : r.type === "success" ? `button${b}-green` : r.type === "error" ? `button${b}-red` : r.type === "warning" ? `button${b}-orange` : r.type === "wait" ? `button${b}-violet` : r.outline ? `button${b}` : "";
130
130
  });
@@ -137,7 +137,7 @@ const Le = (t, e) => {
137
137
  ref: s,
138
138
  onClick: l,
139
139
  onContextmenu: a,
140
- class: Q(["button", [r.class, p.value, L.value, h.value].join(" ")])
140
+ class: Q(["button", [r.class, p.value, E.value, h.value].join(" ")])
141
141
  }, [
142
142
  q(b.$slots, "default", {}, void 0, !0),
143
143
  r.loading ? (d(), y("svg", vr, yr)) : V("", !0)
@@ -148,10 +148,10 @@ const Le = (t, e) => {
148
148
  ref: s,
149
149
  onClick: l,
150
150
  onContextmenu: a,
151
- class: Q(["button button-ext", [r.class, p.value, g.value, L.value, h.value].join(" ")]),
151
+ class: Q(["button button-ext", [r.class, p.value, g.value, E.value, h.value].join(" ")]),
152
152
  style: ae(r.style)
153
153
  }, [
154
- r.icon ? (d(), A(ke(Oe), {
154
+ r.icon ? (d(), L(ke(Oe), {
155
155
  key: 0,
156
156
  component: i.value,
157
157
  color: "inherit"
@@ -241,7 +241,7 @@ const Le = (t, e) => {
241
241
  [ct, i.value]
242
242
  ])
243
243
  ]),
244
- r.post.label ? (d(), A(xe, {
244
+ r.post.label ? (d(), L(xe, {
245
245
  key: 0,
246
246
  scale: r.scale,
247
247
  class: Q(["d-input-post-button", r.post.class]),
@@ -252,7 +252,7 @@ const Le = (t, e) => {
252
252
  pe(K(r.post.label), 1)
253
253
  ]),
254
254
  _: 1
255
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), A(xe, {
255
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), L(xe, {
256
256
  key: 1,
257
257
  scale: r.scale,
258
258
  class: Q(["d-input-post-button", r.post.class]),
@@ -263,7 +263,7 @@ const Le = (t, e) => {
263
263
  ])) : !r.post && r.pre && r.pre.click ? (d(), y("div", Fr, [
264
264
  r.label ? (d(), y("div", Ir, K(r.label), 1)) : V("", !0),
265
265
  D("div", Mr, [
266
- r.pre.label ? (d(), A(xe, {
266
+ r.pre.label ? (d(), L(xe, {
267
267
  key: 0,
268
268
  scale: r.scale,
269
269
  class: Q(["d-input-pre-button", r.pre.class]),
@@ -274,7 +274,7 @@ const Le = (t, e) => {
274
274
  pe(K(r.pre.label), 1)
275
275
  ]),
276
276
  _: 1
277
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), A(xe, {
277
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), L(xe, {
278
278
  key: 1,
279
279
  scale: r.scale,
280
280
  class: Q(["d-input-pre-button", r.pre.class]),
@@ -362,8 +362,8 @@ const Le = (t, e) => {
362
362
  let { height: m } = getComputedStyle(a);
363
363
  return a.style.width = p.width, a.style.position = p.position, a.style.visibility = p.visibility, a.style.height = Me, a.style.overflow = "hidden", p.height && p.height !== Me ? p.height : m;
364
364
  }, o = (a, p, h, m, g) => {
365
- const L = a.animate(m, g);
366
- a.style.height = p.height, L.onfinish = () => {
365
+ const E = a.animate(m, g);
366
+ a.style.height = p.height, E.onfinish = () => {
367
367
  a.style.overflow = p.overflow, h();
368
368
  };
369
369
  }, s = (a, p) => [
@@ -388,15 +388,15 @@ const Le = (t, e) => {
388
388
  marginBottom: p.marginBottom
389
389
  }
390
390
  ], i = (a, p) => {
391
- const h = a, m = n(h), g = r(h, m), L = s(g, m), C = { duration: e.duration, easing: e.easingEnter };
392
- o(h, m, p, L, C);
391
+ const h = a, m = n(h), g = r(h, m), E = s(g, m), C = { duration: e.duration, easing: e.easingEnter };
392
+ o(h, m, p, E, C);
393
393
  }, l = (a, p) => {
394
394
  const h = a, m = n(h), { height: g } = getComputedStyle(h);
395
395
  h.style.height = g, h.style.overflow = "hidden";
396
- const L = s(g, m).reverse(), C = { duration: e.duration, easing: e.easingLeave };
397
- o(h, m, p, L, C);
396
+ const E = s(g, m).reverse(), C = { duration: e.duration, easing: e.easingLeave };
397
+ o(h, m, p, E, C);
398
398
  };
399
- return (a, p) => (d(), A(Ht, {
399
+ return (a, p) => (d(), L(Ht, {
400
400
  css: !1,
401
401
  onEnter: i,
402
402
  onLeave: l
@@ -451,7 +451,7 @@ const Le = (t, e) => {
451
451
  e.transferData !== void 0 && (pt.data = e.transferData, a.dataTransfer.setData("text", "")), r.value = !0;
452
452
  }
453
453
  };
454
- return (l, a) => (d(), A(ke(t.tag), {
454
+ return (l, a) => (d(), L(ke(t.tag), {
455
455
  draggable: e.draggable,
456
456
  onDrag: a[0] || (a[0] = (p) => i(z(be).drag, p)),
457
457
  onDragstart: a[1] || (a[1] = de((p) => i(z(be).dragstart, p), ["stop"])),
@@ -504,7 +504,7 @@ const Le = (t, e) => {
504
504
  e("nodefoldericonclick", Y);
505
505
  }, g = (Y) => {
506
506
  e("nodeclick", Y);
507
- }, L = (Y) => {
507
+ }, E = (Y) => {
508
508
  e("nodedoubleclick", Y);
509
509
  }, C = (Y) => {
510
510
  e("nodedrop", Y);
@@ -537,9 +537,9 @@ const Le = (t, e) => {
537
537
  return !1;
538
538
  const ee = Y.y, le = r.value.getBoundingClientRect().top, w = r.value.getBoundingClientRect().height, _ = w / 3;
539
539
  ee > le && ee <= le + _ ? (o.value = !1, s.value = !0, i.value = !1) : ee < le + w && ee >= le + w - _ ? (o.value = !1, s.value = !1, i.value = !0) : (o.value = I.state.trees[n.treeId].dropInside, s.value = !1, i.value = !1);
540
- }, T = () => {
540
+ }, A = () => {
541
541
  o.value = !1, s.value = !1, i.value = !1;
542
- }, E = $(() => n.model.title.startsWith("-")), j = $(() => {
542
+ }, T = $(() => n.model.title.startsWith("-")), j = $(() => {
543
543
  if (n.model.title.startsWith("-")) {
544
544
  let [Y, ...U] = n.model.title.split(" ");
545
545
  return U = U.join(" "), U;
@@ -548,9 +548,9 @@ const Le = (t, e) => {
548
548
  });
549
549
  return (Y, U) => {
550
550
  const ee = Be("d-tree-item", !0), le = Bt("touch");
551
- return z(I).actions.beforeItem(n.treeId, t.model) ? E.value && !j.value ? (d(), y("li", Ur, Xr)) : E.value && j.value ? (d(), y("li", Yr, [
551
+ return z(I).actions.beforeItem(n.treeId, t.model) ? T.value && !j.value ? (d(), y("li", Ur, Xr)) : T.value && j.value ? (d(), y("li", Yr, [
552
552
  D("div", Gr, K(z(I).actions.renderTitle(n.treeId, j.value)), 1)
553
- ])) : n.model.component ? (d(), A(dn, {
553
+ ])) : n.model.component ? (d(), L(dn, {
554
554
  key: 3,
555
555
  tag: "li",
556
556
  class: "tree-item-component",
@@ -560,7 +560,7 @@ const Le = (t, e) => {
560
560
  onDragenter: U[1] || (U[1] = de(() => {
561
561
  }, ["prevent"])),
562
562
  onDragover: de(S, ["prevent", "stop"]),
563
- onDragleave: de(T, ["prevent"])
563
+ onDragleave: de(A, ["prevent"])
564
564
  }, {
565
565
  default: X(() => [
566
566
  $e((d(), y("div", {
@@ -569,13 +569,13 @@ const Le = (t, e) => {
569
569
  class: Q(O.value),
570
570
  onContextmenu: U[0] || (U[0] = de((w) => e("nodecontext", { e: w, model: n.model }), ["prevent"]))
571
571
  }, [
572
- (d(), A(ke(z(Ke).getters.getComponent(n.model.component).component), $n(Cn(z(Ke).getters.getComponent(n.model.component).props)), null, 16))
572
+ (d(), L(ke(z(Ke).getters.getComponent(n.model.component).component), $n(Cn(z(Ke).getters.getComponent(n.model.component).props)), null, 16))
573
573
  ], 34)), [
574
574
  [le, p, "press"]
575
575
  ])
576
576
  ]),
577
577
  _: 1
578
- }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), A(dn, {
578
+ }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), L(dn, {
579
579
  key: 4,
580
580
  tag: "li",
581
581
  class: "tree-item",
@@ -585,7 +585,7 @@ const Le = (t, e) => {
585
585
  onDragenter: U[4] || (U[4] = de(() => {
586
586
  }, ["prevent"])),
587
587
  onDragover: de(S, ["prevent", "stop"]),
588
- onDragleave: de(T, ["prevent"])
588
+ onDragleave: de(A, ["prevent"])
589
589
  }, {
590
590
  default: X(() => {
591
591
  var w, _;
@@ -599,7 +599,7 @@ const Le = (t, e) => {
599
599
  onContextmenu: U[3] || (U[3] = de((M) => e("nodecontext", { e: M, model: n.model }), ["prevent"]))
600
600
  }, [
601
601
  D("div", null, [
602
- n.model.icons && n.model.icons.pre && l.value && !n.search && !E.value ? (d(), A(ke(Oe), {
602
+ n.model.icons && n.model.icons.pre && l.value && !n.search && !T.value ? (d(), L(ke(Oe), {
603
603
  key: 0,
604
604
  component: z(Te).getters.getIcon(n.model.icons.pre.component),
605
605
  size: 18,
@@ -607,14 +607,14 @@ const Le = (t, e) => {
607
607
  class: Q(a.value ? "tree-open-pre" : ""),
608
608
  onPointerdownCapture: h
609
609
  }, null, 40, ["component", "color", "class"])) : V("", !0),
610
- n.model.icons && n.model.icons.pre && !l.value && !n.search && !E.value ? (d(), A(ke(Oe), {
610
+ n.model.icons && n.model.icons.pre && !l.value && !n.search && !T.value ? (d(), L(ke(Oe), {
611
611
  key: 1,
612
612
  component: z(Te).getters.getIcon(n.model.icons.pre.component),
613
613
  size: 18,
614
614
  color: "rgba(0,0,0,0)",
615
615
  class: Q(a.value ? "tree-open-pre" : "")
616
616
  }, null, 8, ["component", "class"])) : V("", !0),
617
- n.model.icons && n.model.icons.icon && !E.value ? (d(), A(ke(Oe), {
617
+ n.model.icons && n.model.icons.icon && !T.value ? (d(), L(ke(Oe), {
618
618
  key: 2,
619
619
  component: z(Te).getters.getIcon(n.model.icons.icon.component),
620
620
  color: n.model.icons.icon.color ? n.model.icons.icon.color : "inherit",
@@ -622,19 +622,19 @@ const Le = (t, e) => {
622
622
  className: n.model.icons.icon.class ? n.model.icons.icon.class : null
623
623
  }, null, 8, ["component", "color", "size", "className"])) : V("", !0),
624
624
  D("div", qr, [
625
- E.value ? (d(), y("div", Kr)) : V("", !0),
626
- !E.value && Object.hasOwn(n.model, "link") ? (d(), y("a", {
625
+ T.value ? (d(), y("div", Kr)) : V("", !0),
626
+ !T.value && Object.hasOwn(n.model, "link") ? (d(), y("a", {
627
627
  key: 1,
628
628
  href: n.model.link,
629
629
  target: Object.hasOwn(n.model, "target") ? n.model.target : "_self"
630
630
  }, [
631
- E.value ? V("", !0) : (d(), y("div", Jr, K(z(I).actions.renderTitle(n.treeId, n.model.title)), 1))
631
+ T.value ? V("", !0) : (d(), y("div", Jr, K(z(I).actions.renderTitle(n.treeId, n.model.title)), 1))
632
632
  ], 8, Zr)) : V("", !0),
633
- !E.value && !Object.hasOwn(n.model, "link") ? (d(), y("div", Qr, K(z(I).actions.renderTitle(n.treeId, n.model.title)), 1)) : V("", !0)
633
+ !T.value && !Object.hasOwn(n.model, "link") ? (d(), y("div", Qr, K(z(I).actions.renderTitle(n.treeId, n.model.title)), 1)) : V("", !0)
634
634
  ])
635
635
  ]),
636
636
  D("div", eo, [
637
- ((w = n.model.badge) == null ? void 0 : w.value) !== void 0 && !E.value ? (d(), A(ke(Rr), {
637
+ ((w = n.model.badge) == null ? void 0 : w.value) !== void 0 && !T.value ? (d(), L(ke(Rr), {
638
638
  key: 0,
639
639
  class: Q([(_ = n.model.badge) == null ? void 0 : _.class, "badge-sm"])
640
640
  }, {
@@ -643,7 +643,7 @@ const Le = (t, e) => {
643
643
  ]),
644
644
  _: 1
645
645
  }, 8, ["class"])) : V("", !0),
646
- n.model.icons && n.model.icons.post && l.value && !n.search && !E.value ? (d(), A(ke(Oe), {
646
+ n.model.icons && n.model.icons.post && l.value && !n.search && !T.value ? (d(), L(ke(Oe), {
647
647
  key: 1,
648
648
  component: z(Te).getters.getIcon(n.model.icons.post.component),
649
649
  size: 20,
@@ -656,14 +656,14 @@ const Le = (t, e) => {
656
656
  B(Or, null, {
657
657
  default: X(() => [
658
658
  l.value && a.value && !n.search ? (d(), y("ul", to, [
659
- (d(!0), y(Se, null, De(t.model.children, (M) => (d(), A(ee, {
659
+ (d(!0), y(Se, null, De(t.model.children, (M) => (d(), L(ee, {
660
660
  key: M.id,
661
661
  model: M,
662
662
  treeId: n.treeId,
663
663
  items: n.items,
664
664
  search: n.search,
665
665
  onNodeclick: g,
666
- onNodedoubleclick: L,
666
+ onNodedoubleclick: E,
667
667
  onNodedrop: C,
668
668
  onNodecontext: b,
669
669
  onNodefoldericonclick: m
@@ -844,7 +844,7 @@ const we = oo(), I = {
844
844
  };
845
845
  return e({
846
846
  elementSize: () => Mn(s)
847
- }), (h, m) => (d(), A(ke(t.tag), {
847
+ }), (h, m) => (d(), L(ke(t.tag), {
848
848
  ref_key: "el",
849
849
  ref: s,
850
850
  onDragenter: m[0] || (m[0] = (g) => a(z(be).dragenter, g)),
@@ -897,10 +897,10 @@ const we = oo(), I = {
897
897
  const m = (g) => {
898
898
  n("select", g), g.model.children || l();
899
899
  };
900
- return (g, L) => {
900
+ return (g, E) => {
901
901
  const C = Bt("click-outside");
902
- return d(), A(Tn, { to: "body" }, [
903
- z(s) ? $e((d(), A(Hn, {
902
+ return d(), L(Tn, { to: "body" }, [
903
+ z(s) ? $e((d(), L(Hn, {
904
904
  key: 0,
905
905
  ref_key: "treeRef",
906
906
  ref: o,
@@ -931,15 +931,15 @@ const we = oo(), I = {
931
931
  top: i.value + "px"
932
932
  })), a = (h) => {
933
933
  h.preventDefault(), o.value.show(), An(() => {
934
- const m = o.value.elementSize(), g = window.innerWidth, L = window.innerHeight;
935
- s.value = g - h.pageX < m.width ? h.pageX - m.width : h.pageX, i.value = L - h.pageY < m.height ? h.pageY - m.height : h.pageY, o.value.itemsCount() === 0 && o.value.hide();
934
+ const m = o.value.elementSize(), g = window.innerWidth, E = window.innerHeight;
935
+ s.value = g - h.pageX < m.width ? h.pageX - m.width : h.pageX, i.value = E - h.pageY < m.height ? h.pageY - m.height : h.pageY, o.value.itemsCount() === 0 && o.value.hide();
936
936
  });
937
937
  }, p = (h) => {
938
938
  n("select", h);
939
939
  };
940
940
  return e({
941
941
  show: a
942
- }), (h, m) => (d(), A(Vn, {
942
+ }), (h, m) => (d(), L(Vn, {
943
943
  ref_key: "dMenuRef",
944
944
  ref: o,
945
945
  onSelect: p,
@@ -1018,7 +1018,7 @@ const we = oo(), I = {
1018
1018
  I.mutations.setItemSelect(l, _.model), r.doubleClickExpand || I.actions.toggleItem(l, _.model), n("select", _);
1019
1019
  }, g = (_ = null) => {
1020
1020
  r.doubleClickExpand && I.actions.toggleItem(l, _.model), n("doubleclick", _);
1021
- }, L = (_ = null) => {
1021
+ }, E = (_ = null) => {
1022
1022
  r.doubleClickExpand && I.actions.toggleItem(l, _.model), n("foldericonclick", _);
1023
1023
  }, C = (_ = null) => {
1024
1024
  n("over", _);
@@ -1030,8 +1030,8 @@ const we = oo(), I = {
1030
1030
  }, P = () => {
1031
1031
  for (let _ = 0; _ < r.items.length; _++)
1032
1032
  r.items[_].expanded = !1;
1033
- }, S = () => l, T = (_) => I.actions.deepSearch(r.items, _), E = (_) => {
1034
- T(_) && I.mutations.setItemSelect(l, T(_));
1033
+ }, S = () => l, A = (_) => I.actions.deepSearch(r.items, _), T = (_) => {
1034
+ A(_) && I.mutations.setItemSelect(l, A(_));
1035
1035
  }, j = (_) => {
1036
1036
  r.contextClick({ e: _.e, model: _.model, target: i.value });
1037
1037
  }, Y = (_) => r.contextBeforeClick({ model: _, target: i.value }), U = $(() => r.context), ee = (_) => (U.value && (i.value = _.model, s.value.show(_.e)), !1), le = () => w(p.value), w = (_) => {
@@ -1045,11 +1045,11 @@ const we = oo(), I = {
1045
1045
  expandAll: W,
1046
1046
  collapseAll: P,
1047
1047
  getId: S,
1048
- getNode: T,
1049
- selectNode: E,
1048
+ getNode: A,
1049
+ selectNode: T,
1050
1050
  itemsCount: le,
1051
1051
  expandNode: h
1052
- }), (_, M) => (d(), A(so, {
1052
+ }), (_, M) => (d(), L(so, {
1053
1053
  ref_key: "treeRef",
1054
1054
  ref: o,
1055
1055
  class: "tree",
@@ -1057,7 +1057,7 @@ const we = oo(), I = {
1057
1057
  onDrop: de(a, ["stop"])
1058
1058
  }, {
1059
1059
  default: X(() => [
1060
- (d(!0), y(Se, null, De(p.value, (Z) => (d(), A(ro, {
1060
+ (d(!0), y(Se, null, De(p.value, (Z) => (d(), L(ro, {
1061
1061
  key: Z.id,
1062
1062
  model: Z,
1063
1063
  treeId: z(l),
@@ -1068,9 +1068,9 @@ const we = oo(), I = {
1068
1068
  onNodedragover: C,
1069
1069
  onNodedrop: b,
1070
1070
  onNodecontext: ee,
1071
- onNodefoldericonclick: L
1071
+ onNodefoldericonclick: E
1072
1072
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
1073
- U.value ? (d(), A(io, {
1073
+ U.value ? (d(), L(io, {
1074
1074
  key: 0,
1075
1075
  ref_key: "contextTreeRef",
1076
1076
  ref: s,
@@ -1098,7 +1098,7 @@ const we = oo(), I = {
1098
1098
  const n = t, r = (o) => {
1099
1099
  e("move", o);
1100
1100
  };
1101
- return (o, s) => (d(), A(Hn, {
1101
+ return (o, s) => (d(), L(Hn, {
1102
1102
  class: "accordion",
1103
1103
  items: n.items,
1104
1104
  "no-select": n.noSelect,
@@ -1445,39 +1445,39 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1445
1445
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1446
1446
  setup(t, { emit: e }) {
1447
1447
  const n = t, r = $(() => n.useMinWidthLayout ? `min-width:${n.minWidth}px;` : ""), o = $(() => n.useMinWidthLayout && (n.fixedHeaderAndTab || n.fixedFooter)), s = ho(o), i = $(() => n.fixedHeaderAndTab ? s.value : ""), l = $(() => n.fixedFooter ? s.value : ""), a = $(() => {
1448
- const { transitionDuration: E, transitionTimingFunction: j } = n;
1448
+ const { transitionDuration: T, transitionTimingFunction: j } = n;
1449
1449
  return {
1450
- transitionDuration: E,
1450
+ transitionDuration: T,
1451
1451
  transitionTimingFunction: j
1452
1452
  };
1453
1453
  }), p = $(() => n.mode === "vertical"), h = $(() => n.isMobile || p.value ? 1003 : 1e3), m = $({
1454
1454
  get() {
1455
1455
  return n.sidebarCollapse;
1456
1456
  },
1457
- set(E) {
1458
- e("update:sidebar-collapse", E);
1457
+ set(T) {
1458
+ e("update:sidebar-collapse", T);
1459
1459
  }
1460
1460
  });
1461
1461
  function g() {
1462
1462
  e("sidebar-mask-click");
1463
1463
  }
1464
- const L = $(() => n.isMobile && !m.value), C = $(() => {
1465
- const { transitionDuration: E, transitionTimingFunction: j } = n;
1466
- return `background-color:${n.maskBg};transition-duration:${E}ms;transition-timing-function:${j};`;
1464
+ const E = $(() => n.isMobile && !m.value), C = $(() => {
1465
+ const { transitionDuration: T, transitionTimingFunction: j } = n;
1466
+ return `background-color:${n.maskBg};transition-duration:${T}ms;transition-timing-function:${j};`;
1467
1467
  }), b = $(() => {
1468
- const { sidebarWidth: E, sidebarCollapsedWidth: j } = n, Y = n.isMobile ? 0 : j, U = m.value ? Y : E;
1468
+ const { sidebarWidth: T, sidebarCollapsedWidth: j } = n, Y = n.isMobile ? 0 : j, U = m.value ? Y : T;
1469
1469
  return n.sidebarVisible ? U : 0;
1470
1470
  }), O = $(() => n.isMobile ? 0 : b.value), W = $(() => p.value ? O.value : 0), P = $(
1471
1471
  () => !n.isMobile && !p.value && n.headerVisible ? n.headerHeight : 0
1472
1472
  ), S = $(() => {
1473
- let E = 0;
1474
- return n.fixedHeaderAndTab && (n.headerVisible && (E += n.headerHeight), n.tabVisible && (E += n.tabHeight)), E;
1475
- }), T = $(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
1476
- return (E, j) => (d(), y("div", {
1473
+ let T = 0;
1474
+ return n.fixedHeaderAndTab && (n.headerVisible && (T += n.headerHeight), n.tabVisible && (T += n.tabHeight)), T;
1475
+ }), A = $(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
1476
+ return (T, j) => (d(), y("div", {
1477
1477
  class: "d-layout",
1478
1478
  style: ae(r.value)
1479
1479
  }, [
1480
- t.headerVisible ? (d(), A(lo, qe({ key: 0 }, a.value, {
1480
+ t.headerVisible ? (d(), L(lo, qe({ key: 0 }, a.value, {
1481
1481
  fixed: t.fixedHeaderAndTab,
1482
1482
  "z-index": mo,
1483
1483
  "min-width": t.minWidth,
@@ -1486,11 +1486,11 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1486
1486
  style: i.value
1487
1487
  }), {
1488
1488
  default: X(() => [
1489
- q(E.$slots, "header")
1489
+ q(T.$slots, "header")
1490
1490
  ]),
1491
1491
  _: 3
1492
1492
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : V("", !0),
1493
- t.tabVisible ? (d(), A(uo, qe({ key: 1 }, a.value, {
1493
+ t.tabVisible ? (d(), L(uo, qe({ key: 1 }, a.value, {
1494
1494
  fixed: t.fixedHeaderAndTab,
1495
1495
  "z-index": vo,
1496
1496
  "min-width": t.minWidth,
@@ -1500,21 +1500,21 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1500
1500
  style: i.value
1501
1501
  }), {
1502
1502
  default: X(() => [
1503
- q(E.$slots, "tab")
1503
+ q(T.$slots, "tab")
1504
1504
  ]),
1505
1505
  _: 3
1506
1506
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : V("", !0),
1507
- t.sidebarVisible ? (d(), A(fo, qe({ key: 2 }, a.value, {
1507
+ t.sidebarVisible ? (d(), L(fo, qe({ key: 2 }, a.value, {
1508
1508
  "z-index": h.value,
1509
1509
  width: b.value,
1510
1510
  "padding-top": P.value
1511
1511
  }), {
1512
1512
  default: X(() => [
1513
- q(E.$slots, "sidebar")
1513
+ q(T.$slots, "sidebar")
1514
1514
  ]),
1515
1515
  _: 3
1516
1516
  }, 16, ["z-index", "width", "padding-top"])) : V("", !0),
1517
- L.value ? (d(), y("div", {
1517
+ E.value ? (d(), y("div", {
1518
1518
  key: 3,
1519
1519
  class: "d-layout-sidebar-mask",
1520
1520
  style: ae(C.value),
@@ -1522,16 +1522,16 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1522
1522
  }, null, 4)) : V("", !0),
1523
1523
  B(po, qe(a.value, {
1524
1524
  "padding-top": S.value,
1525
- "padding-bottom": T.value,
1525
+ "padding-bottom": A.value,
1526
1526
  "padding-left": O.value,
1527
1527
  "overflow-hidden": t.addMainOverflowHidden
1528
1528
  }), {
1529
1529
  default: X(() => [
1530
- q(E.$slots, "default")
1530
+ q(T.$slots, "default")
1531
1531
  ]),
1532
1532
  _: 3
1533
1533
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1534
- t.footerVisible ? (d(), A(co, qe({ key: 4 }, a.value, {
1534
+ t.footerVisible ? (d(), L(co, qe({ key: 4 }, a.value, {
1535
1535
  fixed: t.fixedFooter,
1536
1536
  "z-index": go,
1537
1537
  "min-width": t.minWidth,
@@ -1540,7 +1540,7 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1540
1540
  style: l.value
1541
1541
  }), {
1542
1542
  default: X(() => [
1543
- q(E.$slots, "footer")
1543
+ q(T.$slots, "footer")
1544
1544
  ]),
1545
1545
  _: 3
1546
1546
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : V("", !0)
@@ -1657,7 +1657,7 @@ const mo = 1001, vo = 999, go = 998, Ga = {
1657
1657
  hide: l
1658
1658
  }), (a, p) => {
1659
1659
  const h = Bt("keydown");
1660
- return d(), A(Tn, { to: "body" }, [
1660
+ return d(), L(Tn, { to: "body" }, [
1661
1661
  B(Ht, { name: "fade" }, {
1662
1662
  default: X(() => [
1663
1663
  s.value ? $e((d(), y("div", {
@@ -1734,9 +1734,9 @@ const $o = Ie({
1734
1734
  }
1735
1735
  });
1736
1736
  function Co(t, e, n, r, o, s) {
1737
- return d(), A(Ht, $n(Cn(t.transitionAttrs)), {
1737
+ return d(), L(Ht, $n(Cn(t.transitionAttrs)), {
1738
1738
  default: X(() => [
1739
- t.dialogRef && t.dialogRef.wrapper === t.name ? (d(), A(ke(t.dialogRef.dialog), qe({ key: 0 }, t.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : V("", !0)
1739
+ t.dialogRef && t.dialogRef.wrapper === t.name ? (d(), L(ke(t.dialogRef.dialog), qe({ key: 0 }, t.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : V("", !0)
1740
1740
  ]),
1741
1741
  _: 1
1742
1742
  }, 16);
@@ -1839,8 +1839,8 @@ const Eo = { style: { display: "flex", "flex-direction": "row", "justify-content
1839
1839
  },
1840
1840
  emits: ["select", "click"],
1841
1841
  setup(t, { expose: e, emit: n }) {
1842
- const r = t, o = nt(), s = R(null), i = R(null), l = R(0), a = R(0), p = (L) => {
1843
- if (n("click", L), s.value.isShowed()) {
1842
+ const r = t, o = nt(), s = R(null), i = R(null), l = R(0), a = R(0), p = (E) => {
1843
+ if (n("click", E), s.value.isShowed()) {
1844
1844
  s.value.hide();
1845
1845
  return;
1846
1846
  }
@@ -1848,15 +1848,15 @@ const Eo = { style: { display: "flex", "flex-direction": "row", "justify-content
1848
1848
  const C = s.value.elementSize(), b = i.value.elementSize(), O = window.innerWidth, W = window.innerHeight;
1849
1849
  l.value = O - (b.x + b.width) < C.width ? b.left - C.width + b.width : b.left, a.value = W - (b.y + b.height) < C.height ? b.top - C.height - 5 : b.height + b.top + 5;
1850
1850
  });
1851
- }, h = (L) => {
1852
- n("select", L);
1851
+ }, h = (E) => {
1852
+ n("select", E);
1853
1853
  }, m = $(() => ({ left: l.value + "px", top: a.value + "px", position: r.bodyAsParent ? "absolute" : "fixed", ...r.menuStyle }));
1854
1854
  e({
1855
1855
  show: p
1856
1856
  });
1857
- const g = (L) => !!o[L];
1858
- return (L, C) => (d(), y("div", Fo, [
1859
- g("default") ? (d(), A(xe, {
1857
+ const g = (E) => !!o[E];
1858
+ return (E, C) => (d(), y("div", Fo, [
1859
+ g("default") ? (d(), L(xe, {
1860
1860
  key: 0,
1861
1861
  ref_key: "buttonRef",
1862
1862
  ref: i,
@@ -1866,10 +1866,10 @@ const Eo = { style: { display: "flex", "flex-direction": "row", "justify-content
1866
1866
  type: r.type
1867
1867
  }, {
1868
1868
  default: X(() => [
1869
- q(L.$slots, "default")
1869
+ q(E.$slots, "default")
1870
1870
  ]),
1871
1871
  _: 3
1872
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), A(xe, {
1872
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), L(xe, {
1873
1873
  key: 1,
1874
1874
  ref_key: "buttonRef",
1875
1875
  ref: i,
@@ -1907,7 +1907,7 @@ const Ho = /* @__PURE__ */ Le(Io, [["render", Vo]]), Bo = {
1907
1907
  }, Qa = {
1908
1908
  __name: "DCard",
1909
1909
  setup(t) {
1910
- return (e, n) => (d(), A(Ho, { class: "d-card" }, {
1910
+ return (e, n) => (d(), L(Ho, { class: "d-card" }, {
1911
1911
  default: X(() => [
1912
1912
  e.$slots.header ? (d(), y("div", Bo, [
1913
1913
  q(e.$slots, "header")
@@ -2011,7 +2011,7 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2011
2011
  }, o = () => {
2012
2012
  e("after-leave");
2013
2013
  };
2014
- return (s, i) => (d(), A(Fn, {
2014
+ return (s, i) => (d(), L(Fn, {
2015
2015
  tag: "span",
2016
2016
  css: !1,
2017
2017
  onEnter: n,
@@ -2033,7 +2033,7 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2033
2033
  },
2034
2034
  setup(t) {
2035
2035
  const e = t;
2036
- return (n, r) => (d(), A(Fn, {
2036
+ return (n, r) => (d(), L(Fn, {
2037
2037
  tag: "span",
2038
2038
  name: e.name
2039
2039
  }, {
@@ -2124,8 +2124,8 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2124
2124
  width: M + Z
2125
2125
  };
2126
2126
  return _ && (me[_] = "0px"), w && (w === "center" ? me.left = `calc(50% - ${+M / 2}${Z})` : me[w] = "0px"), me;
2127
- }), g = $(() => "bottom" in m.value), L = (w) => {
2128
- e("click", w), n.closeOnClick && T(w);
2127
+ }), g = $(() => "bottom" in m.value), E = (w) => {
2128
+ e("click", w), n.closeOnClick && A(w);
2129
2129
  }, C = () => {
2130
2130
  var w;
2131
2131
  n.pauseOnHover && ((w = s.value) == null || w.pause());
@@ -2149,24 +2149,24 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2149
2149
  length: _ + 2 * M,
2150
2150
  data: J
2151
2151
  };
2152
- _ >= 0 && (s.value = new No(() => T(fe), fe.length, fe));
2152
+ _ >= 0 && (s.value = new No(() => A(fe), fe.length, fe));
2153
2153
  const Ye = n.reverse ? !g.value : g.value;
2154
2154
  let Ge = -1;
2155
2155
  const Je = p.value.some((Qe) => Qe.title === w.title && Qe.text === w.text);
2156
- (!Z || !Je) && (Ye ? (o.value.push(fe), e("start", fe), p.value.length > n.max && (Ge = 0)) : (o.value.unshift(fe), e("start", fe), p.value.length > n.max && (Ge = p.value.length - 1)), Ge !== -1 && T(p.value[Ge]));
2156
+ (!Z || !Je) && (Ye ? (o.value.push(fe), e("start", fe), p.value.length > n.max && (Ge = 0)) : (o.value.unshift(fe), e("start", fe), p.value.length > n.max && (Ge = p.value.length - 1)), Ge !== -1 && A(p.value[Ge]));
2157
2157
  }, W = (w) => {
2158
- E(w);
2158
+ T(w);
2159
2159
  }, P = (w) => [
2160
2160
  "d-notification-template",
2161
2161
  n.classes,
2162
2162
  w.type || ""
2163
- ], S = (w) => l.value ? void 0 : { transition: `all ${w.speed}ms` }, T = (w) => {
2163
+ ], S = (w) => l.value ? void 0 : { transition: `all ${w.speed}ms` }, A = (w) => {
2164
2164
  clearTimeout(w.timer), w.state = r.DESTROYED, le(), e("destroy", w);
2165
- }, E = (w) => {
2165
+ }, T = (w) => {
2166
2166
  const _ = o.value.find((M) => M.id === w);
2167
- _ && T(_);
2167
+ _ && A(_);
2168
2168
  }, j = () => {
2169
- p.value.forEach(T);
2169
+ p.value.forEach(A);
2170
2170
  }, Y = (w, _) => {
2171
2171
  var Z;
2172
2172
  const M = (Z = n.animation) == null ? void 0 : Z[w];
@@ -2197,7 +2197,7 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2197
2197
  class: "d-notification-group",
2198
2198
  style: ae(m.value)
2199
2199
  }, [
2200
- (d(), A(ke(a.value), {
2200
+ (d(), L(ke(a.value), {
2201
2201
  name: t.animationName,
2202
2202
  onEnter: U,
2203
2203
  onLeave: ee,
@@ -2215,11 +2215,11 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2215
2215
  q(w.$slots, "body", {
2216
2216
  class: Q([t.classes, M.type]),
2217
2217
  item: M,
2218
- close: () => T(M)
2218
+ close: () => A(M)
2219
2219
  }, () => [
2220
2220
  D("div", {
2221
2221
  class: Q(P(M)),
2222
- onClick: (Z) => L(M)
2222
+ onClick: (Z) => E(M)
2223
2223
  }, [
2224
2224
  t.dangerouslySetInnerHtml ? (d(), y(Se, { key: 0 }, [
2225
2225
  M.title ? (d(), y("div", {
@@ -2264,7 +2264,7 @@ const At = "[-+]?[0-9]*.?[0-9]+", fn = [
2264
2264
  }, [
2265
2265
  D("div", ts, [
2266
2266
  D("div", ns, [
2267
- n.icon ? (d(), A(ke(Oe), {
2267
+ n.icon ? (d(), L(ke(Oe), {
2268
2268
  key: 0,
2269
2269
  component: r.value,
2270
2270
  color: "inherit",
@@ -2330,7 +2330,7 @@ async function us(t, e) {
2330
2330
  const rl = {
2331
2331
  __name: "DDialogProvider",
2332
2332
  setup(t) {
2333
- return window.alert = us, window.confirm = ls, (e, n) => (d(), A(z(Do)));
2333
+ return window.alert = us, window.confirm = ls, (e, n) => (d(), L(z(Do)));
2334
2334
  }
2335
2335
  }, cs = { class: "d-select" }, ds = {
2336
2336
  key: 0,
@@ -2437,16 +2437,16 @@ const rl = {
2437
2437
  }
2438
2438
  }), (m, g) => (d(), y(Se, null, [
2439
2439
  D("div", xs, [
2440
- (d(!0), y(Se, null, De(r.value, (L, C) => (d(), A(_s, {
2440
+ (d(!0), y(Se, null, De(r.value, (E, C) => (d(), L(_s, {
2441
2441
  index: C,
2442
- tab: L,
2442
+ tab: E,
2443
2443
  class: Q(["d-tab-title", C === s.value ? "active" : ""]),
2444
2444
  onClick: (b) => i(C)
2445
2445
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2446
2446
  ]),
2447
- (d(), A(pr, null, [
2448
- (d(!0), y(Se, null, De(r.value, (L, C) => (d(), y("div", null, [
2449
- $e((d(), A(ke(L.component), {
2447
+ (d(), L(pr, null, [
2448
+ (d(!0), y(Se, null, De(r.value, (E, C) => (d(), y("div", null, [
2449
+ $e((d(), L(ke(E.component), {
2450
2450
  ref_for: !0,
2451
2451
  ref: l
2452
2452
  }, null, 512)), [
@@ -2547,7 +2547,7 @@ const rl = {
2547
2547
  (d(!0), y(Se, null, De(n.columns, (s, i) => (d(), y("td", {
2548
2548
  key: `${s.key}-${i}`
2549
2549
  }, [
2550
- s.render ? (d(), A(ke(s.render(n.item, n.index)), { key: 0 })) : (d(), y("span", Cs, K(n.item[s.key]), 1))
2550
+ s.render ? (d(), L(ke(s.render(n.item, n.index)), { key: 0 })) : (d(), y("span", Cs, K(n.item[s.key]), 1))
2551
2551
  ]))), 128))
2552
2552
  ]));
2553
2553
  }
@@ -2617,7 +2617,7 @@ const rl = {
2617
2617
  ])
2618
2618
  ]),
2619
2619
  D("tbody", null, [
2620
- (d(!0), y(Se, null, De(z(G).getters.getItems(), (i, l) => (d(), A(Ds, {
2620
+ (d(!0), y(Se, null, De(z(G).getters.getItems(), (i, l) => (d(), L(Ds, {
2621
2621
  item: i,
2622
2622
  index: l,
2623
2623
  columns: n.columns,
@@ -2695,8 +2695,8 @@ const rl = {
2695
2695
  setup(t, { expose: e, emit: n }) {
2696
2696
  const r = t, o = R(null), s = $(() => r.scale === "small" ? "d-textarea-small" : r.scale === "large" ? "d-textarea-large" : ""), i = $({
2697
2697
  get: () => r.modelValue,
2698
- set: (h) => {
2699
- n("update:modelValue", h);
2698
+ set: (g) => {
2699
+ n("update:modelValue", g);
2700
2700
  }
2701
2701
  });
2702
2702
  Pe(() => {
@@ -2707,18 +2707,24 @@ const rl = {
2707
2707
  }, a = () => {
2708
2708
  o.value.style.height = "auto";
2709
2709
  }, p = () => {
2710
+ o.value.style.height = `${o.value.scrollHeight}px`;
2711
+ }, h = () => {
2710
2712
  r.autoHeight && (o.value.style.resize = "none", o.value.style.overflow = "hidden", o.value.style.minHeight = r.minHeight, o.value.style.maxHeight = r.maxHeight, o.value.style.height = "auto", o.value.style.height = `${o.value.scrollHeight}px`);
2713
+ }, m = () => {
2714
+ r.autoHeight && (o.value.style.height = "auto", o.value.style.height = `${o.value.scrollHeight}px`);
2711
2715
  };
2712
2716
  return e({
2713
2717
  focus: l,
2714
- reset: a
2715
- }), (h, m) => (d(), y("div", Rs, [
2718
+ reset: a,
2719
+ update: p
2720
+ }), (g, E) => (d(), y("div", Rs, [
2716
2721
  r.label ? (d(), y("div", Os, K(r.label), 1)) : V("", !0),
2717
2722
  $e(D("textarea", {
2718
2723
  ref_key: "inputRef",
2719
2724
  ref: o,
2720
- "onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
2721
- onInput: p,
2725
+ "onUpdate:modelValue": E[0] || (E[0] = (C) => i.value = C),
2726
+ "on:update:modelValue": m,
2727
+ onInput: h,
2722
2728
  rows: r.rows,
2723
2729
  cols: r.cols,
2724
2730
  placeholder: r.placeholder,
@@ -2730,7 +2736,7 @@ const rl = {
2730
2736
  ])
2731
2737
  ]));
2732
2738
  }
2733
- }, ll = /* @__PURE__ */ Le(Ns, [["__scopeId", "data-v-7796d2fd"]]), zs = ["id", "checked", "disabled"], js = ["for"], ul = {
2739
+ }, ll = /* @__PURE__ */ Le(Ns, [["__scopeId", "data-v-34889341"]]), zs = ["id", "checked", "disabled"], js = ["for"], ul = {
2734
2740
  __name: "DSwitcher",
2735
2741
  props: {
2736
2742
  modelValue: Boolean,
@@ -2882,7 +2888,7 @@ var zt = Ie({
2882
2888
  });
2883
2889
  const Ys = { ref: "canvasSaturation" };
2884
2890
  function Gs(t, e, n, r, o, s) {
2885
- return d(), A(
2891
+ return d(), L(
2886
2892
  "div",
2887
2893
  {
2888
2894
  class: "saturation",
@@ -2968,7 +2974,7 @@ var jt = Ie({
2968
2974
  });
2969
2975
  const qs = { ref: "canvasHue" };
2970
2976
  function Ks(t, e, n, r, o, s) {
2971
- return d(), A(
2977
+ return d(), L(
2972
2978
  "div",
2973
2979
  {
2974
2980
  class: "hue",
@@ -3063,7 +3069,7 @@ var Ut = Ie({
3063
3069
  });
3064
3070
  const Zs = { ref: "canvasAlpha" };
3065
3071
  function Js(t, e, n, r, o, s) {
3066
- return d(), A(
3072
+ return d(), L(
3067
3073
  "div",
3068
3074
  {
3069
3075
  class: "color-alpha",
@@ -3130,7 +3136,7 @@ var Wt = Ie({
3130
3136
  }
3131
3137
  });
3132
3138
  function Qs(t, e, n, r, o, s) {
3133
- return d(), A("canvas");
3139
+ return d(), L("canvas");
3134
3140
  }
3135
3141
  Wt.render = Qs;
3136
3142
  Wt.__file = "src/color/Preview.vue";
@@ -3166,7 +3172,7 @@ var Xt = Ie({
3166
3172
  },
3167
3173
  mousemoveHandler(t) {
3168
3174
  const { clientX: e, clientY: n } = t, { top: r, left: o, width: s, height: i } = this.suckerCanvas.getBoundingClientRect(), l = e - o, a = n - r, h = this.suckerCanvas.getContext("2d").getImageData(Math.min(l, s - 1), Math.min(a, i - 1), 1, 1);
3169
- let [m, g, L, C] = h.data;
3175
+ let [m, g, E, C] = h.data;
3170
3176
  C = parseFloat((C / 255).toFixed(2));
3171
3177
  const b = this.suckerPreview.style;
3172
3178
  Object.assign(b, {
@@ -3178,7 +3184,7 @@ var Xt = Ie({
3178
3184
  borderRadius: "50%",
3179
3185
  border: "2px solid #fff",
3180
3186
  boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
3181
- background: `rgba(${m}, ${g}, ${L}, ${C})`,
3187
+ background: `rgba(${m}, ${g}, ${E}, ${C})`,
3182
3188
  zIndex: 95
3183
3189
  }), this.suckerArea.length && // @ts-ignore
3184
3190
  e >= this.suckerArea[0] && // @ts-ignore
@@ -3189,8 +3195,8 @@ var Xt = Ie({
3189
3195
  suckColor(t) {
3190
3196
  t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
3191
3197
  const { clientX: n, clientY: r } = e, { top: o, left: s, width: i, height: l } = t.getBoundingClientRect(), a = n - s, p = r - o, m = t.getContext("2d").getImageData(Math.min(a, i - 1), Math.min(p, l - 1), 1, 1);
3192
- let [g, L, C, b] = m.data;
3193
- b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: g, g: L, b: C, a: b });
3198
+ let [g, E, C, b] = m.data;
3199
+ b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: g, g: E, b: C, a: b });
3194
3200
  }));
3195
3201
  }
3196
3202
  }
@@ -3240,8 +3246,8 @@ const ei = /* @__PURE__ */ B(
3240
3246
  /* HOISTED */
3241
3247
  );
3242
3248
  function ri(t, e, n, r, o, s) {
3243
- return d(), A("div", null, [
3244
- t.isSucking ? V("v-if", !0) : (d(), A(
3249
+ return d(), L("div", null, [
3250
+ t.isSucking ? V("v-if", !0) : (d(), L(
3245
3251
  "svg",
3246
3252
  {
3247
3253
  key: 0,
@@ -3256,7 +3262,7 @@ function ri(t, e, n, r, o, s) {
3256
3262
  2
3257
3263
  /* CLASS */
3258
3264
  )),
3259
- t.isSucking ? (d(), A("svg", ti, [
3265
+ t.isSucking ? (d(), L("svg", ti, [
3260
3266
  ni
3261
3267
  ])) : V("v-if", !0)
3262
3268
  ]);
@@ -3296,7 +3302,7 @@ var Yt = Ie({
3296
3302
  });
3297
3303
  const oi = { class: "color-type" }, si = { class: "name" };
3298
3304
  function ii(t, e, n, r, o, s) {
3299
- return d(), A("div", oi, [
3305
+ return d(), L("div", oi, [
3300
3306
  B(
3301
3307
  "span",
3302
3308
  si,
@@ -3367,12 +3373,12 @@ const ai = { class: "colors" }, li = {
3367
3373
  class: "colors history"
3368
3374
  };
3369
3375
  function ui(t, e, n, r, o, s) {
3370
- return d(), A("div", null, [
3376
+ return d(), L("div", null, [
3371
3377
  B("ul", ai, [
3372
- (d(!0), A(
3378
+ (d(!0), L(
3373
3379
  Se,
3374
3380
  null,
3375
- De(t.colorsDefault, (i) => (d(), A("li", {
3381
+ De(t.colorsDefault, (i) => (d(), L("li", {
3376
3382
  key: i,
3377
3383
  class: "item",
3378
3384
  onClick: (l) => t.selectColor(i)
@@ -3402,11 +3408,11 @@ function ui(t, e, n, r, o, s) {
3402
3408
  /* KEYED_FRAGMENT */
3403
3409
  ))
3404
3410
  ]),
3405
- t.colorsHistory.length ? (d(), A("ul", li, [
3406
- (d(!0), A(
3411
+ t.colorsHistory.length ? (d(), L("ul", li, [
3412
+ (d(!0), L(
3407
3413
  Se,
3408
3414
  null,
3409
- De(t.colorsHistory, (i) => (d(), A("li", {
3415
+ De(t.colorsHistory, (i) => (d(), L("li", {
3410
3416
  key: i,
3411
3417
  class: "item",
3412
3418
  onClick: (l) => t.selectColor(i)
@@ -3616,7 +3622,7 @@ var Ze = Ie({
3616
3622
  const ci = { class: "color-set" };
3617
3623
  function di(t, e, n, r, o, s) {
3618
3624
  const i = Be("Saturation"), l = Be("Hue"), a = Be("Alpha"), p = Be("Preview"), h = Be("Sucker"), m = Be("Box"), g = Be("Colors");
3619
- return d(), A(
3625
+ return d(), L(
3620
3626
  "div",
3621
3627
  {
3622
3628
  class: ["hu-color-picker", { light: t.isLightTheme }],
@@ -3659,7 +3665,7 @@ function di(t, e, n, r, o, s) {
3659
3665
  width: t.previewWidth,
3660
3666
  height: t.previewHeight
3661
3667
  }, null, 8, ["color", "width", "height"]),
3662
- t.suckerHide ? V("v-if", !0) : (d(), A(h, {
3668
+ t.suckerHide ? V("v-if", !0) : (d(), L(h, {
3663
3669
  key: 0,
3664
3670
  "sucker-canvas": t.suckerCanvas,
3665
3671
  "sucker-area": t.suckerArea,
@@ -3778,7 +3784,7 @@ const ki = new xi(), Ce = {
3778
3784
  };
3779
3785
  class wi {
3780
3786
  validate(e, n) {
3781
- var o, s, i, l, a, p, h, m, g, L, C, b, O, W;
3787
+ var o, s, i, l, a, p, h, m, g, E, C, b, O, W;
3782
3788
  let r = "";
3783
3789
  if (n) {
3784
3790
  let P = !1;
@@ -3795,7 +3801,7 @@ class wi {
3795
3801
  r = Ce.RulesMin.validate(e, (a = n[S]) == null ? void 0 : a.value) ? "" : Ce.RulesMin.message((p = n[S]) != null && p.message ? (h = n[S]) == null ? void 0 : h.message : "very_small"), P = r !== "";
3796
3802
  break;
3797
3803
  case "max":
3798
- r = Ce.RulesMax.validate(e, (m = n[S]) == null ? void 0 : m.value) ? "" : Ce.RulesMax.message((g = n[S]) != null && g.message ? (L = n[S]) == null ? void 0 : L.message : "vary_large"), P = r !== "";
3804
+ r = Ce.RulesMax.validate(e, (m = n[S]) == null ? void 0 : m.value) ? "" : Ce.RulesMax.message((g = n[S]) != null && g.message ? (E = n[S]) == null ? void 0 : E.message : "vary_large"), P = r !== "";
3799
3805
  break;
3800
3806
  case "email":
3801
3807
  r = Ce.RulesEmail.validate(e) ? "" : Ce.RulesMax.message((C = n[S]) != null && C.message ? (b = n[S]) == null ? void 0 : b.message : "email_incorrect"), P = r !== "";
@@ -3871,8 +3877,8 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
3871
3877
  n("update:modelValue", S);
3872
3878
  }
3873
3879
  }), h = $(() => r.type), m = $(() => r.scale), g = (S) => {
3874
- n("input", S), L();
3875
- }, L = () => {
3880
+ n("input", S), E();
3881
+ }, E = () => {
3876
3882
  if (!(!r.form || !r.form.fields || !r.form.fields[r.name].rules))
3877
3883
  return s.value = $i.validate(p.value, r.form.fields[r.name].rules), !!s.value;
3878
3884
  };
@@ -3894,16 +3900,16 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
3894
3900
  return e({
3895
3901
  focus: C,
3896
3902
  setError: W,
3897
- validate: L
3898
- }), (S, T) => {
3899
- var E, j;
3903
+ validate: E
3904
+ }), (S, A) => {
3905
+ var T, j;
3900
3906
  return d(), y("div", {
3901
3907
  class: Q(["d-input-string", m.value])
3902
3908
  }, [
3903
3909
  D("div", Ci, [
3904
3910
  r.label ? (d(), y("div", Di, [
3905
3911
  pe(K(r.label), 1),
3906
- (E = r.form) != null && E.fields[r.name].rules && r.form.fields[r.name].rules.hasOwnProperty("required") ? (d(), y("span", Ei, "*")) : V("", !0)
3912
+ (T = r.form) != null && T.fields[r.name].rules && r.form.fields[r.name].rules.hasOwnProperty("required") ? (d(), y("span", Ei, "*")) : V("", !0)
3907
3913
  ])) : V("", !0),
3908
3914
  D("div", Ti, [
3909
3915
  z(o).pre ? (d(), y("div", Ai, [
@@ -3914,14 +3920,14 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
3914
3920
  id: z(i),
3915
3921
  ref_key: "inputRef",
3916
3922
  ref: a,
3917
- "onUpdate:modelValue": T[0] || (T[0] = (Y) => p.value = Y),
3923
+ "onUpdate:modelValue": A[0] || (A[0] = (Y) => p.value = Y),
3918
3924
  style: { width: "100%" },
3919
3925
  type: h.value,
3920
3926
  placeholder: r.placeholder,
3921
3927
  onInput: g,
3922
- onFocus: T[1] || (T[1] = (Y) => O(!0)),
3928
+ onFocus: A[1] || (A[1] = (Y) => O(!0)),
3923
3929
  onBlur: P,
3924
- onFocusout: T[2] || (T[2] = (Y) => O(!1)),
3930
+ onFocusout: A[2] || (A[2] = (Y) => O(!1)),
3925
3931
  class: Q([
3926
3932
  z(o).pre ? "has-pre" : "",
3927
3933
  z(o).post ? "has-post" : "",
@@ -3995,8 +4001,8 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
3995
4001
  }
3996
4002
  }, h = () => {
3997
4003
  if (n.format === "rgba") {
3998
- const { r: m, g, b: L, a: C } = i.value;
3999
- r.value = `rgba(${m}, ${g}, ${L}, ${C})`;
4004
+ const { r: m, g, b: E, a: C } = i.value;
4005
+ r.value = `rgba(${m}, ${g}, ${E}, ${C})`;
4000
4006
  } else
4001
4007
  r.value = i.value;
4002
4008
  o.value.hide(), e("change", r.value);
@@ -4006,7 +4012,7 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
4006
4012
  pre: p,
4007
4013
  label: n.label,
4008
4014
  modelValue: r.value,
4009
- "onUpdate:modelValue": g[0] || (g[0] = (L) => r.value = L),
4015
+ "onUpdate:modelValue": g[0] || (g[0] = (E) => r.value = E),
4010
4016
  onClick: a,
4011
4017
  readonly: !0
4012
4018
  }, {
@@ -4035,7 +4041,7 @@ const $i = new wi(), Ci = { style: { display: "flex", "flex-direction": "column"
4035
4041
  "modal-footer": X(() => [
4036
4042
  D("div", Oi, [
4037
4043
  B(xe, {
4038
- onClick: g[1] || (g[1] = (L) => o.value.hide())
4044
+ onClick: g[1] || (g[1] = (E) => o.value.hide())
4039
4045
  }, {
4040
4046
  default: X(() => [
4041
4047
  pe(K(n.close), 1)
@@ -4570,7 +4576,7 @@ function jn(t) {
4570
4576
  return e.style = l[e.dir][e.ort], e;
4571
4577
  }
4572
4578
  function wa(t, e, n) {
4573
- var r = Yi(), o = qi(), s = o && Gi(), i = t, l, a, p, h, m, g = e.spectrum, L = [], C = [], b = [], O = 0, W = {}, P = t.ownerDocument, S = e.documentElement || P.documentElement, T = P.body, E = P.dir === "rtl" || e.ort === 1 ? 0 : 100;
4579
+ var r = Yi(), o = qi(), s = o && Gi(), i = t, l, a, p, h, m, g = e.spectrum, E = [], C = [], b = [], O = 0, W = {}, P = t.ownerDocument, S = e.documentElement || P.documentElement, A = P.body, T = P.dir === "rtl" || e.ort === 1 ? 0 : 100;
4574
4580
  function j(u, c) {
4575
4581
  var f = P.createElement("div");
4576
4582
  return c && ye(f, c), u.appendChild(f), f;
@@ -4769,7 +4775,7 @@ function wa(t, e, n) {
4769
4775
  function _t(u, c) {
4770
4776
  c.handle && (dt(c.handle, e.cssClasses.active), O -= 1), c.listeners.forEach(function(f) {
4771
4777
  S.removeEventListener(f[0], f[1]);
4772
- }), O === 0 && (dt(i, e.cssClasses.drag), $t(), u.cursor && (T.style.cursor = "", T.removeEventListener("selectstart", vn))), e.events.smoothSteps && (c.handleNumbers.forEach(function(f) {
4778
+ }), O === 0 && (dt(i, e.cssClasses.drag), $t(), u.cursor && (A.style.cursor = "", A.removeEventListener("selectstart", vn))), e.events.smoothSteps && (c.handleNumbers.forEach(function(f) {
4773
4779
  ze(f, C[f], !0, !0, !1, !1);
4774
4780
  }), c.handleNumbers.forEach(function(f) {
4775
4781
  ue("update", f);
@@ -4811,7 +4817,7 @@ function wa(t, e, n) {
4811
4817
  doNotReject: !0,
4812
4818
  handleNumbers: c.handleNumbers
4813
4819
  });
4814
- k.push.apply(k, x.concat(N, F)), u.cursor && (T.style.cursor = getComputedStyle(u.target).cursor, a.length > 1 && ye(i, e.cssClasses.drag), T.addEventListener("selectstart", vn, !1)), c.handleNumbers.forEach(function(re) {
4820
+ k.push.apply(k, x.concat(N, F)), u.cursor && (A.style.cursor = getComputedStyle(u.target).cursor, a.length > 1 && ye(i, e.cssClasses.drag), A.addEventListener("selectstart", vn, !1)), c.handleNumbers.forEach(function(re) {
4815
4821
  ue("start", re);
4816
4822
  });
4817
4823
  }
@@ -4843,7 +4849,7 @@ function wa(t, e, n) {
4843
4849
  var ge = ne ? 0 : 1, he = an(c), ve = he[ge];
4844
4850
  if (ve === null)
4845
4851
  return !1;
4846
- ve === !1 && (ve = g.getDefaultStep(C[c], ne, e.keyboardDefaultStep)), re || F ? ve *= e.keyboardPageMultiplier : ve *= e.keyboardMultiplier, ve = Math.max(ve, 1e-7), ve = (ne ? -1 : 1) * ve, ce = L[c] + ve;
4852
+ ve === !1 && (ve = g.getDefaultStep(C[c], ne, e.keyboardDefaultStep)), re || F ? ve *= e.keyboardPageMultiplier : ve *= e.keyboardMultiplier, ve = Math.max(ve, 1e-7), ve = (ne ? -1 : 1) * ve, ce = E[c] + ve;
4847
4853
  } else
4848
4854
  te ? ce = e.spectrum.xVal[e.spectrum.xVal.length - 1] : ce = e.spectrum.xVal[0];
4849
4855
  return ze(c, g.toStepping(ce), !0, !0), ue("slide", c), ue("update", c), ue("change", c), ue("set", c), !1;
@@ -4891,11 +4897,11 @@ function wa(t, e, n) {
4891
4897
  // Use the slider public API as the scope ('this')
4892
4898
  it,
4893
4899
  // Return values as array, so arg_1[arg_2] is always valid.
4894
- L.map(e.format.to),
4900
+ E.map(e.format.to),
4895
4901
  // Handle index, 0 or 1
4896
4902
  c,
4897
4903
  // Un-formatted slider values
4898
- L.slice(),
4904
+ E.slice(),
4899
4905
  // Event is fired by tap, true or false
4900
4906
  f || !1,
4901
4907
  // Left offset of the handle, in relation to the slider
@@ -4931,8 +4937,8 @@ function wa(t, e, n) {
4931
4937
  return e.dir ? 100 - u - c : u;
4932
4938
  }
4933
4939
  function rr(u, c) {
4934
- C[u] = c, L[u] = g.fromStepping(c);
4935
- var f = nn(c, 0) - E, v = "translate(" + wt(f + "%", "0") + ")";
4940
+ C[u] = c, E[u] = g.fromStepping(c);
4941
+ var f = nn(c, 0) - T, v = "translate(" + wt(f + "%", "0") + ")";
4936
4942
  a[u].style[e.transformRule] = v, rn(u), rn(u + 1);
4937
4943
  }
4938
4944
  function $t() {
@@ -4985,8 +4991,8 @@ function wa(t, e, n) {
4985
4991
  }
4986
4992
  function sn(u) {
4987
4993
  if (u === void 0 && (u = !1), u)
4988
- return L.length === 1 ? L[0] : L.slice(0);
4989
- var c = L.map(e.format.to);
4994
+ return E.length === 1 ? E[0] : E.slice(0);
4995
+ var c = E.map(e.format.to);
4990
4996
  return c.length === 1 ? c[0] : c;
4991
4997
  }
4992
4998
  function ir() {
@@ -4997,7 +5003,7 @@ function wa(t, e, n) {
4997
5003
  delete i.noUiSlider;
4998
5004
  }
4999
5005
  function an(u) {
5000
- var c = C[u], f = g.getNearbySteps(c), v = L[u], k = f.thisStep.step, x = null;
5006
+ var c = C[u], f = g.getNearbySteps(c), v = E[u], k = f.thisStep.step, x = null;
5001
5007
  if (e.snap)
5002
5008
  return [
5003
5009
  v - f.stepBefore.startValue || null,
@@ -5204,20 +5210,20 @@ const Sn = {
5204
5210
  l = document.getElementById(o), Sn.create(l, i), n("init"), a();
5205
5211
  });
5206
5212
  const a = () => {
5207
- l.noUiSlider.on("start", (b, O, W, P, S, T) => {
5208
- s.value = O, n("start", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5209
- }), l.noUiSlider.on("slide", (b, O, W, P, S, T) => {
5210
- s.value = O, n("slide", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5211
- }), l.noUiSlider.on("drag", (b, O, W, P, S, T) => {
5212
- s.value = O, n("drag", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5213
- }), l.noUiSlider.on("update", (b, O, W, P, S, T) => {
5214
- s.value = O, n("update", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5215
- }), l.noUiSlider.on("change", (b, O, W, P, S, T) => {
5216
- s.value = O, n("change", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5217
- }), l.noUiSlider.on("set", (b, O, W, P, S, T) => {
5218
- s.value = O, n("set", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5219
- }), l.noUiSlider.on("end", (b, O, W, P, S, T) => {
5220
- s.value = O, n("end", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: T, selectedIndex: s });
5213
+ l.noUiSlider.on("start", (b, O, W, P, S, A) => {
5214
+ s.value = O, n("start", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5215
+ }), l.noUiSlider.on("slide", (b, O, W, P, S, A) => {
5216
+ s.value = O, n("slide", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5217
+ }), l.noUiSlider.on("drag", (b, O, W, P, S, A) => {
5218
+ s.value = O, n("drag", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5219
+ }), l.noUiSlider.on("update", (b, O, W, P, S, A) => {
5220
+ s.value = O, n("update", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5221
+ }), l.noUiSlider.on("change", (b, O, W, P, S, A) => {
5222
+ s.value = O, n("change", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5223
+ }), l.noUiSlider.on("set", (b, O, W, P, S, A) => {
5224
+ s.value = O, n("set", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5225
+ }), l.noUiSlider.on("end", (b, O, W, P, S, A) => {
5226
+ s.value = O, n("end", { values: b, index: O, eunencoded: W, tap: P, positions: S, slider: A, selectedIndex: s });
5221
5227
  });
5222
5228
  };
5223
5229
  return e({
@@ -5495,7 +5501,7 @@ Xe.parse = /* @__PURE__ */ function() {
5495
5501
  return Ye && (me(t.comma) || n("Missing comma before color stops")), {
5496
5502
  type: H,
5497
5503
  orientation: Ye,
5498
- colorStops: S(T)
5504
+ colorStops: S(A)
5499
5505
  };
5500
5506
  });
5501
5507
  }
@@ -5521,7 +5527,7 @@ Xe.parse = /* @__PURE__ */ function() {
5521
5527
  return J && (H = [], H.push(J), oe = e, me(t.comma) && (J = g(), J ? H.push(J) : e = oe)), H;
5522
5528
  }
5523
5529
  function g() {
5524
- var H = L() || C();
5530
+ var H = E() || C();
5525
5531
  if (H)
5526
5532
  H.at = O();
5527
5533
  else {
@@ -5540,7 +5546,7 @@ Xe.parse = /* @__PURE__ */ function() {
5540
5546
  }
5541
5547
  return H;
5542
5548
  }
5543
- function L() {
5549
+ function E() {
5544
5550
  var H = Z("shape", /^(circle)/i, 0);
5545
5551
  return H && (H.style = M() || b()), H;
5546
5552
  }
@@ -5578,11 +5584,11 @@ Xe.parse = /* @__PURE__ */ function() {
5578
5584
  J = H(), J ? oe.push(J) : n("One extra comma");
5579
5585
  return oe;
5580
5586
  }
5581
- function T() {
5582
- var H = E();
5587
+ function A() {
5588
+ var H = T();
5583
5589
  return H || n("Expected color definition"), H.length = w(), H;
5584
5590
  }
5585
- function E() {
5591
+ function T() {
5586
5592
  return Y() || ee() || U() || j();
5587
5593
  }
5588
5594
  function j() {
@@ -5696,9 +5702,9 @@ const Oa = {
5696
5702
  }), o = R(null), s = R(null), i = R([{ code: "#FFFFFF" }]), l = R(""), a = R("linear"), p = R("0"), h = R("");
5697
5703
  let m = 1;
5698
5704
  const g = () => {
5699
- o.value.show(), L();
5700
- }, L = () => {
5701
- const E = r.value.split(";")[1].trim().split(":")[1].trim(), j = Zt.parse(E), Y = j[0].type.split("-");
5705
+ o.value.show(), E();
5706
+ }, E = () => {
5707
+ const T = r.value.split(";")[1].trim().split(":")[1].trim(), j = Zt.parse(T), Y = j[0].type.split("-");
5702
5708
  a.value = Y[0], a.value === "linear" && (p.value = j[0].orientation.value), i.value = [], m = j[0].colorStops.length;
5703
5709
  const U = [];
5704
5710
  for (let ee = 0; ee < j[0].colorStops.length; ee++) {
@@ -5718,36 +5724,36 @@ const Oa = {
5718
5724
  }, O = () => {
5719
5725
  if (m < n.maxColors) {
5720
5726
  i.value.push({ code: "#FFFFFF" }), m++;
5721
- const S = Math.round(100 / m), T = [];
5722
- for (let E = 0; E < m; E++)
5723
- T.push(E * S);
5724
- s.value.updateStart(T);
5727
+ const S = Math.round(100 / m), A = [];
5728
+ for (let T = 0; T < m; T++)
5729
+ A.push(T * S);
5730
+ s.value.updateStart(A);
5725
5731
  }
5726
5732
  }, W = (S) => {
5727
5733
  if (m > 1) {
5728
- const T = s.value.get();
5729
- T.splice(S, 1), i.value.splice(S, 1), s.value.updateStart(T), m--;
5734
+ const A = s.value.get();
5735
+ A.splice(S, 1), i.value.splice(S, 1), s.value.updateStart(A), m--;
5730
5736
  }
5731
5737
  };
5732
5738
  Pe(() => {
5733
- r.value || (r.value = "background: #FFFFFF;"), L(), h.value = `${n.text}: ${i.value.length}`;
5739
+ r.value || (r.value = "background: #FFFFFF;"), E(), h.value = `${n.text}: ${i.value.length}`;
5734
5740
  });
5735
5741
  const P = () => {
5736
5742
  if (!s.value)
5737
5743
  return;
5738
- const S = a.value + "-gradient", T = s.value.position();
5739
- let E = [];
5740
- E.push(a.value === "radial" ? "circle" : `${p.value}deg`);
5744
+ const S = a.value + "-gradient", A = s.value.position();
5745
+ let T = [];
5746
+ T.push(a.value === "radial" ? "circle" : `${p.value}deg`);
5741
5747
  for (let j = 0; j < i.value.length; j++)
5742
- E.push(`${i.value[j].code} ${parseInt(T[j])}%`);
5743
- l.value = `background: ${i.value[0].code};`, i.value.length > 1 && (l.value += `background: ${S}(${E.join(", ")})`);
5748
+ T.push(`${i.value[j].code} ${parseInt(A[j])}%`);
5749
+ l.value = `background: ${i.value[0].code};`, i.value.length > 1 && (l.value += `background: ${S}(${T.join(", ")})`);
5744
5750
  };
5745
- return (S, T) => (d(), y("div", null, [
5751
+ return (S, A) => (d(), y("div", null, [
5746
5752
  B(qt, {
5747
5753
  pre: C,
5748
5754
  label: n.label,
5749
5755
  modelValue: h.value,
5750
- "onUpdate:modelValue": T[0] || (T[0] = (E) => h.value = E),
5756
+ "onUpdate:modelValue": A[0] || (A[0] = (T) => h.value = T),
5751
5757
  onClick: g,
5752
5758
  readonly: !0
5753
5759
  }, {
@@ -5761,7 +5767,7 @@ const Oa = {
5761
5767
  }, 8, ["label", "modelValue"]),
5762
5768
  $e(D("input", {
5763
5769
  type: "hidden",
5764
- "onUpdate:modelValue": T[1] || (T[1] = (E) => r.value = E)
5770
+ "onUpdate:modelValue": A[1] || (A[1] = (T) => r.value = T)
5765
5771
  }, null, 512), [
5766
5772
  [Ot, r.value]
5767
5773
  ]),
@@ -5785,7 +5791,7 @@ const Oa = {
5785
5791
  ref_key: "sliderRef",
5786
5792
  ref: s,
5787
5793
  start: 50,
5788
- tooltips: { to: (E) => parseInt(E) },
5794
+ tooltips: { to: (T) => parseInt(T) },
5789
5795
  "tooltip-hide": !0
5790
5796
  }, null, 8, ["tooltips"]),
5791
5797
  D("div", Oa, [
@@ -5793,32 +5799,32 @@ const Oa = {
5793
5799
  B(hs, {
5794
5800
  onChange: P,
5795
5801
  modelValue: a.value,
5796
- "onUpdate:modelValue": T[2] || (T[2] = (E) => a.value = E),
5802
+ "onUpdate:modelValue": A[2] || (A[2] = (T) => a.value = T),
5797
5803
  options: [{ label: n.linear, value: "linear" }, { label: n.radial, value: "radial" }],
5798
5804
  size: "wide"
5799
5805
  }, null, 8, ["modelValue", "options"])
5800
5806
  ]),
5801
5807
  D("div", null, [
5802
- a.value !== "radial" ? (d(), A(Ra, {
5808
+ a.value !== "radial" ? (d(), L(Ra, {
5803
5809
  key: 0,
5804
5810
  onChange: P,
5805
5811
  modelValue: p.value,
5806
- "onUpdate:modelValue": T[3] || (T[3] = (E) => p.value = E)
5812
+ "onUpdate:modelValue": A[3] || (A[3] = (T) => p.value = T)
5807
5813
  }, null, 8, ["modelValue"])) : V("", !0)
5808
5814
  ])
5809
5815
  ]),
5810
- (d(!0), y(Se, null, De(i.value, (E, j) => (d(), y("div", {
5816
+ (d(!0), y(Se, null, De(i.value, (T, j) => (d(), y("div", {
5811
5817
  style: { display: "flex", gap: "5px", "align-items": "center", "justify-content": "center" },
5812
5818
  key: j
5813
5819
  }, [
5814
5820
  B(Pi, {
5815
- modelValue: E.code,
5816
- "onUpdate:modelValue": (Y) => E.code = Y,
5821
+ modelValue: T.code,
5822
+ "onUpdate:modelValue": (Y) => T.code = Y,
5817
5823
  style: { flex: "1" },
5818
5824
  format: "rgba",
5819
5825
  onChange: P
5820
5826
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
5821
- z(m) > 1 ? (d(), A(xe, {
5827
+ z(m) > 1 ? (d(), L(xe, {
5822
5828
  key: 0,
5823
5829
  icon: "MinusSharp",
5824
5830
  onClick: (Y) => W(j)
@@ -5836,7 +5842,7 @@ const Oa = {
5836
5842
  "modal-footer": X(() => [
5837
5843
  D("div", Na, [
5838
5844
  B(xe, {
5839
- onClick: T[4] || (T[4] = (E) => o.value.hide())
5845
+ onClick: A[4] || (A[4] = (T) => o.value.hide())
5840
5846
  }, {
5841
5847
  default: X(() => [
5842
5848
  pe(K(n.close), 1)