doph-js 0.2.60 → 0.2.62

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 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";
1
+ import { useSlots as Le, computed as m, h as st, openBlock as d, createBlock as b, unref as E, ref as w, createElementBlock as f, Fragment as ie, normalizeClass as T, renderSlot as L, createCommentVNode as k, normalizeStyle as H, resolveDynamicComponent as Y, createStaticVNode as ct, onMounted as fe, toDisplayString as A, withDirectives as te, createElementVNode as _, vModelDynamic as De, withCtx as C, createTextVNode as K, Transition as Ne, withModifiers as X, resolveComponent as St, resolveDirective as Re, createVNode as oe, renderList as ge, pushScopeId as Dt, popScopeId as Tt, reactive as Oe, Teleport as ut, nextTick as pt, getCurrentInstance as ft, watch as mt, onUnmounted as Lt, mergeProps as ue, useCssVars as Ae, shallowRef as Ct, defineComponent as It, normalizeProps as Et, guardReactiveProps as Bt, TransitionGroup as ht, vModelCheckbox as Mt, vModelSelect as Nt, toRef as Rt, KeepAlive as Ot, toRefs as At, vModelText as Ht } from "vue";
2
2
  const de = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -29,7 +29,7 @@ const de = {
29
29
  },
30
30
  t.component ? st(t.component) : o
31
31
  ));
32
- return (l, i) => (d(), x(E(r)));
32
+ return (l, i) => (d(), b(E(r)));
33
33
  }
34
34
  }, ee = {
35
35
  state: {},
@@ -51,14 +51,14 @@ const de = {
51
51
  }
52
52
  }
53
53
  };
54
- function ht(e) {
54
+ function gt(e) {
55
55
  const t = e.value.getBoundingClientRect();
56
56
  let o = e.value, s = 0, n = 0;
57
57
  for (; o && !isNaN(o.offsetLeft) && !isNaN(o.offsetTop); )
58
58
  s += o.offsetLeft - o.scrollLeft, n += o.offsetTop - o.scrollTop, o = o.offsetParent;
59
59
  return { top: n, left: s, x: t.x, y: t.y, width: t.width, height: t.height };
60
60
  }
61
- function Ht() {
61
+ function Vt() {
62
62
  function e(n) {
63
63
  return n * Math.random() | 0;
64
64
  }
@@ -81,21 +81,21 @@ const re = (e, t) => {
81
81
  for (const [s, n] of t)
82
82
  o[s] = n;
83
83
  return o;
84
- }, Vt = {
84
+ }, zt = {
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), Ft = [
90
- zt
91
- ], Wt = { key: 1 }, Pt = {
89
+ }, Ft = /* @__PURE__ */ ct('<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 = [
90
+ Ft
91
+ ], Pt = { key: 1 }, jt = {
92
92
  key: 2,
93
93
  class: "loading-svg rotating",
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  viewBox: "0 0 24 24"
96
- }, jt = /* @__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), Xt = [
97
- jt
98
- ], Yt = {
96
+ }, Xt = /* @__PURE__ */ ct('<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), Yt = [
97
+ Xt
98
+ ], Ut = {
99
99
  __name: "DButton",
100
100
  props: {
101
101
  class: String,
@@ -120,27 +120,27 @@ const re = (e, t) => {
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
122
  setup(e, { expose: t, emit: o }) {
123
- const s = e, n = Le(), a = w(null), r = m(() => s.icon ? ee.getters.getIcon(s.icon) : null), l = (k) => {
124
- o("click", k);
125
- }, i = (k) => {
126
- o("contextmenu", 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}` : "";
123
+ const s = e, n = Le(), a = w(null), r = m(() => s.icon ? ee.getters.getIcon(s.icon) : null), l = ($) => {
124
+ o("click", $);
125
+ }, i = ($) => {
126
+ o("contextmenu", $);
127
+ }, c = m(() => s.scale === "large" ? "button-lg" : s.scale === "small" ? "button-sm" : ""), u = m(() => s.disabled ? "disabled" : ""), h = ($) => !!n[$], x = m(() => h("default") ? "" : s.scale === "large" ? "d-button-lg-icon" : s.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
128
+ const $ = s.outline ? "-outline" : "";
129
+ return s.type === "primary" ? `button${$}-blue` : s.type === "success" ? `button${$}-green` : s.type === "error" ? `button${$}-red` : s.type === "warning" ? `button${$}-orange` : s.type === "wait" ? `button${$}-violet` : s.outline ? `button${$}` : "";
130
130
  });
131
131
  return t({
132
- elementSize: () => ht(a)
133
- }), (k, F) => (d(), f(ie, null, [
134
- r.value ? $("", !0) : (d(), f("div", {
132
+ elementSize: () => gt(a)
133
+ }), ($, V) => (d(), f(ie, null, [
134
+ r.value ? k("", !0) : (d(), f("div", {
135
135
  key: 0,
136
136
  ref_key: "el",
137
137
  ref: a,
138
138
  onClick: l,
139
139
  onContextmenu: i,
140
- class: D(["button", [s.class, c.value, S.value, u.value].join(" ")])
140
+ class: T(["button", [s.class, c.value, S.value, u.value].join(" ")])
141
141
  }, [
142
- L(k.$slots, "default", {}, void 0, !0),
143
- s.loading ? (d(), f("svg", Vt, Ft)) : $("", !0)
142
+ L($.$slots, "default", {}, void 0, !0),
143
+ s.loading ? (d(), f("svg", zt, Wt)) : k("", !0)
144
144
  ], 34)),
145
145
  r.value ? (d(), f("div", {
146
146
  key: 1,
@@ -148,43 +148,43 @@ const re = (e, t) => {
148
148
  ref: a,
149
149
  onClick: l,
150
150
  onContextmenu: i,
151
- class: D(["button button-ext", [s.class, c.value, b.value, S.value, u.value].join(" ")]),
151
+ class: T(["button button-ext", [s.class, c.value, x.value, S.value, u.value].join(" ")]),
152
152
  style: H(s.style)
153
153
  }, [
154
- s.icon ? (d(), x(X(de), {
154
+ s.icon ? (d(), b(Y(de), {
155
155
  key: 0,
156
156
  component: r.value,
157
157
  color: "inherit"
158
- }, null, 8, ["component"])) : $("", !0),
159
- E(n).default ? (d(), f("div", Wt, [
160
- L(k.$slots, "default", {}, void 0, !0)
161
- ])) : $("", !0),
162
- s.loading ? (d(), f("svg", Pt, Xt)) : $("", !0)
163
- ], 38)) : $("", !0)
158
+ }, null, 8, ["component"])) : k("", !0),
159
+ E(n).default ? (d(), f("div", Pt, [
160
+ L($.$slots, "default", {}, void 0, !0)
161
+ ])) : k("", !0),
162
+ s.loading ? (d(), f("svg", jt, Yt)) : k("", !0)
163
+ ], 38)) : k("", !0)
164
164
  ], 64));
165
165
  }
166
- }, ae = /* @__PURE__ */ re(Yt, [["__scopeId", "data-v-e5cd6ccd"]]);
167
- const Ut = {
166
+ }, ae = /* @__PURE__ */ re(Ut, [["__scopeId", "data-v-e5cd6ccd"]]);
167
+ const qt = {
168
168
  key: 0,
169
169
  class: "d-input"
170
- }, qt = {
170
+ }, Gt = {
171
171
  key: 0,
172
172
  class: "label"
173
- }, Gt = ["type", "placeholder"], Zt = {
173
+ }, Zt = ["type", "placeholder"], Kt = {
174
174
  key: 1,
175
175
  class: "d-input",
176
176
  style: { display: "flex", "flex-direction": "column" }
177
- }, Kt = {
177
+ }, Jt = {
178
178
  key: 0,
179
179
  class: "label"
180
- }, Jt = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Qt = { style: { flex: "1" } }, eo = ["type", "placeholder"], to = {
180
+ }, Qt = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, eo = { style: { flex: "1" } }, to = ["type", "placeholder"], oo = {
181
181
  key: 2,
182
182
  class: "d-input",
183
183
  style: { display: "flex", "flex-direction": "column" }
184
- }, oo = {
184
+ }, so = {
185
185
  key: 0,
186
186
  class: "label"
187
- }, so = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, no = { style: { flex: "1" } }, ao = ["type", "placeholder"], io = {
187
+ }, no = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, ao = { style: { flex: "1" } }, io = ["type", "placeholder"], ro = {
188
188
  __name: "DInput",
189
189
  props: {
190
190
  label: String,
@@ -213,92 +213,92 @@ const Ut = {
213
213
  };
214
214
  return t({
215
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),
216
+ }), (i, c) => !s.post && !s.pre ? (d(), f("div", qt, [
217
+ s.label ? (d(), f("div", Gt, A(s.label), 1)) : k("", !0),
218
218
  te(_("input", {
219
219
  ref_key: "inputRef",
220
220
  ref: n,
221
221
  "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
222
222
  type: s.password ? "password" : "text",
223
- class: D(a.value),
223
+ class: T(a.value),
224
224
  placeholder: s.placeholder,
225
225
  style: { width: "100%" }
226
- }, null, 10, Gt), [
227
- [Te, r.value]
226
+ }, null, 10, Zt), [
227
+ [De, r.value]
228
228
  ])
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
- _("div", Jt, [
232
- _("div", Qt, [
229
+ ])) : s.post && s.post.click && !s.pre ? (d(), f("div", Kt, [
230
+ s.label ? (d(), f("div", Jt, A(s.label), 1)) : k("", !0),
231
+ _("div", Qt, [
232
+ _("div", eo, [
233
233
  te(_("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: n,
236
- class: D(["d-input-post-field", a.value]),
236
+ class: T(["d-input-post-field", a.value]),
237
237
  "onUpdate:modelValue": c[1] || (c[1] = (u) => r.value = u),
238
238
  type: s.password ? "password" : "text",
239
239
  placeholder: s.placeholder,
240
240
  style: { width: "100%" }
241
- }, null, 10, eo), [
242
- [Te, r.value]
241
+ }, null, 10, to), [
242
+ [De, r.value]
243
243
  ])
244
244
  ]),
245
- s.post.label ? (d(), x(ae, {
245
+ s.post.label ? (d(), b(ae, {
246
246
  key: 0,
247
247
  scale: s.scale,
248
- class: D(["d-input-post-button", s.post.class]),
248
+ class: T(["d-input-post-button", s.post.class]),
249
249
  onClick: s.post.click,
250
250
  icon: s.post.icon
251
251
  }, {
252
- default: I(() => [
252
+ default: C(() => [
253
253
  K(A(s.post.label), 1)
254
254
  ]),
255
255
  _: 1
256
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
256
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ae, {
257
257
  key: 1,
258
258
  scale: s.scale,
259
- class: D(["d-input-post-button", s.post.class]),
259
+ class: T(["d-input-post-button", s.post.class]),
260
260
  onClick: s.post.click,
261
261
  icon: s.post.icon
262
262
  }, null, 8, ["scale", "onClick", "icon", "class"]))
263
263
  ])
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, {
264
+ ])) : !s.post && s.pre && s.pre.click ? (d(), f("div", oo, [
265
+ s.label ? (d(), f("div", so, A(s.label), 1)) : k("", !0),
266
+ _("div", no, [
267
+ s.pre.label ? (d(), b(ae, {
268
268
  key: 0,
269
269
  scale: s.scale,
270
- class: D(["d-input-pre-button", s.pre.class]),
270
+ class: T(["d-input-pre-button", s.pre.class]),
271
271
  onClick: s.pre.click,
272
272
  icon: s.pre.icon
273
273
  }, {
274
- default: I(() => [
274
+ default: C(() => [
275
275
  K(A(s.pre.label), 1)
276
276
  ]),
277
277
  _: 1
278
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
278
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ae, {
279
279
  key: 1,
280
280
  scale: s.scale,
281
- class: D(["d-input-pre-button", s.pre.class]),
281
+ class: T(["d-input-pre-button", s.pre.class]),
282
282
  onClick: s.pre.click,
283
283
  icon: s.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
285
- _("div", no, [
285
+ _("div", ao, [
286
286
  te(_("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: n,
289
- class: D(["d-input-pre-field", a.value]),
289
+ class: T(["d-input-pre-field", a.value]),
290
290
  "onUpdate:modelValue": c[2] || (c[2] = (u) => r.value = u),
291
291
  type: s.password ? "password" : "text",
292
292
  placeholder: s.placeholder,
293
293
  style: { width: "100%" }
294
- }, null, 10, ao), [
295
- [Te, r.value]
294
+ }, null, 10, io), [
295
+ [De, r.value]
296
296
  ])
297
297
  ])
298
298
  ])
299
- ])) : $("", !0);
299
+ ])) : k("", !0);
300
300
  }
301
- }, Tn = /* @__PURE__ */ re(io, [["__scopeId", "data-v-a972038a"]]), ro = {
301
+ }, Sn = /* @__PURE__ */ re(ro, [["__scopeId", "data-v-a972038a"]]), lo = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -315,12 +315,12 @@ const Ut = {
315
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
317
  return (n, a) => (d(), f("div", {
318
- class: D(["badge", [t.class, o.value, s.value].join(" ")])
318
+ class: T(["badge", [t.class, o.value, s.value].join(" ")])
319
319
  }, [
320
320
  L(n.$slots, "default")
321
321
  ], 2));
322
322
  }
323
- }, ne = "0px", lo = {
323
+ }, ne = "0px", co = {
324
324
  __name: "DCollapse",
325
325
  props: {
326
326
  duration: {
@@ -362,8 +362,8 @@ const Ut = {
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
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
- const S = i.animate(h, b);
365
+ }, n = (i, c, u, h, x) => {
366
+ const S = i.animate(h, x);
367
367
  i.style.height = c.height, S.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
@@ -389,26 +389,26 @@ const Ut = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
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 };
392
+ const u = i, h = o(u), x = s(u, h), S = a(x, h), N = { duration: t.duration, easing: t.easingEnter };
393
393
  n(u, h, c, S, N);
394
394
  }, l = (i, c) => {
395
- const u = i, h = o(u), { height: b } = getComputedStyle(u);
396
- u.style.height = b, u.style.overflow = "hidden";
397
- const S = a(b, h).reverse(), N = { duration: t.duration, easing: t.easingLeave };
395
+ const u = i, h = o(u), { height: x } = getComputedStyle(u);
396
+ u.style.height = x, u.style.overflow = "hidden";
397
+ const S = a(x, h).reverse(), N = { duration: t.duration, easing: t.easingLeave };
398
398
  n(u, h, c, S, N);
399
399
  };
400
- return (i, c) => (d(), x(Ne, {
400
+ return (i, c) => (d(), b(Ne, {
401
401
  css: !1,
402
402
  onEnter: r,
403
403
  onLeave: l
404
404
  }, {
405
- default: I(() => [
405
+ default: C(() => [
406
406
  L(i.$slots, "default")
407
407
  ]),
408
408
  _: 3
409
409
  }));
410
410
  }
411
- }, De = {
411
+ }, Te = {
412
412
  data: void 0
413
413
  }, He = (e) => e.reduce((t, o) => (t[o] = o) && t, {}), j = He([
414
414
  "drag",
@@ -418,7 +418,7 @@ const Ut = {
418
418
  "dragstart",
419
419
  "dragover",
420
420
  "drop"
421
- ]), co = He(["copy", "move", "link", "none"]), uo = He([
421
+ ]), uo = He(["copy", "move", "link", "none"]), po = He([
422
422
  "none",
423
423
  "copy",
424
424
  "copyLink",
@@ -428,13 +428,13 @@ const Ut = {
428
428
  "move",
429
429
  "all",
430
430
  "uninitialized"
431
- ]), po = {
431
+ ]), nt = {
432
432
  __name: "DDrag",
433
433
  props: {
434
434
  draggable: { type: Boolean, default: !0 },
435
435
  transferData: {},
436
- dropEffect: { validator: (e) => e in co },
437
- effectAllowed: { validator: (e) => e in uo },
436
+ dropEffect: { validator: (e) => e in uo },
437
+ effectAllowed: { validator: (e) => e in po },
438
438
  image: String,
439
439
  imageXOffset: { type: Number, default: 0 },
440
440
  imageYOffset: { type: Number, default: 0 },
@@ -449,18 +449,18 @@ const Ut = {
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", "")), s.value = !0;
452
+ t.transferData !== void 0 && (Te.data = t.transferData, i.dataTransfer.setData("text", "")), s.value = !0;
453
453
  }
454
454
  };
455
- return (l, i) => (d(), x(X(e.tag), {
455
+ return (l, i) => (d(), b(Y(e.tag), {
456
456
  draggable: t.draggable,
457
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"])),
458
+ onDragstart: i[1] || (i[1] = X((c) => r(E(j).dragstart, c), ["stop"])),
459
459
  onDragenter: i[2] || (i[2] = (c) => r(E(j).dragenter, c)),
460
460
  onDragleave: i[3] || (i[3] = (c) => r(E(j).dragleave, c)),
461
461
  onDragend: i[4] || (i[4] = (c) => r(E(j).dragend, c))
462
462
  }, {
463
- default: I(() => [
463
+ default: C(() => [
464
464
  L(l.$slots, "default", { transferData: n.value }),
465
465
  e.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
@@ -476,18 +476,18 @@ const Ut = {
476
476
  }, 40, ["draggable"]));
477
477
  }
478
478
  };
479
- const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
479
+ const fo = (e) => (Dt("data-v-ff995395"), e = e(), Tt(), e), mo = {
480
480
  key: 0,
481
481
  style: { display: "none" }
482
482
  }, ho = { key: 1 }, go = /* @__PURE__ */ fo(() => /* @__PURE__ */ _("div", { class: "tree-divider" }, null, -1)), vo = [
483
483
  go
484
- ], yo = { key: 2 }, _o = { class: "tree-divider-header" }, bo = { key: 3 }, xo = { class: "item-title" }, $o = {
484
+ ], yo = { key: 2 }, _o = { class: "tree-divider-header" }, bo = { class: "item-title" }, xo = {
485
485
  key: 0,
486
486
  class: "tree-divider"
487
- }, ko = { key: 1 }, wo = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, So = {
487
+ }, $o = { key: 1 }, ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, wo = {
488
488
  key: 0,
489
489
  class: "sub-menu"
490
- }, To = {
490
+ }, So = {
491
491
  __name: "DTreeItem",
492
492
  props: {
493
493
  model: Object,
@@ -504,10 +504,10 @@ const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
504
504
  t("nodeclick", M);
505
505
  }, h = (M) => {
506
506
  t("nodedrop", M);
507
- }, b = (M) => {
507
+ }, x = (M) => {
508
508
  t("nodecontext", M);
509
- }, S = m(() => (g.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
- let y = De.data;
509
+ }, S = m(() => (g.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), $ = (M) => {
510
+ let y = Te.data;
511
511
  if (y === void 0 || y.model === void 0)
512
512
  return n.value = !1, !1;
513
513
  if (y.model.id === o.model.id || g.actions.isChildOfParent(o.treeId, o.items, o.model.id, y.model.id) || g.actions.isParentOfChild(o.treeId, o.items, y.model.id, o.model.id))
@@ -516,9 +516,9 @@ const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
516
516
  return !1;
517
517
  let O = "";
518
518
  a.value ? O = "before" : r.value ? O = "after" : O = "inside", t("nodedrop", { e: M, model: o.model, place: O }), g.actions.moveTreeNode(y.id, o.treeId, o.items, y.model.id, o.model.id, O), n.value = !1, a.value = !1, r.value = !1;
519
- }, F = (M) => {
519
+ }, V = (M) => {
520
520
  t("nodedragover", { e: M, model: o.model });
521
- let y = De.data;
521
+ let y = Te.data;
522
522
  if (y === void 0 || y.model === void 0)
523
523
  return n.value = !0, !1;
524
524
  if (y.model.id === o.model.id || g.actions.isChildOfParent(o.treeId, o.items, o.model.id, y.model.id) || g.actions.isParentOfChild(o.treeId, o.items, y.model.id, o.model.id))
@@ -527,7 +527,7 @@ const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
527
527
  O > W && O <= W + v ? (n.value = !1, a.value = !0, r.value = !1) : O < W + P && O >= W + P - v ? (n.value = !1, a.value = !1, r.value = !0) : (n.value = g.state.trees[o.treeId].dropInside, a.value = !1, r.value = !1);
528
528
  }, R = () => {
529
529
  n.value = !1, a.value = !1, r.value = !1;
530
- }, C = m(() => o.model.title.startsWith("-")), B = m(() => {
530
+ }, I = m(() => o.model.title.startsWith("-")), B = m(() => {
531
531
  if (o.model.title.startsWith("-")) {
532
532
  let [M, ...y] = o.model.title.split(" ");
533
533
  return y = y.join(" "), y;
@@ -535,95 +535,109 @@ const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
535
535
  return null;
536
536
  });
537
537
  return (M, y) => {
538
- const O = wt("d-tree-item", !0), W = Re("touch");
539
- return E(g).actions.beforeItem(o.treeId, e.model) ? C.value && !B.value ? (d(), f("li", ho, vo)) : C.value && B.value ? (d(), f("li", yo, [
538
+ const O = St("d-tree-item", !0), W = Re("touch");
539
+ return E(g).actions.beforeItem(o.treeId, e.model) ? I.value && !B.value ? (d(), f("li", ho, vo)) : I.value && B.value ? (d(), f("li", yo, [
540
540
  _("div", _o, A(E(g).actions.renderTitle(o.treeId, B.value)), 1)
541
- ])) : o.model.component ? (d(), f("li", bo, [
542
- (d(), x(X(E(he).getters.getComponent(o.model.component))))
543
- ])) : (d(), x(po, {
541
+ ])) : o.model.component ? (d(), b(nt, {
542
+ key: 3,
543
+ tag: "li",
544
+ class: "tree-item",
545
+ "transfer-data": { id: o.treeId, model: o.model },
546
+ draggable: N.value,
547
+ onDrop: X($, ["stop"]),
548
+ onDragenter: y[0] || (y[0] = X(() => {
549
+ }, ["prevent"])),
550
+ onDragover: X(V, ["prevent", "stop"]),
551
+ onDragleave: X(R, ["prevent"])
552
+ }, {
553
+ default: C(() => [
554
+ (d(), b(Y(E(he).getters.getComponent(o.model.component))))
555
+ ]),
556
+ _: 1
557
+ }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), b(nt, {
544
558
  key: 4,
545
559
  tag: "li",
546
560
  class: "tree-item",
547
561
  "transfer-data": { id: o.treeId, model: o.model },
548
562
  draggable: N.value,
549
- onDrop: Z(k, ["stop"]),
550
- onDragenter: y[1] || (y[1] = Z(() => {
563
+ onDrop: X($, ["stop"]),
564
+ onDragenter: y[2] || (y[2] = X(() => {
551
565
  }, ["prevent"])),
552
- onDragover: Z(F, ["prevent", "stop"]),
553
- onDragleave: Z(R, ["prevent"])
566
+ onDragover: X(V, ["prevent", "stop"]),
567
+ onDragleave: X(R, ["prevent"])
554
568
  }, {
555
- default: I(() => {
569
+ default: C(() => {
556
570
  var P, v;
557
571
  return [
558
572
  te((d(), f("div", {
559
573
  ref_key: "node",
560
574
  ref: s,
561
- class: D(S.value),
562
- onContextmenu: y[0] || (y[0] = Z((V) => t("nodecontext", { e: V, model: o.model }), ["prevent"]))
575
+ class: T(S.value),
576
+ onContextmenu: y[1] || (y[1] = X((z) => t("nodecontext", { e: z, model: o.model }), ["prevent"]))
563
577
  }, [
564
578
  _("div", null, [
565
- o.model.icons && o.model.icons.pre && l.value && !o.search && !C.value ? (d(), x(X(de), {
579
+ o.model.icons && o.model.icons.pre && l.value && !o.search && !I.value ? (d(), b(Y(de), {
566
580
  key: 0,
567
581
  component: E(ee).getters.getIcon(o.model.icons.pre.component),
568
582
  size: 18,
569
583
  color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
570
- class: D(i.value ? "tree-open-pre" : "")
571
- }, null, 8, ["component", "color", "class"])) : $("", !0),
572
- o.model.icons && o.model.icons.pre && !l.value && !o.search && !C.value ? (d(), x(X(de), {
584
+ class: T(i.value ? "tree-open-pre" : "")
585
+ }, null, 8, ["component", "color", "class"])) : k("", !0),
586
+ o.model.icons && o.model.icons.pre && !l.value && !o.search && !I.value ? (d(), b(Y(de), {
573
587
  key: 1,
574
588
  component: E(ee).getters.getIcon(o.model.icons.pre.component),
575
589
  size: 18,
576
590
  color: "rgba(0,0,0,0)",
577
- class: D(i.value ? "tree-open-pre" : "")
578
- }, null, 8, ["component", "class"])) : $("", !0),
579
- o.model.icons && o.model.icons.icon && !C.value ? (d(), x(X(de), {
591
+ class: T(i.value ? "tree-open-pre" : "")
592
+ }, null, 8, ["component", "class"])) : k("", !0),
593
+ o.model.icons && o.model.icons.icon && !I.value ? (d(), b(Y(de), {
580
594
  key: 2,
581
595
  component: E(ee).getters.getIcon(o.model.icons.icon.component),
582
596
  color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
583
597
  size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
584
598
  className: o.model.icons.icon.class ? o.model.icons.icon.class : null
585
- }, null, 8, ["component", "color", "size", "className"])) : $("", !0),
586
- _("div", xo, [
587
- C.value ? (d(), f("div", $o)) : $("", !0),
588
- C.value ? $("", !0) : (d(), f("div", ko, A(E(g).actions.renderTitle(o.treeId, o.model.title)), 1))
599
+ }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
600
+ _("div", bo, [
601
+ I.value ? (d(), f("div", xo)) : k("", !0),
602
+ I.value ? k("", !0) : (d(), f("div", $o, A(E(g).actions.renderTitle(o.treeId, o.model.title)), 1))
589
603
  ])
590
604
  ]),
591
- _("div", wo, [
592
- ((P = o.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(ro), {
605
+ _("div", ko, [
606
+ ((P = o.model.badge) == null ? void 0 : P.value) !== void 0 && !I.value ? (d(), b(Y(lo), {
593
607
  key: 0,
594
- class: D([(v = o.model.badge) == null ? void 0 : v.class, "badge-sm"])
608
+ class: T([(v = o.model.badge) == null ? void 0 : v.class, "badge-sm"])
595
609
  }, {
596
- default: I(() => [
610
+ default: C(() => [
597
611
  K(A(o.model.badge.value), 1)
598
612
  ]),
599
613
  _: 1
600
- }, 8, ["class"])) : $("", !0),
601
- o.model.icons && o.model.icons.post && l.value && !o.search && !C.value ? (d(), x(X(de), {
614
+ }, 8, ["class"])) : k("", !0),
615
+ o.model.icons && o.model.icons.post && l.value && !o.search && !I.value ? (d(), b(Y(de), {
602
616
  key: 1,
603
617
  component: E(ee).getters.getIcon(o.model.icons.post.component),
604
618
  size: 20,
605
619
  color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
606
- class: D(i.value ? "tree-open-post" : "")
607
- }, null, 8, ["component", "color", "class"])) : $("", !0)
620
+ class: T(i.value ? "tree-open-post" : "")
621
+ }, null, 8, ["component", "color", "class"])) : k("", !0)
608
622
  ])
609
623
  ], 34)), [
610
624
  [W, c]
611
625
  ]),
612
- oe(lo, null, {
613
- default: I(() => [
614
- l.value && i.value && !o.search ? (d(), f("ul", So, [
615
- (d(!0), f(ie, null, ge(e.model.children, (V) => (d(), x(O, {
626
+ oe(co, null, {
627
+ default: C(() => [
628
+ l.value && i.value && !o.search ? (d(), f("ul", wo, [
629
+ (d(!0), f(ie, null, ge(e.model.children, (z) => (d(), b(O, {
616
630
  class: "tree-item",
617
- key: V.id,
618
- model: V,
631
+ key: z.id,
632
+ model: z,
619
633
  treeId: o.treeId,
620
634
  items: o.items,
621
635
  search: o.search,
622
636
  onNodeclick: u,
623
637
  onNodedrop: h,
624
- onNodecontext: b
638
+ onNodecontext: x
625
639
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
626
- ])) : $("", !0)
640
+ ])) : k("", !0)
627
641
  ]),
628
642
  _: 1
629
643
  })
@@ -633,8 +647,8 @@ const fo = (e) => (St("data-v-1d5c1429"), e = e(), Tt(), e), mo = {
633
647
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), f("li", mo));
634
648
  };
635
649
  }
636
- }, Do = /* @__PURE__ */ re(To, [["__scopeId", "data-v-1d5c1429"]]);
637
- function Lo(e) {
650
+ }, Do = /* @__PURE__ */ re(So, [["__scopeId", "data-v-ff995395"]]);
651
+ function To(e) {
638
652
  return e = e || /* @__PURE__ */ new Map(), {
639
653
  /**
640
654
  * A Map of event names to registered handler functions.
@@ -681,7 +695,7 @@ function Lo(e) {
681
695
  }
682
696
  };
683
697
  }
684
- const U = Lo(), g = {
698
+ const q = To(), g = {
685
699
  state: Oe({
686
700
  trees: {}
687
701
  }),
@@ -721,7 +735,7 @@ const U = Lo(), g = {
721
735
  return g.state.trees[e].selected.includes(t);
722
736
  },
723
737
  toggleItem(e, t) {
724
- t.expanded = t.expanded === void 0 || !t.expanded, t.children && t.children.length && (t.expanded ? U.emit(`expand-${e}`, { id: e, model: t }) : U.emit(`collapse-${e}`, { id: e, model: t }));
738
+ t.expanded = t.expanded === void 0 || !t.expanded, t.children && t.children.length && (t.expanded ? q.emit(`expand-${e}`, { id: e, model: t }) : q.emit(`collapse-${e}`, { id: e, model: t }));
725
739
  },
726
740
  isTreeExpanded(e) {
727
741
  return g.state.trees[e].expanded;
@@ -756,7 +770,7 @@ const U = Lo(), g = {
756
770
  },
757
771
  moveTreeNode(e, t, o, s, n, a) {
758
772
  const r = g.actions.deleteTreeNode(o, s);
759
- g.actions.insertTreeNode(o, n, r, a), U.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: r.id, target: n, position: a });
773
+ g.actions.insertTreeNode(o, n, r, a), q.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: r == null ? void 0 : r.id, target: n, position: a });
760
774
  },
761
775
  insertTreeNode(e, t, o, s) {
762
776
  if (e)
@@ -783,7 +797,7 @@ const U = Lo(), g = {
783
797
  }
784
798
  }
785
799
  }
786
- }, Co = {
800
+ }, Lo = {
787
801
  __name: "DDrop",
788
802
  props: {
789
803
  tag: { type: String, default: "div" }
@@ -792,25 +806,25 @@ const U = Lo(), g = {
792
806
  setup(e, { expose: t, emit: o }) {
793
807
  let s = Oe({});
794
808
  const n = w("false"), a = w(null), r = /* @__PURE__ */ new Set(), l = m(() => n.value && s), i = (u, h) => {
795
- 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;
809
+ s = Te.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;
796
810
  };
797
811
  return t({
798
- elementSize: () => ht(a)
799
- }), (u, h) => (d(), x(X(e.tag), {
812
+ elementSize: () => gt(a)
813
+ }), (u, h) => (d(), b(Y(e.tag), {
800
814
  ref_key: "el",
801
815
  ref: a,
802
- onDragenter: h[0] || (h[0] = (b) => i(E(j).dragenter, b)),
803
- onDragleave: h[1] || (h[1] = (b) => i(E(j).dragleave, b)),
804
- onDragover: h[2] || (h[2] = Z((b) => i(E(j).dragover, b), ["prevent"])),
805
- onDrop: h[3] || (h[3] = Z((b) => i(E(j).drop, b), ["prevent"]))
816
+ onDragenter: h[0] || (h[0] = (x) => i(E(j).dragenter, x)),
817
+ onDragleave: h[1] || (h[1] = (x) => i(E(j).dragleave, x)),
818
+ onDragover: h[2] || (h[2] = X((x) => i(E(j).dragover, x), ["prevent"])),
819
+ onDrop: h[3] || (h[3] = X((x) => i(E(j).drop, x), ["prevent"]))
806
820
  }, {
807
- default: I(() => [
821
+ default: C(() => [
808
822
  L(u.$slots, "default", { transferData: l.value })
809
823
  ]),
810
824
  _: 3
811
825
  }, 544));
812
826
  }
813
- }, gt = {
827
+ }, vt = {
814
828
  __name: "DMenu",
815
829
  props: {
816
830
  class: String,
@@ -832,12 +846,12 @@ const U = Lo(), g = {
832
846
  const s = e;
833
847
  let n = w(null), a = w(!1);
834
848
  const r = () => {
835
- U.emit("menu-show-request"), a.value = !0;
849
+ q.emit("menu-show-request"), a.value = !0;
836
850
  }, l = () => {
837
- var b;
838
- (b = n.value) == null || b.collapseAll(), a.value = !1;
851
+ var x;
852
+ (x = n.value) == null || x.collapseAll(), a.value = !1;
839
853
  }, i = () => a.value;
840
- U.on("menu-show-request", () => {
854
+ q.on("menu-show-request", () => {
841
855
  l();
842
856
  }), t({
843
857
  show: r,
@@ -846,30 +860,30 @@ const U = Lo(), g = {
846
860
  isShowed: i,
847
861
  itemsCount: () => n.value.itemsCount()
848
862
  });
849
- const h = (b) => {
850
- o("select", b), b.model.children || l();
863
+ const h = (x) => {
864
+ o("select", x), x.model.children || l();
851
865
  };
852
- return (b, S) => {
866
+ return (x, S) => {
853
867
  const N = Re("click-outside");
854
- return d(), x(ct, { to: "body" }, [
855
- E(a) ? te((d(), x(vt, {
868
+ return d(), b(ut, { to: "body" }, [
869
+ E(a) ? te((d(), b(yt, {
856
870
  key: 0,
857
871
  ref_key: "treeRef",
858
872
  ref: n,
859
873
  items: s.items,
860
874
  "no-select": s.noSelect,
861
- class: D(s.class),
875
+ class: T(s.class),
862
876
  style: H(s.style),
863
877
  onSelect: h,
864
878
  "render-title": s.renderItemTitle,
865
879
  "before-item": s.beforeItem
866
880
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
867
881
  [N, () => l()]
868
- ]) : $("", !0)
882
+ ]) : k("", !0)
869
883
  ]);
870
884
  };
871
885
  }
872
- }, Io = {
886
+ }, Co = {
873
887
  __name: "DContextMenu",
874
888
  props: {
875
889
  items: Array,
@@ -882,16 +896,16 @@ const U = Lo(), g = {
882
896
  left: a.value + "px",
883
897
  top: r.value + "px"
884
898
  })), i = (u) => {
885
- n.value.show(), ut(() => {
886
- const h = n.value.elementSize(), b = window.innerWidth, S = window.innerHeight;
887
- 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();
899
+ n.value.show(), pt(() => {
900
+ const h = n.value.elementSize(), x = window.innerWidth, S = window.innerHeight;
901
+ a.value = x - u.pageX < h.width ? u.pageX - h.width : u.pageX, r.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, n.value.itemsCount() === 0 && n.value.hide();
888
902
  });
889
903
  }, c = (u) => {
890
904
  o("select", u);
891
905
  };
892
906
  return t({
893
907
  show: i
894
- }), (u, h) => (d(), x(gt, {
908
+ }), (u, h) => (d(), b(vt, {
895
909
  ref_key: "dMenuRef",
896
910
  ref: n,
897
911
  onSelect: c,
@@ -903,7 +917,7 @@ const U = Lo(), g = {
903
917
  "before-item": s.beforeItem
904
918
  }, null, 8, ["items", "style", "render-item-title", "before-item"]));
905
919
  }
906
- }, vt = {
920
+ }, yt = {
907
921
  __name: "DTree",
908
922
  props: {
909
923
  items: Array,
@@ -943,57 +957,57 @@ const U = Lo(), g = {
943
957
  },
944
958
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
945
959
  setup(e, { expose: t, emit: o }) {
946
- const s = e, n = w(null), a = w(!1), r = w(null), l = pt().uid;
960
+ const s = e, n = w(null), a = w(!1), r = w(null), l = ft().uid;
947
961
  g.actions.initTreeStore(l, s.noSelect, s.multiSelect, s.expanded, s.transfer, s.renderTitle, s.beforeItem, s.dropInside);
948
- const i = (v, V) => {
949
- console.log(v, V);
962
+ const i = (v, z) => {
963
+ console.log(v, z);
950
964
  };
951
- U.on(`expand-${l}`, (v) => {
965
+ q.on(`expand-${l}`, (v) => {
952
966
  o("expand", v);
953
- }), U.on(`collapse-${l}`, (v) => {
967
+ }), q.on(`collapse-${l}`, (v) => {
954
968
  o("collapse", v);
955
- }), U.on(`move-${l}`, (v) => {
969
+ }), q.on(`move-${l}`, (v) => {
956
970
  o("move", v);
957
971
  });
958
972
  const c = m(() => s.search ? g.actions.deepSearchByTitle(s.items, s.search) : s.items), u = (v = null) => {
959
973
  g.mutations.setItemSelect(l, v.model), g.actions.toggleItem(l, v.model), o("select", v);
960
974
  }, h = (v = null) => {
961
975
  o("over", v);
962
- }, b = (v = null) => {
976
+ }, x = (v = null) => {
963
977
  o("drop", v);
964
978
  }, S = () => n.value.elementSize(), N = () => {
965
979
  for (let v = 0; v < s.items.length; v++)
966
980
  s.items[v].expanded = !0;
967
- }, k = () => {
981
+ }, $ = () => {
968
982
  for (let v = 0; v < s.items.length; v++)
969
983
  s.items[v].expanded = !1;
970
- }, F = () => l, R = (v) => g.actions.deepSearch(s.items, v), C = (v) => {
984
+ }, V = () => l, R = (v) => g.actions.deepSearch(s.items, v), I = (v) => {
971
985
  R(v) && g.mutations.setItemSelect(l, R(v));
972
986
  }, B = (v) => {
973
987
  s.contextClick({ e: v.e, model: v.model, target: r.value });
974
988
  }, M = (v) => s.contextBeforeClick({ model: v, target: r.value }), y = m(() => s.context), O = (v) => (y.value && (r.value = v.model, a.value.show(v.e)), !1), W = () => P(c.value), P = (v) => {
975
- let V = 0;
989
+ let z = 0;
976
990
  for (let p = 0; p < v.length; p++)
977
- V += g.actions.beforeItem(l, v[p]) ? 1 : 0, v[p].children && v[p].children.length > 0 && (V += P(v[p].children));
978
- return V;
991
+ z += g.actions.beforeItem(l, v[p]) ? 1 : 0, v[p].children && v[p].children.length > 0 && (z += P(v[p].children));
992
+ return z;
979
993
  };
980
994
  return t({
981
995
  elementSize: S,
982
996
  expandAll: N,
983
- collapseAll: k,
984
- getId: F,
997
+ collapseAll: $,
998
+ getId: V,
985
999
  getNode: R,
986
- selectNode: C,
1000
+ selectNode: I,
987
1001
  itemsCount: W
988
- }), (v, V) => (d(), x(Co, {
1002
+ }), (v, z) => (d(), b(Lo, {
989
1003
  ref_key: "treeRef",
990
1004
  ref: n,
991
1005
  class: "tree",
992
1006
  tag: "ul",
993
- onDrop: Z(i, ["stop"])
1007
+ onDrop: X(i, ["stop"])
994
1008
  }, {
995
- default: I(() => [
996
- (d(!0), f(ie, null, ge(c.value, (p) => (d(), x(Do, {
1009
+ default: C(() => [
1010
+ (d(!0), f(ie, null, ge(c.value, (p) => (d(), b(Do, {
997
1011
  key: p.id,
998
1012
  model: p,
999
1013
  treeId: E(l),
@@ -1001,23 +1015,23 @@ const U = Lo(), g = {
1001
1015
  search: s.search,
1002
1016
  onNodeclick: u,
1003
1017
  onNodedragover: h,
1004
- onNodedrop: b,
1018
+ onNodedrop: x,
1005
1019
  onNodecontext: O
1006
1020
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
1007
- y.value ? (d(), x(Io, {
1021
+ y.value ? (d(), b(Co, {
1008
1022
  key: 0,
1009
1023
  ref_key: "contextTreeRef",
1010
1024
  ref: a,
1011
1025
  items: y.value,
1012
1026
  onSelect: B,
1013
1027
  "before-item": M
1014
- }, null, 8, ["items"])) : $("", !0)
1028
+ }, null, 8, ["items"])) : k("", !0)
1015
1029
  ]),
1016
1030
  _: 1
1017
1031
  }, 8, ["onDrop"]));
1018
1032
  }
1019
1033
  };
1020
- const Eo = {
1034
+ const Io = {
1021
1035
  __name: "DAccordion",
1022
1036
  props: {
1023
1037
  items: Array,
@@ -1030,14 +1044,14 @@ const Eo = {
1030
1044
  },
1031
1045
  setup(e) {
1032
1046
  const t = e;
1033
- return (o, s) => (d(), x(vt, {
1047
+ return (o, s) => (d(), b(yt, {
1034
1048
  class: "accordion",
1035
1049
  items: t.items,
1036
1050
  "no-select": t.noSelect,
1037
1051
  "render-title": t.renderTitle
1038
1052
  }, null, 8, ["items", "no-select", "render-title"]));
1039
1053
  }
1040
- }, Dn = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-642edace"]]), Bo = {
1054
+ }, Dn = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-642edace"]]), Eo = {
1041
1055
  __name: "DLayoutHeader",
1042
1056
  props: {
1043
1057
  fixed: {
@@ -1082,7 +1096,7 @@ const Eo = {
1082
1096
  L(s.$slots, "default")
1083
1097
  ], 4));
1084
1098
  }
1085
- }, Mo = {
1099
+ }, Bo = {
1086
1100
  __name: "DLayoutTab",
1087
1101
  props: {
1088
1102
  fixed: {
@@ -1121,8 +1135,8 @@ const Eo = {
1121
1135
  },
1122
1136
  setup(e) {
1123
1137
  const t = e, o = m(() => {
1124
- 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;` : "";
1125
- 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};`;
1138
+ const { fixed: s, top: n, zIndex: a, minWidth: r, height: l, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = t, h = s ? "fixed" : "static", x = t.useMinWidthLayout ? `min-width: ${r}px;` : "";
1139
+ return `position:${h};top:${n}px;z-index:${a};${x}height:${l}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1126
1140
  });
1127
1141
  return (s, n) => (d(), f("div", {
1128
1142
  class: "d-layout-tab",
@@ -1131,7 +1145,7 @@ const Eo = {
1131
1145
  L(s.$slots, "default")
1132
1146
  ], 4));
1133
1147
  }
1134
- }, No = {
1148
+ }, Mo = {
1135
1149
  __name: "DLayoutFooter",
1136
1150
  props: {
1137
1151
  fixed: {
@@ -1176,7 +1190,7 @@ const Eo = {
1176
1190
  L(s.$slots, "default")
1177
1191
  ], 4));
1178
1192
  }
1179
- }, Ro = {
1193
+ }, No = {
1180
1194
  __name: "DLayoutSidebar",
1181
1195
  props: {
1182
1196
  zIndex: {
@@ -1216,7 +1230,7 @@ const Eo = {
1216
1230
  L(s.$slots, "default")
1217
1231
  ], 4));
1218
1232
  }
1219
- }, Oo = {
1233
+ }, Ro = {
1220
1234
  __name: "DLayoutContent",
1221
1235
  props: {
1222
1236
  paddingTop: {
@@ -1254,7 +1268,7 @@ const Eo = {
1254
1268
  ], 4));
1255
1269
  }
1256
1270
  };
1257
- function Ao(e) {
1271
+ function Oo(e) {
1258
1272
  const t = w(0), o = m(() => `transform: translateX(${-t.value}px);`);
1259
1273
  let s = !1;
1260
1274
  function n(u) {
@@ -1277,13 +1291,13 @@ function Ao(e) {
1277
1291
  function c() {
1278
1292
  r(), l(), s = !0;
1279
1293
  }
1280
- return ft(e, (u) => {
1294
+ return mt(e, (u) => {
1281
1295
  u ? c() : i();
1282
- }, { immediate: !0 }), Dt(() => {
1296
+ }, { immediate: !0 }), Lt(() => {
1283
1297
  i();
1284
1298
  }), o;
1285
1299
  }
1286
- const Ho = 1001, Vo = 999, zo = 998, Ln = {
1300
+ const Ao = 1001, Ho = 999, Vo = 998, Tn = {
1287
1301
  __name: "DLayoutAdmin",
1288
1302
  props: {
1289
1303
  mode: {
@@ -1374,7 +1388,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1374
1388
  },
1375
1389
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1376
1390
  setup(e, { emit: t }) {
1377
- 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(() => {
1391
+ const o = e, s = m(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), n = m(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Oo(n), r = m(() => o.fixedHeaderAndTab ? a.value : ""), l = m(() => o.fixedFooter ? a.value : ""), i = m(() => {
1378
1392
  const { transitionDuration: y, transitionTimingFunction: O } = o;
1379
1393
  return {
1380
1394
  transitionDuration: y,
@@ -1388,16 +1402,16 @@ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1388
1402
  t("update:sidebar-collapse", y);
1389
1403
  }
1390
1404
  });
1391
- function b() {
1405
+ function x() {
1392
1406
  t("sidebar-mask-click");
1393
1407
  }
1394
1408
  const S = m(() => o.isMobile && !h.value), N = m(() => {
1395
1409
  const { transitionDuration: y, transitionTimingFunction: O } = o;
1396
1410
  return `background-color:${o.maskBg};transition-duration:${y}ms;transition-timing-function:${O};`;
1397
- }), k = m(() => {
1411
+ }), $ = m(() => {
1398
1412
  const { sidebarWidth: y, sidebarCollapsedWidth: O } = o, W = o.isMobile ? 0 : O, P = h.value ? W : y;
1399
1413
  return o.sidebarVisible ? P : 0;
1400
- }), F = m(() => o.isMobile ? 0 : k.value), R = m(() => c.value ? F.value : 0), C = m(
1414
+ }), V = m(() => o.isMobile ? 0 : $.value), R = m(() => c.value ? V.value : 0), I = m(
1401
1415
  () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1402
1416
  ), B = m(() => {
1403
1417
  let y = 0;
@@ -1407,73 +1421,73 @@ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1407
1421
  class: "d-layout",
1408
1422
  style: H(s.value)
1409
1423
  }, [
1410
- e.headerVisible ? (d(), x(Bo, ue({ key: 0 }, i.value, {
1424
+ e.headerVisible ? (d(), b(Eo, ue({ key: 0 }, i.value, {
1411
1425
  fixed: e.fixedHeaderAndTab,
1412
- "z-index": Ho,
1426
+ "z-index": Ao,
1413
1427
  "min-width": e.minWidth,
1414
1428
  height: e.headerHeight,
1415
1429
  "padding-left": R.value,
1416
1430
  style: r.value
1417
1431
  }), {
1418
- default: I(() => [
1432
+ default: C(() => [
1419
1433
  L(y.$slots, "header")
1420
1434
  ]),
1421
1435
  _: 3
1422
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0),
1423
- e.tabVisible ? (d(), x(Mo, ue({ key: 1 }, i.value, {
1436
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1437
+ e.tabVisible ? (d(), b(Bo, ue({ key: 1 }, i.value, {
1424
1438
  fixed: e.fixedHeaderAndTab,
1425
- "z-index": Vo,
1439
+ "z-index": Ho,
1426
1440
  "min-width": e.minWidth,
1427
1441
  top: e.headerHeight,
1428
1442
  height: e.tabHeight,
1429
- "padding-left": F.value,
1443
+ "padding-left": V.value,
1430
1444
  style: r.value
1431
1445
  }), {
1432
- default: I(() => [
1446
+ default: C(() => [
1433
1447
  L(y.$slots, "tab")
1434
1448
  ]),
1435
1449
  _: 3
1436
- }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : $("", !0),
1437
- e.sidebarVisible ? (d(), x(Ro, ue({ key: 2 }, i.value, {
1450
+ }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1451
+ e.sidebarVisible ? (d(), b(No, ue({ key: 2 }, i.value, {
1438
1452
  "z-index": u.value,
1439
- width: k.value,
1440
- "padding-top": C.value
1453
+ width: $.value,
1454
+ "padding-top": I.value
1441
1455
  }), {
1442
- default: I(() => [
1456
+ default: C(() => [
1443
1457
  L(y.$slots, "sidebar")
1444
1458
  ]),
1445
1459
  _: 3
1446
- }, 16, ["z-index", "width", "padding-top"])) : $("", !0),
1460
+ }, 16, ["z-index", "width", "padding-top"])) : k("", !0),
1447
1461
  S.value ? (d(), f("div", {
1448
1462
  key: 3,
1449
1463
  class: "d-layout-sidebar-mask",
1450
1464
  style: H(N.value),
1451
- onClick: b
1452
- }, null, 4)) : $("", !0),
1453
- oe(Oo, ue(i.value, {
1465
+ onClick: x
1466
+ }, null, 4)) : k("", !0),
1467
+ oe(Ro, ue(i.value, {
1454
1468
  "padding-top": B.value,
1455
1469
  "padding-bottom": M.value,
1456
- "padding-left": F.value,
1470
+ "padding-left": V.value,
1457
1471
  "overflow-hidden": e.addMainOverflowHidden
1458
1472
  }), {
1459
- default: I(() => [
1473
+ default: C(() => [
1460
1474
  L(y.$slots, "default")
1461
1475
  ]),
1462
1476
  _: 3
1463
1477
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1464
- e.footerVisible ? (d(), x(No, ue({ key: 4 }, i.value, {
1478
+ e.footerVisible ? (d(), b(Mo, ue({ key: 4 }, i.value, {
1465
1479
  fixed: e.fixedFooter,
1466
- "z-index": zo,
1480
+ "z-index": Vo,
1467
1481
  "min-width": e.minWidth,
1468
1482
  height: e.footerHeight,
1469
- "padding-left": F.value,
1483
+ "padding-left": V.value,
1470
1484
  style: l.value
1471
1485
  }), {
1472
- default: I(() => [
1486
+ default: C(() => [
1473
1487
  L(y.$slots, "footer")
1474
1488
  ]),
1475
1489
  _: 3
1476
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0)
1490
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
1477
1491
  ], 4));
1478
1492
  }
1479
1493
  }, pe = {
@@ -1495,7 +1509,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1495
1509
  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);
1496
1510
  }
1497
1511
  }
1498
- }, Cn = {
1512
+ }, Ln = {
1499
1513
  __name: "DConfigProvider",
1500
1514
  props: {
1501
1515
  theme: {
@@ -1508,7 +1522,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ln = {
1508
1522
  return pe.mutations.setTheme(t.theme), (o, s) => L(o.$slots, "default");
1509
1523
  }
1510
1524
  };
1511
- const In = {
1525
+ const Cn = {
1512
1526
  __name: "DScrollProvider",
1513
1527
  props: {
1514
1528
  xHide: {
@@ -1536,7 +1550,7 @@ const In = {
1536
1550
  ]));
1537
1551
  }
1538
1552
  };
1539
- const Fo = {
1553
+ const zo = {
1540
1554
  __name: "DScroll",
1541
1555
  props: {
1542
1556
  autoHide: {
@@ -1560,12 +1574,12 @@ const Fo = {
1560
1574
  }));
1561
1575
  const o = m(() => t.xHide ? "hidden" : "visible"), s = m(() => t.yHide ? "hidden" : "visible");
1562
1576
  return (n, a) => (d(), f("div", {
1563
- class: D(t.autoHide ? "d-scroll-hide" : "d-scroll")
1577
+ class: T(t.autoHide ? "d-scroll-hide" : "d-scroll")
1564
1578
  }, [
1565
1579
  L(n.$slots, "default", {}, void 0, !0)
1566
1580
  ], 2));
1567
1581
  }
1568
- }, 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 = {
1582
+ }, In = /* @__PURE__ */ re(zo, [["__scopeId", "data-v-d50b3609"]]), Fo = { class: "modal-content" }, Wo = { class: "modal-header" }, Po = { class: "modal-title" }, jo = { class: "modal-body" }, Xo = { class: "modal-footer" }, _t = {
1569
1583
  __name: "DModal",
1570
1584
  props: {
1571
1585
  show: Boolean,
@@ -1588,9 +1602,9 @@ const Fo = {
1588
1602
  hide: l
1589
1603
  }), (i, c) => {
1590
1604
  const u = Re("keydown");
1591
- return d(), x(ct, { to: "body" }, [
1605
+ return d(), b(ut, { to: "body" }, [
1592
1606
  oe(Ne, { name: "fade" }, {
1593
- default: I(() => [
1607
+ default: C(() => [
1594
1608
  a.value ? te((d(), f("div", {
1595
1609
  key: 0,
1596
1610
  ref_key: "modalRef",
@@ -1601,34 +1615,34 @@ const Fo = {
1601
1615
  class: "modal-dialog",
1602
1616
  style: H({ width: s.width, maxWidth: s.maxWidth })
1603
1617
  }, [
1604
- _("div", Wo, [
1605
- _("div", Po, [
1606
- _("h5", jo, [
1618
+ _("div", Fo, [
1619
+ _("div", Wo, [
1620
+ _("h5", Po, [
1607
1621
  L(i.$slots, "modal-title")
1608
1622
  ])
1609
1623
  ]),
1610
- _("div", Xo, [
1624
+ _("div", jo, [
1611
1625
  L(i.$slots, "default")
1612
1626
  ]),
1613
- _("div", Yo, [
1627
+ _("div", Xo, [
1614
1628
  L(i.$slots, "modal-footer")
1615
1629
  ])
1616
1630
  ])
1617
1631
  ], 4)
1618
1632
  ])), [
1619
1633
  [u, l, "Escape"]
1620
- ]) : $("", !0)
1634
+ ]) : k("", !0)
1621
1635
  ]),
1622
1636
  _: 3
1623
1637
  })
1624
1638
  ]);
1625
1639
  };
1626
1640
  }
1627
- }, ce = Lt();
1641
+ }, ce = Ct();
1628
1642
  function Me(e) {
1629
1643
  e === void 0 && (e = ce.value.comp.returnValue()), ce.value.resolve(e), ce.value = null;
1630
1644
  }
1631
- function _t(e, t, o = "default") {
1645
+ function bt(e, t, o = "default") {
1632
1646
  return new Promise((s) => {
1633
1647
  ce.value = {
1634
1648
  dialog: e,
@@ -1638,13 +1652,13 @@ function _t(e, t, o = "default") {
1638
1652
  };
1639
1653
  });
1640
1654
  }
1641
- var Uo = (e, t) => {
1655
+ var Yo = (e, t) => {
1642
1656
  const o = e.__vccOpts || e;
1643
1657
  for (const [s, n] of t)
1644
1658
  o[s] = n;
1645
1659
  return o;
1646
1660
  };
1647
- const qo = Ct({
1661
+ const Uo = It({
1648
1662
  name: "DialogWrapper",
1649
1663
  components: {},
1650
1664
  props: {
@@ -1656,7 +1670,7 @@ const qo = Ct({
1656
1670
  },
1657
1671
  setup() {
1658
1672
  const e = w();
1659
- return ft(e, () => {
1673
+ return mt(e, () => {
1660
1674
  ce.value && (ce.value.comp = e.value);
1661
1675
  }), {
1662
1676
  dialogRef: ce,
@@ -1664,16 +1678,16 @@ const qo = Ct({
1664
1678
  };
1665
1679
  }
1666
1680
  });
1667
- function Go(e, t, o, s, n, a) {
1668
- return d(), x(Ne, It(Et(e.transitionAttrs)), {
1669
- default: I(() => [
1670
- e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : $("", !0)
1681
+ function qo(e, t, o, s, n, a) {
1682
+ return d(), b(Ne, Et(Bt(e.transitionAttrs)), {
1683
+ default: C(() => [
1684
+ e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), b(Y(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1671
1685
  ]),
1672
1686
  _: 1
1673
1687
  }, 16);
1674
1688
  }
1675
- var Zo = /* @__PURE__ */ Uo(qo, [["render", Go]]);
1676
- const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Jo = {
1689
+ var Go = /* @__PURE__ */ Yo(Uo, [["render", qo]]);
1690
+ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Ko = {
1677
1691
  __name: "DAlertDialog",
1678
1692
  props: {
1679
1693
  title: String,
@@ -1684,19 +1698,19 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1684
1698
  return t({
1685
1699
  returnValue: () => !0
1686
1700
  }), (n, a) => (d(), f("div", null, [
1687
- oe(yt, { show: !0 }, {
1688
- "modal-title": I(() => [
1701
+ oe(_t, { show: !0 }, {
1702
+ "modal-title": C(() => [
1689
1703
  K(A(o.title), 1)
1690
1704
  ]),
1691
- default: I(() => [
1705
+ default: C(() => [
1692
1706
  K(A(o.message), 1)
1693
1707
  ]),
1694
- "modal-footer": I(() => [
1695
- _("div", Ko, [
1708
+ "modal-footer": C(() => [
1709
+ _("div", Zo, [
1696
1710
  oe(ae, {
1697
1711
  onClick: a[0] || (a[0] = (r) => E(Me)())
1698
1712
  }, {
1699
- default: I(() => [
1713
+ default: C(() => [
1700
1714
  K("Закрыть")
1701
1715
  ]),
1702
1716
  _: 1
@@ -1707,7 +1721,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1707
1721
  })
1708
1722
  ]));
1709
1723
  }
1710
- }, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, es = {
1724
+ }, Jo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Qo = {
1711
1725
  __name: "DConfirmDialog",
1712
1726
  props: {
1713
1727
  title: String,
@@ -1718,19 +1732,19 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1718
1732
  return t({
1719
1733
  returnValue: () => !0
1720
1734
  }), (n, a) => (d(), f("div", null, [
1721
- oe(yt, { show: !0 }, {
1722
- "modal-title": I(() => [
1735
+ oe(_t, { show: !0 }, {
1736
+ "modal-title": C(() => [
1723
1737
  K(A(o.title), 1)
1724
1738
  ]),
1725
- default: I(() => [
1739
+ default: C(() => [
1726
1740
  K(A(o.message), 1)
1727
1741
  ]),
1728
- "modal-footer": I(() => [
1729
- _("div", Qo, [
1742
+ "modal-footer": C(() => [
1743
+ _("div", Jo, [
1730
1744
  oe(ae, {
1731
1745
  onClick: a[0] || (a[0] = (r) => E(Me)())
1732
1746
  }, {
1733
- default: I(() => [
1747
+ default: C(() => [
1734
1748
  K("Да")
1735
1749
  ]),
1736
1750
  _: 1
@@ -1739,7 +1753,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1739
1753
  class: "button-red",
1740
1754
  onClick: a[1] || (a[1] = (r) => E(Me)(!1))
1741
1755
  }, {
1742
- default: I(() => [
1756
+ default: C(() => [
1743
1757
  K("Нет")
1744
1758
  ]),
1745
1759
  _: 1
@@ -1750,7 +1764,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1750
1764
  })
1751
1765
  ]));
1752
1766
  }
1753
- }, ts = { class: "dropdown" }, Bn = {
1767
+ }, es = { class: "dropdown" }, En = {
1754
1768
  __name: "DDropdown",
1755
1769
  props: {
1756
1770
  class: String,
@@ -1775,9 +1789,9 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1775
1789
  a.value.hide();
1776
1790
  return;
1777
1791
  }
1778
- a.value.show(), ut(() => {
1779
- const N = a.value.elementSize(), k = r.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1780
- 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;
1792
+ a.value.show(), pt(() => {
1793
+ const N = a.value.elementSize(), $ = r.value.elementSize(), V = window.innerWidth, R = window.innerHeight;
1794
+ l.value = V - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = R - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
1781
1795
  });
1782
1796
  }, u = (S) => {
1783
1797
  o("select", S);
@@ -1785,31 +1799,31 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1785
1799
  t({
1786
1800
  show: c
1787
1801
  });
1788
- const b = (S) => !!n[S];
1789
- return (S, N) => (d(), f("div", ts, [
1790
- b("default") ? (d(), x(ae, {
1802
+ const x = (S) => !!n[S];
1803
+ return (S, N) => (d(), f("div", es, [
1804
+ x("default") ? (d(), b(ae, {
1791
1805
  key: 0,
1792
1806
  ref_key: "buttonRef",
1793
1807
  ref: r,
1794
- class: D(s.class),
1808
+ class: T(s.class),
1795
1809
  icon: s.icon,
1796
- onClick: Z(c, ["stop", "prevent"]),
1810
+ onClick: X(c, ["stop", "prevent"]),
1797
1811
  type: s.type
1798
1812
  }, {
1799
- default: I(() => [
1813
+ default: C(() => [
1800
1814
  L(S.$slots, "default")
1801
1815
  ]),
1802
1816
  _: 3
1803
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(ae, {
1817
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), b(ae, {
1804
1818
  key: 1,
1805
1819
  ref_key: "buttonRef",
1806
1820
  ref: r,
1807
- class: D(s.class),
1821
+ class: T(s.class),
1808
1822
  icon: s.icon,
1809
- onClick: Z(c, ["stop", "prevent"]),
1823
+ onClick: X(c, ["stop", "prevent"]),
1810
1824
  type: s.type
1811
1825
  }, null, 8, ["class", "icon", "onClick", "type"])),
1812
- oe(gt, {
1826
+ oe(vt, {
1813
1827
  ref_key: "dMenuRef",
1814
1828
  ref: a,
1815
1829
  items: s.items,
@@ -1823,34 +1837,34 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1823
1837
  }, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
1824
1838
  ]));
1825
1839
  }
1826
- }, os = {}, ss = { class: "d-panel" };
1827
- function ns(e, t) {
1828
- return d(), f("div", ss, [
1840
+ }, ts = {}, os = { class: "d-panel" };
1841
+ function ss(e, t) {
1842
+ return d(), f("div", os, [
1829
1843
  L(e.$slots, "default")
1830
1844
  ]);
1831
1845
  }
1832
- const as = /* @__PURE__ */ re(os, [["render", ns]]), is = { class: "card-header" }, rs = { class: "modal-title" }, ls = { class: "card-body" }, ds = { class: "card-footer" }, Mn = {
1846
+ const ns = /* @__PURE__ */ re(ts, [["render", ss]]), as = { class: "card-header" }, is = { class: "modal-title" }, rs = { class: "card-body" }, ls = { class: "card-footer" }, Bn = {
1833
1847
  __name: "DCard",
1834
1848
  setup(e) {
1835
- return (t, o) => (d(), x(as, { class: "d-card" }, {
1836
- default: I(() => [
1837
- _("div", is, [
1838
- _("h5", rs, [
1849
+ return (t, o) => (d(), b(ns, { class: "d-card" }, {
1850
+ default: C(() => [
1851
+ _("div", as, [
1852
+ _("h5", is, [
1839
1853
  L(t.$slots, "title")
1840
1854
  ])
1841
1855
  ]),
1842
- _("div", ls, [
1856
+ _("div", rs, [
1843
1857
  L(t.$slots, "default")
1844
1858
  ]),
1845
- _("div", ds, [
1859
+ _("div", ls, [
1846
1860
  L(t.$slots, "footer")
1847
1861
  ])
1848
1862
  ]),
1849
1863
  _: 3
1850
1864
  }));
1851
1865
  }
1852
- }, cs = /* @__PURE__ */ new Map();
1853
- class us {
1866
+ }, ds = /* @__PURE__ */ new Map();
1867
+ class cs {
1854
1868
  constructor(t, o, s) {
1855
1869
  this.remaining = o, this.callback = t, this.notifyItem = s, this.resume();
1856
1870
  }
@@ -1861,7 +1875,7 @@ class us {
1861
1875
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1862
1876
  }
1863
1877
  }
1864
- const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1878
+ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
1865
1879
  {
1866
1880
  name: "px",
1867
1881
  regexp: new RegExp(`^${Ee}px$`)
@@ -1878,14 +1892,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1878
1892
  name: "px",
1879
1893
  regexp: new RegExp(`^${Ee}$`)
1880
1894
  }
1881
- ], ps = (e) => {
1895
+ ], us = (e) => {
1882
1896
  if (e === "auto")
1883
1897
  return {
1884
1898
  type: e,
1885
1899
  value: 0
1886
1900
  };
1887
- for (let t = 0; t < nt.length; t++) {
1888
- const o = nt[t];
1901
+ for (let t = 0; t < at.length; t++) {
1902
+ const o = at[t];
1889
1903
  if (o.regexp.test(e))
1890
1904
  return {
1891
1905
  type: o.name,
@@ -1896,23 +1910,23 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1896
1910
  type: "",
1897
1911
  value: e
1898
1912
  };
1899
- }, fs = (e) => {
1913
+ }, ps = (e) => {
1900
1914
  switch (typeof e) {
1901
1915
  case "number":
1902
1916
  return { type: "px", value: e };
1903
1917
  case "string":
1904
- return ps(e);
1918
+ return us(e);
1905
1919
  default:
1906
1920
  return { type: "", value: e };
1907
1921
  }
1908
- }, at = {
1922
+ }, it = {
1909
1923
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1910
1924
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1911
- }, ms = ((e) => () => e++)(0), hs = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), gs = (e) => {
1912
- typeof e == "string" && (e = hs(e));
1925
+ }, fs = ((e) => () => e++)(0), ms = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), hs = (e) => {
1926
+ typeof e == "string" && (e = ms(e));
1913
1927
  let t = null, o = null;
1914
1928
  return e.forEach((s) => {
1915
- at.y.has(s) && (o = s), at.x.has(s) && (t = s);
1929
+ it.y.has(s) && (o = s), it.x.has(s) && (t = s);
1916
1930
  }), { x: t, y: o };
1917
1931
  }, Be = {
1918
1932
  position: ["top", "right"],
@@ -1927,7 +1941,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1927
1941
  opacity: [0, 1]
1928
1942
  }
1929
1943
  }
1930
- }, vs = {
1944
+ }, gs = {
1931
1945
  __name: "VelocityGroup",
1932
1946
  emits: ["enter", "leave", "after-leave"],
1933
1947
  setup(e, { emit: t }) {
@@ -1938,20 +1952,20 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1938
1952
  }, n = () => {
1939
1953
  t("after-leave");
1940
1954
  };
1941
- return (a, r) => (d(), x(mt, {
1955
+ return (a, r) => (d(), b(ht, {
1942
1956
  tag: "span",
1943
1957
  css: !1,
1944
1958
  onEnter: o,
1945
1959
  onLeave: s,
1946
1960
  onAfterLeave: n
1947
1961
  }, {
1948
- default: I(() => [
1962
+ default: C(() => [
1949
1963
  L(a.$slots, "default")
1950
1964
  ]),
1951
1965
  _: 3
1952
1966
  }));
1953
1967
  }
1954
- }, ys = /* @__PURE__ */ Object.assign({
1968
+ }, vs = /* @__PURE__ */ Object.assign({
1955
1969
  inheritAttrs: !1
1956
1970
  }, {
1957
1971
  __name: "CssGroup",
@@ -1960,20 +1974,20 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1960
1974
  },
1961
1975
  setup(e) {
1962
1976
  const t = e;
1963
- return (o, s) => (d(), x(mt, {
1977
+ return (o, s) => (d(), b(ht, {
1964
1978
  tag: "span",
1965
1979
  name: t.name
1966
1980
  }, {
1967
- default: I(() => [
1981
+ default: C(() => [
1968
1982
  L(o.$slots, "default")
1969
1983
  ]),
1970
1984
  _: 3
1971
1985
  }, 8, ["name"]));
1972
1986
  }
1973
- }), _s = ["data-id"], bs = ["onClick"], xs = ["innerHTML"], $s = ["innerHTML"], ks = {
1987
+ }), ys = ["data-id"], _s = ["onClick"], bs = ["innerHTML"], xs = ["innerHTML"], $s = {
1974
1988
  key: 0,
1975
1989
  class: "d-notification-title"
1976
- }, ws = { class: "notification-content" }, Nn = {
1990
+ }, ks = { class: "notification-content" }, Mn = {
1977
1991
  __name: "DNotificationProvider",
1978
1992
  props: {
1979
1993
  group: {
@@ -2046,131 +2060,131 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2046
2060
  const o = e, s = {
2047
2061
  IDLE: 0,
2048
2062
  DESTROYED: 2
2049
- }, 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(() => {
2050
- const { x: p, y: z } = gs(o.position), T = u.value.value, q = u.value.type, se = {
2051
- width: T + q
2063
+ }, n = w([]), a = w(null), r = w(ds.get("velocity")), l = m(() => o.animationType === "velocity"), i = m(() => l.value ? gs : vs), c = m(() => n.value.filter((p) => p.state !== s.DESTROYED)), u = m(() => ps(o.width)), h = m(() => {
2064
+ const { x: p, y: F } = hs(o.position), D = u.value.value, G = u.value.type, se = {
2065
+ width: D + G
2052
2066
  };
2053
- return z && (se[z] = "0px"), p && (p === "center" ? se.left = `calc(50% - ${+T / 2}${q})` : se[p] = "0px"), se;
2054
- }), b = m(() => "bottom" in h.value), S = (p) => {
2067
+ return F && (se[F] = "0px"), p && (p === "center" ? se.left = `calc(50% - ${+D / 2}${G})` : se[p] = "0px"), se;
2068
+ }), x = m(() => "bottom" in h.value), S = (p) => {
2055
2069
  t("click", p), o.closeOnClick && M(p);
2056
2070
  }, N = () => {
2057
2071
  var p;
2058
2072
  o.pauseOnHover && ((p = a.value) == null || p.pause());
2059
- }, k = () => {
2073
+ }, $ = () => {
2060
2074
  var p;
2061
2075
  o.pauseOnHover && ((p = a.value) == null || p.resume());
2062
- }, F = (p) => {
2076
+ }, V = (p) => {
2063
2077
  if (p.group || (p.group = ""), p.data || (p.data = {}), o.group !== p.group)
2064
2078
  return;
2065
2079
  if (p.clean || p.clear) {
2066
2080
  O();
2067
2081
  return;
2068
2082
  }
2069
- 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 = {
2070
- id: be || ms(),
2083
+ const F = typeof p.duration == "number" ? p.duration : o.duration, D = typeof p.speed == "number" ? p.speed : o.speed, G = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : o.ignoreDuplicates, { title: se, text: ve, type: ye, data: _e, id: be } = p, J = {
2084
+ id: be || fs(),
2071
2085
  title: se,
2072
2086
  text: ve,
2073
2087
  type: ye,
2074
2088
  state: s.IDLE,
2075
- speed: T,
2076
- length: z + 2 * T,
2089
+ speed: D,
2090
+ length: F + 2 * D,
2077
2091
  data: _e
2078
2092
  };
2079
- z >= 0 && (a.value = new us(() => M(J), J.length, J));
2080
- const xe = o.reverse ? !b.value : b.value;
2093
+ F >= 0 && (a.value = new cs(() => M(J), J.length, J));
2094
+ const xe = o.reverse ? !x.value : x.value;
2081
2095
  let le = -1;
2082
2096
  const $e = c.value.some((me) => me.title === p.title && me.text === p.text);
2083
- (!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]));
2097
+ (!G || !$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]));
2084
2098
  }, R = (p) => {
2085
2099
  y(p);
2086
- }, C = (p) => [
2100
+ }, I = (p) => [
2087
2101
  "d-notification-template",
2088
2102
  o.classes,
2089
2103
  p.type || ""
2090
2104
  ], B = (p) => l.value ? void 0 : { transition: `all ${p.speed}ms` }, M = (p) => {
2091
- clearTimeout(p.timer), p.state = s.DESTROYED, V(), t("destroy", p);
2105
+ clearTimeout(p.timer), p.state = s.DESTROYED, z(), t("destroy", p);
2092
2106
  }, y = (p) => {
2093
- const z = n.value.find((T) => T.id === p);
2094
- z && M(z);
2107
+ const F = n.value.find((D) => D.id === p);
2108
+ F && M(F);
2095
2109
  }, O = () => {
2096
2110
  c.value.forEach(M);
2097
- }, W = (p, z) => {
2098
- var q;
2099
- const T = (q = o.animation) == null ? void 0 : q[p];
2100
- return typeof T == "function" ? T(z) : T;
2101
- }, P = (p, z) => {
2111
+ }, W = (p, F) => {
2112
+ var G;
2113
+ const D = (G = o.animation) == null ? void 0 : G[p];
2114
+ return typeof D == "function" ? D(F) : D;
2115
+ }, P = (p, F) => {
2102
2116
  if (!l.value)
2103
2117
  return;
2104
- const T = W("enter", p);
2105
- r.value(p, T, {
2118
+ const D = W("enter", p);
2119
+ r.value(p, D, {
2106
2120
  duration: o.speed,
2107
- complete: z
2121
+ complete: F
2108
2122
  });
2109
- }, v = (p, z) => {
2123
+ }, v = (p, F) => {
2110
2124
  if (!l.value)
2111
2125
  return;
2112
- const T = W("leave", p);
2113
- r.value(p, T, {
2126
+ const D = W("leave", p);
2127
+ r.value(p, D, {
2114
2128
  duration: o.speed,
2115
- complete: z
2129
+ complete: F
2116
2130
  });
2117
2131
  };
2118
- function V() {
2132
+ function z() {
2119
2133
  n.value = n.value.filter((p) => p.state !== s.DESTROYED);
2120
2134
  }
2121
2135
  return fe(() => {
2122
- U.on("notification-add", F), U.on("notification-close", R);
2123
- }), (p, z) => (d(), f("div", {
2136
+ q.on("notification-add", V), q.on("notification-close", R);
2137
+ }), (p, F) => (d(), f("div", {
2124
2138
  class: "d-notification-group",
2125
2139
  style: H(h.value)
2126
2140
  }, [
2127
- (d(), x(X(i.value), {
2141
+ (d(), b(Y(i.value), {
2128
2142
  name: e.animationName,
2129
2143
  onEnter: P,
2130
2144
  onLeave: v,
2131
- onAfterLeave: V
2145
+ onAfterLeave: z
2132
2146
  }, {
2133
- default: I(() => [
2134
- (d(!0), f(ie, null, ge(c.value, (T) => (d(), f("div", {
2135
- key: T.id,
2147
+ default: C(() => [
2148
+ (d(!0), f(ie, null, ge(c.value, (D) => (d(), f("div", {
2149
+ key: D.id,
2136
2150
  class: "d-notification-wrapper",
2137
- style: H(B(T)),
2138
- "data-id": T.id,
2151
+ style: H(B(D)),
2152
+ "data-id": D.id,
2139
2153
  onMouseenter: N,
2140
- onMouseleave: k
2154
+ onMouseleave: $
2141
2155
  }, [
2142
2156
  L(p.$slots, "body", {
2143
- class: D([e.classes, T.type]),
2144
- item: T,
2145
- close: () => M(T)
2157
+ class: T([e.classes, D.type]),
2158
+ item: D,
2159
+ close: () => M(D)
2146
2160
  }, () => [
2147
2161
  _("div", {
2148
- class: D(C(T)),
2149
- onClick: (q) => S(T)
2162
+ class: T(I(D)),
2163
+ onClick: (G) => S(D)
2150
2164
  }, [
2151
2165
  e.dangerouslySetInnerHtml ? (d(), f(ie, { key: 0 }, [
2152
- T.title ? (d(), f("div", {
2166
+ D.title ? (d(), f("div", {
2153
2167
  key: 0,
2154
2168
  class: "d-notification-title",
2155
- innerHTML: T.timer
2156
- }, null, 8, xs)) : $("", !0),
2169
+ innerHTML: D.timer
2170
+ }, null, 8, bs)) : k("", !0),
2157
2171
  _("div", {
2158
2172
  class: "notification-content",
2159
- innerHTML: T.text
2160
- }, null, 8, $s)
2173
+ innerHTML: D.text
2174
+ }, null, 8, xs)
2161
2175
  ], 64)) : (d(), f(ie, { key: 1 }, [
2162
- T.title ? (d(), f("div", ks, A(T.title), 1)) : $("", !0),
2163
- _("div", ws, A(T.text), 1)
2176
+ D.title ? (d(), f("div", $s, A(D.title), 1)) : k("", !0),
2177
+ _("div", ks, A(D.text), 1)
2164
2178
  ], 64))
2165
- ], 10, bs)
2179
+ ], 10, _s)
2166
2180
  ])
2167
- ], 44, _s))), 128))
2181
+ ], 44, ys))), 128))
2168
2182
  ]),
2169
2183
  _: 3
2170
2184
  }, 40, ["name"]))
2171
2185
  ], 4));
2172
2186
  }
2173
- }, Ss = { class: "d-info-progress-icon-container" }, Ts = { class: "d-info-progress-icon" }, Ds = { class: "d-info-progress-data-container" }, Ls = ["innerHTML"], Rn = {
2187
+ }, ws = { class: "d-info-progress-icon-container" }, Ss = { class: "d-info-progress-icon" }, Ds = { class: "d-info-progress-data-container" }, Ts = ["innerHTML"], Nn = {
2174
2188
  __name: "DInfoProgress",
2175
2189
  props: {
2176
2190
  style: [String, Object],
@@ -2183,20 +2197,20 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2183
2197
  setup(e, { emit: t }) {
2184
2198
  const o = e, s = m(() => o.icon ? ee.getters.getIcon(o.icon) : null);
2185
2199
  return (n, a) => (d(), f("div", {
2186
- class: D(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2200
+ class: T(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2187
2201
  style: H(o.style),
2188
2202
  onClick: a[0] || (a[0] = (r) => {
2189
2203
  t("click", r);
2190
2204
  })
2191
2205
  }, [
2192
- _("div", Ss, [
2193
- _("div", Ts, [
2194
- o.icon ? (d(), x(X(de), {
2206
+ _("div", ws, [
2207
+ _("div", Ss, [
2208
+ o.icon ? (d(), b(Y(de), {
2195
2209
  key: 0,
2196
2210
  component: s.value,
2197
2211
  color: "inherit",
2198
2212
  size: 17
2199
- }, null, 8, ["component"])) : $("", !0)
2213
+ }, null, 8, ["component"])) : k("", !0)
2200
2214
  ])
2201
2215
  ]),
2202
2216
  _("div", Ds, [
@@ -2207,11 +2221,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2207
2221
  _("div", {
2208
2222
  class: "d-info-progress-label",
2209
2223
  innerHTML: e.label
2210
- }, null, 8, Ls)
2224
+ }, null, 8, Ts)
2211
2225
  ])
2212
2226
  ], 6));
2213
2227
  }
2214
- }, Cs = { class: "d-checkbox" }, Is = ["id", "checked", "disabled"], Es = ["for"], On = {
2228
+ }, Ls = { class: "d-checkbox" }, Cs = ["id", "checked", "disabled"], Is = ["for"], Rn = {
2215
2229
  __name: "DCheckbox",
2216
2230
  props: {
2217
2231
  label: String,
@@ -2225,13 +2239,13 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2225
2239
  },
2226
2240
  emits: ["update:modelValue"],
2227
2241
  setup(e, { emit: t }) {
2228
- const o = e, n = pt().uid, a = m({
2242
+ const o = e, n = ft().uid, a = m({
2229
2243
  get: () => o.modelValue,
2230
2244
  set: (r) => {
2231
2245
  t("update:modelValue", r);
2232
2246
  }
2233
2247
  });
2234
- return (r, l) => (d(), f("div", Cs, [
2248
+ return (r, l) => (d(), f("div", Ls, [
2235
2249
  te(_("input", {
2236
2250
  "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
2237
2251
  id: `i-${E(n)}`,
@@ -2239,30 +2253,30 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2239
2253
  checked: o.checked,
2240
2254
  disabled: o.disabled,
2241
2255
  onChange: l[1] || (l[1] = (...i) => o.change && o.change(...i))
2242
- }, null, 40, Is), [
2243
- [Bt, a.value]
2256
+ }, null, 40, Cs), [
2257
+ [Mt, a.value]
2244
2258
  ]),
2245
2259
  _("label", {
2246
2260
  for: `i-${E(n)}`
2247
- }, A(o.label), 9, Es)
2261
+ }, A(o.label), 9, Is)
2248
2262
  ]));
2249
2263
  }
2250
2264
  };
2251
- async function Bs(e, t) {
2252
- return await _t(es, { title: e, message: t });
2265
+ async function Es(e, t) {
2266
+ return await bt(Qo, { title: e, message: t });
2253
2267
  }
2254
- async function Ms(e, t) {
2255
- return await _t(Jo, { title: e, message: t });
2268
+ async function Bs(e, t) {
2269
+ return await bt(Ko, { title: e, message: t });
2256
2270
  }
2257
- const An = {
2271
+ const On = {
2258
2272
  __name: "DDialogProvider",
2259
2273
  setup(e) {
2260
- return window.alert = Ms, window.confirm = Bs, (t, o) => (d(), x(E(Zo)));
2274
+ return window.alert = Bs, window.confirm = Es, (t, o) => (d(), b(E(Go)));
2261
2275
  }
2262
- }, Ns = { class: "d-select" }, Rs = {
2276
+ }, Ms = { class: "d-select" }, Ns = {
2263
2277
  key: 0,
2264
2278
  class: "label"
2265
- }, Os = ["value", "selected", "disabled"], Hn = {
2279
+ }, Rs = ["value", "selected", "disabled"], An = {
2266
2280
  __name: "DSelect",
2267
2281
  props: {
2268
2282
  label: String,
@@ -2285,11 +2299,11 @@ const An = {
2285
2299
  n.value = o.options[a].value;
2286
2300
  break;
2287
2301
  }
2288
- return (a, r) => (d(), f("div", Ns, [
2289
- o.label ? (d(), f("div", Rs, A(o.label), 1)) : $("", !0),
2302
+ return (a, r) => (d(), f("div", Ms, [
2303
+ o.label ? (d(), f("div", Ns, A(o.label), 1)) : k("", !0),
2290
2304
  te(_("select", {
2291
2305
  "onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
2292
- class: D(s.value),
2306
+ class: T(s.value),
2293
2307
  style: H(o.size === "wide" ? "width:100%" : "")
2294
2308
  }, [
2295
2309
  (d(!0), f(ie, null, ge(o.options, (l, i) => (d(), f("option", {
@@ -2297,13 +2311,13 @@ const An = {
2297
2311
  value: l.value,
2298
2312
  selected: l.selected,
2299
2313
  disabled: l.disabled
2300
- }, A(l.label), 9, Os))), 128))
2314
+ }, A(l.label), 9, Rs))), 128))
2301
2315
  ], 6), [
2302
- [Mt, n.value]
2316
+ [Nt, n.value]
2303
2317
  ])
2304
2318
  ]));
2305
2319
  }
2306
- }, As = ["title"], Hs = ["title"], Vs = {
2320
+ }, Os = ["title"], As = ["title"], Hs = {
2307
2321
  __name: "DTabLabel",
2308
2322
  props: {
2309
2323
  tab: Object
@@ -2313,41 +2327,41 @@ const An = {
2313
2327
  return (o, s) => t.tab.label ? (d(), f("span", {
2314
2328
  key: 0,
2315
2329
  title: t.tab.title ? t.tab.title : ""
2316
- }, A(t.tab.label), 9, As)) : t.tab.icon ? (d(), f("span", {
2330
+ }, A(t.tab.label), 9, Os)) : t.tab.icon ? (d(), f("span", {
2317
2331
  key: 1,
2318
2332
  title: t.tab.title ? t.tab.title : ""
2319
2333
  }, [
2320
2334
  oe(E(de), {
2321
2335
  component: t.tab.icon
2322
2336
  }, null, 8, ["component"])
2323
- ], 8, Hs)) : $("", !0);
2337
+ ], 8, As)) : k("", !0);
2324
2338
  }
2325
2339
  };
2326
- const zs = { class: "d-tabs" }, Fs = {
2340
+ const Vs = { class: "d-tabs" }, zs = {
2327
2341
  __name: "DTabs",
2328
2342
  props: {
2329
2343
  tabs: Array
2330
2344
  },
2331
2345
  setup(e) {
2332
- const o = Nt(e, "tabs"), s = w(0), n = (a) => {
2346
+ const o = Rt(e, "tabs"), s = w(0), n = (a) => {
2333
2347
  s.value = a;
2334
2348
  };
2335
2349
  return (a, r) => (d(), f(ie, null, [
2336
- _("div", zs, [
2337
- (d(!0), f(ie, null, ge(o.value, (l, i) => (d(), x(Vs, {
2350
+ _("div", Vs, [
2351
+ (d(!0), f(ie, null, ge(o.value, (l, i) => (d(), b(Hs, {
2338
2352
  index: i,
2339
2353
  tab: l,
2340
- class: D(["d-tab-title", i === s.value ? "active" : ""]),
2354
+ class: T(["d-tab-title", i === s.value ? "active" : ""]),
2341
2355
  onClick: (c) => n(i)
2342
2356
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2343
2357
  ]),
2344
- (d(), x(Rt, null, [
2345
- (d(), x(X(o.value[s.value].component)))
2358
+ (d(), b(Ot, null, [
2359
+ (d(), b(Y(o.value[s.value].component)))
2346
2360
  ], 1024))
2347
2361
  ], 64));
2348
2362
  }
2349
- }, Vn = /* @__PURE__ */ re(Fs, [["__scopeId", "data-v-c98761cd"]]);
2350
- const Ws = { class: "d-grid" }, Ps = {
2363
+ }, Hn = /* @__PURE__ */ re(zs, [["__scopeId", "data-v-c98761cd"]]);
2364
+ const Fs = { class: "d-grid" }, Ws = {
2351
2365
  __name: "DGrid",
2352
2366
  props: {
2353
2367
  gap: {
@@ -2375,15 +2389,15 @@ const Ws = { class: "d-grid" }, Ps = {
2375
2389
  "09eba33c": i[5],
2376
2390
  "898eb2ac": t.gap
2377
2391
  }));
2378
- 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];
2392
+ const { colXs: o, colSm: s, colMd: n, colLg: a, colXl: r, colXxl: l } = At(t), i = [o.value, s.value, n.value, a.value, r.value, l.value];
2379
2393
  let c = null;
2380
2394
  for (let u = 0; u < i.length; u++)
2381
2395
  c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
2382
- return (u, h) => (d(), f("div", Ws, [
2396
+ return (u, h) => (d(), f("div", Fs, [
2383
2397
  L(u.$slots, "default", {}, void 0, !0)
2384
2398
  ]));
2385
2399
  }
2386
- }, zn = /* @__PURE__ */ re(Ps, [["__scopeId", "data-v-b45e8130"]]), js = ["src", "alt", "title"], Fn = {
2400
+ }, Vn = /* @__PURE__ */ re(Ws, [["__scopeId", "data-v-b45e8130"]]), Ps = ["src", "alt", "title"], zn = {
2387
2401
  __name: "DImage",
2388
2402
  props: {
2389
2403
  src: String,
@@ -2408,13 +2422,13 @@ const Ws = { class: "d-grid" }, Ps = {
2408
2422
  alt: t.alt,
2409
2423
  title: t.title,
2410
2424
  style: H({ width: t.width, height: t.height, borderRadius: t.radius })
2411
- }, null, 12, js)) : $("", !0);
2425
+ }, null, 12, Ps)) : k("", !0);
2412
2426
  }
2413
2427
  };
2414
- const Xs = { class: "d-textarea" }, Ys = {
2428
+ const js = { class: "d-textarea" }, Xs = {
2415
2429
  key: 0,
2416
2430
  class: "label"
2417
- }, Us = ["rows", "cols", "placeholder"], qs = {
2431
+ }, Ys = ["rows", "cols", "placeholder"], Us = {
2418
2432
  __name: "DTextarea",
2419
2433
  props: {
2420
2434
  label: String,
@@ -2448,8 +2462,8 @@ const Xs = { class: "d-textarea" }, Ys = {
2448
2462
  };
2449
2463
  return t({
2450
2464
  focus: l
2451
- }), (i, c) => (d(), f("div", Xs, [
2452
- s.label ? (d(), f("div", Ys, A(s.label), 1)) : $("", !0),
2465
+ }), (i, c) => (d(), f("div", js, [
2466
+ s.label ? (d(), f("div", Xs, A(s.label), 1)) : k("", !0),
2453
2467
  te(_("textarea", {
2454
2468
  ref_key: "inputRef",
2455
2469
  ref: n,
@@ -2457,15 +2471,15 @@ const Xs = { class: "d-textarea" }, Ys = {
2457
2471
  rows: s.rows,
2458
2472
  cols: s.cols,
2459
2473
  placeholder: s.placeholder,
2460
- class: D(a.value),
2474
+ class: T(a.value),
2461
2475
  style: { width: "100%" }
2462
- }, null, 10, Us), [
2463
- [At, r.value]
2476
+ }, null, 10, Ys), [
2477
+ [Ht, r.value]
2464
2478
  ])
2465
2479
  ]));
2466
2480
  }
2467
- }, Wn = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-0e805d5d"]]);
2468
- class Pn {
2481
+ }, Fn = /* @__PURE__ */ re(Us, [["__scopeId", "data-v-0e805d5d"]]);
2482
+ class Wn {
2469
2483
  constructor(t) {
2470
2484
  this.fields = t;
2471
2485
  }
@@ -2476,7 +2490,7 @@ class Pn {
2476
2490
  return !t;
2477
2491
  }
2478
2492
  }
2479
- class Gs {
2493
+ class qs {
2480
2494
  validate(t, o = "https") {
2481
2495
  return this._isValidURL(t) || (t = o + "://" + t), this._isValidURL(t);
2482
2496
  }
@@ -2497,8 +2511,8 @@ class Gs {
2497
2511
  }
2498
2512
  }
2499
2513
  }
2500
- const Zs = new Gs();
2501
- class Ks {
2514
+ const Gs = new qs();
2515
+ class Zs {
2502
2516
  validate(t = "") {
2503
2517
  return t !== "";
2504
2518
  }
@@ -2506,8 +2520,8 @@ class Ks {
2506
2520
  return t;
2507
2521
  }
2508
2522
  }
2509
- const Js = new Ks();
2510
- class Qs {
2523
+ const Ks = new Zs();
2524
+ class Js {
2511
2525
  validate(t = "", o = 0) {
2512
2526
  return t.length >= o;
2513
2527
  }
@@ -2515,8 +2529,8 @@ class Qs {
2515
2529
  return t;
2516
2530
  }
2517
2531
  }
2518
- const en = new Qs();
2519
- class tn {
2532
+ const Qs = new Js();
2533
+ class en {
2520
2534
  validate(t = "", o = 0) {
2521
2535
  return t.length <= o;
2522
2536
  }
@@ -2524,8 +2538,8 @@ class tn {
2524
2538
  return t;
2525
2539
  }
2526
2540
  }
2527
- const on = new tn();
2528
- class sn {
2541
+ const tn = new en();
2542
+ class on {
2529
2543
  validate(t) {
2530
2544
  return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(t);
2531
2545
  }
@@ -2533,8 +2547,8 @@ class sn {
2533
2547
  return t;
2534
2548
  }
2535
2549
  }
2536
- const nn = new sn();
2537
- class an {
2550
+ const sn = new on();
2551
+ class nn {
2538
2552
  validate(t) {
2539
2553
  return !isNaN(parseFloat(t)) && !isNaN(t - 0);
2540
2554
  }
@@ -2542,55 +2556,55 @@ class an {
2542
2556
  return t;
2543
2557
  }
2544
2558
  }
2545
- const rn = new an(), Y = {
2546
- RulesUrl: Zs,
2547
- RulesRequired: Js,
2548
- RulesMin: en,
2549
- RulesMax: on,
2550
- RulesEmail: nn,
2551
- RulesNumber: rn
2559
+ const an = new nn(), U = {
2560
+ RulesUrl: Gs,
2561
+ RulesRequired: Ks,
2562
+ RulesMin: Qs,
2563
+ RulesMax: tn,
2564
+ RulesEmail: sn,
2565
+ RulesNumber: an
2552
2566
  };
2553
- class ln {
2567
+ class rn {
2554
2568
  validate(t, o) {
2555
- var n, a, r, l, i, c, u, h, b, S, N, k, F, R;
2569
+ var n, a, r, l, i, c, u, h, x, S, N, $, V, R;
2556
2570
  let s = "";
2557
2571
  if (o) {
2558
- let C = !1;
2572
+ let I = !1;
2559
2573
  for (let B in o)
2560
- if (!C)
2574
+ if (!I)
2561
2575
  switch (B) {
2562
2576
  case "url":
2563
- 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 !== "";
2577
+ s = U.RulesUrl.validate(t, "https") || t.length === 0 ? "" : U.RulesUrl.message("url", (n = o[B]) != null && n.message ? (a = o[B]) == null ? void 0 : a.message : "url_incorrect"), I = s !== "";
2564
2578
  break;
2565
2579
  case "required":
2566
- 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 !== "";
2580
+ s = U.RulesRequired.validate(t) ? "" : U.RulesRequired.message((r = o[B]) != null && r.message ? (l = o[B]) == null ? void 0 : l.message : "required"), I = s !== "";
2567
2581
  break;
2568
2582
  case "min":
2569
- 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 !== "";
2583
+ s = U.RulesMin.validate(t, (i = o[B]) == null ? void 0 : i.value) ? "" : U.RulesMin.message((c = o[B]) != null && c.message ? (u = o[B]) == null ? void 0 : u.message : "very_small"), I = s !== "";
2570
2584
  break;
2571
2585
  case "max":
2572
- 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 !== "";
2586
+ s = U.RulesMax.validate(t, (h = o[B]) == null ? void 0 : h.value) ? "" : U.RulesMax.message((x = o[B]) != null && x.message ? (S = o[B]) == null ? void 0 : S.message : "vary_large"), I = s !== "";
2573
2587
  break;
2574
2588
  case "email":
2575
- 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 !== "";
2589
+ s = U.RulesEmail.validate(t) ? "" : U.RulesMax.message((N = o[B]) != null && N.message ? ($ = o[B]) == null ? void 0 : $.message : "email_incorrect"), I = s !== "";
2576
2590
  break;
2577
2591
  case "number":
2578
- s = Y.RulesNumber.validate(t) ? "" : Y.RulesNumber.message(
2579
- (F = o[B]) != null && F.message ? (R = o[B]) == null ? void 0 : R.message : "number_incorrect"
2580
- ), C = s !== "";
2592
+ s = U.RulesNumber.validate(t) ? "" : U.RulesNumber.message(
2593
+ (V = o[B]) != null && V.message ? (R = o[B]) == null ? void 0 : R.message : "number_incorrect"
2594
+ ), I = s !== "";
2581
2595
  break;
2582
2596
  }
2583
2597
  }
2584
2598
  return s;
2585
2599
  }
2586
2600
  }
2587
- const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column" } }, un = {
2601
+ const ln = new rn(), dn = { style: { display: "flex", "flex-direction": "column" } }, cn = {
2588
2602
  key: 0,
2589
2603
  class: "d-label"
2590
- }, pn = {
2604
+ }, un = {
2591
2605
  key: 0,
2592
2606
  class: "text-red"
2593
- }, fn = { style: { display: "flex", "flex-direction": "row" } }, mn = { style: { flex: "1", position: "relative" } }, hn = /* @__PURE__ */ _("svg", {
2607
+ }, pn = { style: { display: "flex", "flex-direction": "row" } }, fn = { style: { flex: "1", position: "relative" } }, mn = /* @__PURE__ */ _("svg", {
2594
2608
  xmlns: "http://www.w3.org/2000/svg",
2595
2609
  viewBox: "0 0 24 24"
2596
2610
  }, [
@@ -2598,9 +2612,9 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2598
2612
  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",
2599
2613
  fill: "currentColor"
2600
2614
  })
2601
- ], -1), gn = [
2602
- hn
2603
- ], vn = ["id", "type", "placeholder", "disabled"], yn = /* @__PURE__ */ _("svg", {
2615
+ ], -1), hn = [
2616
+ mn
2617
+ ], gn = ["id", "type", "placeholder", "disabled"], vn = /* @__PURE__ */ _("svg", {
2604
2618
  xmlns: "http://www.w3.org/2000/svg",
2605
2619
  viewBox: "0 0 24 24"
2606
2620
  }, [
@@ -2608,15 +2622,15 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2608
2622
  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",
2609
2623
  fill: "currentColor"
2610
2624
  })
2611
- ], -1), _n = [
2612
- yn
2613
- ], bn = {
2625
+ ], -1), yn = [
2626
+ vn
2627
+ ], _n = {
2614
2628
  key: 1,
2615
2629
  class: "d-help"
2616
- }, xn = {
2630
+ }, bn = {
2617
2631
  key: 2,
2618
2632
  class: "d-error text-red"
2619
- }, jn = {
2633
+ }, Pn = {
2620
2634
  __name: "DInputString",
2621
2635
  props: {
2622
2636
  form: Object,
@@ -2640,7 +2654,7 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2640
2654
  },
2641
2655
  emits: ["update:modelValue", "input"],
2642
2656
  setup(e, { expose: t, emit: o }) {
2643
- const s = e, n = w(s.error), a = Ht(), r = w(!1), l = w(null);
2657
+ const s = e, n = w(s.error), a = Vt(), r = w(!1), l = w(null);
2644
2658
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2645
2659
  const i = m({
2646
2660
  get: () => s.modelValue,
@@ -2649,8 +2663,8 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2649
2663
  o("update:modelValue", R);
2650
2664
  }
2651
2665
  }), c = m(() => s.type === "password" ? "password" : "text"), u = m(() => s.scale), h = (R) => {
2652
- o("input", R), b();
2653
- }, b = () => (n.value = dn.validate(i.value, s.form.fields[s.name].rules), !!n.value);
2666
+ o("input", R), x();
2667
+ }, x = () => (n.value = ln.validate(i.value, s.form.fields[s.name].rules), !!n.value);
2654
2668
  fe(() => {
2655
2669
  S();
2656
2670
  });
@@ -2659,7 +2673,7 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2659
2673
  (R = l.value) == null || R.focus();
2660
2674
  }, N = () => {
2661
2675
  i.value = "";
2662
- }, k = (R) => {
2676
+ }, $ = (R) => {
2663
2677
  r.value = R;
2664
2678
  };
2665
2679
  return t({
@@ -2667,49 +2681,49 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2667
2681
  setError: (R) => {
2668
2682
  n.value = R;
2669
2683
  },
2670
- validate: b
2671
- }), (R, C) => {
2672
- var B, M, y, O, W, P, v, 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;
2684
+ validate: x
2685
+ }), (R, I) => {
2686
+ var B, M, y, O, W, P, v, z, p, F, D, G, 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;
2673
2687
  return d(), f("div", {
2674
- class: D(["d-input-string", u.value])
2688
+ class: T(["d-input-string", u.value])
2675
2689
  }, [
2676
- _("div", cn, [
2677
- s.label ? (d(), f("div", un, [
2690
+ _("div", dn, [
2691
+ s.label ? (d(), f("div", cn, [
2678
2692
  K(A(s.label), 1),
2679
- (B = s.form) != null && B.fields[s.name].rules && s.form.fields[s.name].rules.hasOwnProperty("required") ? (d(), f("span", pn, "*")) : $("", !0)
2680
- ])) : $("", !0),
2681
- _("div", fn, [
2693
+ (B = s.form) != null && B.fields[s.name].rules && s.form.fields[s.name].rules.hasOwnProperty("required") ? (d(), f("span", un, "*")) : k("", !0)
2694
+ ])) : k("", !0),
2695
+ _("div", pn, [
2682
2696
  (y = (M = s.pre) == null ? void 0 : M.outside) != null && y.component ? (d(), f("div", {
2683
2697
  key: 0,
2684
- class: D(["d-pre", s.disabled ? "disabled" : ""])
2698
+ class: T(["d-pre", s.disabled ? "disabled" : ""])
2685
2699
  }, [
2686
- (d(), x(X((W = (O = s.pre) == null ? void 0 : O.outside) == null ? void 0 : W.component)))
2700
+ (d(), b(Y((W = (O = s.pre) == null ? void 0 : O.outside) == null ? void 0 : W.component)))
2687
2701
  ], 2)) : (v = (P = s.pre) == null ? void 0 : P.outside) != null && v.text ? (d(), f("div", {
2688
2702
  key: 1,
2689
- class: D(["d-pre", s.disabled ? "disabled" : ""])
2703
+ class: T(["d-pre", s.disabled ? "disabled" : ""])
2690
2704
  }, [
2691
2705
  _("div", {
2692
- class: D(["d-text", r.value ? "focused" : ""])
2693
- }, A((p = (V = s.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2694
- ], 2)) : $("", !0),
2695
- _("div", mn, [
2696
- (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", {
2706
+ class: T(["d-text", r.value ? "focused" : ""])
2707
+ }, A((p = (z = s.pre) == null ? void 0 : z.outside) == null ? void 0 : p.text), 3)
2708
+ ], 2)) : k("", !0),
2709
+ _("div", fn, [
2710
+ (D = (F = s.pre) == null ? void 0 : F.inside) != null && D.action && ((se = (G = s.pre) == null ? void 0 : G.inside) == null ? void 0 : se.action) === "clear" && ((ve = i.value) == null ? void 0 : ve.length) > 0 ? (d(), f("div", {
2697
2711
  key: 0,
2698
2712
  class: "d-pre-inside-button",
2699
2713
  onClick: N
2700
- }, gn)) : $("", !0),
2714
+ }, hn)) : k("", !0),
2701
2715
  te(_("input", {
2702
2716
  id: E(a),
2703
2717
  ref_key: "inputRef",
2704
2718
  ref: l,
2705
- "onUpdate:modelValue": C[0] || (C[0] = (Ie) => i.value = Ie),
2719
+ "onUpdate:modelValue": I[0] || (I[0] = (Ie) => i.value = Ie),
2706
2720
  style: { width: "100%" },
2707
2721
  type: c.value,
2708
2722
  placeholder: s.placeholder,
2709
2723
  onInput: h,
2710
- onFocus: C[1] || (C[1] = (Ie) => k(!0)),
2711
- onFocusout: C[2] || (C[2] = (Ie) => k(!1)),
2712
- class: D([
2724
+ onFocus: I[1] || (I[1] = (Ie) => $(!0)),
2725
+ onFocusout: I[2] || (I[2] = (Ie) => $(!1)),
2726
+ class: T([
2713
2727
  (_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" : "",
2714
2728
  (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" : "",
2715
2729
  (Fe = (me = s.pre) == null ? void 0 : me.inside) != null && Fe.action ? "has-pre-inside-button" : "",
@@ -2717,31 +2731,31 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2717
2731
  r.value ? "focused" : ""
2718
2732
  ]),
2719
2733
  disabled: s.disabled
2720
- }, null, 42, vn), [
2721
- [Te, i.value]
2734
+ }, null, 42, gn), [
2735
+ [De, i.value]
2722
2736
  ]),
2723
2737
  (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", {
2724
2738
  key: 1,
2725
2739
  class: "d-post-inside-button",
2726
2740
  onClick: N
2727
- }, _n)) : $("", !0)
2741
+ }, yn)) : k("", !0)
2728
2742
  ]),
2729
2743
  (Ze = (Ge = s.post) == null ? void 0 : Ge.outside) != null && Ze.component ? (d(), f("div", {
2730
2744
  key: 2,
2731
- class: D(["d-post", s.disabled ? "disabled" : ""])
2745
+ class: T(["d-post", s.disabled ? "disabled" : ""])
2732
2746
  }, [
2733
- (d(), x(X((Je = (Ke = s.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2747
+ (d(), b(Y((Je = (Ke = s.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2734
2748
  ], 2)) : (et = (Qe = s.post) == null ? void 0 : Qe.outside) != null && et.text ? (d(), f("div", {
2735
2749
  key: 3,
2736
- class: D(["d-post", s.disabled ? "disabled" : ""])
2750
+ class: T(["d-post", s.disabled ? "disabled" : ""])
2737
2751
  }, [
2738
2752
  _("div", {
2739
- class: D(["d-text", r.value ? "focused" : ""])
2753
+ class: T(["d-text", r.value ? "focused" : ""])
2740
2754
  }, A((ot = (tt = s.post) == null ? void 0 : tt.outside) == null ? void 0 : ot.text), 3)
2741
- ], 2)) : $("", !0)
2755
+ ], 2)) : k("", !0)
2742
2756
  ]),
2743
- s.help ? (d(), f("div", bn, A(s.help), 1)) : $("", !0),
2744
- n.value ? (d(), f("div", xn, A(n.value), 1)) : $("", !0)
2757
+ s.help ? (d(), f("div", _n, A(s.help), 1)) : k("", !0),
2758
+ n.value ? (d(), f("div", bn, A(n.value), 1)) : k("", !0)
2745
2759
  ])
2746
2760
  ], 2);
2747
2761
  };
@@ -2765,13 +2779,13 @@ const dn = new ln(), cn = { style: { display: "flex", "flex-direction": "column"
2765
2779
  e.hasOwnProperty(t) && (he.state[t] = e[t]);
2766
2780
  }
2767
2781
  }
2768
- }, bt = (e) => {
2769
- typeof e == "string" && (e = { title: "", text: e }), typeof e == "object" && U.emit("notification-add", e);
2782
+ }, xt = (e) => {
2783
+ typeof e == "string" && (e = { title: "", text: e }), typeof e == "object" && q.emit("notification-add", e);
2770
2784
  };
2771
- bt.close = (e) => {
2772
- U.emit("notification-close", e);
2785
+ xt.close = (e) => {
2786
+ q.emit("notification-close", e);
2773
2787
  };
2774
- const Xn = () => ({ notify: bt }), Yn = {
2788
+ const jn = () => ({ notify: xt }), Xn = {
2775
2789
  mounted: function(e, t) {
2776
2790
  e.clickOutsideEvent = function(o) {
2777
2791
  e === o.target || e.contains(o.target) || t.value(o, e);
@@ -2780,7 +2794,7 @@ const Xn = () => ({ notify: bt }), Yn = {
2780
2794
  unmounted: function(e) {
2781
2795
  document.removeEventListener("click", e.clickOutsideEvent);
2782
2796
  }
2783
- }, Un = {
2797
+ }, Yn = {
2784
2798
  beforeMount(e, t) {
2785
2799
  e._keydownCallback = (o) => {
2786
2800
  o.key === t.arg && t.value();
@@ -2789,18 +2803,18 @@ const Xn = () => ({ notify: bt }), Yn = {
2789
2803
  unmounted(e, t) {
2790
2804
  document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
2791
2805
  }
2792
- }, qn = {
2806
+ }, Un = {
2793
2807
  beforeMount(e) {
2794
2808
  e.focus();
2795
2809
  }
2796
2810
  };
2797
- function xt(e) {
2811
+ function $t(e) {
2798
2812
  return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
2799
2813
  }
2800
- function $t(e) {
2814
+ function kt(e) {
2801
2815
  return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
2802
2816
  }
2803
- var $n = function() {
2817
+ var xn = function() {
2804
2818
  var e = !1;
2805
2819
  try {
2806
2820
  var t = Object.defineProperty({}, "passive", {
@@ -2812,7 +2826,7 @@ var $n = function() {
2812
2826
  } catch {
2813
2827
  }
2814
2828
  return e;
2815
- }(), kn = {
2829
+ }(), $n = {
2816
2830
  disableClick: !1,
2817
2831
  tapTolerance: 10,
2818
2832
  // px
@@ -2830,12 +2844,12 @@ var $n = function() {
2830
2844
  };
2831
2845
  function ke(e) {
2832
2846
  var t = this.$$touchObj, o = e.type.indexOf("touch") >= 0, s = e.type.indexOf("mouse") >= 0, n = this;
2833
- 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() {
2847
+ o && (t.lastTouchStartTime = e.timeStamp), !(s && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (wt(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = $t(e), t.startY = kt(e), t.currentX = 0, t.currentY = 0, t.touchStartTime = e.timeStamp, t.hasSwipe = Z(this, "swipe") || Z(this, "swipe.left") || Z(this, "swipe.right") || Z(this, "swipe.top") || Z(this, "swipe.bottom"), Z(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
2834
2848
  t.touchHoldTimer = null, Q(e, n, "hold");
2835
2849
  }, t.options.touchHoldTolerance)), Q(e, this, "press")));
2836
2850
  }
2837
2851
  function we(e) {
2838
- var t = this.$$touchObj, o = xt(e), s = $t(e), n = t.currentX != o || t.currentY != s;
2852
+ var t = this.$$touchObj, o = $t(e), s = kt(e), n = t.currentX != o || t.currentY != s;
2839
2853
  if (t.currentX = o, t.currentY = s, t.touchMoved) {
2840
2854
  if (t.hasSwipe && !t.swipeOutBounded) {
2841
2855
  var r = t.options.swipeTolerance;
@@ -2845,16 +2859,16 @@ function we(e) {
2845
2859
  var a = t.options.tapTolerance;
2846
2860
  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"));
2847
2861
  }
2848
- if (G(this, "rollover") && n) {
2862
+ if (Z(this, "rollover") && n) {
2849
2863
  var l = e.timeStamp, i = t.options.rollOverFrequency;
2850
2864
  (t.touchRollTime == null || l > t.touchRollTime + i) && (t.touchRollTime = l, Q(e, this, "rollover"));
2851
2865
  }
2852
- if (G(this, "drag") && t.touchStarted && t.touchMoved && n) {
2866
+ if (Z(this, "drag") && t.touchStarted && t.touchMoved && n) {
2853
2867
  var l = e.timeStamp, i = t.options.dragFrequency;
2854
2868
  (t.touchDragTime == null || l > t.touchDragTime + i) && (t.touchDragTime = l, Q(e, this, "drag"));
2855
2869
  }
2856
2870
  }
2857
- function it() {
2871
+ function rt() {
2858
2872
  var e = this.$$touchObj;
2859
2873
  ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2860
2874
  }
@@ -2866,23 +2880,23 @@ function Se(e) {
2866
2880
  if (Q(e, this, "release"), t.touchMoved) {
2867
2881
  if (t.hasSwipe && !t.swipeOutBounded) {
2868
2882
  var a = t.options.swipeTolerance, r, l = Math.abs(t.startY - t.currentY), i = Math.abs(t.startX - t.currentX);
2869
- (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));
2883
+ (l > a || i > a) && (l > a ? r = t.startY > t.currentY ? "top" : "bottom" : r = t.startX > t.currentX ? "left" : "right", Z(this, "swipe." + r) ? Q(e, this, "swipe." + r, r) : Q(e, this, "swipe", r));
2870
2884
  }
2871
- } else if (G(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
2885
+ } else if (Z(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
2872
2886
  e.cancelable && e.preventDefault(), Q(e, this, "longtap");
2873
- else if (G(this, "hold") && n) {
2887
+ else if (Z(this, "hold") && n) {
2874
2888
  e.cancelable && e.preventDefault();
2875
2889
  return;
2876
2890
  } else
2877
2891
  Q(e, this, "tap");
2878
2892
  }
2879
- function rt() {
2880
- kt(this);
2881
- }
2882
2893
  function lt() {
2894
+ wt(this);
2895
+ }
2896
+ function dt() {
2883
2897
  Ve(this);
2884
2898
  }
2885
- function G(e, t) {
2899
+ function Z(e, t) {
2886
2900
  var o = e.$$touchObj.callbacks[t];
2887
2901
  return o != null && o.length > 0;
2888
2902
  }
@@ -2895,7 +2909,7 @@ function Q(e, t, o, s) {
2895
2909
  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));
2896
2910
  }
2897
2911
  }
2898
- function kt(e) {
2912
+ function wt(e) {
2899
2913
  var t = e.$$touchObj.options.touchClass;
2900
2914
  t && e.classList.add(t);
2901
2915
  }
@@ -2906,7 +2920,7 @@ function Ve(e) {
2906
2920
  function ze(e) {
2907
2921
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2908
2922
  }
2909
- function wn(e, t) {
2923
+ function kn(e, t) {
2910
2924
  var o = e.$$touchObj || {
2911
2925
  // an object contains all callbacks registered,
2912
2926
  // key is event name, value is an array
@@ -2914,14 +2928,14 @@ function wn(e, t) {
2914
2928
  // prevent bind twice, set to true when event bound
2915
2929
  hasBindTouchEvents: !1,
2916
2930
  // default options, would be override by v-touch-options
2917
- options: kn
2931
+ options: $n
2918
2932
  };
2919
2933
  return t && (o.options = Object.assign({}, o.options, t)), e.$$touchObj = o, e.$$touchObj;
2920
2934
  }
2921
- const Gn = {
2935
+ const qn = {
2922
2936
  beforeMount: function(e, t) {
2923
- const o = wn(e);
2924
- let s = $n ? { passive: !0 } : !1;
2937
+ const o = kn(e);
2938
+ let s = xn ? { passive: !0 } : !1;
2925
2939
  const n = t.arg || "tap";
2926
2940
  switch (n) {
2927
2941
  case "swipe":
@@ -2941,65 +2955,65 @@ const Gn = {
2941
2955
  default:
2942
2956
  o.callbacks[n] = o.callbacks[n] || [], o.callbacks[n].push(t);
2943
2957
  }
2944
- 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);
2958
+ o.hasBindTouchEvents || (e.addEventListener("touchstart", ke, s), e.addEventListener("touchmove", we, s), e.addEventListener("touchcancel", rt), 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", dt)), o.hasBindTouchEvents = !0);
2945
2959
  },
2946
2960
  unmounted: function(e) {
2947
- 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;
2961
+ e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel", rt), 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", dt)), delete e.$$touchObj;
2948
2962
  }
2949
2963
  };
2950
2964
  export {
2951
2965
  Dn as DAccordion,
2952
- Jo as DAlertDialog,
2953
- ro as DBadge,
2966
+ Ko as DAlertDialog,
2967
+ lo as DBadge,
2954
2968
  ae as DButton,
2955
- Mn as DCard,
2956
- On as DCheckbox,
2957
- lo as DCollapse,
2969
+ Bn as DCard,
2970
+ Rn as DCheckbox,
2971
+ co as DCollapse,
2958
2972
  he as DComponentStore,
2959
- Cn as DConfigProvider,
2960
- es as DConfirmDialog,
2961
- Io as DContextMenu,
2962
- An as DDialogProvider,
2963
- po as DDrag,
2964
- Co as DDrop,
2965
- Bn as DDropdown,
2966
- Pn as DForm,
2973
+ Ln as DConfigProvider,
2974
+ Qo as DConfirmDialog,
2975
+ Co as DContextMenu,
2976
+ On as DDialogProvider,
2977
+ nt as DDrag,
2978
+ Lo as DDrop,
2979
+ En as DDropdown,
2980
+ Wn as DForm,
2967
2981
  pe as DGlobalStore,
2968
- zn as DGrid,
2982
+ Vn as DGrid,
2969
2983
  de as DIcon,
2970
2984
  ee as DIconStore,
2971
- Fn as DImage,
2972
- Rn as DInfoProgress,
2973
- Tn as DInput,
2974
- jn as DInputString,
2975
- Ln as DLayoutAdmin,
2976
- Oo as DLayoutContent,
2977
- No as DLayoutFooter,
2978
- Bo as DLayoutHeader,
2979
- Ro as DLayoutSidebar,
2980
- Mo as DLayoutTab,
2981
- gt as DMenu,
2982
- yt as DModal,
2983
- Nn as DNotificationProvider,
2984
- as as DPanel,
2985
- En as DScroll,
2986
- In as DScrollProvider,
2987
- Hn as DSelect,
2988
- Vn as DTabs,
2989
- Wn as DTextarea,
2990
- De as DTransferStore,
2991
- vt as DTree,
2985
+ zn as DImage,
2986
+ Nn as DInfoProgress,
2987
+ Sn as DInput,
2988
+ Pn as DInputString,
2989
+ Tn as DLayoutAdmin,
2990
+ Ro as DLayoutContent,
2991
+ Mo as DLayoutFooter,
2992
+ Eo as DLayoutHeader,
2993
+ No as DLayoutSidebar,
2994
+ Bo as DLayoutTab,
2995
+ vt as DMenu,
2996
+ _t as DModal,
2997
+ Mn as DNotificationProvider,
2998
+ ns as DPanel,
2999
+ In as DScroll,
3000
+ Cn as DScrollProvider,
3001
+ An as DSelect,
3002
+ Hn as DTabs,
3003
+ Fn as DTextarea,
3004
+ Te as DTransferStore,
3005
+ yt as DTree,
2992
3006
  Do as DTreeItem,
2993
3007
  g as DTreeStore,
2994
- Y as Rules,
2995
- Ms as alert,
2996
- Yn as clickOutside,
2997
- Bs as confirm,
2998
- U as emitter,
2999
- Lo as eventsBus,
3000
- qn as focus,
3001
- Un as keydown,
3002
- bt as notify,
3003
- Gn as touch,
3004
- Xn as useNotification
3008
+ U as Rules,
3009
+ Bs as alert,
3010
+ Xn as clickOutside,
3011
+ Es as confirm,
3012
+ q as emitter,
3013
+ To as eventsBus,
3014
+ Un as focus,
3015
+ Yn as keydown,
3016
+ xt as notify,
3017
+ qn as touch,
3018
+ jn as useNotification
3005
3019
  };