doph-js 0.2.85 → 0.2.87

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 Ce, computed as m, h as st, openBlock as d, createBlock as b, unref as B, ref as T, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as V, resolveDynamicComponent as Y, createStaticVNode as ut, onMounted as me, toDisplayString as O, withDirectives as J, createElementVNode as _, vModelDynamic as De, withCtx as E, createTextVNode as K, Transition as Ne, withModifiers as j, resolveComponent as Ct, resolveDirective as Re, normalizeProps as pt, guardReactiveProps as ft, createVNode as oe, renderList as ge, pushScopeId as Lt, popScopeId as It, reactive as Oe, Teleport as mt, nextTick as ht, getCurrentInstance as gt, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as Ae, shallowRef as Bt, defineComponent as Mt, TransitionGroup as yt, vModelCheckbox as Nt, vModelSelect as Rt, toRef as Ot, KeepAlive as At, toRefs as Ht, vModelText as Vt } from "vue";
1
+ import { useSlots as Ce, computed as m, h as st, openBlock as d, createBlock as b, unref as E, ref as T, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as V, resolveDynamicComponent as Y, createStaticVNode as ut, onMounted as me, toDisplayString as O, withDirectives as J, createElementVNode as _, vModelDynamic as De, withCtx as B, createTextVNode as K, Transition as Ne, withModifiers as j, resolveComponent as Ct, resolveDirective as Re, normalizeProps as pt, guardReactiveProps as ft, createVNode as oe, renderList as ge, pushScopeId as Lt, popScopeId as It, reactive as Oe, Teleport as mt, nextTick as ht, getCurrentInstance as gt, watch as vt, onUnmounted as Bt, mergeProps as ue, useCssVars as Ae, shallowRef as Et, defineComponent as Mt, TransitionGroup as yt, vModelCheckbox as Nt, vModelSelect as Rt, toRef as Ot, KeepAlive as At, toRefs as Ht, vModelText as Vt } from "vue";
2
2
  const de = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -8,14 +8,14 @@ const de = {
8
8
  className: String
9
9
  },
10
10
  setup(e) {
11
- const t = e, o = Ce(), n = m(() => {
12
- const { className: l } = t;
11
+ const o = e, t = Ce(), n = m(() => {
12
+ const { className: l } = o;
13
13
  return l === void 0 ? "icon" : ["icon", l].join(" ");
14
14
  }), s = m(() => {
15
- const { color: l } = t;
15
+ const { color: l } = o;
16
16
  return l === void 0 ? null : l;
17
17
  }), a = m(() => {
18
- const l = t.size ?? null;
18
+ const l = o.size ?? null;
19
19
  if (l !== void 0)
20
20
  return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
21
21
  }), r = m(() => st(
@@ -27,9 +27,9 @@ const de = {
27
27
  fontSize: a.value
28
28
  }
29
29
  },
30
- t.component ? st(t.component) : o
30
+ o.component ? st(o.component) : t
31
31
  ));
32
- return (l, i) => (d(), b(B(r)));
32
+ return (l, i) => (d(), b(E(r)));
33
33
  }
34
34
  }, te = {
35
35
  state: {},
@@ -42,45 +42,45 @@ const de = {
42
42
  }
43
43
  },
44
44
  mutations: {
45
- addIcon(e, t) {
46
- te.state.name = t;
45
+ addIcon(e, o) {
46
+ te.state.name = o;
47
47
  },
48
48
  addIcons(e) {
49
- for (const t in e)
50
- e.hasOwnProperty(t) && (te.state[t] = e[t]);
49
+ for (const o in e)
50
+ e.hasOwnProperty(o) && (te.state[o] = e[o]);
51
51
  }
52
52
  }
53
53
  };
54
54
  function _t(e) {
55
- const t = e.value.getBoundingClientRect();
56
- let o = e.value, n = 0, s = 0;
57
- for (; o && !isNaN(o.offsetLeft) && !isNaN(o.offsetTop); )
58
- n += o.offsetLeft - o.scrollLeft, s += o.offsetTop - o.scrollTop, o = o.offsetParent;
59
- return { top: s, left: n, x: t.x, y: t.y, width: t.width, height: t.height };
55
+ const o = e.value.getBoundingClientRect();
56
+ let t = e.value, n = 0, s = 0;
57
+ for (; t && !isNaN(t.offsetLeft) && !isNaN(t.offsetTop); )
58
+ n += t.offsetLeft - t.scrollLeft, s += t.offsetTop - t.scrollTop, t = t.offsetParent;
59
+ return { top: s, left: n, x: o.x, y: o.y, width: o.width, height: o.height };
60
60
  }
61
61
  function zt() {
62
62
  function e(s) {
63
63
  return s * Math.random() | 0;
64
64
  }
65
- function t() {
65
+ function o() {
66
66
  return e(16).toString(16);
67
67
  }
68
- function o(s) {
68
+ function t(s) {
69
69
  let a = "";
70
70
  for (let r = 0; r < s; ++r)
71
- a += t();
71
+ a += o();
72
72
  return a;
73
73
  }
74
74
  function n() {
75
75
  return (e(16) & 3 | 8).toString(16);
76
76
  }
77
- return o(8) + "-" + o(4) + "-4" + o(3) + "-" + n() + o(3) + "-" + o(12);
77
+ return t(8) + "-" + t(4) + "-4" + t(3) + "-" + n() + t(3) + "-" + t(12);
78
78
  }
79
- const re = (e, t) => {
80
- const o = e.__vccOpts || e;
81
- for (const [n, s] of t)
82
- o[n] = s;
83
- return o;
79
+ const re = (e, o) => {
80
+ const t = e.__vccOpts || e;
81
+ for (const [n, s] of o)
82
+ t[n] = s;
83
+ return t;
84
84
  }, Ft = {
85
85
  key: 0,
86
86
  class: "loading-svg rotating",
@@ -119,16 +119,16 @@ const re = (e, t) => {
119
119
  }
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
- setup(e, { expose: t, emit: o }) {
122
+ setup(e, { expose: o, emit: t }) {
123
123
  const n = e, s = Ce(), a = T(null), r = m(() => n.icon ? te.getters.getIcon(n.icon) : null), l = ($) => {
124
- o("click", $);
124
+ t("click", $);
125
125
  }, i = ($) => {
126
- o("contextmenu", $);
126
+ t("contextmenu", $);
127
127
  }, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], x = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
128
128
  const $ = n.outline ? "-outline" : "";
129
129
  return n.type === "primary" ? `button${$}-blue` : n.type === "success" ? `button${$}-green` : n.type === "error" ? `button${$}-red` : n.type === "warning" ? `button${$}-orange` : n.type === "wait" ? `button${$}-violet` : n.outline ? `button${$}` : "";
130
130
  });
131
- return t({
131
+ return o({
132
132
  elementSize: () => _t(a)
133
133
  }), ($, H) => (d(), f(ie, null, [
134
134
  r.value ? k("", !0) : (d(), f("div", {
@@ -156,7 +156,7 @@ const re = (e, t) => {
156
156
  component: r.value,
157
157
  color: "inherit"
158
158
  }, null, 8, ["component"])) : k("", !0),
159
- B(s).default ? (d(), f("div", jt, [
159
+ E(s).default ? (d(), f("div", jt, [
160
160
  L($.$slots, "default", {}, void 0, !0)
161
161
  ])) : k("", !0),
162
162
  n.loading ? (d(), f("svg", Xt, Ut)) : k("", !0)
@@ -198,11 +198,11 @@ const Gt = {
198
198
  focus: Boolean
199
199
  },
200
200
  emits: ["update:modelValue"],
201
- setup(e, { expose: t, emit: o }) {
201
+ setup(e, { expose: o, emit: t }) {
202
202
  const n = e, s = T(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), r = m({
203
203
  get: () => n.modelValue,
204
204
  set: (i) => {
205
- o("update:modelValue", i);
205
+ t("update:modelValue", i);
206
206
  }
207
207
  });
208
208
  me(() => {
@@ -211,7 +211,7 @@ const Gt = {
211
211
  const l = () => {
212
212
  s.value.focus();
213
213
  };
214
- return t({
214
+ return o({
215
215
  focus: l
216
216
  }), (i, c) => !n.post && !n.pre ? (d(), f("div", Gt, [
217
217
  n.label ? (d(), f("div", Zt, O(n.label), 1)) : k("", !0),
@@ -249,7 +249,7 @@ const Gt = {
249
249
  onClick: n.post.click,
250
250
  icon: n.post.icon
251
251
  }, {
252
- default: E(() => [
252
+ default: B(() => [
253
253
  K(O(n.post.label), 1)
254
254
  ]),
255
255
  _: 1
@@ -271,7 +271,7 @@ const Gt = {
271
271
  onClick: n.pre.click,
272
272
  icon: n.pre.icon
273
273
  }, {
274
- default: E(() => [
274
+ default: B(() => [
275
275
  K(O(n.pre.label), 1)
276
276
  ]),
277
277
  _: 1
@@ -298,7 +298,7 @@ const Gt = {
298
298
  ])
299
299
  ])) : k("", !0);
300
300
  }
301
- }, Ds = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-a972038a"]]), co = {
301
+ }, Ts = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-a972038a"]]), co = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -310,12 +310,12 @@ const Gt = {
310
310
  }
311
311
  },
312
312
  setup(e) {
313
- const t = e, o = m(() => t.scale === "large" ? "badge-lg" : t.scale === "small" ? "badge-sm" : ""), n = m(() => {
314
- const s = t.stress ? "-stress" : "";
315
- return t.type === "primary" ? `badge${s}-blue` : t.type === "success" ? `badge${s}-green` : t.type === "error" ? `badge${s}-red` : t.type === "warning" ? `badge${s}-orange` : t.type === "wait" ? `badge${s}-violet` : t.stress ? `badge${s}-gray` : "";
313
+ const o = e, t = m(() => o.scale === "large" ? "badge-lg" : o.scale === "small" ? "badge-sm" : ""), n = m(() => {
314
+ const s = o.stress ? "-stress" : "";
315
+ return o.type === "primary" ? `badge${s}-blue` : o.type === "success" ? `badge${s}-green` : o.type === "error" ? `badge${s}-red` : o.type === "warning" ? `badge${s}-orange` : o.type === "wait" ? `badge${s}-violet` : o.stress ? `badge${s}-gray` : "";
316
316
  });
317
317
  return (s, a) => (d(), f("div", {
318
- class: D(["badge", [t.class, o.value, n.value].join(" ")])
318
+ class: D(["badge", [o.class, t.value, n.value].join(" ")])
319
319
  }, [
320
320
  L(s.$slots, "default")
321
321
  ], 2));
@@ -345,7 +345,7 @@ const Gt = {
345
345
  }
346
346
  },
347
347
  setup(e) {
348
- const t = e, o = (i) => ({
348
+ const o = e, t = (i) => ({
349
349
  height: i == null ? void 0 : i.style.height,
350
350
  width: i == null ? void 0 : i.style.width,
351
351
  position: i == null ? void 0 : i.style.position,
@@ -370,7 +370,7 @@ const Gt = {
370
370
  }, a = (i, c) => [
371
371
  {
372
372
  height: se,
373
- opacity: t.opacityClosed,
373
+ opacity: o.opacityClosed,
374
374
  paddingTop: se,
375
375
  paddingBottom: se,
376
376
  borderTopWidth: se,
@@ -380,7 +380,7 @@ const Gt = {
380
380
  },
381
381
  {
382
382
  height: i,
383
- opacity: t.opacityOpened,
383
+ opacity: o.opacityOpened,
384
384
  paddingTop: c.paddingTop,
385
385
  paddingBottom: c.paddingBottom,
386
386
  borderTopWidth: c.borderTopWidth,
@@ -389,12 +389,12 @@ const Gt = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
391
  ], r = (i, c) => {
392
- const u = i, h = o(u), x = n(u, h), S = a(x, h), N = { duration: t.duration, easing: t.easingEnter };
392
+ const u = i, h = t(u), x = n(u, h), S = a(x, h), N = { duration: o.duration, easing: o.easingEnter };
393
393
  s(u, h, c, S, N);
394
394
  }, l = (i, c) => {
395
- const u = i, h = o(u), { height: x } = getComputedStyle(u);
395
+ const u = i, h = t(u), { height: x } = getComputedStyle(u);
396
396
  u.style.height = x, u.style.overflow = "hidden";
397
- const S = a(x, h).reverse(), N = { duration: t.duration, easing: t.easingLeave };
397
+ const S = a(x, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
398
398
  s(u, h, c, S, N);
399
399
  };
400
400
  return (i, c) => (d(), b(Ne, {
@@ -402,7 +402,7 @@ const Gt = {
402
402
  onEnter: r,
403
403
  onLeave: l
404
404
  }, {
405
- default: E(() => [
405
+ default: B(() => [
406
406
  L(i.$slots, "default")
407
407
  ]),
408
408
  _: 3
@@ -410,7 +410,7 @@ const Gt = {
410
410
  }
411
411
  }, Te = {
412
412
  data: void 0
413
- }, He = (e) => e.reduce((t, o) => (t[o] = o) && t, {}), X = He([
413
+ }, He = (e) => e.reduce((o, t) => (o[t] = t) && o, {}), X = He([
414
414
  "drag",
415
415
  "dragend",
416
416
  "dragenter",
@@ -442,25 +442,25 @@ const Gt = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(e) {
445
- const t = e, o = Ce(), n = T(!1), s = m(() => n && t.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), r = (l, i) => {
445
+ const o = e, t = Ce(), n = T(!1), s = m(() => n && o.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), r = (l, i) => {
446
446
  const c = i.dataTransfer;
447
- if ([X.dragenter, X.dragover].includes(l) && t.dropEffect && (c.dropEffect = t.dropEffect), l === X.dragstart) {
448
- if (t.effectAllowed && (c.effectAllowed = t.effectAllowed), t.image || o.image) {
447
+ if ([X.dragenter, X.dragover].includes(l) && o.dropEffect && (c.dropEffect = o.dropEffect), l === X.dragstart) {
448
+ if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
449
449
  let u;
450
- t.image ? (u = new Image(), u.src = t.image) : o.image && (u = o.image[0].elm), c.setDragImage && c.setDragImage(u, t.imageXOffset, t.imageYOffset);
450
+ o.image ? (u = new Image(), u.src = o.image) : t.image && (u = t.image[0].elm), c.setDragImage && c.setDragImage(u, o.imageXOffset, o.imageYOffset);
451
451
  }
452
- t.transferData !== void 0 && (Te.data = t.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
452
+ o.transferData !== void 0 && (Te.data = o.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
453
453
  }
454
454
  };
455
455
  return (l, i) => (d(), b(Y(e.tag), {
456
- draggable: t.draggable,
457
- onDrag: i[0] || (i[0] = (c) => r(B(X).drag, c)),
458
- onDragstart: i[1] || (i[1] = j((c) => r(B(X).dragstart, c), ["stop"])),
459
- onDragenter: i[2] || (i[2] = (c) => r(B(X).dragenter, c)),
460
- onDragleave: i[3] || (i[3] = (c) => r(B(X).dragleave, c)),
461
- onDragend: i[4] || (i[4] = (c) => r(B(X).dragend, c))
456
+ draggable: o.draggable,
457
+ onDrag: i[0] || (i[0] = (c) => r(E(X).drag, c)),
458
+ onDragstart: i[1] || (i[1] = j((c) => r(E(X).dragstart, c), ["stop"])),
459
+ onDragenter: i[2] || (i[2] = (c) => r(E(X).dragenter, c)),
460
+ onDragleave: i[3] || (i[3] = (c) => r(E(X).dragleave, c)),
461
+ onDragend: i[4] || (i[4] = (c) => r(E(X).dragend, c))
462
462
  }, {
463
- default: E(() => [
463
+ default: B(() => [
464
464
  L(l.$slots, "default", { transferData: s.value }),
465
465
  e.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
@@ -497,60 +497,60 @@ const mo = (e) => (Lt("data-v-a476bb8e"), e = e(), It(), e), ho = {
497
497
  component: Object
498
498
  },
499
499
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
500
- setup(e, { emit: t }) {
501
- const o = e, n = T(null), s = T(!1), a = T(!1), r = T(!1), l = m(() => o.model.children && o.model.children.length), i = m(() => (v.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (M) => {
502
- t("nodeclick", { event: M, model: o.model });
500
+ setup(e, { emit: o }) {
501
+ const t = e, n = T(null), s = T(!1), a = T(!1), r = T(!1), l = m(() => t.model.children && t.model.children.length), i = m(() => (v.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (M) => {
502
+ o("nodeclick", { event: M, model: t.model });
503
503
  }, u = (M) => {
504
- t("nodeclick", M);
504
+ o("nodeclick", M);
505
505
  }, h = (M) => {
506
- t("nodedrop", M);
506
+ o("nodedrop", M);
507
507
  }, x = (M) => {
508
- t("nodecontext", M);
508
+ o("nodecontext", M);
509
509
  }, S = m(() => [
510
- v.actions.isItemSelected(o.treeId, o.model.id) ? "selected" : "",
510
+ v.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "",
511
511
  s.value ? "node-over " : "",
512
512
  a.value ? "node-top " : "",
513
513
  r.value ? "node-bottom " : ""
514
- ]), N = m(() => o.search ? !1 : o.model.draggable === !0), $ = (M) => {
514
+ ]), N = m(() => t.search ? !1 : t.model.draggable === !0), $ = (M) => {
515
515
  var A;
516
516
  let g = Te.data;
517
517
  if (g === void 0 || g.model === void 0)
518
518
  return s.value = !1, !1;
519
- if (g.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, g.model.id) || v.actions.isParentOfChild(o.treeId, o.items, g.model.id, o.model.id))
519
+ if (g.model.id === t.model.id || v.actions.isChildOfParent(t.treeId, t.items, t.model.id, g.model.id) || v.actions.isParentOfChild(t.treeId, t.items, g.model.id, t.model.id))
520
520
  return s.value = !1, a.value = !1, r.value = !1, !1;
521
- if (!v.state.trees[o.treeId].transfer && g.id !== o.treeId || !v.state.trees[o.treeId].dropInside && !r.value && !a.value)
521
+ if (!v.state.trees[t.treeId].transfer && g.id !== t.treeId || !v.state.trees[t.treeId].dropInside && !r.value && !a.value)
522
522
  return !1;
523
523
  let R = "";
524
- a.value ? R = "before" : r.value ? R = "after" : R = "inside", t("nodedrop", { e: M, model: o.model, place: R }), v.actions.moveTreeNode(g.id, o.treeId, o.items, g.model.id, o.model.id, R, (A = g.model) == null ? void 0 : A.transfer), s.value = !1, a.value = !1, r.value = !1;
524
+ a.value ? R = "before" : r.value ? R = "after" : R = "inside", o("nodedrop", { e: M, model: t.model, place: R }), v.actions.moveTreeNode(g.id, t.treeId, t.items, g.model.id, t.model.id, R, (A = g.model) == null ? void 0 : A.transfer), s.value = !1, a.value = !1, r.value = !1;
525
525
  }, H = (M) => {
526
- t("nodedragover", { e: M, model: o.model });
526
+ o("nodedragover", { e: M, model: t.model });
527
527
  let g = Te.data;
528
- if (!o.model.droppable)
528
+ if (!t.model.droppable)
529
529
  return !1;
530
530
  if (g === void 0 || g.model === void 0)
531
531
  return s.value = !0, !1;
532
- if (g.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, g.model.id) || v.actions.isParentOfChild(o.treeId, o.items, g.model.id, o.model.id))
532
+ if (g.model.id === t.model.id || v.actions.isChildOfParent(t.treeId, t.items, t.model.id, g.model.id) || v.actions.isParentOfChild(t.treeId, t.items, g.model.id, t.model.id))
533
533
  return !1;
534
534
  const R = M.y, A = n.value.getBoundingClientRect().top, z = n.value.getBoundingClientRect().height, y = z / 3;
535
- R > A && R <= A + y ? (s.value = !1, a.value = !0, r.value = !1) : R < A + z && R >= A + z - y ? (s.value = !1, a.value = !1, r.value = !0) : (s.value = v.state.trees[o.treeId].dropInside, a.value = !1, r.value = !1);
535
+ R > A && R <= A + y ? (s.value = !1, a.value = !0, r.value = !1) : R < A + z && R >= A + z - y ? (s.value = !1, a.value = !1, r.value = !0) : (s.value = v.state.trees[t.treeId].dropInside, a.value = !1, r.value = !1);
536
536
  }, P = () => {
537
537
  s.value = !1, a.value = !1, r.value = !1;
538
- }, w = m(() => o.model.title.startsWith("-")), I = m(() => {
539
- if (o.model.title.startsWith("-")) {
540
- let [M, ...g] = o.model.title.split(" ");
538
+ }, w = m(() => t.model.title.startsWith("-")), I = m(() => {
539
+ if (t.model.title.startsWith("-")) {
540
+ let [M, ...g] = t.model.title.split(" ");
541
541
  return g = g.join(" "), g;
542
542
  }
543
543
  return null;
544
544
  });
545
545
  return (M, g) => {
546
546
  const R = Ct("d-tree-item", !0), A = Re("touch");
547
- return B(v).actions.beforeItem(o.treeId, e.model) ? w.value && !I.value ? (d(), f("li", go, yo)) : w.value && I.value ? (d(), f("li", _o, [
548
- _("div", bo, O(B(v).actions.renderTitle(o.treeId, I.value)), 1)
549
- ])) : o.model.component ? (d(), b(at, {
547
+ return E(v).actions.beforeItem(t.treeId, e.model) ? w.value && !I.value ? (d(), f("li", go, yo)) : w.value && I.value ? (d(), f("li", _o, [
548
+ _("div", bo, O(E(v).actions.renderTitle(t.treeId, I.value)), 1)
549
+ ])) : t.model.component ? (d(), b(at, {
550
550
  key: 3,
551
551
  tag: "li",
552
552
  class: "tree-item-component",
553
- "transfer-data": { id: o.treeId, model: o.model },
553
+ "transfer-data": { id: t.treeId, model: t.model },
554
554
  draggable: N.value,
555
555
  onDrop: j($, ["stop"]),
556
556
  onDragenter: g[1] || (g[1] = j(() => {
@@ -558,14 +558,14 @@ const mo = (e) => (Lt("data-v-a476bb8e"), e = e(), It(), e), ho = {
558
558
  onDragover: j(H, ["prevent", "stop"]),
559
559
  onDragleave: j(P, ["prevent"])
560
560
  }, {
561
- default: E(() => [
561
+ default: B(() => [
562
562
  J((d(), f("div", {
563
563
  ref_key: "node",
564
564
  ref: n,
565
565
  class: D(S.value),
566
- onContextmenu: g[0] || (g[0] = j((z) => t("nodecontext", { e: z, model: o.model }), ["prevent"]))
566
+ onContextmenu: g[0] || (g[0] = j((z) => o("nodecontext", { e: z, model: t.model }), ["prevent"]))
567
567
  }, [
568
- (d(), b(Y(B(fe).getters.getComponent(o.model.component).component), pt(ft(B(fe).getters.getComponent(o.model.component).props)), null, 16))
568
+ (d(), b(Y(E(fe).getters.getComponent(t.model.component).component), pt(ft(E(fe).getters.getComponent(t.model.component).props)), null, 16))
569
569
  ], 34)), [
570
570
  [A, c]
571
571
  ])
@@ -575,7 +575,7 @@ const mo = (e) => (Lt("data-v-a476bb8e"), e = e(), It(), e), ho = {
575
575
  key: 4,
576
576
  tag: "li",
577
577
  class: "tree-item",
578
- "transfer-data": { id: o.treeId, model: o.model },
578
+ "transfer-data": { id: t.treeId, model: t.model },
579
579
  draggable: N.value,
580
580
  onDrop: j($, ["stop"]),
581
581
  onDragenter: g[3] || (g[3] = j(() => {
@@ -583,57 +583,57 @@ const mo = (e) => (Lt("data-v-a476bb8e"), e = e(), It(), e), ho = {
583
583
  onDragover: j(H, ["prevent", "stop"]),
584
584
  onDragleave: j(P, ["prevent"])
585
585
  }, {
586
- default: E(() => {
586
+ default: B(() => {
587
587
  var z, y;
588
588
  return [
589
589
  J((d(), f("div", {
590
590
  ref_key: "node",
591
591
  ref: n,
592
592
  class: D(S.value),
593
- onContextmenu: g[2] || (g[2] = j((F) => t("nodecontext", { e: F, model: o.model }), ["prevent"]))
593
+ onContextmenu: g[2] || (g[2] = j((F) => o("nodecontext", { e: F, model: t.model }), ["prevent"]))
594
594
  }, [
595
595
  _("div", null, [
596
- o.model.icons && o.model.icons.pre && l.value && !o.search && !w.value ? (d(), b(Y(de), {
596
+ t.model.icons && t.model.icons.pre && l.value && !t.search && !w.value ? (d(), b(Y(de), {
597
597
  key: 0,
598
- component: B(te).getters.getIcon(o.model.icons.pre.component),
598
+ component: E(te).getters.getIcon(t.model.icons.pre.component),
599
599
  size: 18,
600
- color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
600
+ color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
601
601
  class: D(i.value ? "tree-open-pre" : "")
602
602
  }, null, 8, ["component", "color", "class"])) : k("", !0),
603
- o.model.icons && o.model.icons.pre && !l.value && !o.search && !w.value ? (d(), b(Y(de), {
603
+ t.model.icons && t.model.icons.pre && !l.value && !t.search && !w.value ? (d(), b(Y(de), {
604
604
  key: 1,
605
- component: B(te).getters.getIcon(o.model.icons.pre.component),
605
+ component: E(te).getters.getIcon(t.model.icons.pre.component),
606
606
  size: 18,
607
607
  color: "rgba(0,0,0,0)",
608
608
  class: D(i.value ? "tree-open-pre" : "")
609
609
  }, null, 8, ["component", "class"])) : k("", !0),
610
- o.model.icons && o.model.icons.icon && !w.value ? (d(), b(Y(de), {
610
+ t.model.icons && t.model.icons.icon && !w.value ? (d(), b(Y(de), {
611
611
  key: 2,
612
- component: B(te).getters.getIcon(o.model.icons.icon.component),
613
- color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
614
- size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
615
- className: o.model.icons.icon.class ? o.model.icons.icon.class : null
612
+ component: E(te).getters.getIcon(t.model.icons.icon.component),
613
+ color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
614
+ size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
615
+ className: t.model.icons.icon.class ? t.model.icons.icon.class : null
616
616
  }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
617
617
  _("div", xo, [
618
618
  w.value ? (d(), f("div", $o)) : k("", !0),
619
- w.value ? k("", !0) : (d(), f("div", ko, O(B(v).actions.renderTitle(o.treeId, o.model.title)), 1))
619
+ w.value ? k("", !0) : (d(), f("div", ko, O(E(v).actions.renderTitle(t.treeId, t.model.title)), 1))
620
620
  ])
621
621
  ]),
622
622
  _("div", wo, [
623
- ((z = o.model.badge) == null ? void 0 : z.value) !== void 0 && !w.value ? (d(), b(Y(co), {
623
+ ((z = t.model.badge) == null ? void 0 : z.value) !== void 0 && !w.value ? (d(), b(Y(co), {
624
624
  key: 0,
625
- class: D([(y = o.model.badge) == null ? void 0 : y.class, "badge-sm"])
625
+ class: D([(y = t.model.badge) == null ? void 0 : y.class, "badge-sm"])
626
626
  }, {
627
- default: E(() => [
628
- K(O(o.model.badge.value), 1)
627
+ default: B(() => [
628
+ K(O(t.model.badge.value), 1)
629
629
  ]),
630
630
  _: 1
631
631
  }, 8, ["class"])) : k("", !0),
632
- o.model.icons && o.model.icons.post && l.value && !o.search && !w.value ? (d(), b(Y(de), {
632
+ t.model.icons && t.model.icons.post && l.value && !t.search && !w.value ? (d(), b(Y(de), {
633
633
  key: 1,
634
- component: B(te).getters.getIcon(o.model.icons.post.component),
634
+ component: E(te).getters.getIcon(t.model.icons.post.component),
635
635
  size: 20,
636
- color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
636
+ color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
637
637
  class: D(i.value ? "tree-open-post" : "")
638
638
  }, null, 8, ["component", "color", "class"])) : k("", !0)
639
639
  ])
@@ -641,14 +641,14 @@ const mo = (e) => (Lt("data-v-a476bb8e"), e = e(), It(), e), ho = {
641
641
  [A, c]
642
642
  ]),
643
643
  oe(uo, null, {
644
- default: E(() => [
645
- l.value && i.value && !o.search ? (d(), f("ul", So, [
644
+ default: B(() => [
645
+ l.value && i.value && !t.search ? (d(), f("ul", So, [
646
646
  (d(!0), f(ie, null, ge(e.model.children, (F) => (d(), b(R, {
647
647
  key: F.id,
648
648
  model: F,
649
- treeId: o.treeId,
650
- items: o.items,
651
- search: o.search,
649
+ treeId: t.treeId,
650
+ items: t.items,
651
+ search: t.search,
652
652
  onNodeclick: u,
653
653
  onNodedrop: h,
654
654
  onNodecontext: x
@@ -676,9 +676,9 @@ function Co(e) {
676
676
  * @param {Function} handler Function to call in response to given event
677
677
  * @memberOf eventsBus
678
678
  */
679
- on(t, o) {
680
- const n = e.get(t);
681
- n ? n.push(o) : e.set(t, [o]);
679
+ on(o, t) {
680
+ const n = e.get(o);
681
+ n ? n.push(t) : e.set(o, [t]);
682
682
  },
683
683
  /**
684
684
  * Remove an event handler for the given type.
@@ -687,9 +687,9 @@ function Co(e) {
687
687
  * @param {Function} [handler] Handler function to remove
688
688
  * @memberOf eventsBus
689
689
  */
690
- off(t, o) {
691
- const n = e.get(t);
692
- n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
690
+ off(o, t) {
691
+ const n = e.get(o);
692
+ n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(o, []));
693
693
  },
694
694
  /**
695
695
  * Invoke all handlers for the given type.
@@ -701,12 +701,12 @@ function Co(e) {
701
701
  * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
702
702
  * @memberOf eventsBus
703
703
  */
704
- emit(t, o) {
705
- let n = e.get(t);
704
+ emit(o, t) {
705
+ let n = e.get(o);
706
706
  n && n.slice().map((s) => {
707
- s(o);
707
+ s(t);
708
708
  }), n = e.get("*"), n && n.slice().map((s) => {
709
- s(t, o);
709
+ s(o, t);
710
710
  });
711
711
  }
712
712
  };
@@ -723,41 +723,41 @@ const U = Co(), v = {
723
723
  return v.state.trees[e].selected;
724
724
  },
725
725
  // data - ноды, dataId - ID ноды родителя data
726
- getParentId(e, t, o, n = "id", s = "children", a = {}) {
727
- return o && e && (e.find((r) => r[n] === o ? (a.found = t, r) : v.getters.getParentId(r[s], r.id, o, n, s, a)), a.found) ? a.found : !1;
726
+ getParentId(e, o, t, n = "id", s = "children", a = {}) {
727
+ return t && e && (e.find((r) => r[n] === t ? (a.found = o, r) : v.getters.getParentId(r[s], r.id, t, n, s, a)), a.found) ? a.found : !1;
728
728
  }
729
729
  },
730
730
  mutations: {
731
- setTreeItems(e, t) {
732
- v.state.trees[e].items = t;
731
+ setTreeItems(e, o) {
732
+ v.state.trees[e].items = o;
733
733
  },
734
- setItemSelect(e, t) {
735
- v.state.trees[e].noSelect || (v.state.trees[e].multiSelect ? v.state.trees[e].selected.includes(t.id) ? v.state.trees[e].selected = v.state.trees[e].selected.filter(function(o) {
736
- return o !== t.id;
737
- }) : v.state.trees[e].selected = [...v.state.trees[e].selected, t.id] : v.state.trees[e].selected = [t.id]);
734
+ setItemSelect(e, o) {
735
+ v.state.trees[e].noSelect || (v.state.trees[e].multiSelect ? v.state.trees[e].selected.includes(o.id) ? v.state.trees[e].selected = v.state.trees[e].selected.filter(function(t) {
736
+ return t !== o.id;
737
+ }) : v.state.trees[e].selected = [...v.state.trees[e].selected, o.id] : v.state.trees[e].selected = [o.id]);
738
738
  }
739
739
  },
740
740
  actions: {
741
- initTreeStore(e, t, o, n, s, a, r, l = !0) {
742
- v.state.trees[e] = [], v.state.trees[e].selected = [], v.state.trees[e].noSelect = t, v.state.trees[e].multiSelect = o, v.state.trees[e].expanded = n, v.state.trees[e].transfer = s, v.state.trees[e].renderTitle = a, v.state.trees[e].beforeItem = r, v.state.trees[e].dropInside = l;
741
+ initTreeStore(e, o, t, n, s, a, r, l = !0) {
742
+ v.state.trees[e] = [], v.state.trees[e].selected = [], v.state.trees[e].noSelect = o, v.state.trees[e].multiSelect = t, v.state.trees[e].expanded = n, v.state.trees[e].transfer = s, v.state.trees[e].renderTitle = a, v.state.trees[e].beforeItem = r, v.state.trees[e].dropInside = l;
743
743
  },
744
- renderTitle(e, t) {
745
- return v.state.trees[e].renderTitle ? v.state.trees[e].renderTitle(t) : t;
744
+ renderTitle(e, o) {
745
+ return v.state.trees[e].renderTitle ? v.state.trees[e].renderTitle(o) : o;
746
746
  },
747
- beforeItem(e, t) {
748
- return v.state.trees[e].beforeItem ? v.state.trees[e].beforeItem(t) : !0;
747
+ beforeItem(e, o) {
748
+ return v.state.trees[e].beforeItem ? v.state.trees[e].beforeItem(o) : !0;
749
749
  },
750
- isItemSelected(e, t) {
751
- return v.state.trees[e].selected.includes(t);
750
+ isItemSelected(e, o) {
751
+ return v.state.trees[e].selected.includes(o);
752
752
  },
753
- toggleItem(e, t) {
754
- t.expanded = t.expanded === void 0 || !t.expanded, t.children && t.children.length && (t.expanded ? U.emit(`expand-${e}`, { id: e, model: t }) : U.emit(`collapse-${e}`, { id: e, model: t }));
753
+ toggleItem(e, o) {
754
+ o.expanded = o.expanded === void 0 || !o.expanded, o.children && o.children.length && (o.expanded ? U.emit(`expand-${e}`, { id: e, model: o }) : U.emit(`collapse-${e}`, { id: e, model: o }));
755
755
  },
756
756
  isTreeExpanded(e) {
757
757
  return v.state.trees[e].expanded;
758
758
  },
759
- isChildOfParent(e, t, o, n) {
760
- const s = v.actions.deepSearch(t, o);
759
+ isChildOfParent(e, o, t, n) {
760
+ const s = v.actions.deepSearch(o, t);
761
761
  if (s && s.children) {
762
762
  for (let a = 0; a < s.children.length; a++)
763
763
  if (s.children[a].id === n)
@@ -766,17 +766,17 @@ const U = Co(), v = {
766
766
  return !1;
767
767
  },
768
768
  // Является ли нода родителем указанного потомка
769
- isParentOfChild(e, t, o, n) {
770
- const s = v.actions.deepSearch(t, o);
769
+ isParentOfChild(e, o, t, n) {
770
+ const s = v.actions.deepSearch(o, t);
771
771
  return !!(s && s.children && v.actions.deepSearch(s.children, n));
772
772
  },
773
- deepSearch(e, t, o = "id", n = "children", s = {}) {
774
- return t && e && (e.find((a) => a[o] === t ? (s.found = a, a) : v.actions.deepSearch(a[n], t, o, n, s)), s.found) ? s.found : !1;
773
+ deepSearch(e, o, t = "id", n = "children", s = {}) {
774
+ return o && e && (e.find((a) => a[t] === o ? (s.found = a, a) : v.actions.deepSearch(a[n], o, t, n, s)), s.found) ? s.found : !1;
775
775
  },
776
- deepSearchByTitle(e, t, o = "title", n = "children", s = []) {
777
- if (t && e && (e.find((a) => {
778
- const r = new RegExp(t, "gi");
779
- a[o].toString().toLowerCase().match(r) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], t, o, n, s);
776
+ deepSearchByTitle(e, o, t = "title", n = "children", s = []) {
777
+ if (o && e && (e.find((a) => {
778
+ const r = new RegExp(o, "gi");
779
+ a[t].toString().toLowerCase().match(r) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], o, t, n, s);
780
780
  }), s)) {
781
781
  for (let a = 0; a < s.length; a++)
782
782
  ;
@@ -784,33 +784,33 @@ const U = Co(), v = {
784
784
  }
785
785
  return s;
786
786
  },
787
- moveTreeNode(e, t, o, n, s, a, r = !0) {
787
+ moveTreeNode(e, o, t, n, s, a, r = !0) {
788
788
  if (r) {
789
- const l = v.actions.deleteTreeNode(o, n);
790
- v.actions.insertTreeNode(o, s, l, a), U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: l == null ? void 0 : l.id, target: s, position: a });
789
+ const l = v.actions.deleteTreeNode(t, n);
790
+ v.actions.insertTreeNode(t, s, l, a), U.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: l == null ? void 0 : l.id, target: s, position: a });
791
791
  } else
792
- U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: n, target: s, position: a });
792
+ U.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: n, target: s, position: a });
793
793
  },
794
- insertTreeNode(e, t, o, n) {
794
+ insertTreeNode(e, o, t, n) {
795
795
  if (e)
796
796
  for (let s = 0; s < e.length; s++) {
797
- if (e[s].id === t) {
797
+ if (e[s].id === o) {
798
798
  let r = s;
799
- return n === "after" ? (r++, e.splice(r, 0, o)) : n === "before" ? e.splice(r, 0, o) : n === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, o)), e[s];
799
+ return n === "after" ? (r++, e.splice(r, 0, t)) : n === "before" ? e.splice(r, 0, t) : n === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, t)), e[s];
800
800
  }
801
- const a = this.insertTreeNode(e[s].children, t, o, n);
801
+ const a = this.insertTreeNode(e[s].children, o, t, n);
802
802
  if (a)
803
803
  return a;
804
804
  }
805
805
  },
806
- deleteTreeNode(e, t) {
806
+ deleteTreeNode(e, o) {
807
807
  if (e)
808
- for (let o = 0; o < e.length; o++) {
809
- if (e[o].id === t) {
810
- const s = e[o];
811
- return e.splice(o, 1), s;
808
+ for (let t = 0; t < e.length; t++) {
809
+ if (e[t].id === o) {
810
+ const s = e[t];
811
+ return e.splice(t, 1), s;
812
812
  }
813
- const n = v.actions.deleteTreeNode(e[o].children, t);
813
+ const n = v.actions.deleteTreeNode(e[t].children, o);
814
814
  if (n)
815
815
  return n;
816
816
  }
@@ -822,22 +822,22 @@ const U = Co(), v = {
822
822
  tag: { type: String, default: "div" }
823
823
  },
824
824
  emits: Object.keys(X),
825
- setup(e, { expose: t, emit: o }) {
825
+ setup(e, { expose: o, emit: t }) {
826
826
  let n = Oe({});
827
827
  const s = T("false"), a = T(null), r = /* @__PURE__ */ new Set(), l = m(() => s.value && n), i = (u, h) => {
828
- n = Te.data, o(u, h, n), u === X.dragenter && (r.size || h.target === a.value) && r.add(h.target), u === X.dragleave && r.delete(h.target), u === X.drop && r.clear(), s.value = !!r.size;
828
+ n = Te.data, t(u, h, n), u === X.dragenter && (r.size || h.target === a.value) && r.add(h.target), u === X.dragleave && r.delete(h.target), u === X.drop && r.clear(), s.value = !!r.size;
829
829
  };
830
- return t({
830
+ return o({
831
831
  elementSize: () => _t(a)
832
832
  }), (u, h) => (d(), b(Y(e.tag), {
833
833
  ref_key: "el",
834
834
  ref: a,
835
- onDragenter: h[0] || (h[0] = (x) => i(B(X).dragenter, x)),
836
- onDragleave: h[1] || (h[1] = (x) => i(B(X).dragleave, x)),
837
- onDragover: h[2] || (h[2] = j((x) => i(B(X).dragover, x), ["prevent"])),
838
- onDrop: h[3] || (h[3] = j((x) => i(B(X).drop, x), ["prevent"]))
835
+ onDragenter: h[0] || (h[0] = (x) => i(E(X).dragenter, x)),
836
+ onDragleave: h[1] || (h[1] = (x) => i(E(X).dragleave, x)),
837
+ onDragover: h[2] || (h[2] = j((x) => i(E(X).dragover, x), ["prevent"])),
838
+ onDrop: h[3] || (h[3] = j((x) => i(E(X).drop, x), ["prevent"]))
839
839
  }, {
840
- default: E(() => [
840
+ default: B(() => [
841
841
  L(u.$slots, "default", { transferData: l.value })
842
842
  ]),
843
843
  _: 3
@@ -861,7 +861,7 @@ const U = Co(), v = {
861
861
  }
862
862
  },
863
863
  emits: ["select"],
864
- setup(e, { expose: t, emit: o }) {
864
+ setup(e, { expose: o, emit: t }) {
865
865
  const n = e;
866
866
  let s = T(null), a = T(!1);
867
867
  const r = () => {
@@ -872,7 +872,7 @@ const U = Co(), v = {
872
872
  }, i = () => a.value;
873
873
  U.on("menu-show-request", () => {
874
874
  l();
875
- }), t({
875
+ }), o({
876
876
  show: r,
877
877
  hide: l,
878
878
  elementSize: () => s.value.elementSize(),
@@ -880,12 +880,12 @@ const U = Co(), v = {
880
880
  itemsCount: () => s.value.itemsCount()
881
881
  });
882
882
  const h = (x) => {
883
- o("select", x), x.model.children || l();
883
+ t("select", x), x.model.children || l();
884
884
  };
885
885
  return (x, S) => {
886
886
  const N = Re("click-outside");
887
887
  return d(), b(mt, { to: "body" }, [
888
- B(a) ? J((d(), b(xt, {
888
+ E(a) ? J((d(), b(xt, {
889
889
  key: 0,
890
890
  ref_key: "treeRef",
891
891
  ref: s,
@@ -910,7 +910,7 @@ const U = Co(), v = {
910
910
  beforeItem: Function
911
911
  },
912
912
  emits: ["select"],
913
- setup(e, { expose: t, emit: o }) {
913
+ setup(e, { expose: o, emit: t }) {
914
914
  const n = e, s = T(null), a = T(0), r = T(0), l = m(() => ({
915
915
  left: a.value + "px",
916
916
  top: r.value + "px"
@@ -920,9 +920,9 @@ const U = Co(), v = {
920
920
  a.value = x - u.pageX < h.width ? u.pageX - h.width : u.pageX, r.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
921
921
  });
922
922
  }, c = (u) => {
923
- o("select", u);
923
+ t("select", u);
924
924
  };
925
- return t({
925
+ return o({
926
926
  show: i
927
927
  }), (u, h) => (d(), b(bt, {
928
928
  ref_key: "dMenuRef",
@@ -978,25 +978,25 @@ const U = Co(), v = {
978
978
  }
979
979
  },
980
980
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
981
- setup(e, { expose: t, emit: o }) {
981
+ setup(e, { expose: o, emit: t }) {
982
982
  const n = e, s = T(null), a = T(!1), r = T(null), l = gt().uid;
983
983
  v.actions.initTreeStore(l, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem, n.dropInside);
984
984
  const i = (y, F) => {
985
985
  console.log(y, F);
986
986
  };
987
987
  U.on(`expand-${l}`, (y) => {
988
- o("expand", y);
988
+ t("expand", y);
989
989
  }), U.on(`collapse-${l}`, (y) => {
990
- o("collapse", y);
990
+ t("collapse", y);
991
991
  }), U.on(`move-${l}`, (y) => {
992
- o("move", y);
992
+ t("move", y);
993
993
  });
994
994
  const c = m(() => n.search ? v.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (y = null) => {
995
- v.mutations.setItemSelect(l, y.model), v.actions.toggleItem(l, y.model), o("select", y);
995
+ v.mutations.setItemSelect(l, y.model), v.actions.toggleItem(l, y.model), t("select", y);
996
996
  }, h = (y = null) => {
997
- o("over", y);
997
+ t("over", y);
998
998
  }, x = (y = null) => {
999
- o("drop", y);
999
+ t("drop", y);
1000
1000
  }, S = () => s.value.elementSize(), N = () => {
1001
1001
  for (let y = 0; y < n.items.length; y++)
1002
1002
  n.items[y].expanded = !0;
@@ -1013,7 +1013,7 @@ const U = Co(), v = {
1013
1013
  F += v.actions.beforeItem(l, y[p]) ? 1 : 0, y[p].children && y[p].children.length > 0 && (F += z(y[p].children));
1014
1014
  return F;
1015
1015
  };
1016
- return t({
1016
+ return o({
1017
1017
  elementSize: S,
1018
1018
  expandAll: N,
1019
1019
  collapseAll: $,
@@ -1028,11 +1028,11 @@ const U = Co(), v = {
1028
1028
  tag: "ul",
1029
1029
  onDrop: j(i, ["stop"])
1030
1030
  }, {
1031
- default: E(() => [
1031
+ default: B(() => [
1032
1032
  (d(!0), f(ie, null, ge(c.value, (p) => (d(), b(To, {
1033
1033
  key: p.id,
1034
1034
  model: p,
1035
- treeId: B(l),
1035
+ treeId: E(l),
1036
1036
  items: n.items,
1037
1037
  search: n.search,
1038
1038
  onNodeclick: u,
@@ -1053,7 +1053,7 @@ const U = Co(), v = {
1053
1053
  }, 8, ["onDrop"]));
1054
1054
  }
1055
1055
  };
1056
- const Eo = {
1056
+ const Bo = {
1057
1057
  __name: "DAccordion",
1058
1058
  props: {
1059
1059
  items: Array,
@@ -1065,20 +1065,20 @@ const Eo = {
1065
1065
  }
1066
1066
  },
1067
1067
  emits: ["move"],
1068
- setup(e, { emit: t }) {
1069
- const o = e, n = (s) => {
1070
- t("move", s);
1068
+ setup(e, { emit: o }) {
1069
+ const t = e, n = (s) => {
1070
+ o("move", s);
1071
1071
  };
1072
1072
  return (s, a) => (d(), b(xt, {
1073
1073
  class: "accordion",
1074
- items: o.items,
1075
- "no-select": o.noSelect,
1076
- "render-title": o.renderTitle,
1074
+ items: t.items,
1075
+ "no-select": t.noSelect,
1076
+ "render-title": t.renderTitle,
1077
1077
  "drop-inside": !1,
1078
1078
  onMove: n
1079
1079
  }, null, 8, ["items", "no-select", "render-title"]));
1080
1080
  }
1081
- }, Ts = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-a724c500"]]), Bo = {
1081
+ }, Cs = /* @__PURE__ */ re(Bo, [["__scopeId", "data-v-a724c500"]]), Eo = {
1082
1082
  __name: "DLayoutHeader",
1083
1083
  props: {
1084
1084
  fixed: {
@@ -1112,13 +1112,13 @@ const Eo = {
1112
1112
  useMinWidthLayout: Boolean
1113
1113
  },
1114
1114
  setup(e) {
1115
- const t = e, o = m(() => {
1116
- const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = t, u = n ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1115
+ const o = e, t = m(() => {
1116
+ const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1117
1117
  return `position:${u};z-index:${s};${h}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1118
1118
  });
1119
1119
  return (n, s) => (d(), f("header", {
1120
1120
  class: "d-layout-header",
1121
- style: V(o.value)
1121
+ style: V(t.value)
1122
1122
  }, [
1123
1123
  L(n.$slots, "default")
1124
1124
  ], 4));
@@ -1161,13 +1161,13 @@ const Eo = {
1161
1161
  useMinWidthLayout: Boolean
1162
1162
  },
1163
1163
  setup(e) {
1164
- const t = e, o = m(() => {
1165
- const { fixed: n, top: s, zIndex: a, minWidth: r, height: l, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = t, h = n ? "fixed" : "static", x = t.useMinWidthLayout ? `min-width: ${r}px;` : "";
1164
+ const o = e, t = m(() => {
1165
+ const { fixed: n, top: s, zIndex: a, minWidth: r, height: l, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = o, h = n ? "fixed" : "static", x = o.useMinWidthLayout ? `min-width: ${r}px;` : "";
1166
1166
  return `position:${h};top:${s}px;z-index:${a};${x}height:${l}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1167
1167
  });
1168
1168
  return (n, s) => (d(), f("div", {
1169
1169
  class: "d-layout-tab",
1170
- style: V(o.value)
1170
+ style: V(t.value)
1171
1171
  }, [
1172
1172
  L(n.$slots, "default")
1173
1173
  ], 4));
@@ -1206,13 +1206,13 @@ const Eo = {
1206
1206
  useMinWidthLayout: Boolean
1207
1207
  },
1208
1208
  setup(e) {
1209
- const t = e, o = m(() => {
1210
- const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = t, u = n ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1209
+ const o = e, t = m(() => {
1210
+ const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1211
1211
  return `position:${u};z-index:${s};${h}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1212
1212
  });
1213
1213
  return (n, s) => (d(), f("footer", {
1214
1214
  class: "d-layout-footer",
1215
- style: V(o.value)
1215
+ style: V(t.value)
1216
1216
  }, [
1217
1217
  L(n.$slots, "default")
1218
1218
  ], 4));
@@ -1246,13 +1246,13 @@ const Eo = {
1246
1246
  }
1247
1247
  },
1248
1248
  setup(e) {
1249
- const t = e, o = m(() => {
1250
- const { zIndex: n, width: s, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = t;
1249
+ const o = e, t = m(() => {
1250
+ const { zIndex: n, width: s, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = o;
1251
1251
  return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${r}ms;transition-timing-function:${l};`;
1252
1252
  });
1253
1253
  return (n, s) => (d(), f("aside", {
1254
1254
  class: "d-layout-sidebar",
1255
- style: V(o.value)
1255
+ style: V(t.value)
1256
1256
  }, [
1257
1257
  L(n.$slots, "default")
1258
1258
  ], 4));
@@ -1283,12 +1283,12 @@ const Eo = {
1283
1283
  }
1284
1284
  },
1285
1285
  setup(e) {
1286
- const t = e, o = m(() => {
1287
- const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = t, i = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1286
+ const o = e, t = m(() => {
1287
+ const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = o, i = `overflow:${o.overflowHidden ? "hidden" : "visible"};`;
1288
1288
  return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${r}ms;transition-timing-function:${l};`;
1289
1289
  });
1290
1290
  return (n, s) => (d(), f("main", {
1291
- style: V(o.value),
1291
+ style: V(t.value),
1292
1292
  class: "d-layout-content"
1293
1293
  }, [
1294
1294
  L(n.$slots, "default")
@@ -1296,10 +1296,10 @@ const Eo = {
1296
1296
  }
1297
1297
  };
1298
1298
  function Ao(e) {
1299
- const t = T(0), o = m(() => `transform: translateX(${-t.value}px);`);
1299
+ const o = T(0), t = m(() => `transform: translateX(${-o.value}px);`);
1300
1300
  let n = !1;
1301
1301
  function s(u) {
1302
- t.value = u;
1302
+ o.value = u;
1303
1303
  }
1304
1304
  function a() {
1305
1305
  var u;
@@ -1320,11 +1320,11 @@ function Ao(e) {
1320
1320
  }
1321
1321
  return vt(e, (u) => {
1322
1322
  u ? c() : i();
1323
- }, { immediate: !0 }), Et(() => {
1323
+ }, { immediate: !0 }), Bt(() => {
1324
1324
  i();
1325
- }), o;
1325
+ }), t;
1326
1326
  }
1327
- const Ho = 1001, Vo = 999, zo = 998, Cs = {
1327
+ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1328
1328
  __name: "DLayoutAdmin",
1329
1329
  props: {
1330
1330
  mode: {
@@ -1414,41 +1414,41 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1414
1414
  }
1415
1415
  },
1416
1416
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1417
- setup(e, { emit: t }) {
1418
- const o = e, n = m(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), s = m(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ao(s), r = m(() => o.fixedHeaderAndTab ? a.value : ""), l = m(() => o.fixedFooter ? a.value : ""), i = m(() => {
1419
- const { transitionDuration: g, transitionTimingFunction: R } = o;
1417
+ setup(e, { emit: o }) {
1418
+ const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = Ao(s), r = m(() => t.fixedHeaderAndTab ? a.value : ""), l = m(() => t.fixedFooter ? a.value : ""), i = m(() => {
1419
+ const { transitionDuration: g, transitionTimingFunction: R } = t;
1420
1420
  return {
1421
1421
  transitionDuration: g,
1422
1422
  transitionTimingFunction: R
1423
1423
  };
1424
- }), c = m(() => o.mode === "vertical"), u = m(() => o.isMobile || c.value ? 1003 : 1e3), h = m({
1424
+ }), c = m(() => t.mode === "vertical"), u = m(() => t.isMobile || c.value ? 1003 : 1e3), h = m({
1425
1425
  get() {
1426
- return o.sidebarCollapse;
1426
+ return t.sidebarCollapse;
1427
1427
  },
1428
1428
  set(g) {
1429
- t("update:sidebar-collapse", g);
1429
+ o("update:sidebar-collapse", g);
1430
1430
  }
1431
1431
  });
1432
1432
  function x() {
1433
- t("sidebar-mask-click");
1433
+ o("sidebar-mask-click");
1434
1434
  }
1435
- const S = m(() => o.isMobile && !h.value), N = m(() => {
1436
- const { transitionDuration: g, transitionTimingFunction: R } = o;
1437
- return `background-color:${o.maskBg};transition-duration:${g}ms;transition-timing-function:${R};`;
1435
+ const S = m(() => t.isMobile && !h.value), N = m(() => {
1436
+ const { transitionDuration: g, transitionTimingFunction: R } = t;
1437
+ return `background-color:${t.maskBg};transition-duration:${g}ms;transition-timing-function:${R};`;
1438
1438
  }), $ = m(() => {
1439
- const { sidebarWidth: g, sidebarCollapsedWidth: R } = o, A = o.isMobile ? 0 : R, z = h.value ? A : g;
1440
- return o.sidebarVisible ? z : 0;
1441
- }), H = m(() => o.isMobile ? 0 : $.value), P = m(() => c.value ? H.value : 0), w = m(
1442
- () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1439
+ const { sidebarWidth: g, sidebarCollapsedWidth: R } = t, A = t.isMobile ? 0 : R, z = h.value ? A : g;
1440
+ return t.sidebarVisible ? z : 0;
1441
+ }), H = m(() => t.isMobile ? 0 : $.value), P = m(() => c.value ? H.value : 0), w = m(
1442
+ () => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
1443
1443
  ), I = m(() => {
1444
1444
  let g = 0;
1445
- return o.fixedHeaderAndTab && (o.headerVisible && (g += o.headerHeight), o.tabVisible && (g += o.tabHeight)), g;
1446
- }), M = m(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
1445
+ return t.fixedHeaderAndTab && (t.headerVisible && (g += t.headerHeight), t.tabVisible && (g += t.tabHeight)), g;
1446
+ }), M = m(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1447
1447
  return (g, R) => (d(), f("div", {
1448
1448
  class: "d-layout",
1449
1449
  style: V(n.value)
1450
1450
  }, [
1451
- e.headerVisible ? (d(), b(Bo, ue({ key: 0 }, i.value, {
1451
+ e.headerVisible ? (d(), b(Eo, ue({ key: 0 }, i.value, {
1452
1452
  fixed: e.fixedHeaderAndTab,
1453
1453
  "z-index": Ho,
1454
1454
  "min-width": e.minWidth,
@@ -1456,7 +1456,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1456
1456
  "padding-left": P.value,
1457
1457
  style: r.value
1458
1458
  }), {
1459
- default: E(() => [
1459
+ default: B(() => [
1460
1460
  L(g.$slots, "header")
1461
1461
  ]),
1462
1462
  _: 3
@@ -1470,7 +1470,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1470
1470
  "padding-left": H.value,
1471
1471
  style: r.value
1472
1472
  }), {
1473
- default: E(() => [
1473
+ default: B(() => [
1474
1474
  L(g.$slots, "tab")
1475
1475
  ]),
1476
1476
  _: 3
@@ -1480,7 +1480,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1480
1480
  width: $.value,
1481
1481
  "padding-top": w.value
1482
1482
  }), {
1483
- default: E(() => [
1483
+ default: B(() => [
1484
1484
  L(g.$slots, "sidebar")
1485
1485
  ]),
1486
1486
  _: 3
@@ -1497,7 +1497,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1497
1497
  "padding-left": H.value,
1498
1498
  "overflow-hidden": e.addMainOverflowHidden
1499
1499
  }), {
1500
- default: E(() => [
1500
+ default: B(() => [
1501
1501
  L(g.$slots, "default")
1502
1502
  ]),
1503
1503
  _: 3
@@ -1510,7 +1510,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1510
1510
  "padding-left": H.value,
1511
1511
  style: l.value
1512
1512
  }), {
1513
- default: E(() => [
1513
+ default: B(() => [
1514
1514
  L(g.$slots, "footer")
1515
1515
  ]),
1516
1516
  _: 3
@@ -1536,7 +1536,7 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1536
1536
  pe.state.theme = pe.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(pe.state.theme);
1537
1537
  }
1538
1538
  }
1539
- }, Ls = {
1539
+ }, Is = {
1540
1540
  __name: "DConfigProvider",
1541
1541
  props: {
1542
1542
  theme: {
@@ -1545,11 +1545,11 @@ const Ho = 1001, Vo = 999, zo = 998, Cs = {
1545
1545
  }
1546
1546
  },
1547
1547
  setup(e) {
1548
- const t = e;
1549
- return pe.mutations.setTheme(t.theme), (o, n) => L(o.$slots, "default");
1548
+ const o = e;
1549
+ return pe.mutations.setTheme(o.theme), (t, n) => L(t.$slots, "default");
1550
1550
  }
1551
1551
  };
1552
- const Is = {
1552
+ const Bs = {
1553
1553
  __name: "DScrollProvider",
1554
1554
  props: {
1555
1555
  xHide: {
@@ -1562,12 +1562,12 @@ const Is = {
1562
1562
  }
1563
1563
  },
1564
1564
  setup(e) {
1565
- const t = e;
1565
+ const o = e;
1566
1566
  Ae((a) => ({
1567
- e35a6f9a: o.value,
1567
+ e35a6f9a: t.value,
1568
1568
  e35a6f98: n.value
1569
1569
  }));
1570
- const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible"), s = (a) => {
1570
+ const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible"), s = (a) => {
1571
1571
  document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
1572
1572
  };
1573
1573
  return me(() => {
@@ -1594,14 +1594,14 @@ const Fo = {
1594
1594
  }
1595
1595
  },
1596
1596
  setup(e) {
1597
- const t = e;
1597
+ const o = e;
1598
1598
  Ae((s) => ({
1599
- c07fa29a: o.value,
1599
+ c07fa29a: t.value,
1600
1600
  c07fa298: n.value
1601
1601
  }));
1602
- const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible");
1602
+ const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible");
1603
1603
  return (s, a) => (d(), f("div", {
1604
- class: D(t.autoHide ? "d-scroll-hide" : "d-scroll")
1604
+ class: D(o.autoHide ? "d-scroll-hide" : "d-scroll")
1605
1605
  }, [
1606
1606
  L(s.$slots, "default", {}, void 0, !0)
1607
1607
  ], 2));
@@ -1616,22 +1616,22 @@ const Fo = {
1616
1616
  // максимальная ширина диалога 500px, 100% и т.п.
1617
1617
  },
1618
1618
  emits: ["open", "close"],
1619
- setup(e, { expose: t, emit: o }) {
1619
+ setup(e, { expose: o, emit: t }) {
1620
1620
  const n = e, s = T(null), a = T(!1);
1621
1621
  a.value = n == null ? void 0 : n.show;
1622
1622
  const r = () => {
1623
- a.value = !0, o("open", s);
1623
+ a.value = !0, t("open", s);
1624
1624
  }, l = () => {
1625
- a.value = !1, o("close", s);
1625
+ a.value = !1, t("close", s);
1626
1626
  };
1627
- return t({
1627
+ return o({
1628
1628
  show: r,
1629
1629
  hide: l
1630
1630
  }), (i, c) => {
1631
1631
  const u = Re("keydown");
1632
1632
  return d(), b(mt, { to: "body" }, [
1633
1633
  oe(Ne, { name: "fade" }, {
1634
- default: E(() => [
1634
+ default: B(() => [
1635
1635
  a.value ? J((d(), f("div", {
1636
1636
  key: 0,
1637
1637
  ref_key: "modalRef",
@@ -1665,25 +1665,25 @@ const Fo = {
1665
1665
  ]);
1666
1666
  };
1667
1667
  }
1668
- }, ce = Bt();
1668
+ }, ce = Et();
1669
1669
  function Me(e) {
1670
1670
  e === void 0 && (e = ce.value.comp.returnValue()), ce.value.resolve(e), ce.value = null;
1671
1671
  }
1672
- function kt(e, t, o = "default") {
1672
+ function kt(e, o, t = "default") {
1673
1673
  return new Promise((n) => {
1674
1674
  ce.value = {
1675
1675
  dialog: e,
1676
- props: t,
1677
- wrapper: o,
1676
+ props: o,
1677
+ wrapper: t,
1678
1678
  resolve: n
1679
1679
  };
1680
1680
  });
1681
1681
  }
1682
- var Uo = (e, t) => {
1683
- const o = e.__vccOpts || e;
1684
- for (const [n, s] of t)
1685
- o[n] = s;
1686
- return o;
1682
+ var Uo = (e, o) => {
1683
+ const t = e.__vccOpts || e;
1684
+ for (const [n, s] of o)
1685
+ t[n] = s;
1686
+ return t;
1687
1687
  };
1688
1688
  const qo = Mt({
1689
1689
  name: "DialogWrapper",
@@ -1705,9 +1705,9 @@ const qo = Mt({
1705
1705
  };
1706
1706
  }
1707
1707
  });
1708
- function Go(e, t, o, n, s, a) {
1708
+ function Go(e, o, t, n, s, a) {
1709
1709
  return d(), b(Ne, pt(ft(e.transitionAttrs)), {
1710
- default: E(() => [
1710
+ default: B(() => [
1711
1711
  e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), b(Y(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1712
1712
  ]),
1713
1713
  _: 1
@@ -1720,24 +1720,24 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1720
1720
  title: String,
1721
1721
  message: String
1722
1722
  },
1723
- setup(e, { expose: t }) {
1724
- const o = e;
1725
- return t({
1723
+ setup(e, { expose: o }) {
1724
+ const t = e;
1725
+ return o({
1726
1726
  returnValue: () => !0
1727
1727
  }), (s, a) => (d(), f("div", null, [
1728
1728
  oe($t, { show: !0 }, {
1729
- "modal-title": E(() => [
1730
- K(O(o.title), 1)
1729
+ "modal-title": B(() => [
1730
+ K(O(t.title), 1)
1731
1731
  ]),
1732
- default: E(() => [
1733
- K(O(o.message), 1)
1732
+ default: B(() => [
1733
+ K(O(t.message), 1)
1734
1734
  ]),
1735
- "modal-footer": E(() => [
1735
+ "modal-footer": B(() => [
1736
1736
  _("div", Ko, [
1737
1737
  oe(ae, {
1738
- onClick: a[0] || (a[0] = (r) => B(Me)())
1738
+ onClick: a[0] || (a[0] = (r) => E(Me)())
1739
1739
  }, {
1740
- default: E(() => [
1740
+ default: B(() => [
1741
1741
  K("Закрыть")
1742
1742
  ]),
1743
1743
  _: 1
@@ -1754,33 +1754,33 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1754
1754
  title: String,
1755
1755
  message: String
1756
1756
  },
1757
- setup(e, { expose: t }) {
1758
- const o = e;
1759
- return t({
1757
+ setup(e, { expose: o }) {
1758
+ const t = e;
1759
+ return o({
1760
1760
  returnValue: () => !0
1761
1761
  }), (s, a) => (d(), f("div", null, [
1762
1762
  oe($t, { show: !0 }, {
1763
- "modal-title": E(() => [
1764
- K(O(o.title), 1)
1763
+ "modal-title": B(() => [
1764
+ K(O(t.title), 1)
1765
1765
  ]),
1766
- default: E(() => [
1767
- K(O(o.message), 1)
1766
+ default: B(() => [
1767
+ K(O(t.message), 1)
1768
1768
  ]),
1769
- "modal-footer": E(() => [
1769
+ "modal-footer": B(() => [
1770
1770
  _("div", Qo, [
1771
1771
  oe(ae, {
1772
- onClick: a[0] || (a[0] = (r) => B(Me)())
1772
+ onClick: a[0] || (a[0] = (r) => E(Me)())
1773
1773
  }, {
1774
- default: E(() => [
1774
+ default: B(() => [
1775
1775
  K("Да")
1776
1776
  ]),
1777
1777
  _: 1
1778
1778
  }),
1779
1779
  oe(ae, {
1780
1780
  class: "button-red",
1781
- onClick: a[1] || (a[1] = (r) => B(Me)(!1))
1781
+ onClick: a[1] || (a[1] = (r) => E(Me)(!1))
1782
1782
  }, {
1783
- default: E(() => [
1783
+ default: B(() => [
1784
1784
  K("Нет")
1785
1785
  ]),
1786
1786
  _: 1
@@ -1791,7 +1791,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1791
1791
  })
1792
1792
  ]));
1793
1793
  }
1794
- }, tn = { class: "dropdown" }, Bs = {
1794
+ }, tn = { class: "dropdown" }, Ms = {
1795
1795
  __name: "DDropdown",
1796
1796
  props: {
1797
1797
  class: String,
@@ -1810,9 +1810,9 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1810
1810
  }
1811
1811
  },
1812
1812
  emits: ["select", "click"],
1813
- setup(e, { expose: t, emit: o }) {
1813
+ setup(e, { expose: o, emit: t }) {
1814
1814
  const n = e, s = Ce(), a = T(null), r = T(null), l = T(0), i = T(0), c = (S) => {
1815
- if (o("click", S), a.value.isShowed()) {
1815
+ if (t("click", S), a.value.isShowed()) {
1816
1816
  a.value.hide();
1817
1817
  return;
1818
1818
  }
@@ -1821,9 +1821,9 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1821
1821
  l.value = H - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = P - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
1822
1822
  });
1823
1823
  }, u = (S) => {
1824
- o("select", S);
1824
+ t("select", S);
1825
1825
  }, h = m(() => ({ left: l.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1826
- t({
1826
+ o({
1827
1827
  show: c
1828
1828
  });
1829
1829
  const x = (S) => !!s[S];
@@ -1837,7 +1837,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1837
1837
  onClick: j(c, ["stop", "prevent"]),
1838
1838
  type: n.type
1839
1839
  }, {
1840
- default: E(() => [
1840
+ default: B(() => [
1841
1841
  L(S.$slots, "default")
1842
1842
  ]),
1843
1843
  _: 3
@@ -1865,26 +1865,26 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1865
1865
  ]));
1866
1866
  }
1867
1867
  }, on = {}, nn = { class: "d-panel" };
1868
- function sn(e, t) {
1868
+ function sn(e, o) {
1869
1869
  return d(), f("div", nn, [
1870
1870
  L(e.$slots, "default")
1871
1871
  ]);
1872
1872
  }
1873
- const an = /* @__PURE__ */ re(on, [["render", sn]]), rn = { class: "card-header" }, ln = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Ms = {
1873
+ const an = /* @__PURE__ */ re(on, [["render", sn]]), rn = { class: "card-header" }, ln = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Ns = {
1874
1874
  __name: "DCard",
1875
1875
  setup(e) {
1876
- return (t, o) => (d(), b(an, { class: "d-card" }, {
1877
- default: E(() => [
1876
+ return (o, t) => (d(), b(an, { class: "d-card" }, {
1877
+ default: B(() => [
1878
1878
  _("div", rn, [
1879
1879
  _("h5", ln, [
1880
- L(t.$slots, "title")
1880
+ L(o.$slots, "title")
1881
1881
  ])
1882
1882
  ]),
1883
1883
  _("div", dn, [
1884
- L(t.$slots, "default")
1884
+ L(o.$slots, "default")
1885
1885
  ]),
1886
1886
  _("div", cn, [
1887
- L(t.$slots, "footer")
1887
+ L(o.$slots, "footer")
1888
1888
  ])
1889
1889
  ]),
1890
1890
  _: 3
@@ -1892,8 +1892,8 @@ const an = /* @__PURE__ */ re(on, [["render", sn]]), rn = { class: "card-header"
1892
1892
  }
1893
1893
  }, un = /* @__PURE__ */ new Map();
1894
1894
  class pn {
1895
- constructor(t, o, n) {
1896
- this.remaining = o, this.callback = t, this.notifyItem = n, this.resume();
1895
+ constructor(o, t, n) {
1896
+ this.remaining = t, this.callback = o, this.notifyItem = n, this.resume();
1897
1897
  }
1898
1898
  pause() {
1899
1899
  clearTimeout(this.notifyItem.timer), this.remaining -= Date.now() - this.start;
@@ -1902,14 +1902,14 @@ class pn {
1902
1902
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1903
1903
  }
1904
1904
  }
1905
- const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
1905
+ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
1906
1906
  {
1907
1907
  name: "px",
1908
- regexp: new RegExp(`^${Ee}px$`)
1908
+ regexp: new RegExp(`^${Be}px$`)
1909
1909
  },
1910
1910
  {
1911
1911
  name: "%",
1912
- regexp: new RegExp(`^${Ee}%$`)
1912
+ regexp: new RegExp(`^${Be}%$`)
1913
1913
  },
1914
1914
  /**
1915
1915
  * Fallback option
@@ -1917,7 +1917,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
1917
1917
  */
1918
1918
  {
1919
1919
  name: "px",
1920
- regexp: new RegExp(`^${Ee}$`)
1920
+ regexp: new RegExp(`^${Be}$`)
1921
1921
  }
1922
1922
  ], fn = (e) => {
1923
1923
  if (e === "auto")
@@ -1925,11 +1925,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
1925
1925
  type: e,
1926
1926
  value: 0
1927
1927
  };
1928
- for (let t = 0; t < it.length; t++) {
1929
- const o = it[t];
1930
- if (o.regexp.test(e))
1928
+ for (let o = 0; o < it.length; o++) {
1929
+ const t = it[o];
1930
+ if (t.regexp.test(e))
1931
1931
  return {
1932
- type: o.name,
1932
+ type: t.name,
1933
1933
  value: parseFloat(e)
1934
1934
  };
1935
1935
  }
@@ -1951,11 +1951,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
1951
1951
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1952
1952
  }, hn = ((e) => () => e++)(0), gn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), vn = (e) => {
1953
1953
  typeof e == "string" && (e = gn(e));
1954
- let t = null, o = null;
1954
+ let o = null, t = null;
1955
1955
  return e.forEach((n) => {
1956
- rt.y.has(n) && (o = n), rt.x.has(n) && (t = n);
1957
- }), { x: t, y: o };
1958
- }, Be = {
1956
+ rt.y.has(n) && (t = n), rt.x.has(n) && (o = n);
1957
+ }), { x: o, y: t };
1958
+ }, Ee = {
1959
1959
  position: ["top", "right"],
1960
1960
  cssAnimation: "fade",
1961
1961
  velocityAnimation: {
@@ -1971,22 +1971,22 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
1971
1971
  }, yn = {
1972
1972
  __name: "VelocityGroup",
1973
1973
  emits: ["enter", "leave", "after-leave"],
1974
- setup(e, { emit: t }) {
1975
- const o = (a, r) => {
1976
- t("enter", a, r);
1974
+ setup(e, { emit: o }) {
1975
+ const t = (a, r) => {
1976
+ o("enter", a, r);
1977
1977
  }, n = (a, r) => {
1978
- t("leave", a, r);
1978
+ o("leave", a, r);
1979
1979
  }, s = () => {
1980
- t("after-leave");
1980
+ o("after-leave");
1981
1981
  };
1982
1982
  return (a, r) => (d(), b(yt, {
1983
1983
  tag: "span",
1984
1984
  css: !1,
1985
- onEnter: o,
1985
+ onEnter: t,
1986
1986
  onLeave: n,
1987
1987
  onAfterLeave: s
1988
1988
  }, {
1989
- default: E(() => [
1989
+ default: B(() => [
1990
1990
  L(a.$slots, "default")
1991
1991
  ]),
1992
1992
  _: 3
@@ -2000,13 +2000,13 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2000
2000
  name: String
2001
2001
  },
2002
2002
  setup(e) {
2003
- const t = e;
2004
- return (o, n) => (d(), b(yt, {
2003
+ const o = e;
2004
+ return (t, n) => (d(), b(yt, {
2005
2005
  tag: "span",
2006
- name: t.name
2006
+ name: o.name
2007
2007
  }, {
2008
- default: E(() => [
2009
- L(o.$slots, "default")
2008
+ default: B(() => [
2009
+ L(t.$slots, "default")
2010
2010
  ]),
2011
2011
  _: 3
2012
2012
  }, 8, ["name"]));
@@ -2014,7 +2014,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2014
2014
  }), bn = ["data-id"], xn = ["onClick"], $n = ["innerHTML"], kn = ["innerHTML"], wn = {
2015
2015
  key: 0,
2016
2016
  class: "d-notification-title"
2017
- }, Sn = { class: "notification-content" }, Ns = {
2017
+ }, Sn = { class: "notification-content" }, Rs = {
2018
2018
  __name: "DNotificationProvider",
2019
2019
  props: {
2020
2020
  group: {
@@ -2031,7 +2031,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2031
2031
  },
2032
2032
  position: {
2033
2033
  type: [String, Array, null],
2034
- default: Be.position
2034
+ default: Ee.position
2035
2035
  },
2036
2036
  classes: {
2037
2037
  type: String,
@@ -2043,11 +2043,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2043
2043
  },
2044
2044
  animation: {
2045
2045
  type: [String, Object],
2046
- default: Be.velocityAnimation
2046
+ default: Ee.velocityAnimation
2047
2047
  },
2048
2048
  animationName: {
2049
2049
  type: String,
2050
- default: Be.cssAnimation
2050
+ default: Ee.cssAnimation
2051
2051
  },
2052
2052
  speed: {
2053
2053
  type: Number,
@@ -2083,31 +2083,31 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2083
2083
  }
2084
2084
  },
2085
2085
  emits: ["click", "destroy", "start"],
2086
- setup(e, { emit: t }) {
2087
- const o = e, n = {
2086
+ setup(e, { emit: o }) {
2087
+ const t = e, n = {
2088
2088
  IDLE: 0,
2089
2089
  DESTROYED: 2
2090
- }, s = T([]), a = T(null), r = T(un.get("velocity")), l = m(() => o.animationType === "velocity"), i = m(() => l.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(o.width)), h = m(() => {
2091
- const { x: p, y: W } = vn(o.position), C = u.value.value, G = u.value.type, ne = {
2090
+ }, s = T([]), a = T(null), r = T(un.get("velocity")), l = m(() => t.animationType === "velocity"), i = m(() => l.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(t.width)), h = m(() => {
2091
+ const { x: p, y: W } = vn(t.position), C = u.value.value, G = u.value.type, ne = {
2092
2092
  width: C + G
2093
2093
  };
2094
2094
  return W && (ne[W] = "0px"), p && (p === "center" ? ne.left = `calc(50% - ${+C / 2}${G})` : ne[p] = "0px"), ne;
2095
2095
  }), x = m(() => "bottom" in h.value), S = (p) => {
2096
- t("click", p), o.closeOnClick && M(p);
2096
+ o("click", p), t.closeOnClick && M(p);
2097
2097
  }, N = () => {
2098
2098
  var p;
2099
- o.pauseOnHover && ((p = a.value) == null || p.pause());
2099
+ t.pauseOnHover && ((p = a.value) == null || p.pause());
2100
2100
  }, $ = () => {
2101
2101
  var p;
2102
- o.pauseOnHover && ((p = a.value) == null || p.resume());
2102
+ t.pauseOnHover && ((p = a.value) == null || p.resume());
2103
2103
  }, H = (p) => {
2104
- if (p.group || (p.group = ""), p.data || (p.data = {}), o.group !== p.group)
2104
+ if (p.group || (p.group = ""), p.data || (p.data = {}), t.group !== p.group)
2105
2105
  return;
2106
2106
  if (p.clean || p.clear) {
2107
2107
  R();
2108
2108
  return;
2109
2109
  }
2110
- const W = typeof p.duration == "number" ? p.duration : o.duration, C = typeof p.speed == "number" ? p.speed : o.speed, G = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : o.ignoreDuplicates, { title: ne, text: ve, type: ye, data: _e, id: be } = p, Q = {
2110
+ const W = typeof p.duration == "number" ? p.duration : t.duration, C = typeof p.speed == "number" ? p.speed : t.speed, G = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : t.ignoreDuplicates, { title: ne, text: ve, type: ye, data: _e, id: be } = p, Q = {
2111
2111
  id: be || hn(),
2112
2112
  title: ne,
2113
2113
  text: ve,
@@ -2118,18 +2118,18 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2118
2118
  data: _e
2119
2119
  };
2120
2120
  W >= 0 && (a.value = new pn(() => M(Q), Q.length, Q));
2121
- const xe = o.reverse ? !x.value : x.value;
2121
+ const xe = t.reverse ? !x.value : x.value;
2122
2122
  let le = -1;
2123
2123
  const $e = c.value.some((he) => he.title === p.title && he.text === p.text);
2124
- (!G || !$e) && (xe ? (s.value.push(Q), t("start", Q), c.value.length > o.max && (le = 0)) : (s.value.unshift(Q), t("start", Q), c.value.length > o.max && (le = c.value.length - 1)), le !== -1 && M(c.value[le]));
2124
+ (!G || !$e) && (xe ? (s.value.push(Q), o("start", Q), c.value.length > t.max && (le = 0)) : (s.value.unshift(Q), o("start", Q), c.value.length > t.max && (le = c.value.length - 1)), le !== -1 && M(c.value[le]));
2125
2125
  }, P = (p) => {
2126
2126
  g(p);
2127
2127
  }, w = (p) => [
2128
2128
  "d-notification-template",
2129
- o.classes,
2129
+ t.classes,
2130
2130
  p.type || ""
2131
2131
  ], I = (p) => l.value ? void 0 : { transition: `all ${p.speed}ms` }, M = (p) => {
2132
- clearTimeout(p.timer), p.state = n.DESTROYED, F(), t("destroy", p);
2132
+ clearTimeout(p.timer), p.state = n.DESTROYED, F(), o("destroy", p);
2133
2133
  }, g = (p) => {
2134
2134
  const W = s.value.find((C) => C.id === p);
2135
2135
  W && M(W);
@@ -2137,14 +2137,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2137
2137
  c.value.forEach(M);
2138
2138
  }, A = (p, W) => {
2139
2139
  var G;
2140
- const C = (G = o.animation) == null ? void 0 : G[p];
2140
+ const C = (G = t.animation) == null ? void 0 : G[p];
2141
2141
  return typeof C == "function" ? C(W) : C;
2142
2142
  }, z = (p, W) => {
2143
2143
  if (!l.value)
2144
2144
  return;
2145
2145
  const C = A("enter", p);
2146
2146
  r.value(p, C, {
2147
- duration: o.speed,
2147
+ duration: t.speed,
2148
2148
  complete: W
2149
2149
  });
2150
2150
  }, y = (p, W) => {
@@ -2152,7 +2152,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2152
2152
  return;
2153
2153
  const C = A("leave", p);
2154
2154
  r.value(p, C, {
2155
- duration: o.speed,
2155
+ duration: t.speed,
2156
2156
  complete: W
2157
2157
  });
2158
2158
  };
@@ -2171,7 +2171,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2171
2171
  onLeave: y,
2172
2172
  onAfterLeave: F
2173
2173
  }, {
2174
- default: E(() => [
2174
+ default: B(() => [
2175
2175
  (d(!0), f(ie, null, ge(c.value, (C) => (d(), f("div", {
2176
2176
  key: C.id,
2177
2177
  class: "d-notification-wrapper",
@@ -2211,7 +2211,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2211
2211
  }, 40, ["name"]))
2212
2212
  ], 4));
2213
2213
  }
2214
- }, Dn = { class: "d-info-progress-icon-container" }, Tn = { class: "d-info-progress-icon" }, Cn = { class: "d-info-progress-data-container" }, Ln = ["innerHTML"], Rs = {
2214
+ }, Dn = { class: "d-info-progress-icon-container" }, Tn = { class: "d-info-progress-icon" }, Cn = { class: "d-info-progress-data-container" }, Ln = ["innerHTML"], Os = {
2215
2215
  __name: "DInfoProgress",
2216
2216
  props: {
2217
2217
  style: [String, Object],
@@ -2221,18 +2221,18 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2221
2221
  type: String
2222
2222
  },
2223
2223
  emits: ["click"],
2224
- setup(e, { emit: t }) {
2225
- const o = e, n = m(() => o.icon ? te.getters.getIcon(o.icon) : null);
2224
+ setup(e, { emit: o }) {
2225
+ const t = e, n = m(() => t.icon ? te.getters.getIcon(t.icon) : null);
2226
2226
  return (s, a) => (d(), f("div", {
2227
- class: D(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2228
- style: V(o.style),
2227
+ class: D(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2228
+ style: V(t.style),
2229
2229
  onClick: a[0] || (a[0] = (r) => {
2230
- t("click", r);
2230
+ o("click", r);
2231
2231
  })
2232
2232
  }, [
2233
2233
  _("div", Dn, [
2234
2234
  _("div", Tn, [
2235
- o.icon ? (d(), b(Y(de), {
2235
+ t.icon ? (d(), b(Y(de), {
2236
2236
  key: 0,
2237
2237
  component: n.value,
2238
2238
  color: "inherit",
@@ -2243,7 +2243,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2243
2243
  _("div", Cn, [
2244
2244
  _("div", {
2245
2245
  class: "d-info-progress-line",
2246
- style: V("width: " + o.progress + "%;")
2246
+ style: V("width: " + t.progress + "%;")
2247
2247
  }, null, 4),
2248
2248
  _("div", {
2249
2249
  class: "d-info-progress-label",
@@ -2252,7 +2252,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2252
2252
  ])
2253
2253
  ], 6));
2254
2254
  }
2255
- }, In = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Bn = ["for"], Os = {
2255
+ }, In = { class: "d-checkbox" }, Bn = ["id", "checked", "disabled"], En = ["for"], As = {
2256
2256
  __name: "DCheckbox",
2257
2257
  props: {
2258
2258
  label: String,
@@ -2265,117 +2265,122 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2265
2265
  checked: Boolean
2266
2266
  },
2267
2267
  emits: ["update:modelValue"],
2268
- setup(e, { emit: t }) {
2269
- const o = e, s = gt().uid, a = m({
2270
- get: () => o.modelValue,
2268
+ setup(e, { emit: o }) {
2269
+ const t = e, s = gt().uid, a = m({
2270
+ get: () => t.modelValue,
2271
2271
  set: (r) => {
2272
- t("update:modelValue", r);
2272
+ o("update:modelValue", r);
2273
2273
  }
2274
2274
  });
2275
2275
  return (r, l) => (d(), f("div", In, [
2276
2276
  J(_("input", {
2277
2277
  "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
2278
- id: `i-${B(s)}`,
2278
+ id: `i-${E(s)}`,
2279
2279
  type: "checkbox",
2280
- checked: o.checked,
2281
- disabled: o.disabled,
2282
- onChange: l[1] || (l[1] = (...i) => o.change && o.change(...i))
2283
- }, null, 40, En), [
2280
+ checked: t.checked,
2281
+ disabled: t.disabled,
2282
+ onChange: l[1] || (l[1] = (...i) => t.change && t.change(...i))
2283
+ }, null, 40, Bn), [
2284
2284
  [Nt, a.value]
2285
2285
  ]),
2286
2286
  _("label", {
2287
- for: `i-${B(s)}`
2288
- }, O(o.label), 9, Bn)
2287
+ for: `i-${E(s)}`
2288
+ }, O(t.label), 9, En)
2289
2289
  ]));
2290
2290
  }
2291
2291
  };
2292
- async function Mn(e, t) {
2293
- return await kt(en, { title: e, message: t });
2292
+ async function Mn(e, o) {
2293
+ return await kt(en, { title: e, message: o });
2294
2294
  }
2295
- async function Nn(e, t) {
2296
- return await kt(Jo, { title: e, message: t });
2295
+ async function Nn(e, o) {
2296
+ return await kt(Jo, { title: e, message: o });
2297
2297
  }
2298
- const As = {
2298
+ const Hs = {
2299
2299
  __name: "DDialogProvider",
2300
2300
  setup(e) {
2301
- return window.alert = Nn, window.confirm = Mn, (t, o) => (d(), b(B(Zo)));
2301
+ return window.alert = Nn, window.confirm = Mn, (o, t) => (d(), b(E(Zo)));
2302
2302
  }
2303
2303
  }, Rn = { class: "d-select" }, On = {
2304
2304
  key: 0,
2305
2305
  class: "label"
2306
- }, An = ["value", "selected", "disabled"], Hs = {
2306
+ }, An = ["disabled"], Hn = ["value", "selected", "disabled"], Vs = {
2307
2307
  __name: "DSelect",
2308
2308
  props: {
2309
2309
  label: String,
2310
2310
  size: String,
2311
2311
  options: Array,
2312
2312
  modelValue: String,
2313
- scale: String
2313
+ scale: String,
2314
2314
  // small, larger
2315
+ disabled: {
2316
+ type: Boolean,
2317
+ default: !1
2318
+ }
2315
2319
  },
2316
2320
  emits: ["update:modelValue"],
2317
- setup(e, { emit: t }) {
2318
- const o = e, n = m(() => o.scale ? "d-select-" + o.scale : ""), s = m({
2319
- get: () => o.modelValue,
2321
+ setup(e, { emit: o }) {
2322
+ const t = e, n = m(() => t.scale ? "d-select-" + t.scale : ""), s = m({
2323
+ get: () => t.modelValue,
2320
2324
  set: (a) => {
2321
- t("update:modelValue", a);
2325
+ o("update:modelValue", a);
2322
2326
  }
2323
2327
  });
2324
- for (let a = 0; a < o.options.length; a++)
2325
- if (o.options[a].selected) {
2326
- s.value = o.options[a].value;
2328
+ for (let a = 0; a < t.options.length; a++)
2329
+ if (t.options[a].selected) {
2330
+ s.value = t.options[a].value;
2327
2331
  break;
2328
2332
  }
2329
2333
  return (a, r) => (d(), f("div", Rn, [
2330
- o.label ? (d(), f("div", On, O(o.label), 1)) : k("", !0),
2334
+ t.label ? (d(), f("div", On, O(t.label), 1)) : k("", !0),
2331
2335
  J(_("select", {
2332
2336
  "onUpdate:modelValue": r[0] || (r[0] = (l) => s.value = l),
2333
2337
  class: D(n.value),
2334
- style: V(o.size === "wide" ? "width:100%" : "")
2338
+ style: V(t.size === "wide" ? "width:100%" : ""),
2339
+ disabled: t.disabled
2335
2340
  }, [
2336
- (d(!0), f(ie, null, ge(o.options, (l, i) => (d(), f("option", {
2341
+ (d(!0), f(ie, null, ge(t.options, (l, i) => (d(), f("option", {
2337
2342
  key: i,
2338
2343
  value: l.value,
2339
2344
  selected: l.selected,
2340
2345
  disabled: l.disabled
2341
- }, O(l.label), 9, An))), 128))
2342
- ], 6), [
2346
+ }, O(l.label), 9, Hn))), 128))
2347
+ ], 14, An), [
2343
2348
  [Rt, s.value]
2344
2349
  ])
2345
2350
  ]));
2346
2351
  }
2347
- }, Hn = ["title"], Vn = ["title"], zn = {
2352
+ }, Vn = ["title"], zn = ["title"], Fn = {
2348
2353
  __name: "DTabLabel",
2349
2354
  props: {
2350
2355
  tab: Object
2351
2356
  },
2352
2357
  setup(e) {
2353
- const t = e;
2354
- return (o, n) => t.tab.label ? (d(), f("span", {
2358
+ const o = e;
2359
+ return (t, n) => o.tab.label ? (d(), f("span", {
2355
2360
  key: 0,
2356
- title: t.tab.title ? t.tab.title : ""
2357
- }, O(t.tab.label), 9, Hn)) : t.tab.icon ? (d(), f("span", {
2361
+ title: o.tab.title ? o.tab.title : ""
2362
+ }, O(o.tab.label), 9, Vn)) : o.tab.icon ? (d(), f("span", {
2358
2363
  key: 1,
2359
- title: t.tab.title ? t.tab.title : ""
2364
+ title: o.tab.title ? o.tab.title : ""
2360
2365
  }, [
2361
- oe(B(de), {
2362
- component: t.tab.icon
2366
+ oe(E(de), {
2367
+ component: o.tab.icon
2363
2368
  }, null, 8, ["component"])
2364
- ], 8, Vn)) : k("", !0);
2369
+ ], 8, zn)) : k("", !0);
2365
2370
  }
2366
2371
  };
2367
- const Fn = { class: "d-tabs" }, Wn = {
2372
+ const Wn = { class: "d-tabs" }, Pn = {
2368
2373
  __name: "DTabs",
2369
2374
  props: {
2370
2375
  tabs: Array
2371
2376
  },
2372
2377
  setup(e) {
2373
- const o = Ot(e, "tabs"), n = T(0), s = (a) => {
2378
+ const t = Ot(e, "tabs"), n = T(0), s = (a) => {
2374
2379
  n.value = a;
2375
2380
  };
2376
2381
  return (a, r) => (d(), f(ie, null, [
2377
- _("div", Fn, [
2378
- (d(!0), f(ie, null, ge(o.value, (l, i) => (d(), b(zn, {
2382
+ _("div", Wn, [
2383
+ (d(!0), f(ie, null, ge(t.value, (l, i) => (d(), b(Fn, {
2379
2384
  index: i,
2380
2385
  tab: l,
2381
2386
  class: D(["d-tab-title", i === n.value ? "active" : ""]),
@@ -2383,12 +2388,12 @@ const Fn = { class: "d-tabs" }, Wn = {
2383
2388
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2384
2389
  ]),
2385
2390
  (d(), b(At, null, [
2386
- (d(), b(Y(o.value[n.value].component)))
2391
+ (d(), b(Y(t.value[n.value].component)))
2387
2392
  ], 1024))
2388
2393
  ], 64));
2389
2394
  }
2390
- }, Vs = /* @__PURE__ */ re(Wn, [["__scopeId", "data-v-c98761cd"]]);
2391
- const Pn = { class: "d-grid" }, jn = {
2395
+ }, zs = /* @__PURE__ */ re(Pn, [["__scopeId", "data-v-c98761cd"]]);
2396
+ const jn = { class: "d-grid" }, Xn = {
2392
2397
  __name: "DGrid",
2393
2398
  props: {
2394
2399
  gap: {
@@ -2406,7 +2411,7 @@ const Pn = { class: "d-grid" }, jn = {
2406
2411
  colXxl: String
2407
2412
  },
2408
2413
  setup(e) {
2409
- const t = e;
2414
+ const o = e;
2410
2415
  Ae((u) => ({
2411
2416
  "09eba472": i[0],
2412
2417
  "09eba434": i[1],
@@ -2414,17 +2419,17 @@ const Pn = { class: "d-grid" }, jn = {
2414
2419
  "09eba3b8": i[3],
2415
2420
  "09eba37a": i[4],
2416
2421
  "09eba33c": i[5],
2417
- "898eb2ac": t.gap
2422
+ "898eb2ac": o.gap
2418
2423
  }));
2419
- const { colXs: o, colSm: n, colMd: s, colLg: a, colXl: r, colXxl: l } = Ht(t), i = [o.value, n.value, s.value, a.value, r.value, l.value];
2424
+ const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: r, colXxl: l } = Ht(o), i = [t.value, n.value, s.value, a.value, r.value, l.value];
2420
2425
  let c = null;
2421
2426
  for (let u = 0; u < i.length; u++)
2422
2427
  c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
2423
- return (u, h) => (d(), f("div", Pn, [
2428
+ return (u, h) => (d(), f("div", jn, [
2424
2429
  L(u.$slots, "default", {}, void 0, !0)
2425
2430
  ]));
2426
2431
  }
2427
- }, zs = /* @__PURE__ */ re(jn, [["__scopeId", "data-v-b45e8130"]]), Xn = ["src", "alt", "title"], Fs = {
2432
+ }, Fs = /* @__PURE__ */ re(Xn, [["__scopeId", "data-v-b45e8130"]]), Yn = ["src", "alt", "title"], Ws = {
2428
2433
  __name: "DImage",
2429
2434
  props: {
2430
2435
  src: String,
@@ -2436,26 +2441,26 @@ const Pn = { class: "d-grid" }, jn = {
2436
2441
  radius: String
2437
2442
  },
2438
2443
  setup(e) {
2439
- const t = e, o = T(null), n = new Image();
2444
+ const o = e, t = T(null), n = new Image();
2440
2445
  return n.onload = () => {
2441
- o.value = n.src;
2446
+ t.value = n.src;
2442
2447
  }, n.onerror = () => {
2443
- o.value = t.srcFail;
2448
+ t.value = o.srcFail;
2444
2449
  }, me(() => {
2445
- n.src = t.src;
2446
- }), (s, a) => o.value ? (d(), f("img", {
2450
+ n.src = o.src;
2451
+ }), (s, a) => t.value ? (d(), f("img", {
2447
2452
  key: 0,
2448
- src: o.value,
2449
- alt: t.alt,
2450
- title: t.title,
2451
- style: V({ width: t.width, height: t.height, borderRadius: t.radius })
2452
- }, null, 12, Xn)) : k("", !0);
2453
+ src: t.value,
2454
+ alt: o.alt,
2455
+ title: o.title,
2456
+ style: V({ width: o.width, height: o.height, borderRadius: o.radius })
2457
+ }, null, 12, Yn)) : k("", !0);
2453
2458
  }
2454
2459
  };
2455
- const Yn = { class: "d-textarea" }, Un = {
2460
+ const Un = { class: "d-textarea" }, qn = {
2456
2461
  key: 0,
2457
2462
  class: "label"
2458
- }, qn = ["rows", "cols", "placeholder"], Gn = {
2463
+ }, Gn = ["rows", "cols", "placeholder"], Zn = {
2459
2464
  __name: "DTextarea",
2460
2465
  props: {
2461
2466
  label: String,
@@ -2474,11 +2479,11 @@ const Yn = { class: "d-textarea" }, Un = {
2474
2479
  focus: Boolean
2475
2480
  },
2476
2481
  emits: ["update:modelValue"],
2477
- setup(e, { expose: t, emit: o }) {
2482
+ setup(e, { expose: o, emit: t }) {
2478
2483
  const n = e, s = T(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), r = m({
2479
2484
  get: () => n.modelValue,
2480
2485
  set: (i) => {
2481
- o("update:modelValue", i);
2486
+ t("update:modelValue", i);
2482
2487
  }
2483
2488
  });
2484
2489
  me(() => {
@@ -2487,10 +2492,10 @@ const Yn = { class: "d-textarea" }, Un = {
2487
2492
  const l = () => {
2488
2493
  s.value.focus();
2489
2494
  };
2490
- return t({
2495
+ return o({
2491
2496
  focus: l
2492
- }), (i, c) => (d(), f("div", Yn, [
2493
- n.label ? (d(), f("div", Un, O(n.label), 1)) : k("", !0),
2497
+ }), (i, c) => (d(), f("div", Un, [
2498
+ n.label ? (d(), f("div", qn, O(n.label), 1)) : k("", !0),
2494
2499
  J(_("textarea", {
2495
2500
  ref_key: "inputRef",
2496
2501
  ref: s,
@@ -2500,124 +2505,124 @@ const Yn = { class: "d-textarea" }, Un = {
2500
2505
  placeholder: n.placeholder,
2501
2506
  class: D(a.value),
2502
2507
  style: { width: "100%" }
2503
- }, null, 10, qn), [
2508
+ }, null, 10, Gn), [
2504
2509
  [Vt, r.value]
2505
2510
  ])
2506
2511
  ]));
2507
2512
  }
2508
- }, Ws = /* @__PURE__ */ re(Gn, [["__scopeId", "data-v-0e805d5d"]]);
2509
- class Ps {
2510
- constructor(t) {
2511
- this.fields = t;
2513
+ }, Ps = /* @__PURE__ */ re(Zn, [["__scopeId", "data-v-0e805d5d"]]);
2514
+ class js {
2515
+ constructor(o) {
2516
+ this.fields = o;
2512
2517
  }
2513
2518
  validate() {
2514
- let t = !1;
2515
- for (let o in this.fields)
2516
- this.fields[o].ref.value.validate() === !0 && (t = !0);
2517
- return !t;
2519
+ let o = !1;
2520
+ for (let t in this.fields)
2521
+ this.fields[t].ref.value.validate() === !0 && (o = !0);
2522
+ return !o;
2518
2523
  }
2519
2524
  }
2520
- class Zn {
2521
- validate(t, o = "https") {
2522
- return this._isValidURL(t) || (t = o + "://" + t), this._isValidURL(t);
2525
+ class Kn {
2526
+ validate(o, t = "https") {
2527
+ return this._isValidURL(o) || (o = t + "://" + o), this._isValidURL(o);
2523
2528
  }
2524
- message(t, o) {
2529
+ message(o, t) {
2525
2530
  let n = "";
2526
- switch (t) {
2531
+ switch (o) {
2527
2532
  case "url":
2528
- n = o;
2533
+ n = t;
2529
2534
  break;
2530
2535
  }
2531
2536
  return n;
2532
2537
  }
2533
- _isValidURL(t) {
2538
+ _isValidURL(o) {
2534
2539
  try {
2535
- return new URL(t), !0;
2540
+ return new URL(o), !0;
2536
2541
  } catch {
2537
2542
  return !1;
2538
2543
  }
2539
2544
  }
2540
2545
  }
2541
- const Kn = new Zn();
2542
- class Jn {
2543
- validate(t = "") {
2544
- return t !== "";
2546
+ const Jn = new Kn();
2547
+ class Qn {
2548
+ validate(o = "") {
2549
+ return o !== "";
2545
2550
  }
2546
- message(t) {
2547
- return t;
2551
+ message(o) {
2552
+ return o;
2548
2553
  }
2549
2554
  }
2550
- const Qn = new Jn();
2551
- class es {
2552
- validate(t = "", o = 0) {
2553
- return t.length >= o;
2555
+ const es = new Qn();
2556
+ class ts {
2557
+ validate(o = "", t = 0) {
2558
+ return o.length >= t;
2554
2559
  }
2555
- message(t) {
2556
- return t;
2560
+ message(o) {
2561
+ return o;
2557
2562
  }
2558
2563
  }
2559
- const ts = new es();
2560
- class os {
2561
- validate(t = "", o = 0) {
2562
- return t.length <= o;
2564
+ const os = new ts();
2565
+ class ns {
2566
+ validate(o = "", t = 0) {
2567
+ return o.length <= t;
2563
2568
  }
2564
- message(t) {
2565
- return t;
2569
+ message(o) {
2570
+ return o;
2566
2571
  }
2567
2572
  }
2568
- const ns = new os();
2569
- class ss {
2570
- validate(t) {
2571
- return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(t);
2573
+ const ss = new ns();
2574
+ class as {
2575
+ validate(o) {
2576
+ return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(o);
2572
2577
  }
2573
- message(t) {
2574
- return t;
2578
+ message(o) {
2579
+ return o;
2575
2580
  }
2576
2581
  }
2577
- const as = new ss();
2578
- class is {
2579
- validate(t) {
2580
- return !isNaN(parseFloat(t)) && !isNaN(t - 0);
2582
+ const is = new as();
2583
+ class rs {
2584
+ validate(o) {
2585
+ return !isNaN(parseFloat(o)) && !isNaN(o - 0);
2581
2586
  }
2582
- message(t) {
2583
- return t;
2587
+ message(o) {
2588
+ return o;
2584
2589
  }
2585
2590
  }
2586
- const rs = new is(), q = {
2587
- RulesUrl: Kn,
2588
- RulesRequired: Qn,
2589
- RulesMin: ts,
2590
- RulesMax: ns,
2591
- RulesEmail: as,
2592
- RulesNumber: rs
2591
+ const ls = new rs(), q = {
2592
+ RulesUrl: Jn,
2593
+ RulesRequired: es,
2594
+ RulesMin: os,
2595
+ RulesMax: ss,
2596
+ RulesEmail: is,
2597
+ RulesNumber: ls
2593
2598
  };
2594
- class ls {
2595
- validate(t, o) {
2599
+ class ds {
2600
+ validate(o, t) {
2596
2601
  var s, a, r, l, i, c, u, h, x, S, N, $, H, P;
2597
2602
  let n = "";
2598
- if (o) {
2603
+ if (t) {
2599
2604
  let w = !1;
2600
- for (let I in o)
2605
+ for (let I in t)
2601
2606
  if (!w)
2602
2607
  switch (I) {
2603
2608
  case "url":
2604
- n = q.RulesUrl.validate(t, "https") || t.length === 0 ? "" : q.RulesUrl.message("url", (s = o[I]) != null && s.message ? (a = o[I]) == null ? void 0 : a.message : "url_incorrect"), w = n !== "";
2609
+ n = q.RulesUrl.validate(o, "https") || o.length === 0 ? "" : q.RulesUrl.message("url", (s = t[I]) != null && s.message ? (a = t[I]) == null ? void 0 : a.message : "url_incorrect"), w = n !== "";
2605
2610
  break;
2606
2611
  case "required":
2607
- n = q.RulesRequired.validate(t) ? "" : q.RulesRequired.message((r = o[I]) != null && r.message ? (l = o[I]) == null ? void 0 : l.message : "required"), w = n !== "";
2612
+ n = q.RulesRequired.validate(o) ? "" : q.RulesRequired.message((r = t[I]) != null && r.message ? (l = t[I]) == null ? void 0 : l.message : "required"), w = n !== "";
2608
2613
  break;
2609
2614
  case "min":
2610
- n = q.RulesMin.validate(t, (i = o[I]) == null ? void 0 : i.value) ? "" : q.RulesMin.message((c = o[I]) != null && c.message ? (u = o[I]) == null ? void 0 : u.message : "very_small"), w = n !== "";
2615
+ n = q.RulesMin.validate(o, (i = t[I]) == null ? void 0 : i.value) ? "" : q.RulesMin.message((c = t[I]) != null && c.message ? (u = t[I]) == null ? void 0 : u.message : "very_small"), w = n !== "";
2611
2616
  break;
2612
2617
  case "max":
2613
- n = q.RulesMax.validate(t, (h = o[I]) == null ? void 0 : h.value) ? "" : q.RulesMax.message((x = o[I]) != null && x.message ? (S = o[I]) == null ? void 0 : S.message : "vary_large"), w = n !== "";
2618
+ n = q.RulesMax.validate(o, (h = t[I]) == null ? void 0 : h.value) ? "" : q.RulesMax.message((x = t[I]) != null && x.message ? (S = t[I]) == null ? void 0 : S.message : "vary_large"), w = n !== "";
2614
2619
  break;
2615
2620
  case "email":
2616
- n = q.RulesEmail.validate(t) ? "" : q.RulesMax.message((N = o[I]) != null && N.message ? ($ = o[I]) == null ? void 0 : $.message : "email_incorrect"), w = n !== "";
2621
+ n = q.RulesEmail.validate(o) ? "" : q.RulesMax.message((N = t[I]) != null && N.message ? ($ = t[I]) == null ? void 0 : $.message : "email_incorrect"), w = n !== "";
2617
2622
  break;
2618
2623
  case "number":
2619
- n = q.RulesNumber.validate(t) ? "" : q.RulesNumber.message(
2620
- (H = o[I]) != null && H.message ? (P = o[I]) == null ? void 0 : P.message : "number_incorrect"
2624
+ n = q.RulesNumber.validate(o) ? "" : q.RulesNumber.message(
2625
+ (H = t[I]) != null && H.message ? (P = t[I]) == null ? void 0 : P.message : "number_incorrect"
2621
2626
  ), w = n !== "";
2622
2627
  break;
2623
2628
  }
@@ -2625,13 +2630,13 @@ class ls {
2625
2630
  return n;
2626
2631
  }
2627
2632
  }
2628
- const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column" } }, us = {
2633
+ const cs = new ds(), us = { style: { display: "flex", "flex-direction": "column" } }, ps = {
2629
2634
  key: 0,
2630
2635
  class: "d-label"
2631
- }, ps = {
2636
+ }, fs = {
2632
2637
  key: 0,
2633
2638
  class: "text-red"
2634
- }, fs = { style: { display: "flex", "flex-direction": "row" } }, ms = { style: { flex: "1", position: "relative" } }, hs = /* @__PURE__ */ _("svg", {
2639
+ }, ms = { style: { display: "flex", "flex-direction": "row" } }, hs = { style: { flex: "1", position: "relative" } }, gs = /* @__PURE__ */ _("svg", {
2635
2640
  xmlns: "http://www.w3.org/2000/svg",
2636
2641
  viewBox: "0 0 24 24"
2637
2642
  }, [
@@ -2639,9 +2644,9 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2639
2644
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2640
2645
  fill: "currentColor"
2641
2646
  })
2642
- ], -1), gs = [
2643
- hs
2644
- ], vs = ["id", "type", "placeholder", "disabled"], ys = /* @__PURE__ */ _("svg", {
2647
+ ], -1), vs = [
2648
+ gs
2649
+ ], ys = ["id", "type", "placeholder", "disabled"], _s = /* @__PURE__ */ _("svg", {
2645
2650
  xmlns: "http://www.w3.org/2000/svg",
2646
2651
  viewBox: "0 0 24 24"
2647
2652
  }, [
@@ -2649,15 +2654,15 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2649
2654
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2650
2655
  fill: "currentColor"
2651
2656
  })
2652
- ], -1), _s = [
2653
- ys
2654
- ], bs = {
2657
+ ], -1), bs = [
2658
+ _s
2659
+ ], xs = {
2655
2660
  key: 1,
2656
2661
  class: "d-help"
2657
- }, xs = {
2662
+ }, $s = {
2658
2663
  key: 2,
2659
2664
  class: "d-error text-red"
2660
- }, js = {
2665
+ }, Xs = {
2661
2666
  __name: "DInputString",
2662
2667
  props: {
2663
2668
  form: Object,
@@ -2680,20 +2685,20 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2680
2685
  disabled: Boolean
2681
2686
  },
2682
2687
  emits: ["update:modelValue", "input", "blur"],
2683
- setup(e, { expose: t, emit: o }) {
2688
+ setup(e, { expose: o, emit: t }) {
2684
2689
  const n = e, s = T(n.error), a = zt(), r = T(!1), l = T(null);
2685
2690
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2686
2691
  const i = m({
2687
2692
  get: () => n.modelValue,
2688
2693
  //props.form?.fields[props.name].model.value,
2689
2694
  set: (w) => {
2690
- o("update:modelValue", w);
2695
+ t("update:modelValue", w);
2691
2696
  }
2692
2697
  }), c = m(() => n.type === "password" ? "password" : "text"), u = m(() => n.scale), h = (w) => {
2693
- o("input", w), x();
2698
+ t("input", w), x();
2694
2699
  }, x = () => {
2695
2700
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2696
- return s.value = ds.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2701
+ return s.value = cs.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2697
2702
  };
2698
2703
  me(() => {
2699
2704
  S();
@@ -2708,9 +2713,9 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2708
2713
  }, H = (w) => {
2709
2714
  s.value = w;
2710
2715
  }, P = (w) => {
2711
- o("blur", w);
2716
+ t("blur", w);
2712
2717
  };
2713
- return t({
2718
+ return o({
2714
2719
  focus: S,
2715
2720
  setError: H,
2716
2721
  validate: x
@@ -2719,12 +2724,12 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2719
2724
  return d(), f("div", {
2720
2725
  class: D(["d-input-string", u.value])
2721
2726
  }, [
2722
- _("div", cs, [
2723
- n.label ? (d(), f("div", us, [
2727
+ _("div", us, [
2728
+ n.label ? (d(), f("div", ps, [
2724
2729
  K(O(n.label), 1),
2725
- (M = n.form) != null && M.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", ps, "*")) : k("", !0)
2730
+ (M = n.form) != null && M.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", fs, "*")) : k("", !0)
2726
2731
  ])) : k("", !0),
2727
- _("div", fs, [
2732
+ _("div", ms, [
2728
2733
  (R = (g = n.pre) == null ? void 0 : g.outside) != null && R.component ? (d(), f("div", {
2729
2734
  key: 0,
2730
2735
  class: D(["d-pre", n.disabled ? "disabled" : ""])
@@ -2738,14 +2743,14 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2738
2743
  class: D(["d-text", r.value ? "focused" : ""])
2739
2744
  }, O((W = (p = n.pre) == null ? void 0 : p.outside) == null ? void 0 : W.text), 3)
2740
2745
  ], 2)) : k("", !0),
2741
- _("div", ms, [
2746
+ _("div", hs, [
2742
2747
  (G = (C = n.pre) == null ? void 0 : C.inside) != null && G.action && ((ve = (ne = n.pre) == null ? void 0 : ne.inside) == null ? void 0 : ve.action) === "clear" && ((ye = i.value) == null ? void 0 : ye.length) > 0 ? (d(), f("div", {
2743
2748
  key: 0,
2744
2749
  class: "d-pre-inside-button",
2745
2750
  onClick: N
2746
- }, gs)) : k("", !0),
2751
+ }, vs)) : k("", !0),
2747
2752
  J(_("input", {
2748
- id: B(a),
2753
+ id: E(a),
2749
2754
  ref_key: "inputRef",
2750
2755
  ref: l,
2751
2756
  "onUpdate:modelValue": I[0] || (I[0] = (Ie) => i.value = Ie),
@@ -2764,14 +2769,14 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2764
2769
  r.value ? "focused" : ""
2765
2770
  ]),
2766
2771
  disabled: n.disabled
2767
- }, null, 42, vs), [
2772
+ }, null, 42, ys), [
2768
2773
  [De, i.value]
2769
2774
  ]),
2770
2775
  (Ye = (Xe = n.post) == null ? void 0 : Xe.inside) != null && Ye.action && ((qe = (Ue = n.post) == null ? void 0 : Ue.inside) == null ? void 0 : qe.action) === "clear" && ((Ge = i.value) == null ? void 0 : Ge.length) > 0 ? (d(), f("div", {
2771
2776
  key: 1,
2772
2777
  class: "d-post-inside-button",
2773
2778
  onClick: N
2774
- }, _s)) : k("", !0)
2779
+ }, bs)) : k("", !0)
2775
2780
  ]),
2776
2781
  (Ke = (Ze = n.post) == null ? void 0 : Ze.outside) != null && Ke.component ? (d(), f("div", {
2777
2782
  key: 2,
@@ -2787,8 +2792,8 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2787
2792
  }, O((nt = (ot = n.post) == null ? void 0 : ot.outside) == null ? void 0 : nt.text), 3)
2788
2793
  ], 2)) : k("", !0)
2789
2794
  ]),
2790
- n.help ? (d(), f("div", bs, O(n.help), 1)) : k("", !0),
2791
- s.value ? (d(), f("div", xs, O(s.value), 1)) : k("", !0)
2795
+ n.help ? (d(), f("div", xs, O(n.help), 1)) : k("", !0),
2796
+ s.value ? (d(), f("div", $s, O(s.value), 1)) : k("", !0)
2792
2797
  ])
2793
2798
  ], 2);
2794
2799
  };
@@ -2804,12 +2809,12 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2804
2809
  }
2805
2810
  },
2806
2811
  mutations: {
2807
- addComponent(e, t) {
2808
- fe.state.name = t;
2812
+ addComponent(e, o) {
2813
+ fe.state.name = o;
2809
2814
  },
2810
2815
  addComponents(e) {
2811
- for (const t in e)
2812
- e.hasOwnProperty(t) && (fe.state[t] = e[t]);
2816
+ for (const o in e)
2817
+ e.hasOwnProperty(o) && (fe.state[o] = e[o]);
2813
2818
  }
2814
2819
  }
2815
2820
  }, wt = (e) => {
@@ -2818,25 +2823,25 @@ const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column"
2818
2823
  wt.close = (e) => {
2819
2824
  U.emit("notification-close", e);
2820
2825
  };
2821
- const Xs = () => ({ notify: wt }), Ys = {
2822
- mounted: function(e, t) {
2823
- e.clickOutsideEvent = function(o) {
2824
- e === o.target || e.contains(o.target) || t.value(o, e);
2826
+ const Ys = () => ({ notify: wt }), Us = {
2827
+ mounted: function(e, o) {
2828
+ e.clickOutsideEvent = function(t) {
2829
+ e === t.target || e.contains(t.target) || o.value(t, e);
2825
2830
  }, document.addEventListener("click", e.clickOutsideEvent);
2826
2831
  },
2827
2832
  unmounted: function(e) {
2828
2833
  document.removeEventListener("click", e.clickOutsideEvent);
2829
2834
  }
2830
- }, Us = {
2831
- beforeMount(e, t) {
2832
- e._keydownCallback = (o) => {
2833
- o.key === t.arg && t.value();
2835
+ }, qs = {
2836
+ beforeMount(e, o) {
2837
+ e._keydownCallback = (t) => {
2838
+ t.key === o.arg && o.value();
2834
2839
  }, document.addEventListener("keydown", e._keydownCallback);
2835
2840
  },
2836
- unmounted(e, t) {
2841
+ unmounted(e, o) {
2837
2842
  document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
2838
2843
  }
2839
- }, qs = {
2844
+ }, Gs = {
2840
2845
  beforeMount(e) {
2841
2846
  e.focus();
2842
2847
  }
@@ -2847,19 +2852,19 @@ function St(e) {
2847
2852
  function Dt(e) {
2848
2853
  return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
2849
2854
  }
2850
- var $s = function() {
2855
+ var ks = function() {
2851
2856
  var e = !1;
2852
2857
  try {
2853
- var t = Object.defineProperty({}, "passive", {
2858
+ var o = Object.defineProperty({}, "passive", {
2854
2859
  get: function() {
2855
2860
  e = !0;
2856
2861
  }
2857
2862
  });
2858
- window.addEventListener("test", null, t);
2863
+ window.addEventListener("test", null, o);
2859
2864
  } catch {
2860
2865
  }
2861
2866
  return e;
2862
- }(), ks = {
2867
+ }(), ws = {
2863
2868
  disableClick: !1,
2864
2869
  tapTolerance: 10,
2865
2870
  // px
@@ -2876,29 +2881,29 @@ var $s = function() {
2876
2881
  // ms
2877
2882
  };
2878
2883
  function ke(e) {
2879
- var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2880
- o && (t.lastTouchStartTime = e.timeStamp), !(n && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (Tt(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = St(e), t.startY = Dt(e), t.currentX = 0, t.currentY = 0, t.touchStartTime = e.timeStamp, t.hasSwipe = Z(this, "swipe") || Z(this, "swipe.left") || Z(this, "swipe.right") || Z(this, "swipe.top") || Z(this, "swipe.bottom"), Z(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
2881
- t.touchHoldTimer = null, ee(e, s, "hold");
2882
- }, t.options.touchHoldTolerance)), ee(e, this, "press")));
2884
+ var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2885
+ t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || (Tt(this), o.touchStarted = !0, o.touchMoved = !1, o.swipeOutBounded = !1, o.startX = St(e), o.startY = Dt(e), o.currentX = 0, o.currentY = 0, o.touchStartTime = e.timeStamp, o.hasSwipe = Z(this, "swipe") || Z(this, "swipe.left") || Z(this, "swipe.right") || Z(this, "swipe.top") || Z(this, "swipe.bottom"), Z(this, "hold") && (o.touchHoldTimer = setTimeout(function() {
2886
+ o.touchHoldTimer = null, ee(e, s, "hold");
2887
+ }, o.options.touchHoldTolerance)), ee(e, this, "press")));
2883
2888
  }
2884
2889
  function we(e) {
2885
- var t = this.$$touchObj, o = St(e), n = Dt(e), s = t.currentX != o || t.currentY != n;
2886
- if (t.currentX = o, t.currentY = n, t.touchMoved) {
2887
- if (t.hasSwipe && !t.swipeOutBounded) {
2888
- var r = t.options.swipeTolerance;
2889
- t.swipeOutBounded = Math.abs(t.startX - t.currentX) > r && Math.abs(t.startY - t.currentY) > r;
2890
+ var o = this.$$touchObj, t = St(e), n = Dt(e), s = o.currentX !== t || o.currentY !== n;
2891
+ if (o.currentX = t, o.currentY = n, o.touchMoved) {
2892
+ if (o.hasSwipe && !o.swipeOutBounded) {
2893
+ var r = o.options.swipeTolerance;
2894
+ o.swipeOutBounded = Math.abs(o.startX - o.currentX) > r && Math.abs(o.startY - o.currentY) > r;
2890
2895
  }
2891
2896
  } else {
2892
- var a = t.options.tapTolerance;
2893
- t.touchMoved = Math.abs(t.startX - t.currentX) > a || Math.abs(t.startY - t.currentY) > a, t.touchMoved && (ze(t), ee(e, this, "drag.once"));
2897
+ var a = o.options.tapTolerance;
2898
+ o.touchMoved = Math.abs(o.startX - o.currentX) > a || Math.abs(o.startY - o.currentY) > a, o.touchMoved && (ze(o), ee(e, this, "drag.once"));
2894
2899
  }
2895
2900
  if (Z(this, "rollover") && s) {
2896
- var l = e.timeStamp, i = t.options.rollOverFrequency;
2897
- (t.touchRollTime == null || l > t.touchRollTime + i) && (t.touchRollTime = l, ee(e, this, "rollover"));
2901
+ var l = e.timeStamp, i = o.options.rollOverFrequency;
2902
+ (o.touchRollTime == null || l > o.touchRollTime + i) && (o.touchRollTime = l, ee(e, this, "rollover"));
2898
2903
  }
2899
- if (Z(this, "drag") && t.touchStarted && t.touchMoved && s) {
2900
- var l = e.timeStamp, i = t.options.dragFrequency;
2901
- (t.touchDragTime == null || l > t.touchDragTime + i) && (t.touchDragTime = l, ee(e, this, "drag"));
2904
+ if (Z(this, "drag") && o.touchStarted && o.touchMoved && s) {
2905
+ var l = e.timeStamp, i = o.options.dragFrequency;
2906
+ (o.touchDragTime == null || l > o.touchDragTime + i) && (o.touchDragTime = l, ee(e, this, "drag"));
2902
2907
  }
2903
2908
  }
2904
2909
  function lt() {
@@ -2906,16 +2911,16 @@ function lt() {
2906
2911
  ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2907
2912
  }
2908
2913
  function Se(e) {
2909
- var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2910
- o && (t.lastTouchEndTime = e.timeStamp);
2911
- var s = o && !t.touchHoldTimer;
2912
- if (ze(t), t.touchStarted = !1, Ve(this), !(n && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
2913
- if (ee(e, this, "release"), t.touchMoved) {
2914
- if (t.hasSwipe && !t.swipeOutBounded) {
2915
- var a = t.options.swipeTolerance, r, l = Math.abs(t.startY - t.currentY), i = Math.abs(t.startX - t.currentX);
2916
- (l > a || i > a) && (l > a ? r = t.startY > t.currentY ? "top" : "bottom" : r = t.startX > t.currentX ? "left" : "right", Z(this, "swipe." + r) ? ee(e, this, "swipe." + r, r) : ee(e, this, "swipe", r));
2914
+ var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2915
+ t && (o.lastTouchEndTime = e.timeStamp);
2916
+ var s = t && !o.touchHoldTimer;
2917
+ if (ze(o), o.touchStarted = !1, Ve(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2918
+ if (ee(e, this, "release"), o.touchMoved) {
2919
+ if (o.hasSwipe && !o.swipeOutBounded) {
2920
+ var a = o.options.swipeTolerance, r, l = Math.abs(o.startY - o.currentY), i = Math.abs(o.startX - o.currentX);
2921
+ (l > a || i > a) && (l > a ? r = o.startY > o.currentY ? "top" : "bottom" : r = o.startX > o.currentX ? "left" : "right", Z(this, "swipe." + r) ? ee(e, this, "swipe." + r, r) : ee(e, this, "swipe", r));
2917
2922
  }
2918
- } else if (Z(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
2923
+ } else if (Z(this, "longtap") && e.timeStamp - o.touchStartTime > o.options.longTapTimeInterval)
2919
2924
  e.cancelable && e.preventDefault(), ee(e, this, "longtap");
2920
2925
  else if (Z(this, "hold") && s) {
2921
2926
  e.cancelable && e.preventDefault();
@@ -2929,12 +2934,12 @@ function dt() {
2929
2934
  function ct() {
2930
2935
  Ve(this);
2931
2936
  }
2932
- function Z(e, t) {
2933
- var o = e.$$touchObj.callbacks[t];
2934
- return o != null && o.length > 0;
2937
+ function Z(e, o) {
2938
+ var t = e.$$touchObj.callbacks[o];
2939
+ return t != null && t.length > 0;
2935
2940
  }
2936
- function ee(e, t, o, n) {
2937
- var s = t.$$touchObj, a = s.callbacks[o];
2941
+ function ee(e, o, t, n) {
2942
+ var s = o.$$touchObj, a = s.callbacks[t];
2938
2943
  if (a == null || a.length === 0)
2939
2944
  return null;
2940
2945
  for (var r = 0; r < a.length; r++) {
@@ -2943,110 +2948,110 @@ function ee(e, t, o, n) {
2943
2948
  }
2944
2949
  }
2945
2950
  function Tt(e) {
2946
- var t = e.$$touchObj.options.touchClass;
2947
- t && e.classList.add(t);
2951
+ var o = e.$$touchObj.options.touchClass;
2952
+ o && e.classList.add(o);
2948
2953
  }
2949
2954
  function Ve(e) {
2950
- var t = e.$$touchObj.options.touchClass;
2951
- t && e.classList.remove(t);
2955
+ var o = e.$$touchObj.options.touchClass;
2956
+ o && e.classList.remove(o);
2952
2957
  }
2953
2958
  function ze(e) {
2954
2959
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2955
2960
  }
2956
- function ws(e, t) {
2957
- var o = e.$$touchObj || {
2961
+ function Ss(e, o) {
2962
+ var t = e.$$touchObj || {
2958
2963
  // an object contains all callbacks registered,
2959
2964
  // key is event name, value is an array
2960
2965
  callbacks: {},
2961
2966
  // prevent bind twice, set to true when event bound
2962
2967
  hasBindTouchEvents: !1,
2963
2968
  // default options, would be override by v-touch-options
2964
- options: ks
2969
+ options: ws
2965
2970
  };
2966
- return t && (o.options = Object.assign({}, o.options, t)), e.$$touchObj = o, e.$$touchObj;
2971
+ return o && (t.options = Object.assign({}, t.options, o)), e.$$touchObj = t, e.$$touchObj;
2967
2972
  }
2968
- const Gs = {
2969
- beforeMount: function(e, t) {
2970
- const o = ws(e);
2971
- let n = $s ? { passive: !0 } : !1;
2972
- const s = t.arg || "tap";
2973
+ const Zs = {
2974
+ beforeMount: function(e, o) {
2975
+ const t = Ss(e);
2976
+ let n = ks ? { passive: !0 } : !1;
2977
+ const s = o.arg || "tap";
2973
2978
  switch (s) {
2974
2979
  case "swipe":
2975
- let a = t.modifiers;
2980
+ let a = o.modifiers;
2976
2981
  if (a.left || a.right || a.top || a.bottom) {
2977
- for (let r in t.modifiers)
2982
+ for (let r in o.modifiers)
2978
2983
  if (["left", "right", "top", "bottom"].indexOf(r) >= 0) {
2979
2984
  let l = "swipe." + r;
2980
- o.callbacks[l] = o.callbacks[l] || [], o.callbacks[l].push(t);
2985
+ t.callbacks[l] = t.callbacks[l] || [], t.callbacks[l].push(o);
2981
2986
  }
2982
2987
  } else
2983
- o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(t);
2988
+ t.callbacks.swipe = t.callbacks.swipe || [], t.callbacks.swipe.push(o);
2984
2989
  break;
2985
2990
  case "press":
2986
2991
  case "drag":
2987
- t.modifiers.disablePassive && (n = !1);
2992
+ o.modifiers.disablePassive && (n = !1);
2988
2993
  default:
2989
- o.callbacks[s] = o.callbacks[s] || [], o.callbacks[s].push(t);
2994
+ t.callbacks[s] = t.callbacks[s] || [], t.callbacks[s].push(o);
2990
2995
  }
2991
- o.hasBindTouchEvents || (e.addEventListener("touchstart", ke, n), e.addEventListener("touchmove", we, n), e.addEventListener("touchcancel", lt), e.addEventListener("touchend", Se), o.options.disableClick || (e.addEventListener("mousedown", ke), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Se), e.addEventListener("mouseenter", dt), e.addEventListener("mouseleave", ct)), o.hasBindTouchEvents = !0);
2996
+ t.hasBindTouchEvents || (e.addEventListener("touchstart", ke, n), e.addEventListener("touchmove", we, n), e.addEventListener("touchcancel", lt), e.addEventListener("touchend", Se), t.options.disableClick || (e.addEventListener("mousedown", ke), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Se), e.addEventListener("mouseenter", dt), e.addEventListener("mouseleave", ct)), t.hasBindTouchEvents = !0);
2992
2997
  },
2993
2998
  unmounted: function(e) {
2994
2999
  e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel", lt), e.removeEventListener("touchend", Se), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", ke), e.removeEventListener("mousemove", we), e.removeEventListener("mouseup", Se), e.removeEventListener("mouseenter", dt), e.removeEventListener("mouseleave", ct)), delete e.$$touchObj;
2995
3000
  }
2996
3001
  };
2997
3002
  export {
2998
- Ts as DAccordion,
3003
+ Cs as DAccordion,
2999
3004
  Jo as DAlertDialog,
3000
3005
  co as DBadge,
3001
3006
  ae as DButton,
3002
- Ms as DCard,
3003
- Os as DCheckbox,
3007
+ Ns as DCard,
3008
+ As as DCheckbox,
3004
3009
  uo as DCollapse,
3005
3010
  fe as DComponentStore,
3006
- Ls as DConfigProvider,
3011
+ Is as DConfigProvider,
3007
3012
  en as DConfirmDialog,
3008
3013
  Io as DContextMenu,
3009
- As as DDialogProvider,
3014
+ Hs as DDialogProvider,
3010
3015
  at as DDrag,
3011
3016
  Lo as DDrop,
3012
- Bs as DDropdown,
3013
- Ps as DForm,
3017
+ Ms as DDropdown,
3018
+ js as DForm,
3014
3019
  pe as DGlobalStore,
3015
- zs as DGrid,
3020
+ Fs as DGrid,
3016
3021
  de as DIcon,
3017
3022
  te as DIconStore,
3018
- Fs as DImage,
3019
- Rs as DInfoProgress,
3020
- Ds as DInput,
3021
- js as DInputString,
3022
- Cs as DLayoutAdmin,
3023
+ Ws as DImage,
3024
+ Os as DInfoProgress,
3025
+ Ts as DInput,
3026
+ Xs as DInputString,
3027
+ Ls as DLayoutAdmin,
3023
3028
  Oo as DLayoutContent,
3024
3029
  No as DLayoutFooter,
3025
- Bo as DLayoutHeader,
3030
+ Eo as DLayoutHeader,
3026
3031
  Ro as DLayoutSidebar,
3027
3032
  Mo as DLayoutTab,
3028
3033
  bt as DMenu,
3029
3034
  $t as DModal,
3030
- Ns as DNotificationProvider,
3035
+ Rs as DNotificationProvider,
3031
3036
  an as DPanel,
3032
3037
  Es as DScroll,
3033
- Is as DScrollProvider,
3034
- Hs as DSelect,
3035
- Vs as DTabs,
3036
- Ws as DTextarea,
3038
+ Bs as DScrollProvider,
3039
+ Vs as DSelect,
3040
+ zs as DTabs,
3041
+ Ps as DTextarea,
3037
3042
  Te as DTransferStore,
3038
3043
  xt as DTree,
3039
3044
  To as DTreeItem,
3040
3045
  v as DTreeStore,
3041
3046
  q as Rules,
3042
3047
  Nn as alert,
3043
- Ys as clickOutside,
3048
+ Us as clickOutside,
3044
3049
  Mn as confirm,
3045
3050
  U as emitter,
3046
3051
  Co as eventsBus,
3047
- qs as focus,
3048
- Us as keydown,
3052
+ Gs as focus,
3053
+ qs as keydown,
3049
3054
  wt as notify,
3050
- Gs as touch,
3051
- Xs as useNotification
3055
+ Zs as touch,
3056
+ Ys as useNotification
3052
3057
  };