@wizepe/wizeui 0.1.168 → 0.1.169

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/wizeui.es.js CHANGED
@@ -1,43 +1,43 @@
1
- var Z = Object.defineProperty, Q = Object.defineProperties;
2
- var ee = Object.getOwnPropertyDescriptors;
3
- var U = Object.getOwnPropertySymbols;
4
- var te = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
5
- var q = (r, e, t) => e in r ? Z(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, b = (r, e) => {
1
+ var le = Object.defineProperty, ne = Object.defineProperties;
2
+ var ie = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var oe = Object.prototype.hasOwnProperty, ce = Object.prototype.propertyIsEnumerable;
5
+ var G = (r, e, t) => e in r ? le(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
6
6
  for (var t in e || (e = {}))
7
- te.call(e, t) && q(r, t, e[t]);
8
- if (U)
9
- for (var t of U(e))
10
- se.call(e, t) && q(r, t, e[t]);
7
+ oe.call(e, t) && G(r, t, e[t]);
8
+ if (J)
9
+ for (var t of J(e))
10
+ ce.call(e, t) && G(r, t, e[t]);
11
11
  return r;
12
- }, $ = (r, e) => Q(r, ee(e));
13
- var E = (r, e, t) => new Promise((s, a) => {
14
- var n = (i) => {
12
+ }, F = (r, e) => ne(r, ie(e));
13
+ var L = (r, e, t) => new Promise((s, a) => {
14
+ var l = (i) => {
15
15
  try {
16
16
  o(t.next(i));
17
17
  } catch (c) {
18
18
  a(c);
19
19
  }
20
- }, l = (i) => {
20
+ }, n = (i) => {
21
21
  try {
22
22
  o(t.throw(i));
23
23
  } catch (c) {
24
24
  a(c);
25
25
  }
26
- }, o = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(n, l);
26
+ }, o = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(l, n);
27
27
  o((t = t.apply(r, e)).next());
28
28
  });
29
- import { computed as y, ref as z, onMounted as S, watch as T, onBeforeUnmount as V, getCurrentInstance as H, onUnmounted as ae } from "vue";
30
- import * as R from "moment";
31
- import k from "sweetalert";
32
- import { helpers as K } from "vuelidate/lib/validators";
33
- function g(r, e, t, s, a, n, l, o) {
29
+ import { computed as z, ref as y, onMounted as T, watch as A, onBeforeUnmount as B, getCurrentInstance as te, onUnmounted as ue, nextTick as X } from "vue";
30
+ import * as N from "moment";
31
+ import $ from "sweetalert";
32
+ import { helpers as Z } from "vuelidate/lib/validators";
33
+ function h(r, e, t, s, a, l, n, o) {
34
34
  var i = typeof r == "function" ? r.options : r;
35
- e && (i.render = e, i.staticRenderFns = t, i._compiled = !0), s && (i.functional = !0), n && (i._scopeId = "data-v-" + n);
35
+ e && (i.render = e, i.staticRenderFns = t, i._compiled = !0), s && (i.functional = !0), l && (i._scopeId = "data-v-" + l);
36
36
  var c;
37
- if (l ? (c = function(w) {
38
- w = w || // cached call
37
+ if (n ? (c = function(g) {
38
+ g = g || // cached call
39
39
  this.$vnode && this.$vnode.ssrContext || // stateful
40
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !w && typeof __VUE_SSR_CONTEXT__ != "undefined" && (w = __VUE_SSR_CONTEXT__), a && a.call(this, w), w && w._registeredComponents && w._registeredComponents.add(l);
40
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !g && typeof __VUE_SSR_CONTEXT__ != "undefined" && (g = __VUE_SSR_CONTEXT__), a && a.call(this, g), g && g._registeredComponents && g._registeredComponents.add(n);
41
41
  }, i._ssrRegister = c) : a && (c = o ? function() {
42
42
  a.call(
43
43
  this,
@@ -46,9 +46,9 @@ function g(r, e, t, s, a, n, l, o) {
46
46
  } : a), c)
47
47
  if (i.functional) {
48
48
  i._injectStyles = c;
49
- var v = i.render;
50
- i.render = function(m, d) {
51
- return c.call(d), v(m, d);
49
+ var p = i.render;
50
+ i.render = function(v, f) {
51
+ return c.call(f), p(v, f);
52
52
  };
53
53
  } else {
54
54
  var u = i.beforeCreate;
@@ -59,7 +59,7 @@ function g(r, e, t, s, a, n, l, o) {
59
59
  options: i
60
60
  };
61
61
  }
62
- const re = {
62
+ const de = {
63
63
  __name: "WzButton",
64
64
  props: {
65
65
  /**
@@ -129,31 +129,31 @@ const re = {
129
129
  },
130
130
  emits: ["click"],
131
131
  setup(r, { emit: e }) {
132
- const t = r, s = y(() => [
132
+ const t = r, s = z(() => [
133
133
  "wz-btn",
134
134
  `wz-btn-${t.variant}`,
135
135
  `wz-btn-${t.size}`,
136
136
  { "wz-btn-block": t.block }
137
137
  ]);
138
- return { __sfc: !0, props: t, emit: e, classes: s, handleClick: (n) => {
139
- t.disabled || e("click", n);
138
+ return { __sfc: !0, props: t, emit: e, classes: s, handleClick: (l) => {
139
+ t.disabled || e("click", l);
140
140
  } };
141
141
  }
142
142
  };
143
- var ne = function() {
143
+ var pe = function() {
144
144
  var e = this, t = e._self._c, s = e._self._setupProxy;
145
145
  return t("button", { class: s.classes, attrs: { type: e.type, disabled: e.disabled }, on: { click: s.handleClick } }, [e._t("default")], 2);
146
- }, le = [], ie = /* @__PURE__ */ g(
147
- re,
148
- ne,
149
- le,
146
+ }, fe = [], _e = /* @__PURE__ */ h(
147
+ de,
148
+ pe,
149
+ fe,
150
150
  !1,
151
151
  null,
152
152
  null,
153
153
  null,
154
154
  null
155
155
  );
156
- const J = ie.exports, oe = {
156
+ const se = _e.exports, we = {
157
157
  __name: "WzLayout",
158
158
  props: {
159
159
  /**
@@ -179,28 +179,28 @@ const J = ie.exports, oe = {
179
179
  }
180
180
  },
181
181
  setup(r) {
182
- const e = r, t = z(e.defaultCollapsed), s = () => {
182
+ const e = r, t = y(e.defaultCollapsed), s = () => {
183
183
  t.value = !t.value;
184
184
  };
185
- return S(() => {
185
+ return T(() => {
186
186
  typeof window != "undefined" && window.innerWidth <= 768 && (t.value = !0);
187
187
  }), { __sfc: !0, props: e, isCollapsed: t, toggleSidebar: s };
188
188
  }
189
189
  };
190
- var ce = function() {
190
+ var ge = function() {
191
191
  var e = this, t = e._self._c, s = e._self._setupProxy;
192
192
  return t("div", { staticClass: "wz-admin-layout", class: "is-" + e.navigationStyle, attrs: { "data-theme": e.theme } }, [t("div", { staticClass: "wz-admin-layout-sidebar-container" }, [s.isCollapsed ? e._e() : t("div", { staticClass: "wz-admin-layout-backdrop", on: { click: s.toggleSidebar } }), e._t("sidebar", null, { collapsed: s.isCollapsed })], 2), t("div", { staticClass: "wz-admin-layout-main" }, [t("div", { staticClass: "wz-admin-layout-header-container" }, [e._t("header", null, { toggleSidebar: s.toggleSidebar, collapsed: s.isCollapsed })], 2), e.navigationStyle === "horizontal" ? t("div", { staticClass: "wz-admin-layout-horizontal-nav-container" }, [e._t("horizontal-nav")], 2) : e._e(), t("main", { staticClass: "wz-admin-layout-content" }, [e._t("default")], 2)])]);
193
- }, ue = [], de = /* @__PURE__ */ g(
194
- oe,
195
- ce,
196
- ue,
193
+ }, ve = [], me = /* @__PURE__ */ h(
194
+ we,
195
+ ge,
196
+ ve,
197
197
  !1,
198
198
  null,
199
199
  null,
200
200
  null,
201
201
  null
202
202
  );
203
- const pe = de.exports, fe = {
203
+ const he = me.exports, ye = {
204
204
  __name: "WzSidebar",
205
205
  props: {
206
206
  /**
@@ -257,38 +257,38 @@ const pe = de.exports, fe = {
257
257
  },
258
258
  emits: ["item-click"],
259
259
  setup(r, { emit: e }) {
260
- const t = r, s = z(!1), a = y(() => t.collapsed && !s.value), n = (d) => d.key === t.activeKey, l = (d) => d.children && d.children.length > 0, o = (d) => l(d) ? d.children.some((h) => h.key === t.activeKey) : !1, i = () => {
261
- const d = /* @__PURE__ */ new Set();
262
- return t.items.forEach((h) => {
263
- l(h) && h.children.some((O) => O.key === t.activeKey) && d.add(h.key);
264
- }), d;
265
- }, c = z(i());
266
- T(() => t.activeKey, () => {
267
- t.items.forEach((d) => {
268
- if (l(d) && d.children.some((h) => h.key === t.activeKey) && !c.value.has(d.key)) {
269
- const h = new Set(c.value);
270
- h.add(d.key), c.value = h;
260
+ const t = r, s = y(!1), a = z(() => t.collapsed && !s.value), l = (f) => f.key === t.activeKey, n = (f) => f.children && f.children.length > 0, o = (f) => n(f) ? f.children.some((C) => C.key === t.activeKey) : !1, i = () => {
261
+ const f = /* @__PURE__ */ new Set();
262
+ return t.items.forEach((C) => {
263
+ n(C) && C.children.some((I) => I.key === t.activeKey) && f.add(C.key);
264
+ }), f;
265
+ }, c = y(i());
266
+ A(() => t.activeKey, () => {
267
+ t.items.forEach((f) => {
268
+ if (n(f) && f.children.some((C) => C.key === t.activeKey) && !c.value.has(f.key)) {
269
+ const C = new Set(c.value);
270
+ C.add(f.key), c.value = C;
271
271
  }
272
272
  });
273
273
  });
274
- const v = (d) => c.value.has(d.key), u = (d) => {
275
- if (!l(d) || a.value)
274
+ const p = (f) => c.value.has(f.key), u = (f) => {
275
+ if (!n(f) || a.value)
276
276
  return;
277
- const h = new Set(c.value);
278
- h.has(d.key) ? h.delete(d.key) : h.add(d.key), c.value = h;
277
+ const C = new Set(c.value);
278
+ C.has(f.key) ? C.delete(f.key) : C.add(f.key), c.value = C;
279
279
  };
280
- return { __sfc: !0, props: t, emit: e, isHovered: s, visuallyCollapsed: a, isActive: n, hasChildren: l, hasActiveChild: o, buildOpenKeys: i, openKeys: c, isOpen: v, toggle: u, handleClick: (d) => {
280
+ return { __sfc: !0, props: t, emit: e, isHovered: s, visuallyCollapsed: a, isActive: l, hasChildren: n, hasActiveChild: o, buildOpenKeys: i, openKeys: c, isOpen: p, toggle: u, handleClick: (f) => {
281
281
  if (a.value) {
282
- e("item-click", d);
282
+ e("item-click", f);
283
283
  return;
284
284
  }
285
- l(d) ? u(d) : e("item-click", d);
286
- }, handleChildClick: (d) => {
287
- e("item-click", d);
285
+ n(f) ? u(f) : e("item-click", f);
286
+ }, handleChildClick: (f) => {
287
+ e("item-click", f);
288
288
  } };
289
289
  }
290
290
  };
291
- var _e = function() {
291
+ var ze = function() {
292
292
  var e = this, t = e._self._c, s = e._self._setupProxy;
293
293
  return t("aside", { staticClass: "wz-sidebar", class: { "wz-sidebar--collapsed": s.visuallyCollapsed }, on: { mouseenter: function(a) {
294
294
  s.isHovered = !0;
@@ -296,28 +296,28 @@ var _e = function() {
296
296
  s.isHovered = !1;
297
297
  } } }, [t("div", { staticClass: "wz-sidebar-logo" }, [e._t("logo", function() {
298
298
  return [e.logoSrc || e.logoMiniSrc ? [t("img", { class: s.visuallyCollapsed ? "wz-sidebar-logo-img-mini" : "wz-sidebar-logo-img-icon", attrs: { src: s.visuallyCollapsed ? e.logoMiniSrc || e.logoSrc : e.logoSrc || e.logoMiniSrc, alt: e.logoText || "Logo" } }), e.logoText && !s.visuallyCollapsed ? t("span", { staticClass: "wz-sidebar-logo-text" }, [e._v(e._s(e.logoText))]) : e._e()] : [e.logoIconHtml ? t("span", { staticClass: "wz-sidebar-logo-icon", domProps: { innerHTML: e._s(e.logoIconHtml) } }) : e._e(), t("span", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-logo-text" }, [e._v(e._s(e.logoText))])]];
299
- })], 2), t("nav", { staticClass: "wz-sidebar-nav" }, [e._l(e.items, function(a, n) {
300
- return [a.type === "group" ? t("div", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], key: `group-${n}`, staticClass: "wz-sidebar-group" }, [e._v(" " + e._s(a.label) + " ")]) : t("div", { key: a.key || n, staticClass: "wz-sidebar-item-wrapper" }, [t("div", { staticClass: "wz-sidebar-item", class: { "wz-sidebar-item--active": s.isActive(a) || s.hasActiveChild(a) }, attrs: { title: s.visuallyCollapsed ? a.label : null }, on: { click: function(l) {
299
+ })], 2), t("nav", { staticClass: "wz-sidebar-nav" }, [e._l(e.items, function(a, l) {
300
+ return [a.type === "group" ? t("div", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], key: `group-${l}`, staticClass: "wz-sidebar-group" }, [e._v(" " + e._s(a.label) + " ")]) : t("div", { key: a.key || l, staticClass: "wz-sidebar-item-wrapper" }, [t("div", { staticClass: "wz-sidebar-item", class: { "wz-sidebar-item--active": s.isActive(a) || s.hasActiveChild(a) }, attrs: { title: s.visuallyCollapsed ? a.label : null }, on: { click: function(n) {
301
301
  return s.handleClick(a);
302
302
  } } }, [t("span", { staticClass: "wz-sidebar-icon" }, [e._t("icon", function() {
303
303
  return [a.icon ? t("i", { class: a.icon, staticStyle: { "font-size": "1.125rem" } }) : a.iconHtml ? t("span", { domProps: { innerHTML: e._s(a.iconHtml) } }) : t("i", { staticClass: "ri-checkbox-blank-circle-line", staticStyle: { "font-size": "10px" } })];
304
- }, { item: a })], 2), t("span", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-label" }, [e._v(e._s(a.label))]), s.hasChildren(a) ? t("span", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-arrow", class: { "wz-sidebar-arrow--open": s.isOpen(a) } }, [t("i", { staticClass: "ri-arrow-right-s-line", staticStyle: { "font-size": "1.125rem" } })]) : e._e()]), t("div", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-children-wrapper", class: { "is-open": s.hasChildren(a) && s.isOpen(a) } }, [t("div", { staticClass: "wz-sidebar-children-inner" }, [s.hasChildren(a) ? t("div", { staticClass: "wz-sidebar-children" }, e._l(a.children, function(l) {
305
- return t("div", { key: l.key, staticClass: "wz-sidebar-child-item", class: { "wz-sidebar-child-item--active": s.isActive(l) }, on: { click: function(o) {
306
- return s.handleChildClick(l);
307
- } } }, [t("span", { staticClass: "wz-sidebar-label" }, [e._v(e._s(l.label))]), s.hasChildren(l) ? t("span", { staticClass: "wz-sidebar-arrow" }, [t("i", { staticClass: "ri-arrow-right-s-line", staticStyle: { "font-size": "1rem" } })]) : e._e()]);
304
+ }, { item: a })], 2), t("span", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-label" }, [e._v(e._s(a.label))]), s.hasChildren(a) ? t("span", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-arrow", class: { "wz-sidebar-arrow--open": s.isOpen(a) } }, [t("i", { staticClass: "ri-arrow-right-s-line", staticStyle: { "font-size": "1.125rem" } })]) : e._e()]), t("div", { directives: [{ name: "show", rawName: "v-show", value: !s.visuallyCollapsed, expression: "!visuallyCollapsed" }], staticClass: "wz-sidebar-children-wrapper", class: { "is-open": s.hasChildren(a) && s.isOpen(a) } }, [t("div", { staticClass: "wz-sidebar-children-inner" }, [s.hasChildren(a) ? t("div", { staticClass: "wz-sidebar-children" }, e._l(a.children, function(n) {
305
+ return t("div", { key: n.key, staticClass: "wz-sidebar-child-item", class: { "wz-sidebar-child-item--active": s.isActive(n) }, on: { click: function(o) {
306
+ return s.handleChildClick(n);
307
+ } } }, [t("span", { staticClass: "wz-sidebar-label" }, [e._v(e._s(n.label))]), s.hasChildren(n) ? t("span", { staticClass: "wz-sidebar-arrow" }, [t("i", { staticClass: "ri-arrow-right-s-line", staticStyle: { "font-size": "1rem" } })]) : e._e()]);
308
308
  }), 0) : e._e()])])])];
309
309
  })], 2)]);
310
- }, we = [], ve = /* @__PURE__ */ g(
311
- fe,
312
- _e,
313
- we,
310
+ }, Ce = [], be = /* @__PURE__ */ h(
311
+ ye,
312
+ ze,
313
+ Ce,
314
314
  !1,
315
315
  null,
316
316
  null,
317
317
  null,
318
318
  null
319
319
  );
320
- const ge = ve.exports, me = {
320
+ const ke = be.exports, xe = {
321
321
  __name: "WzHeader",
322
322
  props: {
323
323
  /**
@@ -386,24 +386,24 @@ const ge = ve.exports, me = {
386
386
  },
387
387
  emits: ["menu-toggle", "search", "notifications", "settings", "user-click", "action-click", "user-menu-click"],
388
388
  setup(r, { emit: e }) {
389
- const t = r, s = y(() => {
390
- var v, u;
391
- return ((u = (v = t.user) == null ? void 0 : v.name) == null ? void 0 : u.split(" ")[0]) || "";
392
- }), a = (v) => v ? v.split(" ").map((u) => u[0]).slice(0, 2).join("").toUpperCase() : "?", n = z(!1), l = z(null), o = () => {
393
- n.value = !n.value, e("user-click");
394
- }, i = (v) => {
395
- e("user-menu-click", v), n.value = !1;
396
- }, c = (v) => {
397
- l.value && !l.value.contains(v.target) && (n.value = !1);
389
+ const t = r, s = z(() => {
390
+ var p, u;
391
+ return ((u = (p = t.user) == null ? void 0 : p.name) == null ? void 0 : u.split(" ")[0]) || "";
392
+ }), a = (p) => p ? p.split(" ").map((u) => u[0]).slice(0, 2).join("").toUpperCase() : "?", l = y(!1), n = y(null), o = () => {
393
+ l.value = !l.value, e("user-click");
394
+ }, i = (p) => {
395
+ e("user-menu-click", p), l.value = !1;
396
+ }, c = (p) => {
397
+ n.value && !n.value.contains(p.target) && (l.value = !1);
398
398
  };
399
- return S(() => {
399
+ return T(() => {
400
400
  document.addEventListener("click", c);
401
- }), V(() => {
401
+ }), B(() => {
402
402
  document.removeEventListener("click", c);
403
- }), { __sfc: !0, props: t, emit: e, firstName: s, initials: a, isUserMenuOpen: n, userMenuContainer: l, toggleUserMenu: o, handleUserItemClick: i, handleClickOutside: c };
403
+ }), { __sfc: !0, props: t, emit: e, firstName: s, initials: a, isUserMenuOpen: l, userMenuContainer: n, toggleUserMenu: o, handleUserItemClick: i, handleClickOutside: c };
404
404
  }
405
405
  };
406
- var ye = function() {
406
+ var Se = function() {
407
407
  var e = this, t = e._self._c, s = e._self._setupProxy;
408
408
  return t("header", { staticClass: "wz-header", class: { "wz-header--horizontal": e.layoutMode === "horizontal" } }, [t("div", { staticClass: "wz-header-left" }, [t("div", { staticClass: "wz-header-dynamic-logo", class: e.layoutMode === "horizontal" ? "wz-header-logo-always-visible" : "wz-header-mobile-logo" }, [e.logoSrc ? t("img", { staticClass: "wz-header-dynamic-logo-img", attrs: { src: e.logoSrc, alt: "Logo" } }) : e._e(), e.logoText ? t("span", { staticClass: "wz-header-dynamic-logo-text" }, [e._v(e._s(e.logoText))]) : e._e()]), e.layoutMode === "vertical" ? t("button", { staticClass: "wz-header-action wz-header-icon-desktop", attrs: { title: "Toggle Menu" }, on: { click: function(a) {
409
409
  return e.$emit("menu-toggle");
@@ -411,9 +411,9 @@ var ye = function() {
411
411
  return e.$emit("menu-toggle");
412
412
  } } }, [t("i", { staticClass: "ri-menu-line", staticStyle: { "font-size": "16px", "font-weight": "500", "line-height": "24px", color: "rgb(97, 116, 143)" } })]), e._t("left")], 2), t("div", { staticClass: "wz-header-right" }, [e._t("actions", function() {
413
413
  return [e.actionItems && e.actionItems.length ? [e._l(e.actionItems, function(a) {
414
- return [a.badge ? t("div", { key: "badge-" + a.key, staticClass: "wz-header-badge" }, [t("button", { staticClass: "wz-header-action", attrs: { title: a.key }, on: { click: function(n) {
414
+ return [a.badge ? t("div", { key: "badge-" + a.key, staticClass: "wz-header-badge" }, [t("button", { staticClass: "wz-header-action", attrs: { title: a.key }, on: { click: function(l) {
415
415
  return s.emit("action-click", a);
416
- } } }, [t("i", { class: a.icon, staticStyle: { "font-size": "1.125rem" } })]), a.badgeCount || e.notificationCount > 0 ? t("span", { staticClass: "wz-header-badge-dot" }, [e._v(" " + e._s(a.badgeCount || e.notificationCount > 9 ? "9+" : a.badgeCount || e.notificationCount) + " ")]) : e._e()]) : t("button", { key: a.key, staticClass: "wz-header-action", attrs: { title: a.key }, on: { click: function(n) {
416
+ } } }, [t("i", { class: a.icon, staticStyle: { "font-size": "1.125rem" } })]), a.badgeCount || e.notificationCount > 0 ? t("span", { staticClass: "wz-header-badge-dot" }, [e._v(" " + e._s(a.badgeCount || e.notificationCount > 9 ? "9+" : a.badgeCount || e.notificationCount) + " ")]) : e._e()]) : t("button", { key: a.key, staticClass: "wz-header-action", attrs: { title: a.key }, on: { click: function(l) {
417
417
  return s.emit("action-click", a);
418
418
  } } }, [t("i", { class: a.icon, staticStyle: { "font-size": "1.125rem" } })])];
419
419
  })] : [t("button", { staticClass: "wz-header-action", attrs: { title: "Search" }, on: { click: function(a) {
@@ -427,12 +427,12 @@ var ye = function() {
427
427
  return [t("div", { staticClass: "wz-header-user", on: { click: function(a) {
428
428
  return a.stopPropagation(), s.toggleUserMenu.apply(null, arguments);
429
429
  } } }, [e.user.avatar ? t("img", { staticClass: "wz-header-user-avatar", attrs: { src: e.user.avatar, alt: e.user.name } }) : t("div", { staticClass: "wz-header-user-avatar-placeholder" }, [e._v(" " + e._s(s.initials(e.user.name)) + " ")]), t("span", { staticClass: "wz-header-user-name wz-header-user-name--full" }, [e._v(e._s(e.user.name))]), t("span", { staticClass: "wz-header-user-name wz-header-user-name--short" }, [e._v(e._s(s.firstName))])])];
430
- }), e.userMenuItems && e.userMenuItems.length > 0 ? t("div", { directives: [{ name: "show", rawName: "v-show", value: s.isUserMenuOpen, expression: "isUserMenuOpen" }], staticClass: "wz-header-dropdown" }, [t("div", { staticClass: "wz-header-dropdown-header" }, [t("div", { staticClass: "wz-header-dropdown-title" }, [e._v(e._s(e.user.name))]), e.userSubtitle ? t("div", { staticClass: "wz-header-dropdown-subtitle" }, [e._v(e._s(e.userSubtitle))]) : e._e()]), t("div", { staticClass: "wz-header-dropdown-body" }, e._l(e.userMenuItems, function(a, n) {
431
- return t("div", { key: n, staticClass: "wz-header-dropdown-item", class: { "wz-header-dropdown-item--logout": a.isLogout }, on: { click: function(l) {
430
+ }), e.userMenuItems && e.userMenuItems.length > 0 ? t("div", { directives: [{ name: "show", rawName: "v-show", value: s.isUserMenuOpen, expression: "isUserMenuOpen" }], staticClass: "wz-header-dropdown" }, [t("div", { staticClass: "wz-header-dropdown-header" }, [t("div", { staticClass: "wz-header-dropdown-title" }, [e._v(e._s(e.user.name))]), e.userSubtitle ? t("div", { staticClass: "wz-header-dropdown-subtitle" }, [e._v(e._s(e.userSubtitle))]) : e._e()]), t("div", { staticClass: "wz-header-dropdown-body" }, e._l(e.userMenuItems, function(a, l) {
431
+ return t("div", { key: l, staticClass: "wz-header-dropdown-item", class: { "wz-header-dropdown-item--logout": a.isLogout }, on: { click: function(n) {
432
432
  return s.handleUserItemClick(a);
433
433
  } } }, [a.icon && !a.isLogout ? t("i", { class: a.icon }) : e._e(), t("span", [e._v(e._s(a.label))])]);
434
434
  }), 0)]) : e._e()], 2)], 2)]);
435
- }, he = [function() {
435
+ }, $e = [function() {
436
436
  var r = this, e = r._self._c;
437
437
  return r._self._setupProxy, e("button", { staticClass: "wz-header-action", attrs: { title: "Language" } }, [e("i", { staticClass: "ri-global-line", staticStyle: { "font-size": "1.125rem" } })]);
438
438
  }, function() {
@@ -444,17 +444,17 @@ var ye = function() {
444
444
  }, function() {
445
445
  var r = this, e = r._self._c;
446
446
  return r._self._setupProxy, e("button", { staticClass: "wz-header-action", attrs: { title: "Fullscreen" } }, [e("i", { staticClass: "ri-fullscreen-line", staticStyle: { "font-size": "1.125rem" } })]);
447
- }], ze = /* @__PURE__ */ g(
448
- me,
449
- ye,
450
- he,
447
+ }], Pe = /* @__PURE__ */ h(
448
+ xe,
449
+ Se,
450
+ $e,
451
451
  !1,
452
452
  null,
453
453
  null,
454
454
  null,
455
455
  null
456
456
  );
457
- const Ce = ze.exports, be = {
457
+ const Fe = Pe.exports, Te = {
458
458
  __name: "WzSettingsPanel",
459
459
  props: {
460
460
  /**
@@ -505,38 +505,38 @@ const Ce = ze.exports, be = {
505
505
  { value: "horizontal", label: "Horizontal" }
506
506
  ]
507
507
  }
508
- ], a = y(() => [...s, ...t.extraSettings]);
508
+ ], a = z(() => [...s, ...t.extraSettings]);
509
509
  return { __sfc: !0, props: t, emit: e, baseSettings: s, allSettings: a, handleSelection: (o, i) => {
510
- const c = $(b({}, t.value), { [o]: i });
510
+ const c = F(x({}, t.value), { [o]: i });
511
511
  e("input", c), e("setting-change", { id: o, value: i });
512
512
  }, closePanel: () => {
513
513
  e("close");
514
514
  } };
515
515
  }
516
516
  };
517
- var ke = function() {
517
+ var Oe = function() {
518
518
  var e = this, t = e._self._c, s = e._self._setupProxy;
519
519
  return t("div", { staticClass: "wz-settings", class: { "wz-settings--open": e.isOpen } }, [t("div", { staticClass: "wz-settings-overlay", on: { click: s.closePanel } }), t("aside", { staticClass: "wz-settings-panel" }, [t("div", { staticClass: "wz-settings-header" }, [t("h3", { staticClass: "wz-settings-title" }, [e._v(e._s(e.title))]), t("button", { staticClass: "wz-settings-close", attrs: { title: "Close Settings" }, on: { click: s.closePanel } }, [t("i", { staticClass: "ri-close-circle-line" })])]), e._m(0), t("div", { staticClass: "wz-settings-body" }, [e._l(s.allSettings, function(a) {
520
- return [t("div", { key: a.id, staticClass: "wz-settings-section" }, [t("h4", { staticClass: "wz-settings-section-title" }, [e._v(e._s(a.title))]), t("div", { staticClass: "wz-settings-radio-group" }, e._l(a.options, function(n) {
521
- return t("label", { key: n.value, staticClass: "wz-settings-radio-label" }, [t("div", { staticClass: "wz-settings-radio-circle", class: { "wz-settings-radio-circle--active": e.value[a.id] === n.value } }, [t("span", { directives: [{ name: "show", rawName: "v-show", value: e.value[a.id] === n.value, expression: "value[setting.id] === opt.value" }], staticClass: "wz-settings-radio-dot" })]), t("input", { staticClass: "wz-settings-radio-native", attrs: { type: "radio", name: a.id }, domProps: { value: n.value, checked: e.value[a.id] === n.value }, on: { change: function(l) {
522
- return s.handleSelection(a.id, n.value);
523
- } } }), t("span", { staticClass: "wz-settings-radio-text" }, [e._v(e._s(n.label))])]);
520
+ return [t("div", { key: a.id, staticClass: "wz-settings-section" }, [t("h4", { staticClass: "wz-settings-section-title" }, [e._v(e._s(a.title))]), t("div", { staticClass: "wz-settings-radio-group" }, e._l(a.options, function(l) {
521
+ return t("label", { key: l.value, staticClass: "wz-settings-radio-label" }, [t("div", { staticClass: "wz-settings-radio-circle", class: { "wz-settings-radio-circle--active": e.value[a.id] === l.value } }, [t("span", { directives: [{ name: "show", rawName: "v-show", value: e.value[a.id] === l.value, expression: "value[setting.id] === opt.value" }], staticClass: "wz-settings-radio-dot" })]), t("input", { staticClass: "wz-settings-radio-native", attrs: { type: "radio", name: a.id }, domProps: { value: l.value, checked: e.value[a.id] === l.value }, on: { change: function(n) {
522
+ return s.handleSelection(a.id, l.value);
523
+ } } }), t("span", { staticClass: "wz-settings-radio-text" }, [e._v(e._s(l.label))])]);
524
524
  }), 0)])];
525
525
  })], 2)])]);
526
- }, xe = [function() {
526
+ }, Ie = [function() {
527
527
  var r = this, e = r._self._c;
528
528
  return r._self._setupProxy, e("div", { staticClass: "wz-settings-tabs" }, [e("div", { staticClass: "wz-settings-tab wz-settings-tab--active" }, [r._v("Estilo del tema")])]);
529
- }], $e = /* @__PURE__ */ g(
530
- be,
531
- ke,
532
- xe,
529
+ }], Ee = /* @__PURE__ */ h(
530
+ Te,
531
+ Oe,
532
+ Ie,
533
533
  !1,
534
534
  null,
535
535
  null,
536
536
  null,
537
537
  null
538
538
  );
539
- const Se = $e.exports, Pe = {
539
+ const Re = Ee.exports, Me = {
540
540
  __name: "WzHorizontalNav",
541
541
  props: {
542
542
  items: {
@@ -550,65 +550,65 @@ const Se = $e.exports, Pe = {
550
550
  },
551
551
  emits: ["item-click"],
552
552
  setup(r, { emit: e }) {
553
- const t = r, s = z(null), a = (u) => {
553
+ const t = r, s = y(null), a = (u) => {
554
554
  s.value && s.value.scrollBy({ left: u * 250, behavior: "smooth" });
555
- }, n = z(null), l = z({}), o = (u) => {
556
- const m = u.closest(".wz-horizontal-nav").getBoundingClientRect(), d = u.getBoundingClientRect();
557
- l.value = {
555
+ }, l = y(null), n = y({}), o = (u) => {
556
+ const v = u.closest(".wz-horizontal-nav").getBoundingClientRect(), f = u.getBoundingClientRect();
557
+ n.value = {
558
558
  top: "100%",
559
- left: d.left - m.left + "px"
559
+ left: f.left - v.left + "px"
560
560
  };
561
- }, i = (u, w) => {
561
+ }, i = (u, g) => {
562
562
  if (!u.children || u.children.length === 0) {
563
- e("item-click", u), n.value = null;
563
+ e("item-click", u), l.value = null;
564
564
  return;
565
565
  }
566
- n.value === u.key ? n.value = null : (o(w.currentTarget), n.value = u.key);
566
+ l.value === u.key ? l.value = null : (o(g.currentTarget), l.value = u.key);
567
567
  }, c = (u) => {
568
- e("item-click", u), n.value = null;
569
- }, v = (u) => {
570
- u.target.closest(".wz-horizontal-nav") || (n.value = null);
568
+ e("item-click", u), l.value = null;
569
+ }, p = (u) => {
570
+ u.target.closest(".wz-horizontal-nav") || (l.value = null);
571
571
  };
572
- return S(() => {
573
- document.addEventListener("click", v);
574
- }), V(() => {
575
- document.removeEventListener("click", v);
576
- }), { __sfc: !0, props: t, emit: e, trackWrapper: s, scroll: a, openDropdown: n, dropdownStyle: l, positionDropdown: o, toggleDropdown: i, handleChildClick: c, handleDocClick: v };
572
+ return T(() => {
573
+ document.addEventListener("click", p);
574
+ }), B(() => {
575
+ document.removeEventListener("click", p);
576
+ }), { __sfc: !0, props: t, emit: e, trackWrapper: s, scroll: a, openDropdown: l, dropdownStyle: n, positionDropdown: o, toggleDropdown: i, handleChildClick: c, handleDocClick: p };
577
577
  }
578
578
  };
579
- var Fe = function() {
579
+ var Ae = function() {
580
580
  var e = this, t = e._self._c, s = e._self._setupProxy;
581
581
  return t("div", { staticClass: "wz-horizontal-nav" }, [t("button", { staticClass: "wz-horizontal-nav-arrow", on: { click: function(a) {
582
582
  return a.stopPropagation(), s.scroll(-1);
583
- } } }, [t("i", { staticClass: "ri-arrow-left-s-line" })]), t("div", { ref: "trackWrapper", staticClass: "wz-horizontal-nav-track-wrapper" }, [t("div", { staticClass: "wz-horizontal-nav-track" }, [e._l(e.items, function(a, n) {
584
- return [a.type !== "group" ? t("div", { key: a.key || n, staticClass: "wz-horizontal-nav-item", class: {
585
- "wz-horizontal-nav-item--active": a.key === e.activeKey || a.children && a.children.some((l) => l.key === e.activeKey),
583
+ } } }, [t("i", { staticClass: "ri-arrow-left-s-line" })]), t("div", { ref: "trackWrapper", staticClass: "wz-horizontal-nav-track-wrapper" }, [t("div", { staticClass: "wz-horizontal-nav-track" }, [e._l(e.items, function(a, l) {
584
+ return [a.type !== "group" ? t("div", { key: a.key || l, staticClass: "wz-horizontal-nav-item", class: {
585
+ "wz-horizontal-nav-item--active": a.key === e.activeKey || a.children && a.children.some((n) => n.key === e.activeKey),
586
586
  "wz-horizontal-nav-item--open": s.openDropdown === a.key
587
- }, on: { click: function(l) {
588
- return l.stopPropagation(), s.toggleDropdown(a, l);
587
+ }, on: { click: function(n) {
588
+ return n.stopPropagation(), s.toggleDropdown(a, n);
589
589
  } } }, [a.icon ? t("i", { class: a.icon }) : e._e(), t("span", [e._v(e._s(a.label))]), a.children && a.children.length > 0 ? t("i", { staticClass: "wz-horizontal-nav-chevron", class: s.openDropdown === a.key ? "ri-arrow-down-s-line" : "ri-arrow-right-s-line" }) : e._e()]) : e._e()];
590
590
  })], 2)]), t("button", { staticClass: "wz-horizontal-nav-arrow", on: { click: function(a) {
591
591
  return a.stopPropagation(), s.scroll(1);
592
592
  } } }, [t("i", { staticClass: "ri-arrow-right-s-line" })]), s.openDropdown ? t("div", { staticClass: "wz-horizontal-nav-dropdown", style: s.dropdownStyle, on: { click: function(a) {
593
593
  a.stopPropagation();
594
594
  } } }, [e._l(e.items, function(a) {
595
- return [a.key === s.openDropdown && a.children ? e._l(a.children, function(n) {
596
- return t("div", { key: n.key, staticClass: "wz-horizontal-dropdown-child", class: { "wz-horizontal-dropdown-child--active": n.key === e.activeKey }, on: { click: function(l) {
597
- return l.stopPropagation(), s.handleChildClick(n);
598
- } } }, [t("span", [e._v(e._s(n.label))]), n.children && n.children.length > 0 ? t("i", { staticClass: "ri-arrow-right-s-line wz-horizontal-dropdown-child-arrow" }) : e._e()]);
595
+ return [a.key === s.openDropdown && a.children ? e._l(a.children, function(l) {
596
+ return t("div", { key: l.key, staticClass: "wz-horizontal-dropdown-child", class: { "wz-horizontal-dropdown-child--active": l.key === e.activeKey }, on: { click: function(n) {
597
+ return n.stopPropagation(), s.handleChildClick(l);
598
+ } } }, [t("span", [e._v(e._s(l.label))]), l.children && l.children.length > 0 ? t("i", { staticClass: "ri-arrow-right-s-line wz-horizontal-dropdown-child-arrow" }) : e._e()]);
599
599
  }) : e._e()];
600
600
  })], 2) : e._e()]);
601
- }, Te = [], Oe = /* @__PURE__ */ g(
602
- Pe,
603
- Fe,
604
- Te,
601
+ }, We = [], De = /* @__PURE__ */ h(
602
+ Me,
603
+ Ae,
604
+ We,
605
605
  !1,
606
606
  null,
607
607
  null,
608
608
  null,
609
609
  null
610
610
  );
611
- const Ie = Oe.exports, Ee = {
611
+ const Be = De.exports, Ve = {
612
612
  __name: "WzCard",
613
613
  props: {
614
614
  /**
@@ -649,14 +649,14 @@ const Ie = Oe.exports, Ee = {
649
649
  },
650
650
  emits: ["click", "header-click"],
651
651
  setup(r, { emit: e }) {
652
- const t = r, s = y(() => [
652
+ const t = r, s = z(() => [
653
653
  `wz-card--${t.shadow}`,
654
654
  { "wz-card--hoverable": t.hoverable }
655
655
  ]);
656
656
  return { __sfc: !0, props: t, emit: e, cardClasses: s };
657
657
  }
658
658
  };
659
- var Re = function() {
659
+ var Le = function() {
660
660
  var e = this, t = e._self._c, s = e._self._setupProxy;
661
661
  return t("div", { staticClass: "wz-card", class: s.cardClasses, on: { click: function(a) {
662
662
  return s.emit("click", a);
@@ -667,17 +667,17 @@ var Re = function() {
667
667
  return [e._v(e._s(e.title))];
668
668
  })], 2), e.$slots["header-actions"] ? t("div", { staticClass: "wz-card-actions" }, [e._t("header-actions")], 2) : e._e()];
669
669
  })], 2) : e._e(), t("div", { staticClass: "wz-card-body", class: { "wz-card-body--no-padding": !e.bodyPadding } }, [e._t("default")], 2), e.$slots.footer ? t("div", { staticClass: "wz-card-footer" }, [e._t("footer")], 2) : e._e()]);
670
- }, Ae = [], Me = /* @__PURE__ */ g(
671
- Ee,
672
- Re,
673
- Ae,
670
+ }, Ne = [], qe = /* @__PURE__ */ h(
671
+ Ve,
672
+ Le,
673
+ Ne,
674
674
  !1,
675
675
  null,
676
676
  null,
677
677
  null,
678
678
  null
679
679
  );
680
- const We = Me.exports, De = {
680
+ const Ue = qe.exports, Ke = {
681
681
  __name: "WzAlert",
682
682
  props: {
683
683
  variant: {
@@ -700,24 +700,24 @@ const We = Me.exports, De = {
700
700
  return { __sfc: !0, props: r, emit: e };
701
701
  }
702
702
  };
703
- var Be = function() {
703
+ var He = function() {
704
704
  var e = this, t = e._self._c, s = e._self._setupProxy;
705
705
  return t("div", { staticClass: "wz-alert", class: [`wz-alert--${e.variant}`] }, [e.icon || e.$slots.icon ? t("div", { staticClass: "wz-alert-icon" }, [e._t("icon", function() {
706
706
  return [e.icon ? t("i", { class: e.icon }) : e._e()];
707
707
  })], 2) : e._e(), t("div", { staticClass: "wz-alert-content" }, [e._t("default")], 2), e.dismissible ? t("button", { staticClass: "wz-alert-dismiss", attrs: { title: "Dismiss" }, on: { click: function(a) {
708
708
  return s.emit("dismiss");
709
709
  } } }, [t("i", { staticClass: "ri-close-line" })]) : e._e()]);
710
- }, Ve = [], Le = /* @__PURE__ */ g(
711
- De,
712
- Be,
713
- Ve,
710
+ }, je = [], Ye = /* @__PURE__ */ h(
711
+ Ke,
712
+ He,
713
+ je,
714
714
  !1,
715
715
  null,
716
716
  null,
717
717
  null,
718
718
  null
719
719
  );
720
- const Ne = Le.exports, Ue = {
720
+ const Je = Ye.exports, Ge = {
721
721
  __name: "WzBadge",
722
722
  props: {
723
723
  variant: {
@@ -745,22 +745,22 @@ const Ne = Le.exports, Ue = {
745
745
  return { __sfc: !0, props: r, emit: e };
746
746
  }
747
747
  };
748
- var qe = function() {
748
+ var Xe = function() {
749
749
  var e = this, t = e._self._c, s = e._self._setupProxy;
750
750
  return t("span", { staticClass: "wz-badge", class: [`wz-badge--${e.variant}`, { "wz-badge--pill": e.pill }] }, [e.icon ? t("i", { class: [e.icon, "wz-badge-icon"] }) : e._e(), e._t("default"), e.dismissible ? t("button", { staticClass: "wz-badge-dismiss", attrs: { title: "Dismiss" }, on: { click: function(a) {
751
751
  return a.stopPropagation(), s.emit("dismiss");
752
752
  } } }, [t("i", { staticClass: "ri-close-line" })]) : e._e()], 2);
753
- }, Ke = [], je = /* @__PURE__ */ g(
754
- Ue,
755
- qe,
756
- Ke,
753
+ }, Ze = [], Qe = /* @__PURE__ */ h(
754
+ Ge,
755
+ Xe,
756
+ Ze,
757
757
  !1,
758
758
  null,
759
759
  null,
760
760
  null,
761
761
  null
762
762
  );
763
- const G = je.exports, Ye = {
763
+ const ae = Qe.exports, et = {
764
764
  __name: "WzDropdown",
765
765
  props: {
766
766
  /**
@@ -796,26 +796,26 @@ const G = je.exports, Ye = {
796
796
  },
797
797
  emits: ["click"],
798
798
  setup(r, { emit: e }) {
799
- const t = r, s = z(!1), a = z(null), n = z(null), l = z(null), o = z({
799
+ const t = r, s = y(!1), a = y(null), l = y(null), n = y(null), o = y({
800
800
  position: "fixed",
801
801
  top: "0px",
802
802
  left: "0px",
803
803
  zIndex: 99999
804
804
  });
805
805
  function i() {
806
- if (!n.value)
806
+ if (!l.value)
807
807
  return;
808
- const m = n.value.getBoundingClientRect(), d = document.documentElement.clientWidth, h = m.bottom + 2;
808
+ const v = l.value.getBoundingClientRect(), f = document.documentElement.clientWidth, C = v.bottom + 2;
809
809
  t.placement === "left" ? o.value = {
810
810
  position: "fixed",
811
- top: h + "px",
812
- right: d - m.right + 12 + "px",
811
+ top: C + "px",
812
+ right: f - v.right + 12 + "px",
813
813
  left: "auto",
814
814
  zIndex: 99999
815
815
  } : o.value = {
816
816
  position: "fixed",
817
- top: h + "px",
818
- left: m.left + "px",
817
+ top: C + "px",
818
+ left: v.left + "px",
819
819
  right: "auto",
820
820
  zIndex: 99999
821
821
  };
@@ -823,82 +823,82 @@ const G = je.exports, Ye = {
823
823
  function c() {
824
824
  s.value || i(), s.value = !s.value;
825
825
  }
826
- function v(m) {
827
- e("click", m), s.value = !1;
826
+ function p(v) {
827
+ e("click", v), s.value = !1;
828
828
  }
829
- function u(m) {
830
- a.value && !a.value.contains(m.target) && (s.value = !1);
829
+ function u(v) {
830
+ a.value && !a.value.contains(v.target) && (s.value = !1);
831
831
  }
832
- function w() {
832
+ function g() {
833
833
  s.value && i();
834
834
  }
835
- return S(() => {
836
- document.addEventListener("mousedown", u), document.addEventListener("scroll", w, !0), window.addEventListener("resize", w);
837
- }), V(() => {
838
- document.removeEventListener("mousedown", u), document.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w);
839
- }), { __sfc: !0, props: t, emit: e, isOpen: s, dropdownWrapper: a, triggerBtn: n, menuEl: l, menuStyle: o, calcPosition: i, toggle: c, handleClick: v, handleClickOutside: u, handleScroll: w };
835
+ return T(() => {
836
+ document.addEventListener("mousedown", u), document.addEventListener("scroll", g, !0), window.addEventListener("resize", g);
837
+ }), B(() => {
838
+ document.removeEventListener("mousedown", u), document.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
839
+ }), { __sfc: !0, props: t, emit: e, isOpen: s, dropdownWrapper: a, triggerBtn: l, menuEl: n, menuStyle: o, calcPosition: i, toggle: c, handleClick: p, handleClickOutside: u, handleScroll: g };
840
840
  }
841
841
  };
842
- var He = function() {
842
+ var tt = function() {
843
843
  var e = this, t = e._self._c, s = e._self._setupProxy;
844
844
  return t("div", { ref: "dropdownWrapper", staticClass: "wz-dropdown" }, [t("button", { ref: "triggerBtn", staticClass: "wz-dropdown-trigger", attrs: { title: e.triggerTitle }, on: { click: function(a) {
845
845
  return a.stopPropagation(), s.toggle.apply(null, arguments);
846
846
  } } }, [e._t("trigger", function() {
847
847
  return [t("i", { class: e.triggerIcon })];
848
848
  })], 2), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.isOpen, expression: "isOpen" }], ref: "menuEl", staticClass: "wz-dropdown-menu", style: s.menuStyle }, e._l(e.items, function(a) {
849
- return t("div", { key: a.key, staticClass: "wz-dropdown-item", class: { "wz-dropdown-item--danger": a.danger }, on: { click: function(n) {
850
- return n.stopPropagation(), s.handleClick(a);
849
+ return t("div", { key: a.key, staticClass: "wz-dropdown-item", class: { "wz-dropdown-item--danger": a.danger }, on: { click: function(l) {
850
+ return l.stopPropagation(), s.handleClick(a);
851
851
  } } }, [t("span", [e._v(e._s(a.label))])]);
852
852
  }), 0)]);
853
- }, Je = [], Ge = /* @__PURE__ */ g(
854
- Ye,
855
- He,
856
- Je,
853
+ }, st = [], at = /* @__PURE__ */ h(
854
+ et,
855
+ tt,
856
+ st,
857
857
  !1,
858
858
  null,
859
859
  null,
860
860
  null,
861
861
  null
862
862
  );
863
- const Xe = Ge.exports, Ze = {
863
+ const rt = at.exports, lt = {
864
864
  __name: "WzTableContainer",
865
865
  setup(r) {
866
866
  return { __sfc: !0 };
867
867
  }
868
868
  };
869
- var Qe = function() {
869
+ var nt = function() {
870
870
  var e = this, t = e._self._c;
871
871
  return e._self._setupProxy, t("div", { staticClass: "wz-table-container" }, [e._t("default")], 2);
872
- }, et = [], tt = /* @__PURE__ */ g(
873
- Ze,
874
- Qe,
875
- et,
872
+ }, it = [], ot = /* @__PURE__ */ h(
873
+ lt,
874
+ nt,
875
+ it,
876
876
  !1,
877
877
  null,
878
878
  null,
879
879
  null,
880
880
  null
881
881
  );
882
- const st = tt.exports, at = {
882
+ const ct = ot.exports, ut = {
883
883
  __name: "WzTableToolbar",
884
884
  setup(r) {
885
885
  return { __sfc: !0 };
886
886
  }
887
887
  };
888
- var rt = function() {
888
+ var dt = function() {
889
889
  var e = this, t = e._self._c;
890
890
  return e._self._setupProxy, t("div", { staticClass: "wz-table-toolbar" }, [t("div", { staticClass: "wz-table-toolbar-top" }, [e.$slots.left || e.$scopedSlots.left ? t("div", { staticClass: "wz-table-toolbar-left" }, [e._t("left")], 2) : e._e(), e.$slots.right || e.$scopedSlots.right ? t("div", { staticClass: "wz-table-toolbar-right" }, [e._t("right")], 2) : e._e()]), e.$slots.filters || e.$scopedSlots.filters ? t("div", { staticClass: "wz-table-toolbar-bottom" }, [e._t("filters")], 2) : e._e()]);
891
- }, nt = [], lt = /* @__PURE__ */ g(
892
- at,
893
- rt,
894
- nt,
891
+ }, pt = [], ft = /* @__PURE__ */ h(
892
+ ut,
893
+ dt,
894
+ pt,
895
895
  !1,
896
896
  null,
897
897
  null,
898
898
  null,
899
899
  null
900
900
  );
901
- const it = lt.exports, ot = {
901
+ const _t = ft.exports, wt = {
902
902
  __name: "WzFilterMenu",
903
903
  props: {
904
904
  options: {
@@ -912,127 +912,127 @@ const it = lt.exports, ot = {
912
912
  },
913
913
  emits: ["setFilters"],
914
914
  setup(r, { emit: e }) {
915
- var L;
916
- const t = r, s = z(null), a = z(!1), n = z(null), l = z({}), o = (L = H()) == null ? void 0 : L.proxy, i = (p) => {
917
- if (!p)
915
+ var R;
916
+ const t = r, s = y(null), a = y(!1), l = y(null), n = y({}), o = (R = te()) == null ? void 0 : R.proxy, i = (_) => {
917
+ if (!_)
918
918
  return "";
919
- const f = p.split("-");
920
- return f.length !== 3 ? p : `${f[2]}-${f[1]}-${f[0]}`;
921
- }, c = (p) => {
922
- if (!p)
919
+ const w = _.split("-");
920
+ return w.length !== 3 ? _ : `${w[2]}-${w[1]}-${w[0]}`;
921
+ }, c = (_) => {
922
+ if (!_)
923
923
  return "";
924
- const f = p.split("-");
925
- return f.length !== 3 ? p : `${f[2]}-${f[1]}-${f[0]}`;
926
- }, v = () => {
924
+ const w = _.split("-");
925
+ return w.length !== 3 ? _ : `${w[2]}-${w[1]}-${w[0]}`;
926
+ }, p = () => {
927
927
  a.value = !a.value;
928
- }, u = (p) => {
929
- if (a.value && s.value && !s.value.contains(p.target)) {
930
- if (!document.body.contains(p.target))
928
+ }, u = (_) => {
929
+ if (a.value && s.value && !s.value.contains(_.target)) {
930
+ if (!document.body.contains(_.target))
931
931
  return;
932
932
  a.value = !1;
933
933
  }
934
934
  };
935
- S(() => {
936
- document.addEventListener("mousedown", u), w(), m();
937
- }), ae(() => {
935
+ T(() => {
936
+ document.addEventListener("mousedown", u), g(), v();
937
+ }), ue(() => {
938
938
  document.removeEventListener("mousedown", u);
939
- }), T(() => t.selectedOptionFilter, () => {
940
- w();
941
- }, { deep: !0 }), T(a, (p) => {
942
- p && w();
939
+ }), A(() => t.selectedOptionFilter, () => {
940
+ g();
941
+ }, { deep: !0 }), A(a, (_) => {
942
+ _ && g();
943
943
  });
944
- const w = () => {
945
- const p = {};
946
- t.options.forEach((f) => {
947
- var _, C;
948
- f.type === "MULTIPLE" ? p[f.key] = Array.isArray(t.selectedOptionFilter[f.key]) ? [...t.selectedOptionFilter[f.key]] : [] : f.type === "DATE" && f.isRange ? p[f.key] = {
949
- start: ((_ = t.selectedOptionFilter[f.key]) == null ? void 0 : _.start) || "",
950
- end: ((C = t.selectedOptionFilter[f.key]) == null ? void 0 : C.end) || ""
951
- } : p[f.key] = t.selectedOptionFilter[f.key] || "";
952
- }), l.value = p, t.options.length > 0 && (n.value = t.options[0]);
953
- }, m = () => {
944
+ const g = () => {
945
+ const _ = {};
946
+ t.options.forEach((w) => {
947
+ var m, b;
948
+ w.type === "MULTIPLE" ? _[w.key] = Array.isArray(t.selectedOptionFilter[w.key]) ? [...t.selectedOptionFilter[w.key]] : [] : w.type === "DATE" && w.isRange ? _[w.key] = {
949
+ start: ((m = t.selectedOptionFilter[w.key]) == null ? void 0 : m.start) || "",
950
+ end: ((b = t.selectedOptionFilter[w.key]) == null ? void 0 : b.end) || ""
951
+ } : _[w.key] = t.selectedOptionFilter[w.key] || "";
952
+ }), n.value = _, t.options.length > 0 && (l.value = t.options[0]);
953
+ }, v = () => {
954
954
  if (!o || !o.$route)
955
955
  return;
956
- const p = o.$route.query || {};
957
- if (Object.keys(p).length > 0) {
958
- const f = {};
959
- t.options.forEach((_) => {
960
- const C = p[_.key];
961
- if (C !== void 0)
962
- if (_.type === "MULTIPLE")
963
- f[_.key] = Array.isArray(C) ? C : [C];
964
- else if (_.type === "DATE")
965
- if (_.isRange) {
966
- const x = String(C).split("__");
967
- f[_.key] = {
968
- start: c(x[0]) || "",
969
- end: c(x[1]) || ""
956
+ const _ = o.$route.query || {};
957
+ if (Object.keys(_).length > 0) {
958
+ const w = {};
959
+ t.options.forEach((m) => {
960
+ const b = _[m.key];
961
+ if (b !== void 0)
962
+ if (m.type === "MULTIPLE")
963
+ w[m.key] = Array.isArray(b) ? b : [b];
964
+ else if (m.type === "DATE")
965
+ if (m.isRange) {
966
+ const S = String(b).split("__");
967
+ w[m.key] = {
968
+ start: c(S[0]) || "",
969
+ end: c(S[1]) || ""
970
970
  };
971
971
  } else
972
- f[_.key] = c(C) || "";
972
+ w[m.key] = c(b) || "";
973
973
  else
974
- f[_.key] = C;
975
- }), l.value = b(b({}, l.value), f), e("setFilters", I());
974
+ w[m.key] = b;
975
+ }), n.value = x(x({}, n.value), w), e("setFilters", O());
976
976
  }
977
- }, d = () => {
977
+ }, f = () => {
978
978
  a.value = !1;
979
- }, h = (p) => {
980
- n.value = p;
981
- }, O = () => {
982
- t.options.forEach((p) => {
983
- p.type === "MULTIPLE" ? l.value[p.key] = [] : p.type === "DATE" && p.isRange ? l.value[p.key] = { start: "", end: "" } : l.value[p.key] = "";
984
- });
979
+ }, C = (_) => {
980
+ l.value = _;
985
981
  }, I = () => {
986
- const p = {};
987
- return Object.keys(l.value).forEach((f) => {
988
- const _ = l.value[f];
989
- Array.isArray(_) ? _.length > 0 && (p[f] = _) : _ && typeof _ == "object" ? (_.start || _.end) && (p[f] = _) : _ !== "" && _ !== null && (p[f] = _);
990
- }), p;
982
+ t.options.forEach((_) => {
983
+ _.type === "MULTIPLE" ? n.value[_.key] = [] : _.type === "DATE" && _.isRange ? n.value[_.key] = { start: "", end: "" } : n.value[_.key] = "";
984
+ });
985
+ }, O = () => {
986
+ const _ = {};
987
+ return Object.keys(n.value).forEach((w) => {
988
+ const m = n.value[w];
989
+ Array.isArray(m) ? m.length > 0 && (_[w] = m) : m && typeof m == "object" ? (m.start || m.end) && (_[w] = m) : m !== "" && m !== null && (_[w] = m);
990
+ }), _;
991
991
  };
992
- return { __sfc: !0, props: t, emit: e, menuWrapper: s, isOpen: a, selectedCategory: n, localFilters: l, vm: o, toURLDate: i, fromURLDate: c, toggleMenu: v, handleClickOutside: u, initFilters: w, syncFromURL: m, hideMenu: d, selectCategory: h, clearFilters: O, getCleanedFilters: I, applyFilters: () => {
993
- const p = I();
992
+ return { __sfc: !0, props: t, emit: e, menuWrapper: s, isOpen: a, selectedCategory: l, localFilters: n, vm: o, toURLDate: i, fromURLDate: c, toggleMenu: p, handleClickOutside: u, initFilters: g, syncFromURL: v, hideMenu: f, selectCategory: C, clearFilters: I, getCleanedFilters: O, applyFilters: () => {
993
+ const _ = O();
994
994
  if (o && o.$router && o.$route) {
995
- const f = b({}, o.$route.query);
996
- t.options.forEach((_) => {
997
- delete f[_.key];
998
- }), Object.keys(p).forEach((_) => {
999
- const C = t.options.find((P) => P.key === _), x = p[_];
1000
- if (C && C.type === "DATE")
1001
- if (C.isRange) {
1002
- const P = i(x.start), N = i(x.end);
1003
- (P || N) && (f[_] = `${P}__${N}`);
995
+ const w = x({}, o.$route.query);
996
+ t.options.forEach((m) => {
997
+ delete w[m.key];
998
+ }), Object.keys(_).forEach((m) => {
999
+ const b = t.options.find((P) => P.key === m), S = _[m];
1000
+ if (b && b.type === "DATE")
1001
+ if (b.isRange) {
1002
+ const P = i(S.start), W = i(S.end);
1003
+ (P || W) && (w[m] = `${P}__${W}`);
1004
1004
  } else
1005
- f[_] = i(x);
1005
+ w[m] = i(S);
1006
1006
  else
1007
- f[_] = x;
1007
+ w[m] = S;
1008
1008
  }), o.$router.push({
1009
1009
  name: o.$route.name,
1010
- query: f
1011
- }).catch((_) => {
1012
- _.name !== "NavigationDuplicated" && console.error(_);
1010
+ query: w
1011
+ }).catch((m) => {
1012
+ m.name !== "NavigationDuplicated" && console.error(m);
1013
1013
  });
1014
1014
  }
1015
- e("setFilters", p), a.value = !1;
1016
- }, WzButton: J };
1015
+ e("setFilters", _), a.value = !1;
1016
+ }, WzButton: se };
1017
1017
  }
1018
1018
  };
1019
- var ct = function() {
1019
+ var gt = function() {
1020
1020
  var e = this, t = e._self._c, s = e._self._setupProxy;
1021
1021
  return t("div", { ref: "menuWrapper", staticClass: "wz-relative wz-inline-block" }, [t(s.WzButton, { attrs: { variant: "primary-soft" }, on: { click: s.toggleMenu } }, [t("i", { staticClass: "ri-filter-3-line wz-mr-1" }), e._v(" Filtrar ")]), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.isOpen, expression: "isOpen" }], staticClass: "wz-absolute wz-z-50 wz-top-full wz-left-0 wz-mt-2 wz-bg-white dark:wz-bg-[var(--admin-bg-panel)] wz-rounded-md wz-border wz-border-gray-200 dark:wz-border-gray-700 wz-overflow-hidden wz-flex wz-flex-col wz-transition-all", staticStyle: { width: "calc(100vw - 2rem)", "max-width": "480px", "transform-origin": "top left", "box-shadow": "0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1)" } }, [t("div", { staticClass: "wz-flex wz-flex-row", staticStyle: { height: "280px" } }, [t("div", { staticClass: "wz-filter-panel wz-h-full wz-border-r wz-border-gray-100 dark:wz-border-gray-800 wz-overflow-y-auto wz-py-2 wz-bg-gray-50/50 dark:wz-bg-[#13151a]", staticStyle: { width: "40%" } }, e._l(e.options, function(a) {
1022
- var n, l, o;
1023
- return t("div", { key: a.key, staticClass: "wz-px-3 wz-py-2 wz-cursor-pointer wz-font-medium wz-transition-colors wz-flex wz-justify-between wz-items-center", class: ((n = s.selectedCategory) == null ? void 0 : n.key) === a.key ? "wz-text-primary dark:wz-text-primary wz-bg-white dark:wz-bg-transparent wz-border-primary" : "wz-text-gray-600 dark:wz-text-gray-400 hover:wz-bg-gray-100 dark:hover:wz-bg-gray-800 wz-border-transparent", style: ((l = s.selectedCategory) == null ? void 0 : l.key) === a.key ? "font-size: 13px; border-left-width: 3px; background-color: color-mix(in srgb, var(--admin-primary-color, #6366f1) 10%, transparent);" : "font-size: 13px; border-left-width: 3px;", on: { click: function(i) {
1022
+ var l, n, o;
1023
+ return t("div", { key: a.key, staticClass: "wz-px-3 wz-py-2 wz-cursor-pointer wz-font-medium wz-transition-colors wz-flex wz-justify-between wz-items-center", class: ((l = s.selectedCategory) == null ? void 0 : l.key) === a.key ? "wz-text-primary dark:wz-text-primary wz-bg-white dark:wz-bg-transparent wz-border-primary" : "wz-text-gray-600 dark:wz-text-gray-400 hover:wz-bg-gray-100 dark:hover:wz-bg-gray-800 wz-border-transparent", style: ((n = s.selectedCategory) == null ? void 0 : n.key) === a.key ? "font-size: 13px; border-left-width: 3px; background-color: color-mix(in srgb, var(--admin-primary-color, #6366f1) 10%, transparent);" : "font-size: 13px; border-left-width: 3px;", on: { click: function(i) {
1024
1024
  return s.selectCategory(a);
1025
1025
  } } }, [t("span", { staticClass: "wz-truncate" }, [e._v(e._s(a.label))]), ((o = s.selectedCategory) == null ? void 0 : o.key) === a.key ? t("i", { staticClass: "ri-arrow-right-s-line" }) : e._e()]);
1026
1026
  }), 0), t("div", { staticClass: "wz-filter-panel wz-h-full wz-p-3 wz-overflow-y-auto wz-bg-white dark:wz-bg-[var(--admin-bg-panel)]", staticStyle: { width: "60%" } }, [s.selectedCategory ? [s.selectedCategory.type === "SINGLE" ? t("div", { staticClass: "wz-flex wz-flex-col wz-gap-2" }, e._l(s.selectedCategory.options, function(a) {
1027
- return t("label", { key: a.key, staticClass: "wz-flex wz-items-center wz-gap-3 wz-cursor-pointer group" }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: s.localFilters[s.selectedCategory.key], expression: "localFilters[selectedCategory.key]" }], staticClass: "wz-w-4 wz-h-4 wz-text-primary wz-border-gray-300 focus:wz-ring-primary dark:wz-bg-gray-800 dark:wz-border-gray-600 wz-cursor-pointer", attrs: { type: "radio", name: "filter_" + s.selectedCategory.key }, domProps: { value: a.key, checked: e._q(s.localFilters[s.selectedCategory.key], a.key) }, on: { change: function(n) {
1027
+ return t("label", { key: a.key, staticClass: "wz-flex wz-items-center wz-gap-3 wz-cursor-pointer group" }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: s.localFilters[s.selectedCategory.key], expression: "localFilters[selectedCategory.key]" }], staticClass: "wz-w-4 wz-h-4 wz-text-primary wz-border-gray-300 focus:wz-ring-primary dark:wz-bg-gray-800 dark:wz-border-gray-600 wz-cursor-pointer", attrs: { type: "radio", name: "filter_" + s.selectedCategory.key }, domProps: { value: a.key, checked: e._q(s.localFilters[s.selectedCategory.key], a.key) }, on: { change: function(l) {
1028
1028
  return e.$set(s.localFilters, s.selectedCategory.key, a.key);
1029
1029
  } } }), t("span", { staticClass: "wz-text-gray-700 dark:wz-text-gray-300 group-hover:wz-text-primary wz-transition-colors wz-uppercase", staticStyle: { "font-size": "13px" } }, [e._v(e._s(a.label || a.name || a))])]);
1030
1030
  }), 0) : e._e(), s.selectedCategory.type === "MULTIPLE" ? t("div", { staticClass: "wz-flex wz-flex-col wz-gap-2" }, e._l(s.selectedCategory.options, function(a) {
1031
- return t("label", { key: a.key, staticClass: "wz-flex wz-items-center wz-gap-3 wz-cursor-pointer group" }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: s.localFilters[s.selectedCategory.key], expression: "localFilters[selectedCategory.key]" }], staticClass: "wz-w-4 wz-h-4 wz-rounded-sm wz-text-primary wz-border-gray-300 focus:wz-ring-primary dark:wz-bg-gray-800 dark:wz-border-gray-600 wz-cursor-pointer", attrs: { type: "checkbox" }, domProps: { value: a.key, checked: Array.isArray(s.localFilters[s.selectedCategory.key]) ? e._i(s.localFilters[s.selectedCategory.key], a.key) > -1 : s.localFilters[s.selectedCategory.key] }, on: { change: function(n) {
1032
- var l = s.localFilters[s.selectedCategory.key], o = n.target, i = !!o.checked;
1033
- if (Array.isArray(l)) {
1034
- var c = a.key, v = e._i(l, c);
1035
- o.checked ? v < 0 && e.$set(s.localFilters, s.selectedCategory.key, l.concat([c])) : v > -1 && e.$set(s.localFilters, s.selectedCategory.key, l.slice(0, v).concat(l.slice(v + 1)));
1031
+ return t("label", { key: a.key, staticClass: "wz-flex wz-items-center wz-gap-3 wz-cursor-pointer group" }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: s.localFilters[s.selectedCategory.key], expression: "localFilters[selectedCategory.key]" }], staticClass: "wz-w-4 wz-h-4 wz-rounded-sm wz-text-primary wz-border-gray-300 focus:wz-ring-primary dark:wz-bg-gray-800 dark:wz-border-gray-600 wz-cursor-pointer", attrs: { type: "checkbox" }, domProps: { value: a.key, checked: Array.isArray(s.localFilters[s.selectedCategory.key]) ? e._i(s.localFilters[s.selectedCategory.key], a.key) > -1 : s.localFilters[s.selectedCategory.key] }, on: { change: function(l) {
1032
+ var n = s.localFilters[s.selectedCategory.key], o = l.target, i = !!o.checked;
1033
+ if (Array.isArray(n)) {
1034
+ var c = a.key, p = e._i(n, c);
1035
+ o.checked ? p < 0 && e.$set(s.localFilters, s.selectedCategory.key, n.concat([c])) : p > -1 && e.$set(s.localFilters, s.selectedCategory.key, n.slice(0, p).concat(n.slice(p + 1)));
1036
1036
  } else
1037
1037
  e.$set(s.localFilters, s.selectedCategory.key, i);
1038
1038
  } } }), t("span", { staticClass: "wz-text-gray-700 dark:wz-text-gray-300 group-hover:wz-text-primary wz-transition-colors wz-uppercase", staticStyle: { "font-size": "13px" } }, [e._v(e._s(a.label || a.name || a))])]);
@@ -1043,74 +1043,74 @@ var ct = function() {
1043
1043
  } } })])]) : t("div", [t("label", { staticClass: "wz-block wz-font-semibold wz-text-gray-500 dark:wz-text-gray-400 wz-mb-1 wz-uppercase wz-tracking-wider", staticStyle: { "font-size": "11px" } }, [e._v("Fecha Específica")]), t("input", { directives: [{ name: "model", rawName: "v-model", value: s.localFilters[s.selectedCategory.key], expression: "localFilters[selectedCategory.key]" }], staticClass: "wz-w-full wz-box-border wz-px-2 wz-py-1.5 wz-border wz-border-gray-300 wz-rounded dark:wz-bg-gray-800 dark:wz-border-gray-700 dark:wz-text-white focus:wz-outline-none focus:wz-ring-1 focus:wz-ring-primary focus:wz-border-primary", staticStyle: { "font-size": "13px", "box-sizing": "border-box" }, attrs: { type: "date" }, domProps: { value: s.localFilters[s.selectedCategory.key] }, on: { input: function(a) {
1044
1044
  a.target.composing || e.$set(s.localFilters, s.selectedCategory.key, a.target.value);
1045
1045
  } } })])]) : e._e()] : e._e()], 2)]), t("div", { staticClass: "wz-px-3 wz-py-2 wz-border-t wz-border-gray-200 dark:wz-border-gray-700 wz-flex wz-justify-between wz-items-center wz-bg-white dark:wz-bg-[var(--admin-bg-panel)]" }, [t(s.WzButton, { attrs: { variant: "outline", size: "sm" }, on: { click: s.clearFilters } }, [e._v(" Limpiar ")]), t("div", { staticClass: "wz-flex wz-gap-2" }, [t(s.WzButton, { attrs: { variant: "outline-danger", size: "sm" }, on: { click: s.hideMenu } }, [e._v(" Cancelar ")]), t(s.WzButton, { attrs: { variant: "primary", size: "sm" }, on: { click: s.applyFilters } }, [e._v(" Aplicar ")])], 1)], 1)])], 1);
1046
- }, ut = [], dt = /* @__PURE__ */ g(
1047
- ot,
1048
- ct,
1049
- ut,
1046
+ }, vt = [], mt = /* @__PURE__ */ h(
1047
+ wt,
1048
+ gt,
1049
+ vt,
1050
1050
  !1,
1051
1051
  null,
1052
1052
  null,
1053
1053
  null,
1054
1054
  null
1055
1055
  );
1056
- const pt = dt.exports, ft = {
1056
+ const ht = mt.exports, yt = {
1057
1057
  __name: "WzTableFilters",
1058
1058
  setup(r) {
1059
1059
  return { __sfc: !0 };
1060
1060
  }
1061
1061
  };
1062
- var _t = function() {
1062
+ var zt = function() {
1063
1063
  var e = this, t = e._self._c;
1064
1064
  return e._self._setupProxy, e.$slots.default ? t("div", { staticClass: "wz-table-filters" }, [e._t("default")], 2) : e._e();
1065
- }, wt = [], vt = /* @__PURE__ */ g(
1066
- ft,
1067
- _t,
1068
- wt,
1065
+ }, Ct = [], bt = /* @__PURE__ */ h(
1066
+ yt,
1067
+ zt,
1068
+ Ct,
1069
1069
  !1,
1070
1070
  null,
1071
1071
  null,
1072
1072
  null,
1073
1073
  null
1074
1074
  );
1075
- const gt = vt.exports, mt = {
1075
+ const kt = bt.exports, xt = {
1076
1076
  __name: "WzTable",
1077
1077
  setup(r) {
1078
1078
  return { __sfc: !0 };
1079
1079
  }
1080
1080
  };
1081
- var yt = function() {
1081
+ var St = function() {
1082
1082
  var e = this, t = e._self._c;
1083
1083
  return e._self._setupProxy, t("div", { staticClass: "wz-table-wrapper" }, [t("table", { staticClass: "wz-table" }, [e._t("default")], 2)]);
1084
- }, ht = [], zt = /* @__PURE__ */ g(
1085
- mt,
1086
- yt,
1087
- ht,
1084
+ }, $t = [], Pt = /* @__PURE__ */ h(
1085
+ xt,
1086
+ St,
1087
+ $t,
1088
1088
  !1,
1089
1089
  null,
1090
1090
  null,
1091
1091
  null,
1092
1092
  null
1093
1093
  );
1094
- const Ct = zt.exports, bt = {
1094
+ const Ft = Pt.exports, Tt = {
1095
1095
  __name: "WzTableFooter",
1096
1096
  setup(r) {
1097
1097
  return { __sfc: !0 };
1098
1098
  }
1099
1099
  };
1100
- var kt = function() {
1100
+ var Ot = function() {
1101
1101
  var e = this, t = e._self._c;
1102
1102
  return e._self._setupProxy, t("div", { staticClass: "wz-table-footer" }, [e._t("default")], 2);
1103
- }, xt = [], $t = /* @__PURE__ */ g(
1104
- bt,
1105
- kt,
1106
- xt,
1103
+ }, It = [], Et = /* @__PURE__ */ h(
1104
+ Tt,
1105
+ Ot,
1106
+ It,
1107
1107
  !1,
1108
1108
  null,
1109
1109
  null,
1110
1110
  null,
1111
1111
  null
1112
1112
  );
1113
- const St = $t.exports, Pt = {
1113
+ const Rt = Et.exports, Mt = {
1114
1114
  __name: "WzSearchBar",
1115
1115
  props: {
1116
1116
  placeholder: {
@@ -1129,20 +1129,20 @@ const St = $t.exports, Pt = {
1129
1129
  emits: ["search", "input"],
1130
1130
  setup(r, { emit: e }) {
1131
1131
  var i;
1132
- const t = r, s = z(!1), a = z(""), n = (i = H()) == null ? void 0 : i.proxy;
1133
- return S(() => {
1132
+ const t = r, s = y(!1), a = y(""), l = (i = te()) == null ? void 0 : i.proxy;
1133
+ return T(() => {
1134
1134
  let c = t.oldValue || t.value;
1135
- n && n.$route && n.$route.query && n.$route.query.search && (c = n.$route.query.search), a.value = c, a.value && e("input", a.value);
1136
- }), T(() => t.value, (c) => {
1135
+ l && l.$route && l.$route.query && l.$route.query.search && (c = l.$route.query.search), a.value = c, a.value && e("input", a.value);
1136
+ }), A(() => t.value, (c) => {
1137
1137
  c !== a.value && (a.value = c);
1138
- }), { __sfc: !0, props: t, emit: e, focus: s, keyword: a, vm: n, search: () => {
1138
+ }), { __sfc: !0, props: t, emit: e, focus: s, keyword: a, vm: l, search: () => {
1139
1139
  e("search", a.value);
1140
1140
  }, setCurrentValue: () => {
1141
1141
  e("input", a.value);
1142
1142
  } };
1143
1143
  }
1144
1144
  };
1145
- var Ft = function() {
1145
+ var At = function() {
1146
1146
  var e = this, t = e._self._c, s = e._self._setupProxy;
1147
1147
  return t("form", { staticClass: "wz-relative wz-flex wz-items-center wz-w-full wz-h-[36px] wz-bg-transparent wz-border wz-border-solid wz-rounded-md wz-transition-all wz-duration-200", style: {
1148
1148
  minWidth: "min(100%, 200px)",
@@ -1159,17 +1159,17 @@ var Ft = function() {
1159
1159
  }, input: [function(a) {
1160
1160
  a.target.composing || (s.keyword = a.target.value);
1161
1161
  }, s.setCurrentValue] } })]);
1162
- }, Tt = [], Ot = /* @__PURE__ */ g(
1163
- Pt,
1164
- Ft,
1165
- Tt,
1162
+ }, Wt = [], Dt = /* @__PURE__ */ h(
1163
+ Mt,
1164
+ At,
1165
+ Wt,
1166
1166
  !1,
1167
1167
  null,
1168
1168
  null,
1169
1169
  null,
1170
1170
  null
1171
1171
  );
1172
- const It = Ot.exports, Et = {
1172
+ const Bt = Dt.exports, Vt = {
1173
1173
  __name: "WzPagination",
1174
1174
  props: {
1175
1175
  total: {
@@ -1192,13 +1192,13 @@ const It = Ot.exports, Et = {
1192
1192
  },
1193
1193
  emits: ["update:currentPage", "update:perPage", "change"],
1194
1194
  setup(r, { emit: e }) {
1195
- const t = r, s = y(() => Math.ceil(t.total / t.perPage) || 1), a = y(() => {
1196
- const o = t.currentPage, i = s.value, c = 1, v = [], u = [];
1197
- let w;
1198
- for (let m = 1; m <= i; m++)
1199
- (m === 1 || m === i || m >= o - c && m <= o + c) && v.push(m);
1200
- return v.forEach((m) => {
1201
- w && (m - w === 2 ? u.push(w + 1) : m - w !== 1 && u.push("...")), u.push(m), w = m;
1195
+ const t = r, s = z(() => Math.ceil(t.total / t.perPage) || 1), a = z(() => {
1196
+ const o = t.currentPage, i = s.value, c = 1, p = [], u = [];
1197
+ let g;
1198
+ for (let v = 1; v <= i; v++)
1199
+ (v === 1 || v === i || v >= o - c && v <= o + c) && p.push(v);
1200
+ return p.forEach((v) => {
1201
+ g && (v - g === 2 ? u.push(g + 1) : v - g !== 1 && u.push("...")), u.push(v), g = v;
1202
1202
  }), u;
1203
1203
  });
1204
1204
  return { __sfc: !0, props: t, emit: e, totalPages: s, pages: a, goToPage: (o) => {
@@ -1209,30 +1209,30 @@ const It = Ot.exports, Et = {
1209
1209
  } };
1210
1210
  }
1211
1211
  };
1212
- var Rt = function() {
1212
+ var Lt = function() {
1213
1213
  var e = this, t = e._self._c, s = e._self._setupProxy;
1214
1214
  return t("div", { staticClass: "wz-flex wz-flex-col sm:wz-flex-row wz-items-center wz-justify-between wz-w-full wz-gap-2" }, [t("div", { staticClass: "wz-flex wz-items-center wz-text-sm wz-pagination-text" }, [t("span", [e._v("Mostrando")]), t("div", { staticClass: "wz-relative wz-mx-2" }, [t("select", { staticClass: "wz-appearance-none wz-bg-transparent wz-border wz-py-1 wz-pl-3 wz-pr-8 wz-rounded-md wz-cursor-pointer focus:wz-outline-none wz-transition-colors wz-pagination-select", domProps: { value: e.perPage }, on: { change: s.onPerPageChange } }, e._l(e.perPageOptions, function(a) {
1215
1215
  return t("option", { key: a, domProps: { value: a } }, [e._v(" " + e._s(a) + " ")]);
1216
1216
  }), 0), t("div", { staticClass: "wz-pointer-events-none wz-absolute wz-inset-y-0 wz-right-0 wz-flex wz-items-center wz-px-2 wz-pagination-text" }, [t("svg", { staticClass: "wz-fill-current wz-h-4 wz-w-4", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" } }, [t("path", { attrs: { d: "M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" } })])])]), t("span", [e._v("registros de " + e._s(e.total))])]), t("div", { staticClass: "wz-flex wz-items-center wz-space-x-1" }, [t("button", { staticClass: "wz-px-3 wz-py-1.5 wz-text-sm wz-font-medium wz-pagination-nav disabled:wz-opacity-40 disabled:wz-cursor-not-allowed wz-transition-colors", attrs: { disabled: e.currentPage === 1 }, on: { click: function(a) {
1217
1217
  return s.goToPage(e.currentPage - 1);
1218
- } } }, [e._v(" Ant ")]), e._l(s.pages, function(a, n) {
1219
- return [a !== "..." ? t("button", { staticClass: "wz-px-3 wz-py-1.5 wz-text-sm wz-font-medium wz-rounded-md wz-transition-colors wz-pagination-page", class: { "wz-pagination-page--active": a === e.currentPage }, style: a === e.currentPage ? "background-color: var(--admin-primary-color); color: #fff;" : "", on: { click: function(l) {
1218
+ } } }, [e._v(" Ant ")]), e._l(s.pages, function(a, l) {
1219
+ return [a !== "..." ? t("button", { staticClass: "wz-px-3 wz-py-1.5 wz-text-sm wz-font-medium wz-rounded-md wz-transition-colors wz-pagination-page", class: { "wz-pagination-page--active": a === e.currentPage }, style: a === e.currentPage ? "background-color: var(--admin-primary-color); color: #fff;" : "", on: { click: function(n) {
1220
1220
  return s.goToPage(a);
1221
1221
  } } }, [e._v(" " + e._s(a) + " ")]) : t("span", { staticClass: "wz-px-2 wz-py-1.5 wz-text-sm wz-pagination-text" }, [e._v(" ... ")])];
1222
1222
  }), t("button", { staticClass: "wz-px-3 wz-py-1.5 wz-text-sm wz-font-medium wz-pagination-nav disabled:wz-opacity-40 disabled:wz-cursor-not-allowed wz-transition-colors", attrs: { disabled: e.currentPage === s.totalPages || s.totalPages === 0 }, on: { click: function(a) {
1223
1223
  return s.goToPage(e.currentPage + 1);
1224
1224
  } } }, [e._v(" Sig ")])], 2)]);
1225
- }, At = [], Mt = /* @__PURE__ */ g(
1226
- Et,
1227
- Rt,
1228
- At,
1225
+ }, Nt = [], qt = /* @__PURE__ */ h(
1226
+ Vt,
1227
+ Lt,
1228
+ Nt,
1229
1229
  !1,
1230
1230
  null,
1231
1231
  null,
1232
1232
  null,
1233
1233
  null
1234
1234
  );
1235
- const Wt = Mt.exports, Dt = {
1235
+ const Ut = qt.exports, Kt = {
1236
1236
  __name: "WzTabs",
1237
1237
  props: {
1238
1238
  items: {
@@ -1259,37 +1259,37 @@ const Wt = Mt.exports, Dt = {
1259
1259
  },
1260
1260
  emits: ["update:modelValue", "input", "change"],
1261
1261
  setup(r, { emit: e }) {
1262
- const t = r, s = y(() => {
1263
- const n = t.modelValue || t.value;
1264
- return n || (t.items.length ? t.items[0].key : "");
1262
+ const t = r, s = z(() => {
1263
+ const l = t.modelValue || t.value;
1264
+ return l || (t.items.length ? t.items[0].key : "");
1265
1265
  });
1266
- function a(n) {
1267
- n.disabled || (e("update:modelValue", n.key), e("input", n.key), e("change", n.key));
1266
+ function a(l) {
1267
+ l.disabled || (e("update:modelValue", l.key), e("input", l.key), e("change", l.key));
1268
1268
  }
1269
- return { __sfc: !0, props: t, emit: e, activeKey: s, selectTab: a, WzBadge: G };
1269
+ return { __sfc: !0, props: t, emit: e, activeKey: s, selectTab: a, WzBadge: ae };
1270
1270
  }
1271
1271
  };
1272
- var Bt = function() {
1272
+ var Ht = function() {
1273
1273
  var e = this, t = e._self._c, s = e._self._setupProxy;
1274
1274
  return t("div", { staticClass: "wz-tabs", class: [`wz-tabs--${e.variant}`, { "wz-tabs--bordered": e.bordered }] }, [t("div", { staticClass: "wz-tabs-nav", attrs: { role: "tablist" } }, e._l(e.items, function(a) {
1275
1275
  return t("button", { key: a.key, staticClass: "wz-tab-item", class: {
1276
1276
  "wz-tab-item--active": s.activeKey === a.key,
1277
1277
  "wz-tab-item--disabled": a.disabled
1278
- }, attrs: { type: "button", role: "tab", "aria-selected": s.activeKey === a.key, "aria-disabled": a.disabled, disabled: a.disabled }, on: { click: function(n) {
1278
+ }, attrs: { type: "button", role: "tab", "aria-selected": s.activeKey === a.key, "aria-disabled": a.disabled, disabled: a.disabled }, on: { click: function(l) {
1279
1279
  return s.selectTab(a);
1280
1280
  } } }, [a.icon ? t("i", { class: [a.icon, "wz-tab-item-icon"] }) : e._e(), t("span", [e._v(e._s(a.label))]), a.badge != null ? t(s.WzBadge, { staticClass: "wz-tab-item-badge", attrs: { variant: s.activeKey === a.key ? "primary" : "light", pill: "" } }, [e._v(e._s(a.badge))]) : e._e()], 1);
1281
1281
  }), 0), t("div", { staticClass: "wz-tabs-content", attrs: { role: "tabpanel" } }, [e._t(s.activeKey), e._t("default")], 2)]);
1282
- }, Vt = [], Lt = /* @__PURE__ */ g(
1283
- Dt,
1284
- Bt,
1285
- Vt,
1282
+ }, jt = [], Yt = /* @__PURE__ */ h(
1283
+ Kt,
1284
+ Ht,
1285
+ jt,
1286
1286
  !1,
1287
1287
  null,
1288
1288
  null,
1289
1289
  null,
1290
1290
  null
1291
1291
  );
1292
- const Nt = Lt.exports, Ut = {
1292
+ const Jt = Yt.exports, Gt = {
1293
1293
  __name: "WzInput",
1294
1294
  props: {
1295
1295
  /** Vue 3 v-model */
@@ -1331,9 +1331,9 @@ const Nt = Lt.exports, Ut = {
1331
1331
  },
1332
1332
  emits: ["update:modelValue", "input", "change", "blur", "focus", "enter"],
1333
1333
  setup(r, { emit: e }) {
1334
- const t = r, s = z(!1);
1334
+ const t = r, s = y(!1);
1335
1335
  let a = 0;
1336
- const n = y(() => t.id || `wz-input-${++a}`), l = y(() => {
1336
+ const l = z(() => t.id || `wz-input-${++a}`), n = z(() => {
1337
1337
  var i, c;
1338
1338
  return (c = (i = t.modelValue) != null ? i : t.value) != null ? c : "";
1339
1339
  });
@@ -1341,10 +1341,10 @@ const Nt = Lt.exports, Ut = {
1341
1341
  const c = i.target.value;
1342
1342
  e("update:modelValue", c), e("input", c);
1343
1343
  }
1344
- return { __sfc: !0, props: t, emit: e, showPassword: s, idCounter: a, inputId: n, currentValue: l, onInput: o };
1344
+ return { __sfc: !0, props: t, emit: e, showPassword: s, idCounter: a, inputId: l, currentValue: n, onInput: o };
1345
1345
  }
1346
1346
  };
1347
- var qt = function() {
1347
+ var Xt = function() {
1348
1348
  var e = this, t = e._self._c, s = e._self._setupProxy;
1349
1349
  return t("div", { staticClass: "wz-form-group" }, [e.label ? t("label", { staticClass: "wz-form-label", attrs: { for: s.inputId } }, [e._v(" " + e._s(e.label)), e.required ? t("span", { staticClass: "wz-form-required" }, [e._v("*")]) : e._e()]) : e._e(), t("div", { staticClass: "wz-form-input-wrapper", class: {
1350
1350
  "has-prefix": !!e.$slots.prefix || !!e.prefix,
@@ -1364,17 +1364,17 @@ var qt = function() {
1364
1364
  } } }, [t("i", { class: s.showPassword ? "ri-eye-off-line" : "ri-eye-line" })]) : e.$slots.suffix || e.suffix ? t("span", { staticClass: "wz-form-suffix" }, [e._t("suffix", function() {
1365
1365
  return [e._v(e._s(e.suffix))];
1366
1366
  })], 2) : e._e()]), e.error ? t("span", { staticClass: "wz-form-error-msg" }, [t("i", { staticClass: "ri-error-warning-line" }), e._v(e._s(e.error) + " ")]) : e.helper ? t("span", { staticClass: "wz-form-helper" }, [e._v(e._s(e.helper))]) : e._e()]);
1367
- }, Kt = [], jt = /* @__PURE__ */ g(
1368
- Ut,
1369
- qt,
1370
- Kt,
1367
+ }, Zt = [], Qt = /* @__PURE__ */ h(
1368
+ Gt,
1369
+ Xt,
1370
+ Zt,
1371
1371
  !1,
1372
1372
  null,
1373
1373
  null,
1374
1374
  null,
1375
1375
  null
1376
1376
  );
1377
- const Yt = jt.exports, Ht = {
1377
+ const es = Qt.exports, ts = {
1378
1378
  __name: "WzSelect",
1379
1379
  props: {
1380
1380
  /** Vue 3 v-model */
@@ -1405,38 +1405,181 @@ const Yt = jt.exports, Ht = {
1405
1405
  setup(r, { emit: e }) {
1406
1406
  const t = r;
1407
1407
  let s = 0;
1408
- const a = y(() => t.id || `wz-select-${++s}`), n = y(() => {
1408
+ const a = z(() => t.id || `wz-select-${++s}`), l = z(() => {
1409
1409
  var i, c;
1410
1410
  return (c = (i = t.modelValue) != null ? i : t.value) != null ? c : null;
1411
- }), l = y(
1411
+ }), n = z(
1412
1412
  () => t.items.map((i) => i !== null && typeof i == "object" ? i : { key: i, label: i })
1413
1413
  );
1414
1414
  function o(i) {
1415
- const c = i.target.value, v = l.value.find((w) => String(w.key) === c), u = v ? v.key : c;
1415
+ const c = i.target.value, p = n.value.find((g) => String(g.key) === c), u = p ? p.key : c;
1416
1416
  e("update:modelValue", u), e("input", u), e("change", u);
1417
1417
  }
1418
- return { __sfc: !0, props: t, emit: e, idCounter: s, selectId: a, currentValue: n, normalizedItems: l, onChange: o };
1418
+ return { __sfc: !0, props: t, emit: e, idCounter: s, selectId: a, currentValue: l, normalizedItems: n, onChange: o };
1419
1419
  }
1420
1420
  };
1421
- var Jt = function() {
1421
+ var ss = function() {
1422
1422
  var e = this, t = e._self._c, s = e._self._setupProxy;
1423
1423
  return t("div", { staticClass: "wz-form-group" }, [e.label ? t("label", { staticClass: "wz-form-label", attrs: { for: s.selectId } }, [e._v(" " + e._s(e.label)), e.required ? t("span", { staticClass: "wz-form-required" }, [e._v("*")]) : e._e()]) : e._e(), t("div", { staticClass: "wz-form-select-wrapper" }, [t("select", e._b({ staticClass: "wz-form-control", class: { "wz-form-control--error": !!e.error }, attrs: { id: s.selectId, disabled: e.disabled }, on: { change: s.onChange } }, "select", e.$attrs, !1), [e.defaultOption ? t("option", { domProps: { value: null, selected: s.currentValue == null } }, [e._v(" " + e._s(e.defaultOption) + " ")]) : e._e(), e._l(s.normalizedItems, function(a) {
1424
1424
  return t("option", { key: a.key, attrs: { disabled: a.disabled }, domProps: { value: a.key, selected: String(s.currentValue) === String(a.key) } }, [e._v(" " + e._s(a.label) + " ")]);
1425
1425
  })], 2), e._m(0)]), e.error ? t("span", { staticClass: "wz-form-error-msg" }, [t("i", { staticClass: "ri-error-warning-line" }), e._v(e._s(e.error) + " ")]) : e.helper ? t("span", { staticClass: "wz-form-helper" }, [e._v(e._s(e.helper))]) : e._e()]);
1426
- }, Gt = [function() {
1426
+ }, as = [function() {
1427
1427
  var r = this, e = r._self._c;
1428
1428
  return r._self._setupProxy, e("span", { staticClass: "wz-form-select-arrow" }, [e("i", { staticClass: "ri-arrow-down-s-line" })]);
1429
- }], Xt = /* @__PURE__ */ g(
1430
- Ht,
1431
- Jt,
1432
- Gt,
1429
+ }], rs = /* @__PURE__ */ h(
1430
+ ts,
1431
+ ss,
1432
+ as,
1433
1433
  !1,
1434
1434
  null,
1435
1435
  null,
1436
1436
  null,
1437
1437
  null
1438
1438
  );
1439
- const Zt = Xt.exports, Qt = {
1439
+ const ls = rs.exports, ns = {
1440
+ __name: "WzSelectSearch",
1441
+ props: {
1442
+ /** Vue 3 v-model */
1443
+ modelValue: { default: null },
1444
+ /** Vue 2 v-model */
1445
+ value: { default: null },
1446
+ /** Array of options: { key, label, disabled? } or primitive */
1447
+ items: { type: Array, default: () => [] },
1448
+ /** Placeholder shown when nothing is selected */
1449
+ defaultOption: { type: String, default: "" },
1450
+ /** Label */
1451
+ label: { type: String, default: "" },
1452
+ /** Required marker */
1453
+ required: { type: Boolean, default: !1 },
1454
+ /** Disabled state */
1455
+ disabled: { type: Boolean, default: !1 },
1456
+ /** Error message */
1457
+ error: { type: String, default: "" },
1458
+ /** Helper text */
1459
+ helper: { type: String, default: "" },
1460
+ /** Custom id */
1461
+ id: { type: String, default: "" },
1462
+ /** Search input placeholder */
1463
+ searchPlaceholder: { type: String, default: "Buscar..." },
1464
+ /** Empty results text */
1465
+ emptyText: { type: String, default: "Sin resultados" }
1466
+ },
1467
+ emits: ["update:modelValue", "input", "change"],
1468
+ setup(r, { emit: e }) {
1469
+ const t = r;
1470
+ let s = 0;
1471
+ const a = z(() => t.id || `wz-select-search-${++s}`), l = y(null), n = y(null), o = y(null), i = y(!1), c = y(""), p = y(0), u = z(() => {
1472
+ var d, k;
1473
+ return (k = (d = t.modelValue) != null ? d : t.value) != null ? k : null;
1474
+ }), g = z(
1475
+ () => t.items.map((d) => d !== null && typeof d == "object" ? d : { key: d, label: d })
1476
+ ), v = z(() => {
1477
+ if (!c.value)
1478
+ return g.value;
1479
+ const d = c.value.toLowerCase();
1480
+ return g.value.filter(
1481
+ (k) => String(k.label).toLowerCase().includes(d)
1482
+ );
1483
+ }), f = z(
1484
+ () => g.value.find(
1485
+ (d) => String(d.key) === String(u.value)
1486
+ ) || null
1487
+ ), C = (d) => String(d.key) === String(u.value), I = () => {
1488
+ t.disabled || (i.value ? E() : O());
1489
+ }, O = () => {
1490
+ i.value = !0, p.value = Math.max(
1491
+ 0,
1492
+ v.value.findIndex((d) => C(d))
1493
+ ), X(() => {
1494
+ var d;
1495
+ (d = n.value) == null || d.focus(), b();
1496
+ });
1497
+ }, E = () => {
1498
+ i.value = !1, c.value = "";
1499
+ }, R = (d) => {
1500
+ d.disabled || (e("update:modelValue", d.key), e("input", d.key), e("change", d.key), E());
1501
+ }, _ = () => {
1502
+ const d = v.value[p.value];
1503
+ d && R(d);
1504
+ }, w = () => {
1505
+ v.value.length !== 0 && (p.value = (p.value + 1) % v.value.length, b());
1506
+ }, m = () => {
1507
+ v.value.length !== 0 && (p.value = p.value === 0 ? v.value.length - 1 : p.value - 1, b());
1508
+ }, b = () => {
1509
+ X(() => {
1510
+ const d = o.value;
1511
+ if (!d)
1512
+ return;
1513
+ const k = d.children[p.value];
1514
+ if (!k)
1515
+ return;
1516
+ const M = k.offsetTop, Y = M + k.offsetHeight;
1517
+ M < d.scrollTop ? d.scrollTop = M : Y > d.scrollTop + d.clientHeight && (d.scrollTop = Y - d.clientHeight);
1518
+ });
1519
+ }, S = (d) => String(d).replace(/[&<>"']/g, (k) => ({
1520
+ "&": "&amp;",
1521
+ "<": "&lt;",
1522
+ ">": "&gt;",
1523
+ '"': "&quot;",
1524
+ "'": "&#39;"
1525
+ })[k]), P = (d) => d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), W = (d) => {
1526
+ const k = S(d);
1527
+ if (!c.value)
1528
+ return k;
1529
+ const M = new RegExp(`(${P(c.value)})`, "gi");
1530
+ return k.replace(M, "<strong>$1</strong>");
1531
+ }, V = (d) => {
1532
+ l.value && !l.value.contains(d.target) && E();
1533
+ };
1534
+ return A(c, () => {
1535
+ p.value = 0;
1536
+ }), T(() => document.addEventListener("mousedown", V)), B(
1537
+ () => document.removeEventListener("mousedown", V)
1538
+ ), { __sfc: !0, props: t, emit: e, idCounter: s, selectId: a, containerRef: l, searchInput: n, listRef: o, isOpen: i, query: c, highlightedIdx: p, currentValue: u, normalizedItems: g, filtered: v, selectedItem: f, isSelected: C, toggleOpen: I, open: O, close: E, selectItem: R, selectHighlighted: _, moveDown: w, moveUp: m, scrollHighlightedIntoView: b, escapeHtml: S, escapeRegex: P, highlightMatch: W, handleClickOutside: V };
1539
+ }
1540
+ };
1541
+ var is = function() {
1542
+ var e = this, t = e._self._c, s = e._self._setupProxy;
1543
+ return t("div", { staticClass: "wz-form-group" }, [e.label ? t("label", { staticClass: "wz-form-label", attrs: { for: s.selectId } }, [e._v(" " + e._s(e.label)), e.required ? t("span", { staticClass: "wz-form-required" }, [e._v("*")]) : e._e()]) : e._e(), t("div", { ref: "containerRef", staticClass: "wz-select-search" }, [t("button", { staticClass: "wz-select-search-trigger", class: {
1544
+ "wz-select-search-trigger--open": s.isOpen,
1545
+ "wz-select-search-trigger--error": !!e.error,
1546
+ "wz-select-search-trigger--disabled": e.disabled
1547
+ }, attrs: { type: "button", id: s.selectId, disabled: e.disabled }, on: { click: s.toggleOpen } }, [s.selectedItem ? t("span", { staticClass: "wz-select-search-value" }, [e._v(e._s(s.selectedItem.label))]) : t("span", { staticClass: "wz-select-search-placeholder" }, [e._v(e._s(e.defaultOption || "Seleccionar"))]), t("i", { staticClass: "ri-arrow-down-s-line wz-select-search-arrow" })]), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.isOpen, expression: "isOpen" }], staticClass: "wz-select-search-dropdown" }, [t("div", { staticClass: "wz-select-search-input-wrapper" }, [t("i", { staticClass: "ri-search-line wz-select-search-input-icon" }), t("input", { directives: [{ name: "model", rawName: "v-model", value: s.query, expression: "query" }], ref: "searchInput", staticClass: "wz-select-search-input", attrs: { type: "text", placeholder: e.searchPlaceholder }, domProps: { value: s.query }, on: { keydown: [function(a) {
1548
+ return !a.type.indexOf("key") && e._k(a.keyCode, "down", 40, a.key, ["Down", "ArrowDown"]) ? null : (a.preventDefault(), s.moveDown.apply(null, arguments));
1549
+ }, function(a) {
1550
+ return !a.type.indexOf("key") && e._k(a.keyCode, "up", 38, a.key, ["Up", "ArrowUp"]) ? null : (a.preventDefault(), s.moveUp.apply(null, arguments));
1551
+ }, function(a) {
1552
+ return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : (a.preventDefault(), s.selectHighlighted.apply(null, arguments));
1553
+ }, function(a) {
1554
+ return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : (a.preventDefault(), s.close.apply(null, arguments));
1555
+ }, function(a) {
1556
+ return !a.type.indexOf("key") && e._k(a.keyCode, "tab", 9, a.key, "Tab") ? null : s.close.apply(null, arguments);
1557
+ }], input: function(a) {
1558
+ a.target.composing || (s.query = a.target.value);
1559
+ } } })]), t("ul", { ref: "listRef", staticClass: "wz-select-search-list" }, [s.filtered.length === 0 ? t("li", { staticClass: "wz-select-search-empty" }, [e._v(" " + e._s(e.emptyText) + " ")]) : e._e(), e._l(s.filtered, function(a, l) {
1560
+ return t("li", { key: a.key, class: [
1561
+ "wz-select-search-item",
1562
+ {
1563
+ "wz-select-search-item--selected": s.isSelected(a),
1564
+ "wz-select-search-item--highlighted": s.highlightedIdx === l
1565
+ }
1566
+ ], on: { click: function(n) {
1567
+ return s.selectItem(a);
1568
+ }, mouseenter: function(n) {
1569
+ s.highlightedIdx = l;
1570
+ } } }, [t("span", { staticClass: "wz-select-search-item-label", domProps: { innerHTML: e._s(s.highlightMatch(a.label)) } }), s.isSelected(a) ? t("i", { staticClass: "ri-check-line wz-select-search-item-check" }) : e._e()]);
1571
+ })], 2)])]), e.error ? t("span", { staticClass: "wz-form-error-msg" }, [t("i", { staticClass: "ri-error-warning-line" }), e._v(e._s(e.error) + " ")]) : e.helper ? t("span", { staticClass: "wz-form-helper" }, [e._v(e._s(e.helper))]) : e._e()]);
1572
+ }, os = [], cs = /* @__PURE__ */ h(
1573
+ ns,
1574
+ is,
1575
+ os,
1576
+ !1,
1577
+ null,
1578
+ null,
1579
+ null,
1580
+ null
1581
+ );
1582
+ const us = cs.exports, ds = {
1440
1583
  __name: "WzTextarea",
1441
1584
  props: {
1442
1585
  modelValue: { default: null },
@@ -1458,18 +1601,18 @@ const Zt = Xt.exports, Qt = {
1458
1601
  setup(r, { emit: e }) {
1459
1602
  const t = r;
1460
1603
  let s = 0;
1461
- const a = y(() => t.id || `wz-textarea-${++s}`), n = y(() => {
1604
+ const a = z(() => t.id || `wz-textarea-${++s}`), l = z(() => {
1462
1605
  var o, i;
1463
1606
  return (i = (o = t.modelValue) != null ? o : t.value) != null ? i : "";
1464
1607
  });
1465
- function l(o) {
1608
+ function n(o) {
1466
1609
  const i = o.target.value;
1467
1610
  e("update:modelValue", i), e("input", i);
1468
1611
  }
1469
- return { __sfc: !0, props: t, emit: e, idCounter: s, textareaId: a, currentValue: n, onInput: l };
1612
+ return { __sfc: !0, props: t, emit: e, idCounter: s, textareaId: a, currentValue: l, onInput: n };
1470
1613
  }
1471
1614
  };
1472
- var es = function() {
1615
+ var ps = function() {
1473
1616
  var e = this, t = e._self._c, s = e._self._setupProxy;
1474
1617
  return t("div", { staticClass: "wz-form-group" }, [e.label ? t("label", { staticClass: "wz-form-label", attrs: { for: s.textareaId } }, [e._v(" " + e._s(e.label)), e.required ? t("span", { staticClass: "wz-form-required" }, [e._v("*")]) : e._e()]) : e._e(), t("textarea", e._b({ staticClass: "wz-form-control wz-form-textarea", class: { "wz-form-control--error": !!e.error }, attrs: { id: s.textareaId, placeholder: e.placeholder, disabled: e.disabled, readonly: e.readonly, maxlength: e.maxlength, rows: e.rows }, domProps: { value: s.currentValue }, on: { input: s.onInput, change: function(a) {
1475
1618
  return e.$emit("change", a.target.value);
@@ -1478,17 +1621,17 @@ var es = function() {
1478
1621
  }, focus: function(a) {
1479
1622
  return e.$emit("focus", a);
1480
1623
  } } }, "textarea", e.$attrs, !1)), e.maxlength && e.showCount ? t("div", { staticClass: "wz-form-helper", staticStyle: { "text-align": "right" } }, [e._v(" " + e._s((s.currentValue || "").length) + " / " + e._s(e.maxlength) + " ")]) : e._e(), e.error ? t("span", { staticClass: "wz-form-error-msg" }, [t("i", { staticClass: "ri-error-warning-line" }), e._v(e._s(e.error) + " ")]) : e.helper ? t("span", { staticClass: "wz-form-helper" }, [e._v(e._s(e.helper))]) : e._e()]);
1481
- }, ts = [], ss = /* @__PURE__ */ g(
1482
- Qt,
1483
- es,
1484
- ts,
1624
+ }, fs = [], _s = /* @__PURE__ */ h(
1625
+ ds,
1626
+ ps,
1627
+ fs,
1485
1628
  !1,
1486
1629
  null,
1487
1630
  null,
1488
1631
  null,
1489
1632
  null
1490
1633
  );
1491
- const as = ss.exports, rs = {
1634
+ const ws = _s.exports, gs = {
1492
1635
  __name: "WzDatepicker",
1493
1636
  props: {
1494
1637
  modelValue: { default: null },
@@ -1509,38 +1652,38 @@ const as = ss.exports, rs = {
1509
1652
  setup(r, { emit: e }) {
1510
1653
  const t = r;
1511
1654
  let s = 0;
1512
- const a = y(() => t.id || `wz-datepicker-${++s}`), n = y(() => {
1655
+ const a = z(() => t.id || `wz-datepicker-${++s}`), l = z(() => {
1513
1656
  var o, i;
1514
1657
  return (i = (o = t.modelValue) != null ? o : t.value) != null ? i : "";
1515
1658
  });
1516
- function l(o) {
1659
+ function n(o) {
1517
1660
  const i = o.target.value;
1518
1661
  e("update:modelValue", i), e("input", i);
1519
1662
  }
1520
- return { __sfc: !0, props: t, emit: e, idCounter: s, inputId: a, currentValue: n, onInput: l };
1663
+ return { __sfc: !0, props: t, emit: e, idCounter: s, inputId: a, currentValue: l, onInput: n };
1521
1664
  }
1522
1665
  };
1523
- var ns = function() {
1666
+ var vs = function() {
1524
1667
  var e = this, t = e._self._c, s = e._self._setupProxy;
1525
1668
  return t("div", { staticClass: "wz-form-group" }, [e.label ? t("label", { staticClass: "wz-form-label", attrs: { for: s.inputId } }, [e._v(" " + e._s(e.label)), e.required ? t("span", { staticClass: "wz-form-required" }, [e._v("*")]) : e._e()]) : e._e(), t("div", { staticClass: "wz-form-input-wrapper has-suffix" }, [t("input", e._b({ staticClass: "wz-form-control", class: { "wz-form-control--error": !!e.error }, attrs: { id: s.inputId, type: "date", min: e.min, max: e.max, disabled: e.disabled, readonly: e.readonly }, domProps: { value: s.currentValue }, on: { input: s.onInput, change: function(a) {
1526
1669
  return e.$emit("change", a.target.value);
1527
1670
  }, blur: function(a) {
1528
1671
  return e.$emit("blur", a);
1529
1672
  } } }, "input", e.$attrs, !1)), e._m(0)]), e.error ? t("span", { staticClass: "wz-form-error-msg" }, [t("i", { staticClass: "ri-error-warning-line" }), e._v(e._s(e.error) + " ")]) : e.helper ? t("span", { staticClass: "wz-form-helper" }, [e._v(e._s(e.helper))]) : e._e()]);
1530
- }, ls = [function() {
1673
+ }, ms = [function() {
1531
1674
  var r = this, e = r._self._c;
1532
1675
  return r._self._setupProxy, e("span", { staticClass: "wz-form-suffix", staticStyle: { "pointer-events": "none" } }, [e("i", { staticClass: "ri-calendar-line" })]);
1533
- }], is = /* @__PURE__ */ g(
1534
- rs,
1535
- ns,
1536
- ls,
1676
+ }], hs = /* @__PURE__ */ h(
1677
+ gs,
1678
+ vs,
1679
+ ms,
1537
1680
  !1,
1538
1681
  null,
1539
1682
  null,
1540
1683
  null,
1541
1684
  null
1542
1685
  );
1543
- const os = is.exports, cs = {
1686
+ const ys = hs.exports, zs = {
1544
1687
  __name: "WzProgress",
1545
1688
  props: {
1546
1689
  /** Progress value (0–100) */
@@ -1557,24 +1700,24 @@ const os = is.exports, cs = {
1557
1700
  showLabel: { type: Boolean, default: !1 }
1558
1701
  },
1559
1702
  setup(r) {
1560
- const e = r, t = y(() => Math.min(100, Math.max(0, e.value))), s = y(() => typeof e.height == "number" ? `${e.height}px` : e.height);
1703
+ const e = r, t = z(() => Math.min(100, Math.max(0, e.value))), s = z(() => typeof e.height == "number" ? `${e.height}px` : e.height);
1561
1704
  return { __sfc: !0, props: e, clampedValue: t, heightPx: s };
1562
1705
  }
1563
1706
  };
1564
- var us = function() {
1707
+ var Cs = function() {
1565
1708
  var e = this, t = e._self._c, s = e._self._setupProxy;
1566
1709
  return t("div", { staticClass: "wz-progress", style: { height: s.heightPx } }, [t("div", { staticClass: "wz-progress-bar", class: `wz-progress-bar--${e.variant}`, style: { width: s.clampedValue + "%" }, attrs: { role: "progressbar", "aria-valuenow": s.clampedValue, "aria-valuemin": "0", "aria-valuemax": "100" } }, [e.showLabel ? t("span", { staticClass: "wz-progress-label" }, [e._v(e._s(s.clampedValue) + "%")]) : e._e()])]);
1567
- }, ds = [], ps = /* @__PURE__ */ g(
1568
- cs,
1569
- us,
1570
- ds,
1710
+ }, bs = [], ks = /* @__PURE__ */ h(
1711
+ zs,
1712
+ Cs,
1713
+ bs,
1571
1714
  !1,
1572
1715
  null,
1573
1716
  null,
1574
1717
  null,
1575
1718
  null
1576
1719
  );
1577
- const fs = ps.exports, _s = {
1720
+ const xs = ks.exports, Ss = {
1578
1721
  __name: "WzModal",
1579
1722
  props: {
1580
1723
  /** Vue 3 v-model */
@@ -1593,34 +1736,34 @@ const fs = ps.exports, _s = {
1593
1736
  },
1594
1737
  emits: ["update:modelValue", "input", "close"],
1595
1738
  setup(r, { emit: e }) {
1596
- const t = r, s = y(() => t.modelValue || t.value);
1739
+ const t = r, s = z(() => t.modelValue || t.value);
1597
1740
  function a() {
1598
1741
  e("update:modelValue", !1), e("input", !1), e("close");
1599
1742
  }
1600
- function n() {
1743
+ function l() {
1601
1744
  t.closeOnOverlay && a();
1602
1745
  }
1603
- return { __sfc: !0, props: t, emit: e, isOpen: s, close: a, onOverlayClick: n };
1746
+ return { __sfc: !0, props: t, emit: e, isOpen: s, close: a, onOverlayClick: l };
1604
1747
  }
1605
1748
  };
1606
- var ws = function() {
1749
+ var $s = function() {
1607
1750
  var e = this, t = e._self._c, s = e._self._setupProxy;
1608
1751
  return t("teleport", { attrs: { to: "body" } }, [t("transition", { attrs: { name: "wz-modal-fade" } }, [s.isOpen ? t("div", { staticClass: "wz-modal-overlay", on: { click: function(a) {
1609
1752
  return a.target !== a.currentTarget ? null : s.onOverlayClick.apply(null, arguments);
1610
1753
  } } }, [t("div", { staticClass: "wz-modal", class: `wz-modal--${e.size}`, attrs: { role: "dialog", "aria-modal": "true" } }, [t("div", { staticClass: "wz-modal-header" }, [t("h5", { staticClass: "wz-modal-title" }, [e._t("title", function() {
1611
1754
  return [e._v(e._s(e.title))];
1612
1755
  })], 2), e.hideClose ? e._e() : t("button", { staticClass: "wz-modal-close", attrs: { type: "button" }, on: { click: s.close } }, [t("i", { staticClass: "ri-close-line" })])]), t("div", { staticClass: "wz-modal-body" }, [e._t("default")], 2), e.$slots.footer ? t("div", { staticClass: "wz-modal-footer" }, [e._t("footer")], 2) : e._e()])]) : e._e()])], 1);
1613
- }, vs = [], gs = /* @__PURE__ */ g(
1614
- _s,
1615
- ws,
1616
- vs,
1756
+ }, Ps = [], Fs = /* @__PURE__ */ h(
1757
+ Ss,
1758
+ $s,
1759
+ Ps,
1617
1760
  !1,
1618
1761
  null,
1619
1762
  null,
1620
1763
  null,
1621
1764
  null
1622
1765
  );
1623
- const ms = gs.exports, ys = {
1766
+ const Ts = Fs.exports, Os = {
1624
1767
  name: "WzConfirmModal",
1625
1768
  model: {
1626
1769
  prop: "value",
@@ -1656,32 +1799,32 @@ const ms = gs.exports, ys = {
1656
1799
  }
1657
1800
  }
1658
1801
  };
1659
- var hs = function() {
1802
+ var Is = function() {
1660
1803
  var e = this, t = e._self._c;
1661
1804
  return t("transition", { attrs: { name: "wz-modal-fade" } }, [e.isOpen ? t("div", { staticClass: "wz-modal-overlay", on: { click: function(s) {
1662
1805
  return s.target !== s.currentTarget ? null : e.onOverlayClick.apply(null, arguments);
1663
1806
  } } }, [t("div", { staticClass: "wz-modal wz-modal--md", attrs: { role: "dialog", "aria-modal": "true" } }, [t("div", { staticClass: "wz-modal-header" }, [t("h5", { staticClass: "wz-modal-title" }, [e._v(e._s(e.title))]), t("button", { staticClass: "wz-modal-close", attrs: { type: "button" }, on: { click: e.onCancel } }, [t("i", { staticClass: "ri-close-line" })])]), t("div", { staticClass: "wz-modal-body" }, [t("div", { staticClass: "wz-alert", class: `wz-alert--${e.alertVariant}`, staticStyle: { "margin-bottom": "0" } }, [t("span", { staticClass: "wz-alert-icon" }, [t("i", { staticClass: "ri-error-warning-line" })]), t("span", { staticClass: "wz-alert-content" }, [e._v(e._s(e.description))])])]), t("div", { staticClass: "wz-modal-footer" }, [t("button", { staticClass: "wz-btn wz-btn-md wz-btn-outline", attrs: { type: "button" }, on: { click: e.onCancel } }, [e._v(" " + e._s(e.cancelText) + " ")]), t("button", { staticClass: "wz-btn wz-btn-md", class: `wz-btn-${e.acceptVariant}`, attrs: { type: "button" }, on: { click: e.onConfirm } }, [e._v(" " + e._s(e.acceptText) + " ")])])])]) : e._e()]);
1664
- }, zs = [], Cs = /* @__PURE__ */ g(
1665
- ys,
1666
- hs,
1667
- zs,
1807
+ }, Es = [], Rs = /* @__PURE__ */ h(
1808
+ Os,
1809
+ Is,
1810
+ Es,
1668
1811
  !1,
1669
1812
  null,
1670
1813
  null,
1671
1814
  null,
1672
1815
  null
1673
1816
  );
1674
- const bs = Cs.exports, j = {
1817
+ const Ms = Rs.exports, Q = {
1675
1818
  success: "ri-check-line",
1676
1819
  danger: "ri-close-line",
1677
1820
  warning: "ri-alert-line",
1678
1821
  info: "ri-information-line"
1679
- }, ks = {
1822
+ }, As = {
1680
1823
  success: "ÉXITO",
1681
1824
  danger: "ERROR",
1682
1825
  warning: "ADVERTENCIA",
1683
1826
  info: "INFORMACIÓN"
1684
- }, xs = {
1827
+ }, Ws = {
1685
1828
  name: "WzSweetAlert",
1686
1829
  model: { prop: "value", event: "input" },
1687
1830
  props: {
@@ -1696,10 +1839,10 @@ const bs = Cs.exports, j = {
1696
1839
  return this.value;
1697
1840
  },
1698
1841
  iconClass() {
1699
- return j[this.type] || j.success;
1842
+ return Q[this.type] || Q.success;
1700
1843
  },
1701
1844
  resolvedTitle() {
1702
- return this.title || ks[this.type] || "";
1845
+ return this.title || As[this.type] || "";
1703
1846
  }
1704
1847
  },
1705
1848
  methods: {
@@ -1708,20 +1851,20 @@ const bs = Cs.exports, j = {
1708
1851
  }
1709
1852
  }
1710
1853
  };
1711
- var $s = function() {
1854
+ var Ds = function() {
1712
1855
  var e = this, t = e._self._c;
1713
1856
  return t("transition", { attrs: { name: "wz-modal-fade" } }, [e.isOpen ? t("div", { staticClass: "wz-modal-overlay" }, [t("div", { staticClass: "wz-sweet-alert", attrs: { role: "dialog", "aria-modal": "true" } }, [t("div", { staticClass: "wz-sweet-icon", class: `wz-sweet-icon--${e.type}` }, [t("i", { class: e.iconClass })]), t("h3", { staticClass: "wz-sweet-title" }, [e._v(e._s(e.resolvedTitle))]), e.message ? t("p", { staticClass: "wz-sweet-message" }, [e._v(e._s(e.message))]) : e._e(), t("button", { staticClass: "wz-btn wz-btn-md wz-btn-primary", staticStyle: { "min-width": "100px", "margin-top": "8px" }, attrs: { type: "button" }, on: { click: e.onConfirm } }, [e._v(" " + e._s(e.confirmText) + " ")])])]) : e._e()]);
1714
- }, Ss = [], Ps = /* @__PURE__ */ g(
1715
- xs,
1716
- $s,
1717
- Ss,
1857
+ }, Bs = [], Vs = /* @__PURE__ */ h(
1858
+ Ws,
1859
+ Ds,
1860
+ Bs,
1718
1861
  !1,
1719
1862
  null,
1720
1863
  null,
1721
1864
  null,
1722
1865
  null
1723
1866
  );
1724
- const Fs = Ps.exports, Ts = {
1867
+ const Ls = Vs.exports, Ns = {
1725
1868
  name: "WzFileInput",
1726
1869
  props: {
1727
1870
  idFile: { type: String, required: !0 },
@@ -1756,7 +1899,7 @@ const Fs = Ps.exports, Ts = {
1756
1899
  }
1757
1900
  }
1758
1901
  };
1759
- var Os = function() {
1902
+ var qs = function() {
1760
1903
  var e = this, t = e._self._c;
1761
1904
  return t("div", { staticClass: "wz-file-input", class: { "wz-file-input--dragging": e.isDragging }, on: { dragover: function(s) {
1762
1905
  s.preventDefault(), e.isDragging = !0;
@@ -1765,43 +1908,43 @@ var Os = function() {
1765
1908
  }, drop: function(s) {
1766
1909
  return s.preventDefault(), e.onDrop.apply(null, arguments);
1767
1910
  } } }, [e.files.length > 0 ? t("div", { staticClass: "wz-file-list" }, [e._l(e.files, function(s, a) {
1768
- return t("div", { key: a, staticClass: "wz-file-item" }, [t("i", { staticClass: "ri-file-line wz-file-item-icon" }), t("span", { staticClass: "wz-file-item-name" }, [e._v(e._s(s.name))]), t("button", { staticClass: "wz-file-item-remove", attrs: { type: "button" }, on: { click: function(n) {
1911
+ return t("div", { key: a, staticClass: "wz-file-item" }, [t("i", { staticClass: "ri-file-line wz-file-item-icon" }), t("span", { staticClass: "wz-file-item-name" }, [e._v(e._s(s.name))]), t("button", { staticClass: "wz-file-item-remove", attrs: { type: "button" }, on: { click: function(l) {
1769
1912
  return e.removeFile(a);
1770
1913
  } } }, [t("i", { staticClass: "ri-close-line" })])]);
1771
1914
  }), t("button", { staticClass: "wz-btn wz-btn-sm wz-btn-outline", staticStyle: { "margin-top": "8px" }, attrs: { type: "button" }, on: { click: e.openPicker } }, [t("i", { staticClass: "ri-folder-open-line" }), e._v(" Cambiar archivo ")])], 2) : t("div", { staticClass: "wz-file-drop-zone", on: { click: e.openPicker } }, [t("i", { staticClass: "ri-upload-2-line wz-file-drop-icon" }), e._m(0), e.acceptFile && e.acceptFile.length ? t("p", { staticClass: "wz-file-drop-hint" }, [e._v(" Formatos: " + e._s(e.acceptFile.join(", ")) + " ")]) : e._e()]), t("input", { ref: "fileInput", staticStyle: { display: "none" }, attrs: { type: "file", id: e.idFile, accept: e.acceptFile ? e.acceptFile.join(",") : void 0, multiple: e.multiple }, on: { change: e.onFileChange } })]);
1772
- }, Is = [function() {
1915
+ }, Us = [function() {
1773
1916
  var r = this, e = r._self._c;
1774
1917
  return e("p", { staticClass: "wz-file-drop-text" }, [r._v(" Arrastra tu archivo aquí o "), e("span", { staticClass: "wz-file-drop-link" }, [r._v("haz clic para buscar")])]);
1775
- }], Es = /* @__PURE__ */ g(
1776
- Ts,
1777
- Os,
1778
- Is,
1918
+ }], Ks = /* @__PURE__ */ h(
1919
+ Ns,
1920
+ qs,
1921
+ Us,
1779
1922
  !1,
1780
1923
  null,
1781
1924
  null,
1782
1925
  null,
1783
1926
  null
1784
1927
  );
1785
- const Rs = Es.exports, As = {
1928
+ const Hs = Ks.exports, js = {
1786
1929
  name: "WzLoader"
1787
1930
  };
1788
- var Ms = function() {
1931
+ var Ys = function() {
1789
1932
  var e = this, t = e._self._c;
1790
1933
  return t("div", { staticClass: "wz-loader-overlay" }, [t("div", { staticClass: "wz-loader-content" }, [e.$slots.brand ? t("div", { staticClass: "wz-loader-brand" }, [e._t("brand")], 2) : e._e(), e._m(0)])]);
1791
- }, Ws = [function() {
1934
+ }, Js = [function() {
1792
1935
  var r = this, e = r._self._c;
1793
1936
  return e("div", { staticClass: "wz-loader-dots" }, [e("span"), e("span"), e("span")]);
1794
- }], Ds = /* @__PURE__ */ g(
1795
- As,
1796
- Ms,
1797
- Ws,
1937
+ }], Gs = /* @__PURE__ */ h(
1938
+ js,
1939
+ Ys,
1940
+ Js,
1798
1941
  !1,
1799
1942
  null,
1800
1943
  null,
1801
1944
  null,
1802
1945
  null
1803
1946
  );
1804
- const Bs = Ds.exports, Vs = {
1947
+ const Xs = Gs.exports, Zs = {
1805
1948
  __name: "WzTooltip",
1806
1949
  props: {
1807
1950
  text: {
@@ -1823,26 +1966,26 @@ const Bs = Ds.exports, Vs = {
1823
1966
  }
1824
1967
  },
1825
1968
  setup(r) {
1826
- const e = r, t = y(() => ({
1969
+ const e = r, t = z(() => ({
1827
1970
  "--wz-tooltip-delay": `${e.delay}ms`
1828
1971
  }));
1829
1972
  return { __sfc: !0, props: e, cssVars: t };
1830
1973
  }
1831
1974
  };
1832
- var Ls = function() {
1975
+ var Qs = function() {
1833
1976
  var e = this, t = e._self._c, s = e._self._setupProxy;
1834
1977
  return t("span", { staticClass: "wz-tooltip", class: [`wz-tooltip--${e.position}`, { "wz-tooltip--no-arrow": !e.arrow }], style: s.cssVars }, [e._t("default"), e.text ? t("span", { staticClass: "wz-tooltip-bubble", attrs: { role: "tooltip" } }, [e._v(e._s(e.text))]) : e._e()], 2);
1835
- }, Ns = [], Us = /* @__PURE__ */ g(
1836
- Vs,
1837
- Ls,
1838
- Ns,
1978
+ }, ea = [], ta = /* @__PURE__ */ h(
1979
+ Zs,
1980
+ Qs,
1981
+ ea,
1839
1982
  !1,
1840
1983
  null,
1841
1984
  null,
1842
1985
  null,
1843
1986
  null
1844
1987
  );
1845
- const qs = Us.exports, Ks = {
1988
+ const sa = ta.exports, aa = {
1846
1989
  name: "WzCheckbox",
1847
1990
  model: {
1848
1991
  prop: "checked",
@@ -1873,23 +2016,23 @@ const qs = Us.exports, Ks = {
1873
2016
  }
1874
2017
  }
1875
2018
  };
1876
- var js = function() {
2019
+ var ra = function() {
1877
2020
  var e = this, t = e._self._c;
1878
2021
  return t("label", { staticClass: "wz-checkbox", class: [
1879
2022
  `wz-checkbox--${e.size}`,
1880
2023
  { "wz-checkbox--switch": e.switchMode, "wz-checkbox--disabled": e.disabled }
1881
2024
  ] }, [t("input", { staticClass: "wz-checkbox-input", attrs: { type: "checkbox", disabled: e.disabled }, domProps: { checked: e.isChecked, value: e.value }, on: { change: e.onChange } }), t("span", { staticClass: "wz-checkbox-control", class: { "wz-checkbox-control--switch": e.switchMode } }, [e.switchMode ? e._e() : t("span", { staticClass: "wz-checkbox-check" })]), e.$slots.default ? t("span", { staticClass: "wz-checkbox-label" }, [e._t("default")], 2) : e._e()]);
1882
- }, Ys = [], Hs = /* @__PURE__ */ g(
1883
- Ks,
1884
- js,
1885
- Ys,
2025
+ }, la = [], na = /* @__PURE__ */ h(
2026
+ aa,
2027
+ ra,
2028
+ la,
1886
2029
  !1,
1887
2030
  null,
1888
2031
  null,
1889
2032
  null,
1890
2033
  null
1891
2034
  );
1892
- const Js = Hs.exports, da = {
2035
+ const ia = na.exports, Ca = {
1893
2036
  data() {
1894
2037
  return {
1895
2038
  sortKey: "",
@@ -1908,15 +2051,15 @@ const Js = Hs.exports, da = {
1908
2051
  return r;
1909
2052
  const e = this.sortKey, t = this.sortDir === "asc" ? 1 : -1;
1910
2053
  return [...r].sort((s, a) => {
1911
- const n = s[e], l = a[e];
1912
- return n == null && l == null ? 0 : n == null ? 1 : l == null ? -1 : typeof n == "number" && typeof l == "number" ? (n - l) * t : String(n).localeCompare(String(l), void 0, {
2054
+ const l = s[e], n = a[e];
2055
+ return l == null && n == null ? 0 : l == null ? 1 : n == null ? -1 : typeof l == "number" && typeof n == "number" ? (l - n) * t : String(l).localeCompare(String(n), void 0, {
1913
2056
  numeric: !0,
1914
2057
  sensitivity: "base"
1915
2058
  }) * t;
1916
2059
  });
1917
2060
  }
1918
2061
  }
1919
- }, pa = {
2062
+ }, ba = {
1920
2063
  data() {
1921
2064
  return {
1922
2065
  confirmModal: {
@@ -1938,16 +2081,16 @@ const Js = Hs.exports, da = {
1938
2081
  acceptText: t = "Aceptar",
1939
2082
  cancelText: s = "Cancelar",
1940
2083
  acceptVariant: a = "danger",
1941
- alertVariant: n = "warning",
1942
- action: l = null
2084
+ alertVariant: l = "warning",
2085
+ action: n = null
1943
2086
  } = {}) {
1944
- this.confirmModal = { show: !0, title: r, description: e, acceptText: t, cancelText: s, acceptVariant: a, alertVariant: n, action: l };
2087
+ this.confirmModal = { show: !0, title: r, description: e, acceptText: t, cancelText: s, acceptVariant: a, alertVariant: l, action: n };
1945
2088
  },
1946
2089
  closeConfirmModal() {
1947
- this.confirmModal = $(b({}, this.confirmModal), { show: !1 });
2090
+ this.confirmModal = F(x({}, this.confirmModal), { show: !1 });
1948
2091
  }
1949
2092
  }
1950
- }, fa = {
2093
+ }, ka = {
1951
2094
  data() {
1952
2095
  return {
1953
2096
  alertModal: {
@@ -1973,10 +2116,10 @@ const Js = Hs.exports, da = {
1973
2116
  this.showAlert({ type: "warning", title: e, message: r });
1974
2117
  },
1975
2118
  hideAlert() {
1976
- this.alertModal = $(b({}, this.alertModal), { show: !1 });
2119
+ this.alertModal = F(x({}, this.alertModal), { show: !1 });
1977
2120
  }
1978
2121
  }
1979
- }, F = { SINGLE: 1, MULTIPLE: 2, DATE: 3 }, _a = {
2122
+ }, D = { SINGLE: 1, MULTIPLE: 2, DATE: 3 }, xa = {
1980
2123
  data() {
1981
2124
  return {
1982
2125
  filters: {},
@@ -1999,10 +2142,10 @@ const Js = Hs.exports, da = {
1999
2142
  this.filters = JSON.parse(JSON.stringify(r)), this.showFilters = !1, this.loadData();
2000
2143
  },
2001
2144
  deleteFilter(r) {
2002
- const e = b({}, this.filters), t = b({}, this.$route.query);
2145
+ const e = x({}, this.filters), t = x({}, this.$route.query);
2003
2146
  delete e[r], delete t[r];
2004
2147
  const s = (this.filterOptions || []).find((a) => a.key === r);
2005
- s && s.type === F.DATE && s.isRange && (delete e[`${r}Start`], delete e[`${r}End`]), this.$router.push({ name: this.$route.name, query: t }), this.filters = e, this.loadData();
2148
+ s && s.type === D.DATE && s.isRange && (delete e[`${r}Start`], delete e[`${r}End`]), this.$router.push({ name: this.$route.name, query: t }), this.filters = e, this.loadData();
2006
2149
  },
2007
2150
  getFilterName(r, e) {
2008
2151
  if (r.includes("Start") || r.includes("End"))
@@ -2010,23 +2153,23 @@ const Js = Hs.exports, da = {
2010
2153
  const t = (this.filterOptions || []).find((s) => s.key.includes(r));
2011
2154
  if (!t)
2012
2155
  return r;
2013
- if (t.type === F.DATE)
2014
- return t.isRange ? `${t.label} = ${R(e.start).format("DD/MM/YYYY")} a ${R(e.end).format("DD/MM/YYYY")}` : `${t.label} = ${R(e).format("DD/MM/YYYY")}`;
2015
- if (t.type === F.SINGLE) {
2156
+ if (t.type === D.DATE)
2157
+ return t.isRange ? `${t.label} = ${N(e.start).format("DD/MM/YYYY")} a ${N(e.end).format("DD/MM/YYYY")}` : `${t.label} = ${N(e).format("DD/MM/YYYY")}`;
2158
+ if (t.type === D.SINGLE) {
2016
2159
  const s = t.options.find((a) => a.key == e);
2017
2160
  return `${t.label} = ${s ? s.label : e}`;
2018
2161
  }
2019
- if (t.type === F.MULTIPLE) {
2162
+ if (t.type === D.MULTIPLE) {
2020
2163
  const s = e.map((a) => {
2021
- const n = (this.filterOptions || []).find((l) => l.key == r);
2022
- return n ? (n.options.find((l) => l.key == a) || {}).label : a;
2164
+ const l = (this.filterOptions || []).find((n) => n.key == r);
2165
+ return l ? (l.options.find((n) => n.key == a) || {}).label : a;
2023
2166
  });
2024
2167
  return `${t.label} = ${s.join(", ")}`;
2025
2168
  }
2026
2169
  return r;
2027
2170
  }
2028
2171
  }
2029
- }, wa = {
2172
+ }, Sa = {
2030
2173
  data() {
2031
2174
  return {
2032
2175
  pageSize: 100,
@@ -2045,98 +2188,98 @@ const Js = Hs.exports, da = {
2045
2188
  },
2046
2189
  methods: {
2047
2190
  changePage(r) {
2048
- this.page = r, this.$router.push({ name: this.$route.name, query: $(b({}, this.$route.query), { page: r }) }), this.loadData();
2191
+ this.page = r, this.$router.push({ name: this.$route.name, query: F(x({}, this.$route.query), { page: r }) }), this.loadData();
2049
2192
  },
2050
2193
  changePageSize(r) {
2051
- this.page = 1, this.pageSize = r, this.$router.push({ name: this.$route.name, query: $(b({}, this.$route.query), { page: 1 }) }), this.loadData();
2194
+ this.page = 1, this.pageSize = r, this.$router.push({ name: this.$route.name, query: F(x({}, this.$route.query), { page: 1 }) }), this.loadData();
2052
2195
  },
2053
2196
  onSearch(r) {
2054
2197
  this.page = 1, this.search = r;
2055
- const e = $(b({}, this.$route.query), { page: 1 });
2198
+ const e = F(x({}, this.$route.query), { page: 1 });
2056
2199
  r ? e.search = r : delete e.search, this.$router.push({ name: this.$route.name, query: e }), this.loadData();
2057
2200
  }
2058
2201
  }
2059
- }, Gs = "Ocurrió un error en la petición, por favor intenta nuevamente.", va = {
2202
+ }, oa = "Ocurrió un error en la petición, por favor intenta nuevamente.", $a = {
2060
2203
  success(r, e) {
2061
- return k({ title: "ÉXITO", text: r, timer: 5e3, icon: "success" }).then(() => {
2062
- typeof e == "function" && e(), k.close();
2204
+ return $({ title: "ÉXITO", text: r, timer: 5e3, icon: "success" }).then(() => {
2205
+ typeof e == "function" && e(), $.close();
2063
2206
  });
2064
2207
  },
2065
2208
  error(r, e) {
2066
- return k({ title: "ERROR", text: r && typeof r == "string" ? r : Gs, timer: 5e3, icon: "error" }).then(() => {
2067
- typeof e == "function" && e(), k.close();
2209
+ return $({ title: "ERROR", text: r && typeof r == "string" ? r : oa, timer: 5e3, icon: "error" }).then(() => {
2210
+ typeof e == "function" && e(), $.close();
2068
2211
  });
2069
2212
  },
2070
2213
  alert(r, e, t) {
2071
- return k({ title: r, text: e, timer: 5e3, icon: "warning" }).then(() => {
2072
- typeof t == "function" && t(), k.close();
2214
+ return $({ title: r, text: e, timer: 5e3, icon: "warning" }).then(() => {
2215
+ typeof t == "function" && t(), $.close();
2073
2216
  });
2074
2217
  },
2075
2218
  dialog(r, e, t, s) {
2076
- return k({
2219
+ return $({
2077
2220
  title: r || "Confirmación",
2078
2221
  text: e,
2079
2222
  icon: "warning",
2080
2223
  buttons: { cancelar: { text: "Cancelar", value: "cancel" }, ok: { text: "Acepto", value: "ok" } },
2081
2224
  dangerMode: !0
2082
2225
  }).then((a) => {
2083
- a === "ok" ? (k.close(), t && setTimeout(t, 300)) : s && setTimeout(s, 300);
2226
+ a === "ok" ? ($.close(), t && setTimeout(t, 300)) : s && setTimeout(s, 300);
2084
2227
  });
2085
2228
  }
2086
- }, A = "ssoState", M = "user", W = "accessToken", D = "refreshToken", B = "business", ga = {
2229
+ }, q = "ssoState", U = "user", K = "accessToken", H = "refreshToken", j = "business", Pa = {
2087
2230
  getUser() {
2088
- return JSON.parse(localStorage.getItem(M) || "{}");
2231
+ return JSON.parse(localStorage.getItem(U) || "{}");
2089
2232
  },
2090
2233
  setUser(r) {
2091
- localStorage.setItem(M, JSON.stringify(r));
2234
+ localStorage.setItem(U, JSON.stringify(r));
2092
2235
  },
2093
2236
  clearUser() {
2094
- localStorage.removeItem(M);
2237
+ localStorage.removeItem(U);
2095
2238
  },
2096
2239
  getAccessToken() {
2097
- return localStorage.getItem(W);
2240
+ return localStorage.getItem(K);
2098
2241
  },
2099
2242
  setAccessToken(r) {
2100
- localStorage.setItem(W, r);
2243
+ localStorage.setItem(K, r);
2101
2244
  },
2102
2245
  clearAccessToken() {
2103
- localStorage.removeItem(W);
2246
+ localStorage.removeItem(K);
2104
2247
  },
2105
2248
  getRefreshToken() {
2106
- return localStorage.getItem(D);
2249
+ return localStorage.getItem(H);
2107
2250
  },
2108
2251
  setRefreshToken(r) {
2109
- localStorage.setItem(D, r);
2252
+ localStorage.setItem(H, r);
2110
2253
  },
2111
2254
  clearRefreshToken() {
2112
- localStorage.removeItem(D);
2255
+ localStorage.removeItem(H);
2113
2256
  },
2114
2257
  getSsoState() {
2115
- return localStorage.getItem(A);
2258
+ return localStorage.getItem(q);
2116
2259
  },
2117
2260
  setSsoState(r) {
2118
- localStorage.setItem(A, r);
2261
+ localStorage.setItem(q, r);
2119
2262
  },
2120
2263
  clearSsoState() {
2121
- localStorage.removeItem(A);
2264
+ localStorage.removeItem(q);
2122
2265
  },
2123
2266
  getBusiness() {
2124
- return localStorage.getItem(B);
2267
+ return localStorage.getItem(j);
2125
2268
  },
2126
2269
  setBusiness(r) {
2127
- localStorage.setItem(B, JSON.stringify(r));
2270
+ localStorage.setItem(j, JSON.stringify(r));
2128
2271
  },
2129
2272
  clearBusiness() {
2130
- localStorage.removeItem(B);
2273
+ localStorage.removeItem(j);
2131
2274
  },
2132
2275
  clearAll() {
2133
2276
  localStorage.clear();
2134
2277
  }
2135
- }, Y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ma = {
2278
+ }, ee = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", Fa = {
2136
2279
  getRandomState() {
2137
2280
  let r = "";
2138
2281
  for (let e = 0; e < 36; e++)
2139
- r += Y.charAt(Math.floor(Math.random() * Y.length));
2282
+ r += ee.charAt(Math.floor(Math.random() * ee.length));
2140
2283
  return r;
2141
2284
  },
2142
2285
  getCallbackParameters(r) {
@@ -2148,7 +2291,7 @@ const Js = Hs.exports, da = {
2148
2291
  redirectUri: typeof process != "undefined" ? process.env.VUE_APP_SSO_AUTH_REDIRECT_URI : void 0
2149
2292
  };
2150
2293
  }
2151
- }, ya = {
2294
+ }, Ta = {
2152
2295
  getErrorMessages(r) {
2153
2296
  const e = [];
2154
2297
  return r && r.errors ? Array.isArray(r.errors) && r.errors.length > 0 ? r.errors.forEach((t) => {
@@ -2156,170 +2299,172 @@ const Js = Hs.exports, da = {
2156
2299
  }) : Object.keys(r.errors).forEach((t) => e.push(r.errors[t])) : e.push("Ocurrió un error inesperado, por favor intente nuevamente"), e.join(`
2157
2300
  `);
2158
2301
  }
2159
- }, ha = {
2302
+ }, Oa = {
2160
2303
  capitalizeName(r) {
2161
2304
  return r ? r.toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase()) : "";
2162
2305
  }
2163
- }, Xs = 1048576, za = {
2164
- maxFileSize: (r) => (e) => !e || e.size < Xs * r,
2306
+ }, ca = 1048576, Ia = {
2307
+ maxFileSize: (r) => (e) => !e || e.size < ca * r,
2165
2308
  fileType: (r) => (e) => !e || e.type === r,
2166
- greaterThan: (r) => K.withParams(
2309
+ greaterThan: (r) => Z.withParams(
2167
2310
  { type: "greaterThan", value: r },
2168
- (e) => !K.req(e) || e > r
2311
+ (e) => !Z.req(e) || e > r
2169
2312
  ),
2170
2313
  mobile: (r) => r ? /^[0-9]*$/.test(r) && r.length === 9 : !0,
2171
2314
  url: (r) => /(https?:\/\/)(www\.)?(?!www)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#()?&/=]*)/.test(r),
2172
- validateImageSize: (r, e, t, s = !1) => E(void 0, null, function* () {
2315
+ validateImageSize: (r, e, t, s = !1) => L(void 0, null, function* () {
2173
2316
  if (!r)
2174
2317
  throw new Error("No se proporcionó ninguna imagen.");
2175
2318
  const a = new Image();
2176
- return yield new Promise((n, l) => {
2177
- a.onload = n, a.onerror = l, a.src = URL.createObjectURL(r);
2319
+ return yield new Promise((l, n) => {
2320
+ a.onload = l, a.onerror = n, a.src = URL.createObjectURL(r);
2178
2321
  }), s ? a.width === e && a.height === t : a.width <= e && a.height <= t;
2179
2322
  })
2180
- }, Zs = (r) => {
2323
+ }, ua = (r) => {
2181
2324
  const e = new FormData();
2182
2325
  for (const t in r) {
2183
2326
  const s = r[t];
2184
- Array.isArray(s) && s.length > 0 ? s.forEach((a, n) => {
2185
- var l;
2327
+ Array.isArray(s) && s.length > 0 ? s.forEach((a, l) => {
2328
+ var n;
2186
2329
  if (typeof a == "string" || typeof a == "number")
2187
- e.append(`${t}[${n}]`, a);
2330
+ e.append(`${t}[${l}]`, a);
2188
2331
  else if (a instanceof File)
2189
2332
  e.append(t, a);
2190
2333
  else if (a && typeof a == "object")
2191
2334
  for (const o in a)
2192
- e.append(`${t}[${n}].${o}`, (l = a[o]) != null ? l : "");
2335
+ e.append(`${t}[${l}].${o}`, (n = a[o]) != null ? n : "");
2193
2336
  }) : e.append(t, s != null ? s : "");
2194
2337
  }
2195
2338
  return e;
2196
- }, Qs = (r, e = 2) => {
2339
+ }, da = (r, e = 2) => {
2197
2340
  const t = parseFloat(r);
2198
2341
  return isNaN(t) ? "" : t.toLocaleString("en", { minimumFractionDigits: e, maximumFractionDigits: e });
2199
- }, ea = (r, e) => {
2342
+ }, pa = (r, e) => {
2200
2343
  for (const t in e)
2201
2344
  if (e[t].key === r)
2202
2345
  return e[t];
2203
2346
  return {};
2204
- }, ta = (r) => {
2347
+ }, fa = (r) => {
2205
2348
  const e = r.headers["content-disposition"];
2206
2349
  return e ? e.substr(e.indexOf("filename=") + 9) : "";
2207
- }, sa = (r) => r ? r.split("@")[0] : "-", aa = (r, e) => E(void 0, null, function* () {
2350
+ }, _a = (r) => r ? r.split("@")[0] : "-", wa = (r, e) => L(void 0, null, function* () {
2208
2351
  try {
2209
- const s = yield (yield import("axios")).default.get(r, { responseType: "blob" }), a = new Blob([s.data], { type: s.headers["content-type"] }), n = document.createElement("a");
2210
- n.href = URL.createObjectURL(a), n.download = e, n.click(), URL.revokeObjectURL(n.href);
2352
+ const s = yield (yield import("axios")).default.get(r, { responseType: "blob" }), a = new Blob([s.data], { type: s.headers["content-type"] }), l = document.createElement("a");
2353
+ l.href = URL.createObjectURL(a), l.download = e, l.click(), URL.revokeObjectURL(l.href);
2211
2354
  } catch (t) {
2212
2355
  console.error(t);
2213
2356
  }
2214
- }), ra = (r = 12) => {
2357
+ }), ga = (r = 12) => {
2215
2358
  const e = [], t = /* @__PURE__ */ new Date(), s = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate();
2216
2359
  let a = new Date(t.getFullYear(), t.getMonth(), 1);
2217
- for (let n = 0; n < r; n++) {
2218
- const l = a.getFullYear().toString() + String(a.getMonth() + 1).padStart(2, "0");
2219
- e.push(l), a.setMonth(a.getMonth() - 1);
2360
+ for (let l = 0; l < r; l++) {
2361
+ const n = a.getFullYear().toString() + String(a.getMonth() + 1).padStart(2, "0");
2362
+ e.push(n), a.setMonth(a.getMonth() - 1);
2220
2363
  }
2221
2364
  if (s) {
2222
- const n = new Date(t.getFullYear(), t.getMonth() + 1, 1), l = n.getFullYear().toString() + String(n.getMonth() + 1).padStart(2, "0");
2223
- e.unshift(l);
2365
+ const l = new Date(t.getFullYear(), t.getMonth() + 1, 1), n = l.getFullYear().toString() + String(l.getMonth() + 1).padStart(2, "0");
2366
+ e.unshift(n);
2224
2367
  }
2225
2368
  return e;
2226
- }, Ca = {
2227
- getFormData: Zs,
2228
- formatNumber: Qs,
2229
- searchValue: ea,
2230
- getFileName: ta,
2231
- trimEmail: sa,
2232
- downloadFile: aa,
2233
- generatePeriods: ra
2234
- }, na = {
2235
- WzButton: J,
2236
- WzSidebar: ge,
2237
- WzHeader: Ce,
2238
- WzLayout: pe,
2239
- WzSettingsPanel: Se,
2240
- WzHorizontalNav: Ie,
2241
- WzCard: We,
2242
- WzAlert: Ne,
2243
- WzBadge: G,
2244
- WzDropdown: Xe,
2245
- WzTabs: Nt,
2246
- WzTableContainer: st,
2247
- WzTableToolbar: it,
2248
- WzFilterMenu: pt,
2249
- WzTableFilters: gt,
2250
- WzTable: Ct,
2251
- WzTableFooter: St,
2252
- WzSearchBar: It,
2253
- WzPagination: Wt,
2254
- WzInput: Yt,
2255
- WzSelect: Zt,
2256
- WzTextarea: as,
2257
- WzDatepicker: os,
2258
- WzProgress: fs,
2259
- WzModal: ms,
2260
- WzConfirmModal: bs,
2261
- WzSweetAlert: Fs,
2262
- WzFileInput: Rs,
2263
- WzLoader: Bs,
2264
- WzTooltip: qs,
2265
- WzCheckbox: Js
2266
- }, X = (r) => {
2267
- Object.entries(na).forEach(([e, t]) => {
2369
+ }, Ea = {
2370
+ getFormData: ua,
2371
+ formatNumber: da,
2372
+ searchValue: pa,
2373
+ getFileName: fa,
2374
+ trimEmail: _a,
2375
+ downloadFile: wa,
2376
+ generatePeriods: ga
2377
+ }, va = {
2378
+ WzButton: se,
2379
+ WzSidebar: ke,
2380
+ WzHeader: Fe,
2381
+ WzLayout: he,
2382
+ WzSettingsPanel: Re,
2383
+ WzHorizontalNav: Be,
2384
+ WzCard: Ue,
2385
+ WzAlert: Je,
2386
+ WzBadge: ae,
2387
+ WzDropdown: rt,
2388
+ WzTabs: Jt,
2389
+ WzTableContainer: ct,
2390
+ WzTableToolbar: _t,
2391
+ WzFilterMenu: ht,
2392
+ WzTableFilters: kt,
2393
+ WzTable: Ft,
2394
+ WzTableFooter: Rt,
2395
+ WzSearchBar: Bt,
2396
+ WzPagination: Ut,
2397
+ WzInput: es,
2398
+ WzSelect: ls,
2399
+ WzSelectSearch: us,
2400
+ WzTextarea: ws,
2401
+ WzDatepicker: ys,
2402
+ WzProgress: xs,
2403
+ WzModal: Ts,
2404
+ WzConfirmModal: Ms,
2405
+ WzSweetAlert: Ls,
2406
+ WzFileInput: Hs,
2407
+ WzLoader: Xs,
2408
+ WzTooltip: sa,
2409
+ WzCheckbox: ia
2410
+ }, re = (r) => {
2411
+ Object.entries(va).forEach(([e, t]) => {
2268
2412
  r.component(e, t);
2269
2413
  });
2270
2414
  };
2271
- typeof window != "undefined" && window.Vue && X(window.Vue);
2272
- const ba = { install: X };
2415
+ typeof window != "undefined" && window.Vue && re(window.Vue);
2416
+ const Ra = { install: re };
2273
2417
  export {
2274
- va as Alert,
2275
- fa as AlertMixin,
2276
- pa as ConfirmModalMixin,
2277
- za as CustomValidators,
2278
- ya as ErrorUtils,
2279
- _a as FilterMixin,
2280
- ha as Helpers,
2281
- ga as LocalStorage,
2282
- wa as PaginationMixin,
2283
- ma as SSOUtils,
2284
- da as SortMixin,
2285
- Ca as Util,
2286
- Ne as WzAlert,
2287
- G as WzBadge,
2288
- J as WzButton,
2289
- We as WzCard,
2290
- Js as WzCheckbox,
2291
- bs as WzConfirmModal,
2292
- os as WzDatepicker,
2293
- Xe as WzDropdown,
2294
- Rs as WzFileInput,
2295
- pt as WzFilterMenu,
2296
- Ce as WzHeader,
2297
- Ie as WzHorizontalNav,
2298
- Yt as WzInput,
2299
- pe as WzLayout,
2300
- Bs as WzLoader,
2301
- ms as WzModal,
2302
- Wt as WzPagination,
2303
- fs as WzProgress,
2304
- It as WzSearchBar,
2305
- Zt as WzSelect,
2306
- Se as WzSettingsPanel,
2307
- ge as WzSidebar,
2308
- Fs as WzSweetAlert,
2309
- Ct as WzTable,
2310
- st as WzTableContainer,
2311
- gt as WzTableFilters,
2312
- St as WzTableFooter,
2313
- it as WzTableToolbar,
2314
- Nt as WzTabs,
2315
- as as WzTextarea,
2316
- qs as WzTooltip,
2317
- ba as default,
2318
- aa as downloadFile,
2319
- Qs as formatNumber,
2320
- ra as generatePeriods,
2321
- ta as getFileName,
2322
- Zs as getFormData,
2323
- ea as searchValue,
2324
- sa as trimEmail
2418
+ $a as Alert,
2419
+ ka as AlertMixin,
2420
+ ba as ConfirmModalMixin,
2421
+ Ia as CustomValidators,
2422
+ Ta as ErrorUtils,
2423
+ xa as FilterMixin,
2424
+ Oa as Helpers,
2425
+ Pa as LocalStorage,
2426
+ Sa as PaginationMixin,
2427
+ Fa as SSOUtils,
2428
+ Ca as SortMixin,
2429
+ Ea as Util,
2430
+ Je as WzAlert,
2431
+ ae as WzBadge,
2432
+ se as WzButton,
2433
+ Ue as WzCard,
2434
+ ia as WzCheckbox,
2435
+ Ms as WzConfirmModal,
2436
+ ys as WzDatepicker,
2437
+ rt as WzDropdown,
2438
+ Hs as WzFileInput,
2439
+ ht as WzFilterMenu,
2440
+ Fe as WzHeader,
2441
+ Be as WzHorizontalNav,
2442
+ es as WzInput,
2443
+ he as WzLayout,
2444
+ Xs as WzLoader,
2445
+ Ts as WzModal,
2446
+ Ut as WzPagination,
2447
+ xs as WzProgress,
2448
+ Bt as WzSearchBar,
2449
+ ls as WzSelect,
2450
+ us as WzSelectSearch,
2451
+ Re as WzSettingsPanel,
2452
+ ke as WzSidebar,
2453
+ Ls as WzSweetAlert,
2454
+ Ft as WzTable,
2455
+ ct as WzTableContainer,
2456
+ kt as WzTableFilters,
2457
+ Rt as WzTableFooter,
2458
+ _t as WzTableToolbar,
2459
+ Jt as WzTabs,
2460
+ ws as WzTextarea,
2461
+ sa as WzTooltip,
2462
+ Ra as default,
2463
+ wa as downloadFile,
2464
+ da as formatNumber,
2465
+ ga as generatePeriods,
2466
+ fa as getFileName,
2467
+ ua as getFormData,
2468
+ pa as searchValue,
2469
+ _a as trimEmail
2325
2470
  };