doph-js 0.2.31 → 0.2.33

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,5 +1,5 @@
1
- import { useSlots as De, computed as m, h as nt, openBlock as d, createBlock as x, unref as M, ref as S, createElementBlock as f, Fragment as ae, normalizeClass as w, renderSlot as L, createCommentVNode as $, normalizeStyle as H, resolveDynamicComponent as X, createStaticVNode as dt, onMounted as fe, toDisplayString as A, withDirectives as J, createElementVNode as _, vModelDynamic as Se, withCtx as I, createTextVNode as K, Transition as Ne, withModifiers as Z, resolveComponent as kt, resolveDirective as Re, createVNode as ie, renderList as he, pushScopeId as wt, popScopeId as St, reactive as Oe, Teleport as ct, nextTick as ut, getCurrentInstance as pt, watch as ft, onUnmounted as Tt, mergeProps as ce, useCssVars as Ae, shallowRef as Dt, defineComponent as Lt, normalizeProps as Ct, guardReactiveProps as It, TransitionGroup as mt, vModelCheckbox as Et, vModelSelect as Bt, toRef as Mt, KeepAlive as Nt, toRefs as Rt, vModelText as Ot } from "vue";
2
- const pe = {
1
+ import { useSlots as De, computed as m, h as ot, openBlock as d, createBlock as x, unref as M, ref as w, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as H, resolveDynamicComponent as X, createStaticVNode as rt, onMounted as fe, toDisplayString as A, withDirectives as te, createElementVNode as _, vModelDynamic as Se, withCtx as I, createTextVNode as K, Transition as Me, withModifiers as Z, resolveComponent as kt, resolveDirective as Ne, createVNode as oe, renderList as he, pushScopeId as wt, popScopeId as St, reactive as Re, Teleport as dt, nextTick as ct, getCurrentInstance as ut, watch as pt, onUnmounted as Tt, mergeProps as ue, useCssVars as Oe, shallowRef as Dt, defineComponent as Lt, normalizeProps as Ct, guardReactiveProps as It, TransitionGroup as ft, vModelCheckbox as Et, vModelSelect as Bt, toRef as Mt, KeepAlive as Nt, toRefs as Rt, vModelText as Ot } from "vue";
2
+ const de = {
3
3
  __name: "DIcon",
4
4
  props: {
5
5
  component: [Object, String],
@@ -8,17 +8,17 @@ const pe = {
8
8
  className: String
9
9
  },
10
10
  setup(e) {
11
- const o = e, t = De(), n = m(() => {
12
- const { className: r } = o;
11
+ const t = e, o = De(), n = m(() => {
12
+ const { className: r } = t;
13
13
  return r === void 0 ? "icon" : ["icon", r].join(" ");
14
14
  }), s = m(() => {
15
- const { color: r } = o;
15
+ const { color: r } = t;
16
16
  return r === void 0 ? null : r;
17
17
  }), a = m(() => {
18
- const r = o.size ?? null;
18
+ const r = t.size ?? null;
19
19
  if (r !== void 0)
20
20
  return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
21
- }), l = m(() => nt(
21
+ }), l = m(() => ot(
22
22
  "i",
23
23
  {
24
24
  class: n.value,
@@ -27,73 +27,73 @@ const pe = {
27
27
  fontSize: a.value
28
28
  }
29
29
  },
30
- o.component ? nt(o.component) : t
30
+ t.component ? ot(t.component) : o
31
31
  ));
32
32
  return (r, i) => (d(), x(M(l)));
33
33
  }
34
- }, te = {
34
+ }, ee = {
35
35
  state: {},
36
36
  getters: {
37
37
  getIcon(e) {
38
- return te.state[e];
38
+ return ee.state[e];
39
39
  },
40
40
  getIcons() {
41
- return te.state;
41
+ return ee.state;
42
42
  }
43
43
  },
44
44
  mutations: {
45
- addIcon(e, o) {
46
- te.state.name = o;
45
+ addIcon(e, t) {
46
+ ee.state.name = t;
47
47
  },
48
48
  addIcons(e) {
49
- for (const o in e)
50
- e.hasOwnProperty(o) && (te.state[o] = e[o]);
49
+ for (const t in e)
50
+ e.hasOwnProperty(t) && (ee.state[t] = e[t]);
51
51
  }
52
52
  }
53
53
  };
54
- function ht(e) {
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 };
54
+ function mt(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 };
60
60
  }
61
61
  function At() {
62
62
  function e(s) {
63
63
  return s * Math.random() | 0;
64
64
  }
65
- function o() {
65
+ function t() {
66
66
  return e(16).toString(16);
67
67
  }
68
- function t(s) {
68
+ function o(s) {
69
69
  let a = "";
70
70
  for (let l = 0; l < s; ++l)
71
- a += o();
71
+ a += t();
72
72
  return a;
73
73
  }
74
74
  function n() {
75
75
  return (e(16) & 3 | 8).toString(16);
76
76
  }
77
- return t(8) + "-" + t(4) + "-4" + t(3) + "-" + n() + t(3) + "-" + t(12);
77
+ return o(8) + "-" + o(4) + "-4" + o(3) + "-" + n() + o(3) + "-" + o(12);
78
78
  }
79
- const le = (e, o) => {
80
- const t = e.__vccOpts || e;
81
- for (const [n, s] of o)
82
- t[n] = s;
83
- return t;
79
+ const le = (e, t) => {
80
+ const o = e.__vccOpts || e;
81
+ for (const [n, s] of t)
82
+ o[n] = s;
83
+ return o;
84
84
  }, Ht = {
85
85
  key: 0,
86
86
  class: "loading-svg rotating",
87
87
  xmlns: "http://www.w3.org/2000/svg",
88
88
  viewBox: "0 0 24 24"
89
- }, Vt = /* @__PURE__ */ dt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), zt = [
89
+ }, Vt = /* @__PURE__ */ rt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), zt = [
90
90
  Vt
91
91
  ], Ft = { key: 1 }, Wt = {
92
92
  key: 2,
93
93
  class: "loading-svg rotating",
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  viewBox: "0 0 24 24"
96
- }, Pt = /* @__PURE__ */ dt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), jt = [
96
+ }, Pt = /* @__PURE__ */ rt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), jt = [
97
97
  Pt
98
98
  ], Xt = {
99
99
  __name: "DButton",
@@ -119,28 +119,28 @@ const le = (e, o) => {
119
119
  }
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
- setup(e, { expose: o, emit: t }) {
123
- const n = e, s = De(), a = S(null), l = m(() => n.icon ? te.getters.getIcon(n.icon) : null), r = (k) => {
124
- t("click", k);
125
- }, i = (k) => {
126
- t("contextmenu", k);
127
- }, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = (k) => !!s[k], b = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), T = m(() => {
128
- const k = n.outline ? "-outline" : "";
129
- return n.type === "primary" ? `button${k}-blue` : n.type === "success" ? `button${k}-green` : n.type === "error" ? `button${k}-red` : n.type === "warning" ? `button${k}-orange` : n.type === "wait" ? `button${k}-violet` : n.outline ? `button${k}` : "";
122
+ setup(e, { expose: t, emit: o }) {
123
+ const n = e, s = De(), a = w(null), l = m(() => n.icon ? ee.getters.getIcon(n.icon) : null), r = ($) => {
124
+ o("click", $);
125
+ }, i = ($) => {
126
+ o("contextmenu", $);
127
+ }, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], b = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
128
+ const $ = n.outline ? "-outline" : "";
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 o({
132
- elementSize: () => ht(a)
133
- }), (k, F) => (d(), f(ae, null, [
134
- l.value ? $("", !0) : (d(), f("div", {
131
+ return t({
132
+ elementSize: () => mt(a)
133
+ }), ($, F) => (d(), f(ie, null, [
134
+ l.value ? k("", !0) : (d(), f("div", {
135
135
  key: 0,
136
136
  ref_key: "el",
137
137
  ref: a,
138
138
  onClick: r,
139
139
  onContextmenu: i,
140
- class: w(["button", [n.class, c.value, T.value, u.value].join(" ")])
140
+ class: D(["button", [n.class, c.value, S.value, u.value].join(" ")])
141
141
  }, [
142
- L(k.$slots, "default", {}, void 0, !0),
143
- n.loading ? (d(), f("svg", Ht, zt)) : $("", !0)
142
+ L($.$slots, "default", {}, void 0, !0),
143
+ n.loading ? (d(), f("svg", Ht, zt)) : k("", !0)
144
144
  ], 34)),
145
145
  l.value ? (d(), f("div", {
146
146
  key: 1,
@@ -148,22 +148,22 @@ const le = (e, o) => {
148
148
  ref: a,
149
149
  onClick: r,
150
150
  onContextmenu: i,
151
- class: w(["button button-ext", [n.class, c.value, b.value, T.value, u.value].join(" ")]),
151
+ class: D(["button button-ext", [n.class, c.value, b.value, S.value, u.value].join(" ")]),
152
152
  style: H(n.style)
153
153
  }, [
154
- n.icon ? (d(), x(X(pe), {
154
+ n.icon ? (d(), x(X(de), {
155
155
  key: 0,
156
156
  component: l.value,
157
157
  color: "inherit"
158
- }, null, 8, ["component"])) : $("", !0),
158
+ }, null, 8, ["component"])) : k("", !0),
159
159
  M(s).default ? (d(), f("div", Ft, [
160
- L(k.$slots, "default", {}, void 0, !0)
161
- ])) : $("", !0),
162
- n.loading ? (d(), f("svg", Wt, jt)) : $("", !0)
163
- ], 38)) : $("", !0)
160
+ L($.$slots, "default", {}, void 0, !0)
161
+ ])) : k("", !0),
162
+ n.loading ? (d(), f("svg", Wt, jt)) : k("", !0)
163
+ ], 38)) : k("", !0)
164
164
  ], 64));
165
165
  }
166
- }, se = /* @__PURE__ */ le(Xt, [["__scopeId", "data-v-e5cd6ccd"]]);
166
+ }, ae = /* @__PURE__ */ le(Xt, [["__scopeId", "data-v-e5cd6ccd"]]);
167
167
  const Yt = {
168
168
  key: 0,
169
169
  class: "d-input"
@@ -198,11 +198,11 @@ const Yt = {
198
198
  focus: Boolean
199
199
  },
200
200
  emits: ["update:modelValue"],
201
- setup(e, { expose: o, emit: t }) {
202
- const n = e, s = S(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = m({
201
+ setup(e, { expose: t, emit: o }) {
202
+ const n = e, s = w(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = m({
203
203
  get: () => n.modelValue,
204
204
  set: (i) => {
205
- t("update:modelValue", i);
205
+ o("update:modelValue", i);
206
206
  }
207
207
  });
208
208
  fe(() => {
@@ -211,29 +211,29 @@ const Yt = {
211
211
  const r = () => {
212
212
  s.value.focus();
213
213
  };
214
- return o({
214
+ return t({
215
215
  focus: r
216
216
  }), (i, c) => !n.post && !n.pre ? (d(), f("div", Yt, [
217
- n.label ? (d(), f("div", Ut, A(n.label), 1)) : $("", !0),
218
- J(_("input", {
217
+ n.label ? (d(), f("div", Ut, A(n.label), 1)) : k("", !0),
218
+ te(_("input", {
219
219
  ref_key: "inputRef",
220
220
  ref: s,
221
221
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
222
222
  type: n.password ? "password" : "text",
223
- class: w(a.value),
223
+ class: D(a.value),
224
224
  placeholder: n.placeholder,
225
225
  style: { width: "100%" }
226
226
  }, null, 10, qt), [
227
227
  [Se, l.value]
228
228
  ])
229
229
  ])) : n.post && n.post.click && !n.pre ? (d(), f("div", Gt, [
230
- n.label ? (d(), f("div", Zt, A(n.label), 1)) : $("", !0),
230
+ n.label ? (d(), f("div", Zt, A(n.label), 1)) : k("", !0),
231
231
  _("div", Kt, [
232
232
  _("div", Jt, [
233
- J(_("input", {
233
+ te(_("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: s,
236
- class: w(["d-input-post-field", a.value]),
236
+ class: D(["d-input-post-field", a.value]),
237
237
  "onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
238
238
  type: n.password ? "password" : "text",
239
239
  placeholder: n.placeholder,
@@ -242,10 +242,10 @@ const Yt = {
242
242
  [Se, l.value]
243
243
  ])
244
244
  ]),
245
- n.post.label ? (d(), x(se, {
245
+ n.post.label ? (d(), x(ae, {
246
246
  key: 0,
247
247
  scale: n.scale,
248
- class: w(["d-input-post-button", n.post.class]),
248
+ class: D(["d-input-post-button", n.post.class]),
249
249
  onClick: n.post.click,
250
250
  icon: n.post.icon
251
251
  }, {
@@ -253,21 +253,21 @@ const Yt = {
253
253
  K(A(n.post.label), 1)
254
254
  ]),
255
255
  _: 1
256
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(se, {
256
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
257
257
  key: 1,
258
258
  scale: n.scale,
259
- class: w(["d-input-post-button", n.post.class]),
259
+ class: D(["d-input-post-button", n.post.class]),
260
260
  onClick: n.post.click,
261
261
  icon: n.post.icon
262
262
  }, null, 8, ["scale", "onClick", "icon", "class"]))
263
263
  ])
264
264
  ])) : !n.post && n.pre && n.pre.click ? (d(), f("div", eo, [
265
- n.label ? (d(), f("div", to, A(n.label), 1)) : $("", !0),
265
+ n.label ? (d(), f("div", to, A(n.label), 1)) : k("", !0),
266
266
  _("div", oo, [
267
- n.pre.label ? (d(), x(se, {
267
+ n.pre.label ? (d(), x(ae, {
268
268
  key: 0,
269
269
  scale: n.scale,
270
- class: w(["d-input-pre-button", n.pre.class]),
270
+ class: D(["d-input-pre-button", n.pre.class]),
271
271
  onClick: n.pre.click,
272
272
  icon: n.pre.icon
273
273
  }, {
@@ -275,18 +275,18 @@ const Yt = {
275
275
  K(A(n.pre.label), 1)
276
276
  ]),
277
277
  _: 1
278
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(se, {
278
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
279
279
  key: 1,
280
280
  scale: n.scale,
281
- class: w(["d-input-pre-button", n.pre.class]),
281
+ class: D(["d-input-pre-button", n.pre.class]),
282
282
  onClick: n.pre.click,
283
283
  icon: n.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
285
285
  _("div", no, [
286
- J(_("input", {
286
+ te(_("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: s,
289
- class: w(["d-input-pre-field", a.value]),
289
+ class: D(["d-input-pre-field", a.value]),
290
290
  "onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
291
291
  type: n.password ? "password" : "text",
292
292
  placeholder: n.placeholder,
@@ -296,7 +296,7 @@ const Yt = {
296
296
  ])
297
297
  ])
298
298
  ])
299
- ])) : $("", !0);
299
+ ])) : k("", !0);
300
300
  }
301
301
  }, ws = /* @__PURE__ */ le(ao, [["__scopeId", "data-v-a972038a"]]), io = {
302
302
  __name: "DBadge",
@@ -310,17 +310,17 @@ const Yt = {
310
310
  }
311
311
  },
312
312
  setup(e) {
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` : "";
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` : "";
316
316
  });
317
317
  return (s, a) => (d(), f("div", {
318
- class: w(["badge", [o.class, t.value, n.value].join(" ")])
318
+ class: D(["badge", [t.class, o.value, n.value].join(" ")])
319
319
  }, [
320
320
  L(s.$slots, "default")
321
321
  ], 2));
322
322
  }
323
- }, ne = "0px", lo = {
323
+ }, se = "0px", lo = {
324
324
  __name: "DCollapse",
325
325
  props: {
326
326
  duration: {
@@ -345,7 +345,7 @@ const Yt = {
345
345
  }
346
346
  },
347
347
  setup(e) {
348
- const o = e, t = (i) => ({
348
+ const t = e, o = (i) => ({
349
349
  height: i.style.height,
350
350
  width: i.style.width,
351
351
  position: i.style.position,
@@ -361,26 +361,26 @@ const Yt = {
361
361
  const { width: u } = getComputedStyle(i);
362
362
  i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
363
363
  let { height: h } = getComputedStyle(i);
364
- return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = ne, i.style.overflow = "hidden", c.height && c.height !== ne ? c.height : h;
364
+ return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = se, i.style.overflow = "hidden", c.height && c.height !== se ? c.height : h;
365
365
  }, s = (i, c, u, h, b) => {
366
- const T = i.animate(h, b);
367
- i.style.height = c.height, T.onfinish = () => {
366
+ const S = i.animate(h, b);
367
+ i.style.height = c.height, S.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
370
370
  }, a = (i, c) => [
371
371
  {
372
- height: ne,
373
- opacity: o.opacityClosed,
374
- paddingTop: ne,
375
- paddingBottom: ne,
376
- borderTopWidth: ne,
377
- borderBottomWidth: ne,
378
- marginTop: ne,
379
- marginBottom: ne
372
+ height: se,
373
+ opacity: t.opacityClosed,
374
+ paddingTop: se,
375
+ paddingBottom: se,
376
+ borderTopWidth: se,
377
+ borderBottomWidth: se,
378
+ marginTop: se,
379
+ marginBottom: se
380
380
  },
381
381
  {
382
382
  height: i,
383
- opacity: o.opacityOpened,
383
+ opacity: t.opacityOpened,
384
384
  paddingTop: c.paddingTop,
385
385
  paddingBottom: c.paddingBottom,
386
386
  borderTopWidth: c.borderTopWidth,
@@ -389,15 +389,15 @@ const Yt = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
391
  ], l = (i, c) => {
392
- const u = i, h = t(u), b = n(u, h), T = a(b, h), N = { duration: o.duration, easing: o.easingEnter };
393
- s(u, h, c, T, N);
392
+ const u = i, h = o(u), b = n(u, h), S = a(b, h), N = { duration: t.duration, easing: t.easingEnter };
393
+ s(u, h, c, S, N);
394
394
  }, r = (i, c) => {
395
- const u = i, h = t(u), { height: b } = getComputedStyle(u);
395
+ const u = i, h = o(u), { height: b } = getComputedStyle(u);
396
396
  u.style.height = b, u.style.overflow = "hidden";
397
- const T = a(b, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
398
- s(u, h, c, T, N);
397
+ const S = a(b, h).reverse(), N = { duration: t.duration, easing: t.easingLeave };
398
+ s(u, h, c, S, N);
399
399
  };
400
- return (i, c) => (d(), x(Ne, {
400
+ return (i, c) => (d(), x(Me, {
401
401
  css: !1,
402
402
  onEnter: l,
403
403
  onLeave: r
@@ -410,7 +410,7 @@ const Yt = {
410
410
  }
411
411
  }, Te = {
412
412
  data: void 0
413
- }, He = (e) => e.reduce((o, t) => (o[t] = t) && o, {}), j = He([
413
+ }, Ae = (e) => e.reduce((t, o) => (t[o] = o) && t, {}), j = Ae([
414
414
  "drag",
415
415
  "dragend",
416
416
  "dragenter",
@@ -418,7 +418,7 @@ const Yt = {
418
418
  "dragstart",
419
419
  "dragover",
420
420
  "drop"
421
- ]), ro = He(["copy", "move", "link", "none"]), co = He([
421
+ ]), ro = Ae(["copy", "move", "link", "none"]), co = Ae([
422
422
  "none",
423
423
  "copy",
424
424
  "copyLink",
@@ -442,18 +442,18 @@ const Yt = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(e) {
445
- const o = e, t = De(), n = S(!1), s = m(() => n && o.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
445
+ const t = e, o = De(), n = w(!1), s = m(() => n && t.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
446
446
  const c = i.dataTransfer;
447
- if ([j.dragenter, j.dragover].includes(r) && o.dropEffect && (c.dropEffect = o.dropEffect), r === j.dragstart) {
448
- if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
447
+ if ([j.dragenter, j.dragover].includes(r) && t.dropEffect && (c.dropEffect = t.dropEffect), r === j.dragstart) {
448
+ if (t.effectAllowed && (c.effectAllowed = t.effectAllowed), t.image || o.image) {
449
449
  let u;
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);
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);
451
451
  }
452
- o.transferData !== void 0 && (Te.data = o.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
452
+ t.transferData !== void 0 && (Te.data = t.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
453
453
  }
454
454
  };
455
455
  return (r, i) => (d(), x(X(e.tag), {
456
- draggable: o.draggable,
456
+ draggable: t.draggable,
457
457
  onDrag: i[0] || (i[0] = (c) => l(M(j).drag, c)),
458
458
  onDragstart: i[1] || (i[1] = Z((c) => l(M(j).dragstart, c), ["stop"])),
459
459
  onDragenter: i[2] || (i[2] = (c) => l(M(j).dragenter, c)),
@@ -496,55 +496,55 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
496
496
  search: String
497
497
  },
498
498
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
499
- setup(e, { emit: o }) {
500
- const t = e, n = S(null), s = S(!1), a = S(!1), l = S(!1), r = 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 = (B) => {
501
- o("nodeclick", { event: B, model: t.model });
499
+ setup(e, { emit: t }) {
500
+ const o = e, n = w(null), s = w(!1), a = w(!1), l = w(!1), r = 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 = (B) => {
501
+ t("nodeclick", { event: B, model: o.model });
502
502
  }, u = (B) => {
503
- o("nodeclick", B);
503
+ t("nodeclick", B);
504
504
  }, h = (B) => {
505
- o("nodedrop", B);
505
+ t("nodedrop", B);
506
506
  }, b = (B) => {
507
- o("nodecontext", B);
508
- }, T = m(() => (v.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), N = m(() => t.search ? !1 : t.model.draggable === !0), k = (B) => {
509
- o("nodedrop", { e: B, model: t.model });
507
+ t("nodecontext", B);
508
+ }, S = m(() => (v.actions.isItemSelected(o.treeId, o.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), N = m(() => o.search ? !1 : o.model.draggable === !0), $ = (B) => {
509
+ t("nodedrop", { e: B, model: o.model });
510
510
  let y = Te.data;
511
511
  if (y === void 0 || y.model === void 0)
512
512
  return s.value = !1, !1;
513
- if (y.model.id === t.model.id || v.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || v.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
513
+ if (y.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, y.model.id) || v.actions.isParentOfChild(o.treeId, o.items, y.model.id, o.model.id))
514
514
  return s.value = !1, a.value = !1, l.value = !1, !1;
515
- if (!v.state.trees[t.treeId].transfer && y.id !== t.treeId)
515
+ if (!v.state.trees[o.treeId].transfer && y.id !== o.treeId)
516
516
  return !1;
517
517
  let O = "";
518
- a.value ? O = "before" : l.value ? O = "after" : O = "inside", v.actions.moveTreeNode(y.id, t.treeId, t.items, y.model.id, t.model.id, O), s.value = !1, a.value = !1, l.value = !1;
518
+ a.value ? O = "before" : l.value ? O = "after" : O = "inside", v.actions.moveTreeNode(y.id, o.treeId, o.items, y.model.id, o.model.id, O), s.value = !1, a.value = !1, l.value = !1;
519
519
  }, F = (B) => {
520
- o("nodedragover", { e: B, model: t.model });
520
+ t("nodedragover", { e: B, model: o.model });
521
521
  let y = Te.data;
522
522
  if (y === void 0 || y.model === void 0)
523
523
  return s.value = !0, !1;
524
- if (y.model.id === t.model.id || v.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || v.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
524
+ if (y.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, y.model.id) || v.actions.isParentOfChild(o.treeId, o.items, y.model.id, o.model.id))
525
525
  return !1;
526
526
  const O = B.y, W = n.value.getBoundingClientRect().top, P = n.value.getBoundingClientRect().height, g = P / 3;
527
527
  O > W && O <= W + g ? (s.value = !1, a.value = !0, l.value = !1) : O < W + P && O >= W + P - g ? (s.value = !1, a.value = !1, l.value = !0) : (s.value = !0, a.value = !1, l.value = !1);
528
528
  }, R = () => {
529
529
  s.value = !1, a.value = !1, l.value = !1;
530
- }, C = m(() => t.model.title.startsWith("-")), E = m(() => {
531
- if (t.model.title.startsWith("-")) {
532
- let [B, ...y] = t.model.title.split(" ");
530
+ }, C = m(() => o.model.title.startsWith("-")), E = m(() => {
531
+ if (o.model.title.startsWith("-")) {
532
+ let [B, ...y] = o.model.title.split(" ");
533
533
  return y = y.join(" "), y;
534
534
  }
535
535
  return null;
536
536
  });
537
537
  return (B, y) => {
538
- const O = kt("d-tree-item", !0), W = Re("touch");
539
- return M(v).actions.beforeItem(t.treeId, e.model) ? C.value && !E.value ? (d(), f("li", mo, go)) : C.value && E.value ? (d(), f("li", vo, [
540
- _("div", yo, A(M(v).actions.renderTitle(t.treeId, E.value)), 1)
538
+ const O = kt("d-tree-item", !0), W = Ne("touch");
539
+ return M(v).actions.beforeItem(o.treeId, e.model) ? C.value && !E.value ? (d(), f("li", mo, go)) : C.value && E.value ? (d(), f("li", vo, [
540
+ _("div", yo, A(M(v).actions.renderTitle(o.treeId, E.value)), 1)
541
541
  ])) : (d(), x(uo, {
542
542
  key: 3,
543
543
  tag: "li",
544
544
  class: "tree-item",
545
- "transfer-data": { id: t.treeId, model: t.model },
545
+ "transfer-data": { id: o.treeId, model: o.model },
546
546
  draggable: N.value,
547
- onDrop: Z(k, ["stop"]),
547
+ onDrop: Z($, ["stop"]),
548
548
  onDragenter: y[1] || (y[1] = Z(() => {
549
549
  }, ["prevent"])),
550
550
  onDragover: Z(F, ["prevent", "stop"]),
@@ -553,75 +553,75 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
553
553
  default: I(() => {
554
554
  var P, g;
555
555
  return [
556
- J((d(), f("div", {
556
+ te((d(), f("div", {
557
557
  ref_key: "node",
558
558
  ref: n,
559
- class: w(T.value),
560
- onContextmenu: y[0] || (y[0] = Z((V) => o("nodecontext", { e: V, model: t.model }), ["prevent"]))
559
+ class: D(S.value),
560
+ onContextmenu: y[0] || (y[0] = Z((V) => t("nodecontext", { e: V, model: o.model }), ["prevent"]))
561
561
  }, [
562
562
  _("div", null, [
563
- t.model.icons && t.model.icons.pre && r.value && !t.search && !C.value ? (d(), x(X(pe), {
563
+ o.model.icons && o.model.icons.pre && r.value && !o.search && !C.value ? (d(), x(X(de), {
564
564
  key: 0,
565
- component: M(te).getters.getIcon(t.model.icons.pre.component),
565
+ component: M(ee).getters.getIcon(o.model.icons.pre.component),
566
566
  size: 18,
567
- color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
568
- class: w(i.value ? "tree-open-pre" : "")
569
- }, null, 8, ["component", "color", "class"])) : $("", !0),
570
- t.model.icons && t.model.icons.pre && !r.value && !t.search && !C.value ? (d(), x(X(pe), {
567
+ color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
568
+ class: D(i.value ? "tree-open-pre" : "")
569
+ }, null, 8, ["component", "color", "class"])) : k("", !0),
570
+ o.model.icons && o.model.icons.pre && !r.value && !o.search && !C.value ? (d(), x(X(de), {
571
571
  key: 1,
572
- component: M(te).getters.getIcon(t.model.icons.pre.component),
572
+ component: M(ee).getters.getIcon(o.model.icons.pre.component),
573
573
  size: 18,
574
574
  color: "rgba(0,0,0,0)",
575
- class: w(i.value ? "tree-open-pre" : "")
576
- }, null, 8, ["component", "class"])) : $("", !0),
577
- t.model.icons && t.model.icons.icon && !C.value ? (d(), x(X(pe), {
575
+ class: D(i.value ? "tree-open-pre" : "")
576
+ }, null, 8, ["component", "class"])) : k("", !0),
577
+ o.model.icons && o.model.icons.icon && !C.value ? (d(), x(X(de), {
578
578
  key: 2,
579
- component: M(te).getters.getIcon(t.model.icons.icon.component),
580
- color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
581
- size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
582
- className: t.model.icons.icon.class ? t.model.icons.icon.class : null
583
- }, null, 8, ["component", "color", "size", "className"])) : $("", !0),
579
+ component: M(ee).getters.getIcon(o.model.icons.icon.component),
580
+ color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
581
+ size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
582
+ className: o.model.icons.icon.class ? o.model.icons.icon.class : null
583
+ }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
584
584
  _("div", _o, [
585
- C.value ? (d(), f("div", bo)) : $("", !0),
586
- C.value ? $("", !0) : (d(), f("div", xo, A(M(v).actions.renderTitle(t.treeId, t.model.title)), 1))
585
+ C.value ? (d(), f("div", bo)) : k("", !0),
586
+ C.value ? k("", !0) : (d(), f("div", xo, A(M(v).actions.renderTitle(o.treeId, o.model.title)), 1))
587
587
  ])
588
588
  ]),
589
589
  _("div", $o, [
590
- ((P = t.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(io), {
590
+ ((P = o.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(io), {
591
591
  key: 0,
592
- class: w([(g = t.model.badge) == null ? void 0 : g.class, "badge-sm"])
592
+ class: D([(g = o.model.badge) == null ? void 0 : g.class, "badge-sm"])
593
593
  }, {
594
594
  default: I(() => [
595
- K(A(t.model.badge.value), 1)
595
+ K(A(o.model.badge.value), 1)
596
596
  ]),
597
597
  _: 1
598
- }, 8, ["class"])) : $("", !0),
599
- t.model.icons && t.model.icons.post && r.value && !t.search && !C.value ? (d(), x(X(pe), {
598
+ }, 8, ["class"])) : k("", !0),
599
+ o.model.icons && o.model.icons.post && r.value && !o.search && !C.value ? (d(), x(X(de), {
600
600
  key: 1,
601
- component: M(te).getters.getIcon(t.model.icons.post.component),
601
+ component: M(ee).getters.getIcon(o.model.icons.post.component),
602
602
  size: 20,
603
- color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
604
- class: w(i.value ? "tree-open-post" : "")
605
- }, null, 8, ["component", "color", "class"])) : $("", !0)
603
+ color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
604
+ class: D(i.value ? "tree-open-post" : "")
605
+ }, null, 8, ["component", "color", "class"])) : k("", !0)
606
606
  ])
607
607
  ], 34)), [
608
608
  [W, c]
609
609
  ]),
610
- ie(lo, null, {
610
+ oe(lo, null, {
611
611
  default: I(() => [
612
- r.value && i.value && !t.search ? (d(), f("ul", ko, [
613
- (d(!0), f(ae, null, he(e.model.children, (V) => (d(), x(O, {
612
+ r.value && i.value && !o.search ? (d(), f("ul", ko, [
613
+ (d(!0), f(ie, null, he(e.model.children, (V) => (d(), x(O, {
614
614
  class: "tree-item",
615
615
  key: V.id,
616
616
  model: V,
617
- treeId: t.treeId,
618
- items: t.items,
619
- search: t.search,
617
+ treeId: o.treeId,
618
+ items: o.items,
619
+ search: o.search,
620
620
  onNodeclick: u,
621
621
  onNodedrop: h,
622
622
  onNodecontext: b
623
623
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
624
- ])) : $("", !0)
624
+ ])) : k("", !0)
625
625
  ]),
626
626
  _: 1
627
627
  })
@@ -644,9 +644,9 @@ function To(e) {
644
644
  * @param {Function} handler Function to call in response to given event
645
645
  * @memberOf eventsBus
646
646
  */
647
- on(o, t) {
648
- const n = e.get(o);
649
- n ? n.push(t) : e.set(o, [t]);
647
+ on(t, o) {
648
+ const n = e.get(t);
649
+ n ? n.push(o) : e.set(t, [o]);
650
650
  },
651
651
  /**
652
652
  * Remove an event handler for the given type.
@@ -655,9 +655,9 @@ function To(e) {
655
655
  * @param {Function} [handler] Handler function to remove
656
656
  * @memberOf eventsBus
657
657
  */
658
- off(o, t) {
659
- const n = e.get(o);
660
- n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(o, []));
658
+ off(t, o) {
659
+ const n = e.get(t);
660
+ n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
661
661
  },
662
662
  /**
663
663
  * Invoke all handlers for the given type.
@@ -669,18 +669,18 @@ function To(e) {
669
669
  * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
670
670
  * @memberOf eventsBus
671
671
  */
672
- emit(o, t) {
673
- let n = e.get(o);
672
+ emit(t, o) {
673
+ let n = e.get(t);
674
674
  n && n.slice().map((s) => {
675
- s(t);
675
+ s(o);
676
676
  }), n = e.get("*"), n && n.slice().map((s) => {
677
- s(o, t);
677
+ s(t, o);
678
678
  });
679
679
  }
680
680
  };
681
681
  }
682
682
  const U = To(), v = {
683
- state: Oe({
683
+ state: Re({
684
684
  trees: {}
685
685
  }),
686
686
  getters: {
@@ -691,41 +691,41 @@ const U = To(), v = {
691
691
  return v.state.trees[e].selected;
692
692
  },
693
693
  // data - ноды, dataId - ID ноды родителя data
694
- getParentId(e, o, t, n = "id", s = "children", a = {}) {
695
- return t && e && (e.find((l) => l[n] === t ? (a.found = o, l) : v.getters.getParentId(l[s], l.id, t, n, s, a)), a.found) ? a.found : !1;
694
+ getParentId(e, t, o, n = "id", s = "children", a = {}) {
695
+ return o && e && (e.find((l) => l[n] === o ? (a.found = t, l) : v.getters.getParentId(l[s], l.id, o, n, s, a)), a.found) ? a.found : !1;
696
696
  }
697
697
  },
698
698
  mutations: {
699
- setTreeItems(e, o) {
700
- v.state.trees[e].items = o;
699
+ setTreeItems(e, t) {
700
+ v.state.trees[e].items = t;
701
701
  },
702
- setItemSelect(e, o) {
703
- 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) {
704
- return t !== o.id;
705
- }) : v.state.trees[e].selected = [...v.state.trees[e].selected, o.id] : v.state.trees[e].selected = [o.id]);
702
+ setItemSelect(e, t) {
703
+ 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) {
704
+ return o !== t.id;
705
+ }) : v.state.trees[e].selected = [...v.state.trees[e].selected, t.id] : v.state.trees[e].selected = [t.id]);
706
706
  }
707
707
  },
708
708
  actions: {
709
- initTreeStore(e, o, t, n, s, a, l) {
710
- 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 = l;
709
+ initTreeStore(e, t, o, n, s, a, l) {
710
+ 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 = l;
711
711
  },
712
- renderTitle(e, o) {
713
- return v.state.trees[e].renderTitle ? v.state.trees[e].renderTitle(o) : o;
712
+ renderTitle(e, t) {
713
+ return v.state.trees[e].renderTitle ? v.state.trees[e].renderTitle(t) : t;
714
714
  },
715
- beforeItem(e, o) {
716
- return v.state.trees[e].beforeItem ? v.state.trees[e].beforeItem(o) : !0;
715
+ beforeItem(e, t) {
716
+ return v.state.trees[e].beforeItem ? v.state.trees[e].beforeItem(t) : !0;
717
717
  },
718
- isItemSelected(e, o) {
719
- return v.state.trees[e].selected.includes(o);
718
+ isItemSelected(e, t) {
719
+ return v.state.trees[e].selected.includes(t);
720
720
  },
721
- toggleItem(e, o) {
722
- 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 }));
721
+ toggleItem(e, t) {
722
+ 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 }));
723
723
  },
724
724
  isTreeExpanded(e) {
725
725
  return v.state.trees[e].expanded;
726
726
  },
727
- isChildOfParent(e, o, t, n) {
728
- const s = v.actions.deepSearch(o, t);
727
+ isChildOfParent(e, t, o, n) {
728
+ const s = v.actions.deepSearch(t, o);
729
729
  if (s && s.children) {
730
730
  for (let a = 0; a < s.children.length; a++)
731
731
  if (s.children[a].id === n)
@@ -734,17 +734,17 @@ const U = To(), v = {
734
734
  return !1;
735
735
  },
736
736
  // Является ли нода родителем указанного потомка
737
- isParentOfChild(e, o, t, n) {
738
- const s = v.actions.deepSearch(o, t);
737
+ isParentOfChild(e, t, o, n) {
738
+ const s = v.actions.deepSearch(t, o);
739
739
  return !!(s && s.children && v.actions.deepSearch(s.children, n));
740
740
  },
741
- deepSearch(e, o, t = "id", n = "children", s = {}) {
742
- 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;
741
+ deepSearch(e, t, o = "id", n = "children", s = {}) {
742
+ 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;
743
743
  },
744
- deepSearchByTitle(e, o, t = "title", n = "children", s = []) {
745
- if (o && e && (e.find((a) => {
746
- const l = new RegExp(o, "gi");
747
- a[t].toString().toLowerCase().match(l) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], o, t, n, s);
744
+ deepSearchByTitle(e, t, o = "title", n = "children", s = []) {
745
+ if (t && e && (e.find((a) => {
746
+ const l = new RegExp(t, "gi");
747
+ a[o].toString().toLowerCase().match(l) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], t, o, n, s);
748
748
  }), s)) {
749
749
  for (let a = 0; a < s.length; a++)
750
750
  ;
@@ -752,30 +752,30 @@ const U = To(), v = {
752
752
  }
753
753
  return s;
754
754
  },
755
- moveTreeNode(e, o, t, n, s, a) {
756
- const l = v.actions.deleteTreeNode(t, n);
757
- v.actions.insertTreeNode(t, s, l, a), U.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: l.id, target: s, position: a });
755
+ moveTreeNode(e, t, o, n, s, a) {
756
+ const l = v.actions.deleteTreeNode(o, n);
757
+ v.actions.insertTreeNode(o, s, l, a), U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: l.id, target: s, position: a });
758
758
  },
759
- insertTreeNode(e, o, t, n) {
759
+ insertTreeNode(e, t, o, n) {
760
760
  if (e)
761
761
  for (let s = 0; s < e.length; s++) {
762
- if (e[s].id === o) {
762
+ if (e[s].id === t) {
763
763
  let l = s;
764
- return n === "after" ? (l++, e.splice(l, 0, t)) : n === "before" ? e.splice(l, 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];
764
+ return n === "after" ? (l++, e.splice(l, 0, o)) : n === "before" ? e.splice(l, 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];
765
765
  }
766
- const a = this.insertTreeNode(e[s].children, o, t, n);
766
+ const a = this.insertTreeNode(e[s].children, t, o, n);
767
767
  if (a)
768
768
  return a;
769
769
  }
770
770
  },
771
- deleteTreeNode(e, o) {
771
+ deleteTreeNode(e, t) {
772
772
  if (e)
773
- for (let t = 0; t < e.length; t++) {
774
- if (e[t].id === o) {
775
- const s = e[t];
776
- return e.splice(t, 1), s;
773
+ for (let o = 0; o < e.length; o++) {
774
+ if (e[o].id === t) {
775
+ const s = e[o];
776
+ return e.splice(o, 1), s;
777
777
  }
778
- const n = v.actions.deleteTreeNode(e[t].children, o);
778
+ const n = v.actions.deleteTreeNode(e[o].children, t);
779
779
  if (n)
780
780
  return n;
781
781
  }
@@ -787,13 +787,13 @@ const U = To(), v = {
787
787
  tag: { type: String, default: "div" }
788
788
  },
789
789
  emits: Object.keys(j),
790
- setup(e, { expose: o, emit: t }) {
791
- let n = Oe({});
792
- const s = S("false"), a = S(null), l = /* @__PURE__ */ new Set(), r = m(() => s.value && n), i = (u, h) => {
793
- n = Te.data, t(u, h, n), u === j.dragenter && (l.size || h.target === a.value) && l.add(h.target), u === j.dragleave && l.delete(h.target), u === j.drop && l.clear(), s.value = !!l.size;
790
+ setup(e, { expose: t, emit: o }) {
791
+ let n = Re({});
792
+ const s = w("false"), a = w(null), l = /* @__PURE__ */ new Set(), r = m(() => s.value && n), i = (u, h) => {
793
+ n = Te.data, o(u, h, n), u === j.dragenter && (l.size || h.target === a.value) && l.add(h.target), u === j.dragleave && l.delete(h.target), u === j.drop && l.clear(), s.value = !!l.size;
794
794
  };
795
- return o({
796
- elementSize: () => ht(a)
795
+ return t({
796
+ elementSize: () => mt(a)
797
797
  }), (u, h) => (d(), x(X(e.tag), {
798
798
  ref_key: "el",
799
799
  ref: a,
@@ -808,7 +808,7 @@ const U = To(), v = {
808
808
  _: 3
809
809
  }, 544));
810
810
  }
811
- }, Lo = { key: 0 }, Co = { key: 1 }, gt = {
811
+ }, ht = {
812
812
  __name: "DMenu",
813
813
  props: {
814
814
  class: String,
@@ -826,9 +826,9 @@ const U = To(), v = {
826
826
  }
827
827
  },
828
828
  emits: ["select"],
829
- setup(e, { expose: o, emit: t }) {
829
+ setup(e, { expose: t, emit: o }) {
830
830
  const n = e;
831
- let s = S(null), a = S(!1);
831
+ let s = w(null), a = w(!1);
832
832
  const l = () => {
833
833
  U.emit("menu-show-request"), a.value = !0;
834
834
  }, r = () => {
@@ -837,7 +837,7 @@ const U = To(), v = {
837
837
  }, i = () => a.value;
838
838
  U.on("menu-show-request", () => {
839
839
  r();
840
- }), o({
840
+ }), t({
841
841
  show: l,
842
842
  hide: r,
843
843
  elementSize: () => s.value.elementSize(),
@@ -845,46 +845,29 @@ const U = To(), v = {
845
845
  itemsCount: () => s.value.itemsCount()
846
846
  });
847
847
  const h = (b) => {
848
- t("select", b), b.model.children || r();
848
+ o("select", b), b.model.children || r();
849
849
  };
850
- return (b, T) => {
851
- const N = Re("click-outside");
852
- return n.bodyAsParent ? (d(), f("div", Lo, [
853
- (d(), x(ct, { to: "body" }, [
854
- M(a) ? J((d(), x(Be, {
855
- key: 0,
856
- ref_key: "treeRef",
857
- ref: s,
858
- items: n.items,
859
- "no-select": n.noSelect,
860
- class: w(n.class),
861
- style: H(n.style),
862
- onSelect: h,
863
- "render-title": n.renderItemTitle,
864
- "before-item": n.beforeItem
865
- }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
866
- [N, () => r()]
867
- ]) : $("", !0)
868
- ]))
869
- ])) : (d(), f("div", Co, [
870
- M(a) ? J((d(), x(Be, {
850
+ return (b, S) => {
851
+ const N = Ne("click-outside");
852
+ return d(), x(dt, { to: "body" }, [
853
+ M(a) ? te((d(), x(gt, {
871
854
  key: 0,
872
855
  ref_key: "treeRef",
873
856
  ref: s,
874
857
  items: n.items,
875
858
  "no-select": n.noSelect,
876
- class: w(n.class),
859
+ class: D(n.class),
877
860
  style: H(n.style),
878
861
  onSelect: h,
879
862
  "render-title": n.renderItemTitle,
880
863
  "before-item": n.beforeItem
881
864
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
882
865
  [N, () => r()]
883
- ]) : $("", !0)
884
- ]));
866
+ ]) : k("", !0)
867
+ ]);
885
868
  };
886
869
  }
887
- }, Io = {
870
+ }, Lo = {
888
871
  __name: "DContextMenu",
889
872
  props: {
890
873
  items: Array,
@@ -892,21 +875,21 @@ const U = To(), v = {
892
875
  beforeItem: Function
893
876
  },
894
877
  emits: ["select"],
895
- setup(e, { expose: o, emit: t }) {
896
- const n = e, s = S(null), a = S(0), l = S(0), r = m(() => ({
878
+ setup(e, { expose: t, emit: o }) {
879
+ const n = e, s = w(null), a = w(0), l = w(0), r = m(() => ({
897
880
  left: a.value + "px",
898
881
  top: l.value + "px"
899
882
  })), i = (u) => {
900
- s.value.show(), ut(() => {
901
- const h = s.value.elementSize(), b = window.innerWidth, T = window.innerHeight;
902
- a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, l.value = T - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
883
+ s.value.show(), ct(() => {
884
+ const h = s.value.elementSize(), b = window.innerWidth, S = window.innerHeight;
885
+ a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, l.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
903
886
  });
904
887
  }, c = (u) => {
905
- t("select", u);
888
+ o("select", u);
906
889
  };
907
- return o({
890
+ return t({
908
891
  show: i
909
- }), (u, h) => (d(), x(gt, {
892
+ }), (u, h) => (d(), x(ht, {
910
893
  ref_key: "dMenuRef",
911
894
  ref: s,
912
895
  onSelect: c,
@@ -918,7 +901,7 @@ const U = To(), v = {
918
901
  "before-item": n.beforeItem
919
902
  }, null, 8, ["items", "style", "render-item-title", "before-item"]));
920
903
  }
921
- }, Be = {
904
+ }, gt = {
922
905
  __name: "DTree",
923
906
  props: {
924
907
  items: Array,
@@ -952,29 +935,29 @@ const U = To(), v = {
952
935
  }
953
936
  },
954
937
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
955
- setup(e, { expose: o, emit: t }) {
956
- const n = e, s = S(null), a = S(!1), l = S(null), r = pt().uid;
938
+ setup(e, { expose: t, emit: o }) {
939
+ const n = e, s = w(null), a = w(!1), l = w(null), r = ut().uid;
957
940
  v.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
958
941
  const i = (g, V) => {
959
942
  console.log(g, V);
960
943
  };
961
944
  U.on(`expand-${r}`, (g) => {
962
- t("expand", g);
945
+ o("expand", g);
963
946
  }), U.on(`collapse-${r}`, (g) => {
964
- t("collapse", g);
947
+ o("collapse", g);
965
948
  }), U.on(`move-${r}`, (g) => {
966
- t("move", g);
949
+ o("move", g);
967
950
  });
968
951
  const c = m(() => n.search ? v.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (g = null) => {
969
- v.mutations.setItemSelect(r, g.model), v.actions.toggleItem(r, g.model), t("select", g);
952
+ v.mutations.setItemSelect(r, g.model), v.actions.toggleItem(r, g.model), o("select", g);
970
953
  }, h = (g = null) => {
971
- t("over", g);
954
+ o("over", g);
972
955
  }, b = (g = null) => {
973
- t("drop", g);
974
- }, T = () => s.value.elementSize(), N = () => {
956
+ o("drop", g);
957
+ }, S = () => s.value.elementSize(), N = () => {
975
958
  for (let g = 0; g < n.items.length; g++)
976
959
  n.items[g].expanded = !0;
977
- }, k = () => {
960
+ }, $ = () => {
978
961
  for (let g = 0; g < n.items.length; g++)
979
962
  n.items[g].expanded = !1;
980
963
  }, F = () => r, R = (g) => v.actions.deepSearch(n.items, g), C = (g) => {
@@ -987,10 +970,10 @@ const U = To(), v = {
987
970
  V += v.actions.beforeItem(r, g[p]) ? 1 : 0, g[p].children && g[p].children.length > 0 && (V += P(g[p].children));
988
971
  return V;
989
972
  };
990
- return o({
991
- elementSize: T,
973
+ return t({
974
+ elementSize: S,
992
975
  expandAll: N,
993
- collapseAll: k,
976
+ collapseAll: $,
994
977
  getId: F,
995
978
  getNode: R,
996
979
  selectNode: C,
@@ -1003,7 +986,7 @@ const U = To(), v = {
1003
986
  onDrop: Z(i, ["stop"])
1004
987
  }, {
1005
988
  default: I(() => [
1006
- (d(!0), f(ae, null, he(c.value, (p) => (d(), x(So, {
989
+ (d(!0), f(ie, null, he(c.value, (p) => (d(), x(So, {
1007
990
  key: p.id,
1008
991
  model: p,
1009
992
  treeId: M(r),
@@ -1014,20 +997,20 @@ const U = To(), v = {
1014
997
  onNodedrop: b,
1015
998
  onNodecontext: O
1016
999
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
1017
- y.value ? (d(), x(Io, {
1000
+ y.value ? (d(), x(Lo, {
1018
1001
  key: 0,
1019
1002
  ref_key: "contextTreeRef",
1020
1003
  ref: a,
1021
1004
  items: y.value,
1022
1005
  onSelect: E,
1023
1006
  "before-item": B
1024
- }, null, 8, ["items"])) : $("", !0)
1007
+ }, null, 8, ["items"])) : k("", !0)
1025
1008
  ]),
1026
1009
  _: 1
1027
1010
  }, 8, ["onDrop"]));
1028
1011
  }
1029
1012
  };
1030
- const Eo = {
1013
+ const Co = {
1031
1014
  __name: "DAccordion",
1032
1015
  props: {
1033
1016
  items: Array,
@@ -1039,15 +1022,15 @@ const Eo = {
1039
1022
  }
1040
1023
  },
1041
1024
  setup(e) {
1042
- const o = e;
1043
- return (t, n) => (d(), x(Be, {
1025
+ const t = e;
1026
+ return (o, n) => (d(), x(gt, {
1044
1027
  class: "accordion",
1045
- items: o.items,
1046
- "no-select": o.noSelect,
1047
- "render-title": o.renderTitle
1028
+ items: t.items,
1029
+ "no-select": t.noSelect,
1030
+ "render-title": t.renderTitle
1048
1031
  }, null, 8, ["items", "no-select", "render-title"]));
1049
1032
  }
1050
- }, Ss = /* @__PURE__ */ le(Eo, [["__scopeId", "data-v-642edace"]]), Bo = {
1033
+ }, Ss = /* @__PURE__ */ le(Co, [["__scopeId", "data-v-642edace"]]), Io = {
1051
1034
  __name: "DLayoutHeader",
1052
1035
  props: {
1053
1036
  fixed: {
@@ -1081,18 +1064,18 @@ const Eo = {
1081
1064
  useMinWidthLayout: Boolean
1082
1065
  },
1083
1066
  setup(e) {
1084
- const o = e, t = m(() => {
1085
- const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1067
+ const t = e, o = m(() => {
1068
+ const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = t, u = n ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1086
1069
  return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1087
1070
  });
1088
1071
  return (n, s) => (d(), f("header", {
1089
1072
  class: "d-layout-header",
1090
- style: H(t.value)
1073
+ style: H(o.value)
1091
1074
  }, [
1092
1075
  L(n.$slots, "default")
1093
1076
  ], 4));
1094
1077
  }
1095
- }, Mo = {
1078
+ }, Eo = {
1096
1079
  __name: "DLayoutTab",
1097
1080
  props: {
1098
1081
  fixed: {
@@ -1130,18 +1113,18 @@ const Eo = {
1130
1113
  useMinWidthLayout: Boolean
1131
1114
  },
1132
1115
  setup(e) {
1133
- const o = e, t = m(() => {
1134
- const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = o, h = n ? "fixed" : "static", b = o.useMinWidthLayout ? `min-width: ${l}px;` : "";
1116
+ const t = e, o = m(() => {
1117
+ const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = t, h = n ? "fixed" : "static", b = t.useMinWidthLayout ? `min-width: ${l}px;` : "";
1135
1118
  return `position:${h};top:${s}px;z-index:${a};${b}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1136
1119
  });
1137
1120
  return (n, s) => (d(), f("div", {
1138
1121
  class: "d-layout-tab",
1139
- style: H(t.value)
1122
+ style: H(o.value)
1140
1123
  }, [
1141
1124
  L(n.$slots, "default")
1142
1125
  ], 4));
1143
1126
  }
1144
- }, No = {
1127
+ }, Bo = {
1145
1128
  __name: "DLayoutFooter",
1146
1129
  props: {
1147
1130
  fixed: {
@@ -1175,18 +1158,18 @@ const Eo = {
1175
1158
  useMinWidthLayout: Boolean
1176
1159
  },
1177
1160
  setup(e) {
1178
- const o = e, t = m(() => {
1179
- const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1161
+ const t = e, o = m(() => {
1162
+ const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = t, u = n ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1180
1163
  return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1181
1164
  });
1182
1165
  return (n, s) => (d(), f("footer", {
1183
1166
  class: "d-layout-footer",
1184
- style: H(t.value)
1167
+ style: H(o.value)
1185
1168
  }, [
1186
1169
  L(n.$slots, "default")
1187
1170
  ], 4));
1188
1171
  }
1189
- }, Ro = {
1172
+ }, Mo = {
1190
1173
  __name: "DLayoutSidebar",
1191
1174
  props: {
1192
1175
  zIndex: {
@@ -1215,18 +1198,18 @@ const Eo = {
1215
1198
  }
1216
1199
  },
1217
1200
  setup(e) {
1218
- const o = e, t = m(() => {
1219
- const { zIndex: n, width: s, paddingTop: a, transitionDuration: l, transitionTimingFunction: r } = o;
1201
+ const t = e, o = m(() => {
1202
+ const { zIndex: n, width: s, paddingTop: a, transitionDuration: l, transitionTimingFunction: r } = t;
1220
1203
  return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${r};`;
1221
1204
  });
1222
1205
  return (n, s) => (d(), f("aside", {
1223
1206
  class: "d-layout-sidebar",
1224
- style: H(t.value)
1207
+ style: H(o.value)
1225
1208
  }, [
1226
1209
  L(n.$slots, "default")
1227
1210
  ], 4));
1228
1211
  }
1229
- }, Oo = {
1212
+ }, No = {
1230
1213
  __name: "DLayoutContent",
1231
1214
  props: {
1232
1215
  paddingTop: {
@@ -1252,23 +1235,23 @@ const Eo = {
1252
1235
  }
1253
1236
  },
1254
1237
  setup(e) {
1255
- const o = e, t = m(() => {
1256
- const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: l, transitionTimingFunction: r } = o, i = `overflow:${o.overflowHidden ? "hidden" : "visible"};`;
1238
+ const t = e, o = m(() => {
1239
+ const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: l, transitionTimingFunction: r } = t, i = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1257
1240
  return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
1258
1241
  });
1259
1242
  return (n, s) => (d(), f("main", {
1260
- style: H(t.value),
1243
+ style: H(o.value),
1261
1244
  class: "d-layout-content"
1262
1245
  }, [
1263
1246
  L(n.$slots, "default")
1264
1247
  ], 4));
1265
1248
  }
1266
1249
  };
1267
- function Ao(e) {
1268
- const o = S(0), t = m(() => `transform: translateX(${-o.value}px);`);
1250
+ function Ro(e) {
1251
+ const t = w(0), o = m(() => `transform: translateX(${-t.value}px);`);
1269
1252
  let n = !1;
1270
1253
  function s(u) {
1271
- o.value = u;
1254
+ t.value = u;
1272
1255
  }
1273
1256
  function a() {
1274
1257
  var u;
@@ -1287,13 +1270,13 @@ function Ao(e) {
1287
1270
  function c() {
1288
1271
  l(), r(), n = !0;
1289
1272
  }
1290
- return ft(e, (u) => {
1273
+ return pt(e, (u) => {
1291
1274
  u ? c() : i();
1292
1275
  }, { immediate: !0 }), Tt(() => {
1293
1276
  i();
1294
- }), t;
1277
+ }), o;
1295
1278
  }
1296
- const Ho = 1001, Vo = 999, zo = 998, Ts = {
1279
+ const Oo = 1001, Ao = 999, Ho = 998, Ts = {
1297
1280
  __name: "DLayoutAdmin",
1298
1281
  props: {
1299
1282
  mode: {
@@ -1383,43 +1366,43 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1383
1366
  }
1384
1367
  },
1385
1368
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1386
- setup(e, { emit: o }) {
1387
- const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = Ao(s), l = m(() => t.fixedHeaderAndTab ? a.value : ""), r = m(() => t.fixedFooter ? a.value : ""), i = m(() => {
1388
- const { transitionDuration: y, transitionTimingFunction: O } = t;
1369
+ setup(e, { emit: t }) {
1370
+ const o = e, n = m(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), s = m(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ro(s), l = m(() => o.fixedHeaderAndTab ? a.value : ""), r = m(() => o.fixedFooter ? a.value : ""), i = m(() => {
1371
+ const { transitionDuration: y, transitionTimingFunction: O } = o;
1389
1372
  return {
1390
1373
  transitionDuration: y,
1391
1374
  transitionTimingFunction: O
1392
1375
  };
1393
- }), c = m(() => t.mode === "vertical"), u = m(() => t.isMobile || c.value ? 1003 : 1e3), h = m({
1376
+ }), c = m(() => o.mode === "vertical"), u = m(() => o.isMobile || c.value ? 1003 : 1e3), h = m({
1394
1377
  get() {
1395
- return t.sidebarCollapse;
1378
+ return o.sidebarCollapse;
1396
1379
  },
1397
1380
  set(y) {
1398
- o("update:sidebar-collapse", y);
1381
+ t("update:sidebar-collapse", y);
1399
1382
  }
1400
1383
  });
1401
1384
  function b() {
1402
- o("sidebar-mask-click");
1385
+ t("sidebar-mask-click");
1403
1386
  }
1404
- const T = m(() => t.isMobile && !h.value), N = m(() => {
1405
- const { transitionDuration: y, transitionTimingFunction: O } = t;
1406
- return `background-color:${t.maskBg};transition-duration:${y}ms;transition-timing-function:${O};`;
1407
- }), k = m(() => {
1408
- const { sidebarWidth: y, sidebarCollapsedWidth: O } = t, W = t.isMobile ? 0 : O, P = h.value ? W : y;
1409
- return t.sidebarVisible ? P : 0;
1410
- }), F = m(() => t.isMobile ? 0 : k.value), R = m(() => c.value ? F.value : 0), C = m(
1411
- () => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
1387
+ const S = m(() => o.isMobile && !h.value), N = m(() => {
1388
+ const { transitionDuration: y, transitionTimingFunction: O } = o;
1389
+ return `background-color:${o.maskBg};transition-duration:${y}ms;transition-timing-function:${O};`;
1390
+ }), $ = m(() => {
1391
+ const { sidebarWidth: y, sidebarCollapsedWidth: O } = o, W = o.isMobile ? 0 : O, P = h.value ? W : y;
1392
+ return o.sidebarVisible ? P : 0;
1393
+ }), F = m(() => o.isMobile ? 0 : $.value), R = m(() => c.value ? F.value : 0), C = m(
1394
+ () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1412
1395
  ), E = m(() => {
1413
1396
  let y = 0;
1414
- return t.fixedHeaderAndTab && (t.headerVisible && (y += t.headerHeight), t.tabVisible && (y += t.tabHeight)), y;
1415
- }), B = m(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1397
+ return o.fixedHeaderAndTab && (o.headerVisible && (y += o.headerHeight), o.tabVisible && (y += o.tabHeight)), y;
1398
+ }), B = m(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
1416
1399
  return (y, O) => (d(), f("div", {
1417
1400
  class: "d-layout",
1418
1401
  style: H(n.value)
1419
1402
  }, [
1420
- e.headerVisible ? (d(), x(Bo, ce({ key: 0 }, i.value, {
1403
+ e.headerVisible ? (d(), x(Io, ue({ key: 0 }, i.value, {
1421
1404
  fixed: e.fixedHeaderAndTab,
1422
- "z-index": Ho,
1405
+ "z-index": Oo,
1423
1406
  "min-width": e.minWidth,
1424
1407
  height: e.headerHeight,
1425
1408
  "padding-left": R.value,
@@ -1429,10 +1412,10 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1429
1412
  L(y.$slots, "header")
1430
1413
  ]),
1431
1414
  _: 3
1432
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0),
1433
- e.tabVisible ? (d(), x(Mo, ce({ key: 1 }, i.value, {
1415
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1416
+ e.tabVisible ? (d(), x(Eo, ue({ key: 1 }, i.value, {
1434
1417
  fixed: e.fixedHeaderAndTab,
1435
- "z-index": Vo,
1418
+ "z-index": Ao,
1436
1419
  "min-width": e.minWidth,
1437
1420
  top: e.headerHeight,
1438
1421
  height: e.tabHeight,
@@ -1443,24 +1426,24 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1443
1426
  L(y.$slots, "tab")
1444
1427
  ]),
1445
1428
  _: 3
1446
- }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : $("", !0),
1447
- e.sidebarVisible ? (d(), x(Ro, ce({ key: 2 }, i.value, {
1429
+ }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1430
+ e.sidebarVisible ? (d(), x(Mo, ue({ key: 2 }, i.value, {
1448
1431
  "z-index": u.value,
1449
- width: k.value,
1432
+ width: $.value,
1450
1433
  "padding-top": C.value
1451
1434
  }), {
1452
1435
  default: I(() => [
1453
1436
  L(y.$slots, "sidebar")
1454
1437
  ]),
1455
1438
  _: 3
1456
- }, 16, ["z-index", "width", "padding-top"])) : $("", !0),
1457
- T.value ? (d(), f("div", {
1439
+ }, 16, ["z-index", "width", "padding-top"])) : k("", !0),
1440
+ S.value ? (d(), f("div", {
1458
1441
  key: 3,
1459
1442
  class: "d-layout-sidebar-mask",
1460
1443
  style: H(N.value),
1461
1444
  onClick: b
1462
- }, null, 4)) : $("", !0),
1463
- ie(Oo, ce(i.value, {
1445
+ }, null, 4)) : k("", !0),
1446
+ oe(No, ue(i.value, {
1464
1447
  "padding-top": E.value,
1465
1448
  "padding-bottom": B.value,
1466
1449
  "padding-left": F.value,
@@ -1471,9 +1454,9 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1471
1454
  ]),
1472
1455
  _: 3
1473
1456
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1474
- e.footerVisible ? (d(), x(No, ce({ key: 4 }, i.value, {
1457
+ e.footerVisible ? (d(), x(Bo, ue({ key: 4 }, i.value, {
1475
1458
  fixed: e.fixedFooter,
1476
- "z-index": zo,
1459
+ "z-index": Ho,
1477
1460
  "min-width": e.minWidth,
1478
1461
  height: e.footerHeight,
1479
1462
  "padding-left": F.value,
@@ -1483,26 +1466,26 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1483
1466
  L(y.$slots, "footer")
1484
1467
  ]),
1485
1468
  _: 3
1486
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0)
1469
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
1487
1470
  ], 4));
1488
1471
  }
1489
- }, ue = {
1490
- state: Oe({
1472
+ }, pe = {
1473
+ state: Re({
1491
1474
  theme: "dark"
1492
1475
  }),
1493
1476
  getters: {
1494
1477
  theme() {
1495
- return ue.state.theme;
1478
+ return pe.state.theme;
1496
1479
  }
1497
1480
  },
1498
1481
  mutations: {
1499
1482
  setTheme(e) {
1500
- ue.state.theme = e, document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(e);
1483
+ pe.state.theme = e, document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(e);
1501
1484
  }
1502
1485
  },
1503
1486
  actions: {
1504
1487
  toggleTheme() {
1505
- ue.state.theme = ue.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(ue.state.theme);
1488
+ 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);
1506
1489
  }
1507
1490
  }
1508
1491
  }, Ds = {
@@ -1514,8 +1497,8 @@ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1514
1497
  }
1515
1498
  },
1516
1499
  setup(e) {
1517
- const o = e;
1518
- return ue.mutations.setTheme(o.theme), (t, n) => L(t.$slots, "default");
1500
+ const t = e;
1501
+ return pe.mutations.setTheme(t.theme), (o, n) => L(o.$slots, "default");
1519
1502
  }
1520
1503
  };
1521
1504
  const Ls = {
@@ -1531,12 +1514,12 @@ const Ls = {
1531
1514
  }
1532
1515
  },
1533
1516
  setup(e) {
1534
- const o = e;
1535
- Ae((a) => ({
1536
- e35a6f9a: t.value,
1517
+ const t = e;
1518
+ Oe((a) => ({
1519
+ e35a6f9a: o.value,
1537
1520
  e35a6f98: n.value
1538
1521
  }));
1539
- const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible"), s = (a) => {
1522
+ const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible"), s = (a) => {
1540
1523
  document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
1541
1524
  };
1542
1525
  return fe(() => {
@@ -1546,7 +1529,7 @@ const Ls = {
1546
1529
  ]));
1547
1530
  }
1548
1531
  };
1549
- const Fo = {
1532
+ const Vo = {
1550
1533
  __name: "DScroll",
1551
1534
  props: {
1552
1535
  autoHide: {
@@ -1563,19 +1546,19 @@ const Fo = {
1563
1546
  }
1564
1547
  },
1565
1548
  setup(e) {
1566
- const o = e;
1567
- Ae((s) => ({
1568
- c07fa29a: t.value,
1549
+ const t = e;
1550
+ Oe((s) => ({
1551
+ c07fa29a: o.value,
1569
1552
  c07fa298: n.value
1570
1553
  }));
1571
- const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible");
1554
+ const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible");
1572
1555
  return (s, a) => (d(), f("div", {
1573
- class: w(o.autoHide ? "d-scroll-hide" : "d-scroll")
1556
+ class: D(t.autoHide ? "d-scroll-hide" : "d-scroll")
1574
1557
  }, [
1575
1558
  L(s.$slots, "default", {}, void 0, !0)
1576
1559
  ], 2));
1577
1560
  }
1578
- }, Cs = /* @__PURE__ */ le(Fo, [["__scopeId", "data-v-d50b3609"]]), Wo = { class: "modal-content" }, Po = { class: "modal-header" }, jo = { class: "modal-title" }, Xo = { class: "modal-body" }, Yo = { class: "modal-footer" }, vt = {
1561
+ }, Cs = /* @__PURE__ */ le(Vo, [["__scopeId", "data-v-d50b3609"]]), zo = { class: "modal-content" }, Fo = { class: "modal-header" }, Wo = { class: "modal-title" }, Po = { class: "modal-body" }, jo = { class: "modal-footer" }, vt = {
1579
1562
  __name: "DModal",
1580
1563
  props: {
1581
1564
  show: Boolean,
@@ -1585,23 +1568,23 @@ const Fo = {
1585
1568
  // максимальная ширина диалога 500px, 100% и т.п.
1586
1569
  },
1587
1570
  emits: ["open", "close"],
1588
- setup(e, { expose: o, emit: t }) {
1589
- const n = e, s = S(null), a = S(!1);
1571
+ setup(e, { expose: t, emit: o }) {
1572
+ const n = e, s = w(null), a = w(!1);
1590
1573
  a.value = n == null ? void 0 : n.show;
1591
1574
  const l = () => {
1592
- a.value = !0, t("open", s);
1575
+ a.value = !0, o("open", s);
1593
1576
  }, r = () => {
1594
- a.value = !1, t("close", s);
1577
+ a.value = !1, o("close", s);
1595
1578
  };
1596
- return o({
1579
+ return t({
1597
1580
  show: l,
1598
1581
  hide: r
1599
1582
  }), (i, c) => {
1600
- const u = Re("keydown");
1601
- return d(), x(ct, { to: "body" }, [
1602
- ie(Ne, { name: "fade" }, {
1583
+ const u = Ne("keydown");
1584
+ return d(), x(dt, { to: "body" }, [
1585
+ oe(Me, { name: "fade" }, {
1603
1586
  default: I(() => [
1604
- a.value ? J((d(), f("div", {
1587
+ a.value ? te((d(), f("div", {
1605
1588
  key: 0,
1606
1589
  ref_key: "modalRef",
1607
1590
  ref: s,
@@ -1611,50 +1594,50 @@ const Fo = {
1611
1594
  class: "modal-dialog",
1612
1595
  style: H({ width: n.width, maxWidth: n.maxWidth })
1613
1596
  }, [
1614
- _("div", Wo, [
1615
- _("div", Po, [
1616
- _("h5", jo, [
1597
+ _("div", zo, [
1598
+ _("div", Fo, [
1599
+ _("h5", Wo, [
1617
1600
  L(i.$slots, "modal-title")
1618
1601
  ])
1619
1602
  ]),
1620
- _("div", Xo, [
1603
+ _("div", Po, [
1621
1604
  L(i.$slots, "default")
1622
1605
  ]),
1623
- _("div", Yo, [
1606
+ _("div", jo, [
1624
1607
  L(i.$slots, "modal-footer")
1625
1608
  ])
1626
1609
  ])
1627
1610
  ], 4)
1628
1611
  ])), [
1629
1612
  [u, r, "Escape"]
1630
- ]) : $("", !0)
1613
+ ]) : k("", !0)
1631
1614
  ]),
1632
1615
  _: 3
1633
1616
  })
1634
1617
  ]);
1635
1618
  };
1636
1619
  }
1637
- }, de = Dt();
1638
- function Me(e) {
1639
- e === void 0 && (e = de.value.comp.returnValue()), de.value.resolve(e), de.value = null;
1620
+ }, ce = Dt();
1621
+ function Be(e) {
1622
+ e === void 0 && (e = ce.value.comp.returnValue()), ce.value.resolve(e), ce.value = null;
1640
1623
  }
1641
- function yt(e, o, t = "default") {
1624
+ function yt(e, t, o = "default") {
1642
1625
  return new Promise((n) => {
1643
- de.value = {
1626
+ ce.value = {
1644
1627
  dialog: e,
1645
- props: o,
1646
- wrapper: t,
1628
+ props: t,
1629
+ wrapper: o,
1647
1630
  resolve: n
1648
1631
  };
1649
1632
  });
1650
1633
  }
1651
- var Uo = (e, o) => {
1652
- const t = e.__vccOpts || e;
1653
- for (const [n, s] of o)
1654
- t[n] = s;
1655
- return t;
1634
+ var Xo = (e, t) => {
1635
+ const o = e.__vccOpts || e;
1636
+ for (const [n, s] of t)
1637
+ o[n] = s;
1638
+ return o;
1656
1639
  };
1657
- const qo = Lt({
1640
+ const Yo = Lt({
1658
1641
  name: "DialogWrapper",
1659
1642
  components: {},
1660
1643
  props: {
@@ -1665,46 +1648,46 @@ const qo = Lt({
1665
1648
  transitionAttrs: Object
1666
1649
  },
1667
1650
  setup() {
1668
- const e = S();
1669
- return ft(e, () => {
1670
- de.value && (de.value.comp = e.value);
1651
+ const e = w();
1652
+ return pt(e, () => {
1653
+ ce.value && (ce.value.comp = e.value);
1671
1654
  }), {
1672
- dialogRef: de,
1655
+ dialogRef: ce,
1673
1656
  dialogInstance: e
1674
1657
  };
1675
1658
  }
1676
1659
  });
1677
- function Go(e, o, t, n, s, a) {
1678
- return d(), x(Ne, Ct(It(e.transitionAttrs)), {
1660
+ function Uo(e, t, o, n, s, a) {
1661
+ return d(), x(Me, Ct(It(e.transitionAttrs)), {
1679
1662
  default: I(() => [
1680
- e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ce({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : $("", !0)
1663
+ e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1681
1664
  ]),
1682
1665
  _: 1
1683
1666
  }, 16);
1684
1667
  }
1685
- var Zo = /* @__PURE__ */ Uo(qo, [["render", Go]]);
1686
- const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Jo = {
1668
+ var qo = /* @__PURE__ */ Xo(Yo, [["render", Uo]]);
1669
+ const Go = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Zo = {
1687
1670
  __name: "DAlertDialog",
1688
1671
  props: {
1689
1672
  title: String,
1690
1673
  message: String
1691
1674
  },
1692
- setup(e, { expose: o }) {
1693
- const t = e;
1694
- return o({
1675
+ setup(e, { expose: t }) {
1676
+ const o = e;
1677
+ return t({
1695
1678
  returnValue: () => !0
1696
1679
  }), (s, a) => (d(), f("div", null, [
1697
- ie(vt, { show: !0 }, {
1680
+ oe(vt, { show: !0 }, {
1698
1681
  "modal-title": I(() => [
1699
- K(A(t.title), 1)
1682
+ K(A(o.title), 1)
1700
1683
  ]),
1701
1684
  default: I(() => [
1702
- K(A(t.message), 1)
1685
+ K(A(o.message), 1)
1703
1686
  ]),
1704
1687
  "modal-footer": I(() => [
1705
- _("div", Ko, [
1706
- ie(se, {
1707
- onClick: a[0] || (a[0] = (l) => M(Me)())
1688
+ _("div", Go, [
1689
+ oe(ae, {
1690
+ onClick: a[0] || (a[0] = (l) => M(Be)())
1708
1691
  }, {
1709
1692
  default: I(() => [
1710
1693
  K("Закрыть")
@@ -1717,37 +1700,37 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1717
1700
  })
1718
1701
  ]));
1719
1702
  }
1720
- }, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, en = {
1703
+ }, Ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Jo = {
1721
1704
  __name: "DConfirmDialog",
1722
1705
  props: {
1723
1706
  title: String,
1724
1707
  message: String
1725
1708
  },
1726
- setup(e, { expose: o }) {
1727
- const t = e;
1728
- return o({
1709
+ setup(e, { expose: t }) {
1710
+ const o = e;
1711
+ return t({
1729
1712
  returnValue: () => !0
1730
1713
  }), (s, a) => (d(), f("div", null, [
1731
- ie(vt, { show: !0 }, {
1714
+ oe(vt, { show: !0 }, {
1732
1715
  "modal-title": I(() => [
1733
- K(A(t.title), 1)
1716
+ K(A(o.title), 1)
1734
1717
  ]),
1735
1718
  default: I(() => [
1736
- K(A(t.message), 1)
1719
+ K(A(o.message), 1)
1737
1720
  ]),
1738
1721
  "modal-footer": I(() => [
1739
- _("div", Qo, [
1740
- ie(se, {
1741
- onClick: a[0] || (a[0] = (l) => M(Me)())
1722
+ _("div", Ko, [
1723
+ oe(ae, {
1724
+ onClick: a[0] || (a[0] = (l) => M(Be)())
1742
1725
  }, {
1743
1726
  default: I(() => [
1744
1727
  K("Да")
1745
1728
  ]),
1746
1729
  _: 1
1747
1730
  }),
1748
- ie(se, {
1731
+ oe(ae, {
1749
1732
  class: "button-red",
1750
- onClick: a[1] || (a[1] = (l) => M(Me)(!1))
1733
+ onClick: a[1] || (a[1] = (l) => M(Be)(!1))
1751
1734
  }, {
1752
1735
  default: I(() => [
1753
1736
  K("Нет")
@@ -1760,7 +1743,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1760
1743
  })
1761
1744
  ]));
1762
1745
  }
1763
- }, tn = { class: "dropdown" }, Is = {
1746
+ }, Qo = { class: "dropdown" }, Is = {
1764
1747
  __name: "DDropdown",
1765
1748
  props: {
1766
1749
  class: String,
@@ -1779,47 +1762,47 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1779
1762
  }
1780
1763
  },
1781
1764
  emits: ["select", "click"],
1782
- setup(e, { expose: o, emit: t }) {
1783
- const n = e, s = De(), a = S(null), l = S(null), r = S(0), i = S(0), c = (T) => {
1784
- if (t("click", T), a.value.isShowed()) {
1765
+ setup(e, { expose: t, emit: o }) {
1766
+ const n = e, s = De(), a = w(null), l = w(null), r = w(0), i = w(0), c = (S) => {
1767
+ if (o("click", S), a.value.isShowed()) {
1785
1768
  a.value.hide();
1786
1769
  return;
1787
1770
  }
1788
- a.value.show(), ut(() => {
1789
- const N = a.value.elementSize(), k = l.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1790
- r.value = F - (k.x + k.width) < N.width ? k.left - N.width + k.width : k.left, i.value = R - (k.y + k.height) < N.height ? k.top - N.height - 5 : k.height + k.top + 5;
1771
+ a.value.show(), ct(() => {
1772
+ const N = a.value.elementSize(), $ = l.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1773
+ r.value = F - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = R - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
1791
1774
  });
1792
- }, u = (T) => {
1793
- t("select", T);
1794
- }, h = m(() => (console.log(r.value, i.value), { left: r.value + "px", top: i.value + "px", ...n.menuStyle }));
1795
- o({
1775
+ }, u = (S) => {
1776
+ o("select", S);
1777
+ }, h = m(() => ({ left: r.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1778
+ t({
1796
1779
  show: c
1797
1780
  });
1798
- const b = (T) => !!s[T];
1799
- return (T, N) => (d(), f("div", tn, [
1800
- b("default") ? (d(), x(se, {
1781
+ const b = (S) => !!s[S];
1782
+ return (S, N) => (d(), f("div", Qo, [
1783
+ b("default") ? (d(), x(ae, {
1801
1784
  key: 0,
1802
1785
  ref_key: "buttonRef",
1803
1786
  ref: l,
1804
- class: w(n.class),
1787
+ class: D(n.class),
1805
1788
  icon: n.icon,
1806
1789
  onClick: Z(c, ["stop", "prevent"]),
1807
1790
  type: n.type
1808
1791
  }, {
1809
1792
  default: I(() => [
1810
- L(T.$slots, "default")
1793
+ L(S.$slots, "default")
1811
1794
  ]),
1812
1795
  _: 3
1813
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(se, {
1796
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(ae, {
1814
1797
  key: 1,
1815
1798
  ref_key: "buttonRef",
1816
1799
  ref: l,
1817
- class: w(n.class),
1800
+ class: D(n.class),
1818
1801
  icon: n.icon,
1819
1802
  onClick: Z(c, ["stop", "prevent"]),
1820
1803
  type: n.type
1821
1804
  }, null, 8, ["class", "icon", "onClick", "type"])),
1822
- ie(gt, {
1805
+ oe(ht, {
1823
1806
  ref_key: "dMenuRef",
1824
1807
  ref: a,
1825
1808
  items: n.items,
@@ -1833,36 +1816,36 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1833
1816
  }, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
1834
1817
  ]));
1835
1818
  }
1836
- }, on = {}, nn = { class: "d-panel" };
1837
- function sn(e, o) {
1838
- return d(), f("div", nn, [
1819
+ }, en = {}, tn = { class: "d-panel" };
1820
+ function on(e, t) {
1821
+ return d(), f("div", tn, [
1839
1822
  L(e.$slots, "default")
1840
1823
  ]);
1841
1824
  }
1842
- const an = /* @__PURE__ */ le(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Es = {
1825
+ const nn = /* @__PURE__ */ le(en, [["render", on]]), sn = { class: "card-header" }, an = { class: "modal-title" }, ln = { class: "card-body" }, rn = { class: "card-footer" }, Es = {
1843
1826
  __name: "DCard",
1844
1827
  setup(e) {
1845
- return (o, t) => (d(), x(an, { class: "d-card" }, {
1828
+ return (t, o) => (d(), x(nn, { class: "d-card" }, {
1846
1829
  default: I(() => [
1847
- _("div", ln, [
1848
- _("h5", rn, [
1849
- L(o.$slots, "title")
1830
+ _("div", sn, [
1831
+ _("h5", an, [
1832
+ L(t.$slots, "title")
1850
1833
  ])
1851
1834
  ]),
1852
- _("div", dn, [
1853
- L(o.$slots, "default")
1835
+ _("div", ln, [
1836
+ L(t.$slots, "default")
1854
1837
  ]),
1855
- _("div", cn, [
1856
- L(o.$slots, "footer")
1838
+ _("div", rn, [
1839
+ L(t.$slots, "footer")
1857
1840
  ])
1858
1841
  ]),
1859
1842
  _: 3
1860
1843
  }));
1861
1844
  }
1862
- }, un = /* @__PURE__ */ new Map();
1863
- class pn {
1864
- constructor(o, t, n) {
1865
- this.remaining = t, this.callback = o, this.notifyItem = n, this.resume();
1845
+ }, dn = /* @__PURE__ */ new Map();
1846
+ class cn {
1847
+ constructor(t, o, n) {
1848
+ this.remaining = o, this.callback = t, this.notifyItem = n, this.resume();
1866
1849
  }
1867
1850
  pause() {
1868
1851
  clearTimeout(this.notifyItem.timer), this.remaining -= Date.now() - this.start;
@@ -1871,7 +1854,7 @@ class pn {
1871
1854
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1872
1855
  }
1873
1856
  }
1874
- const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1857
+ const Ie = "[-+]?[0-9]*.?[0-9]+", nt = [
1875
1858
  {
1876
1859
  name: "px",
1877
1860
  regexp: new RegExp(`^${Ie}px$`)
@@ -1888,17 +1871,17 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1888
1871
  name: "px",
1889
1872
  regexp: new RegExp(`^${Ie}$`)
1890
1873
  }
1891
- ], fn = (e) => {
1874
+ ], un = (e) => {
1892
1875
  if (e === "auto")
1893
1876
  return {
1894
1877
  type: e,
1895
1878
  value: 0
1896
1879
  };
1897
- for (let o = 0; o < st.length; o++) {
1898
- const t = st[o];
1899
- if (t.regexp.test(e))
1880
+ for (let t = 0; t < nt.length; t++) {
1881
+ const o = nt[t];
1882
+ if (o.regexp.test(e))
1900
1883
  return {
1901
- type: t.name,
1884
+ type: o.name,
1902
1885
  value: parseFloat(e)
1903
1886
  };
1904
1887
  }
@@ -1906,24 +1889,24 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1906
1889
  type: "",
1907
1890
  value: e
1908
1891
  };
1909
- }, mn = (e) => {
1892
+ }, pn = (e) => {
1910
1893
  switch (typeof e) {
1911
1894
  case "number":
1912
1895
  return { type: "px", value: e };
1913
1896
  case "string":
1914
- return fn(e);
1897
+ return un(e);
1915
1898
  default:
1916
1899
  return { type: "", value: e };
1917
1900
  }
1918
- }, at = {
1901
+ }, st = {
1919
1902
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1920
1903
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1921
- }, hn = ((e) => () => e++)(0), gn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), vn = (e) => {
1922
- typeof e == "string" && (e = gn(e));
1923
- let o = null, t = null;
1904
+ }, fn = ((e) => () => e++)(0), mn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), hn = (e) => {
1905
+ typeof e == "string" && (e = mn(e));
1906
+ let t = null, o = null;
1924
1907
  return e.forEach((n) => {
1925
- at.y.has(n) && (t = n), at.x.has(n) && (o = n);
1926
- }), { x: o, y: t };
1908
+ st.y.has(n) && (o = n), st.x.has(n) && (t = n);
1909
+ }), { x: t, y: o };
1927
1910
  }, Ee = {
1928
1911
  position: ["top", "right"],
1929
1912
  cssAnimation: "fade",
@@ -1937,21 +1920,21 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1937
1920
  opacity: [0, 1]
1938
1921
  }
1939
1922
  }
1940
- }, yn = {
1923
+ }, gn = {
1941
1924
  __name: "VelocityGroup",
1942
1925
  emits: ["enter", "leave", "after-leave"],
1943
- setup(e, { emit: o }) {
1944
- const t = (a, l) => {
1945
- o("enter", a, l);
1926
+ setup(e, { emit: t }) {
1927
+ const o = (a, l) => {
1928
+ t("enter", a, l);
1946
1929
  }, n = (a, l) => {
1947
- o("leave", a, l);
1930
+ t("leave", a, l);
1948
1931
  }, s = () => {
1949
- o("after-leave");
1932
+ t("after-leave");
1950
1933
  };
1951
- return (a, l) => (d(), x(mt, {
1934
+ return (a, l) => (d(), x(ft, {
1952
1935
  tag: "span",
1953
1936
  css: !1,
1954
- onEnter: t,
1937
+ onEnter: o,
1955
1938
  onLeave: n,
1956
1939
  onAfterLeave: s
1957
1940
  }, {
@@ -1961,7 +1944,7 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1961
1944
  _: 3
1962
1945
  }));
1963
1946
  }
1964
- }, _n = /* @__PURE__ */ Object.assign({
1947
+ }, vn = /* @__PURE__ */ Object.assign({
1965
1948
  inheritAttrs: !1
1966
1949
  }, {
1967
1950
  __name: "CssGroup",
@@ -1969,21 +1952,21 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1969
1952
  name: String
1970
1953
  },
1971
1954
  setup(e) {
1972
- const o = e;
1973
- return (t, n) => (d(), x(mt, {
1955
+ const t = e;
1956
+ return (o, n) => (d(), x(ft, {
1974
1957
  tag: "span",
1975
- name: o.name
1958
+ name: t.name
1976
1959
  }, {
1977
1960
  default: I(() => [
1978
- L(t.$slots, "default")
1961
+ L(o.$slots, "default")
1979
1962
  ]),
1980
1963
  _: 3
1981
1964
  }, 8, ["name"]));
1982
1965
  }
1983
- }), bn = ["data-id"], xn = ["onClick"], $n = ["innerHTML"], kn = ["innerHTML"], wn = {
1966
+ }), yn = ["data-id"], _n = ["onClick"], bn = ["innerHTML"], xn = ["innerHTML"], $n = {
1984
1967
  key: 0,
1985
1968
  class: "d-notification-title"
1986
- }, Sn = { class: "notification-content" }, Bs = {
1969
+ }, kn = { class: "notification-content" }, Bs = {
1987
1970
  __name: "DNotificationProvider",
1988
1971
  props: {
1989
1972
  group: {
@@ -2052,76 +2035,76 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
2052
2035
  }
2053
2036
  },
2054
2037
  emits: ["click", "destroy", "start"],
2055
- setup(e, { emit: o }) {
2056
- const t = e, n = {
2038
+ setup(e, { emit: t }) {
2039
+ const o = e, n = {
2057
2040
  IDLE: 0,
2058
2041
  DESTROYED: 2
2059
- }, s = S([]), a = S(null), l = S(un.get("velocity")), r = m(() => t.animationType === "velocity"), i = m(() => r.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(t.width)), h = m(() => {
2060
- const { x: p, y: z } = vn(t.position), D = u.value.value, q = u.value.type, oe = {
2061
- width: D + q
2042
+ }, s = w([]), a = w(null), l = w(dn.get("velocity")), r = m(() => o.animationType === "velocity"), i = m(() => r.value ? gn : vn), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => pn(o.width)), h = m(() => {
2043
+ const { x: p, y: z } = hn(o.position), T = u.value.value, q = u.value.type, ne = {
2044
+ width: T + q
2062
2045
  };
2063
- return z && (oe[z] = "0px"), p && (p === "center" ? oe.left = `calc(50% - ${+D / 2}${q})` : oe[p] = "0px"), oe;
2064
- }), b = m(() => "bottom" in h.value), T = (p) => {
2065
- o("click", p), t.closeOnClick && B(p);
2046
+ return z && (ne[z] = "0px"), p && (p === "center" ? ne.left = `calc(50% - ${+T / 2}${q})` : ne[p] = "0px"), ne;
2047
+ }), b = m(() => "bottom" in h.value), S = (p) => {
2048
+ t("click", p), o.closeOnClick && B(p);
2066
2049
  }, N = () => {
2067
2050
  var p;
2068
- t.pauseOnHover && ((p = a.value) == null || p.pause());
2069
- }, k = () => {
2051
+ o.pauseOnHover && ((p = a.value) == null || p.pause());
2052
+ }, $ = () => {
2070
2053
  var p;
2071
- t.pauseOnHover && ((p = a.value) == null || p.resume());
2054
+ o.pauseOnHover && ((p = a.value) == null || p.resume());
2072
2055
  }, F = (p) => {
2073
- if (p.group || (p.group = ""), p.data || (p.data = {}), t.group !== p.group)
2056
+ if (p.group || (p.group = ""), p.data || (p.data = {}), o.group !== p.group)
2074
2057
  return;
2075
2058
  if (p.clean || p.clear) {
2076
2059
  O();
2077
2060
  return;
2078
2061
  }
2079
- const z = typeof p.duration == "number" ? p.duration : t.duration, D = typeof p.speed == "number" ? p.speed : t.speed, q = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : t.ignoreDuplicates, { title: oe, text: ge, type: ve, data: ye, id: _e } = p, Q = {
2080
- id: _e || hn(),
2081
- title: oe,
2062
+ const z = typeof p.duration == "number" ? p.duration : o.duration, T = typeof p.speed == "number" ? p.speed : o.speed, q = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : o.ignoreDuplicates, { title: ne, text: ge, type: ve, data: ye, id: _e } = p, J = {
2063
+ id: _e || fn(),
2064
+ title: ne,
2082
2065
  text: ge,
2083
2066
  type: ve,
2084
2067
  state: n.IDLE,
2085
- speed: D,
2086
- length: z + 2 * D,
2068
+ speed: T,
2069
+ length: z + 2 * T,
2087
2070
  data: ye
2088
2071
  };
2089
- z >= 0 && (a.value = new pn(() => B(Q), Q.length, Q));
2090
- const be = t.reverse ? !b.value : b.value;
2072
+ z >= 0 && (a.value = new cn(() => B(J), J.length, J));
2073
+ const be = o.reverse ? !b.value : b.value;
2091
2074
  let re = -1;
2092
2075
  const xe = c.value.some((me) => me.title === p.title && me.text === p.text);
2093
- (!q || !xe) && (be ? (s.value.push(Q), o("start", Q), c.value.length > t.max && (re = 0)) : (s.value.unshift(Q), o("start", Q), c.value.length > t.max && (re = c.value.length - 1)), re !== -1 && B(c.value[re]));
2076
+ (!q || !xe) && (be ? (s.value.push(J), t("start", J), c.value.length > o.max && (re = 0)) : (s.value.unshift(J), t("start", J), c.value.length > o.max && (re = c.value.length - 1)), re !== -1 && B(c.value[re]));
2094
2077
  }, R = (p) => {
2095
2078
  y(p);
2096
2079
  }, C = (p) => [
2097
2080
  "d-notification-template",
2098
- t.classes,
2081
+ o.classes,
2099
2082
  p.type || ""
2100
2083
  ], E = (p) => r.value ? void 0 : { transition: `all ${p.speed}ms` }, B = (p) => {
2101
- clearTimeout(p.timer), p.state = n.DESTROYED, V(), o("destroy", p);
2084
+ clearTimeout(p.timer), p.state = n.DESTROYED, V(), t("destroy", p);
2102
2085
  }, y = (p) => {
2103
- const z = s.value.find((D) => D.id === p);
2086
+ const z = s.value.find((T) => T.id === p);
2104
2087
  z && B(z);
2105
2088
  }, O = () => {
2106
2089
  c.value.forEach(B);
2107
2090
  }, W = (p, z) => {
2108
2091
  var q;
2109
- const D = (q = t.animation) == null ? void 0 : q[p];
2110
- return typeof D == "function" ? D(z) : D;
2092
+ const T = (q = o.animation) == null ? void 0 : q[p];
2093
+ return typeof T == "function" ? T(z) : T;
2111
2094
  }, P = (p, z) => {
2112
2095
  if (!r.value)
2113
2096
  return;
2114
- const D = W("enter", p);
2115
- l.value(p, D, {
2116
- duration: t.speed,
2097
+ const T = W("enter", p);
2098
+ l.value(p, T, {
2099
+ duration: o.speed,
2117
2100
  complete: z
2118
2101
  });
2119
2102
  }, g = (p, z) => {
2120
2103
  if (!r.value)
2121
2104
  return;
2122
- const D = W("leave", p);
2123
- l.value(p, D, {
2124
- duration: t.speed,
2105
+ const T = W("leave", p);
2106
+ l.value(p, T, {
2107
+ duration: o.speed,
2125
2108
  complete: z
2126
2109
  });
2127
2110
  };
@@ -2141,46 +2124,46 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
2141
2124
  onAfterLeave: V
2142
2125
  }, {
2143
2126
  default: I(() => [
2144
- (d(!0), f(ae, null, he(c.value, (D) => (d(), f("div", {
2145
- key: D.id,
2127
+ (d(!0), f(ie, null, he(c.value, (T) => (d(), f("div", {
2128
+ key: T.id,
2146
2129
  class: "d-notification-wrapper",
2147
- style: H(E(D)),
2148
- "data-id": D.id,
2130
+ style: H(E(T)),
2131
+ "data-id": T.id,
2149
2132
  onMouseenter: N,
2150
- onMouseleave: k
2133
+ onMouseleave: $
2151
2134
  }, [
2152
2135
  L(p.$slots, "body", {
2153
- class: w([e.classes, D.type]),
2154
- item: D,
2155
- close: () => B(D)
2136
+ class: D([e.classes, T.type]),
2137
+ item: T,
2138
+ close: () => B(T)
2156
2139
  }, () => [
2157
2140
  _("div", {
2158
- class: w(C(D)),
2159
- onClick: (q) => T(D)
2141
+ class: D(C(T)),
2142
+ onClick: (q) => S(T)
2160
2143
  }, [
2161
- e.dangerouslySetInnerHtml ? (d(), f(ae, { key: 0 }, [
2162
- D.title ? (d(), f("div", {
2144
+ e.dangerouslySetInnerHtml ? (d(), f(ie, { key: 0 }, [
2145
+ T.title ? (d(), f("div", {
2163
2146
  key: 0,
2164
2147
  class: "d-notification-title",
2165
- innerHTML: D.timer
2166
- }, null, 8, $n)) : $("", !0),
2148
+ innerHTML: T.timer
2149
+ }, null, 8, bn)) : k("", !0),
2167
2150
  _("div", {
2168
2151
  class: "notification-content",
2169
- innerHTML: D.text
2170
- }, null, 8, kn)
2171
- ], 64)) : (d(), f(ae, { key: 1 }, [
2172
- D.title ? (d(), f("div", wn, A(D.title), 1)) : $("", !0),
2173
- _("div", Sn, A(D.text), 1)
2152
+ innerHTML: T.text
2153
+ }, null, 8, xn)
2154
+ ], 64)) : (d(), f(ie, { key: 1 }, [
2155
+ T.title ? (d(), f("div", $n, A(T.title), 1)) : k("", !0),
2156
+ _("div", kn, A(T.text), 1)
2174
2157
  ], 64))
2175
- ], 10, xn)
2158
+ ], 10, _n)
2176
2159
  ])
2177
- ], 44, bn))), 128))
2160
+ ], 44, yn))), 128))
2178
2161
  ]),
2179
2162
  _: 3
2180
2163
  }, 40, ["name"]))
2181
2164
  ], 4));
2182
2165
  }
2183
- }, Tn = { class: "d-info-progress-icon-container" }, Dn = { class: "d-info-progress-icon" }, Ln = { class: "d-info-progress-data-container" }, Cn = ["innerHTML"], Ms = {
2166
+ }, wn = { class: "d-info-progress-icon-container" }, Sn = { class: "d-info-progress-icon" }, Tn = { class: "d-info-progress-data-container" }, Dn = ["innerHTML"], Ms = {
2184
2167
  __name: "DInfoProgress",
2185
2168
  props: {
2186
2169
  style: [String, Object],
@@ -2190,38 +2173,38 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
2190
2173
  type: String
2191
2174
  },
2192
2175
  emits: ["click"],
2193
- setup(e, { emit: o }) {
2194
- const t = e, n = m(() => t.icon ? te.getters.getIcon(t.icon) : null);
2176
+ setup(e, { emit: t }) {
2177
+ const o = e, n = m(() => o.icon ? ee.getters.getIcon(o.icon) : null);
2195
2178
  return (s, a) => (d(), f("div", {
2196
- class: w(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2197
- style: H(t.style),
2179
+ class: D(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2180
+ style: H(o.style),
2198
2181
  onClick: a[0] || (a[0] = (l) => {
2199
- o("click", l);
2182
+ t("click", l);
2200
2183
  })
2201
2184
  }, [
2202
- _("div", Tn, [
2203
- _("div", Dn, [
2204
- t.icon ? (d(), x(X(pe), {
2185
+ _("div", wn, [
2186
+ _("div", Sn, [
2187
+ o.icon ? (d(), x(X(de), {
2205
2188
  key: 0,
2206
2189
  component: n.value,
2207
2190
  color: "inherit",
2208
2191
  size: 17
2209
- }, null, 8, ["component"])) : $("", !0)
2192
+ }, null, 8, ["component"])) : k("", !0)
2210
2193
  ])
2211
2194
  ]),
2212
- _("div", Ln, [
2195
+ _("div", Tn, [
2213
2196
  _("div", {
2214
2197
  class: "d-info-progress-line",
2215
- style: H("width: " + t.progress + "%;")
2198
+ style: H("width: " + o.progress + "%;")
2216
2199
  }, null, 4),
2217
2200
  _("div", {
2218
2201
  class: "d-info-progress-label",
2219
2202
  innerHTML: e.label
2220
- }, null, 8, Cn)
2203
+ }, null, 8, Dn)
2221
2204
  ])
2222
2205
  ], 6));
2223
2206
  }
2224
- }, In = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Bn = ["for"], Ns = {
2207
+ }, Ln = { class: "d-checkbox" }, Cn = ["id", "checked", "disabled"], In = ["for"], Ns = {
2225
2208
  __name: "DCheckbox",
2226
2209
  props: {
2227
2210
  label: String,
@@ -2234,45 +2217,45 @@ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
2234
2217
  checked: Boolean
2235
2218
  },
2236
2219
  emits: ["update:modelValue"],
2237
- setup(e, { emit: o }) {
2238
- const t = e, s = pt().uid, a = m({
2239
- get: () => t.modelValue,
2220
+ setup(e, { emit: t }) {
2221
+ const o = e, s = ut().uid, a = m({
2222
+ get: () => o.modelValue,
2240
2223
  set: (l) => {
2241
- o("update:modelValue", l);
2224
+ t("update:modelValue", l);
2242
2225
  }
2243
2226
  });
2244
- return (l, r) => (d(), f("div", In, [
2245
- J(_("input", {
2227
+ return (l, r) => (d(), f("div", Ln, [
2228
+ te(_("input", {
2246
2229
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2247
2230
  id: `i-${M(s)}`,
2248
2231
  type: "checkbox",
2249
- checked: t.checked,
2250
- disabled: t.disabled,
2251
- onChange: r[1] || (r[1] = (...i) => t.change && t.change(...i))
2252
- }, null, 40, En), [
2232
+ checked: o.checked,
2233
+ disabled: o.disabled,
2234
+ onChange: r[1] || (r[1] = (...i) => o.change && o.change(...i))
2235
+ }, null, 40, Cn), [
2253
2236
  [Et, a.value]
2254
2237
  ]),
2255
2238
  _("label", {
2256
2239
  for: `i-${M(s)}`
2257
- }, A(t.label), 9, Bn)
2240
+ }, A(o.label), 9, In)
2258
2241
  ]));
2259
2242
  }
2260
2243
  };
2261
- async function Mn(e, o) {
2262
- return await yt(en, { title: e, message: o });
2244
+ async function En(e, t) {
2245
+ return await yt(Jo, { title: e, message: t });
2263
2246
  }
2264
- async function Nn(e, o) {
2265
- return await yt(Jo, { title: e, message: o });
2247
+ async function Bn(e, t) {
2248
+ return await yt(Zo, { title: e, message: t });
2266
2249
  }
2267
2250
  const Rs = {
2268
2251
  __name: "DDialogProvider",
2269
2252
  setup(e) {
2270
- return window.alert = Nn, window.confirm = Mn, (o, t) => (d(), x(M(Zo)));
2253
+ return window.alert = Bn, window.confirm = En, (t, o) => (d(), x(M(qo)));
2271
2254
  }
2272
- }, Rn = { class: "d-select" }, On = {
2255
+ }, Mn = { class: "d-select" }, Nn = {
2273
2256
  key: 0,
2274
2257
  class: "label"
2275
- }, An = ["value", "selected", "disabled"], Os = {
2258
+ }, Rn = ["value", "selected", "disabled"], Os = {
2276
2259
  __name: "DSelect",
2277
2260
  props: {
2278
2261
  label: String,
@@ -2283,60 +2266,74 @@ const Rs = {
2283
2266
  // small, larger
2284
2267
  },
2285
2268
  emits: ["update:modelValue"],
2286
- setup(e, { emit: o }) {
2287
- const t = e, n = m(() => t.scale ? "d-select-" + t.scale : ""), s = m({
2288
- get: () => t.modelValue,
2269
+ setup(e, { emit: t }) {
2270
+ const o = e, n = m(() => o.scale ? "d-select-" + o.scale : ""), s = m({
2271
+ get: () => o.modelValue,
2289
2272
  set: (a) => {
2290
- o("update:modelValue", a);
2273
+ t("update:modelValue", a);
2291
2274
  }
2292
2275
  });
2293
- for (let a = 0; a < t.options.length; a++)
2294
- if (t.options[a].selected) {
2295
- s.value = t.options[a].value;
2276
+ for (let a = 0; a < o.options.length; a++)
2277
+ if (o.options[a].selected) {
2278
+ s.value = o.options[a].value;
2296
2279
  break;
2297
2280
  }
2298
- return (a, l) => (d(), f("div", Rn, [
2299
- t.label ? (d(), f("div", On, A(t.label), 1)) : $("", !0),
2300
- J(_("select", {
2281
+ return (a, l) => (d(), f("div", Mn, [
2282
+ o.label ? (d(), f("div", Nn, A(o.label), 1)) : k("", !0),
2283
+ te(_("select", {
2301
2284
  "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2302
- class: w(n.value),
2303
- style: H(t.size === "wide" ? "width:100%" : "")
2285
+ class: D(n.value),
2286
+ style: H(o.size === "wide" ? "width:100%" : "")
2304
2287
  }, [
2305
- (d(!0), f(ae, null, he(t.options, (r, i) => (d(), f("option", {
2288
+ (d(!0), f(ie, null, he(o.options, (r, i) => (d(), f("option", {
2306
2289
  key: i,
2307
2290
  value: r.value,
2308
2291
  selected: r.selected,
2309
2292
  disabled: r.disabled
2310
- }, A(r.label), 9, An))), 128))
2293
+ }, A(r.label), 9, Rn))), 128))
2311
2294
  ], 6), [
2312
2295
  [Bt, s.value]
2313
2296
  ])
2314
2297
  ]));
2315
2298
  }
2299
+ }, On = { key: 0 }, An = { key: 1 }, Hn = {
2300
+ __name: "DTabLabel",
2301
+ props: {
2302
+ label: [String, Object]
2303
+ },
2304
+ setup(e) {
2305
+ const t = e;
2306
+ return (o, n) => typeof t.label == "string" ? (d(), f("span", On, A(t.label), 1)) : (d(), f("span", An, [
2307
+ oe(M(de), {
2308
+ component: t.label
2309
+ }, null, 8, ["component"])
2310
+ ]));
2311
+ }
2316
2312
  };
2317
- const Hn = { class: "d-tabs" }, Vn = ["onClick"], zn = {
2313
+ const Vn = { class: "d-tabs" }, zn = {
2318
2314
  __name: "DTabs",
2319
2315
  props: {
2320
2316
  tabs: Array
2321
2317
  },
2322
2318
  setup(e) {
2323
- const t = Mt(e, "tabs"), n = S(0), s = (a) => {
2319
+ const o = Mt(e, "tabs"), n = w(0), s = (a) => {
2324
2320
  n.value = a;
2325
2321
  };
2326
- return (a, l) => (d(), f(ae, null, [
2327
- _("div", Hn, [
2328
- (d(!0), f(ae, null, he(t.value, (r, i) => (d(), f("div", {
2329
- key: i,
2330
- class: w([i === n.value ? "active" : "", "d-tab-title"]),
2322
+ return (a, l) => (d(), f(ie, null, [
2323
+ _("div", Vn, [
2324
+ (d(!0), f(ie, null, he(o.value, (r, i) => (d(), x(Hn, {
2325
+ index: i,
2326
+ label: r.label,
2327
+ class: D(["d-tab-title", i === n.value ? "active" : ""]),
2331
2328
  onClick: (c) => s(i)
2332
- }, A(r.label), 11, Vn))), 128))
2329
+ }, null, 8, ["index", "label", "class", "onClick"]))), 256))
2333
2330
  ]),
2334
2331
  (d(), x(Nt, null, [
2335
- (d(), x(X(t.value[n.value].component)))
2332
+ (d(), x(X(o.value[n.value].component)))
2336
2333
  ], 1024))
2337
2334
  ], 64));
2338
2335
  }
2339
- }, As = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-89cd9234"]]);
2336
+ }, As = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-e00bc642"]]);
2340
2337
  const Fn = { class: "d-grid" }, Wn = {
2341
2338
  __name: "DGrid",
2342
2339
  props: {
@@ -2355,17 +2352,17 @@ const Fn = { class: "d-grid" }, Wn = {
2355
2352
  colXxl: String
2356
2353
  },
2357
2354
  setup(e) {
2358
- const o = e;
2359
- Ae((u) => ({
2355
+ const t = e;
2356
+ Oe((u) => ({
2360
2357
  "09eba472": i[0],
2361
2358
  "09eba434": i[1],
2362
2359
  "09eba3f6": i[2],
2363
2360
  "09eba3b8": i[3],
2364
2361
  "09eba37a": i[4],
2365
2362
  "09eba33c": i[5],
2366
- "898eb2ac": o.gap
2363
+ "898eb2ac": t.gap
2367
2364
  }));
2368
- const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: l, colXxl: r } = Rt(o), i = [t.value, n.value, s.value, a.value, l.value, r.value];
2365
+ const { colXs: o, colSm: n, colMd: s, colLg: a, colXl: l, colXxl: r } = Rt(t), i = [o.value, n.value, s.value, a.value, l.value, r.value];
2369
2366
  let c = null;
2370
2367
  for (let u = 0; u < i.length; u++)
2371
2368
  c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
@@ -2385,20 +2382,20 @@ const Fn = { class: "d-grid" }, Wn = {
2385
2382
  radius: String
2386
2383
  },
2387
2384
  setup(e) {
2388
- const o = e, t = S(null), n = new Image();
2385
+ const t = e, o = w(null), n = new Image();
2389
2386
  return n.onload = () => {
2390
- t.value = n.src;
2387
+ o.value = n.src;
2391
2388
  }, n.onerror = () => {
2392
- t.value = o.srcFail;
2389
+ o.value = t.srcFail;
2393
2390
  }, fe(() => {
2394
- n.src = o.src;
2395
- }), (s, a) => t.value ? (d(), f("img", {
2391
+ n.src = t.src;
2392
+ }), (s, a) => o.value ? (d(), f("img", {
2396
2393
  key: 0,
2397
- src: t.value,
2398
- alt: o.alt,
2399
- title: o.title,
2400
- style: H({ width: o.width, height: o.height, borderRadius: o.radius })
2401
- }, null, 12, Pn)) : $("", !0);
2394
+ src: o.value,
2395
+ alt: t.alt,
2396
+ title: t.title,
2397
+ style: H({ width: t.width, height: t.height, borderRadius: t.radius })
2398
+ }, null, 12, Pn)) : k("", !0);
2402
2399
  }
2403
2400
  };
2404
2401
  const jn = { class: "d-textarea" }, Xn = {
@@ -2423,11 +2420,11 @@ const jn = { class: "d-textarea" }, Xn = {
2423
2420
  focus: Boolean
2424
2421
  },
2425
2422
  emits: ["update:modelValue"],
2426
- setup(e, { expose: o, emit: t }) {
2427
- const n = e, s = S(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = m({
2423
+ setup(e, { expose: t, emit: o }) {
2424
+ const n = e, s = w(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = m({
2428
2425
  get: () => n.modelValue,
2429
2426
  set: (i) => {
2430
- t("update:modelValue", i);
2427
+ o("update:modelValue", i);
2431
2428
  }
2432
2429
  });
2433
2430
  fe(() => {
@@ -2436,18 +2433,18 @@ const jn = { class: "d-textarea" }, Xn = {
2436
2433
  const r = () => {
2437
2434
  s.value.focus();
2438
2435
  };
2439
- return o({
2436
+ return t({
2440
2437
  focus: r
2441
2438
  }), (i, c) => (d(), f("div", jn, [
2442
- n.label ? (d(), f("div", Xn, A(n.label), 1)) : $("", !0),
2443
- J(_("textarea", {
2439
+ n.label ? (d(), f("div", Xn, A(n.label), 1)) : k("", !0),
2440
+ te(_("textarea", {
2444
2441
  ref_key: "inputRef",
2445
2442
  ref: s,
2446
2443
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
2447
2444
  rows: n.rows,
2448
2445
  cols: n.cols,
2449
2446
  placeholder: n.placeholder,
2450
- class: w(a.value),
2447
+ class: D(a.value),
2451
2448
  style: { width: "100%" }
2452
2449
  }, null, 10, Yn), [
2453
2450
  [Ot, l.value]
@@ -2456,32 +2453,32 @@ const jn = { class: "d-textarea" }, Xn = {
2456
2453
  }
2457
2454
  }, zs = /* @__PURE__ */ le(Un, [["__scopeId", "data-v-0e805d5d"]]);
2458
2455
  class Fs {
2459
- constructor(o) {
2460
- this.fields = o;
2456
+ constructor(t) {
2457
+ this.fields = t;
2461
2458
  }
2462
2459
  validate() {
2463
- let o = !1;
2464
- for (let t in this.fields)
2465
- this.fields[t].ref.value.validate() === !0 && (o = !0);
2466
- return !o;
2460
+ let t = !1;
2461
+ for (let o in this.fields)
2462
+ this.fields[o].ref.value.validate() === !0 && (t = !0);
2463
+ return !t;
2467
2464
  }
2468
2465
  }
2469
2466
  class qn {
2470
- validate(o, t = "https") {
2471
- return this._isValidURL(o) || (o = t + "://" + o), this._isValidURL(o);
2467
+ validate(t, o = "https") {
2468
+ return this._isValidURL(t) || (t = o + "://" + t), this._isValidURL(t);
2472
2469
  }
2473
- message(o, t) {
2470
+ message(t, o) {
2474
2471
  let n = "";
2475
- switch (o) {
2472
+ switch (t) {
2476
2473
  case "url":
2477
- n = t;
2474
+ n = o;
2478
2475
  break;
2479
2476
  }
2480
2477
  return n;
2481
2478
  }
2482
- _isValidURL(o) {
2479
+ _isValidURL(t) {
2483
2480
  try {
2484
- return new URL(o), !0;
2481
+ return new URL(t), !0;
2485
2482
  } catch {
2486
2483
  return !1;
2487
2484
  }
@@ -2489,47 +2486,47 @@ class qn {
2489
2486
  }
2490
2487
  const Gn = new qn();
2491
2488
  class Zn {
2492
- validate(o = "") {
2493
- return o !== "";
2489
+ validate(t = "") {
2490
+ return t !== "";
2494
2491
  }
2495
- message(o) {
2496
- return o;
2492
+ message(t) {
2493
+ return t;
2497
2494
  }
2498
2495
  }
2499
2496
  const Kn = new Zn();
2500
2497
  class Jn {
2501
- validate(o = "", t = 0) {
2502
- return o.length >= t;
2498
+ validate(t = "", o = 0) {
2499
+ return t.length >= o;
2503
2500
  }
2504
- message(o) {
2505
- return o;
2501
+ message(t) {
2502
+ return t;
2506
2503
  }
2507
2504
  }
2508
2505
  const Qn = new Jn();
2509
2506
  class es {
2510
- validate(o = "", t = 0) {
2511
- return o.length <= t;
2507
+ validate(t = "", o = 0) {
2508
+ return t.length <= o;
2512
2509
  }
2513
- message(o) {
2514
- return o;
2510
+ message(t) {
2511
+ return t;
2515
2512
  }
2516
2513
  }
2517
2514
  const ts = new es();
2518
2515
  class os {
2519
- validate(o) {
2520
- return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(o);
2516
+ validate(t) {
2517
+ return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(t);
2521
2518
  }
2522
- message(o) {
2523
- return o;
2519
+ message(t) {
2520
+ return t;
2524
2521
  }
2525
2522
  }
2526
2523
  const ns = new os();
2527
2524
  class ss {
2528
- validate(o) {
2529
- return !isNaN(parseFloat(o)) && !isNaN(o - 0);
2525
+ validate(t) {
2526
+ return !isNaN(parseFloat(t)) && !isNaN(t - 0);
2530
2527
  }
2531
- message(o) {
2532
- return o;
2528
+ message(t) {
2529
+ return t;
2533
2530
  }
2534
2531
  }
2535
2532
  const as = new ss(), Y = {
@@ -2541,32 +2538,32 @@ const as = new ss(), Y = {
2541
2538
  RulesNumber: as
2542
2539
  };
2543
2540
  class is {
2544
- validate(o, t) {
2545
- var s, a, l, r, i, c, u, h, b, T, N, k, F, R;
2541
+ validate(t, o) {
2542
+ var s, a, l, r, i, c, u, h, b, S, N, $, F, R;
2546
2543
  let n = "";
2547
- if (t) {
2544
+ if (o) {
2548
2545
  let C = !1;
2549
- for (let E in t)
2546
+ for (let E in o)
2550
2547
  if (!C)
2551
2548
  switch (E) {
2552
2549
  case "url":
2553
- n = Y.RulesUrl.validate(o, "https") || o.length === 0 ? "" : Y.RulesUrl.message("url", (s = t[E]) != null && s.message ? (a = t[E]) == null ? void 0 : a.message : "url_incorrect"), C = n !== "";
2550
+ n = Y.RulesUrl.validate(t, "https") || t.length === 0 ? "" : Y.RulesUrl.message("url", (s = o[E]) != null && s.message ? (a = o[E]) == null ? void 0 : a.message : "url_incorrect"), C = n !== "";
2554
2551
  break;
2555
2552
  case "required":
2556
- n = Y.RulesRequired.validate(o) ? "" : Y.RulesRequired.message((l = t[E]) != null && l.message ? (r = t[E]) == null ? void 0 : r.message : "required"), C = n !== "";
2553
+ n = Y.RulesRequired.validate(t) ? "" : Y.RulesRequired.message((l = o[E]) != null && l.message ? (r = o[E]) == null ? void 0 : r.message : "required"), C = n !== "";
2557
2554
  break;
2558
2555
  case "min":
2559
- n = Y.RulesMin.validate(o, (i = t[E]) == null ? void 0 : i.value) ? "" : Y.RulesMin.message((c = t[E]) != null && c.message ? (u = t[E]) == null ? void 0 : u.message : "very_small"), C = n !== "";
2556
+ n = Y.RulesMin.validate(t, (i = o[E]) == null ? void 0 : i.value) ? "" : Y.RulesMin.message((c = o[E]) != null && c.message ? (u = o[E]) == null ? void 0 : u.message : "very_small"), C = n !== "";
2560
2557
  break;
2561
2558
  case "max":
2562
- n = Y.RulesMax.validate(o, (h = t[E]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = t[E]) != null && b.message ? (T = t[E]) == null ? void 0 : T.message : "vary_large"), C = n !== "";
2559
+ n = Y.RulesMax.validate(t, (h = o[E]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = o[E]) != null && b.message ? (S = o[E]) == null ? void 0 : S.message : "vary_large"), C = n !== "";
2563
2560
  break;
2564
2561
  case "email":
2565
- n = Y.RulesEmail.validate(o) ? "" : Y.RulesMax.message((N = t[E]) != null && N.message ? (k = t[E]) == null ? void 0 : k.message : "email_incorrect"), C = n !== "";
2562
+ n = Y.RulesEmail.validate(t) ? "" : Y.RulesMax.message((N = o[E]) != null && N.message ? ($ = o[E]) == null ? void 0 : $.message : "email_incorrect"), C = n !== "";
2566
2563
  break;
2567
2564
  case "number":
2568
- n = Y.RulesNumber.validate(o) ? "" : Y.RulesNumber.message(
2569
- (F = t[E]) != null && F.message ? (R = t[E]) == null ? void 0 : R.message : "number_incorrect"
2565
+ n = Y.RulesNumber.validate(t) ? "" : Y.RulesNumber.message(
2566
+ (F = o[E]) != null && F.message ? (R = o[E]) == null ? void 0 : R.message : "number_incorrect"
2570
2567
  ), C = n !== "";
2571
2568
  break;
2572
2569
  }
@@ -2629,66 +2626,66 @@ const ls = new is(), rs = { style: { display: "flex", "flex-direction": "column"
2629
2626
  disabled: Boolean
2630
2627
  },
2631
2628
  emits: ["update:modelValue", "input"],
2632
- setup(e, { expose: o, emit: t }) {
2633
- const n = e, s = S(n.error), a = At(), l = S(!1), r = S(null);
2629
+ setup(e, { expose: t, emit: o }) {
2630
+ const n = e, s = w(n.error), a = At(), l = w(!1), r = w(null);
2634
2631
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2635
2632
  const i = m({
2636
2633
  get: () => n.modelValue,
2637
2634
  //props.form?.fields[props.name].model.value,
2638
2635
  set: (R) => {
2639
- t("update:modelValue", R);
2636
+ o("update:modelValue", R);
2640
2637
  }
2641
2638
  }), c = m(() => n.type === "password" ? "password" : "text"), u = m(() => n.scale), h = (R) => {
2642
- t("input", R), b();
2639
+ o("input", R), b();
2643
2640
  }, b = () => (s.value = ls.validate(i.value, n.form.fields[n.name].rules), !!s.value);
2644
2641
  fe(() => {
2645
- T();
2642
+ S();
2646
2643
  });
2647
- const T = () => {
2644
+ const S = () => {
2648
2645
  var R;
2649
2646
  (R = r.value) == null || R.focus();
2650
2647
  }, N = () => {
2651
2648
  i.value = "";
2652
- }, k = (R) => {
2649
+ }, $ = (R) => {
2653
2650
  l.value = R;
2654
2651
  };
2655
- return o({
2656
- focus: T,
2652
+ return t({
2653
+ focus: S,
2657
2654
  setError: (R) => {
2658
2655
  s.value = R;
2659
2656
  },
2660
2657
  validate: b
2661
2658
  }), (R, C) => {
2662
- var E, B, y, O, W, P, g, V, p, z, D, q, oe, ge, ve, ye, _e, Q, be, re, xe, Le, me, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot;
2659
+ var E, B, y, O, W, P, g, V, p, z, T, q, ne, ge, ve, ye, _e, J, be, re, xe, Le, me, ze, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt;
2663
2660
  return d(), f("div", {
2664
- class: w(["d-input-string", u.value])
2661
+ class: D(["d-input-string", u.value])
2665
2662
  }, [
2666
2663
  _("div", rs, [
2667
2664
  n.label ? (d(), f("div", ds, [
2668
2665
  K(A(n.label), 1),
2669
- (E = n.form) != null && E.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", cs, "*")) : $("", !0)
2670
- ])) : $("", !0),
2666
+ (E = n.form) != null && E.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", cs, "*")) : k("", !0)
2667
+ ])) : k("", !0),
2671
2668
  _("div", us, [
2672
2669
  (y = (B = n.pre) == null ? void 0 : B.outside) != null && y.component ? (d(), f("div", {
2673
2670
  key: 0,
2674
- class: w(["d-pre", n.disabled ? "disabled" : ""])
2671
+ class: D(["d-pre", n.disabled ? "disabled" : ""])
2675
2672
  }, [
2676
2673
  (d(), x(X((W = (O = n.pre) == null ? void 0 : O.outside) == null ? void 0 : W.component)))
2677
2674
  ], 2)) : (g = (P = n.pre) == null ? void 0 : P.outside) != null && g.text ? (d(), f("div", {
2678
2675
  key: 1,
2679
- class: w(["d-pre", n.disabled ? "disabled" : ""])
2676
+ class: D(["d-pre", n.disabled ? "disabled" : ""])
2680
2677
  }, [
2681
2678
  _("div", {
2682
- class: w(["d-text", l.value ? "focused" : ""])
2679
+ class: D(["d-text", l.value ? "focused" : ""])
2683
2680
  }, A((p = (V = n.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2684
- ], 2)) : $("", !0),
2681
+ ], 2)) : k("", !0),
2685
2682
  _("div", ps, [
2686
- (D = (z = n.pre) == null ? void 0 : z.inside) != null && D.action && ((oe = (q = n.pre) == null ? void 0 : q.inside) == null ? void 0 : oe.action) === "clear" && ((ge = i.value) == null ? void 0 : ge.length) > 0 ? (d(), f("div", {
2683
+ (T = (z = n.pre) == null ? void 0 : z.inside) != null && T.action && ((ne = (q = n.pre) == null ? void 0 : q.inside) == null ? void 0 : ne.action) === "clear" && ((ge = i.value) == null ? void 0 : ge.length) > 0 ? (d(), f("div", {
2687
2684
  key: 0,
2688
2685
  class: "d-pre-inside-button",
2689
2686
  onClick: N
2690
- }, ms)) : $("", !0),
2691
- J(_("input", {
2687
+ }, ms)) : k("", !0),
2688
+ te(_("input", {
2692
2689
  id: M(a),
2693
2690
  ref_key: "inputRef",
2694
2691
  ref: r,
@@ -2697,41 +2694,41 @@ const ls = new is(), rs = { style: { display: "flex", "flex-direction": "column"
2697
2694
  type: c.value,
2698
2695
  placeholder: n.placeholder,
2699
2696
  onInput: h,
2700
- onFocus: C[1] || (C[1] = (Ce) => k(!0)),
2701
- onFocusout: C[2] || (C[2] = (Ce) => k(!1)),
2702
- class: w([
2703
- (ye = (ve = n.pre) == null ? void 0 : ve.outside) != null && ye.component || (Q = (_e = n.pre) == null ? void 0 : _e.outside) != null && Q.text ? "has-pre" : "",
2697
+ onFocus: C[1] || (C[1] = (Ce) => $(!0)),
2698
+ onFocusout: C[2] || (C[2] = (Ce) => $(!1)),
2699
+ class: D([
2700
+ (ye = (ve = n.pre) == null ? void 0 : ve.outside) != null && ye.component || (J = (_e = n.pre) == null ? void 0 : _e.outside) != null && J.text ? "has-pre" : "",
2704
2701
  (re = (be = n.post) == null ? void 0 : be.outside) != null && re.component || (Le = (xe = n.post) == null ? void 0 : xe.outside) != null && Le.text ? "has-post" : "",
2705
- (Fe = (me = n.pre) == null ? void 0 : me.inside) != null && Fe.action ? "has-pre-inside-button" : "",
2706
- (Pe = (We = n.post) == null ? void 0 : We.inside) != null && Pe.action ? "has-post-inside-button" : "",
2702
+ (ze = (me = n.pre) == null ? void 0 : me.inside) != null && ze.action ? "has-pre-inside-button" : "",
2703
+ (We = (Fe = n.post) == null ? void 0 : Fe.inside) != null && We.action ? "has-post-inside-button" : "",
2707
2704
  l.value ? "focused" : ""
2708
2705
  ]),
2709
2706
  disabled: n.disabled
2710
2707
  }, null, 42, hs), [
2711
2708
  [Se, i.value]
2712
2709
  ]),
2713
- (Xe = (je = n.post) == null ? void 0 : je.inside) != null && Xe.action && ((Ue = (Ye = n.post) == null ? void 0 : Ye.inside) == null ? void 0 : Ue.action) === "clear" && ((qe = i.value) == null ? void 0 : qe.length) > 0 ? (d(), f("div", {
2710
+ (je = (Pe = n.post) == null ? void 0 : Pe.inside) != null && je.action && ((Ye = (Xe = n.post) == null ? void 0 : Xe.inside) == null ? void 0 : Ye.action) === "clear" && ((Ue = i.value) == null ? void 0 : Ue.length) > 0 ? (d(), f("div", {
2714
2711
  key: 1,
2715
2712
  class: "d-post-inside-button",
2716
2713
  onClick: N
2717
- }, vs)) : $("", !0)
2714
+ }, vs)) : k("", !0)
2718
2715
  ]),
2719
- (Ze = (Ge = n.post) == null ? void 0 : Ge.outside) != null && Ze.component ? (d(), f("div", {
2716
+ (Ge = (qe = n.post) == null ? void 0 : qe.outside) != null && Ge.component ? (d(), f("div", {
2720
2717
  key: 2,
2721
- class: w(["d-post", n.disabled ? "disabled" : ""])
2718
+ class: D(["d-post", n.disabled ? "disabled" : ""])
2722
2719
  }, [
2723
- (d(), x(X((Je = (Ke = n.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2724
- ], 2)) : (et = (Qe = n.post) == null ? void 0 : Qe.outside) != null && et.text ? (d(), f("div", {
2720
+ (d(), x(X((Ke = (Ze = n.post) == null ? void 0 : Ze.outside) == null ? void 0 : Ke.component)))
2721
+ ], 2)) : (Qe = (Je = n.post) == null ? void 0 : Je.outside) != null && Qe.text ? (d(), f("div", {
2725
2722
  key: 3,
2726
- class: w(["d-post", n.disabled ? "disabled" : ""])
2723
+ class: D(["d-post", n.disabled ? "disabled" : ""])
2727
2724
  }, [
2728
2725
  _("div", {
2729
- class: w(["d-text", l.value ? "focused" : ""])
2730
- }, A((ot = (tt = n.post) == null ? void 0 : tt.outside) == null ? void 0 : ot.text), 3)
2731
- ], 2)) : $("", !0)
2726
+ class: D(["d-text", l.value ? "focused" : ""])
2727
+ }, A((tt = (et = n.post) == null ? void 0 : et.outside) == null ? void 0 : tt.text), 3)
2728
+ ], 2)) : k("", !0)
2732
2729
  ]),
2733
- n.help ? (d(), f("div", ys, A(n.help), 1)) : $("", !0),
2734
- s.value ? (d(), f("div", _s, A(s.value), 1)) : $("", !0)
2730
+ n.help ? (d(), f("div", ys, A(n.help), 1)) : k("", !0),
2731
+ s.value ? (d(), f("div", _s, A(s.value), 1)) : k("", !0)
2735
2732
  ])
2736
2733
  ], 2);
2737
2734
  };
@@ -2743,21 +2740,21 @@ _t.close = (e) => {
2743
2740
  U.emit("notification-close", e);
2744
2741
  };
2745
2742
  const Ps = () => ({ notify: _t }), js = {
2746
- mounted: function(e, o) {
2747
- e.clickOutsideEvent = function(t) {
2748
- e === t.target || e.contains(t.target) || o.value(t, e);
2743
+ mounted: function(e, t) {
2744
+ e.clickOutsideEvent = function(o) {
2745
+ e === o.target || e.contains(o.target) || t.value(o, e);
2749
2746
  }, document.addEventListener("click", e.clickOutsideEvent);
2750
2747
  },
2751
2748
  unmounted: function(e) {
2752
2749
  document.removeEventListener("click", e.clickOutsideEvent);
2753
2750
  }
2754
2751
  }, Xs = {
2755
- beforeMount(e, o) {
2756
- e._keydownCallback = (t) => {
2757
- t.key === o.arg && o.value();
2752
+ beforeMount(e, t) {
2753
+ e._keydownCallback = (o) => {
2754
+ o.key === t.arg && t.value();
2758
2755
  }, document.addEventListener("keydown", e._keydownCallback);
2759
2756
  },
2760
- unmounted(e, o) {
2757
+ unmounted(e, t) {
2761
2758
  document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
2762
2759
  }
2763
2760
  }, Ys = {
@@ -2774,12 +2771,12 @@ function xt(e) {
2774
2771
  var bs = function() {
2775
2772
  var e = !1;
2776
2773
  try {
2777
- var o = Object.defineProperty({}, "passive", {
2774
+ var t = Object.defineProperty({}, "passive", {
2778
2775
  get: function() {
2779
2776
  e = !0;
2780
2777
  }
2781
2778
  });
2782
- window.addEventListener("test", null, o);
2779
+ window.addEventListener("test", null, t);
2783
2780
  } catch {
2784
2781
  }
2785
2782
  return e;
@@ -2800,65 +2797,65 @@ var bs = function() {
2800
2797
  // ms
2801
2798
  };
2802
2799
  function $e(e) {
2803
- var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2804
- t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || ($t(this), o.touchStarted = !0, o.touchMoved = !1, o.swipeOutBounded = !1, o.startX = bt(e), o.startY = xt(e), o.currentX = 0, o.currentY = 0, o.touchStartTime = e.timeStamp, o.hasSwipe = G(this, "swipe") || G(this, "swipe.left") || G(this, "swipe.right") || G(this, "swipe.top") || G(this, "swipe.bottom"), G(this, "hold") && (o.touchHoldTimer = setTimeout(function() {
2805
- o.touchHoldTimer = null, ee(e, s, "hold");
2806
- }, o.options.touchHoldTolerance)), ee(e, this, "press")));
2800
+ var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2801
+ o && (t.lastTouchStartTime = e.timeStamp), !(n && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || ($t(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = bt(e), t.startY = xt(e), t.currentX = 0, t.currentY = 0, t.touchStartTime = e.timeStamp, t.hasSwipe = G(this, "swipe") || G(this, "swipe.left") || G(this, "swipe.right") || G(this, "swipe.top") || G(this, "swipe.bottom"), G(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
2802
+ t.touchHoldTimer = null, Q(e, s, "hold");
2803
+ }, t.options.touchHoldTolerance)), Q(e, this, "press")));
2807
2804
  }
2808
2805
  function ke(e) {
2809
- var o = this.$$touchObj, t = bt(e), n = xt(e), s = o.currentX != t || o.currentY != n;
2810
- if (o.currentX = t, o.currentY = n, o.touchMoved) {
2811
- if (o.hasSwipe && !o.swipeOutBounded) {
2812
- var l = o.options.swipeTolerance;
2813
- o.swipeOutBounded = Math.abs(o.startX - o.currentX) > l && Math.abs(o.startY - o.currentY) > l;
2806
+ var t = this.$$touchObj, o = bt(e), n = xt(e), s = t.currentX != o || t.currentY != n;
2807
+ if (t.currentX = o, t.currentY = n, t.touchMoved) {
2808
+ if (t.hasSwipe && !t.swipeOutBounded) {
2809
+ var l = t.options.swipeTolerance;
2810
+ t.swipeOutBounded = Math.abs(t.startX - t.currentX) > l && Math.abs(t.startY - t.currentY) > l;
2814
2811
  }
2815
2812
  } else {
2816
- var a = o.options.tapTolerance;
2817
- 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"));
2813
+ var a = t.options.tapTolerance;
2814
+ t.touchMoved = Math.abs(t.startX - t.currentX) > a || Math.abs(t.startY - t.currentY) > a, t.touchMoved && (Ve(t), Q(e, this, "drag.once"));
2818
2815
  }
2819
2816
  if (G(this, "rollover") && s) {
2820
- var r = e.timeStamp, i = o.options.rollOverFrequency;
2821
- (o.touchRollTime == null || r > o.touchRollTime + i) && (o.touchRollTime = r, ee(e, this, "rollover"));
2817
+ var r = e.timeStamp, i = t.options.rollOverFrequency;
2818
+ (t.touchRollTime == null || r > t.touchRollTime + i) && (t.touchRollTime = r, Q(e, this, "rollover"));
2822
2819
  }
2823
- if (G(this, "drag") && o.touchStarted && o.touchMoved && s) {
2824
- var r = e.timeStamp, i = o.options.dragFrequency;
2825
- (o.touchDragTime == null || r > o.touchDragTime + i) && (o.touchDragTime = r, ee(e, this, "drag"));
2820
+ if (G(this, "drag") && t.touchStarted && t.touchMoved && s) {
2821
+ var r = e.timeStamp, i = t.options.dragFrequency;
2822
+ (t.touchDragTime == null || r > t.touchDragTime + i) && (t.touchDragTime = r, Q(e, this, "drag"));
2826
2823
  }
2827
2824
  }
2828
- function it() {
2825
+ function at() {
2829
2826
  var e = this.$$touchObj;
2830
- ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2827
+ Ve(e), He(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2831
2828
  }
2832
2829
  function we(e) {
2833
- var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2834
- t && (o.lastTouchEndTime = e.timeStamp);
2835
- var s = t && !o.touchHoldTimer;
2836
- if (ze(o), o.touchStarted = !1, Ve(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2837
- if (ee(e, this, "release"), o.touchMoved) {
2838
- if (o.hasSwipe && !o.swipeOutBounded) {
2839
- var a = o.options.swipeTolerance, l, r = Math.abs(o.startY - o.currentY), i = Math.abs(o.startX - o.currentX);
2840
- (r > a || i > a) && (r > a ? l = o.startY > o.currentY ? "top" : "bottom" : l = o.startX > o.currentX ? "left" : "right", G(this, "swipe." + l) ? ee(e, this, "swipe." + l, l) : ee(e, this, "swipe", l));
2830
+ var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2831
+ o && (t.lastTouchEndTime = e.timeStamp);
2832
+ var s = o && !t.touchHoldTimer;
2833
+ if (Ve(t), t.touchStarted = !1, He(this), !(n && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
2834
+ if (Q(e, this, "release"), t.touchMoved) {
2835
+ if (t.hasSwipe && !t.swipeOutBounded) {
2836
+ var a = t.options.swipeTolerance, l, r = Math.abs(t.startY - t.currentY), i = Math.abs(t.startX - t.currentX);
2837
+ (r > a || i > a) && (r > a ? l = t.startY > t.currentY ? "top" : "bottom" : l = t.startX > t.currentX ? "left" : "right", G(this, "swipe." + l) ? Q(e, this, "swipe." + l, l) : Q(e, this, "swipe", l));
2841
2838
  }
2842
- } else if (G(this, "longtap") && e.timeStamp - o.touchStartTime > o.options.longTapTimeInterval)
2843
- e.cancelable && e.preventDefault(), ee(e, this, "longtap");
2839
+ } else if (G(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
2840
+ e.cancelable && e.preventDefault(), Q(e, this, "longtap");
2844
2841
  else if (G(this, "hold") && s) {
2845
2842
  e.cancelable && e.preventDefault();
2846
2843
  return;
2847
2844
  } else
2848
- ee(e, this, "tap");
2845
+ Q(e, this, "tap");
2849
2846
  }
2850
- function lt() {
2847
+ function it() {
2851
2848
  $t(this);
2852
2849
  }
2853
- function rt() {
2854
- Ve(this);
2850
+ function lt() {
2851
+ He(this);
2855
2852
  }
2856
- function G(e, o) {
2857
- var t = e.$$touchObj.callbacks[o];
2858
- return t != null && t.length > 0;
2853
+ function G(e, t) {
2854
+ var o = e.$$touchObj.callbacks[t];
2855
+ return o != null && o.length > 0;
2859
2856
  }
2860
- function ee(e, o, t, n) {
2861
- var s = o.$$touchObj, a = s.callbacks[t];
2857
+ function Q(e, t, o, n) {
2858
+ var s = t.$$touchObj, a = s.callbacks[o];
2862
2859
  if (a == null || a.length === 0)
2863
2860
  return null;
2864
2861
  for (var l = 0; l < a.length; l++) {
@@ -2867,18 +2864,18 @@ function ee(e, o, t, n) {
2867
2864
  }
2868
2865
  }
2869
2866
  function $t(e) {
2870
- var o = e.$$touchObj.options.touchClass;
2871
- o && e.classList.add(o);
2867
+ var t = e.$$touchObj.options.touchClass;
2868
+ t && e.classList.add(t);
2872
2869
  }
2873
- function Ve(e) {
2874
- var o = e.$$touchObj.options.touchClass;
2875
- o && e.classList.remove(o);
2870
+ function He(e) {
2871
+ var t = e.$$touchObj.options.touchClass;
2872
+ t && e.classList.remove(t);
2876
2873
  }
2877
- function ze(e) {
2874
+ function Ve(e) {
2878
2875
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2879
2876
  }
2880
- function $s(e, o) {
2881
- var t = e.$$touchObj || {
2877
+ function $s(e, t) {
2878
+ var o = e.$$touchObj || {
2882
2879
  // an object contains all callbacks registered,
2883
2880
  // key is event name, value is an array
2884
2881
  callbacks: {},
@@ -2887,84 +2884,84 @@ function $s(e, o) {
2887
2884
  // default options, would be override by v-touch-options
2888
2885
  options: xs
2889
2886
  };
2890
- return o && (t.options = Object.assign({}, t.options, o)), e.$$touchObj = t, e.$$touchObj;
2887
+ return t && (o.options = Object.assign({}, o.options, t)), e.$$touchObj = o, e.$$touchObj;
2891
2888
  }
2892
2889
  const Us = {
2893
- beforeMount: function(e, o) {
2894
- const t = $s(e);
2890
+ beforeMount: function(e, t) {
2891
+ const o = $s(e);
2895
2892
  let n = bs ? { passive: !0 } : !1;
2896
- const s = o.arg || "tap";
2893
+ const s = t.arg || "tap";
2897
2894
  switch (s) {
2898
2895
  case "swipe":
2899
- let a = o.modifiers;
2896
+ let a = t.modifiers;
2900
2897
  if (a.left || a.right || a.top || a.bottom) {
2901
- for (let l in o.modifiers)
2898
+ for (let l in t.modifiers)
2902
2899
  if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
2903
2900
  let r = "swipe." + l;
2904
- t.callbacks[r] = t.callbacks[r] || [], t.callbacks[r].push(o);
2901
+ o.callbacks[r] = o.callbacks[r] || [], o.callbacks[r].push(t);
2905
2902
  }
2906
2903
  } else
2907
- t.callbacks.swipe = t.callbacks.swipe || [], t.callbacks.swipe.push(o);
2904
+ o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(t);
2908
2905
  break;
2909
2906
  case "press":
2910
2907
  case "drag":
2911
- o.modifiers.disablePassive && (n = !1);
2908
+ t.modifiers.disablePassive && (n = !1);
2912
2909
  default:
2913
- t.callbacks[s] = t.callbacks[s] || [], t.callbacks[s].push(o);
2910
+ o.callbacks[s] = o.callbacks[s] || [], o.callbacks[s].push(t);
2914
2911
  }
2915
- t.hasBindTouchEvents || (e.addEventListener("touchstart", $e, n), e.addEventListener("touchmove", ke, n), e.addEventListener("touchcancel", it), e.addEventListener("touchend", we), t.options.disableClick || (e.addEventListener("mousedown", $e), e.addEventListener("mousemove", ke), e.addEventListener("mouseup", we), e.addEventListener("mouseenter", lt), e.addEventListener("mouseleave", rt)), t.hasBindTouchEvents = !0);
2912
+ o.hasBindTouchEvents || (e.addEventListener("touchstart", $e, n), e.addEventListener("touchmove", ke, n), e.addEventListener("touchcancel", at), e.addEventListener("touchend", we), o.options.disableClick || (e.addEventListener("mousedown", $e), e.addEventListener("mousemove", ke), e.addEventListener("mouseup", we), e.addEventListener("mouseenter", it), e.addEventListener("mouseleave", lt)), o.hasBindTouchEvents = !0);
2916
2913
  },
2917
2914
  unmounted: function(e) {
2918
- e.removeEventListener("touchstart", $e), e.removeEventListener("touchmove", ke), e.removeEventListener("touchcancel", it), e.removeEventListener("touchend", we), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", $e), e.removeEventListener("mousemove", ke), e.removeEventListener("mouseup", we), e.removeEventListener("mouseenter", lt), e.removeEventListener("mouseleave", rt)), delete e.$$touchObj;
2915
+ e.removeEventListener("touchstart", $e), e.removeEventListener("touchmove", ke), e.removeEventListener("touchcancel", at), e.removeEventListener("touchend", we), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", $e), e.removeEventListener("mousemove", ke), e.removeEventListener("mouseup", we), e.removeEventListener("mouseenter", it), e.removeEventListener("mouseleave", lt)), delete e.$$touchObj;
2919
2916
  }
2920
2917
  };
2921
2918
  export {
2922
2919
  Ss as DAccordion,
2923
- Jo as DAlertDialog,
2920
+ Zo as DAlertDialog,
2924
2921
  io as DBadge,
2925
- se as DButton,
2922
+ ae as DButton,
2926
2923
  Es as DCard,
2927
2924
  Ns as DCheckbox,
2928
2925
  lo as DCollapse,
2929
2926
  Ds as DConfigProvider,
2930
- en as DConfirmDialog,
2931
- Io as DContextMenu,
2927
+ Jo as DConfirmDialog,
2928
+ Lo as DContextMenu,
2932
2929
  Rs as DDialogProvider,
2933
2930
  uo as DDrag,
2934
2931
  Do as DDrop,
2935
2932
  Is as DDropdown,
2936
2933
  Fs as DForm,
2937
- ue as DGlobalStore,
2934
+ pe as DGlobalStore,
2938
2935
  Hs as DGrid,
2939
- pe as DIcon,
2940
- te as DIconStore,
2936
+ de as DIcon,
2937
+ ee as DIconStore,
2941
2938
  Vs as DImage,
2942
2939
  Ms as DInfoProgress,
2943
2940
  ws as DInput,
2944
2941
  Ws as DInputString,
2945
2942
  Ts as DLayoutAdmin,
2946
- Oo as DLayoutContent,
2947
- No as DLayoutFooter,
2948
- Bo as DLayoutHeader,
2949
- Ro as DLayoutSidebar,
2950
- Mo as DLayoutTab,
2951
- gt as DMenu,
2943
+ No as DLayoutContent,
2944
+ Bo as DLayoutFooter,
2945
+ Io as DLayoutHeader,
2946
+ Mo as DLayoutSidebar,
2947
+ Eo as DLayoutTab,
2948
+ ht as DMenu,
2952
2949
  vt as DModal,
2953
2950
  Bs as DNotificationProvider,
2954
- an as DPanel,
2951
+ nn as DPanel,
2955
2952
  Cs as DScroll,
2956
2953
  Ls as DScrollProvider,
2957
2954
  Os as DSelect,
2958
2955
  As as DTabs,
2959
2956
  zs as DTextarea,
2960
2957
  Te as DTransferStore,
2961
- Be as DTree,
2958
+ gt as DTree,
2962
2959
  So as DTreeItem,
2963
2960
  v as DTreeStore,
2964
2961
  Y as Rules,
2965
- Nn as alert,
2962
+ Bn as alert,
2966
2963
  js as clickOutside,
2967
- Mn as confirm,
2964
+ En as confirm,
2968
2965
  U as emitter,
2969
2966
  To as eventsBus,
2970
2967
  Ys as focus,