doph-js 0.2.44 → 0.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dophJs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSlots as Le, computed as m, h as nt, openBlock as d, createBlock as x, unref as E, ref as w, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as $, normalizeStyle as H, resolveDynamicComponent as X, createStaticVNode as dt, onMounted as fe, toDisplayString as A, withDirectives as te, createElementVNode as _, vModelDynamic as Te, withCtx as I, createTextVNode as K, Transition as Ne, withModifiers as Z, resolveComponent as wt, resolveDirective as Re, createVNode as oe, renderList as ge, pushScopeId as St, popScopeId as Tt, reactive as Oe, Teleport as ct, nextTick as ut, getCurrentInstance as pt, watch as ft, onUnmounted as Dt, mergeProps as ue, useCssVars as Ae, shallowRef as Lt, defineComponent as Ct, normalizeProps as It, guardReactiveProps as Et, TransitionGroup as mt, vModelCheckbox as Bt, vModelSelect as Mt, toRef as Nt, KeepAlive as Rt, toRefs as Ot, vModelText as At } from "vue";
1
+ import { useSlots as Le, computed as m, h as st, openBlock as d, createBlock as x, unref as E, ref as w, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as $, normalizeStyle as H, resolveDynamicComponent as X, createStaticVNode as dt, onMounted as fe, toDisplayString as A, withDirectives as te, createElementVNode as _, vModelDynamic as Te, withCtx as I, createTextVNode as K, Transition as Ne, withModifiers as Z, resolveComponent as wt, resolveDirective as Re, createVNode as oe, renderList as ge, pushScopeId as St, popScopeId as Tt, reactive as Oe, Teleport as ct, nextTick as ut, getCurrentInstance as pt, watch as ft, onUnmounted as Dt, mergeProps as ue, useCssVars as Ae, shallowRef as Lt, defineComponent as Ct, normalizeProps as It, guardReactiveProps as Et, TransitionGroup as mt, vModelCheckbox as Bt, vModelSelect as Mt, toRef as Nt, KeepAlive as Rt, toRefs as Ot, vModelText as At } from "vue";
2
2
  const de = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -8,28 +8,28 @@ const de = {
8
8
  className: String
9
9
  },
10
10
  setup(e) {
11
- const t = e, o = Le(), n = m(() => {
12
- const { className: r } = t;
13
- return r === void 0 ? "icon" : ["icon", r].join(" ");
14
- }), s = m(() => {
15
- const { color: r } = t;
16
- return r === void 0 ? null : r;
11
+ const t = e, o = Le(), s = m(() => {
12
+ const { className: l } = t;
13
+ return l === void 0 ? "icon" : ["icon", l].join(" ");
14
+ }), n = m(() => {
15
+ const { color: l } = t;
16
+ return l === void 0 ? null : l;
17
17
  }), a = m(() => {
18
- const r = t.size ?? null;
19
- if (r !== void 0)
20
- return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
21
- }), l = m(() => nt(
18
+ const l = t.size ?? null;
19
+ if (l !== void 0)
20
+ return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
21
+ }), r = m(() => st(
22
22
  "i",
23
23
  {
24
- class: n.value,
24
+ class: s.value,
25
25
  style: {
26
- color: s.value,
26
+ color: n.value,
27
27
  fontSize: a.value
28
28
  }
29
29
  },
30
- t.component ? nt(t.component) : o
30
+ t.component ? st(t.component) : o
31
31
  ));
32
- return (r, i) => (d(), x(E(l)));
32
+ return (l, i) => (d(), x(E(r)));
33
33
  }
34
34
  }, ee = {
35
35
  state: {},
@@ -53,42 +53,42 @@ const de = {
53
53
  };
54
54
  function ht(e) {
55
55
  const t = e.value.getBoundingClientRect();
56
- let o = e.value, n = 0, s = 0;
56
+ let o = e.value, s = 0, n = 0;
57
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 };
58
+ s += o.offsetLeft - o.scrollLeft, n += o.offsetTop - o.scrollTop, o = o.offsetParent;
59
+ return { top: n, left: s, x: t.x, y: t.y, width: t.width, height: t.height };
60
60
  }
61
61
  function Ht() {
62
- function e(s) {
63
- return s * Math.random() | 0;
62
+ function e(n) {
63
+ return n * Math.random() | 0;
64
64
  }
65
65
  function t() {
66
66
  return e(16).toString(16);
67
67
  }
68
- function o(s) {
68
+ function o(n) {
69
69
  let a = "";
70
- for (let l = 0; l < s; ++l)
70
+ for (let r = 0; r < n; ++r)
71
71
  a += t();
72
72
  return a;
73
73
  }
74
- function n() {
74
+ function s() {
75
75
  return (e(16) & 3 | 8).toString(16);
76
76
  }
77
- return o(8) + "-" + o(4) + "-4" + o(3) + "-" + n() + o(3) + "-" + o(12);
77
+ return o(8) + "-" + o(4) + "-4" + o(3) + "-" + s() + o(3) + "-" + o(12);
78
78
  }
79
- const le = (e, t) => {
79
+ const re = (e, t) => {
80
80
  const o = e.__vccOpts || e;
81
- for (const [n, s] of t)
82
- o[n] = s;
81
+ for (const [s, n] of t)
82
+ o[s] = n;
83
83
  return o;
84
84
  }, Vt = {
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
- }, zt = /* @__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), Wt = [
89
+ }, zt = /* @__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), Ft = [
90
90
  zt
91
- ], Ft = { key: 1 }, Pt = {
91
+ ], Wt = { key: 1 }, Pt = {
92
92
  key: 2,
93
93
  class: "loading-svg rotating",
94
94
  xmlns: "http://www.w3.org/2000/svg",
@@ -120,50 +120,50 @@ const le = (e, t) => {
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
122
  setup(e, { expose: t, emit: o }) {
123
- const n = e, s = Le(), a = w(null), l = m(() => n.icon ? ee.getters.getIcon(n.icon) : null), r = (k) => {
123
+ const s = e, n = Le(), a = w(null), r = m(() => s.icon ? ee.getters.getIcon(s.icon) : null), l = (k) => {
124
124
  o("click", k);
125
125
  }, i = (k) => {
126
126
  o("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"), S = 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}` : "";
127
+ }, c = m(() => s.scale === "large" ? "button-lg" : s.scale === "small" ? "button-sm" : ""), u = m(() => s.disabled ? "disabled" : ""), h = (k) => !!n[k], b = m(() => h("default") ? "" : s.scale === "large" ? "d-button-lg-icon" : s.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
128
+ const k = s.outline ? "-outline" : "";
129
+ return s.type === "primary" ? `button${k}-blue` : s.type === "success" ? `button${k}-green` : s.type === "error" ? `button${k}-red` : s.type === "warning" ? `button${k}-orange` : s.type === "wait" ? `button${k}-violet` : s.outline ? `button${k}` : "";
130
130
  });
131
131
  return t({
132
132
  elementSize: () => ht(a)
133
- }), (k, W) => (d(), f(ie, null, [
134
- l.value ? $("", !0) : (d(), f("div", {
133
+ }), (k, F) => (d(), f(ie, null, [
134
+ r.value ? $("", !0) : (d(), f("div", {
135
135
  key: 0,
136
136
  ref_key: "el",
137
137
  ref: a,
138
- onClick: r,
138
+ onClick: l,
139
139
  onContextmenu: i,
140
- class: D(["button", [n.class, c.value, S.value, u.value].join(" ")])
140
+ class: D(["button", [s.class, c.value, S.value, u.value].join(" ")])
141
141
  }, [
142
142
  L(k.$slots, "default", {}, void 0, !0),
143
- n.loading ? (d(), f("svg", Vt, Wt)) : $("", !0)
143
+ s.loading ? (d(), f("svg", Vt, Ft)) : $("", !0)
144
144
  ], 34)),
145
- l.value ? (d(), f("div", {
145
+ r.value ? (d(), f("div", {
146
146
  key: 1,
147
147
  ref_key: "el",
148
148
  ref: a,
149
- onClick: r,
149
+ onClick: l,
150
150
  onContextmenu: i,
151
- class: D(["button button-ext", [n.class, c.value, b.value, S.value, u.value].join(" ")]),
152
- style: H(n.style)
151
+ class: D(["button button-ext", [s.class, c.value, b.value, S.value, u.value].join(" ")]),
152
+ style: H(s.style)
153
153
  }, [
154
- n.icon ? (d(), x(X(de), {
154
+ s.icon ? (d(), x(X(de), {
155
155
  key: 0,
156
- component: l.value,
156
+ component: r.value,
157
157
  color: "inherit"
158
158
  }, null, 8, ["component"])) : $("", !0),
159
- E(s).default ? (d(), f("div", Ft, [
159
+ E(n).default ? (d(), f("div", Wt, [
160
160
  L(k.$slots, "default", {}, void 0, !0)
161
161
  ])) : $("", !0),
162
- n.loading ? (d(), f("svg", Pt, Xt)) : $("", !0)
162
+ s.loading ? (d(), f("svg", Pt, Xt)) : $("", !0)
163
163
  ], 38)) : $("", !0)
164
164
  ], 64));
165
165
  }
166
- }, ae = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-e5cd6ccd"]]);
166
+ }, ae = /* @__PURE__ */ re(Yt, [["__scopeId", "data-v-e5cd6ccd"]]);
167
167
  const Ut = {
168
168
  key: 0,
169
169
  class: "d-input"
@@ -184,7 +184,7 @@ const Ut = {
184
184
  }, oo = {
185
185
  key: 0,
186
186
  class: "label"
187
- }, no = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, so = { style: { flex: "1" } }, ao = ["type", "placeholder"], io = {
187
+ }, so = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, no = { style: { flex: "1" } }, ao = ["type", "placeholder"], io = {
188
188
  __name: "DInput",
189
189
  props: {
190
190
  label: String,
@@ -199,106 +199,106 @@ const Ut = {
199
199
  },
200
200
  emits: ["update:modelValue"],
201
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
- get: () => n.modelValue,
202
+ const s = e, n = w(null), a = m(() => s.scale === "small" ? "d-input-small" : s.scale === "large" ? "d-input-large" : ""), r = m({
203
+ get: () => s.modelValue,
204
204
  set: (i) => {
205
205
  o("update:modelValue", i);
206
206
  }
207
207
  });
208
208
  fe(() => {
209
- n.focus && r();
209
+ s.focus && l();
210
210
  });
211
- const r = () => {
212
- s.value.focus();
211
+ const l = () => {
212
+ n.value.focus();
213
213
  };
214
214
  return t({
215
- focus: r
216
- }), (i, c) => !n.post && !n.pre ? (d(), f("div", Ut, [
217
- n.label ? (d(), f("div", qt, A(n.label), 1)) : $("", !0),
215
+ focus: l
216
+ }), (i, c) => !s.post && !s.pre ? (d(), f("div", Ut, [
217
+ s.label ? (d(), f("div", qt, A(s.label), 1)) : $("", !0),
218
218
  te(_("input", {
219
219
  ref_key: "inputRef",
220
- ref: s,
221
- "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
222
- type: n.password ? "password" : "text",
220
+ ref: n,
221
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
222
+ type: s.password ? "password" : "text",
223
223
  class: D(a.value),
224
- placeholder: n.placeholder,
224
+ placeholder: s.placeholder,
225
225
  style: { width: "100%" }
226
226
  }, null, 10, Gt), [
227
- [Te, l.value]
227
+ [Te, r.value]
228
228
  ])
229
- ])) : n.post && n.post.click && !n.pre ? (d(), f("div", Zt, [
230
- n.label ? (d(), f("div", Kt, A(n.label), 1)) : $("", !0),
229
+ ])) : s.post && s.post.click && !s.pre ? (d(), f("div", Zt, [
230
+ s.label ? (d(), f("div", Kt, A(s.label), 1)) : $("", !0),
231
231
  _("div", Jt, [
232
232
  _("div", Qt, [
233
233
  te(_("input", {
234
234
  ref_key: "inputRef",
235
- ref: s,
235
+ ref: n,
236
236
  class: D(["d-input-post-field", a.value]),
237
- "onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
238
- type: n.password ? "password" : "text",
239
- placeholder: n.placeholder,
237
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => r.value = u),
238
+ type: s.password ? "password" : "text",
239
+ placeholder: s.placeholder,
240
240
  style: { width: "100%" }
241
241
  }, null, 10, eo), [
242
- [Te, l.value]
242
+ [Te, r.value]
243
243
  ])
244
244
  ]),
245
- n.post.label ? (d(), x(ae, {
245
+ s.post.label ? (d(), x(ae, {
246
246
  key: 0,
247
- scale: n.scale,
248
- class: D(["d-input-post-button", n.post.class]),
249
- onClick: n.post.click,
250
- icon: n.post.icon
247
+ scale: s.scale,
248
+ class: D(["d-input-post-button", s.post.class]),
249
+ onClick: s.post.click,
250
+ icon: s.post.icon
251
251
  }, {
252
252
  default: I(() => [
253
- K(A(n.post.label), 1)
253
+ K(A(s.post.label), 1)
254
254
  ]),
255
255
  _: 1
256
256
  }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
257
257
  key: 1,
258
- scale: n.scale,
259
- class: D(["d-input-post-button", n.post.class]),
260
- onClick: n.post.click,
261
- icon: n.post.icon
258
+ scale: s.scale,
259
+ class: D(["d-input-post-button", s.post.class]),
260
+ onClick: s.post.click,
261
+ icon: s.post.icon
262
262
  }, null, 8, ["scale", "onClick", "icon", "class"]))
263
263
  ])
264
- ])) : !n.post && n.pre && n.pre.click ? (d(), f("div", to, [
265
- n.label ? (d(), f("div", oo, A(n.label), 1)) : $("", !0),
266
- _("div", no, [
267
- n.pre.label ? (d(), x(ae, {
264
+ ])) : !s.post && s.pre && s.pre.click ? (d(), f("div", to, [
265
+ s.label ? (d(), f("div", oo, A(s.label), 1)) : $("", !0),
266
+ _("div", so, [
267
+ s.pre.label ? (d(), x(ae, {
268
268
  key: 0,
269
- scale: n.scale,
270
- class: D(["d-input-pre-button", n.pre.class]),
271
- onClick: n.pre.click,
272
- icon: n.pre.icon
269
+ scale: s.scale,
270
+ class: D(["d-input-pre-button", s.pre.class]),
271
+ onClick: s.pre.click,
272
+ icon: s.pre.icon
273
273
  }, {
274
274
  default: I(() => [
275
- K(A(n.pre.label), 1)
275
+ K(A(s.pre.label), 1)
276
276
  ]),
277
277
  _: 1
278
278
  }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
279
279
  key: 1,
280
- scale: n.scale,
281
- class: D(["d-input-pre-button", n.pre.class]),
282
- onClick: n.pre.click,
283
- icon: n.pre.icon
280
+ scale: s.scale,
281
+ class: D(["d-input-pre-button", s.pre.class]),
282
+ onClick: s.pre.click,
283
+ icon: s.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
285
- _("div", so, [
285
+ _("div", no, [
286
286
  te(_("input", {
287
287
  ref_key: "inputRef",
288
- ref: s,
288
+ ref: n,
289
289
  class: D(["d-input-pre-field", a.value]),
290
- "onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
291
- type: n.password ? "password" : "text",
292
- placeholder: n.placeholder,
290
+ "onUpdate:modelValue": c[2] || (c[2] = (u) => r.value = u),
291
+ type: s.password ? "password" : "text",
292
+ placeholder: s.placeholder,
293
293
  style: { width: "100%" }
294
294
  }, null, 10, ao), [
295
- [Te, l.value]
295
+ [Te, r.value]
296
296
  ])
297
297
  ])
298
298
  ])
299
299
  ])) : $("", !0);
300
300
  }
301
- }, Ts = /* @__PURE__ */ le(io, [["__scopeId", "data-v-a972038a"]]), lo = {
301
+ }, Tn = /* @__PURE__ */ re(io, [["__scopeId", "data-v-a972038a"]]), ro = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -310,17 +310,17 @@ const Ut = {
310
310
  }
311
311
  },
312
312
  setup(e) {
313
- const t = e, o = m(() => t.scale === "large" ? "badge-lg" : t.scale === "small" ? "badge-sm" : ""), n = m(() => {
314
- const s = t.stress ? "-stress" : "";
315
- return t.type === "primary" ? `badge${s}-blue` : t.type === "success" ? `badge${s}-green` : t.type === "error" ? `badge${s}-red` : t.type === "warning" ? `badge${s}-orange` : t.type === "wait" ? `badge${s}-violet` : t.stress ? `badge${s}-gray` : "";
313
+ const t = e, o = m(() => t.scale === "large" ? "badge-lg" : t.scale === "small" ? "badge-sm" : ""), s = m(() => {
314
+ const n = t.stress ? "-stress" : "";
315
+ return t.type === "primary" ? `badge${n}-blue` : t.type === "success" ? `badge${n}-green` : t.type === "error" ? `badge${n}-red` : t.type === "warning" ? `badge${n}-orange` : t.type === "wait" ? `badge${n}-violet` : t.stress ? `badge${n}-gray` : "";
316
316
  });
317
- return (s, a) => (d(), f("div", {
318
- class: D(["badge", [t.class, o.value, n.value].join(" ")])
317
+ return (n, a) => (d(), f("div", {
318
+ class: D(["badge", [t.class, o.value, s.value].join(" ")])
319
319
  }, [
320
- L(s.$slots, "default")
320
+ L(n.$slots, "default")
321
321
  ], 2));
322
322
  }
323
- }, se = "0px", ro = {
323
+ }, ne = "0px", lo = {
324
324
  __name: "DCollapse",
325
325
  props: {
326
326
  duration: {
@@ -346,37 +346,37 @@ const Ut = {
346
346
  },
347
347
  setup(e) {
348
348
  const t = e, o = (i) => ({
349
- height: i.style.height ? i.style.height : 0,
350
- width: i.style.width ? i.style.width : 0,
351
- position: i.style.position ? i.style.position : 0,
352
- visibility: i.style.visibility ? i.style.visibility : "hidden",
353
- overflow: i.style.overflow ? i.style.overflow : "none",
354
- paddingTop: i.style.paddingTop ? i.style.paddingTop : 0,
355
- paddingBottom: i.style.paddingBottom ? i.style.paddingBottom : 0,
356
- borderTopWidth: i.style.borderTopWidth ? i.style.borderTopWidth : 0,
357
- borderBottomWidth: i.style.borderBottomWidth ? i.style.borderBottomWidth : 0,
358
- marginTop: i.style.marginTop ? i.style.marginTop : 0,
359
- marginBottom: i.style.marginBottom ? i.style.marginBottom : 0
360
- }), n = (i, c) => {
349
+ height: i == null ? void 0 : i.style.height,
350
+ width: i == null ? void 0 : i.style.width,
351
+ position: i == null ? void 0 : i.style.position,
352
+ visibility: i == null ? void 0 : i.style.visibility,
353
+ overflow: i == null ? void 0 : i.style.overflow,
354
+ paddingTop: i == null ? void 0 : i.style.paddingTop,
355
+ paddingBottom: i == null ? void 0 : i.style.paddingBottom,
356
+ borderTopWidth: i == null ? void 0 : i.style.borderTopWidth,
357
+ borderBottomWidth: i == null ? void 0 : i.style.borderBottomWidth,
358
+ marginTop: i == null ? void 0 : i.style.marginTop,
359
+ marginBottom: i == null ? void 0 : i.style.marginBottom
360
+ }), s = (i, c) => {
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 = se, i.style.overflow = "hidden", c.height && c.height !== se ? c.height : h;
365
- }, s = (i, c, u, h, b) => {
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;
365
+ }, n = (i, c, u, h, b) => {
366
366
  const S = i.animate(h, b);
367
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: se,
372
+ height: ne,
373
373
  opacity: t.opacityClosed,
374
- paddingTop: se,
375
- paddingBottom: se,
376
- borderTopWidth: se,
377
- borderBottomWidth: se,
378
- marginTop: se,
379
- marginBottom: se
374
+ paddingTop: ne,
375
+ paddingBottom: ne,
376
+ borderTopWidth: ne,
377
+ borderBottomWidth: ne,
378
+ marginTop: ne,
379
+ marginBottom: ne
380
380
  },
381
381
  {
382
382
  height: i,
@@ -388,19 +388,19 @@ const Ut = {
388
388
  marginTop: c.marginTop,
389
389
  marginBottom: c.marginBottom
390
390
  }
391
- ], l = (i, c) => {
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
- }, r = (i, c) => {
391
+ ], r = (i, c) => {
392
+ const u = i, h = o(u), b = s(u, h), S = a(b, h), N = { duration: t.duration, easing: t.easingEnter };
393
+ n(u, h, c, S, N);
394
+ }, l = (i, c) => {
395
395
  const u = i, h = o(u), { height: b } = getComputedStyle(u);
396
396
  u.style.height = b, u.style.overflow = "hidden";
397
397
  const S = a(b, h).reverse(), N = { duration: t.duration, easing: t.easingLeave };
398
- s(u, h, c, S, N);
398
+ n(u, h, c, S, N);
399
399
  };
400
400
  return (i, c) => (d(), x(Ne, {
401
401
  css: !1,
402
- onEnter: l,
403
- onLeave: r
402
+ onEnter: r,
403
+ onLeave: l
404
404
  }, {
405
405
  default: I(() => [
406
406
  L(i.$slots, "default")
@@ -442,34 +442,34 @@ const Ut = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(e) {
445
- const t = e, o = Le(), n = w(!1), s = m(() => n && t.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
445
+ const t = e, o = Le(), s = w(!1), n = m(() => s && t.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), r = (l, i) => {
446
446
  const c = i.dataTransfer;
447
- if ([j.dragenter, j.dragover].includes(r) && t.dropEffect && (c.dropEffect = t.dropEffect), r === j.dragstart) {
447
+ if ([j.dragenter, j.dragover].includes(l) && t.dropEffect && (c.dropEffect = t.dropEffect), l === j.dragstart) {
448
448
  if (t.effectAllowed && (c.effectAllowed = t.effectAllowed), t.image || o.image) {
449
449
  let u;
450
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
- t.transferData !== void 0 && (De.data = t.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
452
+ t.transferData !== void 0 && (De.data = t.transferData, i.dataTransfer.setData("text", "")), s.value = !0;
453
453
  }
454
454
  };
455
- return (r, i) => (d(), x(X(e.tag), {
455
+ return (l, i) => (d(), x(X(e.tag), {
456
456
  draggable: t.draggable,
457
- onDrag: i[0] || (i[0] = (c) => l(E(j).drag, c)),
458
- onDragstart: i[1] || (i[1] = Z((c) => l(E(j).dragstart, c), ["stop"])),
459
- onDragenter: i[2] || (i[2] = (c) => l(E(j).dragenter, c)),
460
- onDragleave: i[3] || (i[3] = (c) => l(E(j).dragleave, c)),
461
- onDragend: i[4] || (i[4] = (c) => l(E(j).dragend, c))
457
+ onDrag: i[0] || (i[0] = (c) => r(E(j).drag, c)),
458
+ onDragstart: i[1] || (i[1] = Z((c) => r(E(j).dragstart, c), ["stop"])),
459
+ onDragenter: i[2] || (i[2] = (c) => r(E(j).dragenter, c)),
460
+ onDragleave: i[3] || (i[3] = (c) => r(E(j).dragleave, c)),
461
+ onDragend: i[4] || (i[4] = (c) => r(E(j).dragend, c))
462
462
  }, {
463
463
  default: I(() => [
464
- L(r.$slots, "default", { transferData: s.value }),
464
+ L(l.$slots, "default", { transferData: n.value }),
465
465
  e.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
467
467
  style: H(a.value)
468
468
  }, [
469
- L(r.$slots, "image", { transferData: s.value })
470
- ], 4)) : L(r.$slots, "image", {
469
+ L(l.$slots, "image", { transferData: n.value })
470
+ ], 4)) : L(l.$slots, "image", {
471
471
  key: 1,
472
- transferData: s.value
472
+ transferData: n.value
473
473
  })
474
474
  ]),
475
475
  _: 3
@@ -498,7 +498,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
498
498
  },
499
499
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
500
500
  setup(e, { emit: t }) {
501
- 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 = (M) => {
501
+ const o = e, s = w(null), n = w(!1), a = w(!1), r = w(!1), l = m(() => o.model.children && o.model.children.length), i = m(() => (v.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (M) => {
502
502
  t("nodeclick", { event: M, model: o.model });
503
503
  }, u = (M) => {
504
504
  t("nodeclick", M);
@@ -506,28 +506,28 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
506
506
  t("nodedrop", M);
507
507
  }, b = (M) => {
508
508
  t("nodecontext", M);
509
- }, 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), k = (M) => {
509
+ }, S = m(() => (v.actions.isItemSelected(o.treeId, o.model.id) ? "selected" : "") + (n.value ? "node-over " : "") + (a.value ? "node-top " : "") + (r.value ? "node-bottom " : "")), N = m(() => o.search ? !1 : o.model.draggable === !0), k = (M) => {
510
510
  t("nodedrop", { e: M, model: o.model });
511
511
  let y = De.data;
512
512
  if (y === void 0 || y.model === void 0)
513
- return s.value = !1, !1;
513
+ return n.value = !1, !1;
514
514
  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))
515
- return s.value = !1, a.value = !1, l.value = !1, !1;
515
+ return n.value = !1, a.value = !1, r.value = !1, !1;
516
516
  if (!v.state.trees[o.treeId].transfer && y.id !== o.treeId)
517
517
  return !1;
518
518
  let O = "";
519
- 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;
520
- }, W = (M) => {
519
+ a.value ? O = "before" : r.value ? O = "after" : O = "inside", v.actions.moveTreeNode(y.id, o.treeId, o.items, y.model.id, o.model.id, O), n.value = !1, a.value = !1, r.value = !1;
520
+ }, F = (M) => {
521
521
  t("nodedragover", { e: M, model: o.model });
522
522
  let y = De.data;
523
523
  if (y === void 0 || y.model === void 0)
524
- return s.value = !0, !1;
524
+ return n.value = !0, !1;
525
525
  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))
526
526
  return !1;
527
- const O = M.y, F = n.value.getBoundingClientRect().top, P = n.value.getBoundingClientRect().height, g = P / 3;
528
- O > F && O <= F + g ? (s.value = !1, a.value = !0, l.value = !1) : O < F + P && O >= F + P - g ? (s.value = !1, a.value = !1, l.value = !0) : (s.value = !0, a.value = !1, l.value = !1);
527
+ const O = M.y, W = s.value.getBoundingClientRect().top, P = s.value.getBoundingClientRect().height, g = P / 3;
528
+ O > W && O <= W + g ? (n.value = !1, a.value = !0, r.value = !1) : O < W + P && O >= W + P - g ? (n.value = !1, a.value = !1, r.value = !0) : (n.value = !0, a.value = !1, r.value = !1);
529
529
  }, R = () => {
530
- s.value = !1, a.value = !1, l.value = !1;
530
+ n.value = !1, a.value = !1, r.value = !1;
531
531
  }, C = m(() => o.model.title.startsWith("-")), B = m(() => {
532
532
  if (o.model.title.startsWith("-")) {
533
533
  let [M, ...y] = o.model.title.split(" ");
@@ -536,7 +536,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
536
536
  return null;
537
537
  });
538
538
  return (M, y) => {
539
- const O = wt("d-tree-item", !0), F = Re("touch");
539
+ const O = wt("d-tree-item", !0), W = Re("touch");
540
540
  return E(v).actions.beforeItem(o.treeId, e.model) ? C.value && !B.value ? (d(), f("li", ho, vo)) : C.value && B.value ? (d(), f("li", yo, [
541
541
  _("div", _o, A(E(v).actions.renderTitle(o.treeId, B.value)), 1)
542
542
  ])) : o.model.component ? (d(), f("li", bo, [
@@ -550,7 +550,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
550
550
  onDrop: Z(k, ["stop"]),
551
551
  onDragenter: y[1] || (y[1] = Z(() => {
552
552
  }, ["prevent"])),
553
- onDragover: Z(W, ["prevent", "stop"]),
553
+ onDragover: Z(F, ["prevent", "stop"]),
554
554
  onDragleave: Z(R, ["prevent"])
555
555
  }, {
556
556
  default: I(() => {
@@ -558,19 +558,19 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
558
558
  return [
559
559
  te((d(), f("div", {
560
560
  ref_key: "node",
561
- ref: n,
561
+ ref: s,
562
562
  class: D(S.value),
563
563
  onContextmenu: y[0] || (y[0] = Z((V) => t("nodecontext", { e: V, model: o.model }), ["prevent"]))
564
564
  }, [
565
565
  _("div", null, [
566
- o.model.icons && o.model.icons.pre && r.value && !o.search && !C.value ? (d(), x(X(de), {
566
+ o.model.icons && o.model.icons.pre && l.value && !o.search && !C.value ? (d(), x(X(de), {
567
567
  key: 0,
568
568
  component: E(ee).getters.getIcon(o.model.icons.pre.component),
569
569
  size: 18,
570
570
  color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
571
571
  class: D(i.value ? "tree-open-pre" : "")
572
572
  }, null, 8, ["component", "color", "class"])) : $("", !0),
573
- o.model.icons && o.model.icons.pre && !r.value && !o.search && !C.value ? (d(), x(X(de), {
573
+ o.model.icons && o.model.icons.pre && !l.value && !o.search && !C.value ? (d(), x(X(de), {
574
574
  key: 1,
575
575
  component: E(ee).getters.getIcon(o.model.icons.pre.component),
576
576
  size: 18,
@@ -590,7 +590,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
590
590
  ])
591
591
  ]),
592
592
  _("div", wo, [
593
- ((P = o.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(lo), {
593
+ ((P = o.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(ro), {
594
594
  key: 0,
595
595
  class: D([(g = o.model.badge) == null ? void 0 : g.class, "badge-sm"])
596
596
  }, {
@@ -599,7 +599,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
599
599
  ]),
600
600
  _: 1
601
601
  }, 8, ["class"])) : $("", !0),
602
- o.model.icons && o.model.icons.post && r.value && !o.search && !C.value ? (d(), x(X(de), {
602
+ o.model.icons && o.model.icons.post && l.value && !o.search && !C.value ? (d(), x(X(de), {
603
603
  key: 1,
604
604
  component: E(ee).getters.getIcon(o.model.icons.post.component),
605
605
  size: 20,
@@ -608,11 +608,11 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
608
608
  }, null, 8, ["component", "color", "class"])) : $("", !0)
609
609
  ])
610
610
  ], 34)), [
611
- [F, c]
611
+ [W, c]
612
612
  ]),
613
- oe(ro, null, {
613
+ oe(lo, null, {
614
614
  default: I(() => [
615
- r.value && i.value && !o.search ? (d(), f("ul", So, [
615
+ l.value && i.value && !o.search ? (d(), f("ul", So, [
616
616
  (d(!0), f(ie, null, ge(e.model.children, (V) => (d(), x(O, {
617
617
  class: "tree-item",
618
618
  key: V.id,
@@ -634,7 +634,7 @@ const fo = (e) => (St("data-v-e40122f5"), e = e(), Tt(), e), mo = {
634
634
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), f("li", mo));
635
635
  };
636
636
  }
637
- }, Do = /* @__PURE__ */ le(To, [["__scopeId", "data-v-e40122f5"]]);
637
+ }, Do = /* @__PURE__ */ re(To, [["__scopeId", "data-v-e40122f5"]]);
638
638
  function Lo(e) {
639
639
  return e = e || /* @__PURE__ */ new Map(), {
640
640
  /**
@@ -648,8 +648,8 @@ function Lo(e) {
648
648
  * @memberOf eventsBus
649
649
  */
650
650
  on(t, o) {
651
- const n = e.get(t);
652
- n ? n.push(o) : e.set(t, [o]);
651
+ const s = e.get(t);
652
+ s ? s.push(o) : e.set(t, [o]);
653
653
  },
654
654
  /**
655
655
  * Remove an event handler for the given type.
@@ -659,8 +659,8 @@ function Lo(e) {
659
659
  * @memberOf eventsBus
660
660
  */
661
661
  off(t, o) {
662
- const n = e.get(t);
663
- n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
662
+ const s = e.get(t);
663
+ s && (o ? s.splice(s.indexOf(o) >>> 0, 1) : e.set(t, []));
664
664
  },
665
665
  /**
666
666
  * Invoke all handlers for the given type.
@@ -673,11 +673,11 @@ function Lo(e) {
673
673
  * @memberOf eventsBus
674
674
  */
675
675
  emit(t, o) {
676
- let n = e.get(t);
677
- n && n.slice().map((s) => {
678
- s(o);
679
- }), n = e.get("*"), n && n.slice().map((s) => {
680
- s(t, o);
676
+ let s = e.get(t);
677
+ s && s.slice().map((n) => {
678
+ n(o);
679
+ }), s = e.get("*"), s && s.slice().map((n) => {
680
+ n(t, o);
681
681
  });
682
682
  }
683
683
  };
@@ -694,8 +694,8 @@ const U = Lo(), v = {
694
694
  return v.state.trees[e].selected;
695
695
  },
696
696
  // data - ноды, dataId - ID ноды родителя data
697
- getParentId(e, t, o, n = "id", s = "children", a = {}) {
698
- 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;
697
+ getParentId(e, t, o, s = "id", n = "children", a = {}) {
698
+ return o && e && (e.find((r) => r[s] === o ? (a.found = t, r) : v.getters.getParentId(r[n], r.id, o, s, n, a)), a.found) ? a.found : !1;
699
699
  }
700
700
  },
701
701
  mutations: {
@@ -709,8 +709,8 @@ const U = Lo(), v = {
709
709
  }
710
710
  },
711
711
  actions: {
712
- initTreeStore(e, t, o, n, s, a, l) {
713
- 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;
712
+ initTreeStore(e, t, o, s, n, a, r) {
713
+ 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 = s, v.state.trees[e].transfer = n, v.state.trees[e].renderTitle = a, v.state.trees[e].beforeItem = r;
714
714
  },
715
715
  renderTitle(e, t) {
716
716
  return v.state.trees[e].renderTitle ? v.state.trees[e].renderTitle(t) : t;
@@ -727,46 +727,46 @@ const U = Lo(), v = {
727
727
  isTreeExpanded(e) {
728
728
  return v.state.trees[e].expanded;
729
729
  },
730
- isChildOfParent(e, t, o, n) {
731
- const s = v.actions.deepSearch(t, o);
732
- if (s && s.children) {
733
- for (let a = 0; a < s.children.length; a++)
734
- if (s.children[a].id === n)
730
+ isChildOfParent(e, t, o, s) {
731
+ const n = v.actions.deepSearch(t, o);
732
+ if (n && n.children) {
733
+ for (let a = 0; a < n.children.length; a++)
734
+ if (n.children[a].id === s)
735
735
  return !0;
736
736
  }
737
737
  return !1;
738
738
  },
739
739
  // Является ли нода родителем указанного потомка
740
- isParentOfChild(e, t, o, n) {
741
- const s = v.actions.deepSearch(t, o);
742
- return !!(s && s.children && v.actions.deepSearch(s.children, n));
740
+ isParentOfChild(e, t, o, s) {
741
+ const n = v.actions.deepSearch(t, o);
742
+ return !!(n && n.children && v.actions.deepSearch(n.children, s));
743
743
  },
744
- deepSearch(e, t, o = "id", n = "children", s = {}) {
745
- 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;
744
+ deepSearch(e, t, o = "id", s = "children", n = {}) {
745
+ return t && e && (e.find((a) => a[o] === t ? (n.found = a, a) : v.actions.deepSearch(a[s], t, o, s, n)), n.found) ? n.found : !1;
746
746
  },
747
- deepSearchByTitle(e, t, o = "title", n = "children", s = []) {
747
+ deepSearchByTitle(e, t, o = "title", s = "children", n = []) {
748
748
  if (t && e && (e.find((a) => {
749
- const l = new RegExp(t, "gi");
750
- a[o].toString().toLowerCase().match(l) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], t, o, n, s);
751
- }), s)) {
752
- for (let a = 0; a < s.length; a++)
749
+ const r = new RegExp(t, "gi");
750
+ a[o].toString().toLowerCase().match(r) !== null && n.push(a), v.actions.deepSearchByTitle(a[s], t, o, s, n);
751
+ }), n)) {
752
+ for (let a = 0; a < n.length; a++)
753
753
  ;
754
- return s;
754
+ return n;
755
755
  }
756
- return s;
756
+ return n;
757
757
  },
758
- moveTreeNode(e, t, o, n, s, a) {
759
- const l = v.actions.deleteTreeNode(o, n);
760
- v.actions.insertTreeNode(o, s, l, a), U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: l.id, target: s, position: a });
758
+ moveTreeNode(e, t, o, s, n, a) {
759
+ const r = v.actions.deleteTreeNode(o, s);
760
+ v.actions.insertTreeNode(o, n, r, a), U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: r.id, target: n, position: a });
761
761
  },
762
- insertTreeNode(e, t, o, n) {
762
+ insertTreeNode(e, t, o, s) {
763
763
  if (e)
764
- for (let s = 0; s < e.length; s++) {
765
- if (e[s].id === t) {
766
- let l = s;
767
- 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];
764
+ for (let n = 0; n < e.length; n++) {
765
+ if (e[n].id === t) {
766
+ let r = n;
767
+ return s === "after" ? (r++, e.splice(r, 0, o)) : s === "before" ? e.splice(r, 0, o) : s === "inside" && (Object.hasOwn(e[n], "children") || (e[n].children = [], e[n].opened = !0), e[n].children.splice(0, 0, o)), e[n];
768
768
  }
769
- const a = this.insertTreeNode(e[s].children, t, o, n);
769
+ const a = this.insertTreeNode(e[n].children, t, o, s);
770
770
  if (a)
771
771
  return a;
772
772
  }
@@ -775,12 +775,12 @@ const U = Lo(), v = {
775
775
  if (e)
776
776
  for (let o = 0; o < e.length; o++) {
777
777
  if (e[o].id === t) {
778
- const s = e[o];
779
- return e.splice(o, 1), s;
778
+ const n = e[o];
779
+ return e.splice(o, 1), n;
780
780
  }
781
- const n = v.actions.deleteTreeNode(e[o].children, t);
782
- if (n)
783
- return n;
781
+ const s = v.actions.deleteTreeNode(e[o].children, t);
782
+ if (s)
783
+ return s;
784
784
  }
785
785
  }
786
786
  }
@@ -791,9 +791,9 @@ const U = Lo(), v = {
791
791
  },
792
792
  emits: Object.keys(j),
793
793
  setup(e, { expose: t, emit: o }) {
794
- let n = Oe({});
795
- const s = w("false"), a = w(null), l = /* @__PURE__ */ new Set(), r = m(() => s.value && n), i = (u, h) => {
796
- n = De.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
+ let s = Oe({});
795
+ const n = w("false"), a = w(null), r = /* @__PURE__ */ new Set(), l = m(() => n.value && s), i = (u, h) => {
796
+ s = De.data, o(u, h, s), u === j.dragenter && (r.size || h.target === a.value) && r.add(h.target), u === j.dragleave && r.delete(h.target), u === j.drop && r.clear(), n.value = !!r.size;
797
797
  };
798
798
  return t({
799
799
  elementSize: () => ht(a)
@@ -806,7 +806,7 @@ const U = Lo(), v = {
806
806
  onDrop: h[3] || (h[3] = Z((b) => i(E(j).drop, b), ["prevent"]))
807
807
  }, {
808
808
  default: I(() => [
809
- L(u.$slots, "default", { transferData: r.value })
809
+ L(u.$slots, "default", { transferData: l.value })
810
810
  ]),
811
811
  _: 3
812
812
  }, 544));
@@ -830,25 +830,25 @@ const U = Lo(), v = {
830
830
  },
831
831
  emits: ["select"],
832
832
  setup(e, { expose: t, emit: o }) {
833
- const n = e;
834
- let s = w(null), a = w(!1);
835
- const l = () => {
833
+ const s = e;
834
+ let n = w(null), a = w(!1);
835
+ const r = () => {
836
836
  U.emit("menu-show-request"), a.value = !0;
837
- }, r = () => {
837
+ }, l = () => {
838
838
  var b;
839
- (b = s.value) == null || b.collapseAll(), a.value = !1;
839
+ (b = n.value) == null || b.collapseAll(), a.value = !1;
840
840
  }, i = () => a.value;
841
841
  U.on("menu-show-request", () => {
842
- r();
842
+ l();
843
843
  }), t({
844
- show: l,
845
- hide: r,
846
- elementSize: () => s.value.elementSize(),
844
+ show: r,
845
+ hide: l,
846
+ elementSize: () => n.value.elementSize(),
847
847
  isShowed: i,
848
- itemsCount: () => s.value.itemsCount()
848
+ itemsCount: () => n.value.itemsCount()
849
849
  });
850
850
  const h = (b) => {
851
- o("select", b), b.model.children || r();
851
+ o("select", b), b.model.children || l();
852
852
  };
853
853
  return (b, S) => {
854
854
  const N = Re("click-outside");
@@ -856,16 +856,16 @@ const U = Lo(), v = {
856
856
  E(a) ? te((d(), x(vt, {
857
857
  key: 0,
858
858
  ref_key: "treeRef",
859
- ref: s,
860
- items: n.items,
861
- "no-select": n.noSelect,
862
- class: D(n.class),
863
- style: H(n.style),
859
+ ref: n,
860
+ items: s.items,
861
+ "no-select": s.noSelect,
862
+ class: D(s.class),
863
+ style: H(s.style),
864
864
  onSelect: h,
865
- "render-title": n.renderItemTitle,
866
- "before-item": n.beforeItem
865
+ "render-title": s.renderItemTitle,
866
+ "before-item": s.beforeItem
867
867
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
868
- [N, () => r()]
868
+ [N, () => l()]
869
869
  ]) : $("", !0)
870
870
  ]);
871
871
  };
@@ -879,13 +879,13 @@ const U = Lo(), v = {
879
879
  },
880
880
  emits: ["select"],
881
881
  setup(e, { expose: t, emit: o }) {
882
- const n = e, s = w(null), a = w(0), l = w(0), r = m(() => ({
882
+ const s = e, n = w(null), a = w(0), r = w(0), l = m(() => ({
883
883
  left: a.value + "px",
884
- top: l.value + "px"
884
+ top: r.value + "px"
885
885
  })), i = (u) => {
886
- s.value.show(), ut(() => {
887
- const h = s.value.elementSize(), b = window.innerWidth, S = window.innerHeight;
888
- 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();
886
+ n.value.show(), ut(() => {
887
+ const h = n.value.elementSize(), b = window.innerWidth, S = window.innerHeight;
888
+ a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, r.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, n.value.itemsCount() === 0 && n.value.hide();
889
889
  });
890
890
  }, c = (u) => {
891
891
  o("select", u);
@@ -894,14 +894,14 @@ const U = Lo(), v = {
894
894
  show: i
895
895
  }), (u, h) => (d(), x(gt, {
896
896
  ref_key: "dMenuRef",
897
- ref: s,
897
+ ref: n,
898
898
  onSelect: c,
899
- items: n.items,
900
- style: H(r.value),
899
+ items: s.items,
900
+ style: H(l.value),
901
901
  class: "context-menu",
902
902
  "no-select": !0,
903
- "render-item-title": n.renderItemTitle,
904
- "before-item": n.beforeItem
903
+ "render-item-title": s.renderItemTitle,
904
+ "before-item": s.beforeItem
905
905
  }, null, 8, ["items", "style", "render-item-title", "before-item"]));
906
906
  }
907
907
  }, vt = {
@@ -939,51 +939,51 @@ const U = Lo(), v = {
939
939
  },
940
940
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
941
941
  setup(e, { expose: t, emit: o }) {
942
- const n = e, s = w(null), a = w(!1), l = w(null), r = pt().uid;
943
- v.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
942
+ const s = e, n = w(null), a = w(!1), r = w(null), l = pt().uid;
943
+ v.actions.initTreeStore(l, s.noSelect, s.multiSelect, s.expanded, s.transfer, s.renderTitle, s.beforeItem);
944
944
  const i = (g, V) => {
945
945
  console.log(g, V);
946
946
  };
947
- U.on(`expand-${r}`, (g) => {
947
+ U.on(`expand-${l}`, (g) => {
948
948
  o("expand", g);
949
- }), U.on(`collapse-${r}`, (g) => {
949
+ }), U.on(`collapse-${l}`, (g) => {
950
950
  o("collapse", g);
951
- }), U.on(`move-${r}`, (g) => {
951
+ }), U.on(`move-${l}`, (g) => {
952
952
  o("move", g);
953
953
  });
954
- const c = m(() => n.search ? v.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (g = null) => {
955
- v.mutations.setItemSelect(r, g.model), v.actions.toggleItem(r, g.model), o("select", g);
954
+ const c = m(() => s.search ? v.actions.deepSearchByTitle(s.items, s.search) : s.items), u = (g = null) => {
955
+ v.mutations.setItemSelect(l, g.model), v.actions.toggleItem(l, g.model), o("select", g);
956
956
  }, h = (g = null) => {
957
957
  o("over", g);
958
958
  }, b = (g = null) => {
959
959
  o("drop", g);
960
- }, S = () => s.value.elementSize(), N = () => {
961
- for (let g = 0; g < n.items.length; g++)
962
- n.items[g].expanded = !0;
960
+ }, S = () => n.value.elementSize(), N = () => {
961
+ for (let g = 0; g < s.items.length; g++)
962
+ s.items[g].expanded = !0;
963
963
  }, k = () => {
964
- for (let g = 0; g < n.items.length; g++)
965
- n.items[g].expanded = !1;
966
- }, W = () => r, R = (g) => v.actions.deepSearch(n.items, g), C = (g) => {
967
- R(g) && v.mutations.setItemSelect(r, R(g));
964
+ for (let g = 0; g < s.items.length; g++)
965
+ s.items[g].expanded = !1;
966
+ }, F = () => l, R = (g) => v.actions.deepSearch(s.items, g), C = (g) => {
967
+ R(g) && v.mutations.setItemSelect(l, R(g));
968
968
  }, B = (g) => {
969
- n.contextClick({ e: g.e, model: g.model, target: l.value });
970
- }, M = (g) => n.contextBeforeClick({ model: g, target: l.value }), y = m(() => n.context), O = (g) => (y.value && (l.value = g.model, a.value.show(g.e)), !1), F = () => P(c.value), P = (g) => {
969
+ s.contextClick({ e: g.e, model: g.model, target: r.value });
970
+ }, M = (g) => s.contextBeforeClick({ model: g, target: r.value }), y = m(() => s.context), O = (g) => (y.value && (r.value = g.model, a.value.show(g.e)), !1), W = () => P(c.value), P = (g) => {
971
971
  let V = 0;
972
972
  for (let p = 0; p < g.length; p++)
973
- V += v.actions.beforeItem(r, g[p]) ? 1 : 0, g[p].children && g[p].children.length > 0 && (V += P(g[p].children));
973
+ V += v.actions.beforeItem(l, g[p]) ? 1 : 0, g[p].children && g[p].children.length > 0 && (V += P(g[p].children));
974
974
  return V;
975
975
  };
976
976
  return t({
977
977
  elementSize: S,
978
978
  expandAll: N,
979
979
  collapseAll: k,
980
- getId: W,
980
+ getId: F,
981
981
  getNode: R,
982
982
  selectNode: C,
983
- itemsCount: F
983
+ itemsCount: W
984
984
  }), (g, V) => (d(), x(Co, {
985
985
  ref_key: "treeRef",
986
- ref: s,
986
+ ref: n,
987
987
  class: "tree",
988
988
  tag: "ul",
989
989
  onDrop: Z(i, ["stop"])
@@ -992,9 +992,9 @@ const U = Lo(), v = {
992
992
  (d(!0), f(ie, null, ge(c.value, (p) => (d(), x(Do, {
993
993
  key: p.id,
994
994
  model: p,
995
- treeId: E(r),
996
- items: n.items,
997
- search: n.search,
995
+ treeId: E(l),
996
+ items: s.items,
997
+ search: s.search,
998
998
  onNodeclick: u,
999
999
  onNodedragover: h,
1000
1000
  onNodedrop: b,
@@ -1026,14 +1026,14 @@ const Eo = {
1026
1026
  },
1027
1027
  setup(e) {
1028
1028
  const t = e;
1029
- return (o, n) => (d(), x(vt, {
1029
+ return (o, s) => (d(), x(vt, {
1030
1030
  class: "accordion",
1031
1031
  items: t.items,
1032
1032
  "no-select": t.noSelect,
1033
1033
  "render-title": t.renderTitle
1034
1034
  }, null, 8, ["items", "no-select", "render-title"]));
1035
1035
  }
1036
- }, Ds = /* @__PURE__ */ le(Eo, [["__scopeId", "data-v-642edace"]]), Bo = {
1036
+ }, Dn = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-642edace"]]), Bo = {
1037
1037
  __name: "DLayoutHeader",
1038
1038
  props: {
1039
1039
  fixed: {
@@ -1068,14 +1068,14 @@ const Eo = {
1068
1068
  },
1069
1069
  setup(e) {
1070
1070
  const t = e, o = m(() => {
1071
- 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;` : "";
1072
- return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1071
+ const { fixed: s, zIndex: n, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1072
+ return `position:${u};z-index:${n};${h}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1073
1073
  });
1074
- return (n, s) => (d(), f("header", {
1074
+ return (s, n) => (d(), f("header", {
1075
1075
  class: "d-layout-header",
1076
1076
  style: H(o.value)
1077
1077
  }, [
1078
- L(n.$slots, "default")
1078
+ L(s.$slots, "default")
1079
1079
  ], 4));
1080
1080
  }
1081
1081
  }, Mo = {
@@ -1117,14 +1117,14 @@ const Eo = {
1117
1117
  },
1118
1118
  setup(e) {
1119
1119
  const t = e, o = m(() => {
1120
- 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;` : "";
1121
- 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};`;
1120
+ const { fixed: s, top: n, zIndex: a, minWidth: r, height: l, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = t, h = s ? "fixed" : "static", b = t.useMinWidthLayout ? `min-width: ${r}px;` : "";
1121
+ return `position:${h};top:${n}px;z-index:${a};${b}height:${l}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1122
1122
  });
1123
- return (n, s) => (d(), f("div", {
1123
+ return (s, n) => (d(), f("div", {
1124
1124
  class: "d-layout-tab",
1125
1125
  style: H(o.value)
1126
1126
  }, [
1127
- L(n.$slots, "default")
1127
+ L(s.$slots, "default")
1128
1128
  ], 4));
1129
1129
  }
1130
1130
  }, No = {
@@ -1162,14 +1162,14 @@ const Eo = {
1162
1162
  },
1163
1163
  setup(e) {
1164
1164
  const t = e, o = m(() => {
1165
- 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;` : "";
1166
- return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1165
+ const { fixed: s, zIndex: n, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", h = t.useMinWidthLayout ? `min-width:${a}px;` : "";
1166
+ return `position:${u};z-index:${n};${h}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1167
1167
  });
1168
- return (n, s) => (d(), f("footer", {
1168
+ return (s, n) => (d(), f("footer", {
1169
1169
  class: "d-layout-footer",
1170
1170
  style: H(o.value)
1171
1171
  }, [
1172
- L(n.$slots, "default")
1172
+ L(s.$slots, "default")
1173
1173
  ], 4));
1174
1174
  }
1175
1175
  }, Ro = {
@@ -1202,14 +1202,14 @@ const Eo = {
1202
1202
  },
1203
1203
  setup(e) {
1204
1204
  const t = e, o = m(() => {
1205
- const { zIndex: n, width: s, paddingTop: a, transitionDuration: l, transitionTimingFunction: r } = t;
1206
- return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${r};`;
1205
+ const { zIndex: s, width: n, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = t;
1206
+ return `z-index:${s};width:${n}px;padding-top:${a}px;transition-duration:${r}ms;transition-timing-function:${l};`;
1207
1207
  });
1208
- return (n, s) => (d(), f("aside", {
1208
+ return (s, n) => (d(), f("aside", {
1209
1209
  class: "d-layout-sidebar",
1210
1210
  style: H(o.value)
1211
1211
  }, [
1212
- L(n.$slots, "default")
1212
+ L(s.$slots, "default")
1213
1213
  ], 4));
1214
1214
  }
1215
1215
  }, Oo = {
@@ -1239,39 +1239,39 @@ const Eo = {
1239
1239
  },
1240
1240
  setup(e) {
1241
1241
  const t = e, o = m(() => {
1242
- const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: l, transitionTimingFunction: r } = t, i = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1243
- return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
1242
+ const { paddingTop: s, paddingBottom: n, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = t, i = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1243
+ return `padding-top:${s}px;padding-bottom:${n}px;padding-left:${a}px;${i}transition-duration:${r}ms;transition-timing-function:${l};`;
1244
1244
  });
1245
- return (n, s) => (d(), f("main", {
1245
+ return (s, n) => (d(), f("main", {
1246
1246
  style: H(o.value),
1247
1247
  class: "d-layout-content"
1248
1248
  }, [
1249
- L(n.$slots, "default")
1249
+ L(s.$slots, "default")
1250
1250
  ], 4));
1251
1251
  }
1252
1252
  };
1253
1253
  function Ao(e) {
1254
1254
  const t = w(0), o = m(() => `transform: translateX(${-t.value}px);`);
1255
- let n = !1;
1256
- function s(u) {
1255
+ let s = !1;
1256
+ function n(u) {
1257
1257
  t.value = u;
1258
1258
  }
1259
1259
  function a() {
1260
1260
  var u;
1261
1261
  const h = ((u = document.scrollingElement) === null || u === void 0 ? void 0 : u.scrollLeft) || 0;
1262
- s(h);
1262
+ n(h);
1263
1263
  }
1264
- function l() {
1264
+ function r() {
1265
1265
  a();
1266
1266
  }
1267
- function r() {
1267
+ function l() {
1268
1268
  document.addEventListener("scroll", a);
1269
1269
  }
1270
1270
  function i() {
1271
- n && document.removeEventListener("scroll", a);
1271
+ s && document.removeEventListener("scroll", a);
1272
1272
  }
1273
1273
  function c() {
1274
- l(), r(), n = !0;
1274
+ r(), l(), s = !0;
1275
1275
  }
1276
1276
  return ft(e, (u) => {
1277
1277
  u ? c() : i();
@@ -1279,7 +1279,7 @@ function Ao(e) {
1279
1279
  i();
1280
1280
  }), o;
1281
1281
  }
1282
- const Ho = 1001, Vo = 999, zo = 998, Ls = {
1282
+ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1283
1283
  __name: "DLayoutAdmin",
1284
1284
  props: {
1285
1285
  mode: {
@@ -1370,7 +1370,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1370
1370
  },
1371
1371
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1372
1372
  setup(e, { emit: t }) {
1373
- const o = e, n = m(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), s = m(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ao(s), l = m(() => o.fixedHeaderAndTab ? a.value : ""), r = m(() => o.fixedFooter ? a.value : ""), i = m(() => {
1373
+ const o = e, s = m(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), n = m(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ao(n), r = m(() => o.fixedHeaderAndTab ? a.value : ""), l = m(() => o.fixedFooter ? a.value : ""), i = m(() => {
1374
1374
  const { transitionDuration: y, transitionTimingFunction: O } = o;
1375
1375
  return {
1376
1376
  transitionDuration: y,
@@ -1391,9 +1391,9 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1391
1391
  const { transitionDuration: y, transitionTimingFunction: O } = o;
1392
1392
  return `background-color:${o.maskBg};transition-duration:${y}ms;transition-timing-function:${O};`;
1393
1393
  }), k = m(() => {
1394
- const { sidebarWidth: y, sidebarCollapsedWidth: O } = o, F = o.isMobile ? 0 : O, P = h.value ? F : y;
1394
+ const { sidebarWidth: y, sidebarCollapsedWidth: O } = o, W = o.isMobile ? 0 : O, P = h.value ? W : y;
1395
1395
  return o.sidebarVisible ? P : 0;
1396
- }), W = m(() => o.isMobile ? 0 : k.value), R = m(() => c.value ? W.value : 0), C = m(
1396
+ }), F = m(() => o.isMobile ? 0 : k.value), R = m(() => c.value ? F.value : 0), C = m(
1397
1397
  () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1398
1398
  ), B = m(() => {
1399
1399
  let y = 0;
@@ -1401,7 +1401,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1401
1401
  }), M = m(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
1402
1402
  return (y, O) => (d(), f("div", {
1403
1403
  class: "d-layout",
1404
- style: H(n.value)
1404
+ style: H(s.value)
1405
1405
  }, [
1406
1406
  e.headerVisible ? (d(), x(Bo, ue({ key: 0 }, i.value, {
1407
1407
  fixed: e.fixedHeaderAndTab,
@@ -1409,7 +1409,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1409
1409
  "min-width": e.minWidth,
1410
1410
  height: e.headerHeight,
1411
1411
  "padding-left": R.value,
1412
- style: l.value
1412
+ style: r.value
1413
1413
  }), {
1414
1414
  default: I(() => [
1415
1415
  L(y.$slots, "header")
@@ -1422,8 +1422,8 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1422
1422
  "min-width": e.minWidth,
1423
1423
  top: e.headerHeight,
1424
1424
  height: e.tabHeight,
1425
- "padding-left": W.value,
1426
- style: l.value
1425
+ "padding-left": F.value,
1426
+ style: r.value
1427
1427
  }), {
1428
1428
  default: I(() => [
1429
1429
  L(y.$slots, "tab")
@@ -1449,7 +1449,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1449
1449
  oe(Oo, ue(i.value, {
1450
1450
  "padding-top": B.value,
1451
1451
  "padding-bottom": M.value,
1452
- "padding-left": W.value,
1452
+ "padding-left": F.value,
1453
1453
  "overflow-hidden": e.addMainOverflowHidden
1454
1454
  }), {
1455
1455
  default: I(() => [
@@ -1462,8 +1462,8 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1462
1462
  "z-index": zo,
1463
1463
  "min-width": e.minWidth,
1464
1464
  height: e.footerHeight,
1465
- "padding-left": W.value,
1466
- style: r.value
1465
+ "padding-left": F.value,
1466
+ style: l.value
1467
1467
  }), {
1468
1468
  default: I(() => [
1469
1469
  L(y.$slots, "footer")
@@ -1491,7 +1491,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1491
1491
  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);
1492
1492
  }
1493
1493
  }
1494
- }, Cs = {
1494
+ }, Cn = {
1495
1495
  __name: "DConfigProvider",
1496
1496
  props: {
1497
1497
  theme: {
@@ -1501,10 +1501,10 @@ const Ho = 1001, Vo = 999, zo = 998, Ls = {
1501
1501
  },
1502
1502
  setup(e) {
1503
1503
  const t = e;
1504
- return pe.mutations.setTheme(t.theme), (o, n) => L(o.$slots, "default");
1504
+ return pe.mutations.setTheme(t.theme), (o, s) => L(o.$slots, "default");
1505
1505
  }
1506
1506
  };
1507
- const Is = {
1507
+ const In = {
1508
1508
  __name: "DScrollProvider",
1509
1509
  props: {
1510
1510
  xHide: {
@@ -1520,19 +1520,19 @@ const Is = {
1520
1520
  const t = e;
1521
1521
  Ae((a) => ({
1522
1522
  e35a6f9a: o.value,
1523
- e35a6f98: n.value
1523
+ e35a6f98: s.value
1524
1524
  }));
1525
- const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible"), s = (a) => {
1525
+ const o = m(() => t.xHide ? "hidden" : "visible"), s = m(() => t.yHide ? "hidden" : "visible"), n = (a) => {
1526
1526
  document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
1527
1527
  };
1528
1528
  return fe(() => {
1529
- s("colored-scroller");
1530
- }), (a, l) => (d(), f("div", null, [
1529
+ n("colored-scroller");
1530
+ }), (a, r) => (d(), f("div", null, [
1531
1531
  L(a.$slots, "default")
1532
1532
  ]));
1533
1533
  }
1534
1534
  };
1535
- const Wo = {
1535
+ const Fo = {
1536
1536
  __name: "DScroll",
1537
1537
  props: {
1538
1538
  autoHide: {
@@ -1550,18 +1550,18 @@ const Wo = {
1550
1550
  },
1551
1551
  setup(e) {
1552
1552
  const t = e;
1553
- Ae((s) => ({
1553
+ Ae((n) => ({
1554
1554
  c07fa29a: o.value,
1555
- c07fa298: n.value
1555
+ c07fa298: s.value
1556
1556
  }));
1557
- const o = m(() => t.xHide ? "hidden" : "visible"), n = m(() => t.yHide ? "hidden" : "visible");
1558
- return (s, a) => (d(), f("div", {
1557
+ const o = m(() => t.xHide ? "hidden" : "visible"), s = m(() => t.yHide ? "hidden" : "visible");
1558
+ return (n, a) => (d(), f("div", {
1559
1559
  class: D(t.autoHide ? "d-scroll-hide" : "d-scroll")
1560
1560
  }, [
1561
- L(s.$slots, "default", {}, void 0, !0)
1561
+ L(n.$slots, "default", {}, void 0, !0)
1562
1562
  ], 2));
1563
1563
  }
1564
- }, Es = /* @__PURE__ */ le(Wo, [["__scopeId", "data-v-d50b3609"]]), Fo = { class: "modal-content" }, Po = { class: "modal-header" }, jo = { class: "modal-title" }, Xo = { class: "modal-body" }, Yo = { class: "modal-footer" }, yt = {
1564
+ }, En = /* @__PURE__ */ re(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" }, yt = {
1565
1565
  __name: "DModal",
1566
1566
  props: {
1567
1567
  show: Boolean,
@@ -1572,16 +1572,16 @@ const Wo = {
1572
1572
  },
1573
1573
  emits: ["open", "close"],
1574
1574
  setup(e, { expose: t, emit: o }) {
1575
- const n = e, s = w(null), a = w(!1);
1576
- a.value = n == null ? void 0 : n.show;
1577
- const l = () => {
1578
- a.value = !0, o("open", s);
1579
- }, r = () => {
1580
- a.value = !1, o("close", s);
1575
+ const s = e, n = w(null), a = w(!1);
1576
+ a.value = s == null ? void 0 : s.show;
1577
+ const r = () => {
1578
+ a.value = !0, o("open", n);
1579
+ }, l = () => {
1580
+ a.value = !1, o("close", n);
1581
1581
  };
1582
1582
  return t({
1583
- show: l,
1584
- hide: r
1583
+ show: r,
1584
+ hide: l
1585
1585
  }), (i, c) => {
1586
1586
  const u = Re("keydown");
1587
1587
  return d(), x(ct, { to: "body" }, [
@@ -1590,14 +1590,14 @@ const Wo = {
1590
1590
  a.value ? te((d(), f("div", {
1591
1591
  key: 0,
1592
1592
  ref_key: "modalRef",
1593
- ref: s,
1593
+ ref: n,
1594
1594
  class: "modal"
1595
1595
  }, [
1596
1596
  _("div", {
1597
1597
  class: "modal-dialog",
1598
- style: H({ width: n.width, maxWidth: n.maxWidth })
1598
+ style: H({ width: s.width, maxWidth: s.maxWidth })
1599
1599
  }, [
1600
- _("div", Fo, [
1600
+ _("div", Wo, [
1601
1601
  _("div", Po, [
1602
1602
  _("h5", jo, [
1603
1603
  L(i.$slots, "modal-title")
@@ -1612,7 +1612,7 @@ const Wo = {
1612
1612
  ])
1613
1613
  ], 4)
1614
1614
  ])), [
1615
- [u, r, "Escape"]
1615
+ [u, l, "Escape"]
1616
1616
  ]) : $("", !0)
1617
1617
  ]),
1618
1618
  _: 3
@@ -1625,19 +1625,19 @@ function Me(e) {
1625
1625
  e === void 0 && (e = ce.value.comp.returnValue()), ce.value.resolve(e), ce.value = null;
1626
1626
  }
1627
1627
  function _t(e, t, o = "default") {
1628
- return new Promise((n) => {
1628
+ return new Promise((s) => {
1629
1629
  ce.value = {
1630
1630
  dialog: e,
1631
1631
  props: t,
1632
1632
  wrapper: o,
1633
- resolve: n
1633
+ resolve: s
1634
1634
  };
1635
1635
  });
1636
1636
  }
1637
1637
  var Uo = (e, t) => {
1638
1638
  const o = e.__vccOpts || e;
1639
- for (const [n, s] of t)
1640
- o[n] = s;
1639
+ for (const [s, n] of t)
1640
+ o[s] = n;
1641
1641
  return o;
1642
1642
  };
1643
1643
  const qo = Ct({
@@ -1660,7 +1660,7 @@ const qo = Ct({
1660
1660
  };
1661
1661
  }
1662
1662
  });
1663
- function Go(e, t, o, n, s, a) {
1663
+ function Go(e, t, o, s, n, a) {
1664
1664
  return d(), x(Ne, It(Et(e.transitionAttrs)), {
1665
1665
  default: I(() => [
1666
1666
  e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : $("", !0)
@@ -1679,7 +1679,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1679
1679
  const o = e;
1680
1680
  return t({
1681
1681
  returnValue: () => !0
1682
- }), (s, a) => (d(), f("div", null, [
1682
+ }), (n, a) => (d(), f("div", null, [
1683
1683
  oe(yt, { show: !0 }, {
1684
1684
  "modal-title": I(() => [
1685
1685
  K(A(o.title), 1)
@@ -1690,7 +1690,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1690
1690
  "modal-footer": I(() => [
1691
1691
  _("div", Ko, [
1692
1692
  oe(ae, {
1693
- onClick: a[0] || (a[0] = (l) => E(Me)())
1693
+ onClick: a[0] || (a[0] = (r) => E(Me)())
1694
1694
  }, {
1695
1695
  default: I(() => [
1696
1696
  K("Закрыть")
@@ -1703,7 +1703,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1703
1703
  })
1704
1704
  ]));
1705
1705
  }
1706
- }, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, en = {
1706
+ }, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, es = {
1707
1707
  __name: "DConfirmDialog",
1708
1708
  props: {
1709
1709
  title: String,
@@ -1713,7 +1713,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1713
1713
  const o = e;
1714
1714
  return t({
1715
1715
  returnValue: () => !0
1716
- }), (s, a) => (d(), f("div", null, [
1716
+ }), (n, a) => (d(), f("div", null, [
1717
1717
  oe(yt, { show: !0 }, {
1718
1718
  "modal-title": I(() => [
1719
1719
  K(A(o.title), 1)
@@ -1724,7 +1724,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1724
1724
  "modal-footer": I(() => [
1725
1725
  _("div", Qo, [
1726
1726
  oe(ae, {
1727
- onClick: a[0] || (a[0] = (l) => E(Me)())
1727
+ onClick: a[0] || (a[0] = (r) => E(Me)())
1728
1728
  }, {
1729
1729
  default: I(() => [
1730
1730
  K("Да")
@@ -1733,7 +1733,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1733
1733
  }),
1734
1734
  oe(ae, {
1735
1735
  class: "button-red",
1736
- onClick: a[1] || (a[1] = (l) => E(Me)(!1))
1736
+ onClick: a[1] || (a[1] = (r) => E(Me)(!1))
1737
1737
  }, {
1738
1738
  default: I(() => [
1739
1739
  K("Нет")
@@ -1746,7 +1746,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1746
1746
  })
1747
1747
  ]));
1748
1748
  }
1749
- }, tn = { class: "dropdown" }, Bs = {
1749
+ }, ts = { class: "dropdown" }, Bn = {
1750
1750
  __name: "DDropdown",
1751
1751
  props: {
1752
1752
  class: String,
@@ -1766,31 +1766,31 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1766
1766
  },
1767
1767
  emits: ["select", "click"],
1768
1768
  setup(e, { expose: t, emit: o }) {
1769
- const n = e, s = Le(), a = w(null), l = w(null), r = w(0), i = w(0), c = (S) => {
1769
+ const s = e, n = Le(), a = w(null), r = w(null), l = w(0), i = w(0), c = (S) => {
1770
1770
  if (o("click", S), a.value.isShowed()) {
1771
1771
  a.value.hide();
1772
1772
  return;
1773
1773
  }
1774
1774
  a.value.show(), ut(() => {
1775
- const N = a.value.elementSize(), k = l.value.elementSize(), W = window.innerWidth, R = window.innerHeight;
1776
- r.value = W - (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;
1775
+ const N = a.value.elementSize(), k = r.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1776
+ l.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;
1777
1777
  });
1778
1778
  }, u = (S) => {
1779
1779
  o("select", S);
1780
- }, h = m(() => ({ left: r.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1780
+ }, h = m(() => ({ left: l.value + "px", top: i.value + "px", position: s.bodyAsParent ? "absolute" : "fixed", ...s.menuStyle }));
1781
1781
  t({
1782
1782
  show: c
1783
1783
  });
1784
- const b = (S) => !!s[S];
1785
- return (S, N) => (d(), f("div", tn, [
1784
+ const b = (S) => !!n[S];
1785
+ return (S, N) => (d(), f("div", ts, [
1786
1786
  b("default") ? (d(), x(ae, {
1787
1787
  key: 0,
1788
1788
  ref_key: "buttonRef",
1789
- ref: l,
1790
- class: D(n.class),
1791
- icon: n.icon,
1789
+ ref: r,
1790
+ class: D(s.class),
1791
+ icon: s.icon,
1792
1792
  onClick: Z(c, ["stop", "prevent"]),
1793
- type: n.type
1793
+ type: s.type
1794
1794
  }, {
1795
1795
  default: I(() => [
1796
1796
  L(S.$slots, "default")
@@ -1799,56 +1799,56 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1799
1799
  }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(ae, {
1800
1800
  key: 1,
1801
1801
  ref_key: "buttonRef",
1802
- ref: l,
1803
- class: D(n.class),
1804
- icon: n.icon,
1802
+ ref: r,
1803
+ class: D(s.class),
1804
+ icon: s.icon,
1805
1805
  onClick: Z(c, ["stop", "prevent"]),
1806
- type: n.type
1806
+ type: s.type
1807
1807
  }, null, 8, ["class", "icon", "onClick", "type"])),
1808
1808
  oe(gt, {
1809
1809
  ref_key: "dMenuRef",
1810
1810
  ref: a,
1811
- items: n.items,
1811
+ items: s.items,
1812
1812
  class: "dropdown-menu",
1813
1813
  style: H(h.value),
1814
1814
  "no-select": !0,
1815
1815
  onSelect: u,
1816
- "render-item-title": n.renderItemTitle,
1817
- "before-item": n.beforeItem,
1818
- "body-as-parent": n.bodyAsParent
1816
+ "render-item-title": s.renderItemTitle,
1817
+ "before-item": s.beforeItem,
1818
+ "body-as-parent": s.bodyAsParent
1819
1819
  }, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
1820
1820
  ]));
1821
1821
  }
1822
- }, on = {}, nn = { class: "d-panel" };
1823
- function sn(e, t) {
1824
- return d(), f("div", nn, [
1822
+ }, os = {}, ss = { class: "d-panel" };
1823
+ function ns(e, t) {
1824
+ return d(), f("div", ss, [
1825
1825
  L(e.$slots, "default")
1826
1826
  ]);
1827
1827
  }
1828
- const an = /* @__PURE__ */ le(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Ms = {
1828
+ const as = /* @__PURE__ */ re(os, [["render", ns]]), is = { class: "card-header" }, rs = { class: "modal-title" }, ls = { class: "card-body" }, ds = { class: "card-footer" }, Mn = {
1829
1829
  __name: "DCard",
1830
1830
  setup(e) {
1831
- return (t, o) => (d(), x(an, { class: "d-card" }, {
1831
+ return (t, o) => (d(), x(as, { class: "d-card" }, {
1832
1832
  default: I(() => [
1833
- _("div", ln, [
1834
- _("h5", rn, [
1833
+ _("div", is, [
1834
+ _("h5", rs, [
1835
1835
  L(t.$slots, "title")
1836
1836
  ])
1837
1837
  ]),
1838
- _("div", dn, [
1838
+ _("div", ls, [
1839
1839
  L(t.$slots, "default")
1840
1840
  ]),
1841
- _("div", cn, [
1841
+ _("div", ds, [
1842
1842
  L(t.$slots, "footer")
1843
1843
  ])
1844
1844
  ]),
1845
1845
  _: 3
1846
1846
  }));
1847
1847
  }
1848
- }, un = /* @__PURE__ */ new Map();
1849
- class pn {
1850
- constructor(t, o, n) {
1851
- this.remaining = o, this.callback = t, this.notifyItem = n, this.resume();
1848
+ }, cs = /* @__PURE__ */ new Map();
1849
+ class us {
1850
+ constructor(t, o, s) {
1851
+ this.remaining = o, this.callback = t, this.notifyItem = s, this.resume();
1852
1852
  }
1853
1853
  pause() {
1854
1854
  clearTimeout(this.notifyItem.timer), this.remaining -= Date.now() - this.start;
@@ -1857,7 +1857,7 @@ class pn {
1857
1857
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1858
1858
  }
1859
1859
  }
1860
- const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1860
+ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1861
1861
  {
1862
1862
  name: "px",
1863
1863
  regexp: new RegExp(`^${Ee}px$`)
@@ -1874,14 +1874,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1874
1874
  name: "px",
1875
1875
  regexp: new RegExp(`^${Ee}$`)
1876
1876
  }
1877
- ], fn = (e) => {
1877
+ ], ps = (e) => {
1878
1878
  if (e === "auto")
1879
1879
  return {
1880
1880
  type: e,
1881
1881
  value: 0
1882
1882
  };
1883
- for (let t = 0; t < st.length; t++) {
1884
- const o = st[t];
1883
+ for (let t = 0; t < nt.length; t++) {
1884
+ const o = nt[t];
1885
1885
  if (o.regexp.test(e))
1886
1886
  return {
1887
1887
  type: o.name,
@@ -1892,23 +1892,23 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1892
1892
  type: "",
1893
1893
  value: e
1894
1894
  };
1895
- }, mn = (e) => {
1895
+ }, fs = (e) => {
1896
1896
  switch (typeof e) {
1897
1897
  case "number":
1898
1898
  return { type: "px", value: e };
1899
1899
  case "string":
1900
- return fn(e);
1900
+ return ps(e);
1901
1901
  default:
1902
1902
  return { type: "", value: e };
1903
1903
  }
1904
1904
  }, at = {
1905
1905
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1906
1906
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1907
- }, hn = ((e) => () => e++)(0), gn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), vn = (e) => {
1908
- typeof e == "string" && (e = gn(e));
1907
+ }, ms = ((e) => () => e++)(0), hs = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), gs = (e) => {
1908
+ typeof e == "string" && (e = hs(e));
1909
1909
  let t = null, o = null;
1910
- return e.forEach((n) => {
1911
- at.y.has(n) && (o = n), at.x.has(n) && (t = n);
1910
+ return e.forEach((s) => {
1911
+ at.y.has(s) && (o = s), at.x.has(s) && (t = s);
1912
1912
  }), { x: t, y: o };
1913
1913
  }, Be = {
1914
1914
  position: ["top", "right"],
@@ -1923,23 +1923,23 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1923
1923
  opacity: [0, 1]
1924
1924
  }
1925
1925
  }
1926
- }, yn = {
1926
+ }, vs = {
1927
1927
  __name: "VelocityGroup",
1928
1928
  emits: ["enter", "leave", "after-leave"],
1929
1929
  setup(e, { emit: t }) {
1930
- const o = (a, l) => {
1931
- t("enter", a, l);
1932
- }, n = (a, l) => {
1933
- t("leave", a, l);
1934
- }, s = () => {
1930
+ const o = (a, r) => {
1931
+ t("enter", a, r);
1932
+ }, s = (a, r) => {
1933
+ t("leave", a, r);
1934
+ }, n = () => {
1935
1935
  t("after-leave");
1936
1936
  };
1937
- return (a, l) => (d(), x(mt, {
1937
+ return (a, r) => (d(), x(mt, {
1938
1938
  tag: "span",
1939
1939
  css: !1,
1940
1940
  onEnter: o,
1941
- onLeave: n,
1942
- onAfterLeave: s
1941
+ onLeave: s,
1942
+ onAfterLeave: n
1943
1943
  }, {
1944
1944
  default: I(() => [
1945
1945
  L(a.$slots, "default")
@@ -1947,7 +1947,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1947
1947
  _: 3
1948
1948
  }));
1949
1949
  }
1950
- }, _n = /* @__PURE__ */ Object.assign({
1950
+ }, ys = /* @__PURE__ */ Object.assign({
1951
1951
  inheritAttrs: !1
1952
1952
  }, {
1953
1953
  __name: "CssGroup",
@@ -1956,7 +1956,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1956
1956
  },
1957
1957
  setup(e) {
1958
1958
  const t = e;
1959
- return (o, n) => (d(), x(mt, {
1959
+ return (o, s) => (d(), x(mt, {
1960
1960
  tag: "span",
1961
1961
  name: t.name
1962
1962
  }, {
@@ -1966,10 +1966,10 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
1966
1966
  _: 3
1967
1967
  }, 8, ["name"]));
1968
1968
  }
1969
- }), bn = ["data-id"], xn = ["onClick"], $n = ["innerHTML"], kn = ["innerHTML"], wn = {
1969
+ }), _s = ["data-id"], bs = ["onClick"], xs = ["innerHTML"], $s = ["innerHTML"], ks = {
1970
1970
  key: 0,
1971
1971
  class: "d-notification-title"
1972
- }, Sn = { class: "notification-content" }, Ns = {
1972
+ }, ws = { class: "notification-content" }, Nn = {
1973
1973
  __name: "DNotificationProvider",
1974
1974
  props: {
1975
1975
  group: {
@@ -2039,14 +2039,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2039
2039
  },
2040
2040
  emits: ["click", "destroy", "start"],
2041
2041
  setup(e, { emit: t }) {
2042
- const o = e, n = {
2042
+ const o = e, s = {
2043
2043
  IDLE: 0,
2044
2044
  DESTROYED: 2
2045
- }, s = w([]), a = w(null), l = w(un.get("velocity")), r = m(() => o.animationType === "velocity"), i = m(() => r.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(o.width)), h = m(() => {
2046
- const { x: p, y: z } = vn(o.position), T = u.value.value, q = u.value.type, ne = {
2045
+ }, n = w([]), a = w(null), r = w(cs.get("velocity")), l = m(() => o.animationType === "velocity"), i = m(() => l.value ? vs : ys), c = m(() => n.value.filter((p) => p.state !== s.DESTROYED)), u = m(() => fs(o.width)), h = m(() => {
2046
+ const { x: p, y: z } = gs(o.position), T = u.value.value, q = u.value.type, se = {
2047
2047
  width: T + q
2048
2048
  };
2049
- return z && (ne[z] = "0px"), p && (p === "center" ? ne.left = `calc(50% - ${+T / 2}${q})` : ne[p] = "0px"), ne;
2049
+ return z && (se[z] = "0px"), p && (p === "center" ? se.left = `calc(50% - ${+T / 2}${q})` : se[p] = "0px"), se;
2050
2050
  }), b = m(() => "bottom" in h.value), S = (p) => {
2051
2051
  t("click", p), o.closeOnClick && M(p);
2052
2052
  }, N = () => {
@@ -2055,67 +2055,67 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2055
2055
  }, k = () => {
2056
2056
  var p;
2057
2057
  o.pauseOnHover && ((p = a.value) == null || p.resume());
2058
- }, W = (p) => {
2058
+ }, F = (p) => {
2059
2059
  if (p.group || (p.group = ""), p.data || (p.data = {}), o.group !== p.group)
2060
2060
  return;
2061
2061
  if (p.clean || p.clear) {
2062
2062
  O();
2063
2063
  return;
2064
2064
  }
2065
- 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: ve, type: ye, data: _e, id: be } = p, J = {
2066
- id: be || hn(),
2067
- title: ne,
2065
+ 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: se, text: ve, type: ye, data: _e, id: be } = p, J = {
2066
+ id: be || ms(),
2067
+ title: se,
2068
2068
  text: ve,
2069
2069
  type: ye,
2070
- state: n.IDLE,
2070
+ state: s.IDLE,
2071
2071
  speed: T,
2072
2072
  length: z + 2 * T,
2073
2073
  data: _e
2074
2074
  };
2075
- z >= 0 && (a.value = new pn(() => M(J), J.length, J));
2075
+ z >= 0 && (a.value = new us(() => M(J), J.length, J));
2076
2076
  const xe = o.reverse ? !b.value : b.value;
2077
- let re = -1;
2077
+ let le = -1;
2078
2078
  const $e = c.value.some((me) => me.title === p.title && me.text === p.text);
2079
- (!q || !$e) && (xe ? (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 && M(c.value[re]));
2079
+ (!q || !$e) && (xe ? (n.value.push(J), t("start", J), c.value.length > o.max && (le = 0)) : (n.value.unshift(J), t("start", J), c.value.length > o.max && (le = c.value.length - 1)), le !== -1 && M(c.value[le]));
2080
2080
  }, R = (p) => {
2081
2081
  y(p);
2082
2082
  }, C = (p) => [
2083
2083
  "d-notification-template",
2084
2084
  o.classes,
2085
2085
  p.type || ""
2086
- ], B = (p) => r.value ? void 0 : { transition: `all ${p.speed}ms` }, M = (p) => {
2087
- clearTimeout(p.timer), p.state = n.DESTROYED, V(), t("destroy", p);
2086
+ ], B = (p) => l.value ? void 0 : { transition: `all ${p.speed}ms` }, M = (p) => {
2087
+ clearTimeout(p.timer), p.state = s.DESTROYED, V(), t("destroy", p);
2088
2088
  }, y = (p) => {
2089
- const z = s.value.find((T) => T.id === p);
2089
+ const z = n.value.find((T) => T.id === p);
2090
2090
  z && M(z);
2091
2091
  }, O = () => {
2092
2092
  c.value.forEach(M);
2093
- }, F = (p, z) => {
2093
+ }, W = (p, z) => {
2094
2094
  var q;
2095
2095
  const T = (q = o.animation) == null ? void 0 : q[p];
2096
2096
  return typeof T == "function" ? T(z) : T;
2097
2097
  }, P = (p, z) => {
2098
- if (!r.value)
2098
+ if (!l.value)
2099
2099
  return;
2100
- const T = F("enter", p);
2101
- l.value(p, T, {
2100
+ const T = W("enter", p);
2101
+ r.value(p, T, {
2102
2102
  duration: o.speed,
2103
2103
  complete: z
2104
2104
  });
2105
2105
  }, g = (p, z) => {
2106
- if (!r.value)
2106
+ if (!l.value)
2107
2107
  return;
2108
- const T = F("leave", p);
2109
- l.value(p, T, {
2108
+ const T = W("leave", p);
2109
+ r.value(p, T, {
2110
2110
  duration: o.speed,
2111
2111
  complete: z
2112
2112
  });
2113
2113
  };
2114
2114
  function V() {
2115
- s.value = s.value.filter((p) => p.state !== n.DESTROYED);
2115
+ n.value = n.value.filter((p) => p.state !== s.DESTROYED);
2116
2116
  }
2117
2117
  return fe(() => {
2118
- U.on("notification-add", W), U.on("notification-close", R);
2118
+ U.on("notification-add", F), U.on("notification-close", R);
2119
2119
  }), (p, z) => (d(), f("div", {
2120
2120
  class: "d-notification-group",
2121
2121
  style: H(h.value)
@@ -2149,24 +2149,24 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2149
2149
  key: 0,
2150
2150
  class: "d-notification-title",
2151
2151
  innerHTML: T.timer
2152
- }, null, 8, $n)) : $("", !0),
2152
+ }, null, 8, xs)) : $("", !0),
2153
2153
  _("div", {
2154
2154
  class: "notification-content",
2155
2155
  innerHTML: T.text
2156
- }, null, 8, kn)
2156
+ }, null, 8, $s)
2157
2157
  ], 64)) : (d(), f(ie, { key: 1 }, [
2158
- T.title ? (d(), f("div", wn, A(T.title), 1)) : $("", !0),
2159
- _("div", Sn, A(T.text), 1)
2158
+ T.title ? (d(), f("div", ks, A(T.title), 1)) : $("", !0),
2159
+ _("div", ws, A(T.text), 1)
2160
2160
  ], 64))
2161
- ], 10, xn)
2161
+ ], 10, bs)
2162
2162
  ])
2163
- ], 44, bn))), 128))
2163
+ ], 44, _s))), 128))
2164
2164
  ]),
2165
2165
  _: 3
2166
2166
  }, 40, ["name"]))
2167
2167
  ], 4));
2168
2168
  }
2169
- }, Tn = { class: "d-info-progress-icon-container" }, Dn = { class: "d-info-progress-icon" }, Ln = { class: "d-info-progress-data-container" }, Cn = ["innerHTML"], Rs = {
2169
+ }, Ss = { class: "d-info-progress-icon-container" }, Ts = { class: "d-info-progress-icon" }, Ds = { class: "d-info-progress-data-container" }, Ls = ["innerHTML"], Rn = {
2170
2170
  __name: "DInfoProgress",
2171
2171
  props: {
2172
2172
  style: [String, Object],
@@ -2177,25 +2177,25 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2177
2177
  },
2178
2178
  emits: ["click"],
2179
2179
  setup(e, { emit: t }) {
2180
- const o = e, n = m(() => o.icon ? ee.getters.getIcon(o.icon) : null);
2181
- return (s, a) => (d(), f("div", {
2180
+ const o = e, s = m(() => o.icon ? ee.getters.getIcon(o.icon) : null);
2181
+ return (n, a) => (d(), f("div", {
2182
2182
  class: D(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2183
2183
  style: H(o.style),
2184
- onClick: a[0] || (a[0] = (l) => {
2185
- t("click", l);
2184
+ onClick: a[0] || (a[0] = (r) => {
2185
+ t("click", r);
2186
2186
  })
2187
2187
  }, [
2188
- _("div", Tn, [
2189
- _("div", Dn, [
2188
+ _("div", Ss, [
2189
+ _("div", Ts, [
2190
2190
  o.icon ? (d(), x(X(de), {
2191
2191
  key: 0,
2192
- component: n.value,
2192
+ component: s.value,
2193
2193
  color: "inherit",
2194
2194
  size: 17
2195
2195
  }, null, 8, ["component"])) : $("", !0)
2196
2196
  ])
2197
2197
  ]),
2198
- _("div", Ln, [
2198
+ _("div", Ds, [
2199
2199
  _("div", {
2200
2200
  class: "d-info-progress-line",
2201
2201
  style: H("width: " + o.progress + "%;")
@@ -2203,11 +2203,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2203
2203
  _("div", {
2204
2204
  class: "d-info-progress-label",
2205
2205
  innerHTML: e.label
2206
- }, null, 8, Cn)
2206
+ }, null, 8, Ls)
2207
2207
  ])
2208
2208
  ], 6));
2209
2209
  }
2210
- }, In = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Bn = ["for"], Os = {
2210
+ }, Cs = { class: "d-checkbox" }, Is = ["id", "checked", "disabled"], Es = ["for"], On = {
2211
2211
  __name: "DCheckbox",
2212
2212
  props: {
2213
2213
  label: String,
@@ -2221,44 +2221,44 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", st = [
2221
2221
  },
2222
2222
  emits: ["update:modelValue"],
2223
2223
  setup(e, { emit: t }) {
2224
- const o = e, s = pt().uid, a = m({
2224
+ const o = e, n = pt().uid, a = m({
2225
2225
  get: () => o.modelValue,
2226
- set: (l) => {
2227
- t("update:modelValue", l);
2226
+ set: (r) => {
2227
+ t("update:modelValue", r);
2228
2228
  }
2229
2229
  });
2230
- return (l, r) => (d(), f("div", In, [
2230
+ return (r, l) => (d(), f("div", Cs, [
2231
2231
  te(_("input", {
2232
- "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2233
- id: `i-${E(s)}`,
2232
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
2233
+ id: `i-${E(n)}`,
2234
2234
  type: "checkbox",
2235
2235
  checked: o.checked,
2236
2236
  disabled: o.disabled,
2237
- onChange: r[1] || (r[1] = (...i) => o.change && o.change(...i))
2238
- }, null, 40, En), [
2237
+ onChange: l[1] || (l[1] = (...i) => o.change && o.change(...i))
2238
+ }, null, 40, Is), [
2239
2239
  [Bt, a.value]
2240
2240
  ]),
2241
2241
  _("label", {
2242
- for: `i-${E(s)}`
2243
- }, A(o.label), 9, Bn)
2242
+ for: `i-${E(n)}`
2243
+ }, A(o.label), 9, Es)
2244
2244
  ]));
2245
2245
  }
2246
2246
  };
2247
- async function Mn(e, t) {
2248
- return await _t(en, { title: e, message: t });
2247
+ async function Bs(e, t) {
2248
+ return await _t(es, { title: e, message: t });
2249
2249
  }
2250
- async function Nn(e, t) {
2250
+ async function Ms(e, t) {
2251
2251
  return await _t(Jo, { title: e, message: t });
2252
2252
  }
2253
- const As = {
2253
+ const An = {
2254
2254
  __name: "DDialogProvider",
2255
2255
  setup(e) {
2256
- return window.alert = Nn, window.confirm = Mn, (t, o) => (d(), x(E(Zo)));
2256
+ return window.alert = Ms, window.confirm = Bs, (t, o) => (d(), x(E(Zo)));
2257
2257
  }
2258
- }, Rn = { class: "d-select" }, On = {
2258
+ }, Ns = { class: "d-select" }, Rs = {
2259
2259
  key: 0,
2260
2260
  class: "label"
2261
- }, An = ["value", "selected", "disabled"], Hs = {
2261
+ }, Os = ["value", "selected", "disabled"], Hn = {
2262
2262
  __name: "DSelect",
2263
2263
  props: {
2264
2264
  label: String,
@@ -2270,7 +2270,7 @@ const As = {
2270
2270
  },
2271
2271
  emits: ["update:modelValue"],
2272
2272
  setup(e, { emit: t }) {
2273
- const o = e, n = m(() => o.scale ? "d-select-" + o.scale : ""), s = m({
2273
+ const o = e, s = m(() => o.scale ? "d-select-" + o.scale : ""), n = m({
2274
2274
  get: () => o.modelValue,
2275
2275
  set: (a) => {
2276
2276
  t("update:modelValue", a);
@@ -2278,72 +2278,72 @@ const As = {
2278
2278
  });
2279
2279
  for (let a = 0; a < o.options.length; a++)
2280
2280
  if (o.options[a].selected) {
2281
- s.value = o.options[a].value;
2281
+ n.value = o.options[a].value;
2282
2282
  break;
2283
2283
  }
2284
- return (a, l) => (d(), f("div", Rn, [
2285
- o.label ? (d(), f("div", On, A(o.label), 1)) : $("", !0),
2284
+ return (a, r) => (d(), f("div", Ns, [
2285
+ o.label ? (d(), f("div", Rs, A(o.label), 1)) : $("", !0),
2286
2286
  te(_("select", {
2287
- "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2288
- class: D(n.value),
2287
+ "onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
2288
+ class: D(s.value),
2289
2289
  style: H(o.size === "wide" ? "width:100%" : "")
2290
2290
  }, [
2291
- (d(!0), f(ie, null, ge(o.options, (r, i) => (d(), f("option", {
2291
+ (d(!0), f(ie, null, ge(o.options, (l, i) => (d(), f("option", {
2292
2292
  key: i,
2293
- value: r.value,
2294
- selected: r.selected,
2295
- disabled: r.disabled
2296
- }, A(r.label), 9, An))), 128))
2293
+ value: l.value,
2294
+ selected: l.selected,
2295
+ disabled: l.disabled
2296
+ }, A(l.label), 9, Os))), 128))
2297
2297
  ], 6), [
2298
- [Mt, s.value]
2298
+ [Mt, n.value]
2299
2299
  ])
2300
2300
  ]));
2301
2301
  }
2302
- }, Hn = ["title"], Vn = ["title"], zn = {
2302
+ }, As = ["title"], Hs = ["title"], Vs = {
2303
2303
  __name: "DTabLabel",
2304
2304
  props: {
2305
2305
  tab: Object
2306
2306
  },
2307
2307
  setup(e) {
2308
2308
  const t = e;
2309
- return (o, n) => t.tab.label ? (d(), f("span", {
2309
+ return (o, s) => t.tab.label ? (d(), f("span", {
2310
2310
  key: 0,
2311
2311
  title: t.tab.title ? t.tab.title : ""
2312
- }, A(t.tab.label), 9, Hn)) : t.tab.icon ? (d(), f("span", {
2312
+ }, A(t.tab.label), 9, As)) : t.tab.icon ? (d(), f("span", {
2313
2313
  key: 1,
2314
2314
  title: t.tab.title ? t.tab.title : ""
2315
2315
  }, [
2316
2316
  oe(E(de), {
2317
2317
  component: t.tab.icon
2318
2318
  }, null, 8, ["component"])
2319
- ], 8, Vn)) : $("", !0);
2319
+ ], 8, Hs)) : $("", !0);
2320
2320
  }
2321
2321
  };
2322
- const Wn = { class: "d-tabs" }, Fn = {
2322
+ const zs = { class: "d-tabs" }, Fs = {
2323
2323
  __name: "DTabs",
2324
2324
  props: {
2325
2325
  tabs: Array
2326
2326
  },
2327
2327
  setup(e) {
2328
- const o = Nt(e, "tabs"), n = w(0), s = (a) => {
2329
- n.value = a;
2328
+ const o = Nt(e, "tabs"), s = w(0), n = (a) => {
2329
+ s.value = a;
2330
2330
  };
2331
- return (a, l) => (d(), f(ie, null, [
2332
- _("div", Wn, [
2333
- (d(!0), f(ie, null, ge(o.value, (r, i) => (d(), x(zn, {
2331
+ return (a, r) => (d(), f(ie, null, [
2332
+ _("div", zs, [
2333
+ (d(!0), f(ie, null, ge(o.value, (l, i) => (d(), x(Vs, {
2334
2334
  index: i,
2335
- tab: r,
2336
- class: D(["d-tab-title", i === n.value ? "active" : ""]),
2337
- onClick: (c) => s(i)
2335
+ tab: l,
2336
+ class: D(["d-tab-title", i === s.value ? "active" : ""]),
2337
+ onClick: (c) => n(i)
2338
2338
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2339
2339
  ]),
2340
2340
  (d(), x(Rt, null, [
2341
- (d(), x(X(o.value[n.value].component)))
2341
+ (d(), x(X(o.value[s.value].component)))
2342
2342
  ], 1024))
2343
2343
  ], 64));
2344
2344
  }
2345
- }, Vs = /* @__PURE__ */ le(Fn, [["__scopeId", "data-v-c98761cd"]]);
2346
- const Pn = { class: "d-grid" }, jn = {
2345
+ }, Vn = /* @__PURE__ */ re(Fs, [["__scopeId", "data-v-c98761cd"]]);
2346
+ const Ws = { class: "d-grid" }, Ps = {
2347
2347
  __name: "DGrid",
2348
2348
  props: {
2349
2349
  gap: {
@@ -2371,15 +2371,15 @@ const Pn = { class: "d-grid" }, jn = {
2371
2371
  "09eba33c": i[5],
2372
2372
  "898eb2ac": t.gap
2373
2373
  }));
2374
- const { colXs: o, colSm: n, colMd: s, colLg: a, colXl: l, colXxl: r } = Ot(t), i = [o.value, n.value, s.value, a.value, l.value, r.value];
2374
+ const { colXs: o, colSm: s, colMd: n, colLg: a, colXl: r, colXxl: l } = Ot(t), i = [o.value, s.value, n.value, a.value, r.value, l.value];
2375
2375
  let c = null;
2376
2376
  for (let u = 0; u < i.length; u++)
2377
2377
  c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
2378
- return (u, h) => (d(), f("div", Pn, [
2378
+ return (u, h) => (d(), f("div", Ws, [
2379
2379
  L(u.$slots, "default", {}, void 0, !0)
2380
2380
  ]));
2381
2381
  }
2382
- }, zs = /* @__PURE__ */ le(jn, [["__scopeId", "data-v-b45e8130"]]), Xn = ["src", "alt", "title"], Ws = {
2382
+ }, zn = /* @__PURE__ */ re(Ps, [["__scopeId", "data-v-b45e8130"]]), js = ["src", "alt", "title"], Fn = {
2383
2383
  __name: "DImage",
2384
2384
  props: {
2385
2385
  src: String,
@@ -2391,26 +2391,26 @@ const Pn = { class: "d-grid" }, jn = {
2391
2391
  radius: String
2392
2392
  },
2393
2393
  setup(e) {
2394
- const t = e, o = w(null), n = new Image();
2395
- return n.onload = () => {
2396
- o.value = n.src;
2397
- }, n.onerror = () => {
2394
+ const t = e, o = w(null), s = new Image();
2395
+ return s.onload = () => {
2396
+ o.value = s.src;
2397
+ }, s.onerror = () => {
2398
2398
  o.value = t.srcFail;
2399
2399
  }, fe(() => {
2400
- n.src = t.src;
2401
- }), (s, a) => o.value ? (d(), f("img", {
2400
+ s.src = t.src;
2401
+ }), (n, a) => o.value ? (d(), f("img", {
2402
2402
  key: 0,
2403
2403
  src: o.value,
2404
2404
  alt: t.alt,
2405
2405
  title: t.title,
2406
2406
  style: H({ width: t.width, height: t.height, borderRadius: t.radius })
2407
- }, null, 12, Xn)) : $("", !0);
2407
+ }, null, 12, js)) : $("", !0);
2408
2408
  }
2409
2409
  };
2410
- const Yn = { class: "d-textarea" }, Un = {
2410
+ const Xs = { class: "d-textarea" }, Ys = {
2411
2411
  key: 0,
2412
2412
  class: "label"
2413
- }, qn = ["rows", "cols", "placeholder"], Gn = {
2413
+ }, Us = ["rows", "cols", "placeholder"], qs = {
2414
2414
  __name: "DTextarea",
2415
2415
  props: {
2416
2416
  label: String,
@@ -2430,38 +2430,38 @@ const Yn = { class: "d-textarea" }, Un = {
2430
2430
  },
2431
2431
  emits: ["update:modelValue"],
2432
2432
  setup(e, { expose: t, emit: o }) {
2433
- const n = e, s = w(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = m({
2434
- get: () => n.modelValue,
2433
+ const s = e, n = w(null), a = m(() => s.scale === "small" ? "d-textarea-small" : s.scale === "large" ? "d-textarea-large" : ""), r = m({
2434
+ get: () => s.modelValue,
2435
2435
  set: (i) => {
2436
2436
  o("update:modelValue", i);
2437
2437
  }
2438
2438
  });
2439
2439
  fe(() => {
2440
- n.focus && r();
2440
+ s.focus && l();
2441
2441
  });
2442
- const r = () => {
2443
- s.value.focus();
2442
+ const l = () => {
2443
+ n.value.focus();
2444
2444
  };
2445
2445
  return t({
2446
- focus: r
2447
- }), (i, c) => (d(), f("div", Yn, [
2448
- n.label ? (d(), f("div", Un, A(n.label), 1)) : $("", !0),
2446
+ focus: l
2447
+ }), (i, c) => (d(), f("div", Xs, [
2448
+ s.label ? (d(), f("div", Ys, A(s.label), 1)) : $("", !0),
2449
2449
  te(_("textarea", {
2450
2450
  ref_key: "inputRef",
2451
- ref: s,
2452
- "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
2453
- rows: n.rows,
2454
- cols: n.cols,
2455
- placeholder: n.placeholder,
2451
+ ref: n,
2452
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
2453
+ rows: s.rows,
2454
+ cols: s.cols,
2455
+ placeholder: s.placeholder,
2456
2456
  class: D(a.value),
2457
2457
  style: { width: "100%" }
2458
- }, null, 10, qn), [
2459
- [At, l.value]
2458
+ }, null, 10, Us), [
2459
+ [At, r.value]
2460
2460
  ])
2461
2461
  ]));
2462
2462
  }
2463
- }, Fs = /* @__PURE__ */ le(Gn, [["__scopeId", "data-v-0e805d5d"]]);
2464
- class Ps {
2463
+ }, Wn = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-0e805d5d"]]);
2464
+ class Pn {
2465
2465
  constructor(t) {
2466
2466
  this.fields = t;
2467
2467
  }
@@ -2472,18 +2472,18 @@ class Ps {
2472
2472
  return !t;
2473
2473
  }
2474
2474
  }
2475
- class Zn {
2475
+ class Gs {
2476
2476
  validate(t, o = "https") {
2477
2477
  return this._isValidURL(t) || (t = o + "://" + t), this._isValidURL(t);
2478
2478
  }
2479
2479
  message(t, o) {
2480
- let n = "";
2480
+ let s = "";
2481
2481
  switch (t) {
2482
2482
  case "url":
2483
- n = o;
2483
+ s = o;
2484
2484
  break;
2485
2485
  }
2486
- return n;
2486
+ return s;
2487
2487
  }
2488
2488
  _isValidURL(t) {
2489
2489
  try {
@@ -2493,8 +2493,8 @@ class Zn {
2493
2493
  }
2494
2494
  }
2495
2495
  }
2496
- const Kn = new Zn();
2497
- class Jn {
2496
+ const Zs = new Gs();
2497
+ class Ks {
2498
2498
  validate(t = "") {
2499
2499
  return t !== "";
2500
2500
  }
@@ -2502,8 +2502,8 @@ class Jn {
2502
2502
  return t;
2503
2503
  }
2504
2504
  }
2505
- const Qn = new Jn();
2506
- class es {
2505
+ const Js = new Ks();
2506
+ class Qs {
2507
2507
  validate(t = "", o = 0) {
2508
2508
  return t.length >= o;
2509
2509
  }
@@ -2511,8 +2511,8 @@ class es {
2511
2511
  return t;
2512
2512
  }
2513
2513
  }
2514
- const ts = new es();
2515
- class os {
2514
+ const en = new Qs();
2515
+ class tn {
2516
2516
  validate(t = "", o = 0) {
2517
2517
  return t.length <= o;
2518
2518
  }
@@ -2520,8 +2520,8 @@ class os {
2520
2520
  return t;
2521
2521
  }
2522
2522
  }
2523
- const ns = new os();
2524
- class ss {
2523
+ const on = new tn();
2524
+ class sn {
2525
2525
  validate(t) {
2526
2526
  return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(t);
2527
2527
  }
@@ -2529,8 +2529,8 @@ class ss {
2529
2529
  return t;
2530
2530
  }
2531
2531
  }
2532
- const as = new ss();
2533
- class is {
2532
+ const nn = new sn();
2533
+ class an {
2534
2534
  validate(t) {
2535
2535
  return !isNaN(parseFloat(t)) && !isNaN(t - 0);
2536
2536
  }
@@ -2538,55 +2538,55 @@ class is {
2538
2538
  return t;
2539
2539
  }
2540
2540
  }
2541
- const ls = new is(), Y = {
2542
- RulesUrl: Kn,
2543
- RulesRequired: Qn,
2544
- RulesMin: ts,
2545
- RulesMax: ns,
2546
- RulesEmail: as,
2547
- RulesNumber: ls
2541
+ const rn = new an(), Y = {
2542
+ RulesUrl: Zs,
2543
+ RulesRequired: Js,
2544
+ RulesMin: en,
2545
+ RulesMax: on,
2546
+ RulesEmail: nn,
2547
+ RulesNumber: rn
2548
2548
  };
2549
- class rs {
2549
+ class ln {
2550
2550
  validate(t, o) {
2551
- var s, a, l, r, i, c, u, h, b, S, N, k, W, R;
2552
- let n = "";
2551
+ var n, a, r, l, i, c, u, h, b, S, N, k, F, R;
2552
+ let s = "";
2553
2553
  if (o) {
2554
2554
  let C = !1;
2555
2555
  for (let B in o)
2556
2556
  if (!C)
2557
2557
  switch (B) {
2558
2558
  case "url":
2559
- n = Y.RulesUrl.validate(t, "https") || t.length === 0 ? "" : Y.RulesUrl.message("url", (s = o[B]) != null && s.message ? (a = o[B]) == null ? void 0 : a.message : "url_incorrect"), C = n !== "";
2559
+ s = Y.RulesUrl.validate(t, "https") || t.length === 0 ? "" : Y.RulesUrl.message("url", (n = o[B]) != null && n.message ? (a = o[B]) == null ? void 0 : a.message : "url_incorrect"), C = s !== "";
2560
2560
  break;
2561
2561
  case "required":
2562
- n = Y.RulesRequired.validate(t) ? "" : Y.RulesRequired.message((l = o[B]) != null && l.message ? (r = o[B]) == null ? void 0 : r.message : "required"), C = n !== "";
2562
+ s = Y.RulesRequired.validate(t) ? "" : Y.RulesRequired.message((r = o[B]) != null && r.message ? (l = o[B]) == null ? void 0 : l.message : "required"), C = s !== "";
2563
2563
  break;
2564
2564
  case "min":
2565
- n = Y.RulesMin.validate(t, (i = o[B]) == null ? void 0 : i.value) ? "" : Y.RulesMin.message((c = o[B]) != null && c.message ? (u = o[B]) == null ? void 0 : u.message : "very_small"), C = n !== "";
2565
+ s = Y.RulesMin.validate(t, (i = o[B]) == null ? void 0 : i.value) ? "" : Y.RulesMin.message((c = o[B]) != null && c.message ? (u = o[B]) == null ? void 0 : u.message : "very_small"), C = s !== "";
2566
2566
  break;
2567
2567
  case "max":
2568
- n = Y.RulesMax.validate(t, (h = o[B]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = o[B]) != null && b.message ? (S = o[B]) == null ? void 0 : S.message : "vary_large"), C = n !== "";
2568
+ s = Y.RulesMax.validate(t, (h = o[B]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = o[B]) != null && b.message ? (S = o[B]) == null ? void 0 : S.message : "vary_large"), C = s !== "";
2569
2569
  break;
2570
2570
  case "email":
2571
- n = Y.RulesEmail.validate(t) ? "" : Y.RulesMax.message((N = o[B]) != null && N.message ? (k = o[B]) == null ? void 0 : k.message : "email_incorrect"), C = n !== "";
2571
+ s = Y.RulesEmail.validate(t) ? "" : Y.RulesMax.message((N = o[B]) != null && N.message ? (k = o[B]) == null ? void 0 : k.message : "email_incorrect"), C = s !== "";
2572
2572
  break;
2573
2573
  case "number":
2574
- n = Y.RulesNumber.validate(t) ? "" : Y.RulesNumber.message(
2575
- (W = o[B]) != null && W.message ? (R = o[B]) == null ? void 0 : R.message : "number_incorrect"
2576
- ), C = n !== "";
2574
+ s = Y.RulesNumber.validate(t) ? "" : Y.RulesNumber.message(
2575
+ (F = o[B]) != null && F.message ? (R = o[B]) == null ? void 0 : R.message : "number_incorrect"
2576
+ ), C = s !== "";
2577
2577
  break;
2578
2578
  }
2579
2579
  }
2580
- return n;
2580
+ return s;
2581
2581
  }
2582
2582
  }
2583
- const ds = new rs(), cs = { style: { display: "flex", "flex-direction": "column" } }, us = {
2583
+ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column" } }, un = {
2584
2584
  key: 0,
2585
2585
  class: "d-label"
2586
- }, ps = {
2586
+ }, pn = {
2587
2587
  key: 0,
2588
2588
  class: "text-red"
2589
- }, fs = { style: { display: "flex", "flex-direction": "row" } }, ms = { style: { flex: "1", position: "relative" } }, hs = /* @__PURE__ */ _("svg", {
2589
+ }, fn = { style: { display: "flex", "flex-direction": "row" } }, mn = { style: { flex: "1", position: "relative" } }, hn = /* @__PURE__ */ _("svg", {
2590
2590
  xmlns: "http://www.w3.org/2000/svg",
2591
2591
  viewBox: "0 0 24 24"
2592
2592
  }, [
@@ -2594,9 +2594,9 @@ const ds = new rs(), cs = { style: { display: "flex", "flex-direction": "column"
2594
2594
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2595
2595
  fill: "currentColor"
2596
2596
  })
2597
- ], -1), gs = [
2598
- hs
2599
- ], vs = ["id", "type", "placeholder", "disabled"], ys = /* @__PURE__ */ _("svg", {
2597
+ ], -1), gn = [
2598
+ hn
2599
+ ], vn = ["id", "type", "placeholder", "disabled"], yn = /* @__PURE__ */ _("svg", {
2600
2600
  xmlns: "http://www.w3.org/2000/svg",
2601
2601
  viewBox: "0 0 24 24"
2602
2602
  }, [
@@ -2604,15 +2604,15 @@ const ds = new rs(), cs = { style: { display: "flex", "flex-direction": "column"
2604
2604
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2605
2605
  fill: "currentColor"
2606
2606
  })
2607
- ], -1), _s = [
2608
- ys
2609
- ], bs = {
2607
+ ], -1), _n = [
2608
+ yn
2609
+ ], bn = {
2610
2610
  key: 1,
2611
2611
  class: "d-help"
2612
- }, xs = {
2612
+ }, xn = {
2613
2613
  key: 2,
2614
2614
  class: "d-error text-red"
2615
- }, js = {
2615
+ }, jn = {
2616
2616
  __name: "DInputString",
2617
2617
  props: {
2618
2618
  form: Object,
@@ -2636,108 +2636,108 @@ const ds = new rs(), cs = { style: { display: "flex", "flex-direction": "column"
2636
2636
  },
2637
2637
  emits: ["update:modelValue", "input"],
2638
2638
  setup(e, { expose: t, emit: o }) {
2639
- const n = e, s = w(n.error), a = Ht(), l = w(!1), r = w(null);
2639
+ const s = e, n = w(s.error), a = Ht(), r = w(!1), l = w(null);
2640
2640
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2641
2641
  const i = m({
2642
- get: () => n.modelValue,
2642
+ get: () => s.modelValue,
2643
2643
  //props.form?.fields[props.name].model.value,
2644
2644
  set: (R) => {
2645
2645
  o("update:modelValue", R);
2646
2646
  }
2647
- }), c = m(() => n.type === "password" ? "password" : "text"), u = m(() => n.scale), h = (R) => {
2647
+ }), c = m(() => s.type === "password" ? "password" : "text"), u = m(() => s.scale), h = (R) => {
2648
2648
  o("input", R), b();
2649
- }, b = () => (s.value = ds.validate(i.value, n.form.fields[n.name].rules), !!s.value);
2649
+ }, b = () => (n.value = dn.validate(i.value, s.form.fields[s.name].rules), !!n.value);
2650
2650
  fe(() => {
2651
2651
  S();
2652
2652
  });
2653
2653
  const S = () => {
2654
2654
  var R;
2655
- (R = r.value) == null || R.focus();
2655
+ (R = l.value) == null || R.focus();
2656
2656
  }, N = () => {
2657
2657
  i.value = "";
2658
2658
  }, k = (R) => {
2659
- l.value = R;
2659
+ r.value = R;
2660
2660
  };
2661
2661
  return t({
2662
2662
  focus: S,
2663
2663
  setError: (R) => {
2664
- s.value = R;
2664
+ n.value = R;
2665
2665
  },
2666
2666
  validate: b
2667
2667
  }), (R, C) => {
2668
- var B, M, y, O, F, P, g, V, p, z, T, q, ne, ve, ye, _e, be, J, xe, re, $e, Ce, me, We, Fe, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot;
2668
+ var B, M, y, O, W, P, g, V, p, z, T, q, se, ve, ye, _e, be, J, xe, le, $e, Ce, me, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot;
2669
2669
  return d(), f("div", {
2670
2670
  class: D(["d-input-string", u.value])
2671
2671
  }, [
2672
- _("div", cs, [
2673
- n.label ? (d(), f("div", us, [
2674
- K(A(n.label), 1),
2675
- (B = n.form) != null && B.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", ps, "*")) : $("", !0)
2672
+ _("div", cn, [
2673
+ s.label ? (d(), f("div", un, [
2674
+ K(A(s.label), 1),
2675
+ (B = s.form) != null && B.fields[s.name].rules && s.form.fields[s.name].rules.hasOwnProperty("required") ? (d(), f("span", pn, "*")) : $("", !0)
2676
2676
  ])) : $("", !0),
2677
- _("div", fs, [
2678
- (y = (M = n.pre) == null ? void 0 : M.outside) != null && y.component ? (d(), f("div", {
2677
+ _("div", fn, [
2678
+ (y = (M = s.pre) == null ? void 0 : M.outside) != null && y.component ? (d(), f("div", {
2679
2679
  key: 0,
2680
- class: D(["d-pre", n.disabled ? "disabled" : ""])
2680
+ class: D(["d-pre", s.disabled ? "disabled" : ""])
2681
2681
  }, [
2682
- (d(), x(X((F = (O = n.pre) == null ? void 0 : O.outside) == null ? void 0 : F.component)))
2683
- ], 2)) : (g = (P = n.pre) == null ? void 0 : P.outside) != null && g.text ? (d(), f("div", {
2682
+ (d(), x(X((W = (O = s.pre) == null ? void 0 : O.outside) == null ? void 0 : W.component)))
2683
+ ], 2)) : (g = (P = s.pre) == null ? void 0 : P.outside) != null && g.text ? (d(), f("div", {
2684
2684
  key: 1,
2685
- class: D(["d-pre", n.disabled ? "disabled" : ""])
2685
+ class: D(["d-pre", s.disabled ? "disabled" : ""])
2686
2686
  }, [
2687
2687
  _("div", {
2688
- class: D(["d-text", l.value ? "focused" : ""])
2689
- }, A((p = (V = n.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2688
+ class: D(["d-text", r.value ? "focused" : ""])
2689
+ }, A((p = (V = s.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2690
2690
  ], 2)) : $("", !0),
2691
- _("div", ms, [
2692
- (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" && ((ve = i.value) == null ? void 0 : ve.length) > 0 ? (d(), f("div", {
2691
+ _("div", mn, [
2692
+ (T = (z = s.pre) == null ? void 0 : z.inside) != null && T.action && ((se = (q = s.pre) == null ? void 0 : q.inside) == null ? void 0 : se.action) === "clear" && ((ve = i.value) == null ? void 0 : ve.length) > 0 ? (d(), f("div", {
2693
2693
  key: 0,
2694
2694
  class: "d-pre-inside-button",
2695
2695
  onClick: N
2696
- }, gs)) : $("", !0),
2696
+ }, gn)) : $("", !0),
2697
2697
  te(_("input", {
2698
2698
  id: E(a),
2699
2699
  ref_key: "inputRef",
2700
- ref: r,
2700
+ ref: l,
2701
2701
  "onUpdate:modelValue": C[0] || (C[0] = (Ie) => i.value = Ie),
2702
2702
  style: { width: "100%" },
2703
2703
  type: c.value,
2704
- placeholder: n.placeholder,
2704
+ placeholder: s.placeholder,
2705
2705
  onInput: h,
2706
2706
  onFocus: C[1] || (C[1] = (Ie) => k(!0)),
2707
2707
  onFocusout: C[2] || (C[2] = (Ie) => k(!1)),
2708
2708
  class: D([
2709
- (_e = (ye = n.pre) == null ? void 0 : ye.outside) != null && _e.component || (J = (be = n.pre) == null ? void 0 : be.outside) != null && J.text ? "has-pre" : "",
2710
- (re = (xe = n.post) == null ? void 0 : xe.outside) != null && re.component || (Ce = ($e = n.post) == null ? void 0 : $e.outside) != null && Ce.text ? "has-post" : "",
2711
- (We = (me = n.pre) == null ? void 0 : me.inside) != null && We.action ? "has-pre-inside-button" : "",
2712
- (Pe = (Fe = n.post) == null ? void 0 : Fe.inside) != null && Pe.action ? "has-post-inside-button" : "",
2713
- l.value ? "focused" : ""
2709
+ (_e = (ye = s.pre) == null ? void 0 : ye.outside) != null && _e.component || (J = (be = s.pre) == null ? void 0 : be.outside) != null && J.text ? "has-pre" : "",
2710
+ (le = (xe = s.post) == null ? void 0 : xe.outside) != null && le.component || (Ce = ($e = s.post) == null ? void 0 : $e.outside) != null && Ce.text ? "has-post" : "",
2711
+ (Fe = (me = s.pre) == null ? void 0 : me.inside) != null && Fe.action ? "has-pre-inside-button" : "",
2712
+ (Pe = (We = s.post) == null ? void 0 : We.inside) != null && Pe.action ? "has-post-inside-button" : "",
2713
+ r.value ? "focused" : ""
2714
2714
  ]),
2715
- disabled: n.disabled
2716
- }, null, 42, vs), [
2715
+ disabled: s.disabled
2716
+ }, null, 42, vn), [
2717
2717
  [Te, i.value]
2718
2718
  ]),
2719
- (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", {
2719
+ (Xe = (je = s.post) == null ? void 0 : je.inside) != null && Xe.action && ((Ue = (Ye = s.post) == null ? void 0 : Ye.inside) == null ? void 0 : Ue.action) === "clear" && ((qe = i.value) == null ? void 0 : qe.length) > 0 ? (d(), f("div", {
2720
2720
  key: 1,
2721
2721
  class: "d-post-inside-button",
2722
2722
  onClick: N
2723
- }, _s)) : $("", !0)
2723
+ }, _n)) : $("", !0)
2724
2724
  ]),
2725
- (Ze = (Ge = n.post) == null ? void 0 : Ge.outside) != null && Ze.component ? (d(), f("div", {
2725
+ (Ze = (Ge = s.post) == null ? void 0 : Ge.outside) != null && Ze.component ? (d(), f("div", {
2726
2726
  key: 2,
2727
- class: D(["d-post", n.disabled ? "disabled" : ""])
2727
+ class: D(["d-post", s.disabled ? "disabled" : ""])
2728
2728
  }, [
2729
- (d(), x(X((Je = (Ke = n.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2730
- ], 2)) : (et = (Qe = n.post) == null ? void 0 : Qe.outside) != null && et.text ? (d(), f("div", {
2729
+ (d(), x(X((Je = (Ke = s.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2730
+ ], 2)) : (et = (Qe = s.post) == null ? void 0 : Qe.outside) != null && et.text ? (d(), f("div", {
2731
2731
  key: 3,
2732
- class: D(["d-post", n.disabled ? "disabled" : ""])
2732
+ class: D(["d-post", s.disabled ? "disabled" : ""])
2733
2733
  }, [
2734
2734
  _("div", {
2735
- class: D(["d-text", l.value ? "focused" : ""])
2736
- }, A((ot = (tt = n.post) == null ? void 0 : tt.outside) == null ? void 0 : ot.text), 3)
2735
+ class: D(["d-text", r.value ? "focused" : ""])
2736
+ }, A((ot = (tt = s.post) == null ? void 0 : tt.outside) == null ? void 0 : ot.text), 3)
2737
2737
  ], 2)) : $("", !0)
2738
2738
  ]),
2739
- n.help ? (d(), f("div", bs, A(n.help), 1)) : $("", !0),
2740
- s.value ? (d(), f("div", xs, A(s.value), 1)) : $("", !0)
2739
+ s.help ? (d(), f("div", bn, A(s.help), 1)) : $("", !0),
2740
+ n.value ? (d(), f("div", xn, A(n.value), 1)) : $("", !0)
2741
2741
  ])
2742
2742
  ], 2);
2743
2743
  };
@@ -2767,7 +2767,7 @@ const ds = new rs(), cs = { style: { display: "flex", "flex-direction": "column"
2767
2767
  bt.close = (e) => {
2768
2768
  U.emit("notification-close", e);
2769
2769
  };
2770
- const Xs = () => ({ notify: bt }), Ys = {
2770
+ const Xn = () => ({ notify: bt }), Yn = {
2771
2771
  mounted: function(e, t) {
2772
2772
  e.clickOutsideEvent = function(o) {
2773
2773
  e === o.target || e.contains(o.target) || t.value(o, e);
@@ -2776,7 +2776,7 @@ const Xs = () => ({ notify: bt }), Ys = {
2776
2776
  unmounted: function(e) {
2777
2777
  document.removeEventListener("click", e.clickOutsideEvent);
2778
2778
  }
2779
- }, Us = {
2779
+ }, Un = {
2780
2780
  beforeMount(e, t) {
2781
2781
  e._keydownCallback = (o) => {
2782
2782
  o.key === t.arg && t.value();
@@ -2785,7 +2785,7 @@ const Xs = () => ({ notify: bt }), Ys = {
2785
2785
  unmounted(e, t) {
2786
2786
  document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
2787
2787
  }
2788
- }, qs = {
2788
+ }, qn = {
2789
2789
  beforeMount(e) {
2790
2790
  e.focus();
2791
2791
  }
@@ -2796,7 +2796,7 @@ function xt(e) {
2796
2796
  function $t(e) {
2797
2797
  return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
2798
2798
  }
2799
- var $s = function() {
2799
+ var $n = function() {
2800
2800
  var e = !1;
2801
2801
  try {
2802
2802
  var t = Object.defineProperty({}, "passive", {
@@ -2808,7 +2808,7 @@ var $s = function() {
2808
2808
  } catch {
2809
2809
  }
2810
2810
  return e;
2811
- }(), ks = {
2811
+ }(), kn = {
2812
2812
  disableClick: !1,
2813
2813
  tapTolerance: 10,
2814
2814
  // px
@@ -2825,29 +2825,29 @@ var $s = function() {
2825
2825
  // ms
2826
2826
  };
2827
2827
  function ke(e) {
2828
- var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2829
- o && (t.lastTouchStartTime = e.timeStamp), !(n && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (kt(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = xt(e), t.startY = $t(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() {
2830
- t.touchHoldTimer = null, Q(e, s, "hold");
2828
+ var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, s = e.type.indexOf("mouse") >= 0, n = this;
2829
+ o && (t.lastTouchStartTime = e.timeStamp), !(s && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (kt(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = xt(e), t.startY = $t(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() {
2830
+ t.touchHoldTimer = null, Q(e, n, "hold");
2831
2831
  }, t.options.touchHoldTolerance)), Q(e, this, "press")));
2832
2832
  }
2833
2833
  function we(e) {
2834
- var t = this.$$touchObj, o = xt(e), n = $t(e), s = t.currentX != o || t.currentY != n;
2835
- if (t.currentX = o, t.currentY = n, t.touchMoved) {
2834
+ var t = this.$$touchObj, o = xt(e), s = $t(e), n = t.currentX != o || t.currentY != s;
2835
+ if (t.currentX = o, t.currentY = s, t.touchMoved) {
2836
2836
  if (t.hasSwipe && !t.swipeOutBounded) {
2837
- var l = t.options.swipeTolerance;
2838
- t.swipeOutBounded = Math.abs(t.startX - t.currentX) > l && Math.abs(t.startY - t.currentY) > l;
2837
+ var r = t.options.swipeTolerance;
2838
+ t.swipeOutBounded = Math.abs(t.startX - t.currentX) > r && Math.abs(t.startY - t.currentY) > r;
2839
2839
  }
2840
2840
  } else {
2841
2841
  var a = t.options.tapTolerance;
2842
2842
  t.touchMoved = Math.abs(t.startX - t.currentX) > a || Math.abs(t.startY - t.currentY) > a, t.touchMoved && (ze(t), Q(e, this, "drag.once"));
2843
2843
  }
2844
- if (G(this, "rollover") && s) {
2845
- var r = e.timeStamp, i = t.options.rollOverFrequency;
2846
- (t.touchRollTime == null || r > t.touchRollTime + i) && (t.touchRollTime = r, Q(e, this, "rollover"));
2844
+ if (G(this, "rollover") && n) {
2845
+ var l = e.timeStamp, i = t.options.rollOverFrequency;
2846
+ (t.touchRollTime == null || l > t.touchRollTime + i) && (t.touchRollTime = l, Q(e, this, "rollover"));
2847
2847
  }
2848
- if (G(this, "drag") && t.touchStarted && t.touchMoved && s) {
2849
- var r = e.timeStamp, i = t.options.dragFrequency;
2850
- (t.touchDragTime == null || r > t.touchDragTime + i) && (t.touchDragTime = r, Q(e, this, "drag"));
2848
+ if (G(this, "drag") && t.touchStarted && t.touchMoved && n) {
2849
+ var l = e.timeStamp, i = t.options.dragFrequency;
2850
+ (t.touchDragTime == null || l > t.touchDragTime + i) && (t.touchDragTime = l, Q(e, this, "drag"));
2851
2851
  }
2852
2852
  }
2853
2853
  function it() {
@@ -2855,40 +2855,40 @@ function it() {
2855
2855
  ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2856
2856
  }
2857
2857
  function Se(e) {
2858
- var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2858
+ var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, s = e.type.indexOf("mouse") >= 0;
2859
2859
  o && (t.lastTouchEndTime = e.timeStamp);
2860
- var s = o && !t.touchHoldTimer;
2861
- if (ze(t), t.touchStarted = !1, Ve(this), !(n && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
2860
+ var n = o && !t.touchHoldTimer;
2861
+ if (ze(t), t.touchStarted = !1, Ve(this), !(s && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
2862
2862
  if (Q(e, this, "release"), t.touchMoved) {
2863
2863
  if (t.hasSwipe && !t.swipeOutBounded) {
2864
- var a = t.options.swipeTolerance, l, r = Math.abs(t.startY - t.currentY), i = Math.abs(t.startX - t.currentX);
2865
- (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));
2864
+ var a = t.options.swipeTolerance, r, l = Math.abs(t.startY - t.currentY), i = Math.abs(t.startX - t.currentX);
2865
+ (l > a || i > a) && (l > a ? r = t.startY > t.currentY ? "top" : "bottom" : r = t.startX > t.currentX ? "left" : "right", G(this, "swipe." + r) ? Q(e, this, "swipe." + r, r) : Q(e, this, "swipe", r));
2866
2866
  }
2867
2867
  } else if (G(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
2868
2868
  e.cancelable && e.preventDefault(), Q(e, this, "longtap");
2869
- else if (G(this, "hold") && s) {
2869
+ else if (G(this, "hold") && n) {
2870
2870
  e.cancelable && e.preventDefault();
2871
2871
  return;
2872
2872
  } else
2873
2873
  Q(e, this, "tap");
2874
2874
  }
2875
- function lt() {
2875
+ function rt() {
2876
2876
  kt(this);
2877
2877
  }
2878
- function rt() {
2878
+ function lt() {
2879
2879
  Ve(this);
2880
2880
  }
2881
2881
  function G(e, t) {
2882
2882
  var o = e.$$touchObj.callbacks[t];
2883
2883
  return o != null && o.length > 0;
2884
2884
  }
2885
- function Q(e, t, o, n) {
2886
- var s = t.$$touchObj, a = s.callbacks[o];
2885
+ function Q(e, t, o, s) {
2886
+ var n = t.$$touchObj, a = n.callbacks[o];
2887
2887
  if (a == null || a.length === 0)
2888
2888
  return null;
2889
- for (var l = 0; l < a.length; l++) {
2890
- var r = a[l];
2891
- r.modifiers.stop && e.stopPropagation(), r.modifiers.prevent && e.preventDefault(), !(r.modifiers.self && e.target !== e.currentTarget) && typeof r.value == "function" && (n ? r.value(n, e) : r.value(e));
2889
+ for (var r = 0; r < a.length; r++) {
2890
+ var l = a[r];
2891
+ l.modifiers.stop && e.stopPropagation(), l.modifiers.prevent && e.preventDefault(), !(l.modifiers.self && e.target !== e.currentTarget) && typeof l.value == "function" && (s ? l.value(s, e) : l.value(e));
2892
2892
  }
2893
2893
  }
2894
2894
  function kt(e) {
@@ -2902,7 +2902,7 @@ function Ve(e) {
2902
2902
  function ze(e) {
2903
2903
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2904
2904
  }
2905
- function ws(e, t) {
2905
+ function wn(e, t) {
2906
2906
  var o = e.$$touchObj || {
2907
2907
  // an object contains all callbacks registered,
2908
2908
  // key is event name, value is an array
@@ -2910,65 +2910,65 @@ function ws(e, t) {
2910
2910
  // prevent bind twice, set to true when event bound
2911
2911
  hasBindTouchEvents: !1,
2912
2912
  // default options, would be override by v-touch-options
2913
- options: ks
2913
+ options: kn
2914
2914
  };
2915
2915
  return t && (o.options = Object.assign({}, o.options, t)), e.$$touchObj = o, e.$$touchObj;
2916
2916
  }
2917
- const Gs = {
2917
+ const Gn = {
2918
2918
  beforeMount: function(e, t) {
2919
- const o = ws(e);
2920
- let n = $s ? { passive: !0 } : !1;
2921
- const s = t.arg || "tap";
2922
- switch (s) {
2919
+ const o = wn(e);
2920
+ let s = $n ? { passive: !0 } : !1;
2921
+ const n = t.arg || "tap";
2922
+ switch (n) {
2923
2923
  case "swipe":
2924
2924
  let a = t.modifiers;
2925
2925
  if (a.left || a.right || a.top || a.bottom) {
2926
- for (let l in t.modifiers)
2927
- if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
2928
- let r = "swipe." + l;
2929
- o.callbacks[r] = o.callbacks[r] || [], o.callbacks[r].push(t);
2926
+ for (let r in t.modifiers)
2927
+ if (["left", "right", "top", "bottom"].indexOf(r) >= 0) {
2928
+ let l = "swipe." + r;
2929
+ o.callbacks[l] = o.callbacks[l] || [], o.callbacks[l].push(t);
2930
2930
  }
2931
2931
  } else
2932
2932
  o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(t);
2933
2933
  break;
2934
2934
  case "press":
2935
2935
  case "drag":
2936
- t.modifiers.disablePassive && (n = !1);
2936
+ t.modifiers.disablePassive && (s = !1);
2937
2937
  default:
2938
- o.callbacks[s] = o.callbacks[s] || [], o.callbacks[s].push(t);
2938
+ o.callbacks[n] = o.callbacks[n] || [], o.callbacks[n].push(t);
2939
2939
  }
2940
- o.hasBindTouchEvents || (e.addEventListener("touchstart", ke, n), e.addEventListener("touchmove", we, n), e.addEventListener("touchcancel", it), e.addEventListener("touchend", Se), o.options.disableClick || (e.addEventListener("mousedown", ke), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Se), e.addEventListener("mouseenter", lt), e.addEventListener("mouseleave", rt)), o.hasBindTouchEvents = !0);
2940
+ o.hasBindTouchEvents || (e.addEventListener("touchstart", ke, s), e.addEventListener("touchmove", we, s), e.addEventListener("touchcancel", it), e.addEventListener("touchend", Se), o.options.disableClick || (e.addEventListener("mousedown", ke), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Se), e.addEventListener("mouseenter", rt), e.addEventListener("mouseleave", lt)), o.hasBindTouchEvents = !0);
2941
2941
  },
2942
2942
  unmounted: function(e) {
2943
- e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel", it), e.removeEventListener("touchend", Se), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", ke), e.removeEventListener("mousemove", we), e.removeEventListener("mouseup", Se), e.removeEventListener("mouseenter", lt), e.removeEventListener("mouseleave", rt)), delete e.$$touchObj;
2943
+ e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel", it), e.removeEventListener("touchend", Se), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", ke), e.removeEventListener("mousemove", we), e.removeEventListener("mouseup", Se), e.removeEventListener("mouseenter", rt), e.removeEventListener("mouseleave", lt)), delete e.$$touchObj;
2944
2944
  }
2945
2945
  };
2946
2946
  export {
2947
- Ds as DAccordion,
2947
+ Dn as DAccordion,
2948
2948
  Jo as DAlertDialog,
2949
- lo as DBadge,
2949
+ ro as DBadge,
2950
2950
  ae as DButton,
2951
- Ms as DCard,
2952
- Os as DCheckbox,
2953
- ro as DCollapse,
2951
+ Mn as DCard,
2952
+ On as DCheckbox,
2953
+ lo as DCollapse,
2954
2954
  he as DComponentStore,
2955
- Cs as DConfigProvider,
2956
- en as DConfirmDialog,
2955
+ Cn as DConfigProvider,
2956
+ es as DConfirmDialog,
2957
2957
  Io as DContextMenu,
2958
- As as DDialogProvider,
2958
+ An as DDialogProvider,
2959
2959
  po as DDrag,
2960
2960
  Co as DDrop,
2961
- Bs as DDropdown,
2962
- Ps as DForm,
2961
+ Bn as DDropdown,
2962
+ Pn as DForm,
2963
2963
  pe as DGlobalStore,
2964
- zs as DGrid,
2964
+ zn as DGrid,
2965
2965
  de as DIcon,
2966
2966
  ee as DIconStore,
2967
- Ws as DImage,
2968
- Rs as DInfoProgress,
2969
- Ts as DInput,
2970
- js as DInputString,
2971
- Ls as DLayoutAdmin,
2967
+ Fn as DImage,
2968
+ Rn as DInfoProgress,
2969
+ Tn as DInput,
2970
+ jn as DInputString,
2971
+ Ln as DLayoutAdmin,
2972
2972
  Oo as DLayoutContent,
2973
2973
  No as DLayoutFooter,
2974
2974
  Bo as DLayoutHeader,
@@ -2976,26 +2976,26 @@ export {
2976
2976
  Mo as DLayoutTab,
2977
2977
  gt as DMenu,
2978
2978
  yt as DModal,
2979
- Ns as DNotificationProvider,
2980
- an as DPanel,
2981
- Es as DScroll,
2982
- Is as DScrollProvider,
2983
- Hs as DSelect,
2984
- Vs as DTabs,
2985
- Fs as DTextarea,
2979
+ Nn as DNotificationProvider,
2980
+ as as DPanel,
2981
+ En as DScroll,
2982
+ In as DScrollProvider,
2983
+ Hn as DSelect,
2984
+ Vn as DTabs,
2985
+ Wn as DTextarea,
2986
2986
  De as DTransferStore,
2987
2987
  vt as DTree,
2988
2988
  Do as DTreeItem,
2989
2989
  v as DTreeStore,
2990
2990
  Y as Rules,
2991
- Nn as alert,
2992
- Ys as clickOutside,
2993
- Mn as confirm,
2991
+ Ms as alert,
2992
+ Yn as clickOutside,
2993
+ Bs as confirm,
2994
2994
  U as emitter,
2995
2995
  Lo as eventsBus,
2996
- qs as focus,
2997
- Us as keydown,
2996
+ qn as focus,
2997
+ Un as keydown,
2998
2998
  bt as notify,
2999
- Gs as touch,
3000
- Xs as useNotification
2999
+ Gn as touch,
3000
+ Xn as useNotification
3001
3001
  };