doph-js 0.3.15 → 0.3.16

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 Ee, computed as g, h as Ae, openBlock as d, createBlock as y, unref as B, ref as D, createElementBlock as f, Fragment as Q, normalizeClass as T, renderSlot as F, createCommentVNode as k, normalizeStyle as P, resolveDynamicComponent as q, createStaticVNode as Dt, onMounted as be, toDisplayString as N, withDirectives as Z, createElementVNode as $, vModelDynamic as Be, withCtx as I, createTextVNode as G, Transition as ze, withModifiers as O, resolveComponent as de, resolveDirective as Pe, normalizeProps as Tt, guardReactiveProps as Lt, createVNode as x, renderList as ue, pushScopeId as Xt, popScopeId as Yt, reactive as je, Teleport as Bt, nextTick as It, getCurrentInstance as We, watch as Et, onUnmounted as Ft, mergeProps as ge, useCssVars as Fe, shallowRef as Ut, defineComponent as le, TransitionGroup as Ht, vModelCheckbox as Rt, vModelSelect as qt, toRef as Gt, KeepAlive as Kt, vShow as Zt, toRefs as Jt, vModelText as Mt } from "vue";
1
+ import { useSlots as Ee, computed as g, h as Ae, openBlock as d, createBlock as y, unref as B, ref as D, createElementBlock as f, Fragment as Q, normalizeClass as T, renderSlot as F, createCommentVNode as k, normalizeStyle as P, resolveDynamicComponent as q, createStaticVNode as Dt, onMounted as be, toDisplayString as N, withDirectives as Z, createElementVNode as S, vModelDynamic as Be, withCtx as I, createTextVNode as G, Transition as ze, withModifiers as O, resolveComponent as de, resolveDirective as Pe, normalizeProps as Tt, guardReactiveProps as Lt, createVNode as x, renderList as ue, pushScopeId as Xt, popScopeId as Yt, reactive as je, Teleport as Bt, nextTick as It, getCurrentInstance as We, watch as Et, onUnmounted as Ft, mergeProps as ge, useCssVars as Fe, shallowRef as Ut, defineComponent as ae, TransitionGroup as Ht, vModelCheckbox as Rt, vModelSelect as qt, toRef as Gt, KeepAlive as Kt, vShow as Zt, toRefs as Jt, vModelText as Mt } from "vue";
2
2
  const ce = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -9,15 +9,15 @@ const ce = {
9
9
  },
10
10
  setup(e) {
11
11
  const t = e, o = Ee(), s = g(() => {
12
- const { className: l } = t;
13
- return l === void 0 ? "icon" : ["icon", l].join(" ");
12
+ const { className: a } = t;
13
+ return a === void 0 ? "icon" : ["icon", a].join(" ");
14
14
  }), n = g(() => {
15
- const { color: l } = t;
16
- return l === void 0 ? null : l;
15
+ const { color: a } = t;
16
+ return a === void 0 ? null : a;
17
17
  }), i = g(() => {
18
- const l = t.size ?? null;
19
- if (l !== void 0)
20
- return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
18
+ const a = t.size ?? null;
19
+ if (a !== void 0)
20
+ return typeof a == "number" || /^\d+$/.test(a) ? `${a}px` : a;
21
21
  }), r = g(() => Ae(
22
22
  "i",
23
23
  {
@@ -29,7 +29,7 @@ const ce = {
29
29
  },
30
30
  t.component ? Ae(t.component) : o
31
31
  ));
32
- return (l, a) => (d(), y(B(r)));
32
+ return (a, l) => (d(), y(B(r)));
33
33
  }
34
34
  }, ne = {
35
35
  state: {},
@@ -95,7 +95,7 @@ const ie = (e, t) => {
95
95
  viewBox: "0 0 24 24"
96
96
  }, io = /* @__PURE__ */ Dt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), ro = [
97
97
  io
98
- ], ao = {
98
+ ], lo = {
99
99
  __name: "DButton",
100
100
  props: {
101
101
  class: String,
@@ -120,34 +120,34 @@ const ie = (e, t) => {
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
122
  setup(e, { expose: t, emit: o }) {
123
- const s = e, n = Ee(), i = D(null), r = g(() => s.icon ? ne.getters.getIcon(s.icon) : null), l = (S) => {
124
- o("click", S);
125
- }, a = (S) => {
126
- o("contextmenu", S);
127
- }, c = g(() => s.scale === "large" ? "button-lg" : s.scale === "small" ? "button-sm" : ""), u = g(() => s.disabled ? "disabled" : ""), p = (S) => !!n[S], v = g(() => p("default") ? "" : s.scale === "large" ? "d-button-lg-icon" : s.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), w = g(() => {
128
- const S = s.outline ? "-outline" : "";
129
- return s.type === "primary" ? `button${S}-blue` : s.type === "success" ? `button${S}-green` : s.type === "error" ? `button${S}-red` : s.type === "warning" ? `button${S}-orange` : s.type === "wait" ? `button${S}-violet` : s.outline ? `button${S}` : "";
123
+ const s = e, n = Ee(), i = D(null), r = g(() => s.icon ? ne.getters.getIcon(s.icon) : null), a = ($) => {
124
+ o("click", $);
125
+ }, l = ($) => {
126
+ o("contextmenu", $);
127
+ }, c = g(() => s.scale === "large" ? "button-lg" : s.scale === "small" ? "button-sm" : ""), u = g(() => s.disabled ? "disabled" : ""), p = ($) => !!n[$], v = g(() => p("default") ? "" : s.scale === "large" ? "d-button-lg-icon" : s.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), w = g(() => {
128
+ const $ = s.outline ? "-outline" : "";
129
+ return s.type === "primary" ? `button${$}-blue` : s.type === "success" ? `button${$}-green` : s.type === "error" ? `button${$}-red` : s.type === "warning" ? `button${$}-orange` : s.type === "wait" ? `button${$}-violet` : s.outline ? `button${$}` : "";
130
130
  });
131
131
  return t({
132
132
  elementSize: () => Nt(i)
133
- }), (S, V) => (d(), f(Q, null, [
133
+ }), ($, V) => (d(), f(Q, null, [
134
134
  r.value ? k("", !0) : (d(), f("div", {
135
135
  key: 0,
136
136
  ref_key: "el",
137
137
  ref: i,
138
- onClick: l,
139
- onContextmenu: a,
138
+ onClick: a,
139
+ onContextmenu: l,
140
140
  class: T(["button", [s.class, c.value, w.value, u.value].join(" ")])
141
141
  }, [
142
- F(S.$slots, "default", {}, void 0, !0),
142
+ F($.$slots, "default", {}, void 0, !0),
143
143
  s.loading ? (d(), f("svg", eo, oo)) : k("", !0)
144
144
  ], 34)),
145
145
  r.value ? (d(), f("div", {
146
146
  key: 1,
147
147
  ref_key: "el",
148
148
  ref: i,
149
- onClick: l,
150
- onContextmenu: a,
149
+ onClick: a,
150
+ onContextmenu: l,
151
151
  class: T(["button button-ext", [s.class, c.value, v.value, w.value, u.value].join(" ")]),
152
152
  style: P(s.style)
153
153
  }, [
@@ -157,14 +157,14 @@ const ie = (e, t) => {
157
157
  color: "inherit"
158
158
  }, null, 8, ["component"])) : k("", !0),
159
159
  B(n).default ? (d(), f("div", so, [
160
- F(S.$slots, "default", {}, void 0, !0)
160
+ F($.$slots, "default", {}, void 0, !0)
161
161
  ])) : k("", !0),
162
162
  s.loading ? (d(), f("svg", no, ro)) : k("", !0)
163
163
  ], 38)) : k("", !0)
164
164
  ], 64));
165
165
  }
166
- }, te = /* @__PURE__ */ ie(ao, [["__scopeId", "data-v-e5cd6ccd"]]);
167
- const lo = {
166
+ }, te = /* @__PURE__ */ ie(lo, [["__scopeId", "data-v-e5cd6ccd"]]);
167
+ const ao = {
168
168
  key: 0,
169
169
  class: "d-input"
170
170
  }, co = {
@@ -184,7 +184,7 @@ const lo = {
184
184
  }, yo = {
185
185
  key: 0,
186
186
  class: "label"
187
- }, bo = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, _o = { style: { flex: "1" } }, ko = ["type", "placeholder"], $o = {
187
+ }, bo = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, _o = { style: { flex: "1" } }, ko = ["type", "placeholder"], So = {
188
188
  __name: "DInput",
189
189
  props: {
190
190
  label: String,
@@ -201,21 +201,21 @@ const lo = {
201
201
  setup(e, { expose: t, emit: o }) {
202
202
  const s = e, n = D(null), i = g(() => s.scale === "small" ? "d-input-small" : s.scale === "large" ? "d-input-large" : ""), r = g({
203
203
  get: () => s.modelValue,
204
- set: (a) => {
205
- o("update:modelValue", a);
204
+ set: (l) => {
205
+ o("update:modelValue", l);
206
206
  }
207
207
  });
208
208
  be(() => {
209
- s.focus && l();
209
+ s.focus && a();
210
210
  });
211
- const l = () => {
211
+ const a = () => {
212
212
  n.value.focus();
213
213
  };
214
214
  return t({
215
- focus: l
216
- }), (a, c) => !s.post && !s.pre ? (d(), f("div", lo, [
215
+ focus: a
216
+ }), (l, c) => !s.post && !s.pre ? (d(), f("div", ao, [
217
217
  s.label ? (d(), f("div", co, N(s.label), 1)) : k("", !0),
218
- Z($("input", {
218
+ Z(S("input", {
219
219
  ref_key: "inputRef",
220
220
  ref: n,
221
221
  "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
@@ -228,9 +228,9 @@ const lo = {
228
228
  ])
229
229
  ])) : s.post && s.post.click && !s.pre ? (d(), f("div", po, [
230
230
  s.label ? (d(), f("div", fo, N(s.label), 1)) : k("", !0),
231
- $("div", ho, [
232
- $("div", mo, [
233
- Z($("input", {
231
+ S("div", ho, [
232
+ S("div", mo, [
233
+ Z(S("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: n,
236
236
  class: T(["d-input-post-field", i.value]),
@@ -263,7 +263,7 @@ const lo = {
263
263
  ])
264
264
  ])) : !s.post && s.pre && s.pre.click ? (d(), f("div", vo, [
265
265
  s.label ? (d(), f("div", yo, N(s.label), 1)) : k("", !0),
266
- $("div", bo, [
266
+ S("div", bo, [
267
267
  s.pre.label ? (d(), y(te, {
268
268
  key: 0,
269
269
  scale: s.scale,
@@ -282,8 +282,8 @@ const lo = {
282
282
  onClick: s.pre.click,
283
283
  icon: s.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
285
- $("div", _o, [
286
- Z($("input", {
285
+ S("div", _o, [
286
+ Z(S("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: n,
289
289
  class: T(["d-input-pre-field", i.value]),
@@ -298,7 +298,7 @@ const lo = {
298
298
  ])
299
299
  ])) : k("", !0);
300
300
  }
301
- }, vi = /* @__PURE__ */ ie($o, [["__scopeId", "data-v-a972038a"]]), So = {
301
+ }, vi = /* @__PURE__ */ ie(So, [["__scopeId", "data-v-a972038a"]]), $o = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -320,7 +320,7 @@ const lo = {
320
320
  F(n.$slots, "default")
321
321
  ], 2));
322
322
  }
323
- }, ae = "0px", xo = {
323
+ }, le = "0px", xo = {
324
324
  __name: "DCollapse",
325
325
  props: {
326
326
  duration: {
@@ -345,41 +345,41 @@ const lo = {
345
345
  }
346
346
  },
347
347
  setup(e) {
348
- const t = e, o = (a) => ({
349
- height: a == null ? void 0 : a.style.height,
350
- width: a == null ? void 0 : a.style.width,
351
- position: a == null ? void 0 : a.style.position,
352
- visibility: a == null ? void 0 : a.style.visibility,
353
- overflow: a == null ? void 0 : a.style.overflow,
354
- paddingTop: a == null ? void 0 : a.style.paddingTop,
355
- paddingBottom: a == null ? void 0 : a.style.paddingBottom,
356
- borderTopWidth: a == null ? void 0 : a.style.borderTopWidth,
357
- borderBottomWidth: a == null ? void 0 : a.style.borderBottomWidth,
358
- marginTop: a == null ? void 0 : a.style.marginTop,
359
- marginBottom: a == null ? void 0 : a.style.marginBottom
360
- }), s = (a, c) => {
361
- const { width: u } = getComputedStyle(a);
362
- a.style.width = u, a.style.position = "absolute", a.style.visibility = "hidden", a.style.height = "";
363
- let { height: p } = getComputedStyle(a);
364
- return a.style.width = c.width, a.style.position = c.position, a.style.visibility = c.visibility, a.style.height = ae, a.style.overflow = "hidden", c.height && c.height !== ae ? c.height : p;
365
- }, n = (a, c, u, p, v) => {
366
- const w = a.animate(p, v);
367
- a.style.height = c.height, w.onfinish = () => {
368
- a.style.overflow = c.overflow, u();
348
+ const t = e, o = (l) => ({
349
+ height: l == null ? void 0 : l.style.height,
350
+ width: l == null ? void 0 : l.style.width,
351
+ position: l == null ? void 0 : l.style.position,
352
+ visibility: l == null ? void 0 : l.style.visibility,
353
+ overflow: l == null ? void 0 : l.style.overflow,
354
+ paddingTop: l == null ? void 0 : l.style.paddingTop,
355
+ paddingBottom: l == null ? void 0 : l.style.paddingBottom,
356
+ borderTopWidth: l == null ? void 0 : l.style.borderTopWidth,
357
+ borderBottomWidth: l == null ? void 0 : l.style.borderBottomWidth,
358
+ marginTop: l == null ? void 0 : l.style.marginTop,
359
+ marginBottom: l == null ? void 0 : l.style.marginBottom
360
+ }), s = (l, c) => {
361
+ const { width: u } = getComputedStyle(l);
362
+ l.style.width = u, l.style.position = "absolute", l.style.visibility = "hidden", l.style.height = "";
363
+ let { height: p } = getComputedStyle(l);
364
+ return l.style.width = c.width, l.style.position = c.position, l.style.visibility = c.visibility, l.style.height = le, l.style.overflow = "hidden", c.height && c.height !== le ? c.height : p;
365
+ }, n = (l, c, u, p, v) => {
366
+ const w = l.animate(p, v);
367
+ l.style.height = c.height, w.onfinish = () => {
368
+ l.style.overflow = c.overflow, u();
369
369
  };
370
- }, i = (a, c) => [
370
+ }, i = (l, c) => [
371
371
  {
372
- height: ae,
372
+ height: le,
373
373
  opacity: t.opacityClosed,
374
- paddingTop: ae,
375
- paddingBottom: ae,
376
- borderTopWidth: ae,
377
- borderBottomWidth: ae,
378
- marginTop: ae,
379
- marginBottom: ae
374
+ paddingTop: le,
375
+ paddingBottom: le,
376
+ borderTopWidth: le,
377
+ borderBottomWidth: le,
378
+ marginTop: le,
379
+ marginBottom: le
380
380
  },
381
381
  {
382
- height: a,
382
+ height: l,
383
383
  opacity: t.opacityOpened,
384
384
  paddingTop: c.paddingTop,
385
385
  paddingBottom: c.paddingBottom,
@@ -388,22 +388,22 @@ const lo = {
388
388
  marginTop: c.marginTop,
389
389
  marginBottom: c.marginBottom
390
390
  }
391
- ], r = (a, c) => {
392
- const u = a, p = o(u), v = s(u, p), w = i(v, p), E = { duration: t.duration, easing: t.easingEnter };
391
+ ], r = (l, c) => {
392
+ const u = l, p = o(u), v = s(u, p), w = i(v, p), E = { duration: t.duration, easing: t.easingEnter };
393
393
  n(u, p, c, w, E);
394
- }, l = (a, c) => {
395
- const u = a, p = o(u), { height: v } = getComputedStyle(u);
394
+ }, a = (l, c) => {
395
+ const u = l, p = o(u), { height: v } = getComputedStyle(u);
396
396
  u.style.height = v, u.style.overflow = "hidden";
397
397
  const w = i(v, p).reverse(), E = { duration: t.duration, easing: t.easingLeave };
398
398
  n(u, p, c, w, E);
399
399
  };
400
- return (a, c) => (d(), y(ze, {
400
+ return (l, c) => (d(), y(ze, {
401
401
  css: !1,
402
402
  onEnter: r,
403
- onLeave: l
403
+ onLeave: a
404
404
  }, {
405
405
  default: I(() => [
406
- F(a.$slots, "default")
406
+ F(l.$slots, "default")
407
407
  ]),
408
408
  _: 3
409
409
  }));
@@ -442,32 +442,32 @@ const lo = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(e) {
445
- const t = e, o = Ee(), s = D(!1), n = g(() => s && t.transferData), i = g(() => ({ position: "fixed", top: "-1000px" })), r = (l, a) => {
446
- const c = a.dataTransfer;
447
- if ([Y.dragenter, Y.dragover].includes(l) && t.dropEffect && (c.dropEffect = t.dropEffect), l === Y.dragstart) {
445
+ const t = e, o = Ee(), s = D(!1), n = g(() => s && t.transferData), i = g(() => ({ position: "fixed", top: "-1000px" })), r = (a, l) => {
446
+ const c = l.dataTransfer;
447
+ if ([Y.dragenter, Y.dragover].includes(a) && t.dropEffect && (c.dropEffect = t.dropEffect), a === Y.dragstart) {
448
448
  if (t.effectAllowed && (c.effectAllowed = t.effectAllowed), t.image || o.image) {
449
449
  let u;
450
450
  t.image ? (u = new Image(), u.src = t.image) : o.image && (u = o.image[0].elm), c.setDragImage && c.setDragImage(u, t.imageXOffset, t.imageYOffset);
451
451
  }
452
- t.transferData !== void 0 && (Ie.data = t.transferData, a.dataTransfer.setData("text", "")), s.value = !0;
452
+ t.transferData !== void 0 && (Ie.data = t.transferData, l.dataTransfer.setData("text", "")), s.value = !0;
453
453
  }
454
454
  };
455
- return (l, a) => (d(), y(q(e.tag), {
455
+ return (a, l) => (d(), y(q(e.tag), {
456
456
  draggable: t.draggable,
457
- onDrag: a[0] || (a[0] = (c) => r(B(Y).drag, c)),
458
- onDragstart: a[1] || (a[1] = O((c) => r(B(Y).dragstart, c), ["stop"])),
459
- onDragenter: a[2] || (a[2] = (c) => r(B(Y).dragenter, c)),
460
- onDragleave: a[3] || (a[3] = (c) => r(B(Y).dragleave, c)),
461
- onDragend: a[4] || (a[4] = (c) => r(B(Y).dragend, c))
457
+ onDrag: l[0] || (l[0] = (c) => r(B(Y).drag, c)),
458
+ onDragstart: l[1] || (l[1] = O((c) => r(B(Y).dragstart, c), ["stop"])),
459
+ onDragenter: l[2] || (l[2] = (c) => r(B(Y).dragenter, c)),
460
+ onDragleave: l[3] || (l[3] = (c) => r(B(Y).dragleave, c)),
461
+ onDragend: l[4] || (l[4] = (c) => r(B(Y).dragend, c))
462
462
  }, {
463
463
  default: I(() => [
464
- F(l.$slots, "default", { transferData: n.value }),
464
+ F(a.$slots, "default", { transferData: n.value }),
465
465
  e.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
467
467
  style: P(i.value)
468
468
  }, [
469
- F(l.$slots, "image", { transferData: n.value })
470
- ], 4)) : F(l.$slots, "image", {
469
+ F(a.$slots, "image", { transferData: n.value })
470
+ ], 4)) : F(a.$slots, "image", {
471
471
  key: 1,
472
472
  transferData: n.value
473
473
  })
@@ -479,7 +479,7 @@ const lo = {
479
479
  const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
480
480
  key: 0,
481
481
  style: { display: "none" }
482
- }, Lo = { key: 1 }, Bo = /* @__PURE__ */ Do(() => /* @__PURE__ */ $("div", { class: "tree-divider" }, null, -1)), Io = [
482
+ }, Lo = { key: 1 }, Bo = /* @__PURE__ */ Do(() => /* @__PURE__ */ S("div", { class: "tree-divider" }, null, -1)), Io = [
483
483
  Bo
484
484
  ], Eo = { key: 2 }, Fo = { class: "tree-divider-header" }, Ho = { class: "item-title" }, Ro = {
485
485
  key: 0,
@@ -498,7 +498,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
498
498
  },
499
499
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext", "nodedoubleclick", "nodefoldericonclick"],
500
500
  setup(e, { emit: t }) {
501
- const o = e, s = D(null), n = D(!1), i = D(!1), r = D(!1), l = g(() => o.model.children && o.model.children.length), a = g(() => (b.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (M) => {
501
+ const o = e, s = D(null), n = D(!1), i = D(!1), r = D(!1), a = g(() => o.model.children && o.model.children.length), l = g(() => (b.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (M) => {
502
502
  t("nodeclick", { event: M, model: o.model });
503
503
  }, u = (M) => {
504
504
  t("nodefoldericonclick", { event: M, model: o.model });
@@ -510,7 +510,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
510
510
  t("nodedoubleclick", M);
511
511
  }, E = (M) => {
512
512
  t("nodedrop", M);
513
- }, S = (M) => {
513
+ }, $ = (M) => {
514
514
  t("nodecontext", M);
515
515
  }, V = g(() => [
516
516
  b.actions.isItemSelected(o.treeId, o.model.id) ? "selected" : "",
@@ -551,7 +551,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
551
551
  return (M, C) => {
552
552
  const z = de("d-tree-item", !0), X = Pe("touch");
553
553
  return B(b).actions.beforeItem(o.treeId, e.model) ? L.value && !W.value ? (d(), f("li", Lo, Io)) : L.value && W.value ? (d(), f("li", Eo, [
554
- $("div", Fo, N(B(b).actions.renderTitle(o.treeId, W.value)), 1)
554
+ S("div", Fo, N(B(b).actions.renderTitle(o.treeId, W.value)), 1)
555
555
  ])) : o.model.component ? (d(), y(_t, {
556
556
  key: 3,
557
557
  tag: "li",
@@ -592,7 +592,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
592
592
  default: I(() => {
593
593
  var m, h;
594
594
  return [
595
- $("div", {
595
+ S("div", {
596
596
  ref_key: "node",
597
597
  ref: s,
598
598
  class: T(V.value),
@@ -600,21 +600,21 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
600
600
  onDblclick: C[2] || (C[2] = O((_) => t("nodedoubleclick", { e: _, model: o.model }), ["prevent"])),
601
601
  onContextmenu: C[3] || (C[3] = O((_) => t("nodecontext", { e: _, model: o.model }), ["prevent"]))
602
602
  }, [
603
- $("div", null, [
604
- o.model.icons && o.model.icons.pre && l.value && !o.search && !L.value ? (d(), y(q(ce), {
603
+ S("div", null, [
604
+ o.model.icons && o.model.icons.pre && a.value && !o.search && !L.value ? (d(), y(q(ce), {
605
605
  key: 0,
606
606
  component: B(ne).getters.getIcon(o.model.icons.pre.component),
607
607
  size: 18,
608
608
  color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
609
- class: T(a.value ? "tree-open-pre" : ""),
609
+ class: T(l.value ? "tree-open-pre" : ""),
610
610
  onPointerdownCapture: u
611
611
  }, null, 40, ["component", "color", "class"])) : k("", !0),
612
- o.model.icons && o.model.icons.pre && !l.value && !o.search && !L.value ? (d(), y(q(ce), {
612
+ o.model.icons && o.model.icons.pre && !a.value && !o.search && !L.value ? (d(), y(q(ce), {
613
613
  key: 1,
614
614
  component: B(ne).getters.getIcon(o.model.icons.pre.component),
615
615
  size: 18,
616
616
  color: "rgba(0,0,0,0)",
617
- class: T(a.value ? "tree-open-pre" : "")
617
+ class: T(l.value ? "tree-open-pre" : "")
618
618
  }, null, 8, ["component", "class"])) : k("", !0),
619
619
  o.model.icons && o.model.icons.icon && !L.value ? (d(), y(q(ce), {
620
620
  key: 2,
@@ -623,7 +623,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
623
623
  size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
624
624
  className: o.model.icons.icon.class ? o.model.icons.icon.class : null
625
625
  }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
626
- $("div", Ho, [
626
+ S("div", Ho, [
627
627
  L.value ? (d(), f("div", Ro)) : k("", !0),
628
628
  !L.value && Object.hasOwn(o.model, "link") ? (d(), f("a", {
629
629
  key: 1,
@@ -635,8 +635,8 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
635
635
  !L.value && !Object.hasOwn(o.model, "link") ? (d(), f("div", Ao, N(B(b).actions.renderTitle(o.treeId, o.model.title)), 1)) : k("", !0)
636
636
  ])
637
637
  ]),
638
- $("div", Oo, [
639
- ((m = o.model.badge) == null ? void 0 : m.value) !== void 0 && !L.value ? (d(), y(q(So), {
638
+ S("div", Oo, [
639
+ ((m = o.model.badge) == null ? void 0 : m.value) !== void 0 && !L.value ? (d(), y(q($o), {
640
640
  key: 0,
641
641
  class: T([(h = o.model.badge) == null ? void 0 : h.class, "badge-sm"])
642
642
  }, {
@@ -645,19 +645,19 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
645
645
  ]),
646
646
  _: 1
647
647
  }, 8, ["class"])) : k("", !0),
648
- o.model.icons && o.model.icons.post && l.value && !o.search && !L.value ? (d(), y(q(ce), {
648
+ o.model.icons && o.model.icons.post && a.value && !o.search && !L.value ? (d(), y(q(ce), {
649
649
  key: 1,
650
650
  component: B(ne).getters.getIcon(o.model.icons.post.component),
651
651
  size: 20,
652
652
  color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
653
- class: T(a.value ? "tree-open-post" : ""),
653
+ class: T(l.value ? "tree-open-post" : ""),
654
654
  onPointerdownCapture: u
655
655
  }, null, 40, ["component", "color", "class"])) : k("", !0)
656
656
  ])
657
657
  ], 34),
658
658
  x(xo, null, {
659
659
  default: I(() => [
660
- l.value && a.value && !o.search ? (d(), f("ul", Vo, [
660
+ a.value && l.value && !o.search ? (d(), f("ul", Vo, [
661
661
  (d(!0), f(Q, null, ue(e.model.children, (_) => (d(), y(z, {
662
662
  key: _.id,
663
663
  model: _,
@@ -667,7 +667,7 @@ const Do = (e) => (Xt("data-v-09adec49"), e = e(), Yt(), e), To = {
667
667
  onNodeclick: v,
668
668
  onNodedoubleclick: w,
669
669
  onNodedrop: E,
670
- onNodecontext: S,
670
+ onNodecontext: $,
671
671
  onNodefoldericonclick: p
672
672
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
673
673
  ])) : k("", !0)
@@ -755,8 +755,8 @@ const K = jo(), b = {
755
755
  }
756
756
  },
757
757
  actions: {
758
- initTreeStore(e, t, o, s, n, i, r, l = !0) {
759
- b.state.trees[e] = [], b.state.trees[e].selected = [], b.state.trees[e].noSelect = t, b.state.trees[e].multiSelect = o, b.state.trees[e].expanded = s, b.state.trees[e].transfer = n, b.state.trees[e].renderTitle = i, b.state.trees[e].beforeItem = r, b.state.trees[e].dropInside = l;
758
+ initTreeStore(e, t, o, s, n, i, r, a = !0) {
759
+ b.state.trees[e] = [], b.state.trees[e].selected = [], b.state.trees[e].noSelect = t, b.state.trees[e].multiSelect = o, b.state.trees[e].expanded = s, b.state.trees[e].transfer = n, b.state.trees[e].renderTitle = i, b.state.trees[e].beforeItem = r, b.state.trees[e].dropInside = a;
760
760
  },
761
761
  renderTitle(e, t) {
762
762
  return b.state.trees[e].renderTitle ? b.state.trees[e].renderTitle(t) : t;
@@ -803,8 +803,8 @@ const K = jo(), b = {
803
803
  },
804
804
  moveTreeNode(e, t, o, s, n, i, r = !0) {
805
805
  if (r) {
806
- const l = b.actions.deleteTreeNode(o, s);
807
- b.actions.insertTreeNode(o, n, l, i), K.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: l == null ? void 0 : l.id, target: n, position: i });
806
+ const a = b.actions.deleteTreeNode(o, s);
807
+ b.actions.insertTreeNode(o, n, a, i), K.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: a == null ? void 0 : a.id, target: n, position: i });
808
808
  } else
809
809
  K.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: s, target: n, position: i });
810
810
  },
@@ -841,7 +841,7 @@ const K = jo(), b = {
841
841
  emits: Object.keys(Y),
842
842
  setup(e, { expose: t, emit: o }) {
843
843
  let s = je({});
844
- const n = D("false"), i = D(null), r = /* @__PURE__ */ new Set(), l = g(() => n.value && s), a = (u, p) => {
844
+ const n = D("false"), i = D(null), r = /* @__PURE__ */ new Set(), a = g(() => n.value && s), l = (u, p) => {
845
845
  s = Ie.data, o(u, p, s), u === Y.dragenter && (r.size || p.target === i.value) && r.add(p.target), u === Y.dragleave && r.delete(p.target), u === Y.drop && r.clear(), n.value = !!r.size;
846
846
  };
847
847
  return t({
@@ -849,13 +849,13 @@ const K = jo(), b = {
849
849
  }), (u, p) => (d(), y(q(e.tag), {
850
850
  ref_key: "el",
851
851
  ref: i,
852
- onDragenter: p[0] || (p[0] = (v) => a(B(Y).dragenter, v)),
853
- onDragleave: p[1] || (p[1] = (v) => a(B(Y).dragleave, v)),
854
- onDragover: p[2] || (p[2] = O((v) => a(B(Y).dragover, v), ["prevent"])),
855
- onDrop: p[3] || (p[3] = O((v) => a(B(Y).drop, v), ["prevent"]))
852
+ onDragenter: p[0] || (p[0] = (v) => l(B(Y).dragenter, v)),
853
+ onDragleave: p[1] || (p[1] = (v) => l(B(Y).dragleave, v)),
854
+ onDragover: p[2] || (p[2] = O((v) => l(B(Y).dragover, v), ["prevent"])),
855
+ onDrop: p[3] || (p[3] = O((v) => l(B(Y).drop, v), ["prevent"]))
856
856
  }, {
857
857
  default: I(() => [
858
- F(u.$slots, "default", { transferData: l.value })
858
+ F(u.$slots, "default", { transferData: a.value })
859
859
  ]),
860
860
  _: 3
861
861
  }, 544));
@@ -883,21 +883,21 @@ const K = jo(), b = {
883
883
  let n = D(null), i = D(!1);
884
884
  const r = () => {
885
885
  K.emit("menu-show-request"), i.value = !0;
886
- }, l = () => {
886
+ }, a = () => {
887
887
  var v;
888
888
  (v = n.value) == null || v.collapseAll(), i.value = !1;
889
- }, a = () => i.value;
889
+ }, l = () => i.value;
890
890
  K.on("menu-show-request", () => {
891
- l();
891
+ a();
892
892
  }), t({
893
893
  show: r,
894
- hide: l,
894
+ hide: a,
895
895
  elementSize: () => n.value.elementSize(),
896
- isShowed: a,
896
+ isShowed: l,
897
897
  itemsCount: () => n.value.itemsCount()
898
898
  });
899
899
  const p = (v) => {
900
- o("select", v), v.model.children || l();
900
+ o("select", v), v.model.children || a();
901
901
  };
902
902
  return (v, w) => {
903
903
  const E = Pe("click-outside");
@@ -914,7 +914,7 @@ const K = jo(), b = {
914
914
  "render-title": s.renderItemTitle,
915
915
  "before-item": s.beforeItem
916
916
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
917
- [E, () => l()]
917
+ [E, () => a()]
918
918
  ]) : k("", !0)
919
919
  ]);
920
920
  };
@@ -928,10 +928,10 @@ const K = jo(), b = {
928
928
  },
929
929
  emits: ["select"],
930
930
  setup(e, { expose: t, emit: o }) {
931
- const s = e, n = D(null), i = D(0), r = D(0), l = g(() => ({
931
+ const s = e, n = D(null), i = D(0), r = D(0), a = g(() => ({
932
932
  left: i.value + "px",
933
933
  top: r.value + "px"
934
- })), a = (u) => {
934
+ })), l = (u) => {
935
935
  n.value.show(), It(() => {
936
936
  const p = n.value.elementSize(), v = window.innerWidth, w = window.innerHeight;
937
937
  i.value = v - u.pageX < p.width ? u.pageX - p.width : u.pageX, r.value = w - u.pageY < p.height ? u.pageY - p.height : u.pageY, n.value.itemsCount() === 0 && n.value.hide();
@@ -940,13 +940,13 @@ const K = jo(), b = {
940
940
  o("select", u);
941
941
  };
942
942
  return t({
943
- show: a
943
+ show: l
944
944
  }), (u, p) => (d(), y(At, {
945
945
  ref_key: "dMenuRef",
946
946
  ref: n,
947
947
  onSelect: c,
948
948
  items: s.items,
949
- style: P(l.value),
949
+ style: P(a.value),
950
950
  class: "context-menu",
951
951
  "no-select": !0,
952
952
  "render-item-title": s.renderItemTitle,
@@ -1001,30 +1001,30 @@ const K = jo(), b = {
1001
1001
  },
1002
1002
  emits: ["select", "collapse", "expand", "move", "over", "drop", "doubleclick", "foldericonclick"],
1003
1003
  setup(e, { expose: t, emit: o }) {
1004
- const s = e, n = D(null), i = D(!1), r = D(null), l = We().uid;
1005
- b.actions.initTreeStore(l, s.noSelect, s.multiSelect, s.expanded, s.transfer, s.renderTitle, s.beforeItem, s.dropInside);
1006
- const a = (h, _) => {
1004
+ const s = e, n = D(null), i = D(!1), r = D(null), a = We().uid;
1005
+ b.actions.initTreeStore(a, s.noSelect, s.multiSelect, s.expanded, s.transfer, s.renderTitle, s.beforeItem, s.dropInside);
1006
+ const l = (h, _) => {
1007
1007
  console.log(h, _);
1008
1008
  };
1009
- K.on(`expand-${l}`, (h) => {
1009
+ K.on(`expand-${a}`, (h) => {
1010
1010
  o("expand", h);
1011
- }), K.on(`collapse-${l}`, (h) => {
1011
+ }), K.on(`collapse-${a}`, (h) => {
1012
1012
  o("collapse", h);
1013
- }), K.on(`move-${l}`, (h) => {
1013
+ }), K.on(`move-${a}`, (h) => {
1014
1014
  o("move", h);
1015
1015
  });
1016
1016
  const c = g(() => s.search ? b.actions.deepSearchByTitle(s.items, s.search) : s.items), u = (h) => {
1017
1017
  for (let _ = 0; _ < s.items.length; _++)
1018
- s.items[_].id === h && b.actions.toggleItem(l, s.items[_]), s.items[_].expanded = !0;
1018
+ s.items[_].id === h && b.actions.toggleItem(a, s.items[_]), s.items[_].expanded = !0;
1019
1019
  }, p = (h = null) => {
1020
- b.mutations.setItemSelect(l, h.model), s.doubleClickExpand || b.actions.toggleItem(l, h.model), o("select", h);
1020
+ b.mutations.setItemSelect(a, h.model), s.doubleClickExpand || b.actions.toggleItem(a, h.model), o("select", h);
1021
1021
  }, v = (h = null) => {
1022
- s.doubleClickExpand && b.actions.toggleItem(l, h.model), o("doubleclick", h);
1022
+ s.doubleClickExpand && b.actions.toggleItem(a, h.model), o("doubleclick", h);
1023
1023
  }, w = (h = null) => {
1024
- s.doubleClickExpand && b.actions.toggleItem(l, h.model), o("foldericonclick", h);
1024
+ s.doubleClickExpand && b.actions.toggleItem(a, h.model), o("foldericonclick", h);
1025
1025
  }, E = (h = null) => {
1026
1026
  o("over", h);
1027
- }, S = (h = null) => {
1027
+ }, $ = (h = null) => {
1028
1028
  o("drop", h);
1029
1029
  }, V = () => n.value.elementSize(), U = () => {
1030
1030
  for (let h = 0; h < s.items.length; h++)
@@ -1032,14 +1032,14 @@ const K = jo(), b = {
1032
1032
  }, R = () => {
1033
1033
  for (let h = 0; h < s.items.length; h++)
1034
1034
  s.items[h].expanded = !1;
1035
- }, H = () => l, j = (h) => b.actions.deepSearch(s.items, h), L = (h) => {
1036
- j(h) && b.mutations.setItemSelect(l, j(h));
1035
+ }, H = () => a, j = (h) => b.actions.deepSearch(s.items, h), L = (h) => {
1036
+ j(h) && b.mutations.setItemSelect(a, j(h));
1037
1037
  }, W = (h) => {
1038
1038
  s.contextClick({ e: h.e, model: h.model, target: r.value });
1039
1039
  }, M = (h) => s.contextBeforeClick({ model: h, target: r.value }), C = g(() => s.context), z = (h) => (C.value && (r.value = h.model, i.value.show(h.e)), !1), X = () => m(c.value), m = (h) => {
1040
1040
  let _ = 0;
1041
1041
  for (let A = 0; A < h.length; A++)
1042
- _ += b.actions.beforeItem(l, h[A]) ? 1 : 0, h[A].children && h[A].children.length > 0 && (_ += m(h[A].children));
1042
+ _ += b.actions.beforeItem(a, h[A]) ? 1 : 0, h[A].children && h[A].children.length > 0 && (_ += m(h[A].children));
1043
1043
  return _;
1044
1044
  };
1045
1045
  return t({
@@ -1056,19 +1056,19 @@ const K = jo(), b = {
1056
1056
  ref: n,
1057
1057
  class: "tree",
1058
1058
  tag: "ul",
1059
- onDrop: O(a, ["stop"])
1059
+ onDrop: O(l, ["stop"])
1060
1060
  }, {
1061
1061
  default: I(() => [
1062
1062
  (d(!0), f(Q, null, ue(c.value, (A) => (d(), y(Po, {
1063
1063
  key: A.id,
1064
1064
  model: A,
1065
- treeId: B(l),
1065
+ treeId: B(a),
1066
1066
  items: s.items,
1067
1067
  search: s.search,
1068
1068
  onNodeclick: p,
1069
1069
  onNodedoubleclick: v,
1070
1070
  onNodedragover: E,
1071
- onNodedrop: S,
1071
+ onNodedrop: $,
1072
1072
  onNodecontext: z,
1073
1073
  onNodefoldericonclick: w
1074
1074
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
@@ -1145,8 +1145,8 @@ const Yo = {
1145
1145
  },
1146
1146
  setup(e) {
1147
1147
  const t = e, o = g(() => {
1148
- const { fixed: s, zIndex: n, minWidth: i, height: r, paddingLeft: l, transitionDuration: a, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", p = t.useMinWidthLayout ? `min-width:${i}px;` : "";
1149
- return `position:${u};z-index:${n};${p}height:${r}px;padding-left:${l}px;transition-duration:${a}ms;transition-timing-function:${c};`;
1148
+ const { fixed: s, zIndex: n, minWidth: i, height: r, paddingLeft: a, transitionDuration: l, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", p = t.useMinWidthLayout ? `min-width:${i}px;` : "";
1149
+ return `position:${u};z-index:${n};${p}height:${r}px;padding-left:${a}px;transition-duration:${l}ms;transition-timing-function:${c};`;
1150
1150
  });
1151
1151
  return (s, n) => (d(), f("header", {
1152
1152
  class: "d-layout-header",
@@ -1194,8 +1194,8 @@ const Yo = {
1194
1194
  },
1195
1195
  setup(e) {
1196
1196
  const t = e, o = g(() => {
1197
- const { fixed: s, top: n, zIndex: i, minWidth: r, height: l, paddingLeft: a, transitionDuration: c, transitionTimingFunction: u } = t, p = s ? "fixed" : "static", v = t.useMinWidthLayout ? `min-width: ${r}px;` : "";
1198
- return `position:${p};top:${n}px;z-index:${i};${v}height:${l}px;padding-left:${a}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1197
+ const { fixed: s, top: n, zIndex: i, minWidth: r, height: a, paddingLeft: l, transitionDuration: c, transitionTimingFunction: u } = t, p = s ? "fixed" : "static", v = t.useMinWidthLayout ? `min-width: ${r}px;` : "";
1198
+ return `position:${p};top:${n}px;z-index:${i};${v}height:${a}px;padding-left:${l}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1199
1199
  });
1200
1200
  return (s, n) => (d(), f("div", {
1201
1201
  class: "d-layout-tab",
@@ -1239,8 +1239,8 @@ const Yo = {
1239
1239
  },
1240
1240
  setup(e) {
1241
1241
  const t = e, o = g(() => {
1242
- const { fixed: s, zIndex: n, minWidth: i, height: r, paddingLeft: l, transitionDuration: a, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", p = t.useMinWidthLayout ? `min-width:${i}px;` : "";
1243
- return `position:${u};z-index:${n};${p}height:${r}px;padding-left:${l}px;transition-duration:${a}ms;transition-timing-function:${c};`;
1242
+ const { fixed: s, zIndex: n, minWidth: i, height: r, paddingLeft: a, transitionDuration: l, transitionTimingFunction: c } = t, u = s ? "fixed" : "static", p = t.useMinWidthLayout ? `min-width:${i}px;` : "";
1243
+ return `position:${u};z-index:${n};${p}height:${r}px;padding-left:${a}px;transition-duration:${l}ms;transition-timing-function:${c};`;
1244
1244
  });
1245
1245
  return (s, n) => (d(), f("footer", {
1246
1246
  class: "d-layout-footer",
@@ -1279,8 +1279,8 @@ const Yo = {
1279
1279
  },
1280
1280
  setup(e) {
1281
1281
  const t = e, o = g(() => {
1282
- const { zIndex: s, width: n, paddingTop: i, transitionDuration: r, transitionTimingFunction: l } = t;
1283
- return `z-index:${s};width:${n}px;padding-top:${i}px;transition-duration:${r}ms;transition-timing-function:${l};`;
1282
+ const { zIndex: s, width: n, paddingTop: i, transitionDuration: r, transitionTimingFunction: a } = t;
1283
+ return `z-index:${s};width:${n}px;padding-top:${i}px;transition-duration:${r}ms;transition-timing-function:${a};`;
1284
1284
  });
1285
1285
  return (s, n) => (d(), f("aside", {
1286
1286
  class: "d-layout-sidebar",
@@ -1316,8 +1316,8 @@ const Yo = {
1316
1316
  },
1317
1317
  setup(e) {
1318
1318
  const t = e, o = g(() => {
1319
- const { paddingTop: s, paddingBottom: n, paddingLeft: i, transitionDuration: r, transitionTimingFunction: l } = t, a = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1320
- return `padding-top:${s}px;padding-bottom:${n}px;padding-left:${i}px;${a}transition-duration:${r}ms;transition-timing-function:${l};`;
1319
+ const { paddingTop: s, paddingBottom: n, paddingLeft: i, transitionDuration: r, transitionTimingFunction: a } = t, l = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
1320
+ return `padding-top:${s}px;padding-bottom:${n}px;padding-left:${i}px;${l}transition-duration:${r}ms;transition-timing-function:${a};`;
1321
1321
  });
1322
1322
  return (s, n) => (d(), f("main", {
1323
1323
  style: P(o.value),
@@ -1341,19 +1341,19 @@ function Jo(e) {
1341
1341
  function r() {
1342
1342
  i();
1343
1343
  }
1344
- function l() {
1344
+ function a() {
1345
1345
  document.addEventListener("scroll", i);
1346
1346
  }
1347
- function a() {
1347
+ function l() {
1348
1348
  s && document.removeEventListener("scroll", i);
1349
1349
  }
1350
1350
  function c() {
1351
- r(), l(), s = !0;
1351
+ r(), a(), s = !0;
1352
1352
  }
1353
1353
  return Et(e, (u) => {
1354
- u ? c() : a();
1354
+ u ? c() : l();
1355
1355
  }, { immediate: !0 }), Ft(() => {
1356
- a();
1356
+ l();
1357
1357
  }), o;
1358
1358
  }
1359
1359
  const Qo = 1001, es = 999, ts = 998, bi = {
@@ -1447,7 +1447,7 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1447
1447
  },
1448
1448
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1449
1449
  setup(e, { emit: t }) {
1450
- const o = e, s = g(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), n = g(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), i = Jo(n), r = g(() => o.fixedHeaderAndTab ? i.value : ""), l = g(() => o.fixedFooter ? i.value : ""), a = g(() => {
1450
+ const o = e, s = g(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), n = g(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), i = Jo(n), r = g(() => o.fixedHeaderAndTab ? i.value : ""), a = g(() => o.fixedFooter ? i.value : ""), l = g(() => {
1451
1451
  const { transitionDuration: L, transitionTimingFunction: W } = o;
1452
1452
  return {
1453
1453
  transitionDuration: L,
@@ -1467,10 +1467,10 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1467
1467
  const w = g(() => o.isMobile && !p.value), E = g(() => {
1468
1468
  const { transitionDuration: L, transitionTimingFunction: W } = o;
1469
1469
  return `background-color:${o.maskBg};transition-duration:${L}ms;transition-timing-function:${W};`;
1470
- }), S = g(() => {
1470
+ }), $ = g(() => {
1471
1471
  const { sidebarWidth: L, sidebarCollapsedWidth: W } = o, M = o.isMobile ? 0 : W, C = p.value ? M : L;
1472
1472
  return o.sidebarVisible ? C : 0;
1473
- }), V = g(() => o.isMobile ? 0 : S.value), U = g(() => c.value ? V.value : 0), R = g(
1473
+ }), V = g(() => o.isMobile ? 0 : $.value), U = g(() => c.value ? V.value : 0), R = g(
1474
1474
  () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1475
1475
  ), H = g(() => {
1476
1476
  let L = 0;
@@ -1480,7 +1480,7 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1480
1480
  class: "d-layout",
1481
1481
  style: P(s.value)
1482
1482
  }, [
1483
- e.headerVisible ? (d(), y(Uo, ge({ key: 0 }, a.value, {
1483
+ e.headerVisible ? (d(), y(Uo, ge({ key: 0 }, l.value, {
1484
1484
  fixed: e.fixedHeaderAndTab,
1485
1485
  "z-index": Qo,
1486
1486
  "min-width": e.minWidth,
@@ -1493,7 +1493,7 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1493
1493
  ]),
1494
1494
  _: 3
1495
1495
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1496
- e.tabVisible ? (d(), y(qo, ge({ key: 1 }, a.value, {
1496
+ e.tabVisible ? (d(), y(qo, ge({ key: 1 }, l.value, {
1497
1497
  fixed: e.fixedHeaderAndTab,
1498
1498
  "z-index": es,
1499
1499
  "min-width": e.minWidth,
@@ -1507,9 +1507,9 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1507
1507
  ]),
1508
1508
  _: 3
1509
1509
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1510
- e.sidebarVisible ? (d(), y(Ko, ge({ key: 2 }, a.value, {
1510
+ e.sidebarVisible ? (d(), y(Ko, ge({ key: 2 }, l.value, {
1511
1511
  "z-index": u.value,
1512
- width: S.value,
1512
+ width: $.value,
1513
1513
  "padding-top": R.value
1514
1514
  }), {
1515
1515
  default: I(() => [
@@ -1523,7 +1523,7 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1523
1523
  style: P(E.value),
1524
1524
  onClick: v
1525
1525
  }, null, 4)) : k("", !0),
1526
- x(Zo, ge(a.value, {
1526
+ x(Zo, ge(l.value, {
1527
1527
  "padding-top": H.value,
1528
1528
  "padding-bottom": j.value,
1529
1529
  "padding-left": V.value,
@@ -1534,13 +1534,13 @@ const Qo = 1001, es = 999, ts = 998, bi = {
1534
1534
  ]),
1535
1535
  _: 3
1536
1536
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1537
- e.footerVisible ? (d(), y(Go, ge({ key: 4 }, a.value, {
1537
+ e.footerVisible ? (d(), y(Go, ge({ key: 4 }, l.value, {
1538
1538
  fixed: e.fixedFooter,
1539
1539
  "z-index": ts,
1540
1540
  "min-width": e.minWidth,
1541
1541
  height: e.footerHeight,
1542
1542
  "padding-left": V.value,
1543
- style: l.value
1543
+ style: a.value
1544
1544
  }), {
1545
1545
  default: I(() => [
1546
1546
  F(L.$slots, "footer")
@@ -1638,7 +1638,7 @@ const os = {
1638
1638
  F(n.$slots, "default", {}, void 0, !0)
1639
1639
  ], 2));
1640
1640
  }
1641
- }, $i = /* @__PURE__ */ ie(os, [["__scopeId", "data-v-d50b3609"]]), ss = { class: "modal-content" }, ns = { class: "modal-header" }, is = { class: "modal-title" }, rs = { class: "modal-body" }, as = { class: "modal-footer" }, Ye = {
1641
+ }, Si = /* @__PURE__ */ ie(os, [["__scopeId", "data-v-d50b3609"]]), ss = { class: "modal-content" }, ns = { class: "modal-header" }, is = { class: "modal-title" }, rs = { class: "modal-body" }, ls = { class: "modal-footer" }, Ye = {
1642
1642
  __name: "DModal",
1643
1643
  props: {
1644
1644
  show: Boolean,
@@ -1654,13 +1654,13 @@ const os = {
1654
1654
  i.value = s == null ? void 0 : s.show;
1655
1655
  const r = () => {
1656
1656
  i.value = !0, o("open", n);
1657
- }, l = () => {
1657
+ }, a = () => {
1658
1658
  i.value = !1, o("close", n);
1659
1659
  };
1660
1660
  return t({
1661
1661
  show: r,
1662
- hide: l
1663
- }), (a, c) => {
1662
+ hide: a
1663
+ }), (l, c) => {
1664
1664
  const u = Pe("keydown");
1665
1665
  return d(), y(Bt, { to: "body" }, [
1666
1666
  x(ze, { name: "fade" }, {
@@ -1671,26 +1671,26 @@ const os = {
1671
1671
  ref: n,
1672
1672
  class: T(["modal", s.class])
1673
1673
  }, [
1674
- $("div", {
1674
+ S("div", {
1675
1675
  class: "modal-dialog",
1676
1676
  style: P({ width: s.width, maxWidth: s.maxWidth })
1677
1677
  }, [
1678
- $("div", ss, [
1679
- $("div", ns, [
1680
- $("h5", is, [
1681
- F(a.$slots, "modal-title")
1678
+ S("div", ss, [
1679
+ S("div", ns, [
1680
+ S("h5", is, [
1681
+ F(l.$slots, "modal-title")
1682
1682
  ])
1683
1683
  ]),
1684
- $("div", rs, [
1685
- F(a.$slots, "default")
1684
+ S("div", rs, [
1685
+ F(l.$slots, "default")
1686
1686
  ]),
1687
- $("div", as, [
1688
- F(a.$slots, "modal-footer")
1687
+ S("div", ls, [
1688
+ F(l.$slots, "modal-footer")
1689
1689
  ])
1690
1690
  ])
1691
1691
  ], 4)
1692
1692
  ], 2)), [
1693
- [u, l, "Escape"]
1693
+ [u, a, "Escape"]
1694
1694
  ]) : k("", !0)
1695
1695
  ]),
1696
1696
  _: 3
@@ -1712,13 +1712,13 @@ function Vt(e, t, o = "default") {
1712
1712
  };
1713
1713
  });
1714
1714
  }
1715
- var ls = (e, t) => {
1715
+ var as = (e, t) => {
1716
1716
  const o = e.__vccOpts || e;
1717
1717
  for (const [s, n] of t)
1718
1718
  o[s] = n;
1719
1719
  return o;
1720
1720
  };
1721
- const ds = le({
1721
+ const ds = ae({
1722
1722
  name: "DialogWrapper",
1723
1723
  components: {},
1724
1724
  props: {
@@ -1746,7 +1746,7 @@ function cs(e, t, o, s, n, i) {
1746
1746
  _: 1
1747
1747
  }, 16);
1748
1748
  }
1749
- var us = /* @__PURE__ */ ls(ds, [["render", cs]]);
1749
+ var us = /* @__PURE__ */ as(ds, [["render", cs]]);
1750
1750
  const ps = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, fs = {
1751
1751
  __name: "DAlertDialog",
1752
1752
  props: {
@@ -1766,7 +1766,7 @@ const ps = { style: { display: "flex", "flex-direction": "row", "justify-content
1766
1766
  G(N(o.message), 1)
1767
1767
  ]),
1768
1768
  "modal-footer": I(() => [
1769
- $("div", ps, [
1769
+ S("div", ps, [
1770
1770
  x(te, {
1771
1771
  onClick: i[0] || (i[0] = (r) => B(Oe)())
1772
1772
  }, {
@@ -1800,7 +1800,7 @@ const ps = { style: { display: "flex", "flex-direction": "row", "justify-content
1800
1800
  G(N(o.message), 1)
1801
1801
  ]),
1802
1802
  "modal-footer": I(() => [
1803
- $("div", hs, [
1803
+ S("div", hs, [
1804
1804
  x(te, {
1805
1805
  onClick: i[0] || (i[0] = (r) => B(Oe)())
1806
1806
  }, {
@@ -1824,7 +1824,7 @@ const ps = { style: { display: "flex", "flex-direction": "row", "justify-content
1824
1824
  })
1825
1825
  ]));
1826
1826
  }
1827
- }, gs = { class: "dropdown" }, Si = {
1827
+ }, gs = { class: "dropdown" }, $i = {
1828
1828
  __name: "DDropdown",
1829
1829
  props: {
1830
1830
  class: String,
@@ -1844,18 +1844,18 @@ const ps = { style: { display: "flex", "flex-direction": "row", "justify-content
1844
1844
  },
1845
1845
  emits: ["select", "click"],
1846
1846
  setup(e, { expose: t, emit: o }) {
1847
- const s = e, n = Ee(), i = D(null), r = D(null), l = D(0), a = D(0), c = (w) => {
1847
+ const s = e, n = Ee(), i = D(null), r = D(null), a = D(0), l = D(0), c = (w) => {
1848
1848
  if (o("click", w), i.value.isShowed()) {
1849
1849
  i.value.hide();
1850
1850
  return;
1851
1851
  }
1852
1852
  i.value.show(), It(() => {
1853
- const E = i.value.elementSize(), S = r.value.elementSize(), V = window.innerWidth, U = window.innerHeight;
1854
- l.value = V - (S.x + S.width) < E.width ? S.left - E.width + S.width : S.left, a.value = U - (S.y + S.height) < E.height ? S.top - E.height - 5 : S.height + S.top + 5;
1853
+ const E = i.value.elementSize(), $ = r.value.elementSize(), V = window.innerWidth, U = window.innerHeight;
1854
+ a.value = V - ($.x + $.width) < E.width ? $.left - E.width + $.width : $.left, l.value = U - ($.y + $.height) < E.height ? $.top - E.height - 5 : $.height + $.top + 5;
1855
1855
  });
1856
1856
  }, u = (w) => {
1857
1857
  o("select", w);
1858
- }, p = g(() => ({ left: l.value + "px", top: a.value + "px", position: s.bodyAsParent ? "absolute" : "fixed", ...s.menuStyle }));
1858
+ }, p = g(() => ({ left: a.value + "px", top: l.value + "px", position: s.bodyAsParent ? "absolute" : "fixed", ...s.menuStyle }));
1859
1859
  t({
1860
1860
  show: c
1861
1861
  });
@@ -1906,7 +1906,7 @@ function bs(e, t) {
1906
1906
  const _s = /* @__PURE__ */ ie(vs, [["render", bs]]), ks = {
1907
1907
  key: 0,
1908
1908
  class: "card-header"
1909
- }, $s = { class: "card-body" }, Ss = {
1909
+ }, Ss = { class: "card-body" }, $s = {
1910
1910
  key: 1,
1911
1911
  class: "card-footer"
1912
1912
  }, xi = {
@@ -1917,10 +1917,10 @@ const _s = /* @__PURE__ */ ie(vs, [["render", bs]]), ks = {
1917
1917
  t.$slots.header ? (d(), f("div", ks, [
1918
1918
  F(t.$slots, "header")
1919
1919
  ])) : k("", !0),
1920
- $("div", $s, [
1920
+ S("div", Ss, [
1921
1921
  F(t.$slots, "default")
1922
1922
  ]),
1923
- t.$slots.footer ? (d(), f("div", Ss, [
1923
+ t.$slots.footer ? (d(), f("div", $s, [
1924
1924
  F(t.$slots, "footer")
1925
1925
  ])) : k("", !0)
1926
1926
  ]),
@@ -1983,14 +1983,14 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
1983
1983
  default:
1984
1984
  return { type: "", value: e };
1985
1985
  }
1986
- }, $t = {
1986
+ }, St = {
1987
1987
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1988
1988
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1989
1989
  }, Ts = ((e) => () => e++)(0), Ls = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Bs = (e) => {
1990
1990
  typeof e == "string" && (e = Ls(e));
1991
1991
  let t = null, o = null;
1992
1992
  return e.forEach((s) => {
1993
- $t.y.has(s) && (o = s), $t.x.has(s) && (t = s);
1993
+ St.y.has(s) && (o = s), St.x.has(s) && (t = s);
1994
1994
  }), { x: t, y: o };
1995
1995
  }, Ne = {
1996
1996
  position: ["top", "right"],
@@ -2124,7 +2124,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2124
2124
  const o = e, s = {
2125
2125
  IDLE: 0,
2126
2126
  DESTROYED: 2
2127
- }, n = D([]), i = D(null), r = D(xs.get("velocity")), l = g(() => o.animationType === "velocity"), a = g(() => l.value ? Is : Es), c = g(() => n.value.filter((m) => m.state !== s.DESTROYED)), u = g(() => Ds(o.width)), p = g(() => {
2127
+ }, n = D([]), i = D(null), r = D(xs.get("velocity")), a = g(() => o.animationType === "velocity"), l = g(() => a.value ? Is : Es), c = g(() => n.value.filter((m) => m.state !== s.DESTROYED)), u = g(() => Ds(o.width)), p = g(() => {
2128
2128
  const { x: m, y: h } = Bs(o.position), _ = u.value.value, A = u.value.type, re = {
2129
2129
  width: _ + A
2130
2130
  };
@@ -2134,7 +2134,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2134
2134
  }, E = () => {
2135
2135
  var m;
2136
2136
  o.pauseOnHover && ((m = i.value) == null || m.pause());
2137
- }, S = () => {
2137
+ }, $ = () => {
2138
2138
  var m;
2139
2139
  o.pauseOnHover && ((m = i.value) == null || m.resume());
2140
2140
  }, V = (m) => {
@@ -2144,15 +2144,15 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2144
2144
  W();
2145
2145
  return;
2146
2146
  }
2147
- const h = typeof m.duration == "number" ? m.duration : o.duration, _ = typeof m.speed == "number" ? m.speed : o.speed, A = typeof m.ignoreDuplicates == "boolean" ? m.ignoreDuplicates : o.ignoreDuplicates, { title: re, text: ke, type: $e, data: Se, id: xe } = m, oe = {
2147
+ const h = typeof m.duration == "number" ? m.duration : o.duration, _ = typeof m.speed == "number" ? m.speed : o.speed, A = typeof m.ignoreDuplicates == "boolean" ? m.ignoreDuplicates : o.ignoreDuplicates, { title: re, text: ke, type: Se, data: $e, id: xe } = m, oe = {
2148
2148
  id: xe || Ts(),
2149
2149
  title: re,
2150
2150
  text: ke,
2151
- type: $e,
2151
+ type: Se,
2152
2152
  state: s.IDLE,
2153
2153
  speed: _,
2154
2154
  length: h + 2 * _,
2155
- data: Se
2155
+ data: $e
2156
2156
  };
2157
2157
  h >= 0 && (i.value = new ws(() => j(oe), oe.length, oe));
2158
2158
  const we = o.reverse ? !v.value : v.value;
@@ -2165,7 +2165,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2165
2165
  "d-notification-template",
2166
2166
  o.classes,
2167
2167
  m.type || ""
2168
- ], H = (m) => l.value ? void 0 : { transition: `all ${m.speed}ms` }, j = (m) => {
2168
+ ], H = (m) => a.value ? void 0 : { transition: `all ${m.speed}ms` }, j = (m) => {
2169
2169
  clearTimeout(m.timer), m.state = s.DESTROYED, X(), t("destroy", m);
2170
2170
  }, L = (m) => {
2171
2171
  const h = n.value.find((_) => _.id === m);
@@ -2177,7 +2177,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2177
2177
  const _ = (A = o.animation) == null ? void 0 : A[m];
2178
2178
  return typeof _ == "function" ? _(h) : _;
2179
2179
  }, C = (m, h) => {
2180
- if (!l.value)
2180
+ if (!a.value)
2181
2181
  return;
2182
2182
  const _ = M("enter", m);
2183
2183
  r.value(m, _, {
@@ -2185,7 +2185,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2185
2185
  complete: h
2186
2186
  });
2187
2187
  }, z = (m, h) => {
2188
- if (!l.value)
2188
+ if (!a.value)
2189
2189
  return;
2190
2190
  const _ = M("leave", m);
2191
2191
  r.value(m, _, {
@@ -2202,7 +2202,7 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2202
2202
  class: "d-notification-group",
2203
2203
  style: P(p.value)
2204
2204
  }, [
2205
- (d(), y(q(a.value), {
2205
+ (d(), y(q(l.value), {
2206
2206
  name: e.animationName,
2207
2207
  onEnter: C,
2208
2208
  onLeave: z,
@@ -2215,14 +2215,14 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2215
2215
  style: P(H(_)),
2216
2216
  "data-id": _.id,
2217
2217
  onMouseenter: E,
2218
- onMouseleave: S
2218
+ onMouseleave: $
2219
2219
  }, [
2220
2220
  F(m.$slots, "body", {
2221
2221
  class: T([e.classes, _.type]),
2222
2222
  item: _,
2223
2223
  close: () => j(_)
2224
2224
  }, () => [
2225
- $("div", {
2225
+ S("div", {
2226
2226
  class: T(R(_)),
2227
2227
  onClick: (A) => w(_)
2228
2228
  }, [
@@ -2232,13 +2232,13 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2232
2232
  class: "d-notification-title",
2233
2233
  innerHTML: _.timer
2234
2234
  }, null, 8, Rs)) : k("", !0),
2235
- $("div", {
2235
+ S("div", {
2236
2236
  class: "notification-content",
2237
2237
  innerHTML: _.text
2238
2238
  }, null, 8, Ms)
2239
2239
  ], 64)) : (d(), f(Q, { key: 1 }, [
2240
2240
  _.title ? (d(), f("div", Ns, N(_.title), 1)) : k("", !0),
2241
- $("div", As, N(_.text), 1)
2241
+ S("div", As, N(_.text), 1)
2242
2242
  ], 64))
2243
2243
  ], 10, Hs)
2244
2244
  ])
@@ -2267,8 +2267,8 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2267
2267
  t("click", r);
2268
2268
  })
2269
2269
  }, [
2270
- $("div", Os, [
2271
- $("div", Vs, [
2270
+ S("div", Os, [
2271
+ S("div", Vs, [
2272
2272
  o.icon ? (d(), y(q(ce), {
2273
2273
  key: 0,
2274
2274
  component: s.value,
@@ -2277,12 +2277,12 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2277
2277
  }, null, 8, ["component"])) : k("", !0)
2278
2278
  ])
2279
2279
  ]),
2280
- $("div", zs, [
2281
- $("div", {
2280
+ S("div", zs, [
2281
+ S("div", {
2282
2282
  class: "d-info-progress-line",
2283
2283
  style: P("width: " + o.progress + "%;")
2284
2284
  }, null, 4),
2285
- $("div", {
2285
+ S("div", {
2286
2286
  class: "d-info-progress-label",
2287
2287
  innerHTML: e.label
2288
2288
  }, null, 8, Ps)
@@ -2309,18 +2309,18 @@ const Me = "[-+]?[0-9]*.?[0-9]+", kt = [
2309
2309
  t("update:modelValue", r);
2310
2310
  }
2311
2311
  });
2312
- return (r, l) => (d(), f("div", js, [
2313
- Z($("input", {
2314
- "onUpdate:modelValue": l[0] || (l[0] = (a) => i.value = a),
2312
+ return (r, a) => (d(), f("div", js, [
2313
+ Z(S("input", {
2314
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => i.value = l),
2315
2315
  id: `i-${B(n)}`,
2316
2316
  type: "checkbox",
2317
2317
  checked: o.checked,
2318
2318
  disabled: o.disabled,
2319
- onChange: l[1] || (l[1] = (...a) => o.change && o.change(...a))
2319
+ onChange: a[1] || (a[1] = (...l) => o.change && o.change(...l))
2320
2320
  }, null, 40, Ws), [
2321
2321
  [Rt, i.value]
2322
2322
  ]),
2323
- $("label", {
2323
+ S("label", {
2324
2324
  for: `i-${B(n)}`
2325
2325
  }, N(o.label), 9, Xs)
2326
2326
  ]));
@@ -2369,18 +2369,18 @@ const Ti = {
2369
2369
  }
2370
2370
  return (i, r) => (d(), f("div", qs, [
2371
2371
  o.label ? (d(), f("div", Gs, N(o.label), 1)) : k("", !0),
2372
- Z($("select", {
2373
- "onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
2372
+ Z(S("select", {
2373
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => n.value = a),
2374
2374
  class: T(s.value),
2375
2375
  style: P(o.size === "wide" ? "width:100%" : ""),
2376
2376
  disabled: o.disabled
2377
2377
  }, [
2378
- (d(!0), f(Q, null, ue(o.options, (l, a) => (d(), f("option", {
2379
- key: a,
2380
- value: l.value,
2381
- selected: l.selected,
2382
- disabled: l.disabled
2383
- }, N(l.label), 9, Zs))), 128))
2378
+ (d(!0), f(Q, null, ue(o.options, (a, l) => (d(), f("option", {
2379
+ key: l,
2380
+ value: a.value,
2381
+ selected: a.selected,
2382
+ disabled: a.disabled
2383
+ }, N(a.label), 9, Zs))), 128))
2384
2384
  ], 14, Ks), [
2385
2385
  [qt, n.value]
2386
2386
  ])
@@ -2399,12 +2399,12 @@ const Js = ["title"], Qs = { class: "tab-icon" }, en = { class: "tab-label" }, t
2399
2399
  title: t.tab.title ? t.tab.title : "",
2400
2400
  style: { display: "flex", "flex-direction": "column" }
2401
2401
  }, [
2402
- $("div", Qs, [
2402
+ S("div", Qs, [
2403
2403
  x(B(ce), {
2404
2404
  component: t.tab.icon
2405
2405
  }, null, 8, ["component"])
2406
2406
  ]),
2407
- $("div", en, N(t.tab.label), 1)
2407
+ S("div", en, N(t.tab.label), 1)
2408
2408
  ], 8, Js)) : t.tab.label ? (d(), f("span", {
2409
2409
  key: 1,
2410
2410
  title: t.tab.title ? t.tab.title : ""
@@ -2418,7 +2418,7 @@ const Js = ["title"], Qs = { class: "tab-icon" }, en = { class: "tab-label" }, t
2418
2418
  ], 8, on)) : k("", !0);
2419
2419
  }
2420
2420
  }, nn = /* @__PURE__ */ ie(sn, [["__scopeId", "data-v-9262b225"]]);
2421
- const rn = { class: "d-tabs" }, an = {
2421
+ const rn = { class: "d-tabs" }, ln = {
2422
2422
  __name: "DTabs",
2423
2423
  props: {
2424
2424
  tabs: Array
@@ -2426,13 +2426,13 @@ const rn = { class: "d-tabs" }, an = {
2426
2426
  setup(e, { expose: t }) {
2427
2427
  const s = Gt(e, "tabs"), n = D([]), i = D(0), r = (c) => {
2428
2428
  i.value = c;
2429
- }, l = (c) => {
2429
+ }, a = (c) => {
2430
2430
  c && !n.value.includes(c) && n.value.push(c);
2431
2431
  };
2432
2432
  return t({
2433
2433
  refs: () => n.value
2434
2434
  }), (c, u) => (d(), f(Q, null, [
2435
- $("div", rn, [
2435
+ S("div", rn, [
2436
2436
  (d(!0), f(Q, null, ue(s.value, (p, v) => (d(), y(nn, {
2437
2437
  index: v,
2438
2438
  tab: p,
@@ -2444,7 +2444,7 @@ const rn = { class: "d-tabs" }, an = {
2444
2444
  (d(!0), f(Q, null, ue(s.value, (p, v) => (d(), f("div", null, [
2445
2445
  Z((d(), y(q(p.component), {
2446
2446
  ref_for: !0,
2447
- ref: l
2447
+ ref: a
2448
2448
  }, null, 512)), [
2449
2449
  [Zt, v === i.value]
2450
2450
  ])
@@ -2452,8 +2452,8 @@ const rn = { class: "d-tabs" }, an = {
2452
2452
  ], 1024))
2453
2453
  ], 64));
2454
2454
  }
2455
- }, Bi = /* @__PURE__ */ ie(an, [["__scopeId", "data-v-4b44471a"]]);
2456
- const ln = { class: "d-grid" }, dn = {
2455
+ }, Bi = /* @__PURE__ */ ie(ln, [["__scopeId", "data-v-4b44471a"]]);
2456
+ const an = { class: "d-grid" }, dn = {
2457
2457
  __name: "DGrid",
2458
2458
  props: {
2459
2459
  gap: {
@@ -2473,19 +2473,19 @@ const ln = { class: "d-grid" }, dn = {
2473
2473
  setup(e) {
2474
2474
  const t = e;
2475
2475
  Fe((u) => ({
2476
- "09eba472": a[0],
2477
- "09eba434": a[1],
2478
- "09eba3f6": a[2],
2479
- "09eba3b8": a[3],
2480
- "09eba37a": a[4],
2481
- "09eba33c": a[5],
2476
+ "09eba472": l[0],
2477
+ "09eba434": l[1],
2478
+ "09eba3f6": l[2],
2479
+ "09eba3b8": l[3],
2480
+ "09eba37a": l[4],
2481
+ "09eba33c": l[5],
2482
2482
  "898eb2ac": t.gap
2483
2483
  }));
2484
- const { colXs: o, colSm: s, colMd: n, colLg: i, colXl: r, colXxl: l } = Jt(t), a = [o.value, s.value, n.value, i.value, r.value, l.value];
2484
+ const { colXs: o, colSm: s, colMd: n, colLg: i, colXl: r, colXxl: a } = Jt(t), l = [o.value, s.value, n.value, i.value, r.value, a.value];
2485
2485
  let c = null;
2486
- for (let u = 0; u < a.length; u++)
2487
- c || (c = a[0]), u > 0 && (a[u] ? c = a[u] : a[u] = c);
2488
- return (u, p) => (d(), f("div", ln, [
2486
+ for (let u = 0; u < l.length; u++)
2487
+ c || (c = l[0]), u > 0 && (l[u] ? c = l[u] : l[u] = c);
2488
+ return (u, p) => (d(), f("div", an, [
2489
2489
  F(u.$slots, "default", {}, void 0, !0)
2490
2490
  ]));
2491
2491
  }
@@ -2543,21 +2543,21 @@ const un = { class: "d-textarea" }, pn = {
2543
2543
  setup(e, { expose: t, emit: o }) {
2544
2544
  const s = e, n = D(null), i = g(() => s.scale === "small" ? "d-textarea-small" : s.scale === "large" ? "d-textarea-large" : ""), r = g({
2545
2545
  get: () => s.modelValue,
2546
- set: (a) => {
2547
- o("update:modelValue", a);
2546
+ set: (l) => {
2547
+ o("update:modelValue", l);
2548
2548
  }
2549
2549
  });
2550
2550
  be(() => {
2551
- s.focus && l();
2551
+ s.focus && a();
2552
2552
  });
2553
- const l = () => {
2553
+ const a = () => {
2554
2554
  n.value.focus();
2555
2555
  };
2556
2556
  return t({
2557
- focus: l
2558
- }), (a, c) => (d(), f("div", un, [
2557
+ focus: a
2558
+ }), (l, c) => (d(), f("div", un, [
2559
2559
  s.label ? (d(), f("div", pn, N(s.label), 1)) : k("", !0),
2560
- Z($("textarea", {
2560
+ Z(S("textarea", {
2561
2561
  ref_key: "inputRef",
2562
2562
  ref: n,
2563
2563
  "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
@@ -2595,20 +2595,20 @@ const un = { class: "d-textarea" }, pn = {
2595
2595
  t("update:modelValue", r);
2596
2596
  }
2597
2597
  });
2598
- return (r, l) => (d(), f("div", {
2598
+ return (r, a) => (d(), f("div", {
2599
2599
  class: T(["d-switcher", o.type])
2600
2600
  }, [
2601
- Z($("input", {
2602
- "onUpdate:modelValue": l[0] || (l[0] = (a) => i.value = a),
2601
+ Z(S("input", {
2602
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => i.value = l),
2603
2603
  id: `i-${B(n)}`,
2604
2604
  type: "checkbox",
2605
2605
  checked: o.checked,
2606
2606
  disabled: o.disabled,
2607
- onChange: l[1] || (l[1] = (a) => t("change", a))
2607
+ onChange: a[1] || (a[1] = (l) => t("change", l))
2608
2608
  }, null, 40, mn), [
2609
2609
  [Rt, i.value]
2610
2610
  ]),
2611
- $("label", {
2611
+ S("label", {
2612
2612
  for: `i-${B(n)}`,
2613
2613
  class: T(o.type)
2614
2614
  }, "Toggle", 10, gn)
@@ -2622,17 +2622,17 @@ const un = { class: "d-textarea" }, pn = {
2622
2622
  */
2623
2623
  function fe(e) {
2624
2624
  let t = { r: 0, g: 0, b: 0, a: 1 };
2625
- /#/.test(e) ? t = yn(e) : /rgb/.test(e) ? t = St(e) : typeof e == "string" ? t = St(`rgba(${e})`) : Object.prototype.toString.call(e) === "[object Object]" && (t = e);
2626
- const { r: o, g: s, b: n, a: i } = t, { h: r, s: l, v: a } = bn(t);
2627
- return { r: o, g: s, b: n, a: i === void 0 ? 1 : i, h: r, s: l, v: a };
2625
+ /#/.test(e) ? t = yn(e) : /rgb/.test(e) ? t = $t(e) : typeof e == "string" ? t = $t(`rgba(${e})`) : Object.prototype.toString.call(e) === "[object Object]" && (t = e);
2626
+ const { r: o, g: s, b: n, a: i } = t, { h: r, s: a, v: l } = bn(t);
2627
+ return { r: o, g: s, b: n, a: i === void 0 ? 1 : i, h: r, s: a, v: l };
2628
2628
  }
2629
2629
  function Ue(e) {
2630
2630
  const t = document.createElement("canvas"), o = t.getContext("2d"), s = e * 2;
2631
2631
  return t.width = s, t.height = s, o.fillStyle = "#ffffff", o.fillRect(0, 0, s, s), o.fillStyle = "#ccd5db", o.fillRect(0, 0, e, e), o.fillRect(e, e, e, e), t;
2632
2632
  }
2633
2633
  function Ve(e, t, o, s, n, i) {
2634
- const r = e === "l", l = t.createLinearGradient(0, 0, r ? o : 0, r ? 0 : s);
2635
- l.addColorStop(0.01, n), l.addColorStop(0.99, i), t.fillStyle = l, t.fillRect(0, 0, o, s);
2634
+ const r = e === "l", a = t.createLinearGradient(0, 0, r ? o : 0, r ? 0 : s);
2635
+ a.addColorStop(0.01, n), a.addColorStop(0.99, i), t.fillStyle = a, t.fillRect(0, 0, o, s);
2636
2636
  }
2637
2637
  function vn({ r: e, g: t, b: o }, s) {
2638
2638
  const n = (r) => ("0" + Number(r).toString(16)).slice(-2), i = `#${n(e)}${n(t)}${n(o)}`;
@@ -2647,7 +2647,7 @@ function yn(e) {
2647
2647
  b: t(e.slice(4, 6))
2648
2648
  };
2649
2649
  }
2650
- function St(e) {
2650
+ function $t(e) {
2651
2651
  return typeof e == "string" ? (e = (/rgba?\((.*?)\)/.exec(e) || ["", "0,0,0,1"])[1].split(","), {
2652
2652
  r: Number(e[0]) || 0,
2653
2653
  g: Number(e[1]) || 0,
@@ -2660,10 +2660,10 @@ function bn({ r: e, g: t, b: o }) {
2660
2660
  const s = Math.max(e, t, o), n = Math.min(e, t, o), i = s - n;
2661
2661
  let r = 0;
2662
2662
  s === n ? r = 0 : s === e ? t >= o ? r = 60 * (t - o) / i : r = 60 * (t - o) / i + 360 : s === t ? r = 60 * (o - e) / i + 120 : s === o && (r = 60 * (e - t) / i + 240), r = Math.floor(r);
2663
- let l = parseFloat((s === 0 ? 0 : 1 - n / s).toFixed(2)), a = parseFloat(s.toFixed(2));
2664
- return { h: r, s: l, v: a };
2663
+ let a = parseFloat((s === 0 ? 0 : 1 - n / s).toFixed(2)), l = parseFloat(s.toFixed(2));
2664
+ return { h: r, s: a, v: l };
2665
2665
  }
2666
- var qe = le({
2666
+ var qe = ae({
2667
2667
  props: {
2668
2668
  color: {
2669
2669
  type: String,
@@ -2706,12 +2706,12 @@ var qe = le({
2706
2706
  },
2707
2707
  selectSaturation(e) {
2708
2708
  const { top: t, left: o } = this.$el.getBoundingClientRect(), s = e.target.getContext("2d"), n = (r) => {
2709
- let l = r.clientX - o, a = r.clientY - t;
2710
- l < 0 && (l = 0), a < 0 && (a = 0), l > this.size && (l = this.size), a > this.size && (a = this.size), this.slideSaturationStyle = {
2711
- left: l - 5 + "px",
2712
- top: a - 5 + "px"
2709
+ let a = r.clientX - o, l = r.clientY - t;
2710
+ a < 0 && (a = 0), l < 0 && (l = 0), a > this.size && (a = this.size), l > this.size && (l = this.size), this.slideSaturationStyle = {
2711
+ left: a - 5 + "px",
2712
+ top: l - 5 + "px"
2713
2713
  };
2714
- const c = s.getImageData(Math.min(l, this.size - 1), Math.min(a, this.size - 1), 1, 1), [u, p, v] = c.data;
2714
+ const c = s.getImageData(Math.min(a, this.size - 1), Math.min(l, this.size - 1), 1, 1), [u, p, v] = c.data;
2715
2715
  this.$emit("selectSaturation", { r: u, g: p, b: v });
2716
2716
  };
2717
2717
  n(e);
@@ -2755,7 +2755,7 @@ function kn(e, t, o, s, n, i) {
2755
2755
  }
2756
2756
  qe.render = kn;
2757
2757
  qe.__file = "src/color/Saturation.vue";
2758
- var Ge = le({
2758
+ var Ge = ae({
2759
2759
  props: {
2760
2760
  hsv: {
2761
2761
  type: Object,
@@ -2797,8 +2797,8 @@ var Ge = le({
2797
2797
  r < 0 && (r = 0), r > this.height && (r = this.height), this.slideHueStyle = {
2798
2798
  top: r - 2 + "px"
2799
2799
  };
2800
- const l = o.getImageData(0, Math.min(r, this.height - 1), 1, 1), [a, c, u] = l.data;
2801
- this.$emit("selectHue", { r: a, g: c, b: u });
2800
+ const a = o.getImageData(0, Math.min(r, this.height - 1), 1, 1), [l, c, u] = a.data;
2801
+ this.$emit("selectHue", { r: l, g: c, b: u });
2802
2802
  };
2803
2803
  s(e);
2804
2804
  const n = () => {
@@ -2808,8 +2808,8 @@ var Ge = le({
2808
2808
  }
2809
2809
  }
2810
2810
  });
2811
- const $n = { ref: "canvasHue" };
2812
- function Sn(e, t, o, s, n, i) {
2811
+ const Sn = { ref: "canvasHue" };
2812
+ function $n(e, t, o, s, n, i) {
2813
2813
  return d(), y(
2814
2814
  "div",
2815
2815
  {
@@ -2819,7 +2819,7 @@ function Sn(e, t, o, s, n, i) {
2819
2819
  [
2820
2820
  x(
2821
2821
  "canvas",
2822
- $n,
2822
+ Sn,
2823
2823
  null,
2824
2824
  512
2825
2825
  /* NEED_PATCH */
@@ -2839,9 +2839,9 @@ function Sn(e, t, o, s, n, i) {
2839
2839
  /* HYDRATE_EVENTS */
2840
2840
  );
2841
2841
  }
2842
- Ge.render = Sn;
2842
+ Ge.render = $n;
2843
2843
  Ge.__file = "src/color/Hue.vue";
2844
- var Ke = le({
2844
+ var Ke = ae({
2845
2845
  props: {
2846
2846
  color: {
2847
2847
  type: String,
@@ -2936,7 +2936,7 @@ function wn(e, t, o, s, n, i) {
2936
2936
  }
2937
2937
  Ke.render = wn;
2938
2938
  Ke.__file = "src/color/Alpha.vue";
2939
- var Ze = le({
2939
+ var Ze = ae({
2940
2940
  props: {
2941
2941
  color: {
2942
2942
  type: String,
@@ -2976,7 +2976,7 @@ function Cn(e, t, o, s, n, i) {
2976
2976
  }
2977
2977
  Ze.render = Cn;
2978
2978
  Ze.__file = "src/color/Preview.vue";
2979
- var Je = le({
2979
+ var Je = ae({
2980
2980
  props: {
2981
2981
  suckerCanvas: {
2982
2982
  type: Object,
@@ -3007,11 +3007,11 @@ var Je = le({
3007
3007
  e.keyCode === 27 && (this.isOpenSucker = !1, this.isSucking = !1, this.$emit("openSucker", !1), document.removeEventListener("keydown", this.keydownHandler), document.removeEventListener("mousemove", this.mousemoveHandler), document.removeEventListener("mouseup", this.mousemoveHandler), this.suckerPreview && (document.body.removeChild(this.suckerPreview), this.suckerPreview = null));
3008
3008
  },
3009
3009
  mousemoveHandler(e) {
3010
- const { clientX: t, clientY: o } = e, { top: s, left: n, width: i, height: r } = this.suckerCanvas.getBoundingClientRect(), l = t - n, a = o - s, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(l, i - 1), Math.min(a, r - 1), 1, 1);
3010
+ const { clientX: t, clientY: o } = e, { top: s, left: n, width: i, height: r } = this.suckerCanvas.getBoundingClientRect(), a = t - n, l = o - s, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(a, i - 1), Math.min(l, r - 1), 1, 1);
3011
3011
  let [p, v, w, E] = u.data;
3012
3012
  E = parseFloat((E / 255).toFixed(2));
3013
- const S = this.suckerPreview.style;
3014
- Object.assign(S, {
3013
+ const $ = this.suckerPreview.style;
3014
+ Object.assign($, {
3015
3015
  position: "absolute",
3016
3016
  left: t + 20 + "px",
3017
3017
  top: o - 36 + "px",
@@ -3026,13 +3026,13 @@ var Je = le({
3026
3026
  t >= this.suckerArea[0] && // @ts-ignore
3027
3027
  o >= this.suckerArea[1] && // @ts-ignore
3028
3028
  t <= this.suckerArea[2] && // @ts-ignore
3029
- o <= this.suckerArea[3] ? S.display = "" : S.display = "none";
3029
+ o <= this.suckerArea[3] ? $.display = "" : $.display = "none";
3030
3030
  },
3031
3031
  suckColor(e) {
3032
3032
  e && e.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), e.addEventListener("click", (t) => {
3033
- const { clientX: o, clientY: s } = t, { top: n, left: i, width: r, height: l } = e.getBoundingClientRect(), a = o - i, c = s - n, p = e.getContext("2d").getImageData(Math.min(a, r - 1), Math.min(c, l - 1), 1, 1);
3034
- let [v, w, E, S] = p.data;
3035
- S = parseFloat((S / 255).toFixed(2)), this.$emit("selectSucker", { r: v, g: w, b: E, a: S });
3033
+ const { clientX: o, clientY: s } = t, { top: n, left: i, width: r, height: a } = e.getBoundingClientRect(), l = o - i, c = s - n, p = e.getContext("2d").getImageData(Math.min(l, r - 1), Math.min(c, a - 1), 1, 1);
3034
+ let [v, w, E, $] = p.data;
3035
+ $ = parseFloat(($ / 255).toFixed(2)), this.$emit("selectSucker", { r: v, g: w, b: E, a: $ });
3036
3036
  }));
3037
3037
  }
3038
3038
  }
@@ -3105,7 +3105,7 @@ function Bn(e, t, o, s, n, i) {
3105
3105
  }
3106
3106
  Je.render = Bn;
3107
3107
  Je.__file = "src/color/Sucker.vue";
3108
- var Qe = le({
3108
+ var Qe = ae({
3109
3109
  props: {
3110
3110
  name: {
3111
3111
  type: String,
@@ -3164,7 +3164,7 @@ function Fn(e, t, o, s, n, i) {
3164
3164
  }
3165
3165
  Qe.render = Fn;
3166
3166
  Qe.__file = "src/color/Box.vue";
3167
- var et = le({
3167
+ var et = ae({
3168
3168
  name: "ColorPicker",
3169
3169
  props: {
3170
3170
  color: {
@@ -3186,14 +3186,14 @@ var et = le({
3186
3186
  e.colorsHistoryKey && localStorage && (s.value = JSON.parse(localStorage.getItem(e.colorsHistoryKey)) || []), n.value = Ue(4).toDataURL(), Ft(() => {
3187
3187
  i(o.value);
3188
3188
  });
3189
- function i(l) {
3190
- if (!l)
3189
+ function i(a) {
3190
+ if (!a)
3191
3191
  return;
3192
- const a = s.value || [], c = a.indexOf(l);
3193
- c >= 0 && a.splice(c, 1), a.length >= 8 && (a.length = 7), a.unshift(l), s.value = a || [], localStorage && e.colorsHistoryKey && localStorage.setItem(e.colorsHistoryKey, JSON.stringify(a));
3192
+ const l = s.value || [], c = l.indexOf(a);
3193
+ c >= 0 && l.splice(c, 1), l.length >= 8 && (l.length = 7), l.unshift(a), s.value = l || [], localStorage && e.colorsHistoryKey && localStorage.setItem(e.colorsHistoryKey, JSON.stringify(l));
3194
3194
  }
3195
- function r(l) {
3196
- t("selectColor", l);
3195
+ function r(a) {
3196
+ t("selectColor", a);
3197
3197
  }
3198
3198
  return {
3199
3199
  setColorsHistory: i,
@@ -3217,7 +3217,7 @@ function Mn(e, t, o, s, n, i) {
3217
3217
  ue(e.colorsDefault, (r) => (d(), y("li", {
3218
3218
  key: r,
3219
3219
  class: "item",
3220
- onClick: (l) => e.selectColor(r)
3220
+ onClick: (a) => e.selectColor(r)
3221
3221
  }, [
3222
3222
  x(
3223
3223
  "div",
@@ -3251,7 +3251,7 @@ function Mn(e, t, o, s, n, i) {
3251
3251
  ue(e.colorsHistory, (r) => (d(), y("li", {
3252
3252
  key: r,
3253
3253
  class: "item",
3254
- onClick: (l) => e.selectColor(r)
3254
+ onClick: (a) => e.selectColor(r)
3255
3255
  }, [
3256
3256
  x(
3257
3257
  "div",
@@ -3282,7 +3282,7 @@ function Mn(e, t, o, s, n, i) {
3282
3282
  }
3283
3283
  et.render = Mn;
3284
3284
  et.__file = "src/color/Colors.vue";
3285
- var ye = le({
3285
+ var ye = ae({
3286
3286
  components: {
3287
3287
  Saturation: qe,
3288
3288
  Hue: Ge,
@@ -3424,14 +3424,14 @@ var ye = le({
3424
3424
  this.a = e, this.setText();
3425
3425
  },
3426
3426
  inputHex(e) {
3427
- const { r: t, g: o, b: s, a: n, h: i, s: r, v: l } = fe(e);
3428
- Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: l }), this.modelHex = e, this.modelRgba = this.rgbaStringShort, this.$nextTick(() => {
3427
+ const { r: t, g: o, b: s, a: n, h: i, s: r, v: a } = fe(e);
3428
+ Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: a }), this.modelHex = e, this.modelRgba = this.rgbaStringShort, this.$nextTick(() => {
3429
3429
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
3430
3430
  });
3431
3431
  },
3432
3432
  inputRgba(e) {
3433
- const { r: t, g: o, b: s, a: n, h: i, s: r, v: l } = fe(e);
3434
- Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: l }), this.modelHex = this.hexString, this.modelRgba = e, this.$nextTick(() => {
3433
+ const { r: t, g: o, b: s, a: n, h: i, s: r, v: a } = fe(e);
3434
+ Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: a }), this.modelHex = this.hexString, this.modelRgba = e, this.$nextTick(() => {
3435
3435
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
3436
3436
  });
3437
3437
  },
@@ -3442,14 +3442,14 @@ var ye = le({
3442
3442
  this.$emit("openSucker", e);
3443
3443
  },
3444
3444
  selectSucker(e) {
3445
- const { r: t, g: o, b: s, a: n, h: i, s: r, v: l } = fe(e);
3446
- Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: l }), this.setText(), this.$nextTick(() => {
3445
+ const { r: t, g: o, b: s, a: n, h: i, s: r, v: a } = fe(e);
3446
+ Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: a }), this.setText(), this.$nextTick(() => {
3447
3447
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
3448
3448
  });
3449
3449
  },
3450
3450
  selectColor(e) {
3451
- const { r: t, g: o, b: s, a: n, h: i, s: r, v: l } = fe(e);
3452
- Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: l }), this.setText(), this.$nextTick(() => {
3451
+ const { r: t, g: o, b: s, a: n, h: i, s: r, v: a } = fe(e);
3452
+ Object.assign(this, { r: t, g: o, b: s, a: n, h: i, s: r, v: a }), this.setText(), this.$nextTick(() => {
3453
3453
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
3454
3454
  });
3455
3455
  }
@@ -3457,7 +3457,7 @@ var ye = le({
3457
3457
  });
3458
3458
  const Nn = { class: "color-set" };
3459
3459
  function An(e, t, o, s, n, i) {
3460
- const r = de("Saturation"), l = de("Hue"), a = de("Alpha"), c = de("Preview"), u = de("Sucker"), p = de("Box"), v = de("Colors");
3460
+ const r = de("Saturation"), a = de("Hue"), l = de("Alpha"), c = de("Preview"), u = de("Sucker"), p = de("Box"), v = de("Colors");
3461
3461
  return d(), y(
3462
3462
  "div",
3463
3463
  {
@@ -3473,14 +3473,14 @@ function An(e, t, o, s, n, i) {
3473
3473
  size: e.hueHeight,
3474
3474
  onSelectSaturation: e.selectSaturation
3475
3475
  }, null, 8, ["color", "hsv", "size", "onSelectSaturation"]),
3476
- x(l, {
3476
+ x(a, {
3477
3477
  ref: "hue",
3478
3478
  hsv: e.hsv,
3479
3479
  width: e.hueWidth,
3480
3480
  height: e.hueHeight,
3481
3481
  onSelectHue: e.selectHue
3482
3482
  }, null, 8, ["hsv", "width", "height", "onSelectHue"]),
3483
- x(a, {
3483
+ x(l, {
3484
3484
  ref: "alpha",
3485
3485
  color: e.rgbString,
3486
3486
  rgba: e.rgba,
@@ -3620,7 +3620,7 @@ const Kn = new Gn(), J = {
3620
3620
  };
3621
3621
  class Zn {
3622
3622
  validate(t, o) {
3623
- var n, i, r, l, a, c, u, p, v, w, E, S, V, U;
3623
+ var n, i, r, a, l, c, u, p, v, w, E, $, V, U;
3624
3624
  let s = "";
3625
3625
  if (o) {
3626
3626
  let R = !1;
@@ -3631,16 +3631,16 @@ class Zn {
3631
3631
  s = J.RulesUrl.validate(t, "https") || t.length === 0 ? "" : J.RulesUrl.message("url", (n = o[H]) != null && n.message ? (i = o[H]) == null ? void 0 : i.message : "url_incorrect"), R = s !== "";
3632
3632
  break;
3633
3633
  case "required":
3634
- s = J.RulesRequired.validate(t) ? "" : J.RulesRequired.message((r = o[H]) != null && r.message ? (l = o[H]) == null ? void 0 : l.message : "required"), R = s !== "";
3634
+ s = J.RulesRequired.validate(t) ? "" : J.RulesRequired.message((r = o[H]) != null && r.message ? (a = o[H]) == null ? void 0 : a.message : "required"), R = s !== "";
3635
3635
  break;
3636
3636
  case "min":
3637
- s = J.RulesMin.validate(t, (a = o[H]) == null ? void 0 : a.value) ? "" : J.RulesMin.message((c = o[H]) != null && c.message ? (u = o[H]) == null ? void 0 : u.message : "very_small"), R = s !== "";
3637
+ s = J.RulesMin.validate(t, (l = o[H]) == null ? void 0 : l.value) ? "" : J.RulesMin.message((c = o[H]) != null && c.message ? (u = o[H]) == null ? void 0 : u.message : "very_small"), R = s !== "";
3638
3638
  break;
3639
3639
  case "max":
3640
3640
  s = J.RulesMax.validate(t, (p = o[H]) == null ? void 0 : p.value) ? "" : J.RulesMax.message((v = o[H]) != null && v.message ? (w = o[H]) == null ? void 0 : w.message : "vary_large"), R = s !== "";
3641
3641
  break;
3642
3642
  case "email":
3643
- s = J.RulesEmail.validate(t) ? "" : J.RulesMax.message((E = o[H]) != null && E.message ? (S = o[H]) == null ? void 0 : S.message : "email_incorrect"), R = s !== "";
3643
+ s = J.RulesEmail.validate(t) ? "" : J.RulesMax.message((E = o[H]) != null && E.message ? ($ = o[H]) == null ? void 0 : $.message : "email_incorrect"), R = s !== "";
3644
3644
  break;
3645
3645
  case "number":
3646
3646
  s = J.RulesNumber.validate(t) ? "" : J.RulesNumber.message(
@@ -3658,26 +3658,26 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3658
3658
  }, ti = {
3659
3659
  key: 0,
3660
3660
  class: "text-red"
3661
- }, oi = { style: { display: "flex", "flex-direction": "row" } }, si = { style: { flex: "1", position: "relative" } }, ni = /* @__PURE__ */ $("svg", {
3661
+ }, oi = { style: { display: "flex", "flex-direction": "row" } }, si = { style: { flex: "1", position: "relative" } }, ni = /* @__PURE__ */ S("svg", {
3662
3662
  xmlns: "http://www.w3.org/2000/svg",
3663
3663
  viewBox: "0 0 24 24"
3664
3664
  }, [
3665
- /* @__PURE__ */ $("path", {
3665
+ /* @__PURE__ */ S("path", {
3666
3666
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
3667
3667
  fill: "currentColor"
3668
3668
  })
3669
3669
  ], -1), ii = [
3670
3670
  ni
3671
- ], ri = ["id", "type", "placeholder", "disabled"], ai = /* @__PURE__ */ $("svg", {
3671
+ ], ri = ["id", "type", "placeholder", "disabled"], li = /* @__PURE__ */ S("svg", {
3672
3672
  xmlns: "http://www.w3.org/2000/svg",
3673
3673
  viewBox: "0 0 24 24"
3674
3674
  }, [
3675
- /* @__PURE__ */ $("path", {
3675
+ /* @__PURE__ */ S("path", {
3676
3676
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
3677
3677
  fill: "currentColor"
3678
3678
  })
3679
- ], -1), li = [
3680
- ai
3679
+ ], -1), ai = [
3680
+ li
3681
3681
  ], di = {
3682
3682
  key: 1,
3683
3683
  class: "d-help"
@@ -3708,9 +3708,9 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3708
3708
  },
3709
3709
  emits: ["update:modelValue", "input", "blur"],
3710
3710
  setup(e, { expose: t, emit: o }) {
3711
- const s = e, n = D(s.error), i = Qt(), r = D(!1), l = D(null);
3711
+ const s = e, n = D(s.error), i = Qt(), r = D(!1), a = D(null);
3712
3712
  //!props.form ? ref(null) : props.form.fields[props.name].ref
3713
- const a = g({
3713
+ const l = g({
3714
3714
  get: () => s.modelValue,
3715
3715
  //props.form?.fields[props.name].model.value,
3716
3716
  set: (R) => {
@@ -3720,17 +3720,17 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3720
3720
  o("input", R), v();
3721
3721
  }, v = () => {
3722
3722
  if (!(!s.form || !s.form.fields || !s.form.fields[s.name].rules))
3723
- return n.value = Jn.validate(a.value, s.form.fields[s.name].rules), !!n.value;
3723
+ return n.value = Jn.validate(l.value, s.form.fields[s.name].rules), !!n.value;
3724
3724
  };
3725
3725
  be(() => {
3726
3726
  w();
3727
3727
  });
3728
3728
  const w = () => {
3729
3729
  var R;
3730
- (R = l.value) == null || R.focus();
3730
+ (R = a.value) == null || R.focus();
3731
3731
  }, E = () => {
3732
- a.value = "";
3733
- }, S = (R) => {
3732
+ l.value = "";
3733
+ }, $ = (R) => {
3734
3734
  r.value = R;
3735
3735
  }, V = (R) => {
3736
3736
  n.value = R;
@@ -3742,16 +3742,16 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3742
3742
  setError: V,
3743
3743
  validate: v
3744
3744
  }), (R, H) => {
3745
- var j, L, W, M, C, z, X, m, h, _, A, re, ke, $e, Se, xe, oe, we, pe, Ce, He, _e, st, nt, it, rt, at, lt, dt, ct, ut, pt, ft, ht, mt, gt, vt, yt, bt;
3745
+ var j, L, W, M, C, z, X, m, h, _, A, re, ke, Se, $e, xe, oe, we, pe, Ce, He, _e, st, nt, it, rt, lt, at, dt, ct, ut, pt, ft, ht, mt, gt, vt, yt, bt;
3746
3746
  return d(), f("div", {
3747
3747
  class: T(["d-input-string", u.value])
3748
3748
  }, [
3749
- $("div", Qn, [
3749
+ S("div", Qn, [
3750
3750
  s.label ? (d(), f("div", ei, [
3751
3751
  G(N(s.label), 1),
3752
3752
  (j = s.form) != null && j.fields[s.name].rules && s.form.fields[s.name].rules.hasOwnProperty("required") ? (d(), f("span", ti, "*")) : k("", !0)
3753
3753
  ])) : k("", !0),
3754
- $("div", oi, [
3754
+ S("div", oi, [
3755
3755
  (W = (L = s.pre) == null ? void 0 : L.outside) != null && W.component ? (d(), f("div", {
3756
3756
  key: 0,
3757
3757
  class: T(["d-pre", s.disabled ? "disabled" : ""])
@@ -3761,30 +3761,30 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3761
3761
  key: 1,
3762
3762
  class: T(["d-pre", s.disabled ? "disabled" : ""])
3763
3763
  }, [
3764
- $("div", {
3764
+ S("div", {
3765
3765
  class: T(["d-text", r.value ? "focused" : ""])
3766
3766
  }, N((h = (m = s.pre) == null ? void 0 : m.outside) == null ? void 0 : h.text), 3)
3767
3767
  ], 2)) : k("", !0),
3768
- $("div", si, [
3769
- (A = (_ = s.pre) == null ? void 0 : _.inside) != null && A.action && ((ke = (re = s.pre) == null ? void 0 : re.inside) == null ? void 0 : ke.action) === "clear" && (($e = a.value) == null ? void 0 : $e.length) > 0 ? (d(), f("div", {
3768
+ S("div", si, [
3769
+ (A = (_ = s.pre) == null ? void 0 : _.inside) != null && A.action && ((ke = (re = s.pre) == null ? void 0 : re.inside) == null ? void 0 : ke.action) === "clear" && ((Se = l.value) == null ? void 0 : Se.length) > 0 ? (d(), f("div", {
3770
3770
  key: 0,
3771
3771
  class: "d-pre-inside-button",
3772
3772
  onClick: E
3773
3773
  }, ii)) : k("", !0),
3774
- Z($("input", {
3774
+ Z(S("input", {
3775
3775
  id: B(i),
3776
3776
  ref_key: "inputRef",
3777
- ref: l,
3778
- "onUpdate:modelValue": H[0] || (H[0] = (Re) => a.value = Re),
3777
+ ref: a,
3778
+ "onUpdate:modelValue": H[0] || (H[0] = (Re) => l.value = Re),
3779
3779
  style: { width: "100%" },
3780
3780
  type: c.value,
3781
3781
  placeholder: s.placeholder,
3782
3782
  onInput: p,
3783
- onFocus: H[1] || (H[1] = (Re) => S(!0)),
3783
+ onFocus: H[1] || (H[1] = (Re) => $(!0)),
3784
3784
  onBlur: U,
3785
- onFocusout: H[2] || (H[2] = (Re) => S(!1)),
3785
+ onFocusout: H[2] || (H[2] = (Re) => $(!1)),
3786
3786
  class: T([
3787
- (xe = (Se = s.pre) == null ? void 0 : Se.outside) != null && xe.component || (we = (oe = s.pre) == null ? void 0 : oe.outside) != null && we.text ? "has-pre" : "",
3787
+ (xe = ($e = s.pre) == null ? void 0 : $e.outside) != null && xe.component || (we = (oe = s.pre) == null ? void 0 : oe.outside) != null && we.text ? "has-pre" : "",
3788
3788
  (Ce = (pe = s.post) == null ? void 0 : pe.outside) != null && Ce.component || (_e = (He = s.post) == null ? void 0 : He.outside) != null && _e.text ? "has-post" : "",
3789
3789
  (nt = (st = s.pre) == null ? void 0 : st.inside) != null && nt.action ? "has-pre-inside-button" : "",
3790
3790
  (rt = (it = s.post) == null ? void 0 : it.inside) != null && rt.action ? "has-post-inside-button" : "",
@@ -3792,13 +3792,13 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3792
3792
  ]),
3793
3793
  disabled: s.disabled
3794
3794
  }, null, 42, ri), [
3795
- [Be, a.value]
3795
+ [Be, l.value]
3796
3796
  ]),
3797
- (lt = (at = s.post) == null ? void 0 : at.inside) != null && lt.action && ((ct = (dt = s.post) == null ? void 0 : dt.inside) == null ? void 0 : ct.action) === "clear" && ((ut = a.value) == null ? void 0 : ut.length) > 0 ? (d(), f("div", {
3797
+ (at = (lt = s.post) == null ? void 0 : lt.inside) != null && at.action && ((ct = (dt = s.post) == null ? void 0 : dt.inside) == null ? void 0 : ct.action) === "clear" && ((ut = l.value) == null ? void 0 : ut.length) > 0 ? (d(), f("div", {
3798
3798
  key: 1,
3799
3799
  class: "d-post-inside-button",
3800
3800
  onClick: E
3801
- }, li)) : k("", !0)
3801
+ }, ai)) : k("", !0)
3802
3802
  ]),
3803
3803
  (ft = (pt = s.post) == null ? void 0 : pt.outside) != null && ft.component ? (d(), f("div", {
3804
3804
  key: 2,
@@ -3809,7 +3809,7 @@ const Jn = new Zn(), Qn = { style: { display: "flex", "flex-direction": "column"
3809
3809
  key: 3,
3810
3810
  class: T(["d-post", s.disabled ? "disabled" : ""])
3811
3811
  }, [
3812
- $("div", {
3812
+ S("div", {
3813
3813
  class: T(["d-text", r.value ? "focused" : ""])
3814
3814
  }, N((bt = (yt = s.post) == null ? void 0 : yt.outside) == null ? void 0 : bt.text), 3)
3815
3815
  ], 2)) : k("", !0)
@@ -3829,22 +3829,34 @@ const pi = { style: { "text-align": "center" } }, Ri = {
3829
3829
  format: {
3830
3830
  type: String,
3831
3831
  default: "rgba"
3832
+ },
3833
+ title: {
3834
+ type: String,
3835
+ default: "Выбор цвета"
3836
+ },
3837
+ close: {
3838
+ type: String,
3839
+ default: "Закрыть"
3840
+ },
3841
+ select: {
3842
+ type: String,
3843
+ default: "Выбрать"
3832
3844
  }
3833
3845
  },
3834
3846
  emits: ["update:modelValue"],
3835
3847
  setup(e, { emit: t }) {
3836
3848
  const o = e;
3837
3849
  Fe((p) => ({
3838
- aff54402: s.value
3850
+ c187db06: s.value
3839
3851
  }));
3840
3852
  const s = g({
3841
3853
  get: () => o.modelValue,
3842
3854
  set: (p) => {
3843
3855
  t("update:modelValue", p);
3844
3856
  }
3845
- }), n = D(null), i = D(s), r = D(null), l = (p) => {
3857
+ }), n = D(null), i = D(s), r = D(null), a = (p) => {
3846
3858
  r.value = o.format === "rgba" ? p.rgba : p.hex;
3847
- }, a = () => {
3859
+ }, l = () => {
3848
3860
  n.value.show();
3849
3861
  }, c = {
3850
3862
  outside: {
@@ -3864,7 +3876,7 @@ const pi = { style: { "text-align": "center" } }, Ri = {
3864
3876
  label: o.label,
3865
3877
  modelValue: s.value,
3866
3878
  "onUpdate:modelValue": v[0] || (v[0] = (w) => s.value = w),
3867
- onClick: a
3879
+ onClick: l
3868
3880
  }, null, 8, ["label", "modelValue"]),
3869
3881
  x(Ye, {
3870
3882
  ref_key: "modalRef",
@@ -3873,23 +3885,23 @@ const pi = { style: { "text-align": "center" } }, Ri = {
3873
3885
  "max-width": "250px"
3874
3886
  }, {
3875
3887
  "modal-title": I(() => [
3876
- G("Выбор цвета")
3888
+ G(N(o.title), 1)
3877
3889
  ]),
3878
3890
  default: I(() => [
3879
3891
  x(B(ye), {
3880
3892
  theme: B(he).getters.theme(),
3881
3893
  color: i.value,
3882
3894
  "sucker-hide": !0,
3883
- onChangeColor: l
3895
+ onChangeColor: a
3884
3896
  }, null, 8, ["theme", "color"])
3885
3897
  ]),
3886
3898
  "modal-footer": I(() => [
3887
- $("div", pi, [
3899
+ S("div", pi, [
3888
3900
  x(te, {
3889
3901
  onClick: v[1] || (v[1] = (w) => n.value.hide())
3890
3902
  }, {
3891
3903
  default: I(() => [
3892
- G("Закрыть")
3904
+ G(N(o.close), 1)
3893
3905
  ]),
3894
3906
  _: 1
3895
3907
  }),
@@ -3898,7 +3910,7 @@ const pi = { style: { "text-align": "center" } }, Ri = {
3898
3910
  onClick: u
3899
3911
  }, {
3900
3912
  default: I(() => [
3901
- G("Выбрать")
3913
+ G(N(o.select), 1)
3902
3914
  ]),
3903
3915
  _: 1
3904
3916
  })
@@ -4020,12 +4032,12 @@ function Te(e) {
4020
4032
  t.touchMoved = Math.abs(t.startX - t.currentX) > i || Math.abs(t.startY - t.currentY) > i, t.touchMoved && (ot(t), se(e, this, "drag.once"));
4021
4033
  }
4022
4034
  if (ee(this, "rollover") && n) {
4023
- var l = e.timeStamp, a = t.options.rollOverFrequency;
4024
- (t.touchRollTime == null || l > t.touchRollTime + a) && (t.touchRollTime = l, se(e, this, "rollover"));
4035
+ var a = e.timeStamp, l = t.options.rollOverFrequency;
4036
+ (t.touchRollTime == null || a > t.touchRollTime + l) && (t.touchRollTime = a, se(e, this, "rollover"));
4025
4037
  }
4026
4038
  if (ee(this, "drag") && t.touchStarted && t.touchMoved && n) {
4027
- var l = e.timeStamp, a = t.options.dragFrequency;
4028
- (t.touchDragTime == null || l > t.touchDragTime + a) && (t.touchDragTime = l, se(e, this, "drag"));
4039
+ var a = e.timeStamp, l = t.options.dragFrequency;
4040
+ (t.touchDragTime == null || a > t.touchDragTime + l) && (t.touchDragTime = a, se(e, this, "drag"));
4029
4041
  }
4030
4042
  }
4031
4043
  function xt() {
@@ -4039,8 +4051,8 @@ function Le(e) {
4039
4051
  if (ot(t), t.touchStarted = !1, tt(this), !(s && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
4040
4052
  if (se(e, this, "release"), t.touchMoved) {
4041
4053
  if (t.hasSwipe && !t.swipeOutBounded) {
4042
- var i = t.options.swipeTolerance, r, l = Math.abs(t.startY - t.currentY), a = Math.abs(t.startX - t.currentX);
4043
- (l > i || a > i) && (l > i ? r = t.startY > t.currentY ? "top" : "bottom" : r = t.startX > t.currentX ? "left" : "right", ee(this, "swipe." + r) ? se(e, this, "swipe." + r, r) : se(e, this, "swipe", r));
4054
+ var i = t.options.swipeTolerance, r, a = Math.abs(t.startY - t.currentY), l = Math.abs(t.startX - t.currentX);
4055
+ (a > i || l > i) && (a > i ? r = t.startY > t.currentY ? "top" : "bottom" : r = t.startX > t.currentX ? "left" : "right", ee(this, "swipe." + r) ? se(e, this, "swipe." + r, r) : se(e, this, "swipe", r));
4044
4056
  }
4045
4057
  } else if (ee(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
4046
4058
  e.cancelable && e.preventDefault(), se(e, this, "longtap");
@@ -4065,8 +4077,8 @@ function se(e, t, o, s) {
4065
4077
  if (i == null || i.length === 0)
4066
4078
  return null;
4067
4079
  for (var r = 0; r < i.length; r++) {
4068
- var l = i[r];
4069
- l.modifiers.stop && e.stopPropagation(), l.modifiers.prevent && e.preventDefault(), !(l.modifiers.self && e.target !== e.currentTarget) && typeof l.value == "function" && (s ? l.value(s, e) : l.value(e));
4080
+ var a = i[r];
4081
+ a.modifiers.stop && e.stopPropagation(), a.modifiers.prevent && e.preventDefault(), !(a.modifiers.self && e.target !== e.currentTarget) && typeof a.value == "function" && (s ? a.value(s, e) : a.value(e));
4070
4082
  }
4071
4083
  }
4072
4084
  function Wt(e) {
@@ -4103,8 +4115,8 @@ const zi = {
4103
4115
  if (i.left || i.right || i.top || i.bottom) {
4104
4116
  for (let r in t.modifiers)
4105
4117
  if (["left", "right", "top", "bottom"].indexOf(r) >= 0) {
4106
- let l = "swipe." + r;
4107
- o.callbacks[l] = o.callbacks[l] || [], o.callbacks[l].push(t);
4118
+ let a = "swipe." + r;
4119
+ o.callbacks[a] = o.callbacks[a] || [], o.callbacks[a].push(t);
4108
4120
  }
4109
4121
  } else
4110
4122
  o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(t);
@@ -4124,7 +4136,7 @@ const zi = {
4124
4136
  export {
4125
4137
  yi as DAccordion,
4126
4138
  fs as DAlertDialog,
4127
- So as DBadge,
4139
+ $o as DBadge,
4128
4140
  te as DButton,
4129
4141
  xi as DCard,
4130
4142
  Di as DCheckbox,
@@ -4137,7 +4149,7 @@ export {
4137
4149
  Ti as DDialogProvider,
4138
4150
  _t as DDrag,
4139
4151
  Wo as DDrop,
4140
- Si as DDropdown,
4152
+ $i as DDropdown,
4141
4153
  Mi as DForm,
4142
4154
  he as DGlobalStore,
4143
4155
  Ii as DGrid,
@@ -4157,7 +4169,7 @@ export {
4157
4169
  Ye as DModal,
4158
4170
  wi as DNotificationProvider,
4159
4171
  _s as DPanel,
4160
- $i as DScroll,
4172
+ Si as DScroll,
4161
4173
  ki as DScrollProvider,
4162
4174
  Li as DSelect,
4163
4175
  Hi as DSwitcher,