doph-js 0.2.21 → 0.2.23

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 ve, computed as p, h as Le, openBlock as d, createBlock as b, unref as I, ref as w, createElementBlock as h, Fragment as Q, normalizeClass as B, renderSlot as $, createCommentVNode as k, normalizeStyle as N, resolveDynamicComponent as P, createStaticVNode as Ae, onMounted as ye, toDisplayString as H, withDirectives as ae, createElementVNode as S, vModelText as Ee, withCtx as D, createTextVNode as J, Transition as Se, withModifiers as q, resolveComponent as st, resolveDirective as ke, createVNode as ee, renderList as ue, pushScopeId as at, popScopeId as it, reactive as Te, Teleport as ze, nextTick as Re, getCurrentInstance as We, watch as Ve, onUnmounted as rt, mergeProps as le, useCssVars as _e, shallowRef as lt, defineComponent as dt, normalizeProps as ct, guardReactiveProps as ut, TransitionGroup as Fe, vModelCheckbox as ft, vModelSelect as pt, toRef as mt, KeepAlive as ht, toRefs as gt } from "vue";
1
+ import { useSlots as ve, computed as p, h as Ee, openBlock as d, createBlock as _, unref as I, ref as D, createElementBlock as h, Fragment as ee, normalizeClass as E, renderSlot as k, createCommentVNode as S, normalizeStyle as O, resolveDynamicComponent as P, createStaticVNode as Ae, onMounted as ye, toDisplayString as N, withDirectives as se, createElementVNode as x, vModelText as be, withCtx as w, createTextVNode as U, Transition as Se, withModifiers as q, resolveComponent as st, resolveDirective as Te, createVNode as te, renderList as ue, pushScopeId as it, popScopeId as at, reactive as we, Teleport as ze, nextTick as Re, getCurrentInstance as Ve, watch as We, onUnmounted as lt, mergeProps as re, useCssVars as _e, shallowRef as rt, defineComponent as dt, normalizeProps as ct, guardReactiveProps as ut, TransitionGroup as Fe, vModelCheckbox as ft, vModelSelect as pt, toRef as mt, KeepAlive as ht, toRefs as gt } from "vue";
2
2
  const ce = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -9,45 +9,45 @@ const ce = {
9
9
  },
10
10
  setup(e) {
11
11
  const o = e, t = ve(), n = p(() => {
12
- const { className: l } = o;
13
- return l === void 0 ? "icon" : ["icon", l].join(" ");
12
+ const { className: r } = o;
13
+ return r === void 0 ? "icon" : ["icon", r].join(" ");
14
14
  }), s = p(() => {
15
- const { color: l } = o;
16
- return l === void 0 ? null : l;
17
- }), a = p(() => {
18
- const l = o.size ?? null;
19
- if (l !== void 0)
20
- return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
21
- }), r = p(() => Le(
15
+ const { color: r } = o;
16
+ return r === void 0 ? null : r;
17
+ }), i = p(() => {
18
+ const r = o.size ?? null;
19
+ if (r !== void 0)
20
+ return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
21
+ }), l = p(() => Ee(
22
22
  "i",
23
23
  {
24
24
  class: n.value,
25
25
  style: {
26
26
  color: s.value,
27
- fontSize: a.value
27
+ fontSize: i.value
28
28
  }
29
29
  },
30
- o.component ? Le(o.component) : t
30
+ o.component ? Ee(o.component) : t
31
31
  ));
32
- return (l, i) => (d(), b(I(r)));
32
+ return (r, a) => (d(), _(I(l)));
33
33
  }
34
- }, U = {
34
+ }, Z = {
35
35
  state: {},
36
36
  getters: {
37
37
  getIcon(e) {
38
- return U.state[e];
38
+ return Z.state[e];
39
39
  },
40
40
  getIcons() {
41
- return U.state;
41
+ return Z.state;
42
42
  }
43
43
  },
44
44
  mutations: {
45
45
  addIcon(e, o) {
46
- U.state.name = o;
46
+ Z.state.name = o;
47
47
  },
48
48
  addIcons(e) {
49
49
  for (const o in e)
50
- e.hasOwnProperty(o) && (U.state[o] = e[o]);
50
+ e.hasOwnProperty(o) && (Z.state[o] = e[o]);
51
51
  }
52
52
  }
53
53
  };
@@ -58,7 +58,7 @@ function Pe(e) {
58
58
  n += t.offsetLeft - t.scrollLeft, s += t.offsetTop - t.scrollTop, t = t.offsetParent;
59
59
  return { top: s, left: n, x: o.x, y: o.y, width: o.width, height: o.height };
60
60
  }
61
- const te = (e, o) => {
61
+ const oe = (e, o) => {
62
62
  const t = e.__vccOpts || e;
63
63
  for (const [n, s] of o)
64
64
  t[n] = s;
@@ -75,9 +75,9 @@ const te = (e, o) => {
75
75
  class: "loading-svg rotating",
76
76
  xmlns: "http://www.w3.org/2000/svg",
77
77
  viewBox: "0 0 24 24"
78
- }, $t = /* @__PURE__ */ Ae('<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), St = [
78
+ }, $t = /* @__PURE__ */ Ae('<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), kt = [
79
79
  $t
80
- ], kt = {
80
+ ], St = {
81
81
  __name: "DButton",
82
82
  props: {
83
83
  class: String,
@@ -102,50 +102,50 @@ const te = (e, o) => {
102
102
  },
103
103
  emits: ["click", "contextmenu"],
104
104
  setup(e, { expose: o, emit: t }) {
105
- const n = e, s = ve(), a = w(null), r = p(() => n.icon ? U.getters.getIcon(n.icon) : null), l = (x) => {
106
- t("click", x);
107
- }, i = (x) => {
108
- t("contextmenu", x);
109
- }, c = p(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = p(() => n.disabled ? "disabled" : ""), m = (x) => !!s[x], _ = p(() => m("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = p(() => {
110
- const x = n.outline ? "-outline" : "";
111
- return n.type === "primary" ? `button${x}-blue` : n.type === "success" ? `button${x}-green` : n.type === "error" ? `button${x}-red` : n.type === "warning" ? `button${x}-orange` : n.type === "wait" ? `button${x}-violet` : n.outline ? `button${x}` : "";
105
+ const n = e, s = ve(), i = D(null), l = p(() => n.icon ? Z.getters.getIcon(n.icon) : null), r = ($) => {
106
+ t("click", $);
107
+ }, a = ($) => {
108
+ t("contextmenu", $);
109
+ }, c = p(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = p(() => n.disabled ? "disabled" : ""), m = ($) => !!s[$], b = p(() => m("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = p(() => {
110
+ const $ = n.outline ? "-outline" : "";
111
+ return n.type === "primary" ? `button${$}-blue` : n.type === "success" ? `button${$}-green` : n.type === "error" ? `button${$}-red` : n.type === "warning" ? `button${$}-orange` : n.type === "wait" ? `button${$}-violet` : n.outline ? `button${$}` : "";
112
112
  });
113
113
  return o({
114
- elementSize: () => Pe(a)
115
- }), (x, W) => (d(), h(Q, null, [
116
- r.value ? k("", !0) : (d(), h("div", {
114
+ elementSize: () => Pe(i)
115
+ }), ($, V) => (d(), h(ee, null, [
116
+ l.value ? S("", !0) : (d(), h("div", {
117
117
  key: 0,
118
118
  ref_key: "el",
119
- ref: a,
120
- onClick: l,
121
- onContextmenu: i,
122
- class: B(["button", [n.class, c.value, C.value, u.value].join(" ")])
119
+ ref: i,
120
+ onClick: r,
121
+ onContextmenu: a,
122
+ class: E(["button", [n.class, c.value, C.value, u.value].join(" ")])
123
123
  }, [
124
- $(x.$slots, "default", {}, void 0, !0),
125
- n.loading ? (d(), h("svg", vt, _t)) : k("", !0)
124
+ k($.$slots, "default", {}, void 0, !0),
125
+ n.loading ? (d(), h("svg", vt, _t)) : S("", !0)
126
126
  ], 34)),
127
- r.value ? (d(), h("div", {
127
+ l.value ? (d(), h("div", {
128
128
  key: 1,
129
129
  ref_key: "el",
130
- ref: a,
131
- onClick: l,
132
- onContextmenu: i,
133
- class: B(["button button-ext", [n.class, c.value, _.value, C.value, u.value].join(" ")]),
134
- style: N(n.style)
130
+ ref: i,
131
+ onClick: r,
132
+ onContextmenu: a,
133
+ class: E(["button button-ext", [n.class, c.value, b.value, C.value, u.value].join(" ")]),
134
+ style: O(n.style)
135
135
  }, [
136
- n.icon ? (d(), b(P(ce), {
136
+ n.icon ? (d(), _(P(ce), {
137
137
  key: 0,
138
- component: r.value,
138
+ component: l.value,
139
139
  color: "inherit"
140
- }, null, 8, ["component"])) : k("", !0),
140
+ }, null, 8, ["component"])) : S("", !0),
141
141
  I(s).default ? (d(), h("div", bt, [
142
- $(x.$slots, "default", {}, void 0, !0)
143
- ])) : k("", !0),
144
- n.loading ? (d(), h("svg", xt, St)) : k("", !0)
145
- ], 38)) : k("", !0)
142
+ k($.$slots, "default", {}, void 0, !0)
143
+ ])) : S("", !0),
144
+ n.loading ? (d(), h("svg", xt, kt)) : S("", !0)
145
+ ], 38)) : S("", !0)
146
146
  ], 64));
147
147
  }
148
- }, ie = /* @__PURE__ */ te(kt, [["__scopeId", "data-v-e5cd6ccd"]]);
148
+ }, Q = /* @__PURE__ */ oe(St, [["__scopeId", "data-v-e5cd6ccd"]]);
149
149
  const Tt = {
150
150
  key: 0,
151
151
  class: "d-input"
@@ -155,11 +155,18 @@ const Tt = {
155
155
  }, Dt = ["placeholder"], Ct = {
156
156
  key: 1,
157
157
  class: "d-input",
158
- style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" }
159
- }, It = { style: { flex: "1" } }, Lt = {
158
+ style: { display: "flex", "flex-direction": "column" }
159
+ }, It = {
160
160
  key: 0,
161
161
  class: "label"
162
- }, Et = ["placeholder"], Bt = {
162
+ }, Lt = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Et = { style: { flex: "1" } }, Bt = ["placeholder"], Mt = {
163
+ key: 2,
164
+ class: "d-input",
165
+ style: { display: "flex", "flex-direction": "column" }
166
+ }, Nt = {
167
+ key: 0,
168
+ class: "label"
169
+ }, Ot = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Ht = { style: { flex: "1" } }, At = ["placeholder"], zt = {
163
170
  __name: "DInput",
164
171
  props: {
165
172
  label: String,
@@ -167,74 +174,112 @@ const Tt = {
167
174
  scale: String,
168
175
  // small, large
169
176
  modelValue: String,
177
+ pre: Object,
170
178
  post: Object,
171
179
  focus: Boolean
172
180
  },
173
181
  emits: ["update:modelValue"],
174
182
  setup(e, { expose: o, emit: t }) {
175
- const n = e, s = w(null), a = p(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), r = p({
183
+ const n = e, s = D(null), i = p(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = p({
176
184
  get: () => n.modelValue,
177
- set: (i) => {
178
- t("update:modelValue", i);
185
+ set: (a) => {
186
+ t("update:modelValue", a);
179
187
  }
180
188
  });
181
189
  ye(() => {
182
- n.focus && l();
190
+ n.focus && r();
183
191
  });
184
- const l = () => {
192
+ const r = () => {
185
193
  s.value.focus();
186
194
  };
187
195
  return o({
188
- focus: l
189
- }), (i, c) => n.post ? n.post.click ? (d(), h("div", Ct, [
190
- S("div", It, [
191
- n.label ? (d(), h("div", Lt, H(n.label), 1)) : k("", !0),
192
- ae(S("input", {
193
- ref_key: "inputRef",
194
- ref: s,
195
- class: B(["d-input-post-field", a.value]),
196
- "onUpdate:modelValue": c[1] || (c[1] = (u) => r.value = u),
197
- type: "text",
198
- placeholder: n.placeholder,
199
- style: { width: "100%" }
200
- }, null, 10, Et), [
201
- [Ee, r.value]
202
- ])
203
- ]),
204
- n.post.label ? (d(), b(ie, {
205
- key: 0,
206
- scale: n.scale,
207
- class: B(["d-input-post-button", n.post.class]),
208
- onClick: n.post.click,
209
- icon: n.post.icon
210
- }, {
211
- default: D(() => [
212
- J(H(n.post.label), 1)
213
- ]),
214
- _: 1
215
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ie, {
216
- key: 1,
217
- scale: n.scale,
218
- class: B(["d-input-post-button", n.post.class]),
219
- onClick: n.post.click,
220
- icon: n.post.icon
221
- }, null, 8, ["scale", "onClick", "icon", "class"]))
222
- ])) : k("", !0) : (d(), h("div", Tt, [
223
- n.label ? (d(), h("div", wt, H(n.label), 1)) : k("", !0),
224
- ae(S("input", {
196
+ focus: r
197
+ }), (a, c) => !n.post && !n.pre ? (d(), h("div", Tt, [
198
+ n.label ? (d(), h("div", wt, N(n.label), 1)) : S("", !0),
199
+ se(x("input", {
225
200
  ref_key: "inputRef",
226
201
  ref: s,
227
- "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
202
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
228
203
  type: "text",
229
- class: B(a.value),
204
+ class: E(i.value),
230
205
  placeholder: n.placeholder,
231
206
  style: { width: "100%" }
232
207
  }, null, 10, Dt), [
233
- [Ee, r.value]
208
+ [be, l.value]
234
209
  ])
235
- ]));
210
+ ])) : n.post && n.post.click && !n.pre ? (d(), h("div", Ct, [
211
+ n.label ? (d(), h("div", It, N(n.label), 1)) : S("", !0),
212
+ x("div", Lt, [
213
+ x("div", Et, [
214
+ se(x("input", {
215
+ ref_key: "inputRef",
216
+ ref: s,
217
+ class: E(["d-input-post-field", i.value]),
218
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
219
+ type: "text",
220
+ placeholder: n.placeholder,
221
+ style: { width: "100%" }
222
+ }, null, 10, Bt), [
223
+ [be, l.value]
224
+ ])
225
+ ]),
226
+ n.post.label ? (d(), _(Q, {
227
+ key: 0,
228
+ scale: n.scale,
229
+ class: E(["d-input-post-button", n.post.class]),
230
+ onClick: n.post.click,
231
+ icon: n.post.icon
232
+ }, {
233
+ default: w(() => [
234
+ U(N(n.post.label), 1)
235
+ ]),
236
+ _: 1
237
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(Q, {
238
+ key: 1,
239
+ scale: n.scale,
240
+ class: E(["d-input-post-button", n.post.class]),
241
+ onClick: n.post.click,
242
+ icon: n.post.icon
243
+ }, null, 8, ["scale", "onClick", "icon", "class"]))
244
+ ])
245
+ ])) : !n.post && n.pre && n.pre.click ? (d(), h("div", Mt, [
246
+ n.label ? (d(), h("div", Nt, N(n.label), 1)) : S("", !0),
247
+ x("div", Ot, [
248
+ n.pre.label ? (d(), _(Q, {
249
+ key: 0,
250
+ scale: n.scale,
251
+ class: E(["d-input-pre-button", n.pre.class]),
252
+ onClick: n.pre.click,
253
+ icon: n.pre.icon
254
+ }, {
255
+ default: w(() => [
256
+ U(N(n.pre.label), 1)
257
+ ]),
258
+ _: 1
259
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(Q, {
260
+ key: 1,
261
+ scale: n.scale,
262
+ class: E(["d-input-pre-button", n.pre.class]),
263
+ onClick: n.pre.click,
264
+ icon: n.pre.icon
265
+ }, null, 8, ["scale", "onClick", "icon", "class"])),
266
+ x("div", Ht, [
267
+ se(x("input", {
268
+ ref_key: "inputRef",
269
+ ref: s,
270
+ class: E(["d-input-pre-field", i.value]),
271
+ "onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
272
+ type: "text",
273
+ placeholder: n.placeholder,
274
+ style: { width: "100%" }
275
+ }, null, 10, At), [
276
+ [be, l.value]
277
+ ])
278
+ ])
279
+ ])
280
+ ])) : S("", !0);
236
281
  }
237
- }, $n = /* @__PURE__ */ te(Bt, [["__scopeId", "data-v-7192af2c"]]), Mt = {
282
+ }, Cn = /* @__PURE__ */ oe(zt, [["__scopeId", "data-v-0b6b3cf1"]]), Rt = {
238
283
  __name: "DBadge",
239
284
  props: {
240
285
  scale: String,
@@ -250,13 +295,13 @@ const Tt = {
250
295
  const s = o.stress ? "-stress" : "";
251
296
  return o.type === "primary" ? `badge${s}-blue` : o.type === "success" ? `badge${s}-green` : o.type === "error" ? `badge${s}-red` : o.type === "warning" ? `badge${s}-orange` : o.type === "wait" ? `badge${s}-violet` : o.stress ? `badge${s}-gray` : "";
252
297
  });
253
- return (s, a) => (d(), h("div", {
254
- class: B(["badge", [o.class, t.value, n.value].join(" ")])
298
+ return (s, i) => (d(), h("div", {
299
+ class: E(["badge", [o.class, t.value, n.value].join(" ")])
255
300
  }, [
256
- $(s.$slots, "default")
301
+ k(s.$slots, "default")
257
302
  ], 2));
258
303
  }
259
- }, K = "0px", Nt = {
304
+ }, J = "0px", Vt = {
260
305
  __name: "DCollapse",
261
306
  props: {
262
307
  duration: {
@@ -281,41 +326,41 @@ const Tt = {
281
326
  }
282
327
  },
283
328
  setup(e) {
284
- const o = e, t = (i) => ({
285
- height: i.style.height,
286
- width: i.style.width,
287
- position: i.style.position,
288
- visibility: i.style.visibility,
289
- overflow: i.style.overflow,
290
- paddingTop: i.style.paddingTop,
291
- paddingBottom: i.style.paddingBottom,
292
- borderTopWidth: i.style.borderTopWidth,
293
- borderBottomWidth: i.style.borderBottomWidth,
294
- marginTop: i.style.marginTop,
295
- marginBottom: i.style.marginBottom
296
- }), n = (i, c) => {
297
- const { width: u } = getComputedStyle(i);
298
- i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
299
- let { height: m } = getComputedStyle(i);
300
- return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = K, i.style.overflow = "hidden", c.height && c.height !== K ? c.height : m;
301
- }, s = (i, c, u, m, _) => {
302
- const C = i.animate(m, _);
303
- i.style.height = c.height, C.onfinish = () => {
304
- i.style.overflow = c.overflow, u();
329
+ const o = e, t = (a) => ({
330
+ height: a.style.height,
331
+ width: a.style.width,
332
+ position: a.style.position,
333
+ visibility: a.style.visibility,
334
+ overflow: a.style.overflow,
335
+ paddingTop: a.style.paddingTop,
336
+ paddingBottom: a.style.paddingBottom,
337
+ borderTopWidth: a.style.borderTopWidth,
338
+ borderBottomWidth: a.style.borderBottomWidth,
339
+ marginTop: a.style.marginTop,
340
+ marginBottom: a.style.marginBottom
341
+ }), n = (a, c) => {
342
+ const { width: u } = getComputedStyle(a);
343
+ a.style.width = u, a.style.position = "absolute", a.style.visibility = "hidden", a.style.height = "";
344
+ let { height: m } = getComputedStyle(a);
345
+ return a.style.width = c.width, a.style.position = c.position, a.style.visibility = c.visibility, a.style.height = J, a.style.overflow = "hidden", c.height && c.height !== J ? c.height : m;
346
+ }, s = (a, c, u, m, b) => {
347
+ const C = a.animate(m, b);
348
+ a.style.height = c.height, C.onfinish = () => {
349
+ a.style.overflow = c.overflow, u();
305
350
  };
306
- }, a = (i, c) => [
351
+ }, i = (a, c) => [
307
352
  {
308
- height: K,
353
+ height: J,
309
354
  opacity: o.opacityClosed,
310
- paddingTop: K,
311
- paddingBottom: K,
312
- borderTopWidth: K,
313
- borderBottomWidth: K,
314
- marginTop: K,
315
- marginBottom: K
355
+ paddingTop: J,
356
+ paddingBottom: J,
357
+ borderTopWidth: J,
358
+ borderBottomWidth: J,
359
+ marginTop: J,
360
+ marginBottom: J
316
361
  },
317
362
  {
318
- height: i,
363
+ height: a,
319
364
  opacity: o.opacityOpened,
320
365
  paddingTop: c.paddingTop,
321
366
  paddingBottom: c.paddingBottom,
@@ -324,29 +369,29 @@ const Tt = {
324
369
  marginTop: c.marginTop,
325
370
  marginBottom: c.marginBottom
326
371
  }
327
- ], r = (i, c) => {
328
- const u = i, m = t(u), _ = n(u, m), C = a(_, m), M = { duration: o.duration, easing: o.easingEnter };
372
+ ], l = (a, c) => {
373
+ const u = a, m = t(u), b = n(u, m), C = i(b, m), M = { duration: o.duration, easing: o.easingEnter };
329
374
  s(u, m, c, C, M);
330
- }, l = (i, c) => {
331
- const u = i, m = t(u), { height: _ } = getComputedStyle(u);
332
- u.style.height = _, u.style.overflow = "hidden";
333
- const C = a(_, m).reverse(), M = { duration: o.duration, easing: o.easingLeave };
375
+ }, r = (a, c) => {
376
+ const u = a, m = t(u), { height: b } = getComputedStyle(u);
377
+ u.style.height = b, u.style.overflow = "hidden";
378
+ const C = i(b, m).reverse(), M = { duration: o.duration, easing: o.easingLeave };
334
379
  s(u, m, c, C, M);
335
380
  };
336
- return (i, c) => (d(), b(Se, {
381
+ return (a, c) => (d(), _(Se, {
337
382
  css: !1,
338
- onEnter: r,
339
- onLeave: l
383
+ onEnter: l,
384
+ onLeave: r
340
385
  }, {
341
- default: D(() => [
342
- $(i.$slots, "default")
386
+ default: w(() => [
387
+ k(a.$slots, "default")
343
388
  ]),
344
389
  _: 3
345
390
  }));
346
391
  }
347
392
  }, ge = {
348
393
  data: void 0
349
- }, we = (e) => e.reduce((o, t) => (o[t] = t) && o, {}), O = we([
394
+ }, De = (e) => e.reduce((o, t) => (o[t] = t) && o, {}), H = De([
350
395
  "drag",
351
396
  "dragend",
352
397
  "dragenter",
@@ -354,7 +399,7 @@ const Tt = {
354
399
  "dragstart",
355
400
  "dragover",
356
401
  "drop"
357
- ]), Ot = we(["copy", "move", "link", "none"]), Ht = we([
402
+ ]), Wt = De(["copy", "move", "link", "none"]), Ft = De([
358
403
  "none",
359
404
  "copy",
360
405
  "copyLink",
@@ -364,13 +409,13 @@ const Tt = {
364
409
  "move",
365
410
  "all",
366
411
  "uninitialized"
367
- ]), At = {
412
+ ]), Pt = {
368
413
  __name: "DDrag",
369
414
  props: {
370
415
  draggable: { type: Boolean, default: !0 },
371
416
  transferData: {},
372
- dropEffect: { validator: (e) => e in Ot },
373
- effectAllowed: { validator: (e) => e in Ht },
417
+ dropEffect: { validator: (e) => e in Wt },
418
+ effectAllowed: { validator: (e) => e in Ft },
374
419
  image: String,
375
420
  imageXOffset: { type: Number, default: 0 },
376
421
  imageYOffset: { type: Number, default: 0 },
@@ -378,32 +423,32 @@ const Tt = {
378
423
  tag: { type: String, default: "div" }
379
424
  },
380
425
  setup(e) {
381
- const o = e, t = ve(), n = w(!1), s = p(() => n && o.transferData), a = p(() => ({ position: "fixed", top: "-1000px" })), r = (l, i) => {
382
- const c = i.dataTransfer;
383
- if ([O.dragenter, O.dragover].includes(l) && o.dropEffect && (c.dropEffect = o.dropEffect), l === O.dragstart) {
426
+ const o = e, t = ve(), n = D(!1), s = p(() => n && o.transferData), i = p(() => ({ position: "fixed", top: "-1000px" })), l = (r, a) => {
427
+ const c = a.dataTransfer;
428
+ if ([H.dragenter, H.dragover].includes(r) && o.dropEffect && (c.dropEffect = o.dropEffect), r === H.dragstart) {
384
429
  if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
385
430
  let u;
386
431
  o.image ? (u = new Image(), u.src = o.image) : t.image && (u = t.image[0].elm), c.setDragImage && c.setDragImage(u, o.imageXOffset, o.imageYOffset);
387
432
  }
388
- o.transferData !== void 0 && (ge.data = o.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
433
+ o.transferData !== void 0 && (ge.data = o.transferData, a.dataTransfer.setData("text", "")), n.value = !0;
389
434
  }
390
435
  };
391
- return (l, i) => (d(), b(P(e.tag), {
436
+ return (r, a) => (d(), _(P(e.tag), {
392
437
  draggable: o.draggable,
393
- onDrag: i[0] || (i[0] = (c) => r(I(O).drag, c)),
394
- onDragstart: i[1] || (i[1] = q((c) => r(I(O).dragstart, c), ["stop"])),
395
- onDragenter: i[2] || (i[2] = (c) => r(I(O).dragenter, c)),
396
- onDragleave: i[3] || (i[3] = (c) => r(I(O).dragleave, c)),
397
- onDragend: i[4] || (i[4] = (c) => r(I(O).dragend, c))
438
+ onDrag: a[0] || (a[0] = (c) => l(I(H).drag, c)),
439
+ onDragstart: a[1] || (a[1] = q((c) => l(I(H).dragstart, c), ["stop"])),
440
+ onDragenter: a[2] || (a[2] = (c) => l(I(H).dragenter, c)),
441
+ onDragleave: a[3] || (a[3] = (c) => l(I(H).dragleave, c)),
442
+ onDragend: a[4] || (a[4] = (c) => l(I(H).dragend, c))
398
443
  }, {
399
- default: D(() => [
400
- $(l.$slots, "default", { transferData: s.value }),
444
+ default: w(() => [
445
+ k(r.$slots, "default", { transferData: s.value }),
401
446
  e.hideImageHtml ? (d(), h("div", {
402
447
  key: 0,
403
- style: N(a.value)
448
+ style: O(i.value)
404
449
  }, [
405
- $(l.$slots, "image", { transferData: s.value })
406
- ], 4)) : $(l.$slots, "image", {
450
+ k(r.$slots, "image", { transferData: s.value })
451
+ ], 4)) : k(r.$slots, "image", {
407
452
  key: 1,
408
453
  transferData: s.value
409
454
  })
@@ -412,18 +457,18 @@ const Tt = {
412
457
  }, 40, ["draggable"]));
413
458
  }
414
459
  };
415
- const zt = (e) => (at("data-v-d8c92d5e"), e = e(), it(), e), Rt = {
460
+ const jt = (e) => (it("data-v-d8c92d5e"), e = e(), at(), e), Xt = {
416
461
  key: 0,
417
462
  style: { display: "none" }
418
- }, Wt = { key: 1 }, Vt = /* @__PURE__ */ zt(() => /* @__PURE__ */ S("div", { class: "tree-divider" }, null, -1)), Ft = [
419
- Vt
420
- ], Pt = { key: 2 }, jt = { class: "tree-divider-header" }, Xt = { class: "item-title" }, Yt = {
463
+ }, Yt = { key: 1 }, qt = /* @__PURE__ */ jt(() => /* @__PURE__ */ x("div", { class: "tree-divider" }, null, -1)), Gt = [
464
+ qt
465
+ ], Ut = { key: 2 }, Zt = { class: "tree-divider-header" }, Kt = { class: "item-title" }, Jt = {
421
466
  key: 0,
422
467
  class: "tree-divider"
423
- }, qt = { key: 1 }, Gt = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, Ut = {
468
+ }, Qt = { key: 1 }, eo = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, to = {
424
469
  key: 0,
425
470
  class: "sub-menu"
426
- }, Zt = {
471
+ }, oo = {
427
472
  __name: "DTreeItem",
428
473
  props: {
429
474
  model: Object,
@@ -433,37 +478,37 @@ const zt = (e) => (at("data-v-d8c92d5e"), e = e(), it(), e), Rt = {
433
478
  },
434
479
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
435
480
  setup(e, { emit: o }) {
436
- const t = e, n = w(null), s = w(!1), a = w(!1), r = w(!1), l = p(() => t.model.children && t.model.children.length), i = p(() => (g.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (L) => {
481
+ const t = e, n = D(null), s = D(!1), i = D(!1), l = D(!1), r = p(() => t.model.children && t.model.children.length), a = p(() => (g.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (L) => {
437
482
  o("nodeclick", { event: L, model: t.model });
438
483
  }, u = (L) => {
439
484
  o("nodeclick", L);
440
485
  }, m = (L) => {
441
486
  o("nodedrop", L);
442
- }, _ = (L) => {
487
+ }, b = (L) => {
443
488
  o("nodecontext", L);
444
- }, C = p(() => (g.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (r.value ? "node-bottom " : "")), M = p(() => t.search ? !1 : t.model.draggable === !0), x = (L) => {
489
+ }, C = p(() => (g.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (i.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), M = p(() => t.search ? !1 : t.model.draggable === !0), $ = (L) => {
445
490
  o("nodedrop", { e: L, model: t.model });
446
491
  let y = ge.data;
447
492
  if (y === void 0 || y.model === void 0)
448
493
  return s.value = !1, !1;
449
494
  if (y.model.id === t.model.id || g.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || g.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
450
- return s.value = !1, a.value = !1, r.value = !1, !1;
495
+ return s.value = !1, i.value = !1, l.value = !1, !1;
451
496
  if (!g.state.trees[t.treeId].transfer && y.id !== t.treeId)
452
497
  return !1;
453
- let E = "";
454
- a.value ? E = "before" : r.value ? E = "after" : E = "inside", g.actions.moveTreeNode(y.id, t.treeId, t.items, y.model.id, t.model.id, E), s.value = !1, a.value = !1, r.value = !1;
455
- }, W = (L) => {
498
+ let B = "";
499
+ i.value ? B = "before" : l.value ? B = "after" : B = "inside", g.actions.moveTreeNode(y.id, t.treeId, t.items, y.model.id, t.model.id, B), s.value = !1, i.value = !1, l.value = !1;
500
+ }, V = (L) => {
456
501
  o("nodedragover", { e: L, model: t.model });
457
502
  let y = ge.data;
458
503
  if (y === void 0 || y.model === void 0)
459
504
  return s.value = !0, !1;
460
505
  if (y.model.id === t.model.id || g.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || g.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
461
506
  return !1;
462
- const E = L.y, V = n.value.getBoundingClientRect().top, F = n.value.getBoundingClientRect().height, v = F / 3;
463
- E > V && E <= V + v ? (s.value = !1, a.value = !0, r.value = !1) : E < V + F && E >= V + F - v ? (s.value = !1, a.value = !1, r.value = !0) : (s.value = !0, a.value = !1, r.value = !1);
507
+ const B = L.y, W = n.value.getBoundingClientRect().top, F = n.value.getBoundingClientRect().height, v = F / 3;
508
+ B > W && B <= W + v ? (s.value = !1, i.value = !0, l.value = !1) : B < W + F && B >= W + F - v ? (s.value = !1, i.value = !1, l.value = !0) : (s.value = !0, i.value = !1, l.value = !1);
464
509
  }, X = () => {
465
- s.value = !1, a.value = !1, r.value = !1;
466
- }, A = p(() => t.model.title.startsWith("-")), Z = p(() => {
510
+ s.value = !1, i.value = !1, l.value = !1;
511
+ }, A = p(() => t.model.title.startsWith("-")), K = p(() => {
467
512
  if (t.model.title.startsWith("-")) {
468
513
  let [L, ...y] = t.model.title.split(" ");
469
514
  return y = y.join(" "), y;
@@ -471,82 +516,82 @@ const zt = (e) => (at("data-v-d8c92d5e"), e = e(), it(), e), Rt = {
471
516
  return null;
472
517
  });
473
518
  return (L, y) => {
474
- const E = st("d-tree-item", !0), V = ke("touch");
475
- return I(g).actions.beforeItem(t.treeId, e.model) ? A.value && !Z.value ? (d(), h("li", Wt, Ft)) : A.value && Z.value ? (d(), h("li", Pt, [
476
- S("div", jt, H(I(g).actions.renderTitle(t.treeId, Z.value)), 1)
477
- ])) : (d(), b(At, {
519
+ const B = st("d-tree-item", !0), W = Te("touch");
520
+ return I(g).actions.beforeItem(t.treeId, e.model) ? A.value && !K.value ? (d(), h("li", Yt, Gt)) : A.value && K.value ? (d(), h("li", Ut, [
521
+ x("div", Zt, N(I(g).actions.renderTitle(t.treeId, K.value)), 1)
522
+ ])) : (d(), _(Pt, {
478
523
  key: 3,
479
524
  tag: "li",
480
525
  class: "tree-item",
481
526
  "transfer-data": { id: t.treeId, model: t.model },
482
527
  draggable: M.value,
483
- onDrop: q(x, ["stop"]),
528
+ onDrop: q($, ["stop"]),
484
529
  onDragenter: y[1] || (y[1] = q(() => {
485
530
  }, ["prevent"])),
486
- onDragover: q(W, ["prevent", "stop"]),
531
+ onDragover: q(V, ["prevent", "stop"]),
487
532
  onDragleave: q(X, ["prevent"])
488
533
  }, {
489
- default: D(() => {
534
+ default: w(() => {
490
535
  var F, v;
491
536
  return [
492
- ae((d(), h("div", {
537
+ se((d(), h("div", {
493
538
  ref_key: "node",
494
539
  ref: n,
495
- class: B(C.value),
540
+ class: E(C.value),
496
541
  onContextmenu: y[0] || (y[0] = q((z) => o("nodecontext", { e: z, model: t.model }), ["prevent"]))
497
542
  }, [
498
- S("div", null, [
499
- t.model.icons && t.model.icons.pre && l.value && !t.search && !A.value ? (d(), b(P(ce), {
543
+ x("div", null, [
544
+ t.model.icons && t.model.icons.pre && r.value && !t.search && !A.value ? (d(), _(P(ce), {
500
545
  key: 0,
501
- component: I(U).getters.getIcon(t.model.icons.pre.component),
546
+ component: I(Z).getters.getIcon(t.model.icons.pre.component),
502
547
  size: 18,
503
548
  color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
504
- class: B(i.value ? "tree-open-pre" : "")
505
- }, null, 8, ["component", "color", "class"])) : k("", !0),
506
- t.model.icons && t.model.icons.pre && !l.value && !t.search && !A.value ? (d(), b(P(ce), {
549
+ class: E(a.value ? "tree-open-pre" : "")
550
+ }, null, 8, ["component", "color", "class"])) : S("", !0),
551
+ t.model.icons && t.model.icons.pre && !r.value && !t.search && !A.value ? (d(), _(P(ce), {
507
552
  key: 1,
508
- component: I(U).getters.getIcon(t.model.icons.pre.component),
553
+ component: I(Z).getters.getIcon(t.model.icons.pre.component),
509
554
  size: 18,
510
555
  color: "rgba(0,0,0,0)",
511
- class: B(i.value ? "tree-open-pre" : "")
512
- }, null, 8, ["component", "class"])) : k("", !0),
513
- t.model.icons && t.model.icons.icon && !A.value ? (d(), b(P(ce), {
556
+ class: E(a.value ? "tree-open-pre" : "")
557
+ }, null, 8, ["component", "class"])) : S("", !0),
558
+ t.model.icons && t.model.icons.icon && !A.value ? (d(), _(P(ce), {
514
559
  key: 2,
515
- component: I(U).getters.getIcon(t.model.icons.icon.component),
560
+ component: I(Z).getters.getIcon(t.model.icons.icon.component),
516
561
  color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
517
562
  size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
518
563
  className: t.model.icons.icon.class ? t.model.icons.icon.class : null
519
- }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
520
- S("div", Xt, [
521
- A.value ? (d(), h("div", Yt)) : k("", !0),
522
- A.value ? k("", !0) : (d(), h("div", qt, H(I(g).actions.renderTitle(t.treeId, t.model.title)), 1))
564
+ }, null, 8, ["component", "color", "size", "className"])) : S("", !0),
565
+ x("div", Kt, [
566
+ A.value ? (d(), h("div", Jt)) : S("", !0),
567
+ A.value ? S("", !0) : (d(), h("div", Qt, N(I(g).actions.renderTitle(t.treeId, t.model.title)), 1))
523
568
  ])
524
569
  ]),
525
- S("div", Gt, [
526
- ((F = t.model.badge) == null ? void 0 : F.value) !== void 0 && !A.value ? (d(), b(P(Mt), {
570
+ x("div", eo, [
571
+ ((F = t.model.badge) == null ? void 0 : F.value) !== void 0 && !A.value ? (d(), _(P(Rt), {
527
572
  key: 0,
528
- class: B([(v = t.model.badge) == null ? void 0 : v.class, "badge-sm"])
573
+ class: E([(v = t.model.badge) == null ? void 0 : v.class, "badge-sm"])
529
574
  }, {
530
- default: D(() => [
531
- J(H(t.model.badge.value), 1)
575
+ default: w(() => [
576
+ U(N(t.model.badge.value), 1)
532
577
  ]),
533
578
  _: 1
534
- }, 8, ["class"])) : k("", !0),
535
- t.model.icons && t.model.icons.post && l.value && !t.search && !A.value ? (d(), b(P(ce), {
579
+ }, 8, ["class"])) : S("", !0),
580
+ t.model.icons && t.model.icons.post && r.value && !t.search && !A.value ? (d(), _(P(ce), {
536
581
  key: 1,
537
- component: I(U).getters.getIcon(t.model.icons.post.component),
582
+ component: I(Z).getters.getIcon(t.model.icons.post.component),
538
583
  size: 20,
539
584
  color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
540
- class: B(i.value ? "tree-open-post" : "")
541
- }, null, 8, ["component", "color", "class"])) : k("", !0)
585
+ class: E(a.value ? "tree-open-post" : "")
586
+ }, null, 8, ["component", "color", "class"])) : S("", !0)
542
587
  ])
543
588
  ], 34)), [
544
- [V, c]
589
+ [W, c]
545
590
  ]),
546
- ee(Nt, null, {
547
- default: D(() => [
548
- l.value && i.value && !t.search ? (d(), h("ul", Ut, [
549
- (d(!0), h(Q, null, ue(e.model.children, (z) => (d(), b(E, {
591
+ te(Vt, null, {
592
+ default: w(() => [
593
+ r.value && a.value && !t.search ? (d(), h("ul", to, [
594
+ (d(!0), h(ee, null, ue(e.model.children, (z) => (d(), _(B, {
550
595
  class: "tree-item",
551
596
  key: z.id,
552
597
  model: z,
@@ -555,20 +600,20 @@ const zt = (e) => (at("data-v-d8c92d5e"), e = e(), it(), e), Rt = {
555
600
  search: t.search,
556
601
  onNodeclick: u,
557
602
  onNodedrop: m,
558
- onNodecontext: _
603
+ onNodecontext: b
559
604
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
560
- ])) : k("", !0)
605
+ ])) : S("", !0)
561
606
  ]),
562
607
  _: 1
563
608
  })
564
609
  ];
565
610
  }),
566
611
  _: 1
567
- }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), h("li", Rt));
612
+ }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), h("li", Xt));
568
613
  };
569
614
  }
570
- }, Kt = /* @__PURE__ */ te(Zt, [["__scopeId", "data-v-d8c92d5e"]]);
571
- function Jt(e) {
615
+ }, no = /* @__PURE__ */ oe(oo, [["__scopeId", "data-v-d8c92d5e"]]);
616
+ function so(e) {
572
617
  return e = e || /* @__PURE__ */ new Map(), {
573
618
  /**
574
619
  * A Map of event names to registered handler functions.
@@ -615,8 +660,8 @@ function Jt(e) {
615
660
  }
616
661
  };
617
662
  }
618
- const j = Jt(), g = {
619
- state: Te({
663
+ const j = so(), g = {
664
+ state: we({
620
665
  trees: {}
621
666
  }),
622
667
  getters: {
@@ -627,8 +672,8 @@ const j = Jt(), g = {
627
672
  return g.state.trees[e].selected;
628
673
  },
629
674
  // data - ноды, dataId - ID ноды родителя data
630
- getParentId(e, o, t, n = "id", s = "children", a = {}) {
631
- return t && e && (e.find((r) => r[n] === t ? (a.found = o, r) : g.getters.getParentId(r[s], r.id, t, n, s, a)), a.found) ? a.found : !1;
675
+ getParentId(e, o, t, n = "id", s = "children", i = {}) {
676
+ return t && e && (e.find((l) => l[n] === t ? (i.found = o, l) : g.getters.getParentId(l[s], l.id, t, n, s, i)), i.found) ? i.found : !1;
632
677
  }
633
678
  },
634
679
  mutations: {
@@ -642,8 +687,8 @@ const j = Jt(), g = {
642
687
  }
643
688
  },
644
689
  actions: {
645
- initTreeStore(e, o, t, n, s, a, r) {
646
- g.state.trees[e] = [], g.state.trees[e].selected = [], g.state.trees[e].noSelect = o, g.state.trees[e].multiSelect = t, g.state.trees[e].expanded = n, g.state.trees[e].transfer = s, g.state.trees[e].renderTitle = a, g.state.trees[e].beforeItem = r;
690
+ initTreeStore(e, o, t, n, s, i, l) {
691
+ g.state.trees[e] = [], g.state.trees[e].selected = [], g.state.trees[e].noSelect = o, g.state.trees[e].multiSelect = t, g.state.trees[e].expanded = n, g.state.trees[e].transfer = s, g.state.trees[e].renderTitle = i, g.state.trees[e].beforeItem = l;
647
692
  },
648
693
  renderTitle(e, o) {
649
694
  return g.state.trees[e].renderTitle ? g.state.trees[e].renderTitle(o) : o;
@@ -663,8 +708,8 @@ const j = Jt(), g = {
663
708
  isChildOfParent(e, o, t, n) {
664
709
  const s = g.actions.deepSearch(o, t);
665
710
  if (s && s.children) {
666
- for (let a = 0; a < s.children.length; a++)
667
- if (s.children[a].id === n)
711
+ for (let i = 0; i < s.children.length; i++)
712
+ if (s.children[i].id === n)
668
713
  return !0;
669
714
  }
670
715
  return !1;
@@ -675,33 +720,33 @@ const j = Jt(), g = {
675
720
  return !!(s && s.children && g.actions.deepSearch(s.children, n));
676
721
  },
677
722
  deepSearch(e, o, t = "id", n = "children", s = {}) {
678
- return o && e && (e.find((a) => a[t] === o ? (s.found = a, a) : g.actions.deepSearch(a[n], o, t, n, s)), s.found) ? s.found : !1;
723
+ return o && e && (e.find((i) => i[t] === o ? (s.found = i, i) : g.actions.deepSearch(i[n], o, t, n, s)), s.found) ? s.found : !1;
679
724
  },
680
725
  deepSearchByTitle(e, o, t = "title", n = "children", s = []) {
681
- if (o && e && (e.find((a) => {
682
- const r = new RegExp(o, "gi");
683
- a[t].toString().toLowerCase().match(r) !== null && s.push(a), g.actions.deepSearchByTitle(a[n], o, t, n, s);
726
+ if (o && e && (e.find((i) => {
727
+ const l = new RegExp(o, "gi");
728
+ i[t].toString().toLowerCase().match(l) !== null && s.push(i), g.actions.deepSearchByTitle(i[n], o, t, n, s);
684
729
  }), s)) {
685
- for (let a = 0; a < s.length; a++)
730
+ for (let i = 0; i < s.length; i++)
686
731
  ;
687
732
  return s;
688
733
  }
689
734
  return s;
690
735
  },
691
- moveTreeNode(e, o, t, n, s, a) {
692
- const r = g.actions.deleteTreeNode(t, n);
693
- g.actions.insertTreeNode(t, s, r, a), j.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: r.id, target: s, position: a });
736
+ moveTreeNode(e, o, t, n, s, i) {
737
+ const l = g.actions.deleteTreeNode(t, n);
738
+ g.actions.insertTreeNode(t, s, l, i), j.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: l.id, target: s, position: i });
694
739
  },
695
740
  insertTreeNode(e, o, t, n) {
696
741
  if (e)
697
742
  for (let s = 0; s < e.length; s++) {
698
743
  if (e[s].id === o) {
699
- let r = s;
700
- return n === "after" ? (r++, e.splice(r, 0, t)) : n === "before" ? e.splice(r, 0, t) : n === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, t)), e[s];
744
+ let l = s;
745
+ return n === "after" ? (l++, e.splice(l, 0, t)) : n === "before" ? e.splice(l, 0, t) : n === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, t)), e[s];
701
746
  }
702
- const a = this.insertTreeNode(e[s].children, o, t, n);
703
- if (a)
704
- return a;
747
+ const i = this.insertTreeNode(e[s].children, o, t, n);
748
+ if (i)
749
+ return i;
705
750
  }
706
751
  },
707
752
  deleteTreeNode(e, o) {
@@ -717,29 +762,29 @@ const j = Jt(), g = {
717
762
  }
718
763
  }
719
764
  }
720
- }, Qt = {
765
+ }, io = {
721
766
  __name: "DDrop",
722
767
  props: {
723
768
  tag: { type: String, default: "div" }
724
769
  },
725
- emits: Object.keys(O),
770
+ emits: Object.keys(H),
726
771
  setup(e, { expose: o, emit: t }) {
727
- let n = Te({});
728
- const s = w("false"), a = w(null), r = /* @__PURE__ */ new Set(), l = p(() => s.value && n), i = (u, m) => {
729
- n = ge.data, t(u, m, n), u === O.dragenter && (r.size || m.target === a.value) && r.add(m.target), u === O.dragleave && r.delete(m.target), u === O.drop && r.clear(), s.value = !!r.size;
772
+ let n = we({});
773
+ const s = D("false"), i = D(null), l = /* @__PURE__ */ new Set(), r = p(() => s.value && n), a = (u, m) => {
774
+ n = ge.data, t(u, m, n), u === H.dragenter && (l.size || m.target === i.value) && l.add(m.target), u === H.dragleave && l.delete(m.target), u === H.drop && l.clear(), s.value = !!l.size;
730
775
  };
731
776
  return o({
732
- elementSize: () => Pe(a)
733
- }), (u, m) => (d(), b(P(e.tag), {
777
+ elementSize: () => Pe(i)
778
+ }), (u, m) => (d(), _(P(e.tag), {
734
779
  ref_key: "el",
735
- ref: a,
736
- onDragenter: m[0] || (m[0] = (_) => i(I(O).dragenter, _)),
737
- onDragleave: m[1] || (m[1] = (_) => i(I(O).dragleave, _)),
738
- onDragover: m[2] || (m[2] = q((_) => i(I(O).dragover, _), ["prevent"])),
739
- onDrop: m[3] || (m[3] = q((_) => i(I(O).drop, _), ["prevent"]))
780
+ ref: i,
781
+ onDragenter: m[0] || (m[0] = (b) => a(I(H).dragenter, b)),
782
+ onDragleave: m[1] || (m[1] = (b) => a(I(H).dragleave, b)),
783
+ onDragover: m[2] || (m[2] = q((b) => a(I(H).dragover, b), ["prevent"])),
784
+ onDrop: m[3] || (m[3] = q((b) => a(I(H).drop, b), ["prevent"]))
740
785
  }, {
741
- default: D(() => [
742
- $(u.$slots, "default", { transferData: l.value })
786
+ default: w(() => [
787
+ k(u.$slots, "default", { transferData: r.value })
743
788
  ]),
744
789
  _: 3
745
790
  }, 544));
@@ -760,46 +805,46 @@ const j = Jt(), g = {
760
805
  emits: ["select"],
761
806
  setup(e, { expose: o, emit: t }) {
762
807
  const n = e;
763
- let s = w(null), a = w(!1);
764
- const r = () => {
765
- j.emit("menu-show-request"), a.value = !0;
766
- }, l = () => {
767
- var _;
768
- (_ = s.value) == null || _.collapseAll(), a.value = !1;
769
- }, i = () => a.value;
808
+ let s = D(null), i = D(!1);
809
+ const l = () => {
810
+ j.emit("menu-show-request"), i.value = !0;
811
+ }, r = () => {
812
+ var b;
813
+ (b = s.value) == null || b.collapseAll(), i.value = !1;
814
+ }, a = () => i.value;
770
815
  j.on("menu-show-request", () => {
771
- l();
816
+ r();
772
817
  }), o({
773
- show: r,
774
- hide: l,
818
+ show: l,
819
+ hide: r,
775
820
  elementSize: () => s.value.elementSize(),
776
- isShowed: i,
821
+ isShowed: a,
777
822
  itemsCount: () => s.value.itemsCount()
778
823
  });
779
- const m = (_) => {
780
- t("select", _), _.model.children || l();
824
+ const m = (b) => {
825
+ t("select", b), b.model.children || r();
781
826
  };
782
- return (_, C) => {
783
- const M = ke("click-outside");
784
- return d(), b(ze, { to: "body" }, [
785
- I(a) ? ae((d(), b(Xe, {
827
+ return (b, C) => {
828
+ const M = Te("click-outside");
829
+ return d(), _(ze, { to: "body" }, [
830
+ I(i) ? se((d(), _(Xe, {
786
831
  key: 0,
787
832
  ref_key: "treeRef",
788
833
  ref: s,
789
834
  items: n.items,
790
835
  "no-select": n.noSelect,
791
- class: B(n.class),
792
- style: N(n.style),
836
+ class: E(n.class),
837
+ style: O(n.style),
793
838
  onSelect: m,
794
839
  "render-title": n.renderItemTitle,
795
840
  "before-item": n.beforeItem
796
841
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
797
- [M, () => l()]
798
- ]) : k("", !0)
842
+ [M, () => r()]
843
+ ]) : S("", !0)
799
844
  ]);
800
845
  };
801
846
  }
802
- }, eo = {
847
+ }, ao = {
803
848
  __name: "DContextMenu",
804
849
  props: {
805
850
  items: Array,
@@ -808,25 +853,25 @@ const j = Jt(), g = {
808
853
  },
809
854
  emits: ["select"],
810
855
  setup(e, { expose: o, emit: t }) {
811
- const n = e, s = w(null), a = w(0), r = w(0), l = p(() => ({
812
- left: a.value + "px",
813
- top: r.value + "px"
814
- })), i = (u) => {
856
+ const n = e, s = D(null), i = D(0), l = D(0), r = p(() => ({
857
+ left: i.value + "px",
858
+ top: l.value + "px"
859
+ })), a = (u) => {
815
860
  s.value.show(), Re(() => {
816
- const m = s.value.elementSize(), _ = window.innerWidth, C = window.innerHeight;
817
- a.value = _ - u.pageX < m.width ? u.pageX - m.width : u.pageX, r.value = C - u.pageY < m.height ? u.pageY - m.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
861
+ const m = s.value.elementSize(), b = window.innerWidth, C = window.innerHeight;
862
+ i.value = b - u.pageX < m.width ? u.pageX - m.width : u.pageX, l.value = C - u.pageY < m.height ? u.pageY - m.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
818
863
  });
819
864
  }, c = (u) => {
820
865
  t("select", u);
821
866
  };
822
867
  return o({
823
- show: i
824
- }), (u, m) => (d(), b(je, {
868
+ show: a
869
+ }), (u, m) => (d(), _(je, {
825
870
  ref_key: "dMenuRef",
826
871
  ref: s,
827
872
  onSelect: c,
828
873
  items: n.items,
829
- style: N(l.value),
874
+ style: O(r.value),
830
875
  class: "context-menu",
831
876
  "no-select": !0,
832
877
  "render-item-title": n.renderItemTitle,
@@ -868,81 +913,81 @@ const j = Jt(), g = {
868
913
  },
869
914
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
870
915
  setup(e, { expose: o, emit: t }) {
871
- const n = e, s = w(null), a = w(!1), r = w(null), l = We().uid;
872
- g.actions.initTreeStore(l, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
873
- const i = (v, z) => {
916
+ const n = e, s = D(null), i = D(!1), l = D(null), r = Ve().uid;
917
+ g.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
918
+ const a = (v, z) => {
874
919
  console.log(v, z);
875
920
  };
876
- j.on(`expand-${l}`, (v) => {
921
+ j.on(`expand-${r}`, (v) => {
877
922
  t("expand", v);
878
- }), j.on(`collapse-${l}`, (v) => {
923
+ }), j.on(`collapse-${r}`, (v) => {
879
924
  t("collapse", v);
880
- }), j.on(`move-${l}`, (v) => {
925
+ }), j.on(`move-${r}`, (v) => {
881
926
  t("move", v);
882
927
  });
883
928
  const c = p(() => n.search ? g.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (v = null) => {
884
- g.mutations.setItemSelect(l, v.model), g.actions.toggleItem(l, v.model), t("select", v);
929
+ g.mutations.setItemSelect(r, v.model), g.actions.toggleItem(r, v.model), t("select", v);
885
930
  }, m = (v = null) => {
886
931
  t("over", v);
887
- }, _ = (v = null) => {
932
+ }, b = (v = null) => {
888
933
  t("drop", v);
889
934
  }, C = () => s.value.elementSize(), M = () => {
890
935
  for (let v = 0; v < n.items.length; v++)
891
936
  n.items[v].expanded = !0;
892
- }, x = () => {
937
+ }, $ = () => {
893
938
  for (let v = 0; v < n.items.length; v++)
894
939
  n.items[v].expanded = !1;
895
- }, W = () => l, X = (v) => g.actions.deepSearch(n.items, v), A = (v) => {
896
- X(v) && g.mutations.setItemSelect(l, X(v));
897
- }, Z = (v) => {
898
- n.contextClick({ e: v.e, model: v.model, target: r.value });
899
- }, L = (v) => n.contextBeforeClick({ model: v, target: r.value }), y = p(() => n.context), E = (v) => (y.value && (r.value = v.model, a.value.show(v.e)), !1), V = () => F(c.value), F = (v) => {
940
+ }, V = () => r, X = (v) => g.actions.deepSearch(n.items, v), A = (v) => {
941
+ X(v) && g.mutations.setItemSelect(r, X(v));
942
+ }, K = (v) => {
943
+ n.contextClick({ e: v.e, model: v.model, target: l.value });
944
+ }, L = (v) => n.contextBeforeClick({ model: v, target: l.value }), y = p(() => n.context), B = (v) => (y.value && (l.value = v.model, i.value.show(v.e)), !1), W = () => F(c.value), F = (v) => {
900
945
  let z = 0;
901
946
  for (let f = 0; f < v.length; f++)
902
- z += g.actions.beforeItem(l, v[f]) ? 1 : 0, v[f].children && v[f].children.length > 0 && (z += F(v[f].children));
947
+ z += g.actions.beforeItem(r, v[f]) ? 1 : 0, v[f].children && v[f].children.length > 0 && (z += F(v[f].children));
903
948
  return z;
904
949
  };
905
950
  return o({
906
951
  elementSize: C,
907
952
  expandAll: M,
908
- collapseAll: x,
909
- getId: W,
953
+ collapseAll: $,
954
+ getId: V,
910
955
  getNode: X,
911
956
  selectNode: A,
912
- itemsCount: V
913
- }), (v, z) => (d(), b(Qt, {
957
+ itemsCount: W
958
+ }), (v, z) => (d(), _(io, {
914
959
  ref_key: "treeRef",
915
960
  ref: s,
916
961
  class: "tree",
917
962
  tag: "ul",
918
- onDrop: q(i, ["stop"])
963
+ onDrop: q(a, ["stop"])
919
964
  }, {
920
- default: D(() => [
921
- (d(!0), h(Q, null, ue(c.value, (f) => (d(), b(Kt, {
965
+ default: w(() => [
966
+ (d(!0), h(ee, null, ue(c.value, (f) => (d(), _(no, {
922
967
  key: f.id,
923
968
  model: f,
924
- treeId: I(l),
969
+ treeId: I(r),
925
970
  items: n.items,
926
971
  search: n.search,
927
972
  onNodeclick: u,
928
973
  onNodedragover: m,
929
- onNodedrop: _,
930
- onNodecontext: E
974
+ onNodedrop: b,
975
+ onNodecontext: B
931
976
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
932
- y.value ? (d(), b(eo, {
977
+ y.value ? (d(), _(ao, {
933
978
  key: 0,
934
979
  ref_key: "contextTreeRef",
935
- ref: a,
980
+ ref: i,
936
981
  items: y.value,
937
- onSelect: Z,
982
+ onSelect: K,
938
983
  "before-item": L
939
- }, null, 8, ["items"])) : k("", !0)
984
+ }, null, 8, ["items"])) : S("", !0)
940
985
  ]),
941
986
  _: 1
942
987
  }, 8, ["onDrop"]));
943
988
  }
944
989
  };
945
- const to = {
990
+ const lo = {
946
991
  __name: "DAccordion",
947
992
  props: {
948
993
  items: Array,
@@ -955,14 +1000,14 @@ const to = {
955
1000
  },
956
1001
  setup(e) {
957
1002
  const o = e;
958
- return (t, n) => (d(), b(Xe, {
1003
+ return (t, n) => (d(), _(Xe, {
959
1004
  class: "accordion",
960
1005
  items: o.items,
961
1006
  "no-select": o.noSelect,
962
1007
  "render-title": o.renderTitle
963
1008
  }, null, 8, ["items", "no-select", "render-title"]));
964
1009
  }
965
- }, Sn = /* @__PURE__ */ te(to, [["__scopeId", "data-v-642edace"]]), oo = {
1010
+ }, In = /* @__PURE__ */ oe(lo, [["__scopeId", "data-v-642edace"]]), ro = {
966
1011
  __name: "DLayoutHeader",
967
1012
  props: {
968
1013
  fixed: {
@@ -997,17 +1042,17 @@ const to = {
997
1042
  },
998
1043
  setup(e) {
999
1044
  const o = e, t = p(() => {
1000
- const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", m = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1001
- return `position:${u};z-index:${s};${m}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1045
+ const { fixed: n, zIndex: s, minWidth: i, height: l, paddingLeft: r, transitionDuration: a, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", m = o.useMinWidthLayout ? `min-width:${i}px;` : "";
1046
+ return `position:${u};z-index:${s};${m}height:${l}px;padding-left:${r}px;transition-duration:${a}ms;transition-timing-function:${c};`;
1002
1047
  });
1003
1048
  return (n, s) => (d(), h("header", {
1004
1049
  class: "d-layout-header",
1005
- style: N(t.value)
1050
+ style: O(t.value)
1006
1051
  }, [
1007
- $(n.$slots, "default")
1052
+ k(n.$slots, "default")
1008
1053
  ], 4));
1009
1054
  }
1010
- }, no = {
1055
+ }, co = {
1011
1056
  __name: "DLayoutTab",
1012
1057
  props: {
1013
1058
  fixed: {
@@ -1046,17 +1091,17 @@ const to = {
1046
1091
  },
1047
1092
  setup(e) {
1048
1093
  const o = e, t = p(() => {
1049
- const { fixed: n, top: s, zIndex: a, minWidth: r, height: l, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = o, m = n ? "fixed" : "static", _ = o.useMinWidthLayout ? `min-width: ${r}px;` : "";
1050
- return `position:${m};top:${s}px;z-index:${a};${_}height:${l}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1094
+ const { fixed: n, top: s, zIndex: i, minWidth: l, height: r, paddingLeft: a, transitionDuration: c, transitionTimingFunction: u } = o, m = n ? "fixed" : "static", b = o.useMinWidthLayout ? `min-width: ${l}px;` : "";
1095
+ return `position:${m};top:${s}px;z-index:${i};${b}height:${r}px;padding-left:${a}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1051
1096
  });
1052
1097
  return (n, s) => (d(), h("div", {
1053
1098
  class: "d-layout-tab",
1054
- style: N(t.value)
1099
+ style: O(t.value)
1055
1100
  }, [
1056
- $(n.$slots, "default")
1101
+ k(n.$slots, "default")
1057
1102
  ], 4));
1058
1103
  }
1059
- }, so = {
1104
+ }, uo = {
1060
1105
  __name: "DLayoutFooter",
1061
1106
  props: {
1062
1107
  fixed: {
@@ -1091,17 +1136,17 @@ const to = {
1091
1136
  },
1092
1137
  setup(e) {
1093
1138
  const o = e, t = p(() => {
1094
- const { fixed: n, zIndex: s, minWidth: a, height: r, paddingLeft: l, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", m = o.useMinWidthLayout ? `min-width:${a}px;` : "";
1095
- return `position:${u};z-index:${s};${m}height:${r}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${c};`;
1139
+ const { fixed: n, zIndex: s, minWidth: i, height: l, paddingLeft: r, transitionDuration: a, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", m = o.useMinWidthLayout ? `min-width:${i}px;` : "";
1140
+ return `position:${u};z-index:${s};${m}height:${l}px;padding-left:${r}px;transition-duration:${a}ms;transition-timing-function:${c};`;
1096
1141
  });
1097
1142
  return (n, s) => (d(), h("footer", {
1098
1143
  class: "d-layout-footer",
1099
- style: N(t.value)
1144
+ style: O(t.value)
1100
1145
  }, [
1101
- $(n.$slots, "default")
1146
+ k(n.$slots, "default")
1102
1147
  ], 4));
1103
1148
  }
1104
- }, ao = {
1149
+ }, fo = {
1105
1150
  __name: "DLayoutSidebar",
1106
1151
  props: {
1107
1152
  zIndex: {
@@ -1131,17 +1176,17 @@ const to = {
1131
1176
  },
1132
1177
  setup(e) {
1133
1178
  const o = e, t = p(() => {
1134
- const { zIndex: n, width: s, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = o;
1135
- return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${r}ms;transition-timing-function:${l};`;
1179
+ const { zIndex: n, width: s, paddingTop: i, transitionDuration: l, transitionTimingFunction: r } = o;
1180
+ return `z-index:${n};width:${s}px;padding-top:${i}px;transition-duration:${l}ms;transition-timing-function:${r};`;
1136
1181
  });
1137
1182
  return (n, s) => (d(), h("aside", {
1138
1183
  class: "d-layout-sidebar",
1139
- style: N(t.value)
1184
+ style: O(t.value)
1140
1185
  }, [
1141
- $(n.$slots, "default")
1186
+ k(n.$slots, "default")
1142
1187
  ], 4));
1143
1188
  }
1144
- }, io = {
1189
+ }, po = {
1145
1190
  __name: "DLayoutContent",
1146
1191
  props: {
1147
1192
  paddingTop: {
@@ -1168,47 +1213,47 @@ const to = {
1168
1213
  },
1169
1214
  setup(e) {
1170
1215
  const o = e, t = p(() => {
1171
- const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = o, i = `overflow:${o.overflowHidden ? "hidden" : "visible"};`;
1172
- return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${r}ms;transition-timing-function:${l};`;
1216
+ const { paddingTop: n, paddingBottom: s, paddingLeft: i, transitionDuration: l, transitionTimingFunction: r } = o, a = `overflow:${o.overflowHidden ? "hidden" : "visible"};`;
1217
+ return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${i}px;${a}transition-duration:${l}ms;transition-timing-function:${r};`;
1173
1218
  });
1174
1219
  return (n, s) => (d(), h("main", {
1175
- style: N(t.value),
1220
+ style: O(t.value),
1176
1221
  class: "d-layout-content"
1177
1222
  }, [
1178
- $(n.$slots, "default")
1223
+ k(n.$slots, "default")
1179
1224
  ], 4));
1180
1225
  }
1181
1226
  };
1182
- function ro(e) {
1183
- const o = w(0), t = p(() => `transform: translateX(${-o.value}px);`);
1227
+ function mo(e) {
1228
+ const o = D(0), t = p(() => `transform: translateX(${-o.value}px);`);
1184
1229
  let n = !1;
1185
1230
  function s(u) {
1186
1231
  o.value = u;
1187
1232
  }
1188
- function a() {
1233
+ function i() {
1189
1234
  var u;
1190
1235
  const m = ((u = document.scrollingElement) === null || u === void 0 ? void 0 : u.scrollLeft) || 0;
1191
1236
  s(m);
1192
1237
  }
1193
- function r() {
1194
- a();
1195
- }
1196
1238
  function l() {
1197
- document.addEventListener("scroll", a);
1239
+ i();
1198
1240
  }
1199
- function i() {
1200
- n && document.removeEventListener("scroll", a);
1241
+ function r() {
1242
+ document.addEventListener("scroll", i);
1243
+ }
1244
+ function a() {
1245
+ n && document.removeEventListener("scroll", i);
1201
1246
  }
1202
1247
  function c() {
1203
- r(), l(), n = !0;
1248
+ l(), r(), n = !0;
1204
1249
  }
1205
- return Ve(e, (u) => {
1206
- u ? c() : i();
1207
- }, { immediate: !0 }), rt(() => {
1208
- i();
1250
+ return We(e, (u) => {
1251
+ u ? c() : a();
1252
+ }, { immediate: !0 }), lt(() => {
1253
+ a();
1209
1254
  }), t;
1210
1255
  }
1211
- const lo = 1001, co = 999, uo = 998, kn = {
1256
+ const ho = 1001, go = 999, vo = 998, Ln = {
1212
1257
  __name: "DLayoutAdmin",
1213
1258
  props: {
1214
1259
  mode: {
@@ -1299,11 +1344,11 @@ const lo = 1001, co = 999, uo = 998, kn = {
1299
1344
  },
1300
1345
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1301
1346
  setup(e, { emit: o }) {
1302
- const t = e, n = p(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = p(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = ro(s), r = p(() => t.fixedHeaderAndTab ? a.value : ""), l = p(() => t.fixedFooter ? a.value : ""), i = p(() => {
1303
- const { transitionDuration: y, transitionTimingFunction: E } = t;
1347
+ const t = e, n = p(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = p(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), i = mo(s), l = p(() => t.fixedHeaderAndTab ? i.value : ""), r = p(() => t.fixedFooter ? i.value : ""), a = p(() => {
1348
+ const { transitionDuration: y, transitionTimingFunction: B } = t;
1304
1349
  return {
1305
1350
  transitionDuration: y,
1306
- transitionTimingFunction: E
1351
+ transitionTimingFunction: B
1307
1352
  };
1308
1353
  }), c = p(() => t.mode === "vertical"), u = p(() => t.isMobile || c.value ? 1003 : 1e3), m = p({
1309
1354
  get() {
@@ -1313,96 +1358,96 @@ const lo = 1001, co = 999, uo = 998, kn = {
1313
1358
  o("update:sidebar-collapse", y);
1314
1359
  }
1315
1360
  });
1316
- function _() {
1361
+ function b() {
1317
1362
  o("sidebar-mask-click");
1318
1363
  }
1319
1364
  const C = p(() => t.isMobile && !m.value), M = p(() => {
1320
- const { transitionDuration: y, transitionTimingFunction: E } = t;
1321
- return `background-color:${t.maskBg};transition-duration:${y}ms;transition-timing-function:${E};`;
1322
- }), x = p(() => {
1323
- const { sidebarWidth: y, sidebarCollapsedWidth: E } = t, V = t.isMobile ? 0 : E, F = m.value ? V : y;
1365
+ const { transitionDuration: y, transitionTimingFunction: B } = t;
1366
+ return `background-color:${t.maskBg};transition-duration:${y}ms;transition-timing-function:${B};`;
1367
+ }), $ = p(() => {
1368
+ const { sidebarWidth: y, sidebarCollapsedWidth: B } = t, W = t.isMobile ? 0 : B, F = m.value ? W : y;
1324
1369
  return t.sidebarVisible ? F : 0;
1325
- }), W = p(() => t.isMobile ? 0 : x.value), X = p(() => c.value ? W.value : 0), A = p(
1370
+ }), V = p(() => t.isMobile ? 0 : $.value), X = p(() => c.value ? V.value : 0), A = p(
1326
1371
  () => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
1327
- ), Z = p(() => {
1372
+ ), K = p(() => {
1328
1373
  let y = 0;
1329
1374
  return t.fixedHeaderAndTab && (t.headerVisible && (y += t.headerHeight), t.tabVisible && (y += t.tabHeight)), y;
1330
1375
  }), L = p(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1331
- return (y, E) => (d(), h("div", {
1376
+ return (y, B) => (d(), h("div", {
1332
1377
  class: "d-layout",
1333
- style: N(n.value)
1378
+ style: O(n.value)
1334
1379
  }, [
1335
- e.headerVisible ? (d(), b(oo, le({ key: 0 }, i.value, {
1380
+ e.headerVisible ? (d(), _(ro, re({ key: 0 }, a.value, {
1336
1381
  fixed: e.fixedHeaderAndTab,
1337
- "z-index": lo,
1382
+ "z-index": ho,
1338
1383
  "min-width": e.minWidth,
1339
1384
  height: e.headerHeight,
1340
1385
  "padding-left": X.value,
1341
- style: r.value
1386
+ style: l.value
1342
1387
  }), {
1343
- default: D(() => [
1344
- $(y.$slots, "header")
1388
+ default: w(() => [
1389
+ k(y.$slots, "header")
1345
1390
  ]),
1346
1391
  _: 3
1347
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1348
- e.tabVisible ? (d(), b(no, le({ key: 1 }, i.value, {
1392
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : S("", !0),
1393
+ e.tabVisible ? (d(), _(co, re({ key: 1 }, a.value, {
1349
1394
  fixed: e.fixedHeaderAndTab,
1350
- "z-index": co,
1395
+ "z-index": go,
1351
1396
  "min-width": e.minWidth,
1352
1397
  top: e.headerHeight,
1353
1398
  height: e.tabHeight,
1354
- "padding-left": W.value,
1355
- style: r.value
1399
+ "padding-left": V.value,
1400
+ style: l.value
1356
1401
  }), {
1357
- default: D(() => [
1358
- $(y.$slots, "tab")
1402
+ default: w(() => [
1403
+ k(y.$slots, "tab")
1359
1404
  ]),
1360
1405
  _: 3
1361
- }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1362
- e.sidebarVisible ? (d(), b(ao, le({ key: 2 }, i.value, {
1406
+ }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : S("", !0),
1407
+ e.sidebarVisible ? (d(), _(fo, re({ key: 2 }, a.value, {
1363
1408
  "z-index": u.value,
1364
- width: x.value,
1409
+ width: $.value,
1365
1410
  "padding-top": A.value
1366
1411
  }), {
1367
- default: D(() => [
1368
- $(y.$slots, "sidebar")
1412
+ default: w(() => [
1413
+ k(y.$slots, "sidebar")
1369
1414
  ]),
1370
1415
  _: 3
1371
- }, 16, ["z-index", "width", "padding-top"])) : k("", !0),
1416
+ }, 16, ["z-index", "width", "padding-top"])) : S("", !0),
1372
1417
  C.value ? (d(), h("div", {
1373
1418
  key: 3,
1374
1419
  class: "d-layout-sidebar-mask",
1375
- style: N(M.value),
1376
- onClick: _
1377
- }, null, 4)) : k("", !0),
1378
- ee(io, le(i.value, {
1379
- "padding-top": Z.value,
1420
+ style: O(M.value),
1421
+ onClick: b
1422
+ }, null, 4)) : S("", !0),
1423
+ te(po, re(a.value, {
1424
+ "padding-top": K.value,
1380
1425
  "padding-bottom": L.value,
1381
- "padding-left": W.value,
1426
+ "padding-left": V.value,
1382
1427
  "overflow-hidden": e.addMainOverflowHidden
1383
1428
  }), {
1384
- default: D(() => [
1385
- $(y.$slots, "default")
1429
+ default: w(() => [
1430
+ k(y.$slots, "default")
1386
1431
  ]),
1387
1432
  _: 3
1388
1433
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1389
- e.footerVisible ? (d(), b(so, le({ key: 4 }, i.value, {
1434
+ e.footerVisible ? (d(), _(uo, re({ key: 4 }, a.value, {
1390
1435
  fixed: e.fixedFooter,
1391
- "z-index": uo,
1436
+ "z-index": vo,
1392
1437
  "min-width": e.minWidth,
1393
1438
  height: e.footerHeight,
1394
- "padding-left": W.value,
1395
- style: l.value
1439
+ "padding-left": V.value,
1440
+ style: r.value
1396
1441
  }), {
1397
- default: D(() => [
1398
- $(y.$slots, "footer")
1442
+ default: w(() => [
1443
+ k(y.$slots, "footer")
1399
1444
  ]),
1400
1445
  _: 3
1401
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
1446
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : S("", !0)
1402
1447
  ], 4));
1403
1448
  }
1404
1449
  }, de = {
1405
- state: Te({
1450
+ state: we({
1406
1451
  theme: "dark"
1407
1452
  }),
1408
1453
  getters: {
@@ -1420,7 +1465,7 @@ const lo = 1001, co = 999, uo = 998, kn = {
1420
1465
  de.state.theme = de.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(de.state.theme);
1421
1466
  }
1422
1467
  }
1423
- }, Tn = {
1468
+ }, En = {
1424
1469
  __name: "DConfigProvider",
1425
1470
  props: {
1426
1471
  theme: {
@@ -1430,10 +1475,10 @@ const lo = 1001, co = 999, uo = 998, kn = {
1430
1475
  },
1431
1476
  setup(e) {
1432
1477
  const o = e;
1433
- return de.mutations.setTheme(o.theme), (t, n) => $(t.$slots, "default");
1478
+ return de.mutations.setTheme(o.theme), (t, n) => k(t.$slots, "default");
1434
1479
  }
1435
1480
  };
1436
- const wn = {
1481
+ const Bn = {
1437
1482
  __name: "DScrollProvider",
1438
1483
  props: {
1439
1484
  xHide: {
@@ -1447,21 +1492,21 @@ const wn = {
1447
1492
  },
1448
1493
  setup(e) {
1449
1494
  const o = e;
1450
- _e((a) => ({
1495
+ _e((i) => ({
1451
1496
  e35a6f9a: t.value,
1452
1497
  e35a6f98: n.value
1453
1498
  }));
1454
- const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible"), s = (a) => {
1455
- document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
1499
+ const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible"), s = (i) => {
1500
+ document.body.classList.add(i), document.documentElement.classList.add(i), document.documentElement.classList.add("d-global-scroll");
1456
1501
  };
1457
1502
  return ye(() => {
1458
1503
  s("colored-scroller");
1459
- }), (a, r) => (d(), h("div", null, [
1460
- $(a.$slots, "default")
1504
+ }), (i, l) => (d(), h("div", null, [
1505
+ k(i.$slots, "default")
1461
1506
  ]));
1462
1507
  }
1463
1508
  };
1464
- const fo = {
1509
+ const yo = {
1465
1510
  __name: "DScroll",
1466
1511
  props: {
1467
1512
  autoHide: {
@@ -1484,14 +1529,14 @@ const fo = {
1484
1529
  c07fa298: n.value
1485
1530
  }));
1486
1531
  const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible");
1487
- return (s, a) => (d(), h("div", {
1488
- class: B(o.autoHide ? "d-scroll-hide" : "d-scroll")
1532
+ return (s, i) => (d(), h("div", {
1533
+ class: E(o.autoHide ? "d-scroll-hide" : "d-scroll")
1489
1534
  }, [
1490
- $(s.$slots, "default", {}, void 0, !0)
1535
+ k(s.$slots, "default", {}, void 0, !0)
1491
1536
  ], 2));
1492
1537
  }
1493
- }, Dn = /* @__PURE__ */ te(fo, [["__scopeId", "data-v-d50b3609"]]);
1494
- const po = { class: "modal-dialog" }, mo = { class: "modal-content" }, ho = { class: "modal-header" }, go = { class: "modal-title" }, vo = { class: "modal-body" }, yo = { class: "modal-footer" }, _o = {
1538
+ }, Mn = /* @__PURE__ */ oe(yo, [["__scopeId", "data-v-d50b3609"]]);
1539
+ const _o = { class: "modal-dialog" }, bo = { class: "modal-content" }, xo = { class: "modal-header" }, $o = { class: "modal-title" }, ko = { class: "modal-body" }, So = { class: "modal-footer" }, To = {
1495
1540
  __name: "DModal",
1496
1541
  props: {
1497
1542
  show: Boolean,
@@ -1501,61 +1546,61 @@ const po = { class: "modal-dialog" }, mo = { class: "modal-content" }, ho = { cl
1501
1546
  emits: ["open", "close"],
1502
1547
  setup(e, { expose: o, emit: t }) {
1503
1548
  const n = e;
1504
- _e((i) => ({
1549
+ _e((a) => ({
1505
1550
  "558e9e46": n.width
1506
1551
  }));
1507
- const s = w(null), a = w(!1);
1508
- a.value = n == null ? void 0 : n.show;
1509
- const r = () => {
1510
- a.value = !0, t("open", s);
1511
- }, l = () => {
1512
- a.value = !1, t("close", s);
1552
+ const s = D(null), i = D(!1);
1553
+ i.value = n == null ? void 0 : n.show;
1554
+ const l = () => {
1555
+ i.value = !0, t("open", s);
1556
+ }, r = () => {
1557
+ i.value = !1, t("close", s);
1513
1558
  };
1514
1559
  return o({
1515
- show: r,
1516
- hide: l
1517
- }), (i, c) => {
1518
- const u = ke("keydown");
1519
- return d(), b(ze, { to: "body" }, [
1520
- ee(Se, { name: "fade" }, {
1521
- default: D(() => [
1522
- a.value ? ae((d(), h("div", {
1560
+ show: l,
1561
+ hide: r
1562
+ }), (a, c) => {
1563
+ const u = Te("keydown");
1564
+ return d(), _(ze, { to: "body" }, [
1565
+ te(Se, { name: "fade" }, {
1566
+ default: w(() => [
1567
+ i.value ? se((d(), h("div", {
1523
1568
  key: 0,
1524
1569
  ref_key: "modalRef",
1525
1570
  ref: s,
1526
1571
  class: "modal"
1527
1572
  }, [
1528
- S("div", po, [
1529
- S("div", mo, [
1530
- S("div", ho, [
1531
- S("h5", go, [
1532
- $(i.$slots, "modal-title", {}, void 0, !0)
1573
+ x("div", _o, [
1574
+ x("div", bo, [
1575
+ x("div", xo, [
1576
+ x("h5", $o, [
1577
+ k(a.$slots, "modal-title", {}, void 0, !0)
1533
1578
  ])
1534
1579
  ]),
1535
- S("div", vo, [
1536
- $(i.$slots, "default", {}, void 0, !0)
1580
+ x("div", ko, [
1581
+ k(a.$slots, "default", {}, void 0, !0)
1537
1582
  ]),
1538
- S("div", yo, [
1539
- $(i.$slots, "modal-footer", {}, void 0, !0)
1583
+ x("div", So, [
1584
+ k(a.$slots, "modal-footer", {}, void 0, !0)
1540
1585
  ])
1541
1586
  ])
1542
1587
  ])
1543
1588
  ])), [
1544
- [u, l, "Escape"]
1545
- ]) : k("", !0)
1589
+ [u, r, "Escape"]
1590
+ ]) : S("", !0)
1546
1591
  ]),
1547
1592
  _: 3
1548
1593
  })
1549
1594
  ]);
1550
1595
  };
1551
1596
  }
1552
- }, Ye = /* @__PURE__ */ te(_o, [["__scopeId", "data-v-82cadd63"]]), se = lt();
1553
- function $e(e) {
1554
- e === void 0 && (e = se.value.comp.returnValue()), se.value.resolve(e), se.value = null;
1597
+ }, Ye = /* @__PURE__ */ oe(To, [["__scopeId", "data-v-82cadd63"]]), ae = rt();
1598
+ function ke(e) {
1599
+ e === void 0 && (e = ae.value.comp.returnValue()), ae.value.resolve(e), ae.value = null;
1555
1600
  }
1556
1601
  function qe(e, o, t = "default") {
1557
1602
  return new Promise((n) => {
1558
- se.value = {
1603
+ ae.value = {
1559
1604
  dialog: e,
1560
1605
  props: o,
1561
1606
  wrapper: t,
@@ -1563,13 +1608,13 @@ function qe(e, o, t = "default") {
1563
1608
  };
1564
1609
  });
1565
1610
  }
1566
- var bo = (e, o) => {
1611
+ var wo = (e, o) => {
1567
1612
  const t = e.__vccOpts || e;
1568
1613
  for (const [n, s] of o)
1569
1614
  t[n] = s;
1570
1615
  return t;
1571
1616
  };
1572
- const xo = dt({
1617
+ const Do = dt({
1573
1618
  name: "DialogWrapper",
1574
1619
  components: {},
1575
1620
  props: {
@@ -1580,25 +1625,25 @@ const xo = dt({
1580
1625
  transitionAttrs: Object
1581
1626
  },
1582
1627
  setup() {
1583
- const e = w();
1584
- return Ve(e, () => {
1585
- se.value && (se.value.comp = e.value);
1628
+ const e = D();
1629
+ return We(e, () => {
1630
+ ae.value && (ae.value.comp = e.value);
1586
1631
  }), {
1587
- dialogRef: se,
1632
+ dialogRef: ae,
1588
1633
  dialogInstance: e
1589
1634
  };
1590
1635
  }
1591
1636
  });
1592
- function $o(e, o, t, n, s, a) {
1593
- return d(), b(Se, ct(ut(e.transitionAttrs)), {
1594
- default: D(() => [
1595
- e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), b(P(e.dialogRef.dialog), le({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1637
+ function Co(e, o, t, n, s, i) {
1638
+ return d(), _(Se, ct(ut(e.transitionAttrs)), {
1639
+ default: w(() => [
1640
+ e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), _(P(e.dialogRef.dialog), re({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : S("", !0)
1596
1641
  ]),
1597
1642
  _: 1
1598
1643
  }, 16);
1599
1644
  }
1600
- var So = /* @__PURE__ */ bo(xo, [["render", $o]]);
1601
- const ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, To = {
1645
+ var Io = /* @__PURE__ */ wo(Do, [["render", Co]]);
1646
+ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Eo = {
1602
1647
  __name: "DAlertDialog",
1603
1648
  props: {
1604
1649
  title: String,
@@ -1608,21 +1653,21 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1608
1653
  const t = e;
1609
1654
  return o({
1610
1655
  returnValue: () => !0
1611
- }), (s, a) => (d(), h("div", null, [
1612
- ee(Ye, { show: !0 }, {
1613
- "modal-title": D(() => [
1614
- J(H(t.title), 1)
1656
+ }), (s, i) => (d(), h("div", null, [
1657
+ te(Ye, { show: !0 }, {
1658
+ "modal-title": w(() => [
1659
+ U(N(t.title), 1)
1615
1660
  ]),
1616
- default: D(() => [
1617
- J(H(t.message), 1)
1661
+ default: w(() => [
1662
+ U(N(t.message), 1)
1618
1663
  ]),
1619
- "modal-footer": D(() => [
1620
- S("div", ko, [
1621
- ee(ie, {
1622
- onClick: a[0] || (a[0] = (r) => I($e)())
1664
+ "modal-footer": w(() => [
1665
+ x("div", Lo, [
1666
+ te(Q, {
1667
+ onClick: i[0] || (i[0] = (l) => I(ke)())
1623
1668
  }, {
1624
- default: D(() => [
1625
- J("Закрыть")
1669
+ default: w(() => [
1670
+ U("Закрыть")
1626
1671
  ]),
1627
1672
  _: 1
1628
1673
  })
@@ -1632,7 +1677,7 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1632
1677
  })
1633
1678
  ]));
1634
1679
  }
1635
- }, wo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Do = {
1680
+ }, Bo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Mo = {
1636
1681
  __name: "DConfirmDialog",
1637
1682
  props: {
1638
1683
  title: String,
@@ -1642,30 +1687,30 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1642
1687
  const t = e;
1643
1688
  return o({
1644
1689
  returnValue: () => !0
1645
- }), (s, a) => (d(), h("div", null, [
1646
- ee(Ye, { show: !0 }, {
1647
- "modal-title": D(() => [
1648
- J(H(t.title), 1)
1690
+ }), (s, i) => (d(), h("div", null, [
1691
+ te(Ye, { show: !0 }, {
1692
+ "modal-title": w(() => [
1693
+ U(N(t.title), 1)
1649
1694
  ]),
1650
- default: D(() => [
1651
- J(H(t.message), 1)
1695
+ default: w(() => [
1696
+ U(N(t.message), 1)
1652
1697
  ]),
1653
- "modal-footer": D(() => [
1654
- S("div", wo, [
1655
- ee(ie, {
1656
- onClick: a[0] || (a[0] = (r) => I($e)())
1698
+ "modal-footer": w(() => [
1699
+ x("div", Bo, [
1700
+ te(Q, {
1701
+ onClick: i[0] || (i[0] = (l) => I(ke)())
1657
1702
  }, {
1658
- default: D(() => [
1659
- J("Да")
1703
+ default: w(() => [
1704
+ U("Да")
1660
1705
  ]),
1661
1706
  _: 1
1662
1707
  }),
1663
- ee(ie, {
1708
+ te(Q, {
1664
1709
  class: "button-red",
1665
- onClick: a[1] || (a[1] = (r) => I($e)(!1))
1710
+ onClick: i[1] || (i[1] = (l) => I(ke)(!1))
1666
1711
  }, {
1667
- default: D(() => [
1668
- J("Нет")
1712
+ default: w(() => [
1713
+ U("Нет")
1669
1714
  ]),
1670
1715
  _: 1
1671
1716
  })
@@ -1675,7 +1720,7 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1675
1720
  })
1676
1721
  ]));
1677
1722
  }
1678
- }, Co = { class: "dropdown" }, Cn = {
1723
+ }, No = { class: "dropdown" }, Nn = {
1679
1724
  __name: "DDropdown",
1680
1725
  props: {
1681
1726
  class: String,
@@ -1691,51 +1736,51 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1691
1736
  },
1692
1737
  emits: ["select", "click"],
1693
1738
  setup(e, { expose: o, emit: t }) {
1694
- const n = e, s = ve(), a = w(null), r = w(null), l = w(0), i = w(0), c = (C) => {
1695
- if (t("click", C), a.value.isShowed()) {
1696
- a.value.hide();
1739
+ const n = e, s = ve(), i = D(null), l = D(null), r = D(0), a = D(0), c = (C) => {
1740
+ if (t("click", C), i.value.isShowed()) {
1741
+ i.value.hide();
1697
1742
  return;
1698
1743
  }
1699
- a.value.show(), Re(() => {
1700
- const M = a.value.elementSize(), x = r.value.elementSize(), W = window.innerWidth, X = window.innerHeight;
1701
- l.value = W - (x.x + x.width) < M.width ? x.left - M.width + x.width : x.left, i.value = X - (x.y + x.height) < M.height ? x.top - M.height - 5 : x.height + x.top + 5;
1744
+ i.value.show(), Re(() => {
1745
+ const M = i.value.elementSize(), $ = l.value.elementSize(), V = window.innerWidth, X = window.innerHeight;
1746
+ r.value = V - ($.x + $.width) < M.width ? $.left - M.width + $.width : $.left, a.value = X - ($.y + $.height) < M.height ? $.top - M.height - 5 : $.height + $.top + 5;
1702
1747
  });
1703
1748
  }, u = (C) => {
1704
1749
  t("select", C);
1705
- }, m = p(() => ({ left: l.value + "px", top: i.value + "px", ...n.menuStyle }));
1750
+ }, m = p(() => ({ left: r.value + "px", top: a.value + "px", ...n.menuStyle }));
1706
1751
  o({
1707
1752
  show: c
1708
1753
  });
1709
- const _ = (C) => !!s[C];
1710
- return (C, M) => (d(), h("div", Co, [
1711
- _("default") ? (d(), b(ie, {
1754
+ const b = (C) => !!s[C];
1755
+ return (C, M) => (d(), h("div", No, [
1756
+ b("default") ? (d(), _(Q, {
1712
1757
  key: 0,
1713
1758
  ref_key: "buttonRef",
1714
- ref: r,
1715
- class: B(n.class),
1759
+ ref: l,
1760
+ class: E(n.class),
1716
1761
  icon: n.icon,
1717
1762
  onClick: q(c, ["stop", "prevent"]),
1718
1763
  type: n.type
1719
1764
  }, {
1720
- default: D(() => [
1721
- $(C.$slots, "default")
1765
+ default: w(() => [
1766
+ k(C.$slots, "default")
1722
1767
  ]),
1723
1768
  _: 3
1724
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), b(ie, {
1769
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), _(Q, {
1725
1770
  key: 1,
1726
1771
  ref_key: "buttonRef",
1727
- ref: r,
1728
- class: B(n.class),
1772
+ ref: l,
1773
+ class: E(n.class),
1729
1774
  icon: n.icon,
1730
1775
  onClick: q(c, ["stop", "prevent"]),
1731
1776
  type: n.type
1732
1777
  }, null, 8, ["class", "icon", "onClick", "type"])),
1733
- ee(je, {
1778
+ te(je, {
1734
1779
  ref_key: "dMenuRef",
1735
- ref: a,
1780
+ ref: i,
1736
1781
  items: n.items,
1737
1782
  class: "dropdown-menu",
1738
- style: N(m.value),
1783
+ style: O(m.value),
1739
1784
  "no-select": !0,
1740
1785
  onSelect: u,
1741
1786
  "render-item-title": n.renderItemTitle,
@@ -1743,34 +1788,34 @@ const ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1743
1788
  }, null, 8, ["items", "style", "render-item-title", "before-item"])
1744
1789
  ]));
1745
1790
  }
1746
- }, Io = {}, Lo = { class: "d-panel" };
1747
- function Eo(e, o) {
1748
- return d(), h("div", Lo, [
1749
- $(e.$slots, "default")
1791
+ }, Oo = {}, Ho = { class: "d-panel" };
1792
+ function Ao(e, o) {
1793
+ return d(), h("div", Ho, [
1794
+ k(e.$slots, "default")
1750
1795
  ]);
1751
1796
  }
1752
- const Bo = /* @__PURE__ */ te(Io, [["render", Eo]]), Mo = { class: "card-header" }, No = { class: "modal-title" }, Oo = { class: "card-body" }, Ho = { class: "card-footer" }, In = {
1797
+ const zo = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Ro = { class: "card-header" }, Vo = { class: "modal-title" }, Wo = { class: "card-body" }, Fo = { class: "card-footer" }, On = {
1753
1798
  __name: "DCard",
1754
1799
  setup(e) {
1755
- return (o, t) => (d(), b(Bo, { class: "d-card" }, {
1756
- default: D(() => [
1757
- S("div", Mo, [
1758
- S("h5", No, [
1759
- $(o.$slots, "title")
1800
+ return (o, t) => (d(), _(zo, { class: "d-card" }, {
1801
+ default: w(() => [
1802
+ x("div", Ro, [
1803
+ x("h5", Vo, [
1804
+ k(o.$slots, "title")
1760
1805
  ])
1761
1806
  ]),
1762
- S("div", Oo, [
1763
- $(o.$slots, "default")
1807
+ x("div", Wo, [
1808
+ k(o.$slots, "default")
1764
1809
  ]),
1765
- S("div", Ho, [
1766
- $(o.$slots, "footer")
1810
+ x("div", Fo, [
1811
+ k(o.$slots, "footer")
1767
1812
  ])
1768
1813
  ]),
1769
1814
  _: 3
1770
1815
  }));
1771
1816
  }
1772
- }, Ao = /* @__PURE__ */ new Map();
1773
- class zo {
1817
+ }, Po = /* @__PURE__ */ new Map();
1818
+ class jo {
1774
1819
  constructor(o, t, n) {
1775
1820
  this.remaining = t, this.callback = o, this.notifyItem = n, this.resume();
1776
1821
  }
@@ -1781,14 +1826,14 @@ class zo {
1781
1826
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1782
1827
  }
1783
1828
  }
1784
- const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1829
+ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
1785
1830
  {
1786
1831
  name: "px",
1787
- regexp: new RegExp(`^${be}px$`)
1832
+ regexp: new RegExp(`^${xe}px$`)
1788
1833
  },
1789
1834
  {
1790
1835
  name: "%",
1791
- regexp: new RegExp(`^${be}%$`)
1836
+ regexp: new RegExp(`^${xe}%$`)
1792
1837
  },
1793
1838
  /**
1794
1839
  * Fallback option
@@ -1796,9 +1841,9 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1796
1841
  */
1797
1842
  {
1798
1843
  name: "px",
1799
- regexp: new RegExp(`^${be}$`)
1844
+ regexp: new RegExp(`^${xe}$`)
1800
1845
  }
1801
- ], Ro = (e) => {
1846
+ ], Xo = (e) => {
1802
1847
  if (e === "auto")
1803
1848
  return {
1804
1849
  type: e,
@@ -1816,25 +1861,25 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1816
1861
  type: "",
1817
1862
  value: e
1818
1863
  };
1819
- }, Wo = (e) => {
1864
+ }, Yo = (e) => {
1820
1865
  switch (typeof e) {
1821
1866
  case "number":
1822
1867
  return { type: "px", value: e };
1823
1868
  case "string":
1824
- return Ro(e);
1869
+ return Xo(e);
1825
1870
  default:
1826
1871
  return { type: "", value: e };
1827
1872
  }
1828
1873
  }, Me = {
1829
1874
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1830
1875
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1831
- }, Vo = ((e) => () => e++)(0), Fo = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Po = (e) => {
1832
- typeof e == "string" && (e = Fo(e));
1876
+ }, qo = ((e) => () => e++)(0), Go = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Uo = (e) => {
1877
+ typeof e == "string" && (e = Go(e));
1833
1878
  let o = null, t = null;
1834
1879
  return e.forEach((n) => {
1835
1880
  Me.y.has(n) && (t = n), Me.x.has(n) && (o = n);
1836
1881
  }), { x: o, y: t };
1837
- }, xe = {
1882
+ }, $e = {
1838
1883
  position: ["top", "right"],
1839
1884
  cssAnimation: "fade",
1840
1885
  velocityAnimation: {
@@ -1847,31 +1892,31 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1847
1892
  opacity: [0, 1]
1848
1893
  }
1849
1894
  }
1850
- }, jo = {
1895
+ }, Zo = {
1851
1896
  __name: "VelocityGroup",
1852
1897
  emits: ["enter", "leave", "after-leave"],
1853
1898
  setup(e, { emit: o }) {
1854
- const t = (a, r) => {
1855
- o("enter", a, r);
1856
- }, n = (a, r) => {
1857
- o("leave", a, r);
1899
+ const t = (i, l) => {
1900
+ o("enter", i, l);
1901
+ }, n = (i, l) => {
1902
+ o("leave", i, l);
1858
1903
  }, s = () => {
1859
1904
  o("after-leave");
1860
1905
  };
1861
- return (a, r) => (d(), b(Fe, {
1906
+ return (i, l) => (d(), _(Fe, {
1862
1907
  tag: "span",
1863
1908
  css: !1,
1864
1909
  onEnter: t,
1865
1910
  onLeave: n,
1866
1911
  onAfterLeave: s
1867
1912
  }, {
1868
- default: D(() => [
1869
- $(a.$slots, "default")
1913
+ default: w(() => [
1914
+ k(i.$slots, "default")
1870
1915
  ]),
1871
1916
  _: 3
1872
1917
  }));
1873
1918
  }
1874
- }, Xo = /* @__PURE__ */ Object.assign({
1919
+ }, Ko = /* @__PURE__ */ Object.assign({
1875
1920
  inheritAttrs: !1
1876
1921
  }, {
1877
1922
  __name: "CssGroup",
@@ -1880,20 +1925,20 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1880
1925
  },
1881
1926
  setup(e) {
1882
1927
  const o = e;
1883
- return (t, n) => (d(), b(Fe, {
1928
+ return (t, n) => (d(), _(Fe, {
1884
1929
  tag: "span",
1885
1930
  name: o.name
1886
1931
  }, {
1887
- default: D(() => [
1888
- $(t.$slots, "default")
1932
+ default: w(() => [
1933
+ k(t.$slots, "default")
1889
1934
  ]),
1890
1935
  _: 3
1891
1936
  }, 8, ["name"]));
1892
1937
  }
1893
- }), Yo = ["data-id"], qo = ["onClick"], Go = ["innerHTML"], Uo = ["innerHTML"], Zo = {
1938
+ }), Jo = ["data-id"], Qo = ["onClick"], en = ["innerHTML"], tn = ["innerHTML"], on = {
1894
1939
  key: 0,
1895
1940
  class: "d-notification-title"
1896
- }, Ko = { class: "notification-content" }, Ln = {
1941
+ }, nn = { class: "notification-content" }, Hn = {
1897
1942
  __name: "DNotificationProvider",
1898
1943
  props: {
1899
1944
  group: {
@@ -1910,7 +1955,7 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1910
1955
  },
1911
1956
  position: {
1912
1957
  type: [String, Array, null],
1913
- default: xe.position
1958
+ default: $e.position
1914
1959
  },
1915
1960
  classes: {
1916
1961
  type: String,
@@ -1922,11 +1967,11 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1922
1967
  },
1923
1968
  animation: {
1924
1969
  type: [String, Object],
1925
- default: xe.velocityAnimation
1970
+ default: $e.velocityAnimation
1926
1971
  },
1927
1972
  animationName: {
1928
1973
  type: String,
1929
- default: xe.cssAnimation
1974
+ default: $e.cssAnimation
1930
1975
  },
1931
1976
  speed: {
1932
1977
  type: Number,
@@ -1966,29 +2011,29 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1966
2011
  const t = e, n = {
1967
2012
  IDLE: 0,
1968
2013
  DESTROYED: 2
1969
- }, s = w([]), a = w(null), r = w(Ao.get("velocity")), l = p(() => t.animationType === "velocity"), i = p(() => l.value ? jo : Xo), c = p(() => s.value.filter((f) => f.state !== n.DESTROYED)), u = p(() => Wo(t.width)), m = p(() => {
1970
- const { x: f, y: R } = Po(t.position), T = u.value.value, oe = u.value.type, re = {
1971
- width: T + oe
2014
+ }, s = D([]), i = D(null), l = D(Po.get("velocity")), r = p(() => t.animationType === "velocity"), a = p(() => r.value ? Zo : Ko), c = p(() => s.value.filter((f) => f.state !== n.DESTROYED)), u = p(() => Yo(t.width)), m = p(() => {
2015
+ const { x: f, y: R } = Uo(t.position), T = u.value.value, ne = u.value.type, le = {
2016
+ width: T + ne
1972
2017
  };
1973
- return R && (re[R] = "0px"), f && (f === "center" ? re.left = `calc(50% - ${+T / 2}${oe})` : re[f] = "0px"), re;
1974
- }), _ = p(() => "bottom" in m.value), C = (f) => {
2018
+ return R && (le[R] = "0px"), f && (f === "center" ? le.left = `calc(50% - ${+T / 2}${ne})` : le[f] = "0px"), le;
2019
+ }), b = p(() => "bottom" in m.value), C = (f) => {
1975
2020
  o("click", f), t.closeOnClick && L(f);
1976
2021
  }, M = () => {
1977
2022
  var f;
1978
- t.pauseOnHover && ((f = a.value) == null || f.pause());
1979
- }, x = () => {
2023
+ t.pauseOnHover && ((f = i.value) == null || f.pause());
2024
+ }, $ = () => {
1980
2025
  var f;
1981
- t.pauseOnHover && ((f = a.value) == null || f.resume());
1982
- }, W = (f) => {
2026
+ t.pauseOnHover && ((f = i.value) == null || f.resume());
2027
+ }, V = (f) => {
1983
2028
  if (f.group || (f.group = ""), f.data || (f.data = {}), t.group !== f.group)
1984
2029
  return;
1985
2030
  if (f.clean || f.clear) {
1986
- E();
2031
+ B();
1987
2032
  return;
1988
2033
  }
1989
- const R = typeof f.duration == "number" ? f.duration : t.duration, T = typeof f.speed == "number" ? f.speed : t.speed, oe = typeof f.ignoreDuplicates == "boolean" ? f.ignoreDuplicates : t.ignoreDuplicates, { title: re, text: Je, type: Qe, data: et, id: tt } = f, ne = {
1990
- id: tt || Vo(),
1991
- title: re,
2034
+ const R = typeof f.duration == "number" ? f.duration : t.duration, T = typeof f.speed == "number" ? f.speed : t.speed, ne = typeof f.ignoreDuplicates == "boolean" ? f.ignoreDuplicates : t.ignoreDuplicates, { title: le, text: Je, type: Qe, data: et, id: tt } = f, ie = {
2035
+ id: tt || qo(),
2036
+ title: le,
1992
2037
  text: Je,
1993
2038
  type: Qe,
1994
2039
  state: n.IDLE,
@@ -1996,41 +2041,41 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
1996
2041
  length: R + 2 * T,
1997
2042
  data: et
1998
2043
  };
1999
- R >= 0 && (a.value = new zo(() => L(ne), ne.length, ne));
2000
- const ot = t.reverse ? !_.value : _.value;
2044
+ R >= 0 && (i.value = new jo(() => L(ie), ie.length, ie));
2045
+ const ot = t.reverse ? !b.value : b.value;
2001
2046
  let fe = -1;
2002
- const nt = c.value.some((Ie) => Ie.title === f.title && Ie.text === f.text);
2003
- (!oe || !nt) && (ot ? (s.value.push(ne), o("start", ne), c.value.length > t.max && (fe = 0)) : (s.value.unshift(ne), o("start", ne), c.value.length > t.max && (fe = c.value.length - 1)), fe !== -1 && L(c.value[fe]));
2047
+ const nt = c.value.some((Le) => Le.title === f.title && Le.text === f.text);
2048
+ (!ne || !nt) && (ot ? (s.value.push(ie), o("start", ie), c.value.length > t.max && (fe = 0)) : (s.value.unshift(ie), o("start", ie), c.value.length > t.max && (fe = c.value.length - 1)), fe !== -1 && L(c.value[fe]));
2004
2049
  }, X = (f) => {
2005
2050
  y(f);
2006
2051
  }, A = (f) => [
2007
2052
  "d-notification-template",
2008
2053
  t.classes,
2009
2054
  f.type || ""
2010
- ], Z = (f) => l.value ? void 0 : { transition: `all ${f.speed}ms` }, L = (f) => {
2055
+ ], K = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` }, L = (f) => {
2011
2056
  clearTimeout(f.timer), f.state = n.DESTROYED, z(), o("destroy", f);
2012
2057
  }, y = (f) => {
2013
2058
  const R = s.value.find((T) => T.id === f);
2014
2059
  R && L(R);
2015
- }, E = () => {
2060
+ }, B = () => {
2016
2061
  c.value.forEach(L);
2017
- }, V = (f, R) => {
2018
- var oe;
2019
- const T = (oe = t.animation) == null ? void 0 : oe[f];
2062
+ }, W = (f, R) => {
2063
+ var ne;
2064
+ const T = (ne = t.animation) == null ? void 0 : ne[f];
2020
2065
  return typeof T == "function" ? T(R) : T;
2021
2066
  }, F = (f, R) => {
2022
- if (!l.value)
2067
+ if (!r.value)
2023
2068
  return;
2024
- const T = V("enter", f);
2025
- r.value(f, T, {
2069
+ const T = W("enter", f);
2070
+ l.value(f, T, {
2026
2071
  duration: t.speed,
2027
2072
  complete: R
2028
2073
  });
2029
2074
  }, v = (f, R) => {
2030
- if (!l.value)
2075
+ if (!r.value)
2031
2076
  return;
2032
- const T = V("leave", f);
2033
- r.value(f, T, {
2077
+ const T = W("leave", f);
2078
+ l.value(f, T, {
2034
2079
  duration: t.speed,
2035
2080
  complete: R
2036
2081
  });
@@ -2039,58 +2084,58 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
2039
2084
  s.value = s.value.filter((f) => f.state !== n.DESTROYED);
2040
2085
  }
2041
2086
  return ye(() => {
2042
- j.on("notification-add", W), j.on("notification-close", X);
2087
+ j.on("notification-add", V), j.on("notification-close", X);
2043
2088
  }), (f, R) => (d(), h("div", {
2044
2089
  class: "d-notification-group",
2045
- style: N(m.value)
2090
+ style: O(m.value)
2046
2091
  }, [
2047
- (d(), b(P(i.value), {
2092
+ (d(), _(P(a.value), {
2048
2093
  name: e.animationName,
2049
2094
  onEnter: F,
2050
2095
  onLeave: v,
2051
2096
  onAfterLeave: z
2052
2097
  }, {
2053
- default: D(() => [
2054
- (d(!0), h(Q, null, ue(c.value, (T) => (d(), h("div", {
2098
+ default: w(() => [
2099
+ (d(!0), h(ee, null, ue(c.value, (T) => (d(), h("div", {
2055
2100
  key: T.id,
2056
2101
  class: "d-notification-wrapper",
2057
- style: N(Z(T)),
2102
+ style: O(K(T)),
2058
2103
  "data-id": T.id,
2059
2104
  onMouseenter: M,
2060
- onMouseleave: x
2105
+ onMouseleave: $
2061
2106
  }, [
2062
- $(f.$slots, "body", {
2063
- class: B([e.classes, T.type]),
2107
+ k(f.$slots, "body", {
2108
+ class: E([e.classes, T.type]),
2064
2109
  item: T,
2065
2110
  close: () => L(T)
2066
2111
  }, () => [
2067
- S("div", {
2068
- class: B(A(T)),
2069
- onClick: (oe) => C(T)
2112
+ x("div", {
2113
+ class: E(A(T)),
2114
+ onClick: (ne) => C(T)
2070
2115
  }, [
2071
- e.dangerouslySetInnerHtml ? (d(), h(Q, { key: 0 }, [
2116
+ e.dangerouslySetInnerHtml ? (d(), h(ee, { key: 0 }, [
2072
2117
  T.title ? (d(), h("div", {
2073
2118
  key: 0,
2074
2119
  class: "d-notification-title",
2075
2120
  innerHTML: T.timer
2076
- }, null, 8, Go)) : k("", !0),
2077
- S("div", {
2121
+ }, null, 8, en)) : S("", !0),
2122
+ x("div", {
2078
2123
  class: "notification-content",
2079
2124
  innerHTML: T.text
2080
- }, null, 8, Uo)
2081
- ], 64)) : (d(), h(Q, { key: 1 }, [
2082
- T.title ? (d(), h("div", Zo, H(T.title), 1)) : k("", !0),
2083
- S("div", Ko, H(T.text), 1)
2125
+ }, null, 8, tn)
2126
+ ], 64)) : (d(), h(ee, { key: 1 }, [
2127
+ T.title ? (d(), h("div", on, N(T.title), 1)) : S("", !0),
2128
+ x("div", nn, N(T.text), 1)
2084
2129
  ], 64))
2085
- ], 10, qo)
2130
+ ], 10, Qo)
2086
2131
  ])
2087
- ], 44, Yo))), 128))
2132
+ ], 44, Jo))), 128))
2088
2133
  ]),
2089
2134
  _: 3
2090
2135
  }, 40, ["name"]))
2091
2136
  ], 4));
2092
2137
  }
2093
- }, Jo = { class: "d-info-progress-icon-container" }, Qo = { class: "d-info-progress-icon" }, en = { class: "d-info-progress-data-container" }, tn = ["innerHTML"], En = {
2138
+ }, sn = { class: "d-info-progress-icon-container" }, an = { class: "d-info-progress-icon" }, ln = { class: "d-info-progress-data-container" }, rn = ["innerHTML"], An = {
2094
2139
  __name: "DInfoProgress",
2095
2140
  props: {
2096
2141
  style: [String, Object],
@@ -2101,37 +2146,37 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
2101
2146
  },
2102
2147
  emits: ["click"],
2103
2148
  setup(e, { emit: o }) {
2104
- const t = e, n = p(() => t.icon ? U.getters.getIcon(t.icon) : null);
2105
- return (s, a) => (d(), h("div", {
2106
- class: B(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2107
- style: N(t.style),
2108
- onClick: a[0] || (a[0] = (r) => {
2109
- o("click", r);
2149
+ const t = e, n = p(() => t.icon ? Z.getters.getIcon(t.icon) : null);
2150
+ return (s, i) => (d(), h("div", {
2151
+ class: E(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2152
+ style: O(t.style),
2153
+ onClick: i[0] || (i[0] = (l) => {
2154
+ o("click", l);
2110
2155
  })
2111
2156
  }, [
2112
- S("div", Jo, [
2113
- S("div", Qo, [
2114
- t.icon ? (d(), b(P(ce), {
2157
+ x("div", sn, [
2158
+ x("div", an, [
2159
+ t.icon ? (d(), _(P(ce), {
2115
2160
  key: 0,
2116
2161
  component: n.value,
2117
2162
  color: "inherit",
2118
2163
  size: 17
2119
- }, null, 8, ["component"])) : k("", !0)
2164
+ }, null, 8, ["component"])) : S("", !0)
2120
2165
  ])
2121
2166
  ]),
2122
- S("div", en, [
2123
- S("div", {
2167
+ x("div", ln, [
2168
+ x("div", {
2124
2169
  class: "d-info-progress-line",
2125
- style: N("width: " + t.progress + "%;")
2170
+ style: O("width: " + t.progress + "%;")
2126
2171
  }, null, 4),
2127
- S("div", {
2172
+ x("div", {
2128
2173
  class: "d-info-progress-label",
2129
2174
  innerHTML: e.label
2130
- }, null, 8, tn)
2175
+ }, null, 8, rn)
2131
2176
  ])
2132
2177
  ], 6));
2133
2178
  }
2134
- }, on = { class: "d-checkbox" }, nn = ["id", "checked", "disabled"], sn = ["for"], Bn = {
2179
+ }, dn = { class: "d-checkbox" }, cn = ["id", "checked", "disabled"], un = ["for"], zn = {
2135
2180
  __name: "DCheckbox",
2136
2181
  props: {
2137
2182
  label: String,
@@ -2145,44 +2190,44 @@ const be = "[-+]?[0-9]*.?[0-9]+", Be = [
2145
2190
  },
2146
2191
  emits: ["update:modelValue"],
2147
2192
  setup(e, { emit: o }) {
2148
- const t = e, s = We().uid, a = p({
2193
+ const t = e, s = Ve().uid, i = p({
2149
2194
  get: () => t.modelValue,
2150
- set: (r) => {
2151
- o("update:modelValue", r);
2195
+ set: (l) => {
2196
+ o("update:modelValue", l);
2152
2197
  }
2153
2198
  });
2154
- return (r, l) => (d(), h("div", on, [
2155
- ae(S("input", {
2156
- "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
2199
+ return (l, r) => (d(), h("div", dn, [
2200
+ se(x("input", {
2201
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => i.value = a),
2157
2202
  id: `i-${I(s)}`,
2158
2203
  type: "checkbox",
2159
2204
  checked: t.checked,
2160
2205
  disabled: t.disabled,
2161
- onChange: l[1] || (l[1] = (...i) => t.change && t.change(...i))
2162
- }, null, 40, nn), [
2163
- [ft, a.value]
2206
+ onChange: r[1] || (r[1] = (...a) => t.change && t.change(...a))
2207
+ }, null, 40, cn), [
2208
+ [ft, i.value]
2164
2209
  ]),
2165
- S("label", {
2210
+ x("label", {
2166
2211
  for: `i-${I(s)}`
2167
- }, H(t.label), 9, sn)
2212
+ }, N(t.label), 9, un)
2168
2213
  ]));
2169
2214
  }
2170
2215
  };
2171
- async function an(e, o) {
2172
- return await qe(Do, { title: e, message: o });
2216
+ async function fn(e, o) {
2217
+ return await qe(Mo, { title: e, message: o });
2173
2218
  }
2174
- async function rn(e, o) {
2175
- return await qe(To, { title: e, message: o });
2219
+ async function pn(e, o) {
2220
+ return await qe(Eo, { title: e, message: o });
2176
2221
  }
2177
- const Mn = {
2222
+ const Rn = {
2178
2223
  __name: "DDialogProvider",
2179
2224
  setup(e) {
2180
- return window.alert = rn, window.confirm = an, (o, t) => (d(), b(I(So)));
2225
+ return window.alert = pn, window.confirm = fn, (o, t) => (d(), _(I(Io)));
2181
2226
  }
2182
- }, ln = { class: "d-select" }, dn = {
2227
+ }, mn = { class: "d-select" }, hn = {
2183
2228
  key: 0,
2184
2229
  class: "label"
2185
- }, cn = ["value", "selected", "disabled"], Nn = {
2230
+ }, gn = ["value", "selected", "disabled"], Vn = {
2186
2231
  __name: "DSelect",
2187
2232
  props: {
2188
2233
  label: String,
@@ -2196,58 +2241,58 @@ const Mn = {
2196
2241
  setup(e, { emit: o }) {
2197
2242
  const t = e, n = p(() => t.scale ? "d-select-" + t.scale : ""), s = p({
2198
2243
  get: () => t.modelValue,
2199
- set: (a) => {
2200
- o("update:modelValue", a);
2244
+ set: (i) => {
2245
+ o("update:modelValue", i);
2201
2246
  }
2202
2247
  });
2203
- for (let a = 0; a < t.options.length; a++)
2204
- if (t.options[a].selected) {
2205
- s.value = t.options[a].value;
2248
+ for (let i = 0; i < t.options.length; i++)
2249
+ if (t.options[i].selected) {
2250
+ s.value = t.options[i].value;
2206
2251
  break;
2207
2252
  }
2208
- return (a, r) => (d(), h("div", ln, [
2209
- t.label ? (d(), h("div", dn, H(t.label), 1)) : k("", !0),
2210
- ae(S("select", {
2211
- "onUpdate:modelValue": r[0] || (r[0] = (l) => s.value = l),
2212
- class: B(n.value),
2213
- style: N(t.size === "wide" ? "width:100%" : "")
2253
+ return (i, l) => (d(), h("div", mn, [
2254
+ t.label ? (d(), h("div", hn, N(t.label), 1)) : S("", !0),
2255
+ se(x("select", {
2256
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2257
+ class: E(n.value),
2258
+ style: O(t.size === "wide" ? "width:100%" : "")
2214
2259
  }, [
2215
- (d(!0), h(Q, null, ue(t.options, (l, i) => (d(), h("option", {
2216
- key: i,
2217
- value: l.value,
2218
- selected: l.selected,
2219
- disabled: l.disabled
2220
- }, H(l.label), 9, cn))), 128))
2260
+ (d(!0), h(ee, null, ue(t.options, (r, a) => (d(), h("option", {
2261
+ key: a,
2262
+ value: r.value,
2263
+ selected: r.selected,
2264
+ disabled: r.disabled
2265
+ }, N(r.label), 9, gn))), 128))
2221
2266
  ], 6), [
2222
2267
  [pt, s.value]
2223
2268
  ])
2224
2269
  ]));
2225
2270
  }
2226
2271
  };
2227
- const un = { class: "d-tabs" }, fn = ["onClick"], pn = {
2272
+ const vn = { class: "d-tabs" }, yn = ["onClick"], _n = {
2228
2273
  __name: "DTabs",
2229
2274
  props: {
2230
2275
  tabs: Array
2231
2276
  },
2232
2277
  setup(e) {
2233
- const t = mt(e, "tabs"), n = w(0), s = (a) => {
2234
- n.value = a;
2278
+ const t = mt(e, "tabs"), n = D(0), s = (i) => {
2279
+ n.value = i;
2235
2280
  };
2236
- return (a, r) => (d(), h(Q, null, [
2237
- S("div", un, [
2238
- (d(!0), h(Q, null, ue(t.value, (l, i) => (d(), h("div", {
2239
- key: i,
2240
- class: B([i === n.value ? "active" : "", "d-tab-title"]),
2241
- onClick: (c) => s(i)
2242
- }, H(l.label), 11, fn))), 128))
2281
+ return (i, l) => (d(), h(ee, null, [
2282
+ x("div", vn, [
2283
+ (d(!0), h(ee, null, ue(t.value, (r, a) => (d(), h("div", {
2284
+ key: a,
2285
+ class: E([a === n.value ? "active" : "", "d-tab-title"]),
2286
+ onClick: (c) => s(a)
2287
+ }, N(r.label), 11, yn))), 128))
2243
2288
  ]),
2244
- (d(), b(ht, null, [
2245
- (d(), b(P(t.value[n.value].component)))
2289
+ (d(), _(ht, null, [
2290
+ (d(), _(P(t.value[n.value].component)))
2246
2291
  ], 1024))
2247
2292
  ], 64));
2248
2293
  }
2249
- }, On = /* @__PURE__ */ te(pn, [["__scopeId", "data-v-89cd9234"]]);
2250
- const mn = { class: "d-grid" }, hn = {
2294
+ }, Wn = /* @__PURE__ */ oe(_n, [["__scopeId", "data-v-89cd9234"]]);
2295
+ const bn = { class: "d-grid" }, xn = {
2251
2296
  __name: "DGrid",
2252
2297
  props: {
2253
2298
  gap: {
@@ -2267,23 +2312,23 @@ const mn = { class: "d-grid" }, hn = {
2267
2312
  setup(e) {
2268
2313
  const o = e;
2269
2314
  _e((u) => ({
2270
- "09eba472": i[0],
2271
- "09eba434": i[1],
2272
- "09eba3f6": i[2],
2273
- "09eba3b8": i[3],
2274
- "09eba37a": i[4],
2275
- "09eba33c": i[5],
2315
+ "09eba472": a[0],
2316
+ "09eba434": a[1],
2317
+ "09eba3f6": a[2],
2318
+ "09eba3b8": a[3],
2319
+ "09eba37a": a[4],
2320
+ "09eba33c": a[5],
2276
2321
  "898eb2ac": o.gap
2277
2322
  }));
2278
- const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: r, colXxl: l } = gt(o), i = [t.value, n.value, s.value, a.value, r.value, l.value];
2323
+ const { colXs: t, colSm: n, colMd: s, colLg: i, colXl: l, colXxl: r } = gt(o), a = [t.value, n.value, s.value, i.value, l.value, r.value];
2279
2324
  let c = null;
2280
- for (let u = 0; u < i.length; u++)
2281
- c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
2282
- return (u, m) => (d(), h("div", mn, [
2283
- $(u.$slots, "default", {}, void 0, !0)
2325
+ for (let u = 0; u < a.length; u++)
2326
+ c || (c = a[0]), u > 0 && (a[u] ? c = a[u] : a[u] = c);
2327
+ return (u, m) => (d(), h("div", bn, [
2328
+ k(u.$slots, "default", {}, void 0, !0)
2284
2329
  ]));
2285
2330
  }
2286
- }, Hn = /* @__PURE__ */ te(hn, [["__scopeId", "data-v-b45e8130"]]), gn = ["src", "alt", "title"], An = {
2331
+ }, Fn = /* @__PURE__ */ oe(xn, [["__scopeId", "data-v-b45e8130"]]), $n = ["src", "alt", "title"], Pn = {
2287
2332
  __name: "DImage",
2288
2333
  props: {
2289
2334
  src: String,
@@ -2295,20 +2340,20 @@ const mn = { class: "d-grid" }, hn = {
2295
2340
  radius: String
2296
2341
  },
2297
2342
  setup(e) {
2298
- const o = e, t = w(null), n = new Image();
2343
+ const o = e, t = D(null), n = new Image();
2299
2344
  return n.onload = () => {
2300
2345
  t.value = n.src;
2301
2346
  }, n.onerror = () => {
2302
2347
  t.value = o.srcFail;
2303
2348
  }, ye(() => {
2304
2349
  n.src = o.src;
2305
- }), (s, a) => t.value ? (d(), h("img", {
2350
+ }), (s, i) => t.value ? (d(), h("img", {
2306
2351
  key: 0,
2307
2352
  src: t.value,
2308
2353
  alt: o.alt,
2309
2354
  title: o.title,
2310
- style: N({ width: o.width, height: o.height, borderRadius: o.radius })
2311
- }, null, 12, gn)) : k("", !0);
2355
+ style: O({ width: o.width, height: o.height, borderRadius: o.radius })
2356
+ }, null, 12, $n)) : S("", !0);
2312
2357
  }
2313
2358
  }, Ge = (e) => {
2314
2359
  typeof e == "string" && (e = { title: "", text: e }), typeof e == "object" && j.emit("notification-add", e);
@@ -2316,7 +2361,7 @@ const mn = { class: "d-grid" }, hn = {
2316
2361
  Ge.close = (e) => {
2317
2362
  j.emit("notification-close", e);
2318
2363
  };
2319
- const zn = () => ({ notify: Ge }), Rn = {
2364
+ const jn = () => ({ notify: Ge }), Xn = {
2320
2365
  mounted: function(e, o) {
2321
2366
  e.clickOutsideEvent = function(t) {
2322
2367
  e === t.target || e.contains(t.target) || o.value(t, e);
@@ -2325,7 +2370,7 @@ const zn = () => ({ notify: Ge }), Rn = {
2325
2370
  unmounted: function(e) {
2326
2371
  document.removeEventListener("click", e.clickOutsideEvent);
2327
2372
  }
2328
- }, Wn = {
2373
+ }, Yn = {
2329
2374
  beforeMount(e, o) {
2330
2375
  e._keydownCallback = (t) => {
2331
2376
  t.key === o.arg && o.value();
@@ -2334,7 +2379,7 @@ const zn = () => ({ notify: Ge }), Rn = {
2334
2379
  unmounted(e, o) {
2335
2380
  document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
2336
2381
  }
2337
- }, Vn = {
2382
+ }, qn = {
2338
2383
  beforeMount(e) {
2339
2384
  e.focus();
2340
2385
  }
@@ -2345,7 +2390,7 @@ function Ue(e) {
2345
2390
  function Ze(e) {
2346
2391
  return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
2347
2392
  }
2348
- var vn = function() {
2393
+ var kn = function() {
2349
2394
  var e = !1;
2350
2395
  try {
2351
2396
  var o = Object.defineProperty({}, "passive", {
@@ -2357,7 +2402,7 @@ var vn = function() {
2357
2402
  } catch {
2358
2403
  }
2359
2404
  return e;
2360
- }(), yn = {
2405
+ }(), Sn = {
2361
2406
  disableClick: !1,
2362
2407
  tapTolerance: 10,
2363
2408
  // px
@@ -2383,35 +2428,35 @@ function me(e) {
2383
2428
  var o = this.$$touchObj, t = Ue(e), n = Ze(e), s = o.currentX != t || o.currentY != n;
2384
2429
  if (o.currentX = t, o.currentY = n, o.touchMoved) {
2385
2430
  if (o.hasSwipe && !o.swipeOutBounded) {
2386
- var r = o.options.swipeTolerance;
2387
- o.swipeOutBounded = Math.abs(o.startX - o.currentX) > r && Math.abs(o.startY - o.currentY) > r;
2431
+ var l = o.options.swipeTolerance;
2432
+ o.swipeOutBounded = Math.abs(o.startX - o.currentX) > l && Math.abs(o.startY - o.currentY) > l;
2388
2433
  }
2389
2434
  } else {
2390
- var a = o.options.tapTolerance;
2391
- o.touchMoved = Math.abs(o.startX - o.currentX) > a || Math.abs(o.startY - o.currentY) > a, o.touchMoved && (Ce(o), G(e, this, "drag.once"));
2435
+ var i = o.options.tapTolerance;
2436
+ o.touchMoved = Math.abs(o.startX - o.currentX) > i || Math.abs(o.startY - o.currentY) > i, o.touchMoved && (Ie(o), G(e, this, "drag.once"));
2392
2437
  }
2393
2438
  if (Y(this, "rollover") && s) {
2394
- var l = e.timeStamp, i = o.options.rollOverFrequency;
2395
- (o.touchRollTime == null || l > o.touchRollTime + i) && (o.touchRollTime = l, G(e, this, "rollover"));
2439
+ var r = e.timeStamp, a = o.options.rollOverFrequency;
2440
+ (o.touchRollTime == null || r > o.touchRollTime + a) && (o.touchRollTime = r, G(e, this, "rollover"));
2396
2441
  }
2397
2442
  if (Y(this, "drag") && o.touchStarted && o.touchMoved && s) {
2398
- var l = e.timeStamp, i = o.options.dragFrequency;
2399
- (o.touchDragTime == null || l > o.touchDragTime + i) && (o.touchDragTime = l, G(e, this, "drag"));
2443
+ var r = e.timeStamp, a = o.options.dragFrequency;
2444
+ (o.touchDragTime == null || r > o.touchDragTime + a) && (o.touchDragTime = r, G(e, this, "drag"));
2400
2445
  }
2401
2446
  }
2402
2447
  function Ne() {
2403
2448
  var e = this.$$touchObj;
2404
- Ce(e), De(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2449
+ Ie(e), Ce(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2405
2450
  }
2406
2451
  function he(e) {
2407
2452
  var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2408
2453
  t && (o.lastTouchEndTime = e.timeStamp);
2409
2454
  var s = t && !o.touchHoldTimer;
2410
- if (Ce(o), o.touchStarted = !1, De(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2455
+ if (Ie(o), o.touchStarted = !1, Ce(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2411
2456
  if (G(e, this, "release"), o.touchMoved) {
2412
2457
  if (o.hasSwipe && !o.swipeOutBounded) {
2413
- var a = o.options.swipeTolerance, r, l = Math.abs(o.startY - o.currentY), i = Math.abs(o.startX - o.currentX);
2414
- (l > a || i > a) && (l > a ? r = o.startY > o.currentY ? "top" : "bottom" : r = o.startX > o.currentX ? "left" : "right", Y(this, "swipe." + r) ? G(e, this, "swipe." + r, r) : G(e, this, "swipe", r));
2458
+ var i = o.options.swipeTolerance, l, r = Math.abs(o.startY - o.currentY), a = Math.abs(o.startX - o.currentX);
2459
+ (r > i || a > i) && (r > i ? l = o.startY > o.currentY ? "top" : "bottom" : l = o.startX > o.currentX ? "left" : "right", Y(this, "swipe." + l) ? G(e, this, "swipe." + l, l) : G(e, this, "swipe", l));
2415
2460
  }
2416
2461
  } else if (Y(this, "longtap") && e.timeStamp - o.touchStartTime > o.options.longTapTimeInterval)
2417
2462
  e.cancelable && e.preventDefault(), G(e, this, "longtap");
@@ -2425,33 +2470,33 @@ function Oe() {
2425
2470
  Ke(this);
2426
2471
  }
2427
2472
  function He() {
2428
- De(this);
2473
+ Ce(this);
2429
2474
  }
2430
2475
  function Y(e, o) {
2431
2476
  var t = e.$$touchObj.callbacks[o];
2432
2477
  return t != null && t.length > 0;
2433
2478
  }
2434
2479
  function G(e, o, t, n) {
2435
- var s = o.$$touchObj, a = s.callbacks[t];
2436
- if (a == null || a.length === 0)
2480
+ var s = o.$$touchObj, i = s.callbacks[t];
2481
+ if (i == null || i.length === 0)
2437
2482
  return null;
2438
- for (var r = 0; r < a.length; r++) {
2439
- var l = a[r];
2440
- l.modifiers.stop && e.stopPropagation(), l.modifiers.prevent && e.preventDefault(), !(l.modifiers.self && e.target !== e.currentTarget) && typeof l.value == "function" && (n ? l.value(n, e) : l.value(e));
2483
+ for (var l = 0; l < i.length; l++) {
2484
+ var r = i[l];
2485
+ r.modifiers.stop && e.stopPropagation(), r.modifiers.prevent && e.preventDefault(), !(r.modifiers.self && e.target !== e.currentTarget) && typeof r.value == "function" && (n ? r.value(n, e) : r.value(e));
2441
2486
  }
2442
2487
  }
2443
2488
  function Ke(e) {
2444
2489
  var o = e.$$touchObj.options.touchClass;
2445
2490
  o && e.classList.add(o);
2446
2491
  }
2447
- function De(e) {
2492
+ function Ce(e) {
2448
2493
  var o = e.$$touchObj.options.touchClass;
2449
2494
  o && e.classList.remove(o);
2450
2495
  }
2451
- function Ce(e) {
2496
+ function Ie(e) {
2452
2497
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2453
2498
  }
2454
- function _n(e, o) {
2499
+ function Tn(e, o) {
2455
2500
  var t = e.$$touchObj || {
2456
2501
  // an object contains all callbacks registered,
2457
2502
  // key is event name, value is an array
@@ -2459,23 +2504,23 @@ function _n(e, o) {
2459
2504
  // prevent bind twice, set to true when event bound
2460
2505
  hasBindTouchEvents: !1,
2461
2506
  // default options, would be override by v-touch-options
2462
- options: yn
2507
+ options: Sn
2463
2508
  };
2464
2509
  return o && (t.options = Object.assign({}, t.options, o)), e.$$touchObj = t, e.$$touchObj;
2465
2510
  }
2466
- const Fn = {
2511
+ const Gn = {
2467
2512
  beforeMount: function(e, o) {
2468
- const t = _n(e);
2469
- let n = vn ? { passive: !0 } : !1;
2513
+ const t = Tn(e);
2514
+ let n = kn ? { passive: !0 } : !1;
2470
2515
  const s = o.arg || "tap";
2471
2516
  switch (s) {
2472
2517
  case "swipe":
2473
- let a = o.modifiers;
2474
- if (a.left || a.right || a.top || a.bottom) {
2475
- for (let r in o.modifiers)
2476
- if (["left", "right", "top", "bottom"].indexOf(r) >= 0) {
2477
- let l = "swipe." + r;
2478
- t.callbacks[l] = t.callbacks[l] || [], t.callbacks[l].push(o);
2518
+ let i = o.modifiers;
2519
+ if (i.left || i.right || i.top || i.bottom) {
2520
+ for (let l in o.modifiers)
2521
+ if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
2522
+ let r = "swipe." + l;
2523
+ t.callbacks[r] = t.callbacks[r] || [], t.callbacks[r].push(o);
2479
2524
  }
2480
2525
  } else
2481
2526
  t.callbacks.swipe = t.callbacks.swipe || [], t.callbacks.swipe.push(o);
@@ -2493,53 +2538,53 @@ const Fn = {
2493
2538
  }
2494
2539
  };
2495
2540
  export {
2496
- Sn as DAccordion,
2497
- To as DAlertDialog,
2498
- Mt as DBadge,
2499
- ie as DButton,
2500
- In as DCard,
2501
- Bn as DCheckbox,
2502
- Nt as DCollapse,
2503
- Tn as DConfigProvider,
2504
- Do as DConfirmDialog,
2505
- eo as DContextMenu,
2506
- Mn as DDialogProvider,
2507
- At as DDrag,
2508
- Qt as DDrop,
2509
- Cn as DDropdown,
2541
+ In as DAccordion,
2542
+ Eo as DAlertDialog,
2543
+ Rt as DBadge,
2544
+ Q as DButton,
2545
+ On as DCard,
2546
+ zn as DCheckbox,
2547
+ Vt as DCollapse,
2548
+ En as DConfigProvider,
2549
+ Mo as DConfirmDialog,
2550
+ ao as DContextMenu,
2551
+ Rn as DDialogProvider,
2552
+ Pt as DDrag,
2553
+ io as DDrop,
2554
+ Nn as DDropdown,
2510
2555
  de as DGlobalStore,
2511
- Hn as DGrid,
2556
+ Fn as DGrid,
2512
2557
  ce as DIcon,
2513
- U as DIconStore,
2514
- An as DImage,
2515
- En as DInfoProgress,
2516
- $n as DInput,
2517
- kn as DLayoutAdmin,
2518
- io as DLayoutContent,
2519
- so as DLayoutFooter,
2520
- oo as DLayoutHeader,
2521
- ao as DLayoutSidebar,
2522
- no as DLayoutTab,
2558
+ Z as DIconStore,
2559
+ Pn as DImage,
2560
+ An as DInfoProgress,
2561
+ Cn as DInput,
2562
+ Ln as DLayoutAdmin,
2563
+ po as DLayoutContent,
2564
+ uo as DLayoutFooter,
2565
+ ro as DLayoutHeader,
2566
+ fo as DLayoutSidebar,
2567
+ co as DLayoutTab,
2523
2568
  je as DMenu,
2524
2569
  Ye as DModal,
2525
- Ln as DNotificationProvider,
2526
- Bo as DPanel,
2527
- Dn as DScroll,
2528
- wn as DScrollProvider,
2529
- Nn as DSelect,
2530
- On as DTabs,
2570
+ Hn as DNotificationProvider,
2571
+ zo as DPanel,
2572
+ Mn as DScroll,
2573
+ Bn as DScrollProvider,
2574
+ Vn as DSelect,
2575
+ Wn as DTabs,
2531
2576
  ge as DTransferStore,
2532
2577
  Xe as DTree,
2533
- Kt as DTreeItem,
2578
+ no as DTreeItem,
2534
2579
  g as DTreeStore,
2535
- rn as alert,
2536
- Rn as clickOutside,
2537
- an as confirm,
2580
+ pn as alert,
2581
+ Xn as clickOutside,
2582
+ fn as confirm,
2538
2583
  j as emitter,
2539
- Jt as eventsBus,
2540
- Vn as focus,
2541
- Wn as keydown,
2584
+ so as eventsBus,
2585
+ qn as focus,
2586
+ Yn as keydown,
2542
2587
  Ge as notify,
2543
- Fn as touch,
2544
- zn as useNotification
2588
+ Gn as touch,
2589
+ jn as useNotification
2545
2590
  };