@dolusoft/vue3-datatable 1.5.8 → 1.6.0

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.
@@ -1,4 +1,4 @@
1
- import { onMounted as we, nextTick as On, getCurrentScope as Nn, onScopeDispose as Rn, unref as D, getCurrentInstance as Jt, computed as Q, ref as O, watch as V, defineComponent as ue, useCssVars as An, shallowRef as oe, onUnmounted as Qe, openBlock as m, createElementBlock as b, Fragment as B, withDirectives as ne, createElementVNode as v, normalizeClass as C, normalizeStyle as K, withModifiers as re, setBlockTracking as Mt, vShow as Ke, createCommentVNode as M, mergeProps as Dn, renderSlot as X, renderList as te, createVNode as G, reactive as Bn, watchEffect as qn, h as Xe, toRef as Hn, createBlock as Y, onBeforeUnmount as jn, toDisplayString as R, createTextVNode as Ye, vModelText as je, vModelSelect as Zt, useSlots as Wn, withCtx as ee, vModelCheckbox as Un } from "vue";
1
+ import { onMounted as we, nextTick as On, getCurrentScope as Nn, onScopeDispose as Rn, unref as D, getCurrentInstance as Yt, computed as Q, ref as O, watch as V, defineComponent as ue, useCssVars as An, shallowRef as oe, onUnmounted as Qe, openBlock as m, createElementBlock as g, Fragment as B, withDirectives as ne, createElementVNode as y, normalizeClass as k, normalizeStyle as K, withModifiers as re, setBlockTracking as Tt, vShow as Ke, createCommentVNode as M, mergeProps as Dn, renderSlot as X, renderList as te, createVNode as G, reactive as Bn, watchEffect as qn, h as Xe, toRef as Hn, createBlock as Y, onBeforeUnmount as jn, toDisplayString as R, createTextVNode as Ye, vModelText as je, vModelSelect as Jt, useSlots as Wn, withCtx as ee, vModelCheckbox as Un } from "vue";
2
2
  function Vn(e) {
3
3
  return Nn() ? (Rn(e), !0) : !1;
4
4
  }
@@ -8,7 +8,7 @@ function Gn(e) {
8
8
  const Qn = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
10
  function Kn(e) {
11
- return Jt();
11
+ return Yt();
12
12
  }
13
13
  function Xn(e, o = !0, n) {
14
14
  Kn() ? we(e, n) : o ? e() : On(e);
@@ -18,9 +18,9 @@ function fe(e) {
18
18
  const n = Gn(e);
19
19
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
20
20
  }
21
- const en = Qn ? window : void 0;
21
+ const Zt = Qn ? window : void 0;
22
22
  function Yn() {
23
- const e = O(!1), o = Jt();
23
+ const e = O(!1), o = Yt();
24
24
  return o && we(() => {
25
25
  e.value = !0;
26
26
  }, o), e;
@@ -30,17 +30,17 @@ function Jn(e) {
30
30
  return Q(() => (o.value, !!e()));
31
31
  }
32
32
  function Zn(e, o, n = {}) {
33
- const { window: i = en, ...t } = n;
34
- let s;
35
- const l = Jn(() => i && "ResizeObserver" in i), r = () => {
36
- s && (s.disconnect(), s = void 0);
33
+ const { window: i = Zt, ...t } = n;
34
+ let l;
35
+ const s = Jn(() => i && "ResizeObserver" in i), r = () => {
36
+ l && (l.disconnect(), l = void 0);
37
37
  }, u = Q(() => Array.isArray(e) ? e.map((p) => fe(p)) : [fe(e)]), c = V(
38
38
  u,
39
39
  (p) => {
40
- if (r(), l.value && i) {
41
- s = new ResizeObserver(o);
42
- for (const k of p)
43
- k && s.observe(k, t);
40
+ if (r(), s.value && i) {
41
+ l = new ResizeObserver(o);
42
+ for (const C of p)
43
+ C && l.observe(C, t);
44
44
  }
45
45
  },
46
46
  { immediate: !0, flush: "post" }
@@ -48,52 +48,52 @@ function Zn(e, o, n = {}) {
48
48
  r(), c();
49
49
  };
50
50
  return Vn(d), {
51
- isSupported: l,
51
+ isSupported: s,
52
52
  stop: d
53
53
  };
54
54
  }
55
- function _t(e, o = { width: 0, height: 0 }, n = {}) {
56
- const { window: i = en, box: t = "content-box" } = n, s = Q(() => {
57
- var p, k;
58
- return (k = (p = fe(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : k.includes("svg");
59
- }), l = O(o.width), r = O(o.height), { stop: u } = Zn(
55
+ function Mt(e, o = { width: 0, height: 0 }, n = {}) {
56
+ const { window: i = Zt, box: t = "content-box" } = n, l = Q(() => {
57
+ var p, C;
58
+ return (C = (p = fe(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : C.includes("svg");
59
+ }), s = O(o.width), r = O(o.height), { stop: u } = Zn(
60
60
  e,
61
61
  ([p]) => {
62
- const k = t === "border-box" ? p.borderBoxSize : t === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
63
- if (i && s.value) {
62
+ const C = t === "border-box" ? p.borderBoxSize : t === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
63
+ if (i && l.value) {
64
64
  const z = fe(e);
65
65
  if (z) {
66
66
  const P = z.getBoundingClientRect();
67
- l.value = P.width, r.value = P.height;
67
+ s.value = P.width, r.value = P.height;
68
68
  }
69
- } else if (k) {
70
- const z = Array.isArray(k) ? k : [k];
71
- l.value = z.reduce((P, { inlineSize: L }) => P + L, 0), r.value = z.reduce((P, { blockSize: L }) => P + L, 0);
69
+ } else if (C) {
70
+ const z = Array.isArray(C) ? C : [C];
71
+ s.value = z.reduce((P, { inlineSize: L }) => P + L, 0), r.value = z.reduce((P, { blockSize: L }) => P + L, 0);
72
72
  } else
73
- l.value = p.contentRect.width, r.value = p.contentRect.height;
73
+ s.value = p.contentRect.width, r.value = p.contentRect.height;
74
74
  },
75
75
  n
76
76
  );
77
77
  Xn(() => {
78
78
  const p = fe(e);
79
- p && (l.value = "offsetWidth" in p ? p.offsetWidth : o.width, r.value = "offsetHeight" in p ? p.offsetHeight : o.height);
79
+ p && (s.value = "offsetWidth" in p ? p.offsetWidth : o.width, r.value = "offsetHeight" in p ? p.offsetHeight : o.height);
80
80
  });
81
81
  const c = V(
82
82
  () => fe(e),
83
83
  (p) => {
84
- l.value = p ? o.width : 0, r.value = p ? o.height : 0;
84
+ s.value = p ? o.width : 0, r.value = p ? o.height : 0;
85
85
  }
86
86
  );
87
87
  function d() {
88
88
  u(), c();
89
89
  }
90
90
  return {
91
- width: l,
91
+ width: s,
92
92
  height: r,
93
93
  stop: d
94
94
  };
95
95
  }
96
- var eo = typeof global == "object" && global && global.Object === Object && global, to = typeof self == "object" && self && self.Object === Object && self, tn = eo || to || Function("return this")(), Me = tn.Symbol, nn = Object.prototype, no = nn.hasOwnProperty, oo = nn.toString, pe = Me ? Me.toStringTag : void 0;
96
+ var eo = typeof global == "object" && global && global.Object === Object && global, to = typeof self == "object" && self && self.Object === Object && self, en = eo || to || Function("return this")(), Me = en.Symbol, tn = Object.prototype, no = tn.hasOwnProperty, oo = tn.toString, pe = Me ? Me.toStringTag : void 0;
97
97
  function io(e) {
98
98
  var o = no.call(e, pe), n = e[pe];
99
99
  try {
@@ -104,9 +104,9 @@ function io(e) {
104
104
  var t = oo.call(e);
105
105
  return i && (o ? e[pe] = n : delete e[pe]), t;
106
106
  }
107
- var so = Object.prototype, lo = so.toString;
107
+ var lo = Object.prototype, so = lo.toString;
108
108
  function ro(e) {
109
- return lo.call(e);
109
+ return so.call(e);
110
110
  }
111
111
  var ao = "[object Null]", uo = "[object Undefined]", It = Me ? Me.toStringTag : void 0;
112
112
  function co(e) {
@@ -129,7 +129,7 @@ var go = /^\s+/;
129
129
  function bo(e) {
130
130
  return e && e.slice(0, vo(e) + 1).replace(go, "");
131
131
  }
132
- function _e(e) {
132
+ function Ie(e) {
133
133
  var o = typeof e;
134
134
  return e != null && (o == "object" || o == "function");
135
135
  }
@@ -139,9 +139,9 @@ function ge(e) {
139
139
  return e;
140
140
  if (po(e))
141
141
  return Ft;
142
- if (_e(e)) {
142
+ if (Ie(e)) {
143
143
  var o = typeof e.valueOf == "function" ? e.valueOf() : e;
144
- e = _e(o) ? o + "" : o;
144
+ e = Ie(o) ? o + "" : o;
145
145
  }
146
146
  if (typeof e != "string")
147
147
  return e === 0 ? e : +e;
@@ -149,34 +149,34 @@ function ge(e) {
149
149
  var n = xo.test(e);
150
150
  return n || wo.test(e) ? So(e.slice(2), n ? 2 : 8) : yo.test(e) ? Ft : +e;
151
151
  }
152
- function ko(e, o, n) {
152
+ function Co(e, o, n) {
153
153
  return e === e && (n !== void 0 && (e = e <= n ? e : n), o !== void 0 && (e = e >= o ? e : o)), e;
154
154
  }
155
155
  function ze(e, o, n) {
156
- return n === void 0 && (n = o, o = void 0), n !== void 0 && (n = ge(n), n = n === n ? n : 0), o !== void 0 && (o = ge(o), o = o === o ? o : 0), ko(ge(e), o, n);
156
+ return n === void 0 && (n = o, o = void 0), n !== void 0 && (n = ge(n), n = n === n ? n : 0), o !== void 0 && (o = ge(o), o = o === o ? o : 0), Co(ge(e), o, n);
157
157
  }
158
158
  var We = function() {
159
- return tn.Date.now();
160
- }, Co = "Expected a function", zo = Math.max, Po = Math.min;
161
- function on(e, o, n) {
162
- var i, t, s, l, r, u, c = 0, d = !1, p = !1, k = !0;
159
+ return en.Date.now();
160
+ }, ko = "Expected a function", zo = Math.max, Po = Math.min;
161
+ function nn(e, o, n) {
162
+ var i, t, l, s, r, u, c = 0, d = !1, p = !1, C = !0;
163
163
  if (typeof e != "function")
164
- throw new TypeError(Co);
165
- o = ge(o) || 0, _e(n) && (d = !!n.leading, p = "maxWait" in n, s = p ? zo(ge(n.maxWait) || 0, o) : s, k = "trailing" in n ? !!n.trailing : k);
164
+ throw new TypeError(ko);
165
+ o = ge(o) || 0, Ie(n) && (d = !!n.leading, p = "maxWait" in n, l = p ? zo(ge(n.maxWait) || 0, o) : l, C = "trailing" in n ? !!n.trailing : C);
166
166
  function z(x) {
167
- var y = i, I = t;
168
- return i = t = void 0, c = x, l = e.apply(I, y), l;
167
+ var b = i, F = t;
168
+ return i = t = void 0, c = x, s = e.apply(F, b), s;
169
169
  }
170
170
  function P(x) {
171
- return c = x, r = setTimeout($, o), d ? z(x) : l;
171
+ return c = x, r = setTimeout($, o), d ? z(x) : s;
172
172
  }
173
173
  function L(x) {
174
- var y = x - u, I = x - c, T = o - y;
175
- return p ? Po(T, s - I) : T;
174
+ var b = x - u, F = x - c, T = o - b;
175
+ return p ? Po(T, l - F) : T;
176
176
  }
177
177
  function w(x) {
178
- var y = x - u, I = x - c;
179
- return u === void 0 || y >= o || y < 0 || p && I >= s;
178
+ var b = x - u, F = x - c;
179
+ return u === void 0 || b >= o || b < 0 || p && F >= l;
180
180
  }
181
181
  function $() {
182
182
  var x = We();
@@ -185,93 +185,93 @@ function on(e, o, n) {
185
185
  r = setTimeout($, L(x));
186
186
  }
187
187
  function W(x) {
188
- return r = void 0, k && i ? z(x) : (i = t = void 0, l);
188
+ return r = void 0, C && i ? z(x) : (i = t = void 0, s);
189
189
  }
190
190
  function N() {
191
191
  r !== void 0 && clearTimeout(r), c = 0, i = u = t = r = void 0;
192
192
  }
193
193
  function E() {
194
- return r === void 0 ? l : W(We());
194
+ return r === void 0 ? s : W(We());
195
195
  }
196
196
  function q() {
197
- var x = We(), y = w(x);
198
- if (i = arguments, t = this, u = x, y) {
197
+ var x = We(), b = w(x);
198
+ if (i = arguments, t = this, u = x, b) {
199
199
  if (r === void 0)
200
200
  return P(u);
201
201
  if (p)
202
202
  return clearTimeout(r), r = setTimeout($, o), z(u);
203
203
  }
204
- return r === void 0 && (r = setTimeout($, o)), l;
204
+ return r === void 0 && (r = setTimeout($, o)), s;
205
205
  }
206
206
  return q.cancel = N, q.flush = E, q;
207
207
  }
208
208
  var Eo = "Expected a function";
209
- function sn(e, o, n) {
209
+ function on(e, o, n) {
210
210
  var i = !0, t = !0;
211
211
  if (typeof e != "function")
212
212
  throw new TypeError(Eo);
213
- return _e(n) && (i = "leading" in n ? !!n.leading : i, t = "trailing" in n ? !!n.trailing : t), on(e, o, {
213
+ return Ie(n) && (i = "leading" in n ? !!n.leading : i, t = "trailing" in n ? !!n.trailing : t), nn(e, o, {
214
214
  leading: i,
215
215
  maxWait: o,
216
216
  trailing: t
217
217
  });
218
218
  }
219
- var Lo = Object.defineProperty, To = Object.defineProperties, Mo = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Ot = (e, o, n) => o in e ? Lo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, Ie = (e, o) => {
219
+ var Lo = Object.defineProperty, To = Object.defineProperties, Mo = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Io = Object.prototype.hasOwnProperty, Fo = Object.prototype.propertyIsEnumerable, $t = (e, o, n) => o in e ? Lo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, Fe = (e, o) => {
220
220
  for (var n in o || (o = {}))
221
- _o.call(o, n) && Ot(e, n, o[n]);
222
- if ($t)
223
- for (var n of $t(o))
224
- Io.call(o, n) && Ot(e, n, o[n]);
221
+ Io.call(o, n) && $t(e, n, o[n]);
222
+ if (_t)
223
+ for (var n of _t(o))
224
+ Fo.call(o, n) && $t(e, n, o[n]);
225
225
  return e;
226
226
  }, ln = (e, o) => To(e, Mo(o));
227
- const Fo = ["onPointerdown"], $o = {
227
+ const _o = ["onPointerdown"], $o = {
228
228
  name: "ScrollbarThumb"
229
229
  };
230
230
  function Oo(e, { expose: o }) {
231
231
  const n = e;
232
- An((y) => ({
232
+ An((b) => ({
233
233
  "1fb98f78": D(i)
234
234
  }));
235
235
  const i = Q(() => {
236
- var y;
237
- return `${(y = n.thumbWidth) != null ? y : 12}px`;
236
+ var b;
237
+ return `${(b = n.thumbWidth) != null ? b : 12}px`;
238
238
  });
239
- let t = null, s = oe(null);
240
- const l = { pageX: 0, pageY: 0, scrollPos: 0 };
239
+ let t = null, l = oe(null);
240
+ const s = { pageX: 0, pageY: 0, scrollPos: 0 };
241
241
  let r = null;
242
242
  const u = () => {
243
243
  t = setTimeout(() => {
244
- s.value && s.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"), t = null;
244
+ l.value && l.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"), t = null;
245
245
  }, n.autoHideDelay);
246
246
  }, c = () => {
247
247
  t !== null && clearTimeout(t);
248
248
  };
249
249
  Qe(c);
250
- const d = sn((y) => {
251
- y.stopPropagation(), y.preventDefault();
252
- const I = n.type === "horizontal" ? "pageX" : "pageY", T = (y[I] - l[I]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
- n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: l.scrollPos + T, behavior: "auto" });
250
+ const d = on((b) => {
251
+ b.stopPropagation(), b.preventDefault();
252
+ const F = n.type === "horizontal" ? "pageX" : "pageY", T = (b[F] - s[F]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
+ n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: s.scrollPos + T, behavior: "auto" });
254
254
  }, 16), p = () => {
255
- u(), s.value.removeEventListener("pointermove", d), s.value.removeEventListener("pointerup", p), s.value.removeEventListener("pointercancel", p), s.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && s.value.releasePointerCapture(r), r = null;
256
- }, k = (y) => {
257
- y.ctrlKey || y.button !== 0 || (c(), l.pageX = y.pageX, l.pageY = y.pageY, l.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = y == null ? void 0 : y.pointerId, s.value.setPointerCapture(r), s.value.addEventListener("pointermove", d), s.value.addEventListener("pointerup", p), s.value.addEventListener("pointercancel", p), s.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), s.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
255
+ u(), l.value.removeEventListener("pointermove", d), l.value.removeEventListener("pointerup", p), l.value.removeEventListener("pointercancel", p), l.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && l.value.releasePointerCapture(r), r = null;
256
+ }, C = (b) => {
257
+ b.ctrlKey || b.button !== 0 || (c(), s.pageX = b.pageX, s.pageY = b.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = b == null ? void 0 : b.pointerId, l.value.setPointerCapture(r), l.value.addEventListener("pointermove", d), l.value.addEventListener("pointerup", p), l.value.addEventListener("pointercancel", p), l.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), l.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
258
258
  };
259
259
  o({
260
260
  autoHideAfterScroll: () => {
261
- c(), s.value && s.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
261
+ c(), l.value && l.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
262
262
  }
263
263
  });
264
264
  let P = oe(!1), L = oe(!1), w = oe(null), $ = null, W = null, N = Q(() => n.fixedThumb && !L.value);
265
- const E = ([y]) => L.value = y.isIntersecting, q = ([y]) => P.value = y.isIntersecting, x = () => {
265
+ const E = ([b]) => L.value = b.isIntersecting, q = ([b]) => P.value = b.isIntersecting, x = () => {
266
266
  $ && ($.disconnect(), $ = null), W && (W.disconnect(), W = null);
267
267
  };
268
268
  return V(() => [n.fixedThumb, n.wrapperEl], () => {
269
269
  if (!n.fixedThumb || !n.wrapperEl)
270
270
  return x();
271
271
  x(), W = new IntersectionObserver(q, { threshold: [0, 0.5] }), W.observe(n.wrapperEl), $ = new IntersectionObserver(E), $.observe(w.value);
272
- }), Qe(x), (y, I) => (m(), b(B, null, [
273
- ne(v("div", {
274
- class: C([
272
+ }), Qe(x), (b, F) => (m(), g(B, null, [
273
+ ne(y("div", {
274
+ class: k([
275
275
  "scrollbar__thumbPlaceholder",
276
276
  `scrollbar__thumbPlaceholder--${e.type}`,
277
277
  {
@@ -286,28 +286,28 @@ function Oo(e, { expose: o }) {
286
286
  [e.type === "vertical" ? "top" : "left"]: N.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
287
287
  }),
288
288
  ref: (T, H) => {
289
- H.thumbEl = T, s.value = T;
289
+ H.thumbEl = T, l.value = T;
290
290
  },
291
- onPointerdown: re(k, ["stop"])
291
+ onPointerdown: re(C, ["stop"])
292
292
  }, [
293
- I[0] || (Mt(-1), I[0] = v("div", {
294
- class: C(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
- }, null, 2), Mt(1), I[0])
296
- ], 46, Fo), [
293
+ F[0] || (Tt(-1), F[0] = y("div", {
294
+ class: k(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
+ }, null, 2), Tt(1), F[0])
296
+ ], 46, _o), [
297
297
  [Ke, !!e.scrollInfo.thumbSize && (e.fixedThumb ? P.value : !0)]
298
298
  ]),
299
- n.fixedThumb ? ne((m(), b("div", {
299
+ n.fixedThumb ? ne((m(), g("div", {
300
300
  key: 0,
301
301
  ref: (T, H) => {
302
302
  H.shepherdEl = T, w.value = T;
303
303
  },
304
- class: C(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
304
+ class: k(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
305
305
  }, null, 2)), [
306
306
  [Ke, !!e.scrollInfo.thumbSize]
307
307
  ]) : M("", !0)
308
308
  ], 64));
309
309
  }
310
- const No = /* @__PURE__ */ ue(ln(Ie({}, $o), {
310
+ const No = /* @__PURE__ */ ue(ln(Fe({}, $o), {
311
311
  props: {
312
312
  type: null,
313
313
  autoExpand: null,
@@ -323,21 +323,21 @@ const No = /* @__PURE__ */ ue(ln(Ie({}, $o), {
323
323
  wait: 333,
324
324
  type: "debounce"
325
325
  };
326
- function Nt(...e) {
326
+ function Ot(...e) {
327
327
  const o = "value" in (e == null ? void 0 : e[0]);
328
328
  let n;
329
329
  o ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
330
- const { wait: i, type: t, callback: s } = Ie(Ie({}, Ro), n), l = o ? e[0] : oe(null), r = Bn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
- const k = l.value.getBoundingClientRect();
332
- r.left = k.left, r.top = k.top, r.right = k.right, r.bottom = k.bottom, r.width = k.width, r.height = k.height, r.x = k.x, r.y = k.y, s == null || s();
330
+ const { wait: i, type: t, callback: l } = Fe(Fe({}, Ro), n), s = o ? e[0] : oe(null), r = Bn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
+ const C = s.value.getBoundingClientRect();
332
+ r.left = C.left, r.top = C.top, r.right = C.right, r.bottom = C.bottom, r.width = C.width, r.height = C.height, r.x = C.x, r.y = C.y, l == null || l();
333
333
  };
334
334
  let c = null, d = null;
335
335
  const p = () => {
336
336
  c && window.removeEventListener("resize", c), d && (d.disconnect(), d = null);
337
337
  };
338
338
  return qn(() => {
339
- l.value && (p(), c = u, t === "throttle" && i >= 4 ? c = sn(c, i) : t === "debounce" && i >= 4 && (c = on(c, i)), window.addEventListener("resize", c), d = new ResizeObserver(c), d.observe(l.value));
340
- }), Qe(p), o ? r : [l, r];
339
+ s.value && (p(), c = u, t === "throttle" && i >= 4 ? c = on(c, i) : t === "debounce" && i >= 4 && (c = nn(c, i)), window.addEventListener("resize", c), d = new ResizeObserver(c), d.observe(s.value));
340
+ }), Qe(p), o ? r : [s, r];
341
341
  }
342
342
  const Ao = {
343
343
  name: "CustomScrollbar",
@@ -347,86 +347,86 @@ function Do(e, { expose: o, emit: n }) {
347
347
  const i = e, t = {
348
348
  horizontal: { el: null, instance: null },
349
349
  vertical: { el: null, instance: null }
350
- }, s = (E, q) => {
350
+ }, l = (E, q) => {
351
351
  t[q].instance || (t[q].instance = E);
352
352
  };
353
- let l = oe(null), r = oe(null);
353
+ let s = oe(null), r = oe(null);
354
354
  we(() => {
355
355
  var E;
356
- const q = Array.from((E = l.value.parentElement) == null ? void 0 : E.childNodes);
356
+ const q = Array.from((E = s.value.parentElement) == null ? void 0 : E.childNodes);
357
357
  for (const x in t)
358
- t[x].el = q.find((y) => {
359
- var I;
360
- return (I = y == null ? void 0 : y.classList) == null ? void 0 : I.contains(`scrollbar__thumbPlaceholder--${x}`);
358
+ t[x].el = q.find((b) => {
359
+ var F;
360
+ return (F = b == null ? void 0 : b.classList) == null ? void 0 : F.contains(`scrollbar__thumbPlaceholder--${x}`);
361
361
  });
362
362
  });
363
- const u = Nt(l, { wait: i.throttleWait, type: i.throttleType, callback: k }), c = Nt(r, { wait: i.throttleWait, type: i.throttleType, callback: k });
363
+ const u = Ot(s, { wait: i.throttleWait, type: i.throttleType, callback: C }), c = Ot(r, { wait: i.throttleWait, type: i.throttleType, callback: C });
364
364
  let d = oe(0), p = oe(0);
365
- function k() {
366
- d.value = Math.max(l.value.scrollHeight - u.height | 0, 0), p.value = Math.max(l.value.scrollWidth - u.width | 0, 0);
365
+ function C() {
366
+ d.value = Math.max(s.value.scrollHeight - u.height | 0, 0), p.value = Math.max(s.value.scrollWidth - u.width | 0, 0);
367
367
  }
368
368
  let z = Q(() => ({
369
- thumbSize: p.value ? ze(u.width / l.value.scrollWidth * u.width, i.thumbMinSize > u.width ? 48 : i.thumbMinSize, i.thumbMaxSize) : 0,
369
+ thumbSize: p.value ? ze(u.width / s.value.scrollWidth * u.width, i.thumbMinSize > u.width ? 48 : i.thumbMinSize, i.thumbMaxSize) : 0,
370
370
  contentMainSize: c.width,
371
371
  wrapperMainSize: u.width,
372
372
  boundaryDistance: Math.abs(u.left)
373
373
  })), P = Q(() => ({
374
- thumbSize: d.value ? ze(u.height / l.value.scrollHeight * u.height, i.thumbMinSize > u.height ? 48 : i.thumbMinSize, i.thumbMaxSize) : 0,
374
+ thumbSize: d.value ? ze(u.height / s.value.scrollHeight * u.height, i.thumbMinSize > u.height ? 48 : i.thumbMinSize, i.thumbMaxSize) : 0,
375
375
  contentMainSize: c.height,
376
376
  wrapperMainSize: u.height,
377
377
  boundaryDistance: Math.abs(u.top)
378
378
  })), L = Q(() => u.height - P.value.thumbSize - 5), w = Q(() => u.width - z.value.thumbSize - 5);
379
379
  const $ = () => {
380
- p.value && (t.horizontal.el.style.transform = `translate3d(${l.value.scrollLeft / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${l.value.scrollTop / d.value * L.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
380
+ p.value && (t.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * L.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
381
381
  };
382
382
  V(() => [p.value, d.value], $);
383
383
  const W = (E) => {
384
384
  E.stopPropagation();
385
- const q = l.value.scrollLeft, x = l.value.scrollTop, y = ze(q + ((E == null ? void 0 : E.deltaX) || 0), 0, p.value) | 0, I = ze(x + ((E == null ? void 0 : E.deltaY) || 0), 0, d.value) | 0;
386
- l.value.scrollLeft = y, l.value.scrollTop = I, p.value && (t.horizontal.el.style.transform = `translate3d(${y / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${I / d.value * L.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: l.value, scrollLeft: y, scrollTop: I });
385
+ const q = s.value.scrollLeft, x = s.value.scrollTop, b = ze(q + ((E == null ? void 0 : E.deltaX) || 0), 0, p.value) | 0, F = ze(x + ((E == null ? void 0 : E.deltaY) || 0), 0, d.value) | 0;
386
+ s.value.scrollLeft = b, s.value.scrollTop = F, p.value && (t.horizontal.el.style.transform = `translate3d(${b / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${F / d.value * L.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: b, scrollTop: F });
387
387
  }, N = (E) => {
388
388
  i.simulateScroll ? W(E) : $();
389
389
  };
390
390
  return V(u, () => n("wrapperResize", u)), V(c, () => n("contentResize", c)), o({
391
- scrollEl: l
392
- }), (E, q) => (m(), b("div", {
393
- class: C(["scrollbar__wrapper", e.wrapperClass]),
391
+ scrollEl: s
392
+ }), (E, q) => (m(), g("div", {
393
+ class: k(["scrollbar__wrapper", e.wrapperClass]),
394
394
  style: K(e.wrapperStyle)
395
395
  }, [
396
- v("div", Dn({
397
- ref: (x, y) => {
398
- y.wrapperEl = x, l.value = x;
396
+ y("div", Dn({
397
+ ref: (x, b) => {
398
+ b.wrapperEl = x, s.value = x;
399
399
  },
400
400
  class: "scrollbar__scroller"
401
401
  }, E.$attrs, {
402
402
  onWheel: N,
403
403
  onScroll: N
404
404
  }), [
405
- v("div", {
406
- ref: (x, y) => {
407
- y.contentEl = x, r.value = x;
405
+ y("div", {
406
+ ref: (x, b) => {
407
+ b.contentEl = x, r.value = x;
408
408
  },
409
- class: C(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
409
+ class: k(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
410
410
  style: K(e.contentStyle)
411
411
  }, [
412
412
  X(E.$slots, "default")
413
413
  ], 6)
414
414
  ], 16),
415
- (m(), b(B, null, te(t, (x, y) => G(No, {
416
- ref: (I) => s(I, y),
417
- key: y,
415
+ (m(), g(B, null, te(t, (x, b) => G(No, {
416
+ ref: (F) => l(F, b),
417
+ key: b,
418
418
  autoExpand: e.autoExpand,
419
419
  autoHide: e.autoHide,
420
420
  autoHideDelay: e.autoHideDelay,
421
- fixedThumb: y === e.direction ? !1 : e.fixedThumb,
422
- type: y,
423
- scrollInfo: y === "vertical" ? P.value : z.value,
421
+ fixedThumb: b === e.direction ? !1 : e.fixedThumb,
422
+ type: b,
423
+ scrollInfo: b === "vertical" ? P.value : z.value,
424
424
  thumbWidth: e.thumbWidth,
425
- wrapperEl: l.value
425
+ wrapperEl: s.value
426
426
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
427
427
  ], 6));
428
428
  }
429
- const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
429
+ const Bo = /* @__PURE__ */ ue(ln(Fe({}, Ao), {
430
430
  props: {
431
431
  wrapperClass: null,
432
432
  wrapperStyle: null,
@@ -543,31 +543,31 @@ const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
543
543
  prevReachedMinPanes: 0,
544
544
  nextReachedMinPanes: 0
545
545
  };
546
- const i = 0 + (this.pushOtherPanes ? 0 : n.prevPanesSize), t = 100 - (this.pushOtherPanes ? 0 : n.nextPanesSize), s = Math.max(Math.min(this.getCurrentDragPercentage(e), t), i);
547
- let l = [o, o + 1], r = this.panes[l[0]] || null, u = this.panes[l[1]] || null;
548
- const c = r.max < 100 && s >= r.max + n.prevPanesSize, d = u.max < 100 && s <= 100 - (u.max + this.sumNextPanesSize(o + 1));
546
+ const i = 0 + (this.pushOtherPanes ? 0 : n.prevPanesSize), t = 100 - (this.pushOtherPanes ? 0 : n.nextPanesSize), l = Math.max(Math.min(this.getCurrentDragPercentage(e), t), i);
547
+ let s = [o, o + 1], r = this.panes[s[0]] || null, u = this.panes[s[1]] || null;
548
+ const c = r.max < 100 && l >= r.max + n.prevPanesSize, d = u.max < 100 && l <= 100 - (u.max + this.sumNextPanesSize(o + 1));
549
549
  if (c || d) {
550
550
  c ? (r.size = r.max, u.size = Math.max(100 - r.max - n.prevPanesSize - n.nextPanesSize, 0)) : (r.size = Math.max(100 - u.max - n.prevPanesSize - this.sumNextPanesSize(o + 1), 0), u.size = u.max);
551
551
  return;
552
552
  }
553
553
  if (this.pushOtherPanes) {
554
- const p = this.doPushOtherPanes(n, s);
554
+ const p = this.doPushOtherPanes(n, l);
555
555
  if (!p)
556
556
  return;
557
- ({ sums: n, panesToResize: l } = p), r = this.panes[l[0]] || null, u = this.panes[l[1]] || null;
557
+ ({ sums: n, panesToResize: s } = p), r = this.panes[s[0]] || null, u = this.panes[s[1]] || null;
558
558
  }
559
- r !== null && (r.size = Math.min(Math.max(s - n.prevPanesSize - n.prevReachedMinPanes, r.min), r.max)), u !== null && (u.size = Math.min(Math.max(100 - s - n.nextPanesSize - n.nextReachedMinPanes, u.min), u.max));
559
+ r !== null && (r.size = Math.min(Math.max(l - n.prevPanesSize - n.prevReachedMinPanes, r.min), r.max)), u !== null && (u.size = Math.min(Math.max(100 - l - n.nextPanesSize - n.nextReachedMinPanes, u.min), u.max));
560
560
  },
561
561
  doPushOtherPanes(e, o) {
562
562
  const n = this.touch.activeSplitter, i = [n, n + 1];
563
- return o < e.prevPanesSize + this.panes[i[0]].min && (i[0] = this.findPrevExpandedPane(n).index, e.prevReachedMinPanes = 0, i[0] < n && this.panes.forEach((t, s) => {
564
- s > i[0] && s <= n && (t.size = t.min, e.prevReachedMinPanes += t.min);
565
- }), e.prevPanesSize = this.sumPrevPanesSize(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((t, s) => {
566
- s > 0 && s <= n && (t.size = t.min, e.prevReachedMinPanes += t.min);
567
- }), this.panes[i[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : o > 100 - e.nextPanesSize - this.panes[i[1]].min && (i[1] = this.findNextExpandedPane(n).index, e.nextReachedMinPanes = 0, i[1] > n + 1 && this.panes.forEach((t, s) => {
568
- s > n && s < i[1] && (t.size = t.min, e.nextReachedMinPanes += t.min);
569
- }), e.nextPanesSize = this.sumNextPanesSize(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((t, s) => {
570
- s < this.panesCount - 1 && s >= n + 1 && (t.size = t.min, e.nextReachedMinPanes += t.min);
563
+ return o < e.prevPanesSize + this.panes[i[0]].min && (i[0] = this.findPrevExpandedPane(n).index, e.prevReachedMinPanes = 0, i[0] < n && this.panes.forEach((t, l) => {
564
+ l > i[0] && l <= n && (t.size = t.min, e.prevReachedMinPanes += t.min);
565
+ }), e.prevPanesSize = this.sumPrevPanesSize(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((t, l) => {
566
+ l > 0 && l <= n && (t.size = t.min, e.prevReachedMinPanes += t.min);
567
+ }), this.panes[i[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : o > 100 - e.nextPanesSize - this.panes[i[1]].min && (i[1] = this.findNextExpandedPane(n).index, e.nextReachedMinPanes = 0, i[1] > n + 1 && this.panes.forEach((t, l) => {
568
+ l > n && l < i[1] && (t.size = t.min, e.nextReachedMinPanes += t.min);
569
+ }), e.nextPanesSize = this.sumNextPanesSize(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((t, l) => {
570
+ l < this.panesCount - 1 && l >= n + 1 && (t.size = t.min, e.nextReachedMinPanes += t.min);
571
571
  }), this.panes[i[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: i };
572
572
  },
573
573
  sumPrevPanesSize(e) {
@@ -590,7 +590,7 @@ const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
590
590
  },
591
591
  addSplitter(e, o, n = !1) {
592
592
  const i = e - 1, t = document.createElement("div");
593
- t.classList.add("splitpanes__splitter"), n || (t.onmousedown = (s) => this.onMouseDown(s, i), typeof window < "u" && "ontouchstart" in window && (t.ontouchstart = (s) => this.onMouseDown(s, i)), t.onclick = (s) => this.onSplitterClick(s, i + 1)), this.dblClickSplitter && (t.ondblclick = (s) => this.onSplitterDblClick(s, i + 1)), o.parentNode.insertBefore(t, o);
593
+ t.classList.add("splitpanes__splitter"), n || (t.onmousedown = (l) => this.onMouseDown(l, i), typeof window < "u" && "ontouchstart" in window && (t.ontouchstart = (l) => this.onMouseDown(l, i)), t.onclick = (l) => this.onSplitterClick(l, i + 1)), this.dblClickSplitter && (t.ondblclick = (l) => this.onSplitterDblClick(l, i + 1)), o.parentNode.insertBefore(t, o);
594
594
  },
595
595
  removeSplitter(e) {
596
596
  e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
@@ -621,7 +621,7 @@ const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
621
621
  size: e.size === null ? null : parseFloat(e.size),
622
622
  givenSize: e.size,
623
623
  update: e.update
624
- }), this.panes.forEach((t, s) => t.index = s), this.ready && this.$nextTick(() => {
624
+ }), this.panes.forEach((t, l) => t.index = l), this.ready && this.$nextTick(() => {
625
625
  this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[o] }), this.$emit("pane-add", { index: o, panes: this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size })) });
626
626
  });
627
627
  },
@@ -646,32 +646,32 @@ const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
646
646
  let e = 100;
647
647
  const o = [], n = [];
648
648
  let i = 0;
649
- this.panes.forEach((s) => {
650
- e -= s.size, s.size !== null && i++, s.size >= s.max && o.push(s.id), s.size <= s.min && n.push(s.id);
649
+ this.panes.forEach((l) => {
650
+ e -= l.size, l.size !== null && i++, l.size >= l.max && o.push(l.id), l.size <= l.min && n.push(l.id);
651
651
  });
652
652
  let t = 100;
653
- e > 0.1 && (this.panes.forEach((s) => {
654
- s.size === null && (s.size = Math.max(Math.min(e / (this.panesCount - i), s.max), s.min)), t -= s.size;
653
+ e > 0.1 && (this.panes.forEach((l) => {
654
+ l.size === null && (l.size = Math.max(Math.min(e / (this.panesCount - i), l.max), l.min)), t -= l.size;
655
655
  }), t > 0.1 && this.readjustSizes(e, o, n));
656
656
  },
657
657
  equalizeAfterAddOrRemove({ addedPane: e, removedPane: o } = {}) {
658
658
  let n = 100 / this.panesCount, i = 0;
659
- const t = [], s = [];
660
- e && e.givenSize !== null && (n = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((l) => {
661
- i -= l.size, l.size >= l.max && t.push(l.id), l.size <= l.min && s.push(l.id);
662
- }), !(Math.abs(i) < 0.1) && (this.panes.forEach((l) => {
663
- e && e.givenSize !== null && e.id === l.id || (l.size = Math.max(Math.min(n, l.max), l.min)), i -= l.size, l.size >= l.max && t.push(l.id), l.size <= l.min && s.push(l.id);
664
- }), i > 0.1 && this.readjustSizes(i, t, s));
659
+ const t = [], l = [];
660
+ e && e.givenSize !== null && (n = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((s) => {
661
+ i -= s.size, s.size >= s.max && t.push(s.id), s.size <= s.min && l.push(s.id);
662
+ }), !(Math.abs(i) < 0.1) && (this.panes.forEach((s) => {
663
+ e && e.givenSize !== null && e.id === s.id || (s.size = Math.max(Math.min(n, s.max), s.min)), i -= s.size, s.size >= s.max && t.push(s.id), s.size <= s.min && l.push(s.id);
664
+ }), i > 0.1 && this.readjustSizes(i, t, l));
665
665
  },
666
666
  readjustSizes(e, o, n) {
667
667
  let i;
668
- e > 0 ? i = e / (this.panesCount - o.length) : i = e / (this.panesCount - n.length), this.panes.forEach((t, s) => {
668
+ e > 0 ? i = e / (this.panesCount - o.length) : i = e / (this.panesCount - n.length), this.panes.forEach((t, l) => {
669
669
  if (e > 0 && !o.includes(t.id)) {
670
- const l = Math.max(Math.min(t.size + i, t.max), t.min), r = l - t.size;
671
- e -= r, t.size = l;
670
+ const s = Math.max(Math.min(t.size + i, t.max), t.min), r = s - t.size;
671
+ e -= r, t.size = s;
672
672
  } else if (!n.includes(t.id)) {
673
- const l = Math.max(Math.min(t.size + i, t.max), t.min), r = l - t.size;
674
- e -= r, t.size = l;
673
+ const s = Math.max(Math.min(t.size + i, t.max), t.min), r = s - t.size;
674
+ e -= r, t.size = s;
675
675
  }
676
676
  t.update({
677
677
  [this.horizontal ? "height" : "width"]: `${this.indexedPanes[t.id].size}%`
@@ -773,10 +773,10 @@ const Bo = /* @__PURE__ */ ue(ln(Ie({}, Ao), {
773
773
  }
774
774
  }
775
775
  };
776
- function jo(e, o, n, i, t, s) {
777
- return m(), b("div", {
776
+ function jo(e, o, n, i, t, l) {
777
+ return m(), g("div", {
778
778
  class: "splitpanes__pane",
779
- onClick: o[0] || (o[0] = (l) => s.onPaneClick(l, e._.uid)),
779
+ onClick: o[0] || (o[0] = (s) => l.onPaneClick(s, e._.uid)),
780
780
  style: K(e.style)
781
781
  }, [
782
782
  X(e.$slots, "default")
@@ -800,12 +800,12 @@ const me = /* @__PURE__ */ qo(Ho, [["render", jo]]), be = /^[a-z0-9]+(-[a-z0-9]+
800
800
  };
801
801
  return o && !Ee(c) ? null : c;
802
802
  }
803
- const s = t[0], l = s.split("-");
804
- if (l.length > 1) {
803
+ const l = t[0], s = l.split("-");
804
+ if (s.length > 1) {
805
805
  const r = {
806
806
  provider: i,
807
- prefix: l.shift(),
808
- name: l.join("-")
807
+ prefix: s.shift(),
808
+ name: s.join("-")
809
809
  };
810
810
  return o && !Ee(r) ? null : r;
811
811
  }
@@ -813,25 +813,25 @@ const me = /* @__PURE__ */ qo(Ho, [["render", jo]]), be = /^[a-z0-9]+(-[a-z0-9]+
813
813
  const r = {
814
814
  provider: i,
815
815
  prefix: "",
816
- name: s
816
+ name: l
817
817
  };
818
818
  return o && !Ee(r, n) ? null : r;
819
819
  }
820
820
  return null;
821
- }, Ee = (e, o) => e ? !!((e.provider === "" || e.provider.match(be)) && (o && e.prefix === "" || e.prefix.match(be)) && e.name.match(be)) : !1, rn = Object.freeze(
821
+ }, Ee = (e, o) => e ? !!((e.provider === "" || e.provider.match(be)) && (o && e.prefix === "" || e.prefix.match(be)) && e.name.match(be)) : !1, sn = Object.freeze(
822
822
  {
823
823
  left: 0,
824
824
  top: 0,
825
825
  width: 16,
826
826
  height: 16
827
827
  }
828
- ), Fe = Object.freeze({
828
+ ), _e = Object.freeze({
829
829
  rotate: 0,
830
830
  vFlip: !1,
831
831
  hFlip: !1
832
832
  }), Oe = Object.freeze({
833
- ...rn,
834
- ...Fe
833
+ ...sn,
834
+ ..._e
835
835
  }), Je = Object.freeze({
836
836
  ...Oe,
837
837
  body: "",
@@ -843,38 +843,38 @@ function Wo(e, o) {
843
843
  const i = ((e.rotate || 0) + (o.rotate || 0)) % 4;
844
844
  return i && (n.rotate = i), n;
845
845
  }
846
- function Rt(e, o) {
846
+ function Nt(e, o) {
847
847
  const n = Wo(e, o);
848
848
  for (const i in Je)
849
- i in Fe ? i in e && !(i in n) && (n[i] = Fe[i]) : i in o ? n[i] = o[i] : i in e && (n[i] = e[i]);
849
+ i in _e ? i in e && !(i in n) && (n[i] = _e[i]) : i in o ? n[i] = o[i] : i in e && (n[i] = e[i]);
850
850
  return n;
851
851
  }
852
852
  function Uo(e, o) {
853
853
  const n = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
854
- function s(l) {
855
- if (n[l])
856
- return t[l] = [];
857
- if (!(l in t)) {
858
- t[l] = null;
859
- const r = i[l] && i[l].parent, u = r && s(r);
860
- u && (t[l] = [r].concat(u));
854
+ function l(s) {
855
+ if (n[s])
856
+ return t[s] = [];
857
+ if (!(s in t)) {
858
+ t[s] = null;
859
+ const r = i[s] && i[s].parent, u = r && l(r);
860
+ u && (t[s] = [r].concat(u));
861
861
  }
862
- return t[l];
862
+ return t[s];
863
863
  }
864
- return Object.keys(n).concat(Object.keys(i)).forEach(s), t;
864
+ return Object.keys(n).concat(Object.keys(i)).forEach(l), t;
865
865
  }
866
866
  function Vo(e, o, n) {
867
867
  const i = e.icons, t = e.aliases || /* @__PURE__ */ Object.create(null);
868
- let s = {};
869
- function l(r) {
870
- s = Rt(
868
+ let l = {};
869
+ function s(r) {
870
+ l = Nt(
871
871
  i[r] || t[r],
872
- s
872
+ l
873
873
  );
874
874
  }
875
- return l(o), n.forEach(l), Rt(e, s);
875
+ return s(o), n.forEach(s), Nt(e, l);
876
876
  }
877
- function an(e, o) {
877
+ function rn(e, o) {
878
878
  const n = [];
879
879
  if (typeof e != "object" || typeof e.icons != "object")
880
880
  return n;
@@ -883,8 +883,8 @@ function an(e, o) {
883
883
  });
884
884
  const i = Uo(e);
885
885
  for (const t in i) {
886
- const s = i[t];
887
- s && (o(t, Vo(e, t, s)), n.push(t));
886
+ const l = i[t];
887
+ l && (o(t, Vo(e, t, l)), n.push(t));
888
888
  }
889
889
  return n;
890
890
  }
@@ -892,7 +892,7 @@ const Go = {
892
892
  provider: "",
893
893
  aliases: {},
894
894
  not_found: {},
895
- ...rn
895
+ ...sn
896
896
  };
897
897
  function Ve(e, o) {
898
898
  for (const n in o)
@@ -900,7 +900,7 @@ function Ve(e, o) {
900
900
  return !1;
901
901
  return !0;
902
902
  }
903
- function un(e) {
903
+ function an(e) {
904
904
  if (typeof e != "object" || e === null)
905
905
  return null;
906
906
  const o = e;
@@ -908,25 +908,25 @@ function un(e) {
908
908
  return null;
909
909
  const n = o.icons;
910
910
  for (const t in n) {
911
- const s = n[t];
912
- if (!t.match(be) || typeof s.body != "string" || !Ve(
913
- s,
911
+ const l = n[t];
912
+ if (!t.match(be) || typeof l.body != "string" || !Ve(
913
+ l,
914
914
  Je
915
915
  ))
916
916
  return null;
917
917
  }
918
918
  const i = o.aliases || /* @__PURE__ */ Object.create(null);
919
919
  for (const t in i) {
920
- const s = i[t], l = s.parent;
921
- if (!t.match(be) || typeof l != "string" || !n[l] && !i[l] || !Ve(
922
- s,
920
+ const l = i[t], s = l.parent;
921
+ if (!t.match(be) || typeof s != "string" || !n[s] && !i[s] || !Ve(
922
+ l,
923
923
  Je
924
924
  ))
925
925
  return null;
926
926
  }
927
927
  return o;
928
928
  }
929
- const At = /* @__PURE__ */ Object.create(null);
929
+ const Rt = /* @__PURE__ */ Object.create(null);
930
930
  function Qo(e, o) {
931
931
  return {
932
932
  provider: e,
@@ -936,11 +936,11 @@ function Qo(e, o) {
936
936
  };
937
937
  }
938
938
  function ae(e, o) {
939
- const n = At[e] || (At[e] = /* @__PURE__ */ Object.create(null));
939
+ const n = Rt[e] || (Rt[e] = /* @__PURE__ */ Object.create(null));
940
940
  return n[o] || (n[o] = Qo(e, o));
941
941
  }
942
- function st(e, o) {
943
- return un(o) ? an(o, (n, i) => {
942
+ function lt(e, o) {
943
+ return an(o) ? rn(o, (n, i) => {
944
944
  i ? e.icons[n] = i : e.missing.add(n);
945
945
  }) : [];
946
946
  }
@@ -953,7 +953,7 @@ function Ko(e, o, n) {
953
953
  return !1;
954
954
  }
955
955
  let ye = !1;
956
- function cn(e) {
956
+ function un(e) {
957
957
  return typeof e == "boolean" && (ye = e), ye;
958
958
  }
959
959
  function Xo(e) {
@@ -975,8 +975,8 @@ function Jo(e, o) {
975
975
  return !1;
976
976
  if (typeof o != "string" && (o = e.provider || ""), ye && !o && !e.prefix) {
977
977
  let t = !1;
978
- return un(e) && (e.prefix = "", an(e, (s, l) => {
979
- l && Yo(s, l) && (t = !0);
978
+ return an(e) && (e.prefix = "", rn(e, (l, s) => {
979
+ s && Yo(l, s) && (t = !0);
980
980
  })), t;
981
981
  }
982
982
  const n = e.prefix;
@@ -987,18 +987,18 @@ function Jo(e, o) {
987
987
  }))
988
988
  return !1;
989
989
  const i = ae(o, n);
990
- return !!st(i, e);
990
+ return !!lt(i, e);
991
991
  }
992
- const dn = Object.freeze({
992
+ const cn = Object.freeze({
993
993
  width: null,
994
994
  height: null
995
- }), fn = Object.freeze({
995
+ }), dn = Object.freeze({
996
996
  // Dimensions
997
- ...dn,
997
+ ...cn,
998
998
  // Transformations
999
- ...Fe
999
+ ..._e
1000
1000
  }), Zo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ei = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1001
- function Dt(e, o, n) {
1001
+ function At(e, o, n) {
1002
1002
  if (o === 1)
1003
1003
  return e;
1004
1004
  if (n = n || 100, typeof e == "number")
@@ -1009,29 +1009,29 @@ function Dt(e, o, n) {
1009
1009
  if (i === null || !i.length)
1010
1010
  return e;
1011
1011
  const t = [];
1012
- let s = i.shift(), l = ei.test(s);
1012
+ let l = i.shift(), s = ei.test(l);
1013
1013
  for (; ; ) {
1014
- if (l) {
1015
- const r = parseFloat(s);
1016
- isNaN(r) ? t.push(s) : t.push(Math.ceil(r * o * n) / n);
1014
+ if (s) {
1015
+ const r = parseFloat(l);
1016
+ isNaN(r) ? t.push(l) : t.push(Math.ceil(r * o * n) / n);
1017
1017
  } else
1018
- t.push(s);
1019
- if (s = i.shift(), s === void 0)
1018
+ t.push(l);
1019
+ if (l = i.shift(), l === void 0)
1020
1020
  return t.join("");
1021
- l = !l;
1021
+ s = !s;
1022
1022
  }
1023
1023
  }
1024
1024
  function ti(e, o = "defs") {
1025
1025
  let n = "";
1026
1026
  const i = e.indexOf("<" + o);
1027
1027
  for (; i >= 0; ) {
1028
- const t = e.indexOf(">", i), s = e.indexOf("</" + o);
1029
- if (t === -1 || s === -1)
1028
+ const t = e.indexOf(">", i), l = e.indexOf("</" + o);
1029
+ if (t === -1 || l === -1)
1030
1030
  break;
1031
- const l = e.indexOf(">", s);
1032
- if (l === -1)
1031
+ const s = e.indexOf(">", l);
1032
+ if (s === -1)
1033
1033
  break;
1034
- n += e.slice(t + 1, s).trim(), e = e.slice(0, i).trim() + e.slice(l + 1);
1034
+ n += e.slice(t + 1, l).trim(), e = e.slice(0, i).trim() + e.slice(s + 1);
1035
1035
  }
1036
1036
  return {
1037
1037
  defs: n,
@@ -1046,12 +1046,12 @@ function oi(e, o, n) {
1046
1046
  return ni(i.defs, o + i.content + n);
1047
1047
  }
1048
1048
  const ii = (e) => e === "unset" || e === "undefined" || e === "none";
1049
- function si(e, o) {
1049
+ function li(e, o) {
1050
1050
  const n = {
1051
1051
  ...Oe,
1052
1052
  ...e
1053
1053
  }, i = {
1054
- ...fn,
1054
+ ...dn,
1055
1055
  ...o
1056
1056
  }, t = {
1057
1057
  left: n.left,
@@ -1059,7 +1059,7 @@ function si(e, o) {
1059
1059
  width: n.width,
1060
1060
  height: n.height
1061
1061
  };
1062
- let s = n.body;
1062
+ let l = n.body;
1063
1063
  [n, i].forEach((L) => {
1064
1064
  const w = [], $ = L.hFlip, W = L.vFlip;
1065
1065
  let N = L.rotate;
@@ -1086,43 +1086,43 @@ function si(e, o) {
1086
1086
  );
1087
1087
  break;
1088
1088
  }
1089
- N % 2 === 1 && (t.left !== t.top && (E = t.left, t.left = t.top, t.top = E), t.width !== t.height && (E = t.width, t.width = t.height, t.height = E)), w.length && (s = oi(
1090
- s,
1089
+ N % 2 === 1 && (t.left !== t.top && (E = t.left, t.left = t.top, t.top = E), t.width !== t.height && (E = t.width, t.width = t.height, t.height = E)), w.length && (l = oi(
1090
+ l,
1091
1091
  '<g transform="' + w.join(" ") + '">',
1092
1092
  "</g>"
1093
1093
  ));
1094
1094
  });
1095
- const l = i.width, r = i.height, u = t.width, c = t.height;
1095
+ const s = i.width, r = i.height, u = t.width, c = t.height;
1096
1096
  let d, p;
1097
- l === null ? (p = r === null ? "1em" : r === "auto" ? c : r, d = Dt(p, u / c)) : (d = l === "auto" ? u : l, p = r === null ? Dt(d, c / u) : r === "auto" ? c : r);
1098
- const k = {}, z = (L, w) => {
1099
- ii(w) || (k[L] = w.toString());
1097
+ s === null ? (p = r === null ? "1em" : r === "auto" ? c : r, d = At(p, u / c)) : (d = s === "auto" ? u : s, p = r === null ? At(d, c / u) : r === "auto" ? c : r);
1098
+ const C = {}, z = (L, w) => {
1099
+ ii(w) || (C[L] = w.toString());
1100
1100
  };
1101
1101
  z("width", d), z("height", p);
1102
1102
  const P = [t.left, t.top, u, c];
1103
- return k.viewBox = P.join(" "), {
1104
- attributes: k,
1103
+ return C.viewBox = P.join(" "), {
1104
+ attributes: C,
1105
1105
  viewBox: P,
1106
- body: s
1106
+ body: l
1107
1107
  };
1108
1108
  }
1109
- const li = /\sid="(\S+)"/g, ri = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1109
+ const si = /\sid="(\S+)"/g, ri = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1110
1110
  let ai = 0;
1111
1111
  function ui(e, o = ri) {
1112
1112
  const n = [];
1113
1113
  let i;
1114
- for (; i = li.exec(e); )
1114
+ for (; i = si.exec(e); )
1115
1115
  n.push(i[1]);
1116
1116
  if (!n.length)
1117
1117
  return e;
1118
1118
  const t = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1119
- return n.forEach((s) => {
1120
- const l = typeof o == "function" ? o(s) : o + (ai++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1119
+ return n.forEach((l) => {
1120
+ const s = typeof o == "function" ? o(l) : o + (ai++).toString(), r = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1121
1121
  e = e.replace(
1122
1122
  // Allowed characters before id: [#;"]
1123
1123
  // Allowed characters after id: [)"], .[a-z]
1124
1124
  new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
1125
- "$1" + l + t + "$3"
1125
+ "$1" + s + t + "$3"
1126
1126
  );
1127
1127
  }), e = e.replace(new RegExp(t, "g"), ""), e;
1128
1128
  }
@@ -1133,7 +1133,7 @@ function ci(e, o) {
1133
1133
  function et(e) {
1134
1134
  return Ze[e] || Ze[""];
1135
1135
  }
1136
- function lt(e) {
1136
+ function st(e) {
1137
1137
  let o;
1138
1138
  if (typeof e.resources == "string")
1139
1139
  o = [e.resources];
@@ -1164,11 +1164,11 @@ const rt = /* @__PURE__ */ Object.create(null), ve = [
1164
1164
  ], Le = [];
1165
1165
  for (; ve.length > 0; )
1166
1166
  ve.length === 1 || Math.random() > 0.5 ? Le.push(ve.shift()) : Le.push(ve.pop());
1167
- rt[""] = lt({
1167
+ rt[""] = st({
1168
1168
  resources: ["https://api.iconify.design"].concat(Le)
1169
1169
  });
1170
1170
  function di(e, o) {
1171
- const n = lt(o);
1171
+ const n = st(o);
1172
1172
  return n === null ? !1 : (rt[e] = n, !0);
1173
1173
  }
1174
1174
  function at(e) {
@@ -1182,7 +1182,7 @@ const fi = () => {
1182
1182
  } catch {
1183
1183
  }
1184
1184
  };
1185
- let Bt = fi();
1185
+ let Dt = fi();
1186
1186
  function hi(e, o) {
1187
1187
  const n = at(e);
1188
1188
  if (!n)
@@ -1192,11 +1192,11 @@ function hi(e, o) {
1192
1192
  i = 0;
1193
1193
  else {
1194
1194
  let t = 0;
1195
- n.resources.forEach((l) => {
1196
- t = Math.max(t, l.length);
1195
+ n.resources.forEach((s) => {
1196
+ t = Math.max(t, s.length);
1197
1197
  });
1198
- const s = o + ".json?icons=";
1199
- i = n.maxURL - t - n.path.length - s.length;
1198
+ const l = o + ".json?icons=";
1199
+ i = n.maxURL - t - n.path.length - l.length;
1200
1200
  }
1201
1201
  return i;
1202
1202
  }
@@ -1204,21 +1204,21 @@ function pi(e) {
1204
1204
  return e === 404;
1205
1205
  }
1206
1206
  const mi = (e, o, n) => {
1207
- const i = [], t = hi(e, o), s = "icons";
1208
- let l = {
1209
- type: s,
1207
+ const i = [], t = hi(e, o), l = "icons";
1208
+ let s = {
1209
+ type: l,
1210
1210
  provider: e,
1211
1211
  prefix: o,
1212
1212
  icons: []
1213
1213
  }, r = 0;
1214
1214
  return n.forEach((u, c) => {
1215
- r += u.length + 1, r >= t && c > 0 && (i.push(l), l = {
1216
- type: s,
1215
+ r += u.length + 1, r >= t && c > 0 && (i.push(s), s = {
1216
+ type: l,
1217
1217
  provider: e,
1218
1218
  prefix: o,
1219
1219
  icons: []
1220
- }, r = u.length), l.icons.push(u);
1221
- }), i.push(l), i;
1220
+ }, r = u.length), s.icons.push(u);
1221
+ }), i.push(s), i;
1222
1222
  };
1223
1223
  function vi(e) {
1224
1224
  if (typeof e == "string") {
@@ -1229,22 +1229,22 @@ function vi(e) {
1229
1229
  return "/";
1230
1230
  }
1231
1231
  const gi = (e, o, n) => {
1232
- if (!Bt) {
1232
+ if (!Dt) {
1233
1233
  n("abort", 424);
1234
1234
  return;
1235
1235
  }
1236
1236
  let i = vi(o.provider);
1237
1237
  switch (o.type) {
1238
1238
  case "icons": {
1239
- const s = o.prefix, r = o.icons.join(","), u = new URLSearchParams({
1239
+ const l = o.prefix, r = o.icons.join(","), u = new URLSearchParams({
1240
1240
  icons: r
1241
1241
  });
1242
- i += s + ".json?" + u.toString();
1242
+ i += l + ".json?" + u.toString();
1243
1243
  break;
1244
1244
  }
1245
1245
  case "custom": {
1246
- const s = o.uri;
1247
- i += s.slice(0, 1) === "/" ? s.slice(1) : s;
1246
+ const l = o.uri;
1247
+ i += l.slice(0, 1) === "/" ? l.slice(1) : l;
1248
1248
  break;
1249
1249
  }
1250
1250
  default:
@@ -1252,24 +1252,24 @@ const gi = (e, o, n) => {
1252
1252
  return;
1253
1253
  }
1254
1254
  let t = 503;
1255
- Bt(e + i).then((s) => {
1256
- const l = s.status;
1257
- if (l !== 200) {
1255
+ Dt(e + i).then((l) => {
1256
+ const s = l.status;
1257
+ if (s !== 200) {
1258
1258
  setTimeout(() => {
1259
- n(pi(l) ? "abort" : "next", l);
1259
+ n(pi(s) ? "abort" : "next", s);
1260
1260
  });
1261
1261
  return;
1262
1262
  }
1263
- return t = 501, s.json();
1264
- }).then((s) => {
1265
- if (typeof s != "object" || s === null) {
1263
+ return t = 501, l.json();
1264
+ }).then((l) => {
1265
+ if (typeof l != "object" || l === null) {
1266
1266
  setTimeout(() => {
1267
- s === 404 ? n("abort", s) : n("next", t);
1267
+ l === 404 ? n("abort", l) : n("next", t);
1268
1268
  });
1269
1269
  return;
1270
1270
  }
1271
1271
  setTimeout(() => {
1272
- n("success", s);
1272
+ n("success", l);
1273
1273
  });
1274
1274
  }).catch(() => {
1275
1275
  n("next", t);
@@ -1284,7 +1284,7 @@ function yi(e) {
1284
1284
  missing: [],
1285
1285
  pending: []
1286
1286
  }, n = /* @__PURE__ */ Object.create(null);
1287
- e.sort((t, s) => t.provider !== s.provider ? t.provider.localeCompare(s.provider) : t.prefix !== s.prefix ? t.prefix.localeCompare(s.prefix) : t.name.localeCompare(s.name));
1287
+ e.sort((t, l) => t.provider !== l.provider ? t.provider.localeCompare(l.provider) : t.prefix !== l.prefix ? t.prefix.localeCompare(l.prefix) : t.name.localeCompare(l.name));
1288
1288
  let i = {
1289
1289
  provider: "",
1290
1290
  prefix: "",
@@ -1294,18 +1294,18 @@ function yi(e) {
1294
1294
  if (i.name === t.name && i.prefix === t.prefix && i.provider === t.provider)
1295
1295
  return;
1296
1296
  i = t;
1297
- const s = t.provider, l = t.prefix, r = t.name, u = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), c = u[l] || (u[l] = ae(s, l));
1297
+ const l = t.provider, s = t.prefix, r = t.name, u = n[l] || (n[l] = /* @__PURE__ */ Object.create(null)), c = u[s] || (u[s] = ae(l, s));
1298
1298
  let d;
1299
- r in c.icons ? d = o.loaded : l === "" || c.missing.has(r) ? d = o.missing : d = o.pending;
1299
+ r in c.icons ? d = o.loaded : s === "" || c.missing.has(r) ? d = o.missing : d = o.pending;
1300
1300
  const p = {
1301
- provider: s,
1302
- prefix: l,
1301
+ provider: l,
1302
+ prefix: s,
1303
1303
  name: r
1304
1304
  };
1305
1305
  d.push(p);
1306
1306
  }), o;
1307
1307
  }
1308
- function hn(e, o) {
1308
+ function fn(e, o) {
1309
1309
  e.forEach((n) => {
1310
1310
  const i = n.loaderCallbacks;
1311
1311
  i && (n.loaderCallbacks = i.filter((t) => t.id !== o));
@@ -1319,20 +1319,20 @@ function xi(e) {
1319
1319
  return;
1320
1320
  let n = !1;
1321
1321
  const i = e.provider, t = e.prefix;
1322
- o.forEach((s) => {
1323
- const l = s.icons, r = l.pending.length;
1324
- l.pending = l.pending.filter((u) => {
1322
+ o.forEach((l) => {
1323
+ const s = l.icons, r = s.pending.length;
1324
+ s.pending = s.pending.filter((u) => {
1325
1325
  if (u.prefix !== t)
1326
1326
  return !0;
1327
1327
  const c = u.name;
1328
1328
  if (e.icons[c])
1329
- l.loaded.push({
1329
+ s.loaded.push({
1330
1330
  provider: i,
1331
1331
  prefix: t,
1332
1332
  name: c
1333
1333
  });
1334
1334
  else if (e.missing.has(c))
1335
- l.missing.push({
1335
+ s.missing.push({
1336
1336
  provider: i,
1337
1337
  prefix: t,
1338
1338
  name: c
@@ -1340,38 +1340,38 @@ function xi(e) {
1340
1340
  else
1341
1341
  return n = !0, !0;
1342
1342
  return !1;
1343
- }), l.pending.length !== r && (n || hn([e], s.id), s.callback(
1344
- l.loaded.slice(0),
1345
- l.missing.slice(0),
1346
- l.pending.slice(0),
1347
- s.abort
1343
+ }), s.pending.length !== r && (n || fn([e], l.id), l.callback(
1344
+ s.loaded.slice(0),
1345
+ s.missing.slice(0),
1346
+ s.pending.slice(0),
1347
+ l.abort
1348
1348
  ));
1349
1349
  });
1350
1350
  }));
1351
1351
  }
1352
1352
  let wi = 0;
1353
1353
  function Si(e, o, n) {
1354
- const i = wi++, t = hn.bind(null, n, i);
1354
+ const i = wi++, t = fn.bind(null, n, i);
1355
1355
  if (!o.pending.length)
1356
1356
  return t;
1357
- const s = {
1357
+ const l = {
1358
1358
  id: i,
1359
1359
  icons: o,
1360
1360
  callback: e,
1361
1361
  abort: t
1362
1362
  };
1363
- return n.forEach((l) => {
1364
- (l.loaderCallbacks || (l.loaderCallbacks = [])).push(s);
1363
+ return n.forEach((s) => {
1364
+ (s.loaderCallbacks || (s.loaderCallbacks = [])).push(l);
1365
1365
  }), t;
1366
1366
  }
1367
- function ki(e, o = !0, n = !1) {
1367
+ function Ci(e, o = !0, n = !1) {
1368
1368
  const i = [];
1369
1369
  return e.forEach((t) => {
1370
- const s = typeof t == "string" ? $e(t, o, n) : t;
1371
- s && i.push(s);
1370
+ const l = typeof t == "string" ? $e(t, o, n) : t;
1371
+ l && i.push(l);
1372
1372
  }), i;
1373
1373
  }
1374
- var Ci = {
1374
+ var ki = {
1375
1375
  resources: [],
1376
1376
  index: 0,
1377
1377
  timeout: 2e3,
@@ -1380,30 +1380,30 @@ var Ci = {
1380
1380
  dataAfterTimeout: !1
1381
1381
  };
1382
1382
  function zi(e, o, n, i) {
1383
- const t = e.resources.length, s = e.random ? Math.floor(Math.random() * t) : e.index;
1384
- let l;
1383
+ const t = e.resources.length, l = e.random ? Math.floor(Math.random() * t) : e.index;
1384
+ let s;
1385
1385
  if (e.random) {
1386
1386
  let x = e.resources.slice(0);
1387
- for (l = []; x.length > 1; ) {
1388
- const y = Math.floor(Math.random() * x.length);
1389
- l.push(x[y]), x = x.slice(0, y).concat(x.slice(y + 1));
1387
+ for (s = []; x.length > 1; ) {
1388
+ const b = Math.floor(Math.random() * x.length);
1389
+ s.push(x[b]), x = x.slice(0, b).concat(x.slice(b + 1));
1390
1390
  }
1391
- l = l.concat(x);
1391
+ s = s.concat(x);
1392
1392
  } else
1393
- l = e.resources.slice(s).concat(e.resources.slice(0, s));
1393
+ s = e.resources.slice(l).concat(e.resources.slice(0, l));
1394
1394
  const r = Date.now();
1395
- let u = "pending", c = 0, d, p = null, k = [], z = [];
1395
+ let u = "pending", c = 0, d, p = null, C = [], z = [];
1396
1396
  typeof i == "function" && z.push(i);
1397
1397
  function P() {
1398
1398
  p && (clearTimeout(p), p = null);
1399
1399
  }
1400
1400
  function L() {
1401
- u === "pending" && (u = "aborted"), P(), k.forEach((x) => {
1401
+ u === "pending" && (u = "aborted"), P(), C.forEach((x) => {
1402
1402
  x.status === "pending" && (x.status = "aborted");
1403
- }), k = [];
1403
+ }), C = [];
1404
1404
  }
1405
- function w(x, y) {
1406
- y && (z = []), typeof x == "function" && z.push(x);
1405
+ function w(x, b) {
1406
+ b && (z = []), typeof x == "function" && z.push(x);
1407
1407
  }
1408
1408
  function $() {
1409
1409
  return {
@@ -1411,7 +1411,7 @@ function zi(e, o, n, i) {
1411
1411
  payload: o,
1412
1412
  status: u,
1413
1413
  queriesSent: c,
1414
- queriesPending: k.length,
1414
+ queriesPending: C.length,
1415
1415
  subscribe: w,
1416
1416
  abort: L
1417
1417
  };
@@ -1422,13 +1422,13 @@ function zi(e, o, n, i) {
1422
1422
  });
1423
1423
  }
1424
1424
  function N() {
1425
- k.forEach((x) => {
1425
+ C.forEach((x) => {
1426
1426
  x.status === "pending" && (x.status = "aborted");
1427
- }), k = [];
1427
+ }), C = [];
1428
1428
  }
1429
- function E(x, y, I) {
1430
- const T = y !== "success";
1431
- switch (k = k.filter((H) => H !== x), u) {
1429
+ function E(x, b, F) {
1430
+ const T = b !== "success";
1431
+ switch (C = C.filter((H) => H !== x), u) {
1432
1432
  case "pending":
1433
1433
  break;
1434
1434
  case "failed":
@@ -1438,12 +1438,12 @@ function zi(e, o, n, i) {
1438
1438
  default:
1439
1439
  return;
1440
1440
  }
1441
- if (y === "abort") {
1442
- d = I, W();
1441
+ if (b === "abort") {
1442
+ d = F, W();
1443
1443
  return;
1444
1444
  }
1445
1445
  if (T) {
1446
- d = I, k.length || (l.length ? q() : W());
1446
+ d = F, C.length || (s.length ? q() : W());
1447
1447
  return;
1448
1448
  }
1449
1449
  if (P(), N(), !e.random) {
@@ -1451,16 +1451,16 @@ function zi(e, o, n, i) {
1451
1451
  H !== -1 && H !== e.index && (e.index = H);
1452
1452
  }
1453
1453
  u = "completed", z.forEach((H) => {
1454
- H(I);
1454
+ H(F);
1455
1455
  });
1456
1456
  }
1457
1457
  function q() {
1458
1458
  if (u !== "pending")
1459
1459
  return;
1460
1460
  P();
1461
- const x = l.shift();
1461
+ const x = s.shift();
1462
1462
  if (x === void 0) {
1463
- if (k.length) {
1463
+ if (C.length) {
1464
1464
  p = setTimeout(() => {
1465
1465
  P(), u === "pending" && (N(), W());
1466
1466
  }, e.timeout);
@@ -1469,20 +1469,20 @@ function zi(e, o, n, i) {
1469
1469
  W();
1470
1470
  return;
1471
1471
  }
1472
- const y = {
1472
+ const b = {
1473
1473
  status: "pending",
1474
1474
  resource: x,
1475
- callback: (I, T) => {
1476
- E(y, I, T);
1475
+ callback: (F, T) => {
1476
+ E(b, F, T);
1477
1477
  }
1478
1478
  };
1479
- k.push(y), c++, p = setTimeout(q, e.rotate), n(x, o, y.callback);
1479
+ C.push(b), c++, p = setTimeout(q, e.rotate), n(x, o, b.callback);
1480
1480
  }
1481
1481
  return setTimeout(q), $;
1482
1482
  }
1483
- function pn(e) {
1483
+ function hn(e) {
1484
1484
  const o = {
1485
- ...Ci,
1485
+ ...ki,
1486
1486
  ...e
1487
1487
  };
1488
1488
  let n = [];
@@ -1494,18 +1494,18 @@ function pn(e) {
1494
1494
  o,
1495
1495
  r,
1496
1496
  u,
1497
- (p, k) => {
1498
- i(), c && c(p, k);
1497
+ (p, C) => {
1498
+ i(), c && c(p, C);
1499
1499
  }
1500
1500
  );
1501
1501
  return n.push(d), d;
1502
1502
  }
1503
- function s(r) {
1503
+ function l(r) {
1504
1504
  return n.find((u) => r(u)) || null;
1505
1505
  }
1506
1506
  return {
1507
1507
  query: t,
1508
- find: s,
1508
+ find: l,
1509
1509
  setIndex: (r) => {
1510
1510
  o.index = r;
1511
1511
  },
@@ -1513,7 +1513,7 @@ function pn(e) {
1513
1513
  cleanup: i
1514
1514
  };
1515
1515
  }
1516
- function qt() {
1516
+ function Bt() {
1517
1517
  }
1518
1518
  const Ge = /* @__PURE__ */ Object.create(null);
1519
1519
  function Pi(e) {
@@ -1521,7 +1521,7 @@ function Pi(e) {
1521
1521
  const o = at(e);
1522
1522
  if (!o)
1523
1523
  return;
1524
- const n = pn(o), i = {
1524
+ const n = hn(o), i = {
1525
1525
  config: o,
1526
1526
  redundancy: n
1527
1527
  };
@@ -1532,23 +1532,23 @@ function Pi(e) {
1532
1532
  function Ei(e, o, n) {
1533
1533
  let i, t;
1534
1534
  if (typeof e == "string") {
1535
- const s = et(e);
1536
- if (!s)
1537
- return n(void 0, 424), qt;
1538
- t = s.send;
1539
- const l = Pi(e);
1540
- l && (i = l.redundancy);
1535
+ const l = et(e);
1536
+ if (!l)
1537
+ return n(void 0, 424), Bt;
1538
+ t = l.send;
1539
+ const s = Pi(e);
1540
+ s && (i = s.redundancy);
1541
1541
  } else {
1542
- const s = lt(e);
1543
- if (s) {
1544
- i = pn(s);
1545
- const l = e.resources ? e.resources[0] : "", r = et(l);
1542
+ const l = st(e);
1543
+ if (l) {
1544
+ i = hn(l);
1545
+ const s = e.resources ? e.resources[0] : "", r = et(s);
1546
1546
  r && (t = r.send);
1547
1547
  }
1548
1548
  }
1549
- return !i || !t ? (n(void 0, 424), qt) : i.query(o, t, n)().abort;
1549
+ return !i || !t ? (n(void 0, 424), Bt) : i.query(o, t, n)().abort;
1550
1550
  }
1551
- const Ht = "iconify2", xe = "iconify", mn = xe + "-count", jt = xe + "-version", vn = 36e5, Li = 168, Ti = 50;
1551
+ const qt = "iconify2", xe = "iconify", pn = xe + "-count", Ht = xe + "-version", mn = 36e5, Li = 168, Ti = 50;
1552
1552
  function tt(e, o) {
1553
1553
  try {
1554
1554
  return e.getItem(o);
@@ -1561,22 +1561,22 @@ function ut(e, o, n) {
1561
1561
  } catch {
1562
1562
  }
1563
1563
  }
1564
- function Wt(e, o) {
1564
+ function jt(e, o) {
1565
1565
  try {
1566
1566
  e.removeItem(o);
1567
1567
  } catch {
1568
1568
  }
1569
1569
  }
1570
1570
  function nt(e, o) {
1571
- return ut(e, mn, o.toString());
1571
+ return ut(e, pn, o.toString());
1572
1572
  }
1573
1573
  function ot(e) {
1574
- return parseInt(tt(e, mn)) || 0;
1574
+ return parseInt(tt(e, pn)) || 0;
1575
1575
  }
1576
1576
  const Ne = {
1577
1577
  local: !0,
1578
1578
  session: !0
1579
- }, gn = {
1579
+ }, vn = {
1580
1580
  local: /* @__PURE__ */ new Set(),
1581
1581
  session: /* @__PURE__ */ new Set()
1582
1582
  };
@@ -1585,7 +1585,7 @@ function Mi(e) {
1585
1585
  ct = e;
1586
1586
  }
1587
1587
  let Pe = typeof window > "u" ? {} : window;
1588
- function bn(e) {
1588
+ function gn(e) {
1589
1589
  const o = e + "Storage";
1590
1590
  try {
1591
1591
  if (Pe && Pe[o] && typeof Pe[o].length == "number")
@@ -1594,21 +1594,21 @@ function bn(e) {
1594
1594
  }
1595
1595
  Ne[e] = !1;
1596
1596
  }
1597
- function yn(e, o) {
1598
- const n = bn(e);
1597
+ function bn(e, o) {
1598
+ const n = gn(e);
1599
1599
  if (!n)
1600
1600
  return;
1601
- const i = tt(n, jt);
1602
- if (i !== Ht) {
1601
+ const i = tt(n, Ht);
1602
+ if (i !== qt) {
1603
1603
  if (i) {
1604
1604
  const r = ot(n);
1605
1605
  for (let u = 0; u < r; u++)
1606
- Wt(n, xe + u.toString());
1606
+ jt(n, xe + u.toString());
1607
1607
  }
1608
- ut(n, jt, Ht), nt(n, 0);
1608
+ ut(n, Ht, qt), nt(n, 0);
1609
1609
  return;
1610
1610
  }
1611
- const t = Math.floor(Date.now() / vn) - Li, s = (r) => {
1611
+ const t = Math.floor(Date.now() / mn) - Li, l = (r) => {
1612
1612
  const u = xe + r.toString(), c = tt(n, u);
1613
1613
  if (typeof c == "string") {
1614
1614
  try {
@@ -1618,30 +1618,30 @@ function yn(e, o) {
1618
1618
  return !0;
1619
1619
  } catch {
1620
1620
  }
1621
- Wt(n, u);
1621
+ jt(n, u);
1622
1622
  }
1623
1623
  };
1624
- let l = ot(n);
1625
- for (let r = l - 1; r >= 0; r--)
1626
- s(r) || (r === l - 1 ? (l--, nt(n, l)) : gn[e].add(r));
1624
+ let s = ot(n);
1625
+ for (let r = s - 1; r >= 0; r--)
1626
+ l(r) || (r === s - 1 ? (s--, nt(n, s)) : vn[e].add(r));
1627
1627
  }
1628
- function xn() {
1628
+ function yn() {
1629
1629
  if (!ct) {
1630
1630
  Mi(!0);
1631
1631
  for (const e in Ne)
1632
- yn(e, (o) => {
1633
- const n = o.data, i = o.provider, t = n.prefix, s = ae(
1632
+ bn(e, (o) => {
1633
+ const n = o.data, i = o.provider, t = n.prefix, l = ae(
1634
1634
  i,
1635
1635
  t
1636
1636
  );
1637
- if (!st(s, n).length)
1637
+ if (!lt(l, n).length)
1638
1638
  return !1;
1639
- const l = n.lastModified || -1;
1640
- return s.lastModifiedCached = s.lastModifiedCached ? Math.min(s.lastModifiedCached, l) : l, !0;
1639
+ const s = n.lastModified || -1;
1640
+ return l.lastModifiedCached = l.lastModifiedCached ? Math.min(l.lastModifiedCached, s) : s, !0;
1641
1641
  });
1642
1642
  }
1643
1643
  }
1644
- function _i(e, o) {
1644
+ function Ii(e, o) {
1645
1645
  const n = e.lastModifiedCached;
1646
1646
  if (
1647
1647
  // Matches or newer
@@ -1650,40 +1650,40 @@ function _i(e, o) {
1650
1650
  return n === o;
1651
1651
  if (e.lastModifiedCached = o, n)
1652
1652
  for (const i in Ne)
1653
- yn(i, (t) => {
1654
- const s = t.data;
1655
- return t.provider !== e.provider || s.prefix !== e.prefix || s.lastModified === o;
1653
+ bn(i, (t) => {
1654
+ const l = t.data;
1655
+ return t.provider !== e.provider || l.prefix !== e.prefix || l.lastModified === o;
1656
1656
  });
1657
1657
  return !0;
1658
1658
  }
1659
- function Ii(e, o) {
1660
- ct || xn();
1659
+ function Fi(e, o) {
1660
+ ct || yn();
1661
1661
  function n(i) {
1662
1662
  let t;
1663
- if (!Ne[i] || !(t = bn(i)))
1663
+ if (!Ne[i] || !(t = gn(i)))
1664
1664
  return;
1665
- const s = gn[i];
1666
- let l;
1667
- if (s.size)
1668
- s.delete(l = Array.from(s).shift());
1669
- else if (l = ot(t), l >= Ti || !nt(t, l + 1))
1665
+ const l = vn[i];
1666
+ let s;
1667
+ if (l.size)
1668
+ l.delete(s = Array.from(l).shift());
1669
+ else if (s = ot(t), s >= Ti || !nt(t, s + 1))
1670
1670
  return;
1671
1671
  const r = {
1672
- cached: Math.floor(Date.now() / vn),
1672
+ cached: Math.floor(Date.now() / mn),
1673
1673
  provider: e.provider,
1674
1674
  data: o
1675
1675
  };
1676
1676
  return ut(
1677
1677
  t,
1678
- xe + l.toString(),
1678
+ xe + s.toString(),
1679
1679
  JSON.stringify(r)
1680
1680
  );
1681
1681
  }
1682
- o.lastModified && !_i(e, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
1682
+ o.lastModified && !Ii(e, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
1683
1683
  }
1684
- function Ut() {
1684
+ function Wt() {
1685
1685
  }
1686
- function Fi(e) {
1686
+ function _i(e) {
1687
1687
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1688
1688
  e.iconsLoaderFlag = !1, xi(e);
1689
1689
  }));
@@ -1693,10 +1693,10 @@ function $i(e, o) {
1693
1693
  e.iconsQueueFlag = !1;
1694
1694
  const { provider: n, prefix: i } = e, t = e.iconsToLoad;
1695
1695
  delete e.iconsToLoad;
1696
- let s;
1697
- if (!t || !(s = et(n)))
1696
+ let l;
1697
+ if (!t || !(l = et(n)))
1698
1698
  return;
1699
- s.prepare(n, i, t).forEach((r) => {
1699
+ l.prepare(n, i, t).forEach((r) => {
1700
1700
  Ei(n, r, (u) => {
1701
1701
  if (typeof u != "object")
1702
1702
  r.icons.forEach((c) => {
@@ -1704,7 +1704,7 @@ function $i(e, o) {
1704
1704
  });
1705
1705
  else
1706
1706
  try {
1707
- const c = st(
1707
+ const c = lt(
1708
1708
  e,
1709
1709
  u
1710
1710
  );
@@ -1713,17 +1713,17 @@ function $i(e, o) {
1713
1713
  const d = e.pendingIcons;
1714
1714
  d && c.forEach((p) => {
1715
1715
  d.delete(p);
1716
- }), Ii(e, u);
1716
+ }), Fi(e, u);
1717
1717
  } catch (c) {
1718
1718
  console.error(c);
1719
1719
  }
1720
- Fi(e);
1720
+ _i(e);
1721
1721
  });
1722
1722
  });
1723
1723
  }));
1724
1724
  }
1725
1725
  const Oi = (e, o) => {
1726
- const n = ki(e, !0, cn()), i = yi(n);
1726
+ const n = Ci(e, !0, un()), i = yi(n);
1727
1727
  if (!i.pending.length) {
1728
1728
  let u = !0;
1729
1729
  return o && setTimeout(() => {
@@ -1731,36 +1731,36 @@ const Oi = (e, o) => {
1731
1731
  i.loaded,
1732
1732
  i.missing,
1733
1733
  i.pending,
1734
- Ut
1734
+ Wt
1735
1735
  );
1736
1736
  }), () => {
1737
1737
  u = !1;
1738
1738
  };
1739
1739
  }
1740
- const t = /* @__PURE__ */ Object.create(null), s = [];
1741
- let l, r;
1740
+ const t = /* @__PURE__ */ Object.create(null), l = [];
1741
+ let s, r;
1742
1742
  return i.pending.forEach((u) => {
1743
1743
  const { provider: c, prefix: d } = u;
1744
- if (d === r && c === l)
1744
+ if (d === r && c === s)
1745
1745
  return;
1746
- l = c, r = d, s.push(ae(c, d));
1746
+ s = c, r = d, l.push(ae(c, d));
1747
1747
  const p = t[c] || (t[c] = /* @__PURE__ */ Object.create(null));
1748
1748
  p[d] || (p[d] = []);
1749
1749
  }), i.pending.forEach((u) => {
1750
- const { provider: c, prefix: d, name: p } = u, k = ae(c, d), z = k.pendingIcons || (k.pendingIcons = /* @__PURE__ */ new Set());
1750
+ const { provider: c, prefix: d, name: p } = u, C = ae(c, d), z = C.pendingIcons || (C.pendingIcons = /* @__PURE__ */ new Set());
1751
1751
  z.has(p) || (z.add(p), t[c][d].push(p));
1752
- }), s.forEach((u) => {
1752
+ }), l.forEach((u) => {
1753
1753
  const { provider: c, prefix: d } = u;
1754
1754
  t[c][d].length && $i(u, t[c][d]);
1755
- }), o ? Si(o, i, s) : Ut;
1755
+ }), o ? Si(o, i, l) : Wt;
1756
1756
  };
1757
1757
  function Ni(e, o) {
1758
1758
  const n = {
1759
1759
  ...e
1760
1760
  };
1761
1761
  for (const i in o) {
1762
- const t = o[i], s = typeof t;
1763
- i in dn ? (t === null || t && (s === "string" || s === "number")) && (n[i] = t) : s === typeof n[i] && (n[i] = i === "rotate" ? t % 4 : t);
1762
+ const t = o[i], l = typeof t;
1763
+ i in cn ? (t === null || t && (l === "string" || l === "number")) && (n[i] = t) : l === typeof n[i] && (n[i] = i === "rotate" ? t % 4 : t);
1764
1764
  }
1765
1765
  return n;
1766
1766
  }
@@ -1797,8 +1797,8 @@ function Di(e, o = 0) {
1797
1797
  t = 90;
1798
1798
  }
1799
1799
  if (t) {
1800
- let s = parseFloat(e.slice(0, e.length - n.length));
1801
- return isNaN(s) ? 0 : (s = s / t, s % 1 === 0 ? i(s) : 0);
1800
+ let l = parseFloat(e.slice(0, e.length - n.length));
1801
+ return isNaN(l) ? 0 : (l = l / t, l % 1 === 0 ? i(l) : 0);
1802
1802
  }
1803
1803
  }
1804
1804
  return o;
@@ -1818,8 +1818,8 @@ function Hi(e) {
1818
1818
  function ji(e) {
1819
1819
  return 'url("' + Hi(e) + '")';
1820
1820
  }
1821
- const Vt = {
1822
- ...fn,
1821
+ const Ut = {
1822
+ ...dn,
1823
1823
  inline: !1
1824
1824
  }, Wi = {
1825
1825
  xmlns: "http://www.w3.org/2000/svg",
@@ -1830,32 +1830,32 @@ const Vt = {
1830
1830
  display: "inline-block"
1831
1831
  }, it = {
1832
1832
  backgroundColor: "currentColor"
1833
- }, wn = {
1833
+ }, xn = {
1834
1834
  backgroundColor: "transparent"
1835
- }, Gt = {
1835
+ }, Vt = {
1836
1836
  Image: "var(--svg)",
1837
1837
  Repeat: "no-repeat",
1838
1838
  Size: "100% 100%"
1839
- }, Qt = {
1839
+ }, Gt = {
1840
1840
  webkitMask: it,
1841
1841
  mask: it,
1842
- background: wn
1842
+ background: xn
1843
1843
  };
1844
- for (const e in Qt) {
1845
- const o = Qt[e];
1846
- for (const n in Gt)
1847
- o[e + n] = Gt[n];
1844
+ for (const e in Gt) {
1845
+ const o = Gt[e];
1846
+ for (const n in Vt)
1847
+ o[e + n] = Vt[n];
1848
1848
  }
1849
1849
  const Te = {};
1850
1850
  ["horizontal", "vertical"].forEach((e) => {
1851
1851
  const o = e.slice(0, 1) + "Flip";
1852
1852
  Te[e + "-flip"] = o, Te[e.slice(0, 1) + "-flip"] = o, Te[e + "Flip"] = o;
1853
1853
  });
1854
- function Kt(e) {
1854
+ function Qt(e) {
1855
1855
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1856
1856
  }
1857
- const Xt = (e, o) => {
1858
- const n = Ni(Vt, o), i = { ...Wi }, t = o.mode || "svg", s = {}, l = o.style, r = typeof l == "object" && !(l instanceof Array) ? l : {};
1857
+ const Kt = (e, o) => {
1858
+ const n = Ni(Ut, o), i = { ...Wi }, t = o.mode || "svg", l = {}, s = o.style, r = typeof s == "object" && !(s instanceof Array) ? s : {};
1859
1859
  for (let L in o) {
1860
1860
  const w = o[L];
1861
1861
  if (w !== void 0)
@@ -1874,7 +1874,7 @@ const Xt = (e, o) => {
1874
1874
  typeof w == "string" && Ai(n, w);
1875
1875
  break;
1876
1876
  case "color":
1877
- s.color = w;
1877
+ l.color = w;
1878
1878
  break;
1879
1879
  case "rotate":
1880
1880
  typeof w == "string" ? n[L] = Di(w) : typeof w == "number" && (n[L] = w);
@@ -1885,38 +1885,38 @@ const Xt = (e, o) => {
1885
1885
  break;
1886
1886
  default: {
1887
1887
  const $ = Te[L];
1888
- $ ? (w === !0 || w === "true" || w === 1) && (n[$] = !0) : Vt[L] === void 0 && (i[L] = w);
1888
+ $ ? (w === !0 || w === "true" || w === 1) && (n[$] = !0) : Ut[L] === void 0 && (i[L] = w);
1889
1889
  }
1890
1890
  }
1891
1891
  }
1892
- const u = si(e, n), c = u.attributes;
1893
- if (n.inline && (s.verticalAlign = "-0.125em"), t === "svg") {
1892
+ const u = li(e, n), c = u.attributes;
1893
+ if (n.inline && (l.verticalAlign = "-0.125em"), t === "svg") {
1894
1894
  i.style = {
1895
- ...s,
1895
+ ...l,
1896
1896
  ...r
1897
1897
  }, Object.assign(i, c);
1898
1898
  let L = 0, w = o.id;
1899
1899
  return typeof w == "string" && (w = w.replace(/-/g, "_")), i.innerHTML = ui(u.body, w ? () => w + "ID" + L++ : "iconifyVue"), Xe("svg", i);
1900
1900
  }
1901
- const { body: d, width: p, height: k } = e, z = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), P = Bi(d, {
1901
+ const { body: d, width: p, height: C } = e, z = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), P = Bi(d, {
1902
1902
  ...c,
1903
1903
  width: p + "",
1904
- height: k + ""
1904
+ height: C + ""
1905
1905
  });
1906
1906
  return i.style = {
1907
- ...s,
1907
+ ...l,
1908
1908
  "--svg": ji(P),
1909
- width: Kt(c.width),
1910
- height: Kt(c.height),
1909
+ width: Qt(c.width),
1910
+ height: Qt(c.height),
1911
1911
  ...Ui,
1912
- ...z ? it : wn,
1912
+ ...z ? it : xn,
1913
1913
  ...r
1914
1914
  }, Xe("span", i);
1915
1915
  };
1916
- cn(!0);
1916
+ un(!0);
1917
1917
  ci("", bi);
1918
1918
  if (typeof document < "u" && typeof window < "u") {
1919
- xn();
1919
+ yn();
1920
1920
  const e = window;
1921
1921
  if (e.IconifyPreload !== void 0) {
1922
1922
  const o = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
@@ -1950,7 +1950,7 @@ if (typeof document < "u" && typeof window < "u") {
1950
1950
  const Vi = {
1951
1951
  ...Oe,
1952
1952
  body: ""
1953
- }, le = ue({
1953
+ }, se = ue({
1954
1954
  // Do not inherit other attributes: it is handled by render()
1955
1955
  inheritAttrs: !1,
1956
1956
  // Set initial data
@@ -2003,12 +2003,12 @@ const Vi = {
2003
2003
  this.counter;
2004
2004
  const e = this.$attrs, o = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad) : null;
2005
2005
  if (!o)
2006
- return Xt(Vi, e);
2006
+ return Kt(Vi, e);
2007
2007
  let n = e;
2008
2008
  return o.classes && (n = {
2009
2009
  ...e,
2010
2010
  class: (typeof e.class == "string" ? e.class + " " : "") + o.classes.join(" ")
2011
- }), Xt({
2011
+ }), Kt({
2012
2012
  ...Oe,
2013
2013
  ...o.data
2014
2014
  }, n);
@@ -2024,56 +2024,56 @@ const Vi = {
2024
2024
  },
2025
2025
  setup(e) {
2026
2026
  const o = e, n = Hn(o, "expandedrows"), i = O(!1);
2027
- function t(l) {
2027
+ function t(s) {
2028
2028
  if (console.log(n.value), o.expandall)
2029
2029
  i.value = !i.value, n.value.forEach((r) => {
2030
2030
  r.isExpanded = i.value;
2031
2031
  });
2032
2032
  else {
2033
- const r = n.value.find((u) => u.id == l);
2034
- r ? r.isExpanded = !r.isExpanded : n.value.push({ id: l, isExpanded: !0 });
2033
+ const r = n.value.find((u) => u.id == s);
2034
+ r ? r.isExpanded = !r.isExpanded : n.value.push({ id: s, isExpanded: !0 });
2035
2035
  }
2036
2036
  }
2037
- const s = O(-1);
2037
+ const l = O(-1);
2038
2038
  return V(
2039
2039
  () => n.value,
2040
- (l, r) => {
2040
+ (s, r) => {
2041
2041
  var u;
2042
- new Set(n.value.map((c) => c.isExpanded)).size > 1 ? (s.value = -1, i.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (s.value = 0, i.value = !0) : (s.value = 1, i.value = !1);
2042
+ new Set(n.value.map((c) => c.isExpanded)).size > 1 ? (l.value = -1, i.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (l.value = 0, i.value = !0) : (l.value = 1, i.value = !1);
2043
2043
  },
2044
2044
  { deep: !0 }
2045
- ), (l, r) => {
2045
+ ), (s, r) => {
2046
2046
  var u, c;
2047
- return m(), b("button", {
2047
+ return m(), g("button", {
2048
2048
  class: "expandbtn",
2049
- onClick: r[0] || (r[0] = (d) => t(l.item.id))
2049
+ onClick: r[0] || (r[0] = (d) => t(s.item.id))
2050
2050
  }, [
2051
- (((u = n.value.find((d) => d.id == l.item.id)) == null ? void 0 : u.isExpanded) == null ? i.value : (c = n.value.find((d) => d.id == l.item.id)) != null && c.isExpanded) ? (m(), b(B, { key: 0 }, [
2052
- o.expandall ? (m(), b(B, { key: 0 }, [
2053
- s.value ? (m(), Y(D(le), {
2051
+ (((u = n.value.find((d) => d.id == s.item.id)) == null ? void 0 : u.isExpanded) == null ? i.value : (c = n.value.find((d) => d.id == s.item.id)) != null && c.isExpanded) ? (m(), g(B, { key: 0 }, [
2052
+ o.expandall ? (m(), g(B, { key: 0 }, [
2053
+ l.value ? (m(), Y(D(se), {
2054
2054
  key: 0,
2055
2055
  icon: "fluent:chevron-down-up-16-filled"
2056
- })) : (m(), Y(D(le), {
2056
+ })) : (m(), Y(D(se), {
2057
2057
  key: 1,
2058
2058
  icon: "mdi:chevron-down"
2059
2059
  }))
2060
- ], 64)) : (m(), Y(D(le), {
2060
+ ], 64)) : (m(), Y(D(se), {
2061
2061
  key: 1,
2062
2062
  icon: "mdi:chevron-down"
2063
2063
  }))
2064
- ], 64)) : (m(), b(B, { key: 1 }, [
2065
- o.expandall ? (m(), b(B, { key: 0 }, [
2066
- s.value == -1 ? (m(), Y(D(le), {
2064
+ ], 64)) : (m(), g(B, { key: 1 }, [
2065
+ o.expandall ? (m(), g(B, { key: 0 }, [
2066
+ l.value == -1 ? (m(), Y(D(se), {
2067
2067
  key: 0,
2068
2068
  icon: "ion:chevron-expand"
2069
- })) : s.value == 0 ? (m(), Y(D(le), {
2069
+ })) : l.value == 0 ? (m(), Y(D(se), {
2070
2070
  key: 1,
2071
2071
  icon: "mdi:chevron-down"
2072
- })) : (m(), Y(D(le), {
2072
+ })) : (m(), Y(D(se), {
2073
2073
  key: 2,
2074
2074
  icon: "mdi:chevron-right"
2075
2075
  }))
2076
- ], 64)) : (m(), Y(D(le), {
2076
+ ], 64)) : (m(), Y(D(se), {
2077
2077
  key: 1,
2078
2078
  icon: "mdi:chevron-right"
2079
2079
  }))
@@ -2086,7 +2086,7 @@ const Vi = {
2086
2086
  for (const [i, t] of o)
2087
2087
  n[i] = t;
2088
2088
  return n;
2089
- }, Sn = /* @__PURE__ */ Re(Qi, [["__scopeId", "data-v-fc173ebd"]]), Ki = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1" }, Xi = {
2089
+ }, wn = /* @__PURE__ */ Re(Qi, [["__scopeId", "data-v-fc173ebd"]]), Ki = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1" }, Xi = {
2090
2090
  name: "columnFilter"
2091
2091
  }, Yi = /* @__PURE__ */ ue({
2092
2092
  ...Xi,
@@ -2101,112 +2101,112 @@ const Vi = {
2101
2101
  });
2102
2102
  const i = o, t = () => {
2103
2103
  i("close");
2104
- }, s = (l) => {
2105
- n.column.condition = l, l === "" && (n.column.value = ""), i("filterChange", n.column);
2104
+ }, l = (s) => {
2105
+ n.column.condition = s, s === "" && (n.column.value = ""), i("filterChange", n.column);
2106
2106
  };
2107
- return (l, r) => (m(), b("div", Ki, [
2108
- v("div", {
2107
+ return (s, r) => (m(), g("div", Ki, [
2108
+ y("div", {
2109
2109
  class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",
2110
2110
  onClick: re(t, ["stop"])
2111
2111
  }, [
2112
- v("button", {
2112
+ y("button", {
2113
2113
  type: "button",
2114
- class: C({ active: n.column.condition === "" }),
2115
- onClick: r[0] || (r[0] = (u) => s(""))
2114
+ class: k({ active: n.column.condition === "" }),
2115
+ onClick: r[0] || (r[0] = (u) => l(""))
2116
2116
  }, R((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2117
- n.column.type === "string" ? (m(), b(B, { key: 0 }, [
2118
- v("button", {
2117
+ n.column.type === "string" ? (m(), g(B, { key: 0 }, [
2118
+ y("button", {
2119
2119
  type: "button",
2120
- class: C({ active: n.column.condition === "Contains" }),
2121
- onClick: r[1] || (r[1] = (u) => s("Contains"))
2120
+ class: k({ active: n.column.condition === "Contains" }),
2121
+ onClick: r[1] || (r[1] = (u) => l("Contains"))
2122
2122
  }, R((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2123
- v("button", {
2123
+ y("button", {
2124
2124
  type: "button",
2125
- class: C({ active: n.column.condition === "NotContains" }),
2126
- onClick: r[2] || (r[2] = (u) => s("NotContains"))
2125
+ class: k({ active: n.column.condition === "NotContains" }),
2126
+ onClick: r[2] || (r[2] = (u) => l("NotContains"))
2127
2127
  }, R((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2128
- v("button", {
2128
+ y("button", {
2129
2129
  type: "button",
2130
- class: C({ active: n.column.condition === "Equal" }),
2131
- onClick: r[3] || (r[3] = (u) => s("Equal"))
2130
+ class: k({ active: n.column.condition === "Equal" }),
2131
+ onClick: r[3] || (r[3] = (u) => l("Equal"))
2132
2132
  }, R((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2133
- v("button", {
2133
+ y("button", {
2134
2134
  type: "button",
2135
- class: C({ active: n.column.condition === "NotEqual" }),
2136
- onClick: r[4] || (r[4] = (u) => s("NotEqual"))
2135
+ class: k({ active: n.column.condition === "NotEqual" }),
2136
+ onClick: r[4] || (r[4] = (u) => l("NotEqual"))
2137
2137
  }, R((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2138
- v("button", {
2138
+ y("button", {
2139
2139
  type: "button",
2140
- class: C({ active: n.column.condition === "StartsWith" }),
2141
- onClick: r[5] || (r[5] = (u) => s("StartsWith"))
2140
+ class: k({ active: n.column.condition === "StartsWith" }),
2141
+ onClick: r[5] || (r[5] = (u) => l("StartsWith"))
2142
2142
  }, R((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2143
- v("button", {
2143
+ y("button", {
2144
2144
  type: "button",
2145
- class: C({ active: n.column.condition === "EndsWith" }),
2146
- onClick: r[6] || (r[6] = (u) => s("EndsWith"))
2145
+ class: k({ active: n.column.condition === "EndsWith" }),
2146
+ onClick: r[6] || (r[6] = (u) => l("EndsWith"))
2147
2147
  }, R((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2148
- ], 64)) : n.column.type === "number" ? (m(), b(B, { key: 1 }, [
2149
- v("button", {
2148
+ ], 64)) : n.column.type === "number" ? (m(), g(B, { key: 1 }, [
2149
+ y("button", {
2150
2150
  type: "button",
2151
- class: C({ active: n.column.condition === "Equal" }),
2152
- onClick: r[7] || (r[7] = (u) => s("Equal"))
2151
+ class: k({ active: n.column.condition === "Equal" }),
2152
+ onClick: r[7] || (r[7] = (u) => l("Equal"))
2153
2153
  }, R((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2154
- v("button", {
2154
+ y("button", {
2155
2155
  type: "button",
2156
- class: C({ active: n.column.condition === "NotEqual" }),
2157
- onClick: r[8] || (r[8] = (u) => s("NotEqual"))
2156
+ class: k({ active: n.column.condition === "NotEqual" }),
2157
+ onClick: r[8] || (r[8] = (u) => l("NotEqual"))
2158
2158
  }, R((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2159
- v("button", {
2159
+ y("button", {
2160
2160
  type: "button",
2161
- class: C({ active: n.column.condition === "GreaterThan" }),
2162
- onClick: r[9] || (r[9] = (u) => s("GreaterThan"))
2161
+ class: k({ active: n.column.condition === "GreaterThan" }),
2162
+ onClick: r[9] || (r[9] = (u) => l("GreaterThan"))
2163
2163
  }, R((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2164
- v("button", {
2164
+ y("button", {
2165
2165
  type: "button",
2166
- class: C({ active: n.column.condition === "GreaterThanOrEqual" }),
2167
- onClick: r[10] || (r[10] = (u) => s("GreaterThanOrEqual"))
2166
+ class: k({ active: n.column.condition === "GreaterThanOrEqual" }),
2167
+ onClick: r[10] || (r[10] = (u) => l("GreaterThanOrEqual"))
2168
2168
  }, R((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2169
- v("button", {
2169
+ y("button", {
2170
2170
  type: "button",
2171
- class: C({ active: n.column.condition === "LessThan" }),
2172
- onClick: r[11] || (r[11] = (u) => s("LessThan"))
2171
+ class: k({ active: n.column.condition === "LessThan" }),
2172
+ onClick: r[11] || (r[11] = (u) => l("LessThan"))
2173
2173
  }, R((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3),
2174
- v("button", {
2174
+ y("button", {
2175
2175
  type: "button",
2176
- class: C({ active: n.column.condition === "LessThanOrEqual" }),
2177
- onClick: r[12] || (r[12] = (u) => s("LessThanOrEqual"))
2176
+ class: k({ active: n.column.condition === "LessThanOrEqual" }),
2177
+ onClick: r[12] || (r[12] = (u) => l("LessThanOrEqual"))
2178
2178
  }, R((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2179
- ], 64)) : n.column.type === "date" ? (m(), b(B, { key: 2 }, [
2180
- v("button", {
2179
+ ], 64)) : n.column.type === "date" ? (m(), g(B, { key: 2 }, [
2180
+ y("button", {
2181
2181
  type: "button",
2182
- class: C({ active: n.column.condition === "Equal" }),
2183
- onClick: r[13] || (r[13] = (u) => s("Equal"))
2182
+ class: k({ active: n.column.condition === "Equal" }),
2183
+ onClick: r[13] || (r[13] = (u) => l("Equal"))
2184
2184
  }, R((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2185
- v("button", {
2185
+ y("button", {
2186
2186
  type: "button",
2187
- class: C({ active: n.column.condition === "NotEqual" }),
2188
- onClick: r[14] || (r[14] = (u) => s("NotEqual"))
2187
+ class: k({ active: n.column.condition === "NotEqual" }),
2188
+ onClick: r[14] || (r[14] = (u) => l("NotEqual"))
2189
2189
  }, R((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2190
- v("button", {
2190
+ y("button", {
2191
2191
  type: "button",
2192
- class: C({ active: n.column.condition === "GreaterThan" }),
2193
- onClick: r[15] || (r[15] = (u) => s("GreaterThan"))
2192
+ class: k({ active: n.column.condition === "GreaterThan" }),
2193
+ onClick: r[15] || (r[15] = (u) => l("GreaterThan"))
2194
2194
  }, R((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2195
- v("button", {
2195
+ y("button", {
2196
2196
  type: "button",
2197
- class: C({ active: n.column.condition === "LessThan" }),
2198
- onClick: r[16] || (r[16] = (u) => s("LessThan"))
2197
+ class: k({ active: n.column.condition === "LessThan" }),
2198
+ onClick: r[16] || (r[16] = (u) => l("LessThan"))
2199
2199
  }, R((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3)
2200
2200
  ], 64)) : M("", !0),
2201
- v("button", {
2201
+ y("button", {
2202
2202
  type: "button",
2203
- class: C({ active: n.column.condition === "IsNull" }),
2204
- onClick: r[17] || (r[17] = (u) => s("IsNull"))
2203
+ class: k({ active: n.column.condition === "IsNull" }),
2204
+ onClick: r[17] || (r[17] = (u) => l("IsNull"))
2205
2205
  }, R((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2206
- v("button", {
2206
+ y("button", {
2207
2207
  type: "button",
2208
- class: C({ active: n.column.condition === "IsNotNull" }),
2209
- onClick: r[18] || (r[18] = (u) => s("IsNotNull"))
2208
+ class: k({ active: n.column.condition === "IsNotNull" }),
2209
+ onClick: r[18] || (r[18] = (u) => l("IsNotNull"))
2210
2210
  }, R((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2211
2211
  ])
2212
2212
  ]));
@@ -2215,24 +2215,24 @@ const Vi = {
2215
2215
  version: "1.1",
2216
2216
  viewBox: "0 0 17 12",
2217
2217
  xmlns: "http://www.w3.org/2000/svg"
2218
- }, es = /* @__PURE__ */ v("g", {
2218
+ }, el = /* @__PURE__ */ y("g", {
2219
2219
  fill: "none",
2220
2220
  "fill-rule": "evenodd"
2221
2221
  }, [
2222
- /* @__PURE__ */ v("g", {
2222
+ /* @__PURE__ */ y("g", {
2223
2223
  transform: "translate(-9 -11)",
2224
2224
  fill: "currentColor",
2225
2225
  "fill-rule": "nonzero"
2226
2226
  }, [
2227
- /* @__PURE__ */ v("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2227
+ /* @__PURE__ */ y("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2228
2228
  ])
2229
- ], -1), ts = [
2230
- es
2229
+ ], -1), tl = [
2230
+ el
2231
2231
  ];
2232
- function ns(e, o) {
2233
- return m(), b("svg", Zi, ts);
2232
+ function nl(e, o) {
2233
+ return m(), g("svg", Zi, tl);
2234
2234
  }
2235
- const kn = /* @__PURE__ */ Re(Ji, [["render", ns]]), os = {}, is = {
2235
+ const Sn = /* @__PURE__ */ Re(Ji, [["render", nl]]), ol = {}, il = {
2236
2236
  viewBox: "0 0 24 24",
2237
2237
  width: "24",
2238
2238
  height: "24",
@@ -2242,18 +2242,18 @@ const kn = /* @__PURE__ */ Re(Ji, [["render", ns]]), os = {}, is = {
2242
2242
  "stroke-linecap": "round",
2243
2243
  "stroke-linejoin": "round",
2244
2244
  class: "css-i6dzq1"
2245
- }, ss = /* @__PURE__ */ v("line", {
2245
+ }, ll = /* @__PURE__ */ y("line", {
2246
2246
  x1: "5",
2247
2247
  y1: "12",
2248
2248
  x2: "19",
2249
2249
  y2: "12"
2250
- }, null, -1), ls = [
2251
- ss
2250
+ }, null, -1), sl = [
2251
+ ll
2252
2252
  ];
2253
- function rs(e, o) {
2254
- return m(), b("svg", is, ls);
2253
+ function rl(e, o) {
2254
+ return m(), g("svg", il, sl);
2255
2255
  }
2256
- const as = /* @__PURE__ */ Re(os, [["render", rs]]), us = {}, cs = {
2256
+ const al = /* @__PURE__ */ Re(ol, [["render", rl]]), ul = {}, cl = {
2257
2257
  viewBox: "0 0 24 24",
2258
2258
  width: "24",
2259
2259
  height: "24",
@@ -2263,31 +2263,31 @@ const as = /* @__PURE__ */ Re(os, [["render", rs]]), us = {}, cs = {
2263
2263
  "stroke-linecap": "round",
2264
2264
  "stroke-linejoin": "round",
2265
2265
  class: "css-i6dzq1"
2266
- }, ds = /* @__PURE__ */ v("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), fs = [
2267
- ds
2266
+ }, dl = /* @__PURE__ */ y("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), fl = [
2267
+ dl
2268
2268
  ];
2269
- function hs(e, o) {
2270
- return m(), b("svg", cs, fs);
2269
+ function hl(e, o) {
2270
+ return m(), g("svg", cl, fl);
2271
2271
  }
2272
- const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs = { class: "bh-checkbox" }, gs = {
2272
+ const pl = /* @__PURE__ */ Re(ul, [["render", hl]]), ml = { key: "hdrrow" }, vl = { class: "bh-checkbox" }, gl = {
2273
2273
  key: 1,
2274
2274
  class: "bh-w-px"
2275
- }, bs = ["onClick"], ys = {
2275
+ }, bl = ["onClick"], yl = {
2276
2276
  width: "16",
2277
2277
  height: "16",
2278
2278
  viewBox: "0 0 14 14",
2279
2279
  fill: "none"
2280
- }, xs = {
2280
+ }, xl = {
2281
2281
  key: 0,
2282
2282
  class: "bh-filter bh-relative"
2283
- }, ws = ["onUpdate:modelValue"], Ss = ["onUpdate:modelValue"], ks = ["onUpdate:modelValue"], Cs = ["onUpdate:modelValue"], zs = /* @__PURE__ */ v("option", { value: void 0 }, "All", -1), Ps = /* @__PURE__ */ v("option", { value: !0 }, "True", -1), Es = /* @__PURE__ */ v("option", { value: !1 }, "False", -1), Ls = [
2284
- zs,
2285
- Ps,
2286
- Es
2287
- ], Ts = ["onClick"], Ms = {
2283
+ }, wl = ["onUpdate:modelValue"], Sl = ["onUpdate:modelValue"], Cl = ["onUpdate:modelValue"], kl = ["onUpdate:modelValue"], zl = /* @__PURE__ */ y("option", { value: void 0 }, "All", -1), Pl = /* @__PURE__ */ y("option", { value: !0 }, "True", -1), El = /* @__PURE__ */ y("option", { value: !1 }, "False", -1), Ll = [
2284
+ zl,
2285
+ Pl,
2286
+ El
2287
+ ], Tl = ["onClick"], Ml = {
2288
2288
  name: "columnHeader"
2289
- }, Yt = /* @__PURE__ */ ue({
2290
- ...Ms,
2289
+ }, Xt = /* @__PURE__ */ ue({
2290
+ ...Ml,
2291
2291
  props: [
2292
2292
  "all",
2293
2293
  "expandedrows",
@@ -2308,17 +2308,17 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2308
2308
  const n = O(null), i = e, t = o;
2309
2309
  return V(() => i.checkAll, () => {
2310
2310
  n.value && (n.value.indeterminate = i.checkAll !== 0 ? !i.checkAll : !1, n.value.checked = i.checkAll);
2311
- }), (l, r) => (m(), b("tr", ms, [
2312
- i.all.hasCheckbox ? (m(), b("th", {
2311
+ }), (s, r) => (m(), g("tr", ml, [
2312
+ i.all.hasCheckbox ? (m(), g("th", {
2313
2313
  key: "chkall",
2314
- class: C(["bh-w-px", {
2314
+ class: k(["bh-w-px", {
2315
2315
  "bh-sticky bh-bg-blue-light bh-z-[1]": i.all.stickyHeader || i.all.stickyFirstColumn,
2316
2316
  "bh-top-0": i.all.stickyHeader,
2317
2317
  "bh-left-0": i.all.stickyFirstColumn
2318
2318
  }])
2319
2319
  }, [
2320
- v("div", vs, [
2321
- v("input", {
2320
+ y("div", vl, [
2321
+ y("input", {
2322
2322
  ref_key: "selectedAll",
2323
2323
  ref: n,
2324
2324
  type: "checkbox",
@@ -2327,23 +2327,23 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2327
2327
  return t("selectAll", (c = u == null ? void 0 : u.target) == null ? void 0 : c.checked);
2328
2328
  }, ["stop"]))
2329
2329
  }, null, 512),
2330
- v("div", null, [
2331
- G(kn, { class: "check" }),
2332
- G(as, { class: "intermediate" })
2330
+ y("div", null, [
2331
+ G(Sn, { class: "check" }),
2332
+ G(al, { class: "intermediate" })
2333
2333
  ])
2334
2334
  ])
2335
2335
  ], 2)) : M("", !0),
2336
- i.all.hasSubtable ? (m(), b("th", gs, [
2337
- i.all.expandall ? (m(), Y(Sn, {
2336
+ i.all.hasSubtable ? (m(), g("th", gl, [
2337
+ i.all.expandall ? (m(), Y(wn, {
2338
2338
  key: 0,
2339
2339
  expandedrows: i.expandedrows,
2340
2340
  expandall: i.all.expandall
2341
2341
  }, null, 8, ["expandedrows", "expandall"])) : M("", !0)
2342
2342
  ])) : M("", !0),
2343
- (m(!0), b(B, null, te(i.all.columns, (u, c) => (m(), b(B, null, [
2344
- u.hide ? M("", !0) : (m(), b("th", {
2343
+ (m(!0), g(B, null, te(i.all.columns, (u, c) => (m(), g(B, null, [
2344
+ u.hide ? M("", !0) : (m(), g("th", {
2345
2345
  key: u.field,
2346
- class: C(["bh-select-none bh-z-[1]", [
2346
+ class: k(["bh-select-none bh-z-[1]", [
2347
2347
  i.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2348
2348
  c === 0 && i.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2349
2349
  i.all.hasCheckbox && c === 0 && i.all.stickyFirstColumn ? "bh-left-[52px]" : ""
@@ -2354,42 +2354,42 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2354
2354
  "max-width": u.maxWidth
2355
2355
  })
2356
2356
  }, [
2357
- v("div", {
2358
- class: C(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2357
+ y("div", {
2358
+ class: k(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2359
2359
  onClick: (d) => i.all.sortable && u.sort && t("sortChange", u.field)
2360
2360
  }, [
2361
2361
  Ye(R(u.title) + " ", 1),
2362
- i.all.sortable && u.sort ? (m(), b("span", {
2362
+ i.all.sortable && u.sort ? (m(), g("span", {
2363
2363
  key: 0,
2364
- class: C(["bh-ml-3 bh-sort bh-flex bh-items-center", [i.currentSortColumn, i.currentSortDirection]])
2364
+ class: k(["bh-ml-3 bh-sort bh-flex bh-items-center", [i.currentSortColumn, i.currentSortDirection]])
2365
2365
  }, [
2366
- (m(), b("svg", ys, [
2367
- v("polygon", {
2366
+ (m(), g("svg", yl, [
2367
+ y("polygon", {
2368
2368
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2369
2369
  fill: "currentColor",
2370
- class: C(["bh-text-black/20", [
2370
+ class: k(["bh-text-black/20", [
2371
2371
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2372
2372
  ]])
2373
2373
  }, null, 2),
2374
- v("polygon", {
2374
+ y("polygon", {
2375
2375
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2376
2376
  fill: "currentColor",
2377
- class: C(["bh-text-black/20", [
2377
+ class: k(["bh-text-black/20", [
2378
2378
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2379
2379
  ]])
2380
2380
  }, null, 2)
2381
2381
  ]))
2382
2382
  ], 2)) : M("", !0)
2383
- ], 10, bs),
2384
- i.all.columnFilter && !i.isFooter ? (m(), b(B, { key: 0 }, [
2385
- u.filter ? (m(), b("div", xs, [
2386
- u.type === "string" ? ne((m(), b("input", {
2383
+ ], 10, bl),
2384
+ i.all.columnFilter && !i.isFooter ? (m(), g(B, { key: 0 }, [
2385
+ u.filter ? (m(), g("div", xl, [
2386
+ u.type === "string" ? ne((m(), g("input", {
2387
2387
  key: 0,
2388
2388
  "onUpdate:modelValue": (d) => u.value = d,
2389
2389
  type: "text",
2390
2390
  class: "bh-form-control",
2391
2391
  onKeyup: r[1] || (r[1] = (d) => t("filterChange"))
2392
- }, null, 40, ws)), [
2392
+ }, null, 40, wl)), [
2393
2393
  [
2394
2394
  je,
2395
2395
  u.value,
@@ -2397,13 +2397,13 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2397
2397
  { trim: !0 }
2398
2398
  ]
2399
2399
  ]) : M("", !0),
2400
- u.type === "number" ? ne((m(), b("input", {
2400
+ u.type === "number" ? ne((m(), g("input", {
2401
2401
  key: 1,
2402
2402
  "onUpdate:modelValue": (d) => u.value = d,
2403
2403
  type: "number",
2404
2404
  class: "bh-form-control",
2405
2405
  onKeyup: r[2] || (r[2] = (d) => t("filterChange"))
2406
- }, null, 40, Ss)), [
2406
+ }, null, 40, Sl)), [
2407
2407
  [
2408
2408
  je,
2409
2409
  u.value,
@@ -2413,31 +2413,31 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2413
2413
  trim: !0
2414
2414
  }
2415
2415
  ]
2416
- ]) : u.type === "date" ? ne((m(), b("input", {
2416
+ ]) : u.type === "date" ? ne((m(), g("input", {
2417
2417
  key: 2,
2418
2418
  "onUpdate:modelValue": (d) => u.value = d,
2419
2419
  type: "date",
2420
2420
  class: "bh-form-control",
2421
2421
  onChange: r[3] || (r[3] = (d) => t("filterChange"))
2422
- }, null, 40, ks)), [
2422
+ }, null, 40, Cl)), [
2423
2423
  [je, u.value]
2424
- ]) : u.type === "bool" ? ne((m(), b("select", {
2424
+ ]) : u.type === "bool" ? ne((m(), g("select", {
2425
2425
  key: 3,
2426
2426
  "onUpdate:modelValue": (d) => u.value = d,
2427
2427
  class: "bh-form-control",
2428
2428
  onChange: r[4] || (r[4] = (d) => t("filterChange")),
2429
2429
  onClick: r[5] || (r[5] = //@ts-ignore
2430
2430
  (...d) => i.isOpenFilter && i.isOpenFilter(...d))
2431
- }, Ls, 40, Cs)), [
2432
- [Zt, u.value]
2431
+ }, Ll, 40, kl)), [
2432
+ [Jt, u.value]
2433
2433
  ]) : M("", !0),
2434
- u.type !== "bool" ? (m(), b("button", {
2434
+ u.type !== "bool" ? (m(), g("button", {
2435
2435
  key: 4,
2436
2436
  type: "button",
2437
2437
  onClick: re((d) => t("toggleFilterMenu", u), ["stop"])
2438
2438
  }, [
2439
- G(ps, { class: "bh-w-4" })
2440
- ], 8, Ts)) : M("", !0),
2439
+ G(pl, { class: "bh-w-4" })
2440
+ ], 8, Tl)) : M("", !0),
2441
2441
  ne(G(Yi, {
2442
2442
  column: u,
2443
2443
  type: u.type,
@@ -2453,137 +2453,67 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2453
2453
  ], 64))), 256))
2454
2454
  ]));
2455
2455
  }
2456
- }), _s = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Is = /* @__PURE__ */ v("span", null, "##Left Menu Slot##", -1), Fs = /* @__PURE__ */ v("span", null, "##Top Menu Slot##", -1), $s = /* @__PURE__ */ v("span", null, "##Table Action Header Slot##", -1), Os = ["onClick"], Ns = { class: "bh-checkbox" }, Rs = ["value"], As = ["innerHTML"], Ds = ["onClick"], Bs = ["colspan"], qs = ["colspan"], Hs = /* @__PURE__ */ v("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), js = [
2457
- Hs
2458
- ], Ws = ["colspan"], Us = {
2456
+ }), Il = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Fl = /* @__PURE__ */ y("span", null, "##Left Menu Slot##", -1), _l = /* @__PURE__ */ y("span", null, "##Top Menu Slot##", -1), $l = /* @__PURE__ */ y("span", null, "##Table Action Header Slot##", -1), Ol = ["onClick"], Nl = { class: "bh-checkbox" }, Rl = ["value"], Al = ["innerHTML"], Dl = ["onClick"], Bl = ["colspan"], ql = ["colspan"], Hl = /* @__PURE__ */ y("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), jl = [
2457
+ Hl
2458
+ ], Wl = ["colspan"], Ul = {
2459
2459
  key: 0,
2460
2460
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading"
2461
- }, Vs = /* @__PURE__ */ v("g", {
2462
- fill: "none",
2463
- stroke: "currentColor",
2464
- "stroke-linecap": "round",
2465
- "stroke-linejoin": "round",
2466
- "stroke-width": "2"
2467
- }, [
2468
- /* @__PURE__ */ v("path", {
2469
- "stroke-dasharray": "62",
2470
- "stroke-dashoffset": "62",
2471
- d: "M22 4V3C22 2.45 21.55 2 21 2H7C6.45 2 6 2.45 6 3V17C6 17.55 6.45 18 7 18H21C21.55 18 22 17.55 22 17z"
2472
- }, [
2473
- /* @__PURE__ */ v("animate", {
2474
- fill: "freeze",
2475
- attributeName: "stroke-dashoffset",
2476
- dur: "0.6s",
2477
- values: "62;124"
2478
- })
2479
- ]),
2480
- /* @__PURE__ */ v("g", {
2481
- "stroke-dasharray": "10",
2482
- "stroke-dashoffset": "10"
2483
- }, [
2484
- /* @__PURE__ */ v("path", { d: "M10 6h8" }, [
2485
- /* @__PURE__ */ v("animate", {
2486
- fill: "freeze",
2487
- attributeName: "stroke-dashoffset",
2488
- begin: "0.7s",
2489
- dur: "0.2s",
2490
- values: "10;0"
2491
- })
2492
- ]),
2493
- /* @__PURE__ */ v("path", { d: "M10 10h8" }, [
2494
- /* @__PURE__ */ v("animate", {
2495
- fill: "freeze",
2496
- attributeName: "stroke-dashoffset",
2497
- begin: "0.9s",
2498
- dur: "0.2s",
2499
- values: "10;0"
2500
- })
2501
- ])
2502
- ]),
2503
- /* @__PURE__ */ v("path", {
2504
- "stroke-dasharray": "7",
2505
- "stroke-dashoffset": "7",
2506
- d: "M10 14h5"
2507
- }, [
2508
- /* @__PURE__ */ v("animate", {
2509
- fill: "freeze",
2510
- attributeName: "stroke-dashoffset",
2511
- begin: "1.1s",
2512
- dur: "0.2s",
2513
- values: "7;0"
2514
- })
2515
- ]),
2516
- /* @__PURE__ */ v("path", {
2517
- "stroke-dasharray": "34",
2518
- "stroke-dashoffset": "34",
2519
- d: "M2 6V21C2 21.55 2.45 22 3 22H18"
2520
- }, [
2521
- /* @__PURE__ */ v("animate", {
2522
- fill: "freeze",
2523
- attributeName: "stroke-dashoffset",
2524
- begin: "1.4s",
2525
- dur: "0.4s",
2526
- values: "34;68"
2527
- })
2528
- ])
2529
- ], -1), Gs = [
2530
- Vs
2531
- ], Qs = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Ks = { class: "bh-pagination-info bh-flex bh-items-center" }, Xs = { class: "bh-mr-2" }, Ys = ["value"], Js = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Zs = ["innerHTML"], el = {
2461
+ }, Vl = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Gl = { class: "bh-pagination-info bh-flex bh-items-center" }, Ql = { class: "bh-mr-2" }, Kl = ["value"], Xl = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Yl = ["innerHTML"], Jl = {
2532
2462
  key: 1,
2533
2463
  "aria-hidden": "true",
2534
2464
  width: "14",
2535
2465
  height: "14",
2536
2466
  viewBox: "0 0 16 16"
2537
- }, tl = /* @__PURE__ */ v("g", {
2467
+ }, Zl = /* @__PURE__ */ y("g", {
2538
2468
  fill: "currentColor",
2539
2469
  "fill-rule": "evenodd"
2540
2470
  }, [
2541
- /* @__PURE__ */ v("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
2542
- /* @__PURE__ */ v("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
2543
- ], -1), nl = [
2544
- tl
2545
- ], ol = ["innerHTML"], il = {
2471
+ /* @__PURE__ */ y("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
2472
+ /* @__PURE__ */ y("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
2473
+ ], -1), es = [
2474
+ Zl
2475
+ ], ts = ["innerHTML"], ns = {
2546
2476
  key: 1,
2547
2477
  "aria-hidden": "true",
2548
2478
  width: "14",
2549
2479
  height: "14",
2550
2480
  viewBox: "0 0 16 16"
2551
- }, sl = /* @__PURE__ */ v("path", {
2481
+ }, os = /* @__PURE__ */ y("path", {
2552
2482
  fill: "currentColor",
2553
2483
  "fill-rule": "evenodd",
2554
2484
  d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"
2555
- }, null, -1), ll = [
2556
- sl
2557
- ], rl = ["onClick"], al = ["innerHTML"], ul = {
2485
+ }, null, -1), is = [
2486
+ os
2487
+ ], ls = ["onClick"], ss = ["innerHTML"], rs = {
2558
2488
  key: 1,
2559
2489
  "aria-hidden": "true",
2560
2490
  width: "14",
2561
2491
  height: "14",
2562
2492
  viewBox: "0 0 16 16"
2563
- }, cl = /* @__PURE__ */ v("path", {
2493
+ }, as = /* @__PURE__ */ y("path", {
2564
2494
  fill: "currentColor",
2565
2495
  "fill-rule": "evenodd",
2566
2496
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"
2567
- }, null, -1), dl = [
2568
- cl
2569
- ], fl = ["innerHTML"], hl = {
2497
+ }, null, -1), us = [
2498
+ as
2499
+ ], cs = ["innerHTML"], ds = {
2570
2500
  key: 1,
2571
2501
  "aria-hidden": "true",
2572
2502
  width: "14",
2573
2503
  height: "14",
2574
2504
  viewBox: "0 0 16 16"
2575
- }, pl = /* @__PURE__ */ v("g", {
2505
+ }, fs = /* @__PURE__ */ y("g", {
2576
2506
  fill: "currentColor",
2577
2507
  "fill-rule": "evenodd"
2578
2508
  }, [
2579
- /* @__PURE__ */ v("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
2580
- /* @__PURE__ */ v("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
2581
- ], -1), ml = [
2582
- pl
2583
- ], vl = {
2509
+ /* @__PURE__ */ y("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
2510
+ /* @__PURE__ */ y("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
2511
+ ], -1), hs = [
2512
+ fs
2513
+ ], ps = {
2584
2514
  name: "Vue3Datatable"
2585
- }, wl = /* @__PURE__ */ ue({
2586
- ...vl,
2515
+ }, ys = /* @__PURE__ */ ue({
2516
+ ...ps,
2587
2517
  props: {
2588
2518
  loading: { type: Boolean, default: !1 },
2589
2519
  isServerMode: { type: Boolean, default: !1 },
@@ -2657,33 +2587,33 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2657
2587
  "rowDBClick"
2658
2588
  ],
2659
2589
  setup(e, { expose: o, emit: n }) {
2660
- var Pt, Et;
2590
+ var zt, Pt;
2661
2591
  const i = Wn(), t = e;
2662
2592
  for (const a of t.columns || []) {
2663
- const h = ((Pt = a.type) == null ? void 0 : Pt.toLowerCase()) || "string";
2593
+ const h = ((zt = a.type) == null ? void 0 : zt.toLowerCase()) || "string";
2664
2594
  a.type = h, a.isUnique = a.isUnique !== void 0 ? a.isUnique : !1, a.hide = a.hide !== void 0 ? a.hide : !1, a.filter = a.filter !== void 0 ? a.filter : !0, a.search = a.search !== void 0 ? a.search : !0, a.sort = a.sort !== void 0 ? a.sort : !0, a.html = a.html !== void 0 ? a.html : !1, a.condition = !h || h === "string" ? "Contains" : "Equal";
2665
2595
  }
2666
- const s = O([]), l = O(t.page), r = O(
2667
- t.pagination ? t.pageSize : (Et = t.rows) == null ? void 0 : Et.length
2668
- ), u = t.pageSize, c = O(t.sortColumn), d = t.sortColumn, p = O(t.sortDirection), k = t.sortDirection, z = O(t.totalRows), P = O([]), L = O(null), w = O(t.loading), $ = O(t.search), W = JSON.parse(JSON.stringify(t.columns)), N = O(null), E = O(null);
2596
+ const l = O([]), s = O(t.page), r = O(
2597
+ t.pagination ? t.pageSize : (Pt = t.rows) == null ? void 0 : Pt.length
2598
+ ), u = t.pageSize, c = O(t.sortColumn), d = t.sortColumn, p = O(t.sortDirection), C = t.sortDirection, z = O(t.totalRows), P = O([]), L = O(null), w = O(t.loading), $ = O(t.search), W = JSON.parse(JSON.stringify(t.columns)), N = O(null), E = O(null);
2669
2599
  let q = O(0);
2670
2600
  const x = O(230);
2671
2601
  we(() => {
2672
2602
  ie();
2673
2603
  });
2674
- const y = n;
2604
+ const b = n;
2675
2605
  o({
2676
2606
  reset() {
2677
- En();
2607
+ Pn();
2678
2608
  },
2679
2609
  getSelectedRows() {
2680
- return Ln();
2610
+ return En();
2681
2611
  },
2682
2612
  getColumnFilters() {
2683
- return Tn();
2613
+ return Ln();
2684
2614
  },
2685
2615
  clearSelectedRows() {
2686
- return Mn();
2616
+ return Tn();
2687
2617
  },
2688
2618
  selectRow(a) {
2689
2619
  wt(a);
@@ -2692,25 +2622,25 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2692
2622
  St(a);
2693
2623
  },
2694
2624
  isRowSelected(a) {
2695
- return ke(a);
2625
+ return Ce(a);
2696
2626
  },
2697
2627
  getFilteredRows() {
2698
2628
  return ft();
2699
2629
  }
2700
2630
  });
2701
- const I = (a, ...h) => a.replace(/{(\d+)}/g, (g, F) => typeof h[F] < "u" ? h[F] : g), T = Q(() => {
2631
+ const F = (a, ...h) => a.replace(/{(\d+)}/g, (v, _) => typeof h[_] < "u" ? h[_] : v), T = Q(() => {
2702
2632
  const a = t.columns.find((h) => h.isUnique);
2703
2633
  return (a == null ? void 0 : a.field) || null;
2704
2634
  }), H = Q(() => {
2705
2635
  const a = r.value < 1 ? 1 : Math.ceil(z.value / r.value);
2706
2636
  return Math.max(a || 0, 1);
2707
- }), Ae = Q(() => (l.value - 1) * r.value + 1), De = Q(() => {
2708
- const a = l.value * r.value;
2637
+ }), Ae = Q(() => (s.value - 1) * r.value + 1), De = Q(() => {
2638
+ const a = s.value * r.value;
2709
2639
  return z.value >= a ? a : z.value;
2710
2640
  }), dt = Q(() => {
2711
2641
  let a, h;
2712
2642
  return typeof t.showNumbersCount < "u" && t.showNumbersCount < H.value ? (a = Math.max(
2713
- l.value - Math.floor(t.showNumbersCount / 2),
2643
+ s.value - Math.floor(t.showNumbersCount / 2),
2714
2644
  1
2715
2645
  ), h = a + t.showNumbersCount - 1, h > H.value && (h = H.value, a = h - t.showNumbersCount + 1)) : (a = 1, h = H.value), Array.from(Array(h + 1 - a).keys()).map(
2716
2646
  (U) => a + U
@@ -2722,54 +2652,54 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2722
2652
  if ((U = t.columns) == null || U.forEach((f) => {
2723
2653
  f.filter && (f.value !== void 0 && f.value !== null && f.value !== "" || f.condition === "IsNull" || f.condition == "IsNotNull") && (f.type === "string" ? (f.value && !f.condition && (f.condition = "Contains"), f.condition === "Contains" ? a = a.filter((S) => {
2724
2654
  var A;
2725
- return (A = _(S, f.field)) == null ? void 0 : A.toString().toLowerCase().includes(f.value.toLowerCase());
2655
+ return (A = I(S, f.field)) == null ? void 0 : A.toString().toLowerCase().includes(f.value.toLowerCase());
2726
2656
  }) : f.condition === "NotContains" ? a = a.filter((S) => {
2727
2657
  var A;
2728
- return !((A = _(S, f.field)) != null && A.toString().toLowerCase().includes(f.value.toLowerCase()));
2658
+ return !((A = I(S, f.field)) != null && A.toString().toLowerCase().includes(f.value.toLowerCase()));
2729
2659
  }) : f.condition === "Equal" ? a = a.filter((S) => {
2730
2660
  var A;
2731
- return ((A = _(S, f.field)) == null ? void 0 : A.toString().toLowerCase()) === f.value.toLowerCase();
2661
+ return ((A = I(S, f.field)) == null ? void 0 : A.toString().toLowerCase()) === f.value.toLowerCase();
2732
2662
  }) : f.condition === "NotEqual" ? a = a.filter((S) => {
2733
2663
  var A;
2734
- return ((A = _(S, f.field)) == null ? void 0 : A.toString().toLowerCase()) !== f.value.toLowerCase();
2664
+ return ((A = I(S, f.field)) == null ? void 0 : A.toString().toLowerCase()) !== f.value.toLowerCase();
2735
2665
  }) : f.condition == "StartsWith" ? a = a.filter((S) => {
2736
2666
  var A;
2737
- return ((A = _(S, f.field)) == null ? void 0 : A.toString().toLowerCase().indexOf(f.value.toLowerCase())) === 0;
2667
+ return ((A = I(S, f.field)) == null ? void 0 : A.toString().toLowerCase().indexOf(f.value.toLowerCase())) === 0;
2738
2668
  }) : f.condition == "EndsWith" && (a = a.filter((S) => {
2739
2669
  var A;
2740
- return ((A = _(S, f.field)) == null ? void 0 : A.toString().toLowerCase().substr(f.value.length * -1)) === f.value.toLowerCase();
2741
- }))) : f.type === "number" ? (f.value && !f.condition && (f.condition = "Equal"), f.condition === "Equal" ? a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) === parseFloat(f.value)) : f.condition === "NotEqual" ? a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) !== parseFloat(f.value)) : f.condition === "GreaterThan" ? a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) > parseFloat(f.value)) : f.condition === "GreaterThanOrEqual" ? a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) >= parseFloat(f.value)) : f.condition === "LessThan" ? a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) < parseFloat(f.value)) : f.condition === "LessThanOrEqual" && (a = a.filter((S) => _(S, f.field) && parseFloat(_(S, f.field)) <= parseFloat(f.value)))) : f.type === "date" ? (f.value && !f.condition && (f.condition = "Equal"), f.condition === "Equal" ? a = a.filter((S) => _(S, f.field) && Se(_(S, f.field)) === f.value) : f.condition === "NotEqual" ? a = a.filter((S) => _(S, f.field) && Se(_(S, f.field)) !== f.value) : f.condition === "GreaterThan" ? a = a.filter((S) => _(S, f.field) && Se(_(S, f.field)) > f.value) : f.condition === "LessThan" && (a = a.filter((S) => _(S, f.field) && Se(_(S, f.field)) < f.value))) : f.type === "bool" && (a = a.filter((S) => _(S, f.field) === f.value)), f.condition === "IsNull" ? (a = a.filter((S) => _(S, f.field) == null || _(S, f.field) == ""), f.value = "") : f.condition === "IsNotNull" && (f.value = "", a = a.filter((S) => _(S, f.field))));
2670
+ return ((A = I(S, f.field)) == null ? void 0 : A.toString().toLowerCase().substr(f.value.length * -1)) === f.value.toLowerCase();
2671
+ }))) : f.type === "number" ? (f.value && !f.condition && (f.condition = "Equal"), f.condition === "Equal" ? a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) === parseFloat(f.value)) : f.condition === "NotEqual" ? a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) !== parseFloat(f.value)) : f.condition === "GreaterThan" ? a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) > parseFloat(f.value)) : f.condition === "GreaterThanOrEqual" ? a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) >= parseFloat(f.value)) : f.condition === "LessThan" ? a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) < parseFloat(f.value)) : f.condition === "LessThanOrEqual" && (a = a.filter((S) => I(S, f.field) && parseFloat(I(S, f.field)) <= parseFloat(f.value)))) : f.type === "date" ? (f.value && !f.condition && (f.condition = "Equal"), f.condition === "Equal" ? a = a.filter((S) => I(S, f.field) && Se(I(S, f.field)) === f.value) : f.condition === "NotEqual" ? a = a.filter((S) => I(S, f.field) && Se(I(S, f.field)) !== f.value) : f.condition === "GreaterThan" ? a = a.filter((S) => I(S, f.field) && Se(I(S, f.field)) > f.value) : f.condition === "LessThan" && (a = a.filter((S) => I(S, f.field) && Se(I(S, f.field)) < f.value))) : f.type === "bool" && (a = a.filter((S) => I(S, f.field) === f.value)), f.condition === "IsNull" ? (a = a.filter((S) => I(S, f.field) == null || I(S, f.field) == ""), f.value = "") : f.condition === "IsNotNull" && (f.value = "", a = a.filter((S) => I(S, f.field))));
2742
2672
  }), $.value && (a != null && a.length)) {
2743
2673
  let f = [];
2744
2674
  const S = (t.columns || []).filter((A) => A.search && !A.hide).map((A) => A.field);
2745
2675
  for (var h = 0; h < (a == null ? void 0 : a.length); h++)
2746
- for (var g = 0; g < S.length; g++)
2747
- if ((j = _(a[h], S[g])) != null && j.toString().toLowerCase().includes($.value.toLowerCase())) {
2676
+ for (var v = 0; v < S.length; v++)
2677
+ if ((j = I(a[h], S[v])) != null && j.toString().toLowerCase().includes($.value.toLowerCase())) {
2748
2678
  f.push(a[h]);
2749
2679
  break;
2750
2680
  }
2751
2681
  a = f;
2752
2682
  }
2753
- var F = new Intl.Collator(void 0, {
2683
+ var _ = new Intl.Collator(void 0, {
2754
2684
  numeric: ((Z = t.columns.find((f) => f.field == c.value)) == null ? void 0 : Z.type) === "number",
2755
2685
  sensitivity: "base"
2756
2686
  });
2757
- const Fn = p.value === "desc" ? -1 : 1;
2687
+ const _n = p.value === "desc" ? -1 : 1;
2758
2688
  a.sort((f, S) => {
2759
- var Lt, Tt;
2760
- const A = (Lt = c.value) == null ? void 0 : Lt.split(".").reduce((se, He) => se == null ? void 0 : se[He], f), $n = (Tt = c.value) == null ? void 0 : Tt.split(".").reduce((se, He) => se == null ? void 0 : se[He], S);
2761
- return F.compare(A, $n) * Fn;
2689
+ var Et, Lt;
2690
+ const A = (Et = c.value) == null ? void 0 : Et.split(".").reduce((le, He) => le == null ? void 0 : le[He], f), $n = (Lt = c.value) == null ? void 0 : Lt.split(".").reduce((le, He) => le == null ? void 0 : le[He], S);
2691
+ return _.compare(A, $n) * _n;
2762
2692
  });
2763
2693
  }
2764
2694
  return a;
2765
2695
  }, he = O([]), ie = () => {
2766
2696
  let a = [], h = ft();
2767
- t.isServerMode ? (z.value = t.totalRows || 0, a = h) : (z.value = (h == null ? void 0 : h.length) || 0, a = h.slice(Ae.value - 1, De.value)), t.hasSubtable && a.forEach(function(g) {
2768
- g.isExpanded != null && (he.value.find((U) => U.id == g.id) || he.value.push({
2769
- id: g.id,
2770
- isExpanded: g.isExpanded
2697
+ t.isServerMode ? (z.value = t.totalRows || 0, a = h) : (z.value = (h == null ? void 0 : h.length) || 0, a = h.slice(Ae.value - 1, De.value)), t.hasSubtable && a.forEach(function(v) {
2698
+ v.isExpanded != null && (he.value.find((U) => U.id == v.id) || he.value.push({
2699
+ id: v.id,
2700
+ isExpanded: v.isExpanded
2771
2701
  }));
2772
- }), s.value = a || [];
2702
+ }), l.value = a || [];
2773
2703
  };
2774
2704
  V(
2775
2705
  () => t.loading,
@@ -2780,141 +2710,141 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2780
2710
  const ht = (a) => {
2781
2711
  a ? N.value === a.field ? N.value = null : N.value = a.field : N.value = null;
2782
2712
  }, pt = () => {
2783
- if (l.value == 1)
2713
+ if (s.value == 1)
2784
2714
  return !1;
2785
- l.value--;
2715
+ s.value--;
2786
2716
  }, mt = (a) => {
2787
- l.value = a;
2717
+ s.value = a;
2788
2718
  }, vt = () => {
2789
- if (l.value >= H.value)
2719
+ if (s.value >= H.value)
2790
2720
  return !1;
2791
- l.value++;
2721
+ s.value++;
2792
2722
  };
2793
- V(() => l.value, () => {
2794
- J(!1), t.isServerMode ? ce("page") : (ie(), y("pageChange", l.value));
2723
+ V(() => s.value, () => {
2724
+ J(!1), t.isServerMode ? ce("page") : (ie(), b("pageChange", s.value));
2795
2725
  }), V(() => t.rows, () => {
2796
- t.isServerMode || (l.value = 1), J(!1), ie();
2726
+ t.isServerMode || (s.value = 1), J(!1), ie();
2797
2727
  });
2798
2728
  const Cn = (a) => {
2799
2729
  r.value = a;
2800
2730
  };
2801
2731
  V(() => r.value, () => {
2802
- J(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, ie(), y("pageSizeChange", r.value));
2732
+ J(!1), t.isServerMode ? s.value === 1 ? ce("pagesize", !0) : s.value = 1 : (s.value = 1, ie(), b("pageSizeChange", r.value));
2803
2733
  });
2804
2734
  const gt = (a) => {
2805
2735
  let h = "asc";
2806
2736
  a == c.value && p.value === "asc" && (h = "desc");
2807
- let g = (l.value - 1) * r.value, F = r.value;
2808
- c.value = a, p.value = h, J(!1), ie(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: F, field: a, direction: h });
2737
+ let v = (s.value - 1) * r.value, _ = r.value;
2738
+ c.value = a, p.value = h, J(!1), ie(), t.isServerMode ? ce("sort") : b("sortChange", { offset: v, limit: _, field: a, direction: h });
2809
2739
  }, bt = (a) => {
2810
- L.value = a.length && s.value.length && a.length === s.value.length;
2811
- const h = s.value.filter(
2812
- (g, F) => P.value.includes(T.value ? g[T.value] : F)
2740
+ L.value = a.length && l.value.length && a.length === l.value.length;
2741
+ const h = l.value.filter(
2742
+ (v, _) => P.value.includes(T.value ? v[T.value] : _)
2813
2743
  );
2814
- y("rowSelect", h);
2744
+ b("rowSelect", h);
2815
2745
  };
2816
2746
  V(() => P.value, bt);
2817
2747
  const J = (a) => {
2818
- a ? P.value = s.value.map(
2819
- (h, g) => T.value ? h[T.value] : g
2748
+ a ? P.value = l.value.map(
2749
+ (h, v) => T.value ? h[T.value] : v
2820
2750
  ) : P.value = [];
2821
2751
  }, yt = () => {
2822
- J(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, ie(), y("filterChange", t.columns));
2823
- }, zn = () => {
2824
- J(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, ie(), y("searchChange", $.value));
2752
+ J(!1), t.isServerMode ? s.value === 1 ? ce("filter", !0) : s.value = 1 : (s.value = 1, ie(), b("filterChange", t.columns));
2753
+ }, kn = () => {
2754
+ J(!1), t.isServerMode ? s.value === 1 ? ce("search", !0) : s.value = 1 : (s.value = 1, ie(), b("searchChange", $.value));
2825
2755
  };
2826
2756
  V(
2827
2757
  () => t.search,
2828
2758
  () => {
2829
- $.value = t.search, zn();
2759
+ $.value = t.search, kn();
2830
2760
  }
2831
2761
  );
2832
- const _ = (a, h) => h == null ? void 0 : h.split(".").reduce((g, F) => g == null ? void 0 : g[F], a), Se = (a) => {
2762
+ const I = (a, h) => h == null ? void 0 : h.split(".").reduce((v, _) => v == null ? void 0 : v[_], a), Se = (a) => {
2833
2763
  try {
2834
2764
  if (!a)
2835
2765
  return "";
2836
- const h = new Date(a), g = h.getDate(), F = h.getMonth() + 1;
2837
- return h.getFullYear() + "-" + (F > 9 ? F : "0" + F) + "-" + (g > 9 ? g : "0" + g);
2766
+ const h = new Date(a), v = h.getDate(), _ = h.getMonth() + 1;
2767
+ return h.getFullYear() + "-" + (_ > 9 ? _ : "0" + _) + "-" + (v > 9 ? v : "0" + v);
2838
2768
  } catch {
2839
2769
  }
2840
2770
  return "";
2841
2771
  }, xt = (a, h) => {
2842
2772
  q.value++, q.value === 1 ? E.value = setTimeout(() => {
2843
- q.value = 0, t.selectRowOnClick && (ke(h) ? St(h) : wt(h), bt(P.value)), y("rowClick", a);
2844
- }, x.value) : q.value === 2 && (clearTimeout(E.value), q.value = 0, y("rowDBClick", a));
2773
+ q.value = 0, t.selectRowOnClick && (Ce(h) ? St(h) : wt(h), bt(P.value)), b("rowClick", a);
2774
+ }, x.value) : q.value === 2 && (clearTimeout(E.value), q.value = 0, b("rowDBClick", a));
2845
2775
  }, ce = (a, h = !1) => {
2846
2776
  if (t.isServerMode) {
2847
- Pn();
2848
- const g = {
2849
- current_page: h ? 1 : l.value,
2777
+ zn();
2778
+ const v = {
2779
+ current_page: h ? 1 : s.value,
2850
2780
  pagesize: r.value,
2851
- offset: (l.value - 1) * r.value,
2781
+ offset: (s.value - 1) * r.value,
2852
2782
  sort_column: c.value,
2853
2783
  sort_direction: p.value,
2854
2784
  search: $.value,
2855
2785
  column_filters: t.columns,
2856
2786
  change_type: a
2857
2787
  };
2858
- y("change", g);
2788
+ b("change", v);
2859
2789
  }
2860
- }, Pn = () => {
2790
+ }, zn = () => {
2861
2791
  for (let a = 0; a < t.columns.length; a++) {
2862
2792
  let h = t.columns[a];
2863
2793
  h.filter && (h.value !== void 0 && h.value !== null && h.value !== "" || h.condition === "IsNull" || h.condition === "IsNotNull") && (h.type === "string" && h.value && !h.condition && (h.condition = "Contains"), h.type === "number" && h.value && !h.condition && (h.condition = "Equal"), h.type === "date" && h.value && !h.condition && (h.condition = "Equal"));
2864
2794
  }
2865
- }, En = () => {
2795
+ }, Pn = () => {
2866
2796
  J(!1);
2867
2797
  for (let a = 0; a < t.columns.length; a++)
2868
2798
  t.columns[a] = W[a];
2869
- $.value = "", r.value = u, c.value = d, p.value = k, t.isServerMode ? l.value === 1 ? ce("reset", !0) : l.value = 1 : (l.value = 1, ie());
2870
- }, Ln = () => s.value.filter(
2871
- (h, g) => P.value.includes(T.value ? h[T.value] : g)
2872
- ), Tn = () => t.columns, Mn = () => {
2799
+ $.value = "", r.value = u, c.value = d, p.value = C, t.isServerMode ? s.value === 1 ? ce("reset", !0) : s.value = 1 : (s.value = 1, ie());
2800
+ }, En = () => l.value.filter(
2801
+ (h, v) => P.value.includes(T.value ? h[T.value] : v)
2802
+ ), Ln = () => t.columns, Tn = () => {
2873
2803
  P.value = [];
2874
2804
  }, wt = (a) => {
2875
- if (!ke(a)) {
2876
- const h = s.value.find((g, F) => F === a);
2805
+ if (!Ce(a)) {
2806
+ const h = l.value.find((v, _) => _ === a);
2877
2807
  P.value.push(
2878
2808
  T.value ? h[T.value] : a
2879
2809
  );
2880
2810
  }
2881
2811
  }, St = (a) => {
2882
- if (ke(a)) {
2883
- const h = s.value.find((g, F) => F === a);
2812
+ if (Ce(a)) {
2813
+ const h = l.value.find((v, _) => _ === a);
2884
2814
  P.value = P.value.filter(
2885
- (g) => g !== (T.value ? h[T.value] : a)
2815
+ (v) => v !== (T.value ? h[T.value] : a)
2886
2816
  );
2887
2817
  }
2888
- }, ke = (a) => {
2889
- const h = s.value.find((g, F) => F === a);
2818
+ }, Ce = (a) => {
2819
+ const h = l.value.find((v, _) => _ === a);
2890
2820
  return h ? P.value.includes(
2891
2821
  T.value ? h[T.value] : a
2892
2822
  ) : !1;
2893
2823
  };
2894
2824
  let de = 0;
2895
2825
  t.hasCheckbox && de++, t.hasSubtable && de++;
2896
- const kt = O(0);
2826
+ const Mn = O(0);
2897
2827
  setInterval(function() {
2898
- kt.value++;
2828
+ Mn.value++;
2899
2829
  }, 2200);
2900
- const Ce = O(Number(t.leftmenusize));
2830
+ const ke = O(Number(t.leftmenusize));
2901
2831
  V(
2902
2832
  () => t.leftmenusize,
2903
2833
  (a) => {
2904
- Ce.value = 100 - Number(a);
2834
+ ke.value = 100 - Number(a);
2905
2835
  }
2906
2836
  );
2907
- const Be = O(100 - Number(t.topmenusize)), Ct = O(null), _n = _t(Ct).height;
2837
+ const Be = O(100 - Number(t.topmenusize)), Ct = O(null), In = Mt(Ct).height;
2908
2838
  V(
2909
2839
  () => t.topmenusize,
2910
2840
  (a) => {
2911
2841
  Be.value = 100 - Number(a);
2912
2842
  }
2913
2843
  );
2914
- const qe = O(t.leftmenumax), zt = O(null), In = _t(zt).width;
2915
- return V(Ce, (a) => {
2916
- In.value == t.leftmenumaxpx ? qe.value = a : qe.value = t.leftmenumax;
2917
- }, { immediate: !0 }), (a, h) => (m(), b("div", _s, [
2844
+ const qe = O(t.leftmenumax), kt = O(null), Fn = Mt(kt).width;
2845
+ return V(ke, (a) => {
2846
+ Fn.value == t.leftmenumaxpx ? qe.value = a : qe.value = t.leftmenumax;
2847
+ }, { immediate: !0 }), (a, h) => (m(), g("div", Il, [
2918
2848
  G(D(Ue), {
2919
2849
  class: "default-theme",
2920
2850
  style: K({ height: t.height })
@@ -2925,20 +2855,20 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2925
2855
  G(D(Ue), {
2926
2856
  vertical: "vertical",
2927
2857
  class: "default-theme",
2928
- onResize: h[2] || (h[2] = (g) => Ce.value = g[0].size)
2858
+ onResize: h[2] || (h[2] = (v) => ke.value = v[0].size)
2929
2859
  }, {
2930
2860
  default: ee(() => [
2931
2861
  a.enableleftmenu ? (m(), Y(D(me), {
2932
2862
  key: 0,
2933
2863
  ref_key: "leftmenuel",
2934
- ref: zt,
2935
- size: Ce.value,
2864
+ ref: kt,
2865
+ size: ke.value,
2936
2866
  "max-size": qe.value,
2937
2867
  style: K({ "min-width": a.leftmenumin + "px", "max-width": a.leftmenumaxpx + "px" })
2938
2868
  }, {
2939
2869
  default: ee(() => [
2940
2870
  X(a.$slots, "tableleftmenu", {}, () => [
2941
- Is
2871
+ Fl
2942
2872
  ])
2943
2873
  ]),
2944
2874
  _: 3
@@ -2960,7 +2890,7 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2960
2890
  }, {
2961
2891
  default: ee(() => [
2962
2892
  X(a.$slots, "tabletopmenu", {}, () => [
2963
- Fs
2893
+ _l
2964
2894
  ])
2965
2895
  ]),
2966
2896
  _: 3
@@ -2971,14 +2901,14 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2971
2901
  }, {
2972
2902
  default: ee(() => [
2973
2903
  X(a.$slots, "tableactionheader", {}, () => [
2974
- $s
2904
+ $l
2975
2905
  ]),
2976
- v("div", {
2977
- class: C(t.scrollbarstyle)
2906
+ y("div", {
2907
+ class: k(t.scrollbarstyle)
2978
2908
  }, [
2979
2909
  G(D(Bo), {
2980
2910
  style: K({
2981
- height: t.stickyHeader && Number(t.height.replace("px", "")) - (a.footerOffset + D(_n)) + "px"
2911
+ height: t.stickyHeader && Number(t.height.replace("px", "")) - (a.footerOffset + D(In)) + "px"
2982
2912
  }),
2983
2913
  autoHide: t.scrollbarautohide,
2984
2914
  fixedThumb: t.scrollbarfixedthumb,
@@ -2987,19 +2917,19 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
2987
2917
  throttleType: "none"
2988
2918
  }, {
2989
2919
  default: ee(() => [
2990
- v("div", {
2991
- class: C(["bh-table-responsive", { "bh-min-h-[100px]": w.value }]),
2920
+ y("div", {
2921
+ class: k(["bh-table-responsive", { "bh-min-h-[100px]": w.value }]),
2992
2922
  style: K({ overflow: t.stickyHeader && "inherit" })
2993
2923
  }, [
2994
- v("table", {
2995
- class: C([t.skin])
2924
+ y("table", {
2925
+ class: k([t.skin])
2996
2926
  }, [
2997
- v("thead", {
2998
- class: C({
2927
+ y("thead", {
2928
+ class: k({
2999
2929
  "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
3000
2930
  })
3001
2931
  }, [
3002
- G(Yt, {
2932
+ G(Xt, {
3003
2933
  all: t,
3004
2934
  expandedrows: he.value,
3005
2935
  currentSortColumn: c.value,
@@ -3013,57 +2943,57 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3013
2943
  onToggleFilterMenu: ht
3014
2944
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3015
2945
  ], 2),
3016
- v("tbody", null, [
3017
- (m(!0), b(B, null, te(s.value, (g, F) => {
2946
+ y("tbody", null, [
2947
+ (m(!0), g(B, null, te(l.value, (v, _) => {
3018
2948
  var U;
3019
- return m(), b(B, {
3020
- key: g[T.value] ? g[T.value] : F
2949
+ return m(), g(B, {
2950
+ key: v[T.value] ? v[T.value] : _
3021
2951
  }, [
3022
- z.value ? (m(), b("tr", {
2952
+ z.value ? (m(), g("tr", {
3023
2953
  key: 0,
3024
- class: C([
3025
- typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
2954
+ class: k([
2955
+ typeof t.rowClass == "function" ? a.rowClass(v) : t.rowClass,
3026
2956
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3027
2957
  ]),
3028
- onClick: re((j) => xt(g, F), ["prevent"])
2958
+ onClick: re((j) => xt(v, _), ["prevent"])
3029
2959
  }, [
3030
- t.hasCheckbox ? (m(), b("td", {
2960
+ t.hasCheckbox ? (m(), g("td", {
3031
2961
  key: 0,
3032
- class: C({
2962
+ class: k({
3033
2963
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3034
2964
  })
3035
2965
  }, [
3036
- v("div", Ns, [
3037
- ne(v("input", {
2966
+ y("div", Nl, [
2967
+ ne(y("input", {
3038
2968
  "onUpdate:modelValue": h[0] || (h[0] = (j) => P.value = j),
3039
2969
  type: "checkbox",
3040
- value: g[T.value] ? g[T.value] : F,
2970
+ value: v[T.value] ? v[T.value] : _,
3041
2971
  onClick: h[1] || (h[1] = re(() => {
3042
2972
  }, ["stop"]))
3043
- }, null, 8, Rs), [
2973
+ }, null, 8, Rl), [
3044
2974
  [Un, P.value]
3045
2975
  ]),
3046
- v("div", null, [
3047
- G(kn, { class: "check" })
2976
+ y("div", null, [
2977
+ G(Sn, { class: "check" })
3048
2978
  ])
3049
2979
  ])
3050
2980
  ], 2)) : M("", !0),
3051
- t.hasSubtable ? (m(), b("td", {
2981
+ t.hasSubtable ? (m(), g("td", {
3052
2982
  key: 1,
3053
- class: C({
2983
+ class: k({
3054
2984
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3055
2985
  })
3056
2986
  }, [
3057
- G(Sn, {
3058
- item: g,
2987
+ G(wn, {
2988
+ item: v,
3059
2989
  expandedrows: he.value
3060
2990
  }, null, 8, ["item", "expandedrows"])
3061
2991
  ], 2)) : M("", !0),
3062
- (m(!0), b(B, null, te(t.columns, (j, Z) => (m(), b(B, null, [
3063
- j.hide ? M("", !0) : (m(), b("td", {
2992
+ (m(!0), g(B, null, te(t.columns, (j, Z) => (m(), g(B, null, [
2993
+ j.hide ? M("", !0) : (m(), g("td", {
3064
2994
  key: j.field,
3065
- class: C([
3066
- typeof t.cellClass == "function" ? a.cellClass(g) : t.cellClass,
2995
+ class: k([
2996
+ typeof t.cellClass == "function" ? a.cellClass(v) : t.cellClass,
3067
2997
  Z === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3068
2998
  t.hasCheckbox && Z === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3069
2999
  j.cellClass ? j.cellClass : ""
@@ -3071,72 +3001,72 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3071
3001
  }, [
3072
3002
  D(i)[j.field] ? X(a.$slots, j.field, {
3073
3003
  key: 0,
3074
- value: g
3075
- }) : j.cellRenderer ? (m(), b("div", {
3004
+ value: v
3005
+ }) : j.cellRenderer ? (m(), g("div", {
3076
3006
  key: 1,
3077
- innerHTML: j.cellRenderer(g)
3078
- }, null, 8, As)) : (m(), b(B, { key: 2 }, [
3079
- Ye(R(_(g, j.field)), 1)
3007
+ innerHTML: j.cellRenderer(v)
3008
+ }, null, 8, Al)) : (m(), g(B, { key: 2 }, [
3009
+ Ye(R(I(v, j.field)), 1)
3080
3010
  ], 64))
3081
3011
  ], 2))
3082
3012
  ], 64))), 256))
3083
- ], 10, Os)) : M("", !0),
3084
- (U = he.value.find((j) => j.id == g.id)) != null && U.isExpanded && t.hasSubtable ? (m(), b("tr", {
3013
+ ], 10, Ol)) : M("", !0),
3014
+ (U = he.value.find((j) => j.id == v.id)) != null && U.isExpanded && t.hasSubtable ? (m(), g("tr", {
3085
3015
  key: 1,
3086
- class: C([
3087
- typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
3016
+ class: k([
3017
+ typeof t.rowClass == "function" ? a.rowClass(v) : t.rowClass,
3088
3018
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3089
3019
  ]),
3090
- onClick: re((j) => xt(g, F), ["prevent"])
3020
+ onClick: re((j) => xt(v, _), ["prevent"])
3091
3021
  }, [
3092
- v("td", {
3022
+ y("td", {
3093
3023
  colspan: t.columns.length + D(de)
3094
3024
  }, [
3095
- X(a.$slots, "tsub", { value: s.value })
3096
- ], 8, Bs)
3097
- ], 10, Ds)) : M("", !0)
3025
+ X(a.$slots, "tsub", { value: l.value })
3026
+ ], 8, Bl)
3027
+ ], 10, Dl)) : M("", !0)
3098
3028
  ], 64);
3099
3029
  }), 128)),
3100
- !z.value && w.value && a.skeletonloader ? (m(!0), b(B, { key: 0 }, te(t.pageSize, (g) => (m(), b("tr", {
3101
- key: g,
3030
+ !z.value && w.value && a.skeletonloader ? (m(!0), g(B, { key: 0 }, te(t.pageSize, (v) => (m(), g("tr", {
3031
+ key: v,
3102
3032
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3103
3033
  }, [
3104
- v("td", {
3034
+ y("td", {
3105
3035
  colspan: t.columns.length + D(de),
3106
3036
  class: "!bh-p-0 !bh-border-transparent"
3107
- }, js, 8, qs)
3037
+ }, jl, 8, ql)
3108
3038
  ]))), 128)) : M("", !0),
3109
- z.value ? (m(!0), b(B, { key: 1 }, te(t.footerRows, (g, F) => (m(), b("tr", {
3110
- key: g[T.value] ? g[T.value] : F
3039
+ z.value ? (m(!0), g(B, { key: 1 }, te(t.footerRows, (v, _) => (m(), g("tr", {
3040
+ key: v[T.value] ? v[T.value] : _
3111
3041
  }, [
3112
- D(de) > 0 ? (m(), b("td", {
3042
+ D(de) > 0 ? (m(), g("td", {
3113
3043
  key: 0,
3114
3044
  colspan: D(de)
3115
- }, null, 8, Ws)) : M("", !0),
3116
- (m(!0), b(B, null, te(t.columns, (U, j) => (m(), b(B, null, [
3117
- U.hide ? M("", !0) : (m(), b("td", {
3045
+ }, null, 8, Wl)) : M("", !0),
3046
+ (m(!0), g(B, null, te(t.columns, (U, j) => (m(), g(B, null, [
3047
+ U.hide ? M("", !0) : (m(), g("td", {
3118
3048
  key: U.field,
3119
- class: C([
3120
- typeof t.cellClass == "function" ? a.cellClass(g) : t.cellClass,
3049
+ class: k([
3050
+ typeof t.cellClass == "function" ? a.cellClass(v) : t.cellClass,
3121
3051
  j === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3122
3052
  t.hasCheckbox && j === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3123
3053
  U.cellClass ? U.cellClass : ""
3124
3054
  ])
3125
3055
  }, [
3126
- g.cells.find((Z) => Z.field == U.field) ? (m(), b(B, { key: 0 }, [
3127
- Ye(R(g.cells.find((Z) => Z.field == U.field).text), 1)
3056
+ v.cells.find((Z) => Z.field == U.field) ? (m(), g(B, { key: 0 }, [
3057
+ Ye(R(v.cells.find((Z) => Z.field == U.field).text), 1)
3128
3058
  ], 64)) : M("", !0)
3129
3059
  ], 2))
3130
3060
  ], 64))), 256))
3131
3061
  ]))), 128)) : M("", !0)
3132
3062
  ]),
3133
- t.cloneHeaderInFooter ? (m(), b("tfoot", {
3063
+ t.cloneHeaderInFooter ? (m(), g("tfoot", {
3134
3064
  key: 0,
3135
- class: C({
3065
+ class: k({
3136
3066
  "bh-sticky bh-bottom-0": t.stickyHeader
3137
3067
  })
3138
3068
  }, [
3139
- G(Yt, {
3069
+ G(Xt, {
3140
3070
  all: t,
3141
3071
  currentSortColumn: c.value,
3142
3072
  currentSortDirection: p.value,
@@ -3150,18 +3080,11 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3150
3080
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3151
3081
  ], 2)) : M("", !0)
3152
3082
  ], 2),
3153
- z.value && w.value && a.enableloadinganimation ? (m(), b("div", Us, [
3154
- (m(), b("svg", {
3155
- key: kt.value,
3156
- xmlns: "http://www.w3.org/2000/svg",
3157
- width: "24",
3158
- height: "24",
3159
- viewBox: "0 0 24 24",
3160
- style: { "font-size": "24px" }
3161
- }, Gs))
3083
+ z.value && w.value && a.enableloadinganimation ? (m(), g("div", Ul, [
3084
+ X(a.$slots, "loadercontent")
3162
3085
  ])) : M("", !0)
3163
3086
  ], 6),
3164
- !z.value && !w.value ? (m(), b("div", {
3087
+ !z.value && !w.value ? (m(), g("div", {
3165
3088
  key: 0,
3166
3089
  class: "nodatacontent",
3167
3090
  style: K({
@@ -3169,7 +3092,7 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3169
3092
  })
3170
3093
  }, [
3171
3094
  X(a.$slots, "nodatacontent", {}, () => [
3172
- v("span", null, R(t.noDataContent), 1)
3095
+ y("span", null, R(t.noDataContent), 1)
3173
3096
  ])
3174
3097
  ], 4)) : M("", !0)
3175
3098
  ]),
@@ -3194,14 +3117,14 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3194
3117
  ]),
3195
3118
  _: 3
3196
3119
  }, 8, ["style"]),
3197
- t.pagination && z.value ? (m(), b("div", {
3120
+ t.pagination && z.value ? (m(), g("div", {
3198
3121
  key: 0,
3199
- class: C(["bh-pagination", {
3122
+ class: k(["bh-pagination", {
3200
3123
  "bh-pointer-events-none": w.value,
3201
3124
  "sticky-footer": t.stickyFooter
3202
3125
  }])
3203
3126
  }, [
3204
- v("div", Qs, [
3127
+ y("div", Vl, [
3205
3128
  a.enablefooterpagination ? X(a.$slots, "footerpageinfo", {
3206
3129
  key: 0,
3207
3130
  paginationInfo: a.paginationInfo,
@@ -3211,90 +3134,90 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3211
3134
  showPageSize: a.showPageSize,
3212
3135
  pageSizeOptions: a.pageSizeOptions,
3213
3136
  currentPageSize: r.value,
3214
- stringFormat: I,
3137
+ stringFormat: F,
3215
3138
  setPageSize: Cn
3216
3139
  }, () => [
3217
- v("div", Ks, [
3218
- v("span", Xs, R(I(
3140
+ y("div", Gl, [
3141
+ y("span", Ql, R(F(
3219
3142
  t.paginationInfo,
3220
3143
  z.value ? Ae.value : 0,
3221
3144
  De.value,
3222
3145
  z.value
3223
3146
  )), 1),
3224
- t.showPageSize ? ne((m(), b("select", {
3147
+ t.showPageSize ? ne((m(), g("select", {
3225
3148
  key: 0,
3226
- "onUpdate:modelValue": h[3] || (h[3] = (g) => r.value = g),
3149
+ "onUpdate:modelValue": h[3] || (h[3] = (v) => r.value = v),
3227
3150
  class: "bh-pagesize"
3228
3151
  }, [
3229
- (m(!0), b(B, null, te(t.pageSizeOptions, (g) => (m(), b("option", {
3230
- value: g,
3231
- key: g
3232
- }, R(g), 9, Ys))), 128))
3152
+ (m(!0), g(B, null, te(t.pageSizeOptions, (v) => (m(), g("option", {
3153
+ value: v,
3154
+ key: v
3155
+ }, R(v), 9, Kl))), 128))
3233
3156
  ], 512)), [
3234
- [Zt, r.value]
3157
+ [Jt, r.value]
3235
3158
  ]) : M("", !0)
3236
3159
  ])
3237
3160
  ]) : M("", !0),
3238
3161
  a.enablefooterpagination ? X(a.$slots, "footerpagination", {
3239
3162
  key: 1,
3240
- currentPage: l.value,
3163
+ currentPage: s.value,
3241
3164
  maxPage: H.value,
3242
3165
  paging: dt.value,
3243
3166
  movePage: mt,
3244
3167
  nextPage: vt,
3245
3168
  previousPage: pt
3246
3169
  }, () => [
3247
- v("div", Js, [
3248
- t.showFirstPage ? (m(), b("button", {
3170
+ y("div", Xl, [
3171
+ t.showFirstPage ? (m(), g("button", {
3249
3172
  key: 0,
3250
3173
  type: "button",
3251
- class: C(["bh-page-item first-page", { disabled: l.value <= 1 }]),
3252
- onClick: h[4] || (h[4] = (g) => l.value = 1)
3174
+ class: k(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3175
+ onClick: h[4] || (h[4] = (v) => s.value = 1)
3253
3176
  }, [
3254
- t.firstArrow ? (m(), b("span", {
3177
+ t.firstArrow ? (m(), g("span", {
3255
3178
  key: 0,
3256
3179
  innerHTML: t.firstArrow
3257
- }, null, 8, Zs)) : (m(), b("svg", el, nl))
3180
+ }, null, 8, Yl)) : (m(), g("svg", Jl, es))
3258
3181
  ], 2)) : M("", !0),
3259
- v("button", {
3182
+ y("button", {
3260
3183
  type: "button",
3261
- class: C(["bh-page-item previous-page", { disabled: l.value <= 1 }]),
3184
+ class: k(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3262
3185
  onClick: pt
3263
3186
  }, [
3264
- t.previousArrow ? (m(), b("span", {
3187
+ t.previousArrow ? (m(), g("span", {
3265
3188
  key: 0,
3266
3189
  innerHTML: t.previousArrow
3267
- }, null, 8, ol)) : (m(), b("svg", il, ll))
3190
+ }, null, 8, ts)) : (m(), g("svg", ns, is))
3268
3191
  ], 2),
3269
- t.showNumbers ? (m(!0), b(B, { key: 1 }, te(dt.value, (g) => (m(), b("button", {
3270
- key: g,
3192
+ t.showNumbers ? (m(!0), g(B, { key: 1 }, te(dt.value, (v) => (m(), g("button", {
3193
+ key: v,
3271
3194
  type: "button",
3272
- class: C(["bh-page-item", {
3273
- disabled: l.value === g,
3274
- "bh-active": g === l.value
3195
+ class: k(["bh-page-item", {
3196
+ disabled: s.value === v,
3197
+ "bh-active": v === s.value
3275
3198
  }]),
3276
- onClick: (F) => mt(g)
3277
- }, R(g), 11, rl))), 128)) : M("", !0),
3278
- v("button", {
3199
+ onClick: (_) => mt(v)
3200
+ }, R(v), 11, ls))), 128)) : M("", !0),
3201
+ y("button", {
3279
3202
  type: "button",
3280
- class: C(["bh-page-item next-page", { disabled: l.value >= H.value }]),
3203
+ class: k(["bh-page-item next-page", { disabled: s.value >= H.value }]),
3281
3204
  onClick: vt
3282
3205
  }, [
3283
- t.nextArrow ? (m(), b("span", {
3206
+ t.nextArrow ? (m(), g("span", {
3284
3207
  key: 0,
3285
3208
  innerHTML: t.nextArrow
3286
- }, null, 8, al)) : (m(), b("svg", ul, dl))
3209
+ }, null, 8, ss)) : (m(), g("svg", rs, us))
3287
3210
  ], 2),
3288
- t.showLastPage ? (m(), b("button", {
3211
+ t.showLastPage ? (m(), g("button", {
3289
3212
  key: 2,
3290
3213
  type: "button",
3291
- class: C(["bh-page-item last-page", { disabled: l.value >= H.value }]),
3292
- onClick: h[5] || (h[5] = (g) => l.value = H.value)
3214
+ class: k(["bh-page-item last-page", { disabled: s.value >= H.value }]),
3215
+ onClick: h[5] || (h[5] = (v) => s.value = H.value)
3293
3216
  }, [
3294
- t.lastArrow ? (m(), b("span", {
3217
+ t.lastArrow ? (m(), g("span", {
3295
3218
  key: 0,
3296
3219
  innerHTML: t.lastArrow
3297
- }, null, 8, fl)) : (m(), b("svg", hl, ml))
3220
+ }, null, 8, cs)) : (m(), g("svg", ds, hs))
3298
3221
  ], 2)) : M("", !0)
3299
3222
  ])
3300
3223
  ]) : M("", !0)
@@ -3304,5 +3227,5 @@ const ps = /* @__PURE__ */ Re(us, [["render", hs]]), ms = { key: "hdrrow" }, vs
3304
3227
  }
3305
3228
  });
3306
3229
  export {
3307
- wl as default
3230
+ ys as default
3308
3231
  };