@dolusoft/vue3-datatable 1.7.19 → 1.7.21

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,85 +1,85 @@
1
- import { onMounted as Ce, nextTick as Fe, getCurrentScope as jn, onScopeDispose as Wn, unref as Q, getCurrentInstance as zt, computed as K, ref as B, watch as ee, defineComponent as ge, useCssVars as Vn, shallowRef as pe, onUnmounted as Ze, openBlock as b, createElementBlock as w, Fragment as U, withDirectives as he, createElementVNode as C, normalizeClass as M, normalizeStyle as oe, withModifiers as me, setBlockTracking as Dt, vShow as vt, createCommentVNode as R, mergeProps as Un, renderSlot as se, renderList as fe, createVNode as ne, reactive as Gn, watchEffect as Qn, useSlots as un, onBeforeUnmount as Lt, provide as Se, createBlock as ue, resolveDynamicComponent as Kn, inject as Ee, h as mt, toRef as Xn, toDisplayString as j, createTextVNode as gt, vModelText as ct, vModelSelect as cn, withCtx as _e, vModelCheckbox as Yn } from "vue";
2
- function Jn(e) {
3
- return jn() ? (Wn(e), !0) : !1;
1
+ import { onMounted as Le, nextTick as Oe, getCurrentScope as Vn, onScopeDispose as Un, unref as Q, getCurrentInstance as Ct, computed as K, ref as D, watch as ee, defineComponent as we, useCssVars as Gn, shallowRef as me, onUnmounted as Ze, openBlock as m, createElementBlock as w, Fragment as U, withDirectives as ve, createElementVNode as C, normalizeClass as T, normalizeStyle as re, withModifiers as ye, setBlockTracking as Dt, vShow as pt, createCommentVNode as N, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as le, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as zt, provide as Ce, createBlock as ce, resolveDynamicComponent as Yn, inject as _e, h as vt, toRef as Jn, toDisplayString as W, createTextVNode as mt, vModelText as ut, vModelSelect as cn, withCtx as Me, vModelCheckbox as Zn } from "vue";
2
+ function el(e) {
3
+ return Vn() ? (Un(e), !0) : !1;
4
4
  }
5
- function Zn(e) {
5
+ function tl(e) {
6
6
  return typeof e == "function" ? e() : Q(e);
7
7
  }
8
- const el = typeof window < "u" && typeof document < "u";
8
+ const nl = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- function tl(e) {
11
- return zt();
10
+ function ll(e) {
11
+ return Ct();
12
12
  }
13
- function nl(e, l = !0, t) {
14
- tl() ? Ce(e, t) : l ? e() : Fe(e);
13
+ function ol(e, l = !0, n) {
14
+ ll() ? Le(e, n) : l ? e() : Oe(e);
15
15
  }
16
- function Pe(e) {
16
+ function Te(e) {
17
17
  var l;
18
- const t = Zn(e);
19
- return (l = t == null ? void 0 : t.$el) != null ? l : t;
18
+ const n = tl(e);
19
+ return (l = n == null ? void 0 : n.$el) != null ? l : n;
20
20
  }
21
- const dn = el ? window : void 0;
22
- function ll() {
23
- const e = B(!1), l = zt();
24
- return l && Ce(() => {
21
+ const dn = nl ? window : void 0;
22
+ function il() {
23
+ const e = D(!1), l = Ct();
24
+ return l && Le(() => {
25
25
  e.value = !0;
26
26
  }, l), e;
27
27
  }
28
- function ol(e) {
29
- const l = ll();
28
+ function rl(e) {
29
+ const l = il();
30
30
  return K(() => (l.value, !!e()));
31
31
  }
32
- function il(e, l, t = {}) {
33
- const { window: o = dn, ...n } = t;
32
+ function sl(e, l, n = {}) {
33
+ const { window: o = dn, ...t } = n;
34
34
  let i;
35
- const s = ol(() => o && "ResizeObserver" in o), r = () => {
35
+ const s = rl(() => o && "ResizeObserver" in o), r = () => {
36
36
  i && (i.disconnect(), i = void 0);
37
- }, u = K(() => Array.isArray(e) ? e.map((p) => Pe(p)) : [Pe(e)]), f = ee(
37
+ }, u = K(() => Array.isArray(e) ? e.map((p) => Te(p)) : [Te(e)]), f = ee(
38
38
  u,
39
39
  (p) => {
40
40
  if (r(), s.value && o) {
41
41
  i = new ResizeObserver(l);
42
- for (const _ of p)
43
- _ && i.observe(_, n);
42
+ for (const E of p)
43
+ E && i.observe(E, t);
44
44
  }
45
45
  },
46
46
  { immediate: !0, flush: "post" }
47
47
  ), d = () => {
48
48
  r(), f();
49
49
  };
50
- return Jn(d), {
50
+ return el(d), {
51
51
  isSupported: s,
52
52
  stop: d
53
53
  };
54
54
  }
55
- function rl(e, l = { width: 0, height: 0 }, t = {}) {
56
- const { window: o = dn, box: n = "content-box" } = t, i = K(() => {
57
- var p, _;
58
- return (_ = (p = Pe(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : _.includes("svg");
59
- }), s = B(l.width), r = B(l.height), { stop: u } = il(
55
+ function al(e, l = { width: 0, height: 0 }, n = {}) {
56
+ const { window: o = dn, box: t = "content-box" } = n, i = K(() => {
57
+ var p, E;
58
+ return (E = (p = Te(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : E.includes("svg");
59
+ }), s = D(l.width), r = D(l.height), { stop: u } = sl(
60
60
  e,
61
61
  ([p]) => {
62
- const _ = n === "border-box" ? p.borderBoxSize : n === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
62
+ const E = t === "border-box" ? p.borderBoxSize : t === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
63
63
  if (o && i.value) {
64
- const I = Pe(e);
65
- if (I) {
66
- const F = I.getBoundingClientRect();
67
- s.value = F.width, r.value = F.height;
64
+ const P = Te(e);
65
+ if (P) {
66
+ const I = P.getBoundingClientRect();
67
+ s.value = I.width, r.value = I.height;
68
68
  }
69
- } else if (_) {
70
- const I = Array.isArray(_) ? _ : [_];
71
- s.value = I.reduce((F, { inlineSize: $ }) => F + $, 0), r.value = I.reduce((F, { blockSize: $ }) => F + $, 0);
69
+ } else if (E) {
70
+ const P = Array.isArray(E) ? E : [E];
71
+ s.value = P.reduce((I, { inlineSize: $ }) => I + $, 0), r.value = P.reduce((I, { blockSize: $ }) => I + $, 0);
72
72
  } else
73
73
  s.value = p.contentRect.width, r.value = p.contentRect.height;
74
74
  },
75
- t
75
+ n
76
76
  );
77
- nl(() => {
78
- const p = Pe(e);
77
+ ol(() => {
78
+ const p = Te(e);
79
79
  p && (s.value = "offsetWidth" in p ? p.offsetWidth : l.width, r.value = "offsetHeight" in p ? p.offsetHeight : l.height);
80
80
  });
81
81
  const f = ee(
82
- () => Pe(e),
82
+ () => Te(e),
83
83
  (p) => {
84
84
  s.value = p ? l.width : 0, r.value = p ? l.height : 0;
85
85
  }
@@ -93,51 +93,51 @@ function rl(e, l = { width: 0, height: 0 }, t = {}) {
93
93
  stop: d
94
94
  };
95
95
  }
96
- var sl = typeof global == "object" && global && global.Object === Object && global, al = typeof self == "object" && self && self.Object === Object && self, fn = sl || al || Function("return this")(), et = fn.Symbol, hn = Object.prototype, ul = hn.hasOwnProperty, cl = hn.toString, Me = et ? et.toStringTag : void 0;
97
- function dl(e) {
98
- var l = ul.call(e, Me), t = e[Me];
96
+ var ul = typeof global == "object" && global && global.Object === Object && global, cl = typeof self == "object" && self && self.Object === Object && self, fn = ul || cl || Function("return this")(), et = fn.Symbol, hn = Object.prototype, dl = hn.hasOwnProperty, fl = hn.toString, Ie = et ? et.toStringTag : void 0;
97
+ function hl(e) {
98
+ var l = dl.call(e, Ie), n = e[Ie];
99
99
  try {
100
- e[Me] = void 0;
100
+ e[Ie] = void 0;
101
101
  var o = !0;
102
102
  } catch {
103
103
  }
104
- var n = cl.call(e);
105
- return o && (l ? e[Me] = t : delete e[Me]), n;
104
+ var t = fl.call(e);
105
+ return o && (l ? e[Ie] = n : delete e[Ie]), t;
106
106
  }
107
- var fl = Object.prototype, hl = fl.toString;
108
- function pl(e) {
109
- return hl.call(e);
107
+ var pl = Object.prototype, vl = pl.toString;
108
+ function ml(e) {
109
+ return vl.call(e);
110
110
  }
111
- var vl = "[object Null]", ml = "[object Undefined]", qt = et ? et.toStringTag : void 0;
112
- function gl(e) {
113
- return e == null ? e === void 0 ? ml : vl : qt && qt in Object(e) ? dl(e) : pl(e);
114
- }
115
- function bl(e) {
116
- return e != null && typeof e == "object";
111
+ var gl = "[object Null]", bl = "[object Undefined]", qt = et ? et.toStringTag : void 0;
112
+ function yl(e) {
113
+ return e == null ? e === void 0 ? bl : gl : qt && qt in Object(e) ? hl(e) : ml(e);
117
114
  }
118
- var yl = "[object Symbol]";
119
115
  function wl(e) {
120
- return typeof e == "symbol" || bl(e) && gl(e) == yl;
116
+ return e != null && typeof e == "object";
121
117
  }
122
- var xl = /\s/;
118
+ var xl = "[object Symbol]";
123
119
  function Sl(e) {
124
- for (var l = e.length; l-- && xl.test(e.charAt(l)); )
120
+ return typeof e == "symbol" || wl(e) && yl(e) == xl;
121
+ }
122
+ var kl = /\s/;
123
+ function Cl(e) {
124
+ for (var l = e.length; l-- && kl.test(e.charAt(l)); )
125
125
  ;
126
126
  return l;
127
127
  }
128
- var kl = /^\s+/;
129
- function Cl(e) {
130
- return e && e.slice(0, Sl(e) + 1).replace(kl, "");
128
+ var zl = /^\s+/;
129
+ function Ll(e) {
130
+ return e && e.slice(0, Cl(e) + 1).replace(zl, "");
131
131
  }
132
132
  function tt(e) {
133
133
  var l = typeof e;
134
134
  return e != null && (l == "object" || l == "function");
135
135
  }
136
- var Ht = NaN, zl = /^[-+]0x[0-9a-f]+$/i, Ll = /^0b[01]+$/i, El = /^0o[0-7]+$/i, _l = parseInt;
137
- function Oe(e) {
136
+ var Ht = NaN, El = /^[-+]0x[0-9a-f]+$/i, _l = /^0b[01]+$/i, Ml = /^0o[0-7]+$/i, Tl = parseInt;
137
+ function $e(e) {
138
138
  if (typeof e == "number")
139
139
  return e;
140
- if (wl(e))
140
+ if (Sl(e))
141
141
  return Ht;
142
142
  if (tt(e)) {
143
143
  var l = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -145,133 +145,133 @@ function Oe(e) {
145
145
  }
146
146
  if (typeof e != "string")
147
147
  return e === 0 ? e : +e;
148
- e = Cl(e);
149
- var t = Ll.test(e);
150
- return t || El.test(e) ? _l(e.slice(2), t ? 2 : 8) : zl.test(e) ? Ht : +e;
148
+ e = Ll(e);
149
+ var n = _l.test(e);
150
+ return n || Ml.test(e) ? Tl(e.slice(2), n ? 2 : 8) : El.test(e) ? Ht : +e;
151
151
  }
152
- function Pl(e, l, t) {
153
- return e === e && (t !== void 0 && (e = e <= t ? e : t), l !== void 0 && (e = e >= l ? e : l)), e;
152
+ function Pl(e, l, n) {
153
+ return e === e && (n !== void 0 && (e = e <= n ? e : n), l !== void 0 && (e = e >= l ? e : l)), e;
154
154
  }
155
- function Qe(e, l, t) {
156
- return t === void 0 && (t = l, l = void 0), t !== void 0 && (t = Oe(t), t = t === t ? t : 0), l !== void 0 && (l = Oe(l), l = l === l ? l : 0), Pl(Oe(e), l, t);
155
+ function Qe(e, l, n) {
156
+ return n === void 0 && (n = l, l = void 0), n !== void 0 && (n = $e(n), n = n === n ? n : 0), l !== void 0 && (l = $e(l), l = l === l ? l : 0), Pl($e(e), l, n);
157
157
  }
158
- var dt = function() {
158
+ var ct = function() {
159
159
  return fn.Date.now();
160
- }, Tl = "Expected a function", Ml = Math.max, Il = Math.min;
161
- function pn(e, l, t) {
162
- var o, n, i, s, r, u, f = 0, d = !1, p = !1, _ = !0;
160
+ }, Il = "Expected a function", Fl = Math.max, Ol = Math.min;
161
+ function pn(e, l, n) {
162
+ var o, t, i, s, r, u, f = 0, d = !1, p = !1, E = !0;
163
163
  if (typeof e != "function")
164
- throw new TypeError(Tl);
165
- l = Oe(l) || 0, tt(t) && (d = !!t.leading, p = "maxWait" in t, i = p ? Ml(Oe(t.maxWait) || 0, l) : i, _ = "trailing" in t ? !!t.trailing : _);
166
- function I(z) {
167
- var E = o, A = n;
168
- return o = n = void 0, f = z, s = e.apply(A, E), s;
164
+ throw new TypeError(Il);
165
+ l = $e(l) || 0, tt(n) && (d = !!n.leading, p = "maxWait" in n, i = p ? Fl($e(n.maxWait) || 0, l) : i, E = "trailing" in n ? !!n.trailing : E);
166
+ function P(z) {
167
+ var L = o, B = t;
168
+ return o = t = void 0, f = z, s = e.apply(B, L), s;
169
169
  }
170
- function F(z) {
171
- return f = z, r = setTimeout(N, l), d ? I(z) : s;
170
+ function I(z) {
171
+ return f = z, r = setTimeout(A, l), d ? P(z) : s;
172
172
  }
173
173
  function $(z) {
174
- var E = z - u, A = z - f, Y = l - E;
175
- return p ? Il(Y, i - A) : Y;
174
+ var L = z - u, B = z - f, X = l - L;
175
+ return p ? Ol(X, i - B) : X;
176
176
  }
177
177
  function y(z) {
178
- var E = z - u, A = z - f;
179
- return u === void 0 || E >= l || E < 0 || p && A >= i;
178
+ var L = z - u, B = z - f;
179
+ return u === void 0 || L >= l || L < 0 || p && B >= i;
180
180
  }
181
- function N() {
182
- var z = dt();
181
+ function A() {
182
+ var z = ct();
183
183
  if (y(z))
184
184
  return H(z);
185
- r = setTimeout(N, $(z));
185
+ r = setTimeout(A, $(z));
186
186
  }
187
187
  function H(z) {
188
- return r = void 0, _ && o ? I(z) : (o = n = void 0, s);
188
+ return r = void 0, E && o ? P(z) : (o = t = void 0, s);
189
189
  }
190
- function W() {
191
- r !== void 0 && clearTimeout(r), f = 0, o = u = n = r = void 0;
190
+ function j() {
191
+ r !== void 0 && clearTimeout(r), f = 0, o = u = t = r = void 0;
192
192
  }
193
193
  function O() {
194
- return r === void 0 ? s : H(dt());
194
+ return r === void 0 ? s : H(ct());
195
195
  }
196
- function X() {
197
- var z = dt(), E = y(z);
198
- if (o = arguments, n = this, u = z, E) {
196
+ function Y() {
197
+ var z = ct(), L = y(z);
198
+ if (o = arguments, t = this, u = z, L) {
199
199
  if (r === void 0)
200
- return F(u);
200
+ return I(u);
201
201
  if (p)
202
- return clearTimeout(r), r = setTimeout(N, l), I(u);
202
+ return clearTimeout(r), r = setTimeout(A, l), P(u);
203
203
  }
204
- return r === void 0 && (r = setTimeout(N, l)), s;
204
+ return r === void 0 && (r = setTimeout(A, l)), s;
205
205
  }
206
- return X.cancel = W, X.flush = O, X;
206
+ return Y.cancel = j, Y.flush = O, Y;
207
207
  }
208
- var Fl = "Expected a function";
209
- function vn(e, l, t) {
210
- var o = !0, n = !0;
208
+ var $l = "Expected a function";
209
+ function vn(e, l, n) {
210
+ var o = !0, t = !0;
211
211
  if (typeof e != "function")
212
- throw new TypeError(Fl);
213
- return tt(t) && (o = "leading" in t ? !!t.leading : o, n = "trailing" in t ? !!t.trailing : n), pn(e, l, {
212
+ throw new TypeError($l);
213
+ return tt(n) && (o = "leading" in n ? !!n.leading : o, t = "trailing" in n ? !!n.trailing : t), pn(e, l, {
214
214
  leading: o,
215
215
  maxWait: l,
216
- trailing: n
216
+ trailing: t
217
217
  });
218
218
  }
219
- var Ol = Object.defineProperty, $l = Object.defineProperties, Rl = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Nl = Object.prototype.hasOwnProperty, Al = Object.prototype.propertyIsEnumerable, Wt = (e, l, t) => l in e ? Ol(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, nt = (e, l) => {
220
- for (var t in l || (l = {}))
221
- Nl.call(l, t) && Wt(e, t, l[t]);
222
- if (jt)
223
- for (var t of jt(l))
224
- Al.call(l, t) && Wt(e, t, l[t]);
219
+ var Rl = Object.defineProperty, Nl = Object.defineProperties, Al = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, Bl = Object.prototype.hasOwnProperty, Dl = Object.prototype.propertyIsEnumerable, jt = (e, l, n) => l in e ? Rl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[l] = n, nt = (e, l) => {
220
+ for (var n in l || (l = {}))
221
+ Bl.call(l, n) && jt(e, n, l[n]);
222
+ if (Wt)
223
+ for (var n of Wt(l))
224
+ Dl.call(l, n) && jt(e, n, l[n]);
225
225
  return e;
226
- }, mn = (e, l) => $l(e, Rl(l));
227
- const Bl = ["onPointerdown"], Dl = {
226
+ }, mn = (e, l) => Nl(e, Al(l));
227
+ const ql = ["onPointerdown"], Hl = {
228
228
  name: "ScrollbarThumb"
229
229
  };
230
- function ql(e, { expose: l }) {
231
- const t = e;
232
- Vn((E) => ({
230
+ function Wl(e, { expose: l }) {
231
+ const n = e;
232
+ Gn((L) => ({
233
233
  "1fb98f78": Q(o)
234
234
  }));
235
235
  const o = K(() => {
236
- var E;
237
- return `${(E = t.thumbWidth) != null ? E : 12}px`;
236
+ var L;
237
+ return `${(L = n.thumbWidth) != null ? L : 12}px`;
238
238
  });
239
- let n = null, i = pe(null);
239
+ let t = null, i = me(null);
240
240
  const s = { pageX: 0, pageY: 0, scrollPos: 0 };
241
241
  let r = null;
242
242
  const u = () => {
243
- n = setTimeout(() => {
244
- i.value && i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"), n = null;
245
- }, t.autoHideDelay);
243
+ t = setTimeout(() => {
244
+ i.value && i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"), t = null;
245
+ }, n.autoHideDelay);
246
246
  }, f = () => {
247
- n !== null && clearTimeout(n);
247
+ t !== null && clearTimeout(t);
248
248
  };
249
249
  Ze(f);
250
- const d = vn((E) => {
251
- E.stopPropagation(), E.preventDefault();
252
- const A = t.type === "horizontal" ? "pageX" : "pageY", Y = (E[A] - s[A]) / t.scrollInfo.wrapperMainSize * t.scrollInfo.contentMainSize;
253
- t.wrapperEl.scrollTo({ [t.type === "horizontal" ? "left" : "top"]: s.scrollPos + Y, behavior: "auto" });
250
+ const d = vn((L) => {
251
+ L.stopPropagation(), L.preventDefault();
252
+ const B = n.type === "horizontal" ? "pageX" : "pageY", X = (L[B] - s[B]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
+ n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: s.scrollPos + X, behavior: "auto" });
254
254
  }, 16), p = () => {
255
255
  u(), i.value.removeEventListener("pointermove", d), i.value.removeEventListener("pointerup", p), i.value.removeEventListener("pointercancel", p), i.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && i.value.releasePointerCapture(r), r = null;
256
- }, _ = (E) => {
257
- E.ctrlKey || E.button !== 0 || (f(), s.pageX = E.pageX, s.pageY = E.pageY, s.scrollPos = t.wrapperEl[t.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = E == null ? void 0 : E.pointerId, i.value.setPointerCapture(r), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", p), i.value.addEventListener("pointercancel", p), i.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
256
+ }, E = (L) => {
257
+ L.ctrlKey || L.button !== 0 || (f(), s.pageX = L.pageX, s.pageY = L.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = L == null ? void 0 : L.pointerId, i.value.setPointerCapture(r), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", p), i.value.addEventListener("pointercancel", p), i.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
258
258
  };
259
259
  l({
260
260
  autoHideAfterScroll: () => {
261
261
  f(), i.value && i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
262
262
  }
263
263
  });
264
- let F = pe(!1), $ = pe(!1), y = pe(null), N = null, H = null, W = K(() => t.fixedThumb && !$.value);
265
- const O = ([E]) => $.value = E.isIntersecting, X = ([E]) => F.value = E.isIntersecting, z = () => {
266
- N && (N.disconnect(), N = null), H && (H.disconnect(), H = null);
264
+ let I = me(!1), $ = me(!1), y = me(null), A = null, H = null, j = K(() => n.fixedThumb && !$.value);
265
+ const O = ([L]) => $.value = L.isIntersecting, Y = ([L]) => I.value = L.isIntersecting, z = () => {
266
+ A && (A.disconnect(), A = null), H && (H.disconnect(), H = null);
267
267
  };
268
- return ee(() => [t.fixedThumb, t.wrapperEl], () => {
269
- if (!t.fixedThumb || !t.wrapperEl)
268
+ return ee(() => [n.fixedThumb, n.wrapperEl], () => {
269
+ if (!n.fixedThumb || !n.wrapperEl)
270
270
  return z();
271
- z(), H = new IntersectionObserver(X, { threshold: [0, 0.5] }), H.observe(t.wrapperEl), N = new IntersectionObserver(O), N.observe(y.value);
272
- }), Ze(z), (E, A) => (b(), w(U, null, [
273
- he(C("div", {
274
- class: M([
271
+ z(), H = new IntersectionObserver(Y, { threshold: [0, 0.5] }), H.observe(n.wrapperEl), A = new IntersectionObserver(O), A.observe(y.value);
272
+ }), Ze(z), (L, B) => (m(), w(U, null, [
273
+ ve(C("div", {
274
+ class: T([
275
275
  "scrollbar__thumbPlaceholder",
276
276
  `scrollbar__thumbPlaceholder--${e.type}`,
277
277
  {
@@ -279,35 +279,35 @@ function ql(e, { expose: l }) {
279
279
  "scrollbar__thumbPlaceholder--autoExpand": e.autoExpand
280
280
  }
281
281
  ]),
282
- style: oe({
282
+ style: re({
283
283
  width: e.type === "horizontal" ? `${e.scrollInfo.thumbSize}px` : "",
284
284
  height: e.type === "vertical" ? `${e.scrollInfo.thumbSize}px` : "",
285
- position: W.value ? "fixed" : "absolute",
286
- [e.type === "vertical" ? "top" : "left"]: W.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
285
+ position: j.value ? "fixed" : "absolute",
286
+ [e.type === "vertical" ? "top" : "left"]: j.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
287
287
  }),
288
- ref: (Y, D) => {
289
- D.thumbEl = Y, i.value = Y;
288
+ ref: (X, Z) => {
289
+ Z.thumbEl = X, i.value = X;
290
290
  },
291
- onPointerdown: me(_, ["stop"])
291
+ onPointerdown: ye(E, ["stop"])
292
292
  }, [
293
- A[0] || (Dt(-1), A[0] = C("div", {
294
- class: M(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
- }, null, 2), Dt(1), A[0])
296
- ], 46, Bl), [
297
- [vt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? F.value : !0)]
293
+ B[0] || (Dt(-1), B[0] = C("div", {
294
+ class: T(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
+ }, null, 2), Dt(1), B[0])
296
+ ], 46, ql), [
297
+ [pt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? I.value : !0)]
298
298
  ]),
299
- t.fixedThumb ? he((b(), w("div", {
299
+ n.fixedThumb ? ve((m(), w("div", {
300
300
  key: 0,
301
- ref: (Y, D) => {
302
- D.shepherdEl = Y, y.value = Y;
301
+ ref: (X, Z) => {
302
+ Z.shepherdEl = X, y.value = X;
303
303
  },
304
- class: M(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
304
+ class: T(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
305
305
  }, null, 2)), [
306
- [vt, !!e.scrollInfo.thumbSize]
307
- ]) : R("", !0)
306
+ [pt, !!e.scrollInfo.thumbSize]
307
+ ]) : N("", !0)
308
308
  ], 64));
309
309
  }
310
- const Hl = /* @__PURE__ */ ge(mn(nt({}, Dl), {
310
+ const jl = /* @__PURE__ */ we(mn(nt({}, Hl), {
311
311
  props: {
312
312
  type: null,
313
313
  autoExpand: null,
@@ -318,115 +318,115 @@ const Hl = /* @__PURE__ */ ge(mn(nt({}, Dl), {
318
318
  thumbWidth: null,
319
319
  wrapperEl: null
320
320
  },
321
- setup: ql
322
- })), jl = {
321
+ setup: Wl
322
+ })), Vl = {
323
323
  wait: 333,
324
324
  type: "debounce"
325
325
  };
326
326
  function Vt(...e) {
327
327
  const l = "value" in (e == null ? void 0 : e[0]);
328
- let t;
329
- l ? t = e == null ? void 0 : e[1] : t = e == null ? void 0 : e[0];
330
- const { wait: o, type: n, callback: i } = nt(nt({}, jl), t), s = l ? e[0] : pe(null), r = Gn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
- const _ = s.value.getBoundingClientRect();
332
- r.left = _.left, r.top = _.top, r.right = _.right, r.bottom = _.bottom, r.width = _.width, r.height = _.height, r.x = _.x, r.y = _.y, i == null || i();
328
+ let n;
329
+ l ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
330
+ const { wait: o, type: t, callback: i } = nt(nt({}, Vl), n), s = l ? e[0] : me(null), r = Kn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
+ const E = s.value.getBoundingClientRect();
332
+ r.left = E.left, r.top = E.top, r.right = E.right, r.bottom = E.bottom, r.width = E.width, r.height = E.height, r.x = E.x, r.y = E.y, i == null || i();
333
333
  };
334
334
  let f = null, d = null;
335
335
  const p = () => {
336
336
  f && window.removeEventListener("resize", f), d && (d.disconnect(), d = null);
337
337
  };
338
- return Qn(() => {
339
- s.value && (p(), f = u, n === "throttle" && o >= 4 ? f = vn(f, o) : n === "debounce" && o >= 4 && (f = pn(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(s.value));
338
+ return Xn(() => {
339
+ s.value && (p(), f = u, t === "throttle" && o >= 4 ? f = vn(f, o) : t === "debounce" && o >= 4 && (f = pn(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(s.value));
340
340
  }), Ze(p), l ? r : [s, r];
341
341
  }
342
- const Wl = {
342
+ const Ul = {
343
343
  name: "CustomScrollbar",
344
344
  inheritAttrs: !1
345
345
  };
346
- function Vl(e, { expose: l, emit: t }) {
347
- const o = e, n = {
346
+ function Gl(e, { expose: l, emit: n }) {
347
+ const o = e, t = {
348
348
  horizontal: { el: null, instance: null },
349
349
  vertical: { el: null, instance: null }
350
- }, i = (O, X) => {
351
- n[X].instance || (n[X].instance = O);
350
+ }, i = (O, Y) => {
351
+ t[Y].instance || (t[Y].instance = O);
352
352
  };
353
- let s = pe(null), r = pe(null);
354
- Ce(() => {
353
+ let s = me(null), r = me(null);
354
+ Le(() => {
355
355
  var O;
356
- const X = Array.from((O = s.value.parentElement) == null ? void 0 : O.childNodes);
357
- for (const z in n)
358
- n[z].el = X.find((E) => {
359
- var A;
360
- return (A = E == null ? void 0 : E.classList) == null ? void 0 : A.contains(`scrollbar__thumbPlaceholder--${z}`);
356
+ const Y = Array.from((O = s.value.parentElement) == null ? void 0 : O.childNodes);
357
+ for (const z in t)
358
+ t[z].el = Y.find((L) => {
359
+ var B;
360
+ return (B = L == null ? void 0 : L.classList) == null ? void 0 : B.contains(`scrollbar__thumbPlaceholder--${z}`);
361
361
  });
362
362
  });
363
- const u = Vt(s, { wait: o.throttleWait, type: o.throttleType, callback: _ }), f = Vt(r, { wait: o.throttleWait, type: o.throttleType, callback: _ });
364
- let d = pe(0), p = pe(0);
365
- function _() {
363
+ const u = Vt(s, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Vt(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
364
+ let d = me(0), p = me(0);
365
+ function E() {
366
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
- let I = K(() => ({
368
+ let P = K(() => ({
369
369
  thumbSize: p.value ? Qe(u.width / s.value.scrollWidth * u.width, o.thumbMinSize > u.width ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
370
370
  contentMainSize: f.width,
371
371
  wrapperMainSize: u.width,
372
372
  boundaryDistance: Math.abs(u.left)
373
- })), F = K(() => ({
373
+ })), I = K(() => ({
374
374
  thumbSize: d.value ? Qe(u.height / s.value.scrollHeight * u.height, o.thumbMinSize > u.height ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
375
375
  contentMainSize: f.height,
376
376
  wrapperMainSize: u.height,
377
377
  boundaryDistance: Math.abs(u.top)
378
- })), $ = K(() => u.height - F.value.thumbSize - 5), y = K(() => u.width - I.value.thumbSize - 5);
379
- const N = () => {
380
- p.value && (n.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / p.value * y.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * $.value}px, 0)`, n.vertical.instance.autoHideAfterScroll());
378
+ })), $ = K(() => u.height - I.value.thumbSize - 5), y = K(() => u.width - P.value.thumbSize - 5);
379
+ const A = () => {
380
+ p.value && (t.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
381
381
  };
382
- ee(() => [p.value, d.value], N);
382
+ ee(() => [p.value, d.value], A);
383
383
  const H = (O) => {
384
384
  O.stopPropagation();
385
- const X = s.value.scrollLeft, z = s.value.scrollTop, E = Qe(X + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, A = Qe(z + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
- s.value.scrollLeft = E, s.value.scrollTop = A, p.value && (n.horizontal.el.style.transform = `translate3d(${E / p.value * y.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${A / d.value * $.value}px, 0)`, n.vertical.instance.autoHideAfterScroll()), t("scroll", { target: s.value, scrollLeft: E, scrollTop: A });
387
- }, W = (O) => {
388
- o.simulateScroll ? H(O) : N();
385
+ const Y = s.value.scrollLeft, z = s.value.scrollTop, L = Qe(Y + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, B = Qe(z + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
+ s.value.scrollLeft = L, s.value.scrollTop = B, p.value && (t.horizontal.el.style.transform = `translate3d(${L / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${B / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: L, scrollTop: B });
387
+ }, j = (O) => {
388
+ o.simulateScroll ? H(O) : A();
389
389
  };
390
- return ee(u, () => t("wrapperResize", u)), ee(f, () => t("contentResize", f)), l({
390
+ return ee(u, () => n("wrapperResize", u)), ee(f, () => n("contentResize", f)), l({
391
391
  scrollEl: s
392
- }), (O, X) => (b(), w("div", {
393
- class: M(["scrollbar__wrapper", e.wrapperClass]),
394
- style: oe(e.wrapperStyle)
392
+ }), (O, Y) => (m(), w("div", {
393
+ class: T(["scrollbar__wrapper", e.wrapperClass]),
394
+ style: re(e.wrapperStyle)
395
395
  }, [
396
- C("div", Un({
397
- ref: (z, E) => {
398
- E.wrapperEl = z, s.value = z;
396
+ C("div", Qn({
397
+ ref: (z, L) => {
398
+ L.wrapperEl = z, s.value = z;
399
399
  },
400
400
  class: "scrollbar__scroller"
401
401
  }, O.$attrs, {
402
- onWheel: W,
403
- onScroll: W
402
+ onWheel: j,
403
+ onScroll: j
404
404
  }), [
405
405
  C("div", {
406
- ref: (z, E) => {
407
- E.contentEl = z, r.value = z;
406
+ ref: (z, L) => {
407
+ L.contentEl = z, r.value = z;
408
408
  },
409
- class: M(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
410
- style: oe(e.contentStyle)
409
+ class: T(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
410
+ style: re(e.contentStyle)
411
411
  }, [
412
- se(O.$slots, "default")
412
+ ae(O.$slots, "default")
413
413
  ], 6)
414
414
  ], 16),
415
- (b(), w(U, null, fe(n, (z, E) => ne(Hl, {
416
- ref: (A) => i(A, E),
417
- key: E,
415
+ (m(), w(U, null, pe(t, (z, L) => le(jl, {
416
+ ref: (B) => i(B, L),
417
+ key: L,
418
418
  autoExpand: e.autoExpand,
419
419
  autoHide: e.autoHide,
420
420
  autoHideDelay: e.autoHideDelay,
421
- fixedThumb: E === e.direction ? !1 : e.fixedThumb,
422
- type: E,
423
- scrollInfo: E === "vertical" ? F.value : I.value,
421
+ fixedThumb: L === e.direction ? !1 : e.fixedThumb,
422
+ type: L,
423
+ scrollInfo: L === "vertical" ? I.value : P.value,
424
424
  thumbWidth: e.thumbWidth,
425
425
  wrapperEl: s.value
426
426
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
427
427
  ], 6));
428
428
  }
429
- const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
429
+ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
430
430
  props: {
431
431
  wrapperClass: null,
432
432
  wrapperStyle: null,
@@ -445,7 +445,7 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
445
445
  simulateScroll: null
446
446
  },
447
447
  emits: ["wrapperResize", "contentResize", "scroll"],
448
- setup: Vl
448
+ setup: Gl
449
449
  })), Ut = {
450
450
  __name: "splitpanes",
451
451
  props: {
@@ -469,44 +469,44 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
469
469
  "splitter-dblclick"
470
470
  ],
471
471
  setup(e, { emit: l }) {
472
- const t = l, o = e, n = un(), i = B([]), s = K(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = K(() => i.value.length), u = B(null), f = B(!1), d = B({
472
+ const n = l, o = e, t = un(), i = D([]), s = K(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = K(() => i.value.length), u = D(null), f = D(!1), d = D({
473
473
  mouseDown: !1,
474
474
  dragging: !1,
475
475
  activeSplitter: null,
476
476
  cursorOffset: 0
477
477
  // Cursor offset within the splitter.
478
- }), p = B({
478
+ }), p = D({
479
479
  // Used to detect double click on touch devices.
480
480
  splitter: null,
481
481
  timeoutId: null
482
- }), _ = K(() => ({
482
+ }), E = K(() => ({
483
483
  [`splitpanes splitpanes--${o.horizontal ? "horizontal" : "vertical"}`]: !0,
484
484
  "splitpanes--dragging": d.value.dragging
485
- })), I = () => {
486
- document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", N), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", N));
487
- }, F = () => {
488
- document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", N), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", N));
485
+ })), P = () => {
486
+ document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", A));
487
+ }, I = () => {
488
+ document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", A));
489
489
  }, $ = (c, g) => {
490
490
  const S = c.target.closest(".splitpanes__splitter");
491
491
  if (S) {
492
- const { left: m, top: x } = S.getBoundingClientRect(), { clientX: T, clientY: L } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
- d.value.cursorOffset = o.horizontal ? L - x : T - m;
492
+ const { left: b, top: x } = S.getBoundingClientRect(), { clientX: _, clientY: R } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
+ d.value.cursorOffset = o.horizontal ? R - x : _ - b;
494
494
  }
495
- I(), d.value.mouseDown = !0, d.value.activeSplitter = g;
495
+ P(), d.value.mouseDown = !0, d.value.activeSplitter = g;
496
496
  }, y = (c) => {
497
497
  d.value.mouseDown && (c.preventDefault(), d.value.dragging = !0, requestAnimationFrame(() => {
498
- E(X(c)), ie("resize", { event: c }, !0);
498
+ L(Y(c)), ie("resize", { event: c }, !0);
499
499
  }));
500
- }, N = (c) => {
500
+ }, A = (c) => {
501
501
  d.value.dragging && ie("resized", { event: c }, !0), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
502
- d.value.dragging = !1, F();
502
+ d.value.dragging = !1, I();
503
503
  }, 100);
504
504
  }, H = (c, g) => {
505
- "ontouchstart" in window && (c.preventDefault(), p.value.splitter === g ? (clearTimeout(p.value.timeoutId), p.value.timeoutId = null, W(c, g), p.value.splitter = null) : (p.value.splitter = g, p.value.timeoutId = setTimeout(() => p.value.splitter = null, 500))), d.value.dragging || ie("splitter-click", { event: c, index: g }, !0);
506
- }, W = (c, g) => {
505
+ "ontouchstart" in window && (c.preventDefault(), p.value.splitter === g ? (clearTimeout(p.value.timeoutId), p.value.timeoutId = null, j(c, g), p.value.splitter = null) : (p.value.splitter = g, p.value.timeoutId = setTimeout(() => p.value.splitter = null, 500))), d.value.dragging || ie("splitter-click", { event: c, index: g }, !0);
506
+ }, j = (c, g) => {
507
507
  if (ie("splitter-dblclick", { event: c, index: g }, !0), o.maximizePanes) {
508
508
  let S = 0;
509
- i.value = i.value.map((m, x) => (m.size = x === g ? m.max : m.min, x !== g && (S += m.min), m)), i.value[g].size -= S, ie("pane-maximize", { event: c, index: g, pane: i.value[g] }), ie("resized", { event: c, index: g }, !0);
509
+ i.value = i.value.map((b, x) => (b.size = x === g ? b.max : b.min, x !== g && (S += b.min), b)), i.value[g].size -= S, ie("pane-maximize", { event: c, index: g, pane: i.value[g] }), ie("resized", { event: c, index: g }, !0);
510
510
  }
511
511
  }, O = (c, g) => {
512
512
  ie("pane-click", {
@@ -514,155 +514,155 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
514
514
  index: s.value[g].index,
515
515
  pane: s.value[g]
516
516
  });
517
- }, X = (c) => {
518
- const g = u.value.getBoundingClientRect(), { clientX: S, clientY: m } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
517
+ }, Y = (c) => {
518
+ const g = u.value.getBoundingClientRect(), { clientX: S, clientY: b } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
519
519
  return {
520
520
  x: S - (o.horizontal ? 0 : d.value.cursorOffset) - g.left,
521
- y: m - (o.horizontal ? d.value.cursorOffset : 0) - g.top
521
+ y: b - (o.horizontal ? d.value.cursorOffset : 0) - g.top
522
522
  };
523
523
  }, z = (c) => {
524
524
  c = c[o.horizontal ? "y" : "x"];
525
525
  const g = u.value[o.horizontal ? "clientHeight" : "clientWidth"];
526
526
  return o.rtl && !o.horizontal && (c = g - c), c * 100 / g;
527
- }, E = (c) => {
527
+ }, L = (c) => {
528
528
  const g = d.value.activeSplitter;
529
529
  let S = {
530
- prevPanesSize: Y(g),
531
- nextPanesSize: D(g),
530
+ prevPanesSize: X(g),
531
+ nextPanesSize: Z(g),
532
532
  prevReachedMinPanes: 0,
533
533
  nextReachedMinPanes: 0
534
534
  };
535
- const m = 0 + (o.pushOtherPanes ? 0 : S.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : S.nextPanesSize), T = Math.max(Math.min(z(c), x), m);
536
- let L = [g, g + 1], Z = i.value[L[0]] || null, le = i.value[L[1]] || null;
537
- const ce = Z.max < 100 && T >= Z.max + S.prevPanesSize, at = le.max < 100 && T <= 100 - (le.max + D(g + 1));
538
- if (ce || at) {
539
- ce ? (Z.size = Z.max, le.size = Math.max(100 - Z.max - S.prevPanesSize - S.nextPanesSize, 0)) : (Z.size = Math.max(100 - le.max - S.prevPanesSize - D(g + 1), 0), le.size = le.max);
535
+ const b = 0 + (o.pushOtherPanes ? 0 : S.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : S.nextPanesSize), _ = Math.max(Math.min(z(c), x), b);
536
+ let R = [g, g + 1], te = i.value[R[0]] || null, F = i.value[R[1]] || null;
537
+ const xe = te.max < 100 && _ >= te.max + S.prevPanesSize, Ve = F.max < 100 && _ <= 100 - (F.max + Z(g + 1));
538
+ if (xe || Ve) {
539
+ xe ? (te.size = te.max, F.size = Math.max(100 - te.max - S.prevPanesSize - S.nextPanesSize, 0)) : (te.size = Math.max(100 - F.max - S.prevPanesSize - Z(g + 1), 0), F.size = F.max);
540
540
  return;
541
541
  }
542
542
  if (o.pushOtherPanes) {
543
- const Ve = A(S, T);
544
- if (!Ve) return;
545
- ({ sums: S, panesToResize: L } = Ve), Z = i.value[L[0]] || null, le = i.value[L[1]] || null;
543
+ const fe = B(S, _);
544
+ if (!fe) return;
545
+ ({ sums: S, panesToResize: R } = fe), te = i.value[R[0]] || null, F = i.value[R[1]] || null;
546
546
  }
547
- Z !== null && (Z.size = Math.min(Math.max(T - S.prevPanesSize - S.prevReachedMinPanes, Z.min), Z.max)), le !== null && (le.size = Math.min(Math.max(100 - T - S.nextPanesSize - S.nextReachedMinPanes, le.min), le.max));
548
- }, A = (c, g) => {
549
- const S = d.value.activeSplitter, m = [S, S + 1];
550
- return g < c.prevPanesSize + i.value[m[0]].min && (m[0] = Be(S).index, c.prevReachedMinPanes = 0, m[0] < S && i.value.forEach((x, T) => {
551
- T > m[0] && T <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
552
- }), c.prevPanesSize = Y(m[0]), m[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((x, T) => {
553
- T > 0 && T <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
554
- }), i.value[m[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : g > 100 - c.nextPanesSize - i.value[m[1]].min && (m[1] = J(S).index, c.nextReachedMinPanes = 0, m[1] > S + 1 && i.value.forEach((x, T) => {
555
- T > S && T < m[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
556
- }), c.nextPanesSize = D(m[1] - 1), m[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, T) => {
557
- T < r.value - 1 && T >= S + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
558
- }), i.value[m[0]].size = 100 - c.prevPanesSize - D(m[0] - 1), null) : { sums: c, panesToResize: m };
559
- }, Y = (c) => i.value.reduce((g, S, m) => g + (m < c ? S.size : 0), 0), D = (c) => i.value.reduce((g, S, m) => g + (m > c + 1 ? S.size : 0), 0), Be = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, J = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, re = () => {
547
+ te !== null && (te.size = Math.min(Math.max(_ - S.prevPanesSize - S.prevReachedMinPanes, te.min), te.max)), F !== null && (F.size = Math.min(Math.max(100 - _ - S.nextPanesSize - S.nextReachedMinPanes, F.min), F.max));
548
+ }, B = (c, g) => {
549
+ const S = d.value.activeSplitter, b = [S, S + 1];
550
+ return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = st(S).index, c.prevReachedMinPanes = 0, b[0] < S && i.value.forEach((x, _) => {
551
+ _ > b[0] && _ <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
552
+ }), c.prevPanesSize = X(b[0]), b[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((x, _) => {
553
+ _ > 0 && _ <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
554
+ }), i.value[b[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : g > 100 - c.nextPanesSize - i.value[b[1]].min && (b[1] = oe(S).index, c.nextReachedMinPanes = 0, b[1] > S + 1 && i.value.forEach((x, _) => {
555
+ _ > S && _ < b[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
556
+ }), c.nextPanesSize = Z(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, _) => {
557
+ _ < r.value - 1 && _ >= S + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
558
+ }), i.value[b[0]].size = 100 - c.prevPanesSize - Z(b[0] - 1), null) : { sums: c, panesToResize: b };
559
+ }, X = (c) => i.value.reduce((g, S, b) => g + (b < c ? S.size : 0), 0), Z = (c) => i.value.reduce((g, S, b) => g + (b > c + 1 ? S.size : 0), 0), st = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, oe = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, De = () => {
560
560
  var c;
561
561
  const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
562
562
  for (const S of g) {
563
- const m = S.classList.contains("splitpanes__pane"), x = S.classList.contains("splitpanes__splitter");
564
- !m && !x && (S.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
563
+ const b = S.classList.contains("splitpanes__pane"), x = S.classList.contains("splitpanes__splitter");
564
+ !b && !x && (S.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
565
565
  }
566
- }, ze = (c, g, S = !1) => {
567
- const m = c - 1, x = document.createElement("div");
568
- x.classList.add("splitpanes__splitter"), S || (x.onmousedown = (T) => $(T, m), typeof window < "u" && "ontouchstart" in window && (x.ontouchstart = (T) => $(T, m)), x.onclick = (T) => H(T, m + 1)), x.ondblclick = (T) => W(T, m + 1), g.parentNode.insertBefore(x, g);
569
- }, Te = (c) => {
566
+ }, J = (c, g, S = !1) => {
567
+ const b = c - 1, x = document.createElement("div");
568
+ x.classList.add("splitpanes__splitter"), S || (x.onmousedown = (_) => $(_, b), typeof window < "u" && "ontouchstart" in window && (x.ontouchstart = (_) => $(_, b)), x.onclick = (_) => H(_, b + 1)), x.ondblclick = (_) => j(_, b + 1), g.parentNode.insertBefore(x, g);
569
+ }, se = (c) => {
570
570
  c.onmousedown = void 0, c.onclick = void 0, c.ondblclick = void 0, c.remove();
571
- }, be = () => {
571
+ }, ge = () => {
572
572
  var c;
573
573
  const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
574
- for (const m of g)
575
- m.className.includes("splitpanes__splitter") && Te(m);
574
+ for (const b of g)
575
+ b.className.includes("splitpanes__splitter") && se(b);
576
576
  let S = 0;
577
- for (const m of g)
578
- m.className.includes("splitpanes__pane") && (!S && o.firstSplitter ? ze(S, m, !0) : S && ze(S, m), S++);
579
- }, De = ({ uid: c, ...g }) => {
577
+ for (const b of g)
578
+ b.className.includes("splitpanes__pane") && (!S && o.firstSplitter ? J(S, b, !0) : S && J(S, b), S++);
579
+ }, Pe = ({ uid: c, ...g }) => {
580
580
  const S = s.value[c];
581
- for (const [m, x] of Object.entries(g)) S[m] = x;
582
- }, ye = (c) => {
581
+ for (const [b, x] of Object.entries(g)) S[b] = x;
582
+ }, qe = (c) => {
583
583
  var g;
584
584
  let S = -1;
585
- Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((m) => (m.className.includes("splitpanes__pane") && S++, m.isSameNode(c.el))), i.value.splice(S, 0, { ...c, index: S }), i.value.forEach((m, x) => m.index = x), f.value && Fe(() => {
586
- be(), Le({ addedPane: i.value[S] }), ie("pane-add", { pane: i.value[S] });
585
+ Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((b) => (b.className.includes("splitpanes__pane") && S++, b.isSameNode(c.el))), i.value.splice(S, 0, { ...c, index: S }), i.value.forEach((b, x) => b.index = x), f.value && Oe(() => {
586
+ ge(), de({ addedPane: i.value[S] }), ie("pane-add", { pane: i.value[S] });
587
587
  });
588
- }, ae = (c) => {
589
- const g = i.value.findIndex((m) => m.id === c);
588
+ }, He = (c) => {
589
+ const g = i.value.findIndex((b) => b.id === c);
590
590
  i.value[g].el = null;
591
591
  const S = i.value.splice(g, 1)[0];
592
- i.value.forEach((m, x) => m.index = x), Fe(() => {
593
- be(), ie("pane-remove", { pane: S }), Le({ removedPane: { ...S } });
592
+ i.value.forEach((b, x) => b.index = x), Oe(() => {
593
+ ge(), ie("pane-remove", { pane: S }), de({ removedPane: { ...S } });
594
594
  });
595
- }, Le = (c = {}) => {
596
- !c.addedPane && !c.removedPane ? He() : i.value.some((g) => g.givenSize !== null || g.min || g.max < 100) ? je(c) : qe(), f.value && ie("resized");
597
- }, qe = () => {
595
+ }, de = (c = {}) => {
596
+ !c.addedPane && !c.removedPane ? We() : i.value.some((g) => g.givenSize !== null || g.min || g.max < 100) ? je(c) : ue(), f.value && ie("resized");
597
+ }, ue = () => {
598
598
  const c = 100 / r.value;
599
599
  let g = 0;
600
- const S = [], m = [];
600
+ const S = [], b = [];
601
601
  for (const x of i.value)
602
- x.size = Math.max(Math.min(c, x.max), x.min), g -= x.size, x.size >= x.max && S.push(x.id), x.size <= x.min && m.push(x.id);
603
- g > 0.1 && We(g, S, m);
604
- }, He = () => {
602
+ x.size = Math.max(Math.min(c, x.max), x.min), g -= x.size, x.size >= x.max && S.push(x.id), x.size <= x.min && b.push(x.id);
603
+ g > 0.1 && Ee(g, S, b);
604
+ }, We = () => {
605
605
  let c = 100;
606
606
  const g = [], S = [];
607
- let m = 0;
608
- for (const T of i.value)
609
- c -= T.size, T.givenSize !== null && m++, T.size >= T.max && g.push(T.id), T.size <= T.min && S.push(T.id);
607
+ let b = 0;
608
+ for (const _ of i.value)
609
+ c -= _.size, _.givenSize !== null && b++, _.size >= _.max && g.push(_.id), _.size <= _.min && S.push(_.id);
610
610
  let x = 100;
611
611
  if (c > 0.1) {
612
- for (const T of i.value)
613
- T.givenSize === null && (T.size = Math.max(Math.min(c / (r.value - m), T.max), T.min)), x -= T.size;
614
- x > 0.1 && We(x, g, S);
612
+ for (const _ of i.value)
613
+ _.givenSize === null && (_.size = Math.max(Math.min(c / (r.value - b), _.max), _.min)), x -= _.size;
614
+ x > 0.1 && Ee(x, g, S);
615
615
  }
616
616
  }, je = ({ addedPane: c, removedPane: g } = {}) => {
617
- let S = 100 / r.value, m = 0;
618
- const x = [], T = [];
617
+ let S = 100 / r.value, b = 0;
618
+ const x = [], _ = [];
619
619
  ((c == null ? void 0 : c.givenSize) ?? null) !== null && (S = (100 - c.givenSize) / (r.value - 1));
620
- for (const L of i.value)
621
- m -= L.size, L.size >= L.max && x.push(L.id), L.size <= L.min && T.push(L.id);
622
- if (!(Math.abs(m) < 0.1)) {
623
- for (const L of i.value)
624
- (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === L.id || (L.size = Math.max(Math.min(S, L.max), L.min)), m -= L.size, L.size >= L.max && x.push(L.id), L.size <= L.min && T.push(L.id);
625
- m > 0.1 && We(m, x, T);
620
+ for (const R of i.value)
621
+ b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && _.push(R.id);
622
+ if (!(Math.abs(b) < 0.1)) {
623
+ for (const R of i.value)
624
+ (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === R.id || (R.size = Math.max(Math.min(S, R.max), R.min)), b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && _.push(R.id);
625
+ b > 0.1 && Ee(b, x, _);
626
626
  }
627
- }, We = (c, g, S) => {
628
- let m;
629
- c > 0 ? m = c / (r.value - g.length) : m = c / (r.value - S.length), i.value.forEach((x, T) => {
627
+ }, Ee = (c, g, S) => {
628
+ let b;
629
+ c > 0 ? b = c / (r.value - g.length) : b = c / (r.value - S.length), i.value.forEach((x, _) => {
630
630
  if (c > 0 && !g.includes(x.id)) {
631
- const L = Math.max(Math.min(x.size + m, x.max), x.min), Z = L - x.size;
632
- c -= Z, x.size = L;
631
+ const R = Math.max(Math.min(x.size + b, x.max), x.min), te = R - x.size;
632
+ c -= te, x.size = R;
633
633
  } else if (!S.includes(x.id)) {
634
- const L = Math.max(Math.min(x.size + m, x.max), x.min), Z = L - x.size;
635
- c -= Z, x.size = L;
634
+ const R = Math.max(Math.min(x.size + b, x.max), x.min), te = R - x.size;
635
+ c -= te, x.size = R;
636
636
  }
637
- }), Math.abs(c) > 0.1 && Fe(() => {
637
+ }), Math.abs(c) > 0.1 && Oe(() => {
638
638
  f.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
639
639
  });
640
640
  }, ie = (c, g = void 0, S = !1) => {
641
- const m = (g == null ? void 0 : g.index) ?? d.value.activeSplitter ?? null;
642
- t(c, {
641
+ const b = (g == null ? void 0 : g.index) ?? d.value.activeSplitter ?? null;
642
+ n(c, {
643
643
  ...g,
644
- ...m !== null && { index: m },
645
- ...S && m !== null && {
646
- prevPane: i.value[m - (o.firstSplitter ? 1 : 0)],
647
- nextPane: i.value[m + (o.firstSplitter ? 0 : 1)]
644
+ ...b !== null && { index: b },
645
+ ...S && b !== null && {
646
+ prevPane: i.value[b - (o.firstSplitter ? 1 : 0)],
647
+ nextPane: i.value[b + (o.firstSplitter ? 0 : 1)]
648
648
  },
649
649
  panes: i.value.map((x) => ({ min: x.min, max: x.max, size: x.size }))
650
650
  });
651
651
  };
652
- ee(() => o.firstSplitter, () => be()), Ce(() => {
653
- re(), be(), Le(), ie("ready"), f.value = !0;
654
- }), Lt(() => f.value = !1);
655
- const st = () => {
652
+ ee(() => o.firstSplitter, () => ge()), Le(() => {
653
+ De(), ge(), de(), ie("ready"), f.value = !0;
654
+ }), zt(() => f.value = !1);
655
+ const It = () => {
656
656
  var c;
657
- return mt(
657
+ return vt(
658
658
  "div",
659
- { ref: u, class: _.value },
660
- (c = n.default) == null ? void 0 : c.call(n)
659
+ { ref: u, class: E.value },
660
+ (c = t.default) == null ? void 0 : c.call(t)
661
661
  );
662
662
  };
663
- return Se("panes", i), Se("indexedPanes", s), Se("horizontal", K(() => o.horizontal)), Se("requestUpdate", De), Se("onPaneAdd", ye), Se("onPaneRemove", ae), Se("onPaneClick", O), (c, g) => (b(), ue(Kn(st)));
663
+ return Ce("panes", i), Ce("indexedPanes", s), Ce("horizontal", K(() => o.horizontal)), Ce("requestUpdate", Pe), Ce("onPaneAdd", qe), Ce("onPaneRemove", He), Ce("onPaneClick", O), (c, g) => (m(), ce(Yn(It)));
664
664
  }
665
- }, ft = {
665
+ }, dt = {
666
666
  __name: "pane",
667
667
  props: {
668
668
  size: { type: [Number, String] },
@@ -671,59 +671,59 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
671
671
  },
672
672
  setup(e) {
673
673
  var l;
674
- const t = e, o = Ee("requestUpdate"), n = Ee("onPaneAdd"), i = Ee("horizontal"), s = Ee("onPaneRemove"), r = Ee("onPaneClick"), u = (l = zt()) == null ? void 0 : l.uid, f = Ee("indexedPanes"), d = K(() => f.value[u]), p = B(null), _ = K(() => {
675
- const y = isNaN(t.size) || t.size === void 0 ? 0 : parseFloat(t.size);
676
- return Math.max(Math.min(y, F.value), I.value);
677
- }), I = K(() => {
678
- const y = parseFloat(t.minSize);
674
+ const n = e, o = _e("requestUpdate"), t = _e("onPaneAdd"), i = _e("horizontal"), s = _e("onPaneRemove"), r = _e("onPaneClick"), u = (l = Ct()) == null ? void 0 : l.uid, f = _e("indexedPanes"), d = K(() => f.value[u]), p = D(null), E = K(() => {
675
+ const y = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
676
+ return Math.max(Math.min(y, I.value), P.value);
677
+ }), P = K(() => {
678
+ const y = parseFloat(n.minSize);
679
679
  return isNaN(y) ? 0 : y;
680
- }), F = K(() => {
681
- const y = parseFloat(t.maxSize);
680
+ }), I = K(() => {
681
+ const y = parseFloat(n.maxSize);
682
682
  return isNaN(y) ? 100 : y;
683
683
  }), $ = K(() => {
684
684
  var y;
685
685
  return `${i.value ? "height" : "width"}: ${(y = d.value) == null ? void 0 : y.size}%`;
686
686
  });
687
- return ee(() => _.value, (y) => o({ uid: u, size: y })), ee(() => I.value, (y) => o({ uid: u, min: y })), ee(() => F.value, (y) => o({ uid: u, max: y })), Ce(() => {
688
- n({
687
+ return ee(() => E.value, (y) => o({ uid: u, size: y })), ee(() => P.value, (y) => o({ uid: u, min: y })), ee(() => I.value, (y) => o({ uid: u, max: y })), Le(() => {
688
+ t({
689
689
  id: u,
690
690
  el: p.value,
691
- min: I.value,
692
- max: F.value,
691
+ min: P.value,
692
+ max: I.value,
693
693
  // The given size (useful to know the user intention).
694
- givenSize: t.size === void 0 ? null : _.value,
695
- size: _.value
694
+ givenSize: n.size === void 0 ? null : E.value,
695
+ size: E.value
696
696
  // The computed current size at any time.
697
697
  });
698
- }), Lt(() => s(u)), (y, N) => (b(), w("div", {
698
+ }), zt(() => s(u)), (y, A) => (m(), w("div", {
699
699
  ref_key: "paneEl",
700
700
  ref: p,
701
701
  class: "splitpanes__pane",
702
- onClick: N[0] || (N[0] = (H) => Q(r)(H, y._.uid)),
703
- style: oe($.value)
702
+ onClick: A[0] || (A[0] = (H) => Q(r)(H, y._.uid)),
703
+ style: re($.value)
704
704
  }, [
705
- se(y.$slots, "default")
705
+ ae(y.$slots, "default")
706
706
  ], 4));
707
707
  }
708
- }, $e = /^[a-z0-9]+(-[a-z0-9]+)*$/, ot = (e, l, t, o = "") => {
709
- const n = e.split(":");
708
+ }, Re = /^[a-z0-9]+(-[a-z0-9]+)*$/, ot = (e, l, n, o = "") => {
709
+ const t = e.split(":");
710
710
  if (e.slice(0, 1) === "@") {
711
- if (n.length < 2 || n.length > 3)
711
+ if (t.length < 2 || t.length > 3)
712
712
  return null;
713
- o = n.shift().slice(1);
713
+ o = t.shift().slice(1);
714
714
  }
715
- if (n.length > 3 || !n.length)
715
+ if (t.length > 3 || !t.length)
716
716
  return null;
717
- if (n.length > 1) {
718
- const r = n.pop(), u = n.pop(), f = {
717
+ if (t.length > 1) {
718
+ const r = t.pop(), u = t.pop(), f = {
719
719
  // Allow provider without '@': "provider:prefix:name"
720
- provider: n.length > 0 ? n[0] : o,
720
+ provider: t.length > 0 ? t[0] : o,
721
721
  prefix: u,
722
722
  name: r
723
723
  };
724
724
  return l && !Xe(f) ? null : f;
725
725
  }
726
- const i = n[0], s = i.split("-");
726
+ const i = t[0], s = i.split("-");
727
727
  if (s.length > 1) {
728
728
  const r = {
729
729
  provider: o,
@@ -732,16 +732,16 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
732
732
  };
733
733
  return l && !Xe(r) ? null : r;
734
734
  }
735
- if (t && o === "") {
735
+ if (n && o === "") {
736
736
  const r = {
737
737
  provider: o,
738
738
  prefix: "",
739
739
  name: i
740
740
  };
741
- return l && !Xe(r, t) ? null : r;
741
+ return l && !Xe(r, n) ? null : r;
742
742
  }
743
743
  return null;
744
- }, Xe = (e, l) => e ? !!((e.provider === "" || e.provider.match($e)) && (l && e.prefix === "" || e.prefix.match($e)) && e.name.match($e)) : !1, gn = Object.freeze(
744
+ }, Xe = (e, l) => e ? !!((e.provider === "" || e.provider.match(Re)) && (l && e.prefix === "" || e.prefix.match(Re)) && e.name.match(Re)) : !1, gn = Object.freeze(
745
745
  {
746
746
  left: 0,
747
747
  top: 0,
@@ -755,71 +755,71 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
755
755
  }), it = Object.freeze({
756
756
  ...gn,
757
757
  ...lt
758
- }), bt = Object.freeze({
758
+ }), gt = Object.freeze({
759
759
  ...it,
760
760
  body: "",
761
761
  hidden: !1
762
762
  });
763
- function Gl(e, l) {
764
- const t = {};
765
- !e.hFlip != !l.hFlip && (t.hFlip = !0), !e.vFlip != !l.vFlip && (t.vFlip = !0);
763
+ function Kl(e, l) {
764
+ const n = {};
765
+ !e.hFlip != !l.hFlip && (n.hFlip = !0), !e.vFlip != !l.vFlip && (n.vFlip = !0);
766
766
  const o = ((e.rotate || 0) + (l.rotate || 0)) % 4;
767
- return o && (t.rotate = o), t;
767
+ return o && (n.rotate = o), n;
768
768
  }
769
769
  function Gt(e, l) {
770
- const t = Gl(e, l);
771
- for (const o in bt)
772
- o in lt ? o in e && !(o in t) && (t[o] = lt[o]) : o in l ? t[o] = l[o] : o in e && (t[o] = e[o]);
773
- return t;
770
+ const n = Kl(e, l);
771
+ for (const o in gt)
772
+ o in lt ? o in e && !(o in n) && (n[o] = lt[o]) : o in l ? n[o] = l[o] : o in e && (n[o] = e[o]);
773
+ return n;
774
774
  }
775
- function Ql(e, l) {
776
- const t = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
775
+ function Xl(e, l) {
776
+ const n = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
777
777
  function i(s) {
778
- if (t[s])
779
- return n[s] = [];
780
- if (!(s in n)) {
781
- n[s] = null;
778
+ if (n[s])
779
+ return t[s] = [];
780
+ if (!(s in t)) {
781
+ t[s] = null;
782
782
  const r = o[s] && o[s].parent, u = r && i(r);
783
- u && (n[s] = [r].concat(u));
783
+ u && (t[s] = [r].concat(u));
784
784
  }
785
- return n[s];
785
+ return t[s];
786
786
  }
787
- return Object.keys(t).concat(Object.keys(o)).forEach(i), n;
787
+ return Object.keys(n).concat(Object.keys(o)).forEach(i), t;
788
788
  }
789
- function Kl(e, l, t) {
790
- const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null);
789
+ function Yl(e, l, n) {
790
+ const o = e.icons, t = e.aliases || /* @__PURE__ */ Object.create(null);
791
791
  let i = {};
792
792
  function s(r) {
793
793
  i = Gt(
794
- o[r] || n[r],
794
+ o[r] || t[r],
795
795
  i
796
796
  );
797
797
  }
798
- return s(l), t.forEach(s), Gt(e, i);
798
+ return s(l), n.forEach(s), Gt(e, i);
799
799
  }
800
800
  function bn(e, l) {
801
- const t = [];
801
+ const n = [];
802
802
  if (typeof e != "object" || typeof e.icons != "object")
803
- return t;
804
- e.not_found instanceof Array && e.not_found.forEach((n) => {
805
- l(n, null), t.push(n);
803
+ return n;
804
+ e.not_found instanceof Array && e.not_found.forEach((t) => {
805
+ l(t, null), n.push(t);
806
806
  });
807
- const o = Ql(e);
808
- for (const n in o) {
809
- const i = o[n];
810
- i && (l(n, Kl(e, n, i)), t.push(n));
807
+ const o = Xl(e);
808
+ for (const t in o) {
809
+ const i = o[t];
810
+ i && (l(t, Yl(e, t, i)), n.push(t));
811
811
  }
812
- return t;
812
+ return n;
813
813
  }
814
- const Xl = {
814
+ const Jl = {
815
815
  provider: "",
816
816
  aliases: {},
817
817
  not_found: {},
818
818
  ...gn
819
819
  };
820
- function ht(e, l) {
821
- for (const t in l)
822
- if (t in e && typeof e[t] != typeof l[t])
820
+ function ft(e, l) {
821
+ for (const n in l)
822
+ if (n in e && typeof e[n] != typeof l[n])
823
823
  return !1;
824
824
  return !0;
825
825
  }
@@ -827,30 +827,30 @@ function yn(e) {
827
827
  if (typeof e != "object" || e === null)
828
828
  return null;
829
829
  const l = e;
830
- if (typeof l.prefix != "string" || !e.icons || typeof e.icons != "object" || !ht(e, Xl))
830
+ if (typeof l.prefix != "string" || !e.icons || typeof e.icons != "object" || !ft(e, Jl))
831
831
  return null;
832
- const t = l.icons;
833
- for (const n in t) {
834
- const i = t[n];
835
- if (!n.match($e) || typeof i.body != "string" || !ht(
832
+ const n = l.icons;
833
+ for (const t in n) {
834
+ const i = n[t];
835
+ if (!t.match(Re) || typeof i.body != "string" || !ft(
836
836
  i,
837
- bt
837
+ gt
838
838
  ))
839
839
  return null;
840
840
  }
841
841
  const o = l.aliases || /* @__PURE__ */ Object.create(null);
842
- for (const n in o) {
843
- const i = o[n], s = i.parent;
844
- if (!n.match($e) || typeof s != "string" || !t[s] && !o[s] || !ht(
842
+ for (const t in o) {
843
+ const i = o[t], s = i.parent;
844
+ if (!t.match(Re) || typeof s != "string" || !n[s] && !o[s] || !ft(
845
845
  i,
846
- bt
846
+ gt
847
847
  ))
848
848
  return null;
849
849
  }
850
850
  return l;
851
851
  }
852
852
  const Qt = /* @__PURE__ */ Object.create(null);
853
- function Yl(e, l) {
853
+ function Zl(e, l) {
854
854
  return {
855
855
  provider: e,
856
856
  prefix: l,
@@ -858,59 +858,59 @@ function Yl(e, l) {
858
858
  missing: /* @__PURE__ */ new Set()
859
859
  };
860
860
  }
861
- function ke(e, l) {
862
- const t = Qt[e] || (Qt[e] = /* @__PURE__ */ Object.create(null));
863
- return t[l] || (t[l] = Yl(e, l));
861
+ function ze(e, l) {
862
+ const n = Qt[e] || (Qt[e] = /* @__PURE__ */ Object.create(null));
863
+ return n[l] || (n[l] = Zl(e, l));
864
864
  }
865
- function Et(e, l) {
866
- return yn(l) ? bn(l, (t, o) => {
867
- o ? e.icons[t] = o : e.missing.add(t);
865
+ function Lt(e, l) {
866
+ return yn(l) ? bn(l, (n, o) => {
867
+ o ? e.icons[n] = o : e.missing.add(n);
868
868
  }) : [];
869
869
  }
870
- function Jl(e, l, t) {
870
+ function eo(e, l, n) {
871
871
  try {
872
- if (typeof t.body == "string")
873
- return e.icons[l] = { ...t }, !0;
872
+ if (typeof n.body == "string")
873
+ return e.icons[l] = { ...n }, !0;
874
874
  } catch {
875
875
  }
876
876
  return !1;
877
877
  }
878
- let Re = !1;
878
+ let Ne = !1;
879
879
  function wn(e) {
880
- return typeof e == "boolean" && (Re = e), Re;
880
+ return typeof e == "boolean" && (Ne = e), Ne;
881
881
  }
882
- function Zl(e) {
883
- const l = typeof e == "string" ? ot(e, !0, Re) : e;
882
+ function to(e) {
883
+ const l = typeof e == "string" ? ot(e, !0, Ne) : e;
884
884
  if (l) {
885
- const t = ke(l.provider, l.prefix), o = l.name;
886
- return t.icons[o] || (t.missing.has(o) ? null : void 0);
885
+ const n = ze(l.provider, l.prefix), o = l.name;
886
+ return n.icons[o] || (n.missing.has(o) ? null : void 0);
887
887
  }
888
888
  }
889
- function eo(e, l) {
890
- const t = ot(e, !0, Re);
891
- if (!t)
889
+ function no(e, l) {
890
+ const n = ot(e, !0, Ne);
891
+ if (!n)
892
892
  return !1;
893
- const o = ke(t.provider, t.prefix);
894
- return Jl(o, t.name, l);
893
+ const o = ze(n.provider, n.prefix);
894
+ return eo(o, n.name, l);
895
895
  }
896
- function to(e, l) {
896
+ function lo(e, l) {
897
897
  if (typeof e != "object")
898
898
  return !1;
899
- if (typeof l != "string" && (l = e.provider || ""), Re && !l && !e.prefix) {
900
- let n = !1;
899
+ if (typeof l != "string" && (l = e.provider || ""), Ne && !l && !e.prefix) {
900
+ let t = !1;
901
901
  return yn(e) && (e.prefix = "", bn(e, (i, s) => {
902
- s && eo(i, s) && (n = !0);
903
- })), n;
902
+ s && no(i, s) && (t = !0);
903
+ })), t;
904
904
  }
905
- const t = e.prefix;
905
+ const n = e.prefix;
906
906
  if (!Xe({
907
907
  provider: l,
908
- prefix: t,
908
+ prefix: n,
909
909
  name: "a"
910
910
  }))
911
911
  return !1;
912
- const o = ke(l, t);
913
- return !!Et(o, e);
912
+ const o = ze(l, n);
913
+ return !!Lt(o, e);
914
914
  }
915
915
  const xn = Object.freeze({
916
916
  width: null,
@@ -920,143 +920,143 @@ const xn = Object.freeze({
920
920
  ...xn,
921
921
  // Transformations
922
922
  ...lt
923
- }), no = /(-?[0-9.]*[0-9]+[0-9.]*)/g, lo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
924
- function Kt(e, l, t) {
923
+ }), oo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, io = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
924
+ function Kt(e, l, n) {
925
925
  if (l === 1)
926
926
  return e;
927
- if (t = t || 100, typeof e == "number")
928
- return Math.ceil(e * l * t) / t;
927
+ if (n = n || 100, typeof e == "number")
928
+ return Math.ceil(e * l * n) / n;
929
929
  if (typeof e != "string")
930
930
  return e;
931
- const o = e.split(no);
931
+ const o = e.split(oo);
932
932
  if (o === null || !o.length)
933
933
  return e;
934
- const n = [];
935
- let i = o.shift(), s = lo.test(i);
934
+ const t = [];
935
+ let i = o.shift(), s = io.test(i);
936
936
  for (; ; ) {
937
937
  if (s) {
938
938
  const r = parseFloat(i);
939
- isNaN(r) ? n.push(i) : n.push(Math.ceil(r * l * t) / t);
939
+ isNaN(r) ? t.push(i) : t.push(Math.ceil(r * l * n) / n);
940
940
  } else
941
- n.push(i);
941
+ t.push(i);
942
942
  if (i = o.shift(), i === void 0)
943
- return n.join("");
943
+ return t.join("");
944
944
  s = !s;
945
945
  }
946
946
  }
947
- function oo(e, l = "defs") {
948
- let t = "";
947
+ function ro(e, l = "defs") {
948
+ let n = "";
949
949
  const o = e.indexOf("<" + l);
950
950
  for (; o >= 0; ) {
951
- const n = e.indexOf(">", o), i = e.indexOf("</" + l);
952
- if (n === -1 || i === -1)
951
+ const t = e.indexOf(">", o), i = e.indexOf("</" + l);
952
+ if (t === -1 || i === -1)
953
953
  break;
954
954
  const s = e.indexOf(">", i);
955
955
  if (s === -1)
956
956
  break;
957
- t += e.slice(n + 1, i).trim(), e = e.slice(0, o).trim() + e.slice(s + 1);
957
+ n += e.slice(t + 1, i).trim(), e = e.slice(0, o).trim() + e.slice(s + 1);
958
958
  }
959
959
  return {
960
- defs: t,
960
+ defs: n,
961
961
  content: e
962
962
  };
963
963
  }
964
- function io(e, l) {
964
+ function so(e, l) {
965
965
  return e ? "<defs>" + e + "</defs>" + l : l;
966
966
  }
967
- function ro(e, l, t) {
968
- const o = oo(e);
969
- return io(o.defs, l + o.content + t);
967
+ function ao(e, l, n) {
968
+ const o = ro(e);
969
+ return so(o.defs, l + o.content + n);
970
970
  }
971
- const so = (e) => e === "unset" || e === "undefined" || e === "none";
972
- function ao(e, l) {
973
- const t = {
971
+ const uo = (e) => e === "unset" || e === "undefined" || e === "none";
972
+ function co(e, l) {
973
+ const n = {
974
974
  ...it,
975
975
  ...e
976
976
  }, o = {
977
977
  ...Sn,
978
978
  ...l
979
- }, n = {
980
- left: t.left,
981
- top: t.top,
982
- width: t.width,
983
- height: t.height
979
+ }, t = {
980
+ left: n.left,
981
+ top: n.top,
982
+ width: n.width,
983
+ height: n.height
984
984
  };
985
- let i = t.body;
986
- [t, o].forEach(($) => {
987
- const y = [], N = $.hFlip, H = $.vFlip;
988
- let W = $.rotate;
989
- N ? H ? W += 2 : (y.push(
990
- "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
991
- ), y.push("scale(-1 1)"), n.top = n.left = 0) : H && (y.push(
992
- "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
993
- ), y.push("scale(1 -1)"), n.top = n.left = 0);
985
+ let i = n.body;
986
+ [n, o].forEach(($) => {
987
+ const y = [], A = $.hFlip, H = $.vFlip;
988
+ let j = $.rotate;
989
+ A ? H ? j += 2 : (y.push(
990
+ "translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
991
+ ), y.push("scale(-1 1)"), t.top = t.left = 0) : H && (y.push(
992
+ "translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
993
+ ), y.push("scale(1 -1)"), t.top = t.left = 0);
994
994
  let O;
995
- switch (W < 0 && (W -= Math.floor(W / 4) * 4), W = W % 4, W) {
995
+ switch (j < 0 && (j -= Math.floor(j / 4) * 4), j = j % 4, j) {
996
996
  case 1:
997
- O = n.height / 2 + n.top, y.unshift(
997
+ O = t.height / 2 + t.top, y.unshift(
998
998
  "rotate(90 " + O.toString() + " " + O.toString() + ")"
999
999
  );
1000
1000
  break;
1001
1001
  case 2:
1002
1002
  y.unshift(
1003
- "rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
1003
+ "rotate(180 " + (t.width / 2 + t.left).toString() + " " + (t.height / 2 + t.top).toString() + ")"
1004
1004
  );
1005
1005
  break;
1006
1006
  case 3:
1007
- O = n.width / 2 + n.left, y.unshift(
1007
+ O = t.width / 2 + t.left, y.unshift(
1008
1008
  "rotate(-90 " + O.toString() + " " + O.toString() + ")"
1009
1009
  );
1010
1010
  break;
1011
1011
  }
1012
- W % 2 === 1 && (n.left !== n.top && (O = n.left, n.left = n.top, n.top = O), n.width !== n.height && (O = n.width, n.width = n.height, n.height = O)), y.length && (i = ro(
1012
+ j % 2 === 1 && (t.left !== t.top && (O = t.left, t.left = t.top, t.top = O), t.width !== t.height && (O = t.width, t.width = t.height, t.height = O)), y.length && (i = ao(
1013
1013
  i,
1014
1014
  '<g transform="' + y.join(" ") + '">',
1015
1015
  "</g>"
1016
1016
  ));
1017
1017
  });
1018
- const s = o.width, r = o.height, u = n.width, f = n.height;
1018
+ const s = o.width, r = o.height, u = t.width, f = t.height;
1019
1019
  let d, p;
1020
1020
  s === null ? (p = r === null ? "1em" : r === "auto" ? f : r, d = Kt(p, u / f)) : (d = s === "auto" ? u : s, p = r === null ? Kt(d, f / u) : r === "auto" ? f : r);
1021
- const _ = {}, I = ($, y) => {
1022
- so(y) || (_[$] = y.toString());
1021
+ const E = {}, P = ($, y) => {
1022
+ uo(y) || (E[$] = y.toString());
1023
1023
  };
1024
- I("width", d), I("height", p);
1025
- const F = [n.left, n.top, u, f];
1026
- return _.viewBox = F.join(" "), {
1027
- attributes: _,
1028
- viewBox: F,
1024
+ P("width", d), P("height", p);
1025
+ const I = [t.left, t.top, u, f];
1026
+ return E.viewBox = I.join(" "), {
1027
+ attributes: E,
1028
+ viewBox: I,
1029
1029
  body: i
1030
1030
  };
1031
1031
  }
1032
- const uo = /\sid="(\S+)"/g, co = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1033
- let fo = 0;
1034
- function ho(e, l = co) {
1035
- const t = [];
1032
+ const fo = /\sid="(\S+)"/g, ho = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1033
+ let po = 0;
1034
+ function vo(e, l = ho) {
1035
+ const n = [];
1036
1036
  let o;
1037
- for (; o = uo.exec(e); )
1038
- t.push(o[1]);
1039
- if (!t.length)
1037
+ for (; o = fo.exec(e); )
1038
+ n.push(o[1]);
1039
+ if (!n.length)
1040
1040
  return e;
1041
- const n = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1042
- return t.forEach((i) => {
1043
- const s = typeof l == "function" ? l(i) : l + (fo++).toString(), r = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1041
+ const t = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1042
+ return n.forEach((i) => {
1043
+ const s = typeof l == "function" ? l(i) : l + (po++).toString(), r = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1044
1044
  e = e.replace(
1045
1045
  // Allowed characters before id: [#;"]
1046
1046
  // Allowed characters after id: [)"], .[a-z]
1047
1047
  new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
1048
- "$1" + s + n + "$3"
1048
+ "$1" + s + t + "$3"
1049
1049
  );
1050
- }), e = e.replace(new RegExp(n, "g"), ""), e;
1050
+ }), e = e.replace(new RegExp(t, "g"), ""), e;
1051
1051
  }
1052
- const yt = /* @__PURE__ */ Object.create(null);
1053
- function po(e, l) {
1054
- yt[e] = l;
1052
+ const bt = /* @__PURE__ */ Object.create(null);
1053
+ function mo(e, l) {
1054
+ bt[e] = l;
1055
1055
  }
1056
- function wt(e) {
1057
- return yt[e] || yt[""];
1056
+ function yt(e) {
1057
+ return bt[e] || bt[""];
1058
1058
  }
1059
- function _t(e) {
1059
+ function Et(e) {
1060
1060
  let l;
1061
1061
  if (typeof e.resources == "string")
1062
1062
  l = [e.resources];
@@ -1081,23 +1081,23 @@ function _t(e) {
1081
1081
  dataAfterTimeout: e.dataAfterTimeout !== !1
1082
1082
  };
1083
1083
  }
1084
- const Pt = /* @__PURE__ */ Object.create(null), Ie = [
1084
+ const _t = /* @__PURE__ */ Object.create(null), Fe = [
1085
1085
  "https://api.simplesvg.com",
1086
1086
  "https://api.unisvg.com"
1087
1087
  ], Ye = [];
1088
- for (; Ie.length > 0; )
1089
- Ie.length === 1 || Math.random() > 0.5 ? Ye.push(Ie.shift()) : Ye.push(Ie.pop());
1090
- Pt[""] = _t({
1088
+ for (; Fe.length > 0; )
1089
+ Fe.length === 1 || Math.random() > 0.5 ? Ye.push(Fe.shift()) : Ye.push(Fe.pop());
1090
+ _t[""] = Et({
1091
1091
  resources: ["https://api.iconify.design"].concat(Ye)
1092
1092
  });
1093
- function vo(e, l) {
1094
- const t = _t(l);
1095
- return t === null ? !1 : (Pt[e] = t, !0);
1093
+ function go(e, l) {
1094
+ const n = Et(l);
1095
+ return n === null ? !1 : (_t[e] = n, !0);
1096
1096
  }
1097
- function Tt(e) {
1098
- return Pt[e];
1097
+ function Mt(e) {
1098
+ return _t[e];
1099
1099
  }
1100
- const mo = () => {
1100
+ const bo = () => {
1101
1101
  let e;
1102
1102
  try {
1103
1103
  if (e = fetch, typeof e == "function")
@@ -1105,37 +1105,37 @@ const mo = () => {
1105
1105
  } catch {
1106
1106
  }
1107
1107
  };
1108
- let Xt = mo();
1109
- function go(e, l) {
1110
- const t = Tt(e);
1111
- if (!t)
1108
+ let Xt = bo();
1109
+ function yo(e, l) {
1110
+ const n = Mt(e);
1111
+ if (!n)
1112
1112
  return 0;
1113
1113
  let o;
1114
- if (!t.maxURL)
1114
+ if (!n.maxURL)
1115
1115
  o = 0;
1116
1116
  else {
1117
- let n = 0;
1118
- t.resources.forEach((s) => {
1119
- n = Math.max(n, s.length);
1117
+ let t = 0;
1118
+ n.resources.forEach((s) => {
1119
+ t = Math.max(t, s.length);
1120
1120
  });
1121
1121
  const i = l + ".json?icons=";
1122
- o = t.maxURL - n - t.path.length - i.length;
1122
+ o = n.maxURL - t - n.path.length - i.length;
1123
1123
  }
1124
1124
  return o;
1125
1125
  }
1126
- function bo(e) {
1126
+ function wo(e) {
1127
1127
  return e === 404;
1128
1128
  }
1129
- const yo = (e, l, t) => {
1130
- const o = [], n = go(e, l), i = "icons";
1129
+ const xo = (e, l, n) => {
1130
+ const o = [], t = yo(e, l), i = "icons";
1131
1131
  let s = {
1132
1132
  type: i,
1133
1133
  provider: e,
1134
1134
  prefix: l,
1135
1135
  icons: []
1136
1136
  }, r = 0;
1137
- return t.forEach((u, f) => {
1138
- r += u.length + 1, r >= n && f > 0 && (o.push(s), s = {
1137
+ return n.forEach((u, f) => {
1138
+ r += u.length + 1, r >= t && f > 0 && (o.push(s), s = {
1139
1139
  type: i,
1140
1140
  provider: e,
1141
1141
  prefix: l,
@@ -1143,20 +1143,20 @@ const yo = (e, l, t) => {
1143
1143
  }, r = u.length), s.icons.push(u);
1144
1144
  }), o.push(s), o;
1145
1145
  };
1146
- function wo(e) {
1146
+ function So(e) {
1147
1147
  if (typeof e == "string") {
1148
- const l = Tt(e);
1148
+ const l = Mt(e);
1149
1149
  if (l)
1150
1150
  return l.path;
1151
1151
  }
1152
1152
  return "/";
1153
1153
  }
1154
- const xo = (e, l, t) => {
1154
+ const ko = (e, l, n) => {
1155
1155
  if (!Xt) {
1156
- t("abort", 424);
1156
+ n("abort", 424);
1157
1157
  return;
1158
1158
  }
1159
- let o = wo(l.provider);
1159
+ let o = So(l.provider);
1160
1160
  switch (l.type) {
1161
1161
  case "icons": {
1162
1162
  const i = l.prefix, r = l.icons.join(","), u = new URLSearchParams({
@@ -1171,53 +1171,53 @@ const xo = (e, l, t) => {
1171
1171
  break;
1172
1172
  }
1173
1173
  default:
1174
- t("abort", 400);
1174
+ n("abort", 400);
1175
1175
  return;
1176
1176
  }
1177
- let n = 503;
1177
+ let t = 503;
1178
1178
  Xt(e + o).then((i) => {
1179
1179
  const s = i.status;
1180
1180
  if (s !== 200) {
1181
1181
  setTimeout(() => {
1182
- t(bo(s) ? "abort" : "next", s);
1182
+ n(wo(s) ? "abort" : "next", s);
1183
1183
  });
1184
1184
  return;
1185
1185
  }
1186
- return n = 501, i.json();
1186
+ return t = 501, i.json();
1187
1187
  }).then((i) => {
1188
1188
  if (typeof i != "object" || i === null) {
1189
1189
  setTimeout(() => {
1190
- i === 404 ? t("abort", i) : t("next", n);
1190
+ i === 404 ? n("abort", i) : n("next", t);
1191
1191
  });
1192
1192
  return;
1193
1193
  }
1194
1194
  setTimeout(() => {
1195
- t("success", i);
1195
+ n("success", i);
1196
1196
  });
1197
1197
  }).catch(() => {
1198
- t("next", n);
1198
+ n("next", t);
1199
1199
  });
1200
- }, So = {
1201
- prepare: yo,
1202
- send: xo
1200
+ }, Co = {
1201
+ prepare: xo,
1202
+ send: ko
1203
1203
  };
1204
- function ko(e) {
1204
+ function zo(e) {
1205
1205
  const l = {
1206
1206
  loaded: [],
1207
1207
  missing: [],
1208
1208
  pending: []
1209
- }, t = /* @__PURE__ */ Object.create(null);
1210
- e.sort((n, i) => n.provider !== i.provider ? n.provider.localeCompare(i.provider) : n.prefix !== i.prefix ? n.prefix.localeCompare(i.prefix) : n.name.localeCompare(i.name));
1209
+ }, n = /* @__PURE__ */ Object.create(null);
1210
+ e.sort((t, i) => t.provider !== i.provider ? t.provider.localeCompare(i.provider) : t.prefix !== i.prefix ? t.prefix.localeCompare(i.prefix) : t.name.localeCompare(i.name));
1211
1211
  let o = {
1212
1212
  provider: "",
1213
1213
  prefix: "",
1214
1214
  name: ""
1215
1215
  };
1216
- return e.forEach((n) => {
1217
- if (o.name === n.name && o.prefix === n.prefix && o.provider === n.provider)
1216
+ return e.forEach((t) => {
1217
+ if (o.name === t.name && o.prefix === t.prefix && o.provider === t.provider)
1218
1218
  return;
1219
- o = n;
1220
- const i = n.provider, s = n.prefix, r = n.name, u = t[i] || (t[i] = /* @__PURE__ */ Object.create(null)), f = u[s] || (u[s] = ke(i, s));
1219
+ o = t;
1220
+ const i = t.provider, s = t.prefix, r = t.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), f = u[s] || (u[s] = ze(i, s));
1221
1221
  let d;
1222
1222
  r in f.icons ? d = l.loaded : s === "" || f.missing.has(r) ? d = l.missing : d = l.pending;
1223
1223
  const p = {
@@ -1229,41 +1229,41 @@ function ko(e) {
1229
1229
  }), l;
1230
1230
  }
1231
1231
  function kn(e, l) {
1232
- e.forEach((t) => {
1233
- const o = t.loaderCallbacks;
1234
- o && (t.loaderCallbacks = o.filter((n) => n.id !== l));
1232
+ e.forEach((n) => {
1233
+ const o = n.loaderCallbacks;
1234
+ o && (n.loaderCallbacks = o.filter((t) => t.id !== l));
1235
1235
  });
1236
1236
  }
1237
- function Co(e) {
1237
+ function Lo(e) {
1238
1238
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
1239
1239
  e.pendingCallbacksFlag = !1;
1240
1240
  const l = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
1241
1241
  if (!l.length)
1242
1242
  return;
1243
- let t = !1;
1244
- const o = e.provider, n = e.prefix;
1243
+ let n = !1;
1244
+ const o = e.provider, t = e.prefix;
1245
1245
  l.forEach((i) => {
1246
1246
  const s = i.icons, r = s.pending.length;
1247
1247
  s.pending = s.pending.filter((u) => {
1248
- if (u.prefix !== n)
1248
+ if (u.prefix !== t)
1249
1249
  return !0;
1250
1250
  const f = u.name;
1251
1251
  if (e.icons[f])
1252
1252
  s.loaded.push({
1253
1253
  provider: o,
1254
- prefix: n,
1254
+ prefix: t,
1255
1255
  name: f
1256
1256
  });
1257
1257
  else if (e.missing.has(f))
1258
1258
  s.missing.push({
1259
1259
  provider: o,
1260
- prefix: n,
1260
+ prefix: t,
1261
1261
  name: f
1262
1262
  });
1263
1263
  else
1264
- return t = !0, !0;
1264
+ return n = !0, !0;
1265
1265
  return !1;
1266
- }), s.pending.length !== r && (t || kn([e], i.id), i.callback(
1266
+ }), s.pending.length !== r && (n || kn([e], i.id), i.callback(
1267
1267
  s.loaded.slice(0),
1268
1268
  s.missing.slice(0),
1269
1269
  s.pending.slice(0),
@@ -1272,29 +1272,29 @@ function Co(e) {
1272
1272
  });
1273
1273
  }));
1274
1274
  }
1275
- let zo = 0;
1276
- function Lo(e, l, t) {
1277
- const o = zo++, n = kn.bind(null, t, o);
1275
+ let Eo = 0;
1276
+ function _o(e, l, n) {
1277
+ const o = Eo++, t = kn.bind(null, n, o);
1278
1278
  if (!l.pending.length)
1279
- return n;
1279
+ return t;
1280
1280
  const i = {
1281
1281
  id: o,
1282
1282
  icons: l,
1283
1283
  callback: e,
1284
- abort: n
1284
+ abort: t
1285
1285
  };
1286
- return t.forEach((s) => {
1286
+ return n.forEach((s) => {
1287
1287
  (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
1288
- }), n;
1288
+ }), t;
1289
1289
  }
1290
- function Eo(e, l = !0, t = !1) {
1290
+ function Mo(e, l = !0, n = !1) {
1291
1291
  const o = [];
1292
- return e.forEach((n) => {
1293
- const i = typeof n == "string" ? ot(n, l, t) : n;
1292
+ return e.forEach((t) => {
1293
+ const i = typeof t == "string" ? ot(t, l, n) : t;
1294
1294
  i && o.push(i);
1295
1295
  }), o;
1296
1296
  }
1297
- var _o = {
1297
+ var To = {
1298
1298
  resources: [],
1299
1299
  index: 0,
1300
1300
  timeout: 2e3,
@@ -1302,132 +1302,132 @@ var _o = {
1302
1302
  random: !1,
1303
1303
  dataAfterTimeout: !1
1304
1304
  };
1305
- function Po(e, l, t, o) {
1306
- const n = e.resources.length, i = e.random ? Math.floor(Math.random() * n) : e.index;
1305
+ function Po(e, l, n, o) {
1306
+ const t = e.resources.length, i = e.random ? Math.floor(Math.random() * t) : e.index;
1307
1307
  let s;
1308
1308
  if (e.random) {
1309
1309
  let z = e.resources.slice(0);
1310
1310
  for (s = []; z.length > 1; ) {
1311
- const E = Math.floor(Math.random() * z.length);
1312
- s.push(z[E]), z = z.slice(0, E).concat(z.slice(E + 1));
1311
+ const L = Math.floor(Math.random() * z.length);
1312
+ s.push(z[L]), z = z.slice(0, L).concat(z.slice(L + 1));
1313
1313
  }
1314
1314
  s = s.concat(z);
1315
1315
  } else
1316
1316
  s = e.resources.slice(i).concat(e.resources.slice(0, i));
1317
1317
  const r = Date.now();
1318
- let u = "pending", f = 0, d, p = null, _ = [], I = [];
1319
- typeof o == "function" && I.push(o);
1320
- function F() {
1318
+ let u = "pending", f = 0, d, p = null, E = [], P = [];
1319
+ typeof o == "function" && P.push(o);
1320
+ function I() {
1321
1321
  p && (clearTimeout(p), p = null);
1322
1322
  }
1323
1323
  function $() {
1324
- u === "pending" && (u = "aborted"), F(), _.forEach((z) => {
1324
+ u === "pending" && (u = "aborted"), I(), E.forEach((z) => {
1325
1325
  z.status === "pending" && (z.status = "aborted");
1326
- }), _ = [];
1326
+ }), E = [];
1327
1327
  }
1328
- function y(z, E) {
1329
- E && (I = []), typeof z == "function" && I.push(z);
1328
+ function y(z, L) {
1329
+ L && (P = []), typeof z == "function" && P.push(z);
1330
1330
  }
1331
- function N() {
1331
+ function A() {
1332
1332
  return {
1333
1333
  startTime: r,
1334
1334
  payload: l,
1335
1335
  status: u,
1336
1336
  queriesSent: f,
1337
- queriesPending: _.length,
1337
+ queriesPending: E.length,
1338
1338
  subscribe: y,
1339
1339
  abort: $
1340
1340
  };
1341
1341
  }
1342
1342
  function H() {
1343
- u = "failed", I.forEach((z) => {
1343
+ u = "failed", P.forEach((z) => {
1344
1344
  z(void 0, d);
1345
1345
  });
1346
1346
  }
1347
- function W() {
1348
- _.forEach((z) => {
1347
+ function j() {
1348
+ E.forEach((z) => {
1349
1349
  z.status === "pending" && (z.status = "aborted");
1350
- }), _ = [];
1350
+ }), E = [];
1351
1351
  }
1352
- function O(z, E, A) {
1353
- const Y = E !== "success";
1354
- switch (_ = _.filter((D) => D !== z), u) {
1352
+ function O(z, L, B) {
1353
+ const X = L !== "success";
1354
+ switch (E = E.filter((Z) => Z !== z), u) {
1355
1355
  case "pending":
1356
1356
  break;
1357
1357
  case "failed":
1358
- if (Y || !e.dataAfterTimeout)
1358
+ if (X || !e.dataAfterTimeout)
1359
1359
  return;
1360
1360
  break;
1361
1361
  default:
1362
1362
  return;
1363
1363
  }
1364
- if (E === "abort") {
1365
- d = A, H();
1364
+ if (L === "abort") {
1365
+ d = B, H();
1366
1366
  return;
1367
1367
  }
1368
- if (Y) {
1369
- d = A, _.length || (s.length ? X() : H());
1368
+ if (X) {
1369
+ d = B, E.length || (s.length ? Y() : H());
1370
1370
  return;
1371
1371
  }
1372
- if (F(), W(), !e.random) {
1373
- const D = e.resources.indexOf(z.resource);
1374
- D !== -1 && D !== e.index && (e.index = D);
1372
+ if (I(), j(), !e.random) {
1373
+ const Z = e.resources.indexOf(z.resource);
1374
+ Z !== -1 && Z !== e.index && (e.index = Z);
1375
1375
  }
1376
- u = "completed", I.forEach((D) => {
1377
- D(A);
1376
+ u = "completed", P.forEach((Z) => {
1377
+ Z(B);
1378
1378
  });
1379
1379
  }
1380
- function X() {
1380
+ function Y() {
1381
1381
  if (u !== "pending")
1382
1382
  return;
1383
- F();
1383
+ I();
1384
1384
  const z = s.shift();
1385
1385
  if (z === void 0) {
1386
- if (_.length) {
1386
+ if (E.length) {
1387
1387
  p = setTimeout(() => {
1388
- F(), u === "pending" && (W(), H());
1388
+ I(), u === "pending" && (j(), H());
1389
1389
  }, e.timeout);
1390
1390
  return;
1391
1391
  }
1392
1392
  H();
1393
1393
  return;
1394
1394
  }
1395
- const E = {
1395
+ const L = {
1396
1396
  status: "pending",
1397
1397
  resource: z,
1398
- callback: (A, Y) => {
1399
- O(E, A, Y);
1398
+ callback: (B, X) => {
1399
+ O(L, B, X);
1400
1400
  }
1401
1401
  };
1402
- _.push(E), f++, p = setTimeout(X, e.rotate), t(z, l, E.callback);
1402
+ E.push(L), f++, p = setTimeout(Y, e.rotate), n(z, l, L.callback);
1403
1403
  }
1404
- return setTimeout(X), N;
1404
+ return setTimeout(Y), A;
1405
1405
  }
1406
1406
  function Cn(e) {
1407
1407
  const l = {
1408
- ..._o,
1408
+ ...To,
1409
1409
  ...e
1410
1410
  };
1411
- let t = [];
1411
+ let n = [];
1412
1412
  function o() {
1413
- t = t.filter((r) => r().status === "pending");
1413
+ n = n.filter((r) => r().status === "pending");
1414
1414
  }
1415
- function n(r, u, f) {
1415
+ function t(r, u, f) {
1416
1416
  const d = Po(
1417
1417
  l,
1418
1418
  r,
1419
1419
  u,
1420
- (p, _) => {
1421
- o(), f && f(p, _);
1420
+ (p, E) => {
1421
+ o(), f && f(p, E);
1422
1422
  }
1423
1423
  );
1424
- return t.push(d), d;
1424
+ return n.push(d), d;
1425
1425
  }
1426
1426
  function i(r) {
1427
- return t.find((u) => r(u)) || null;
1427
+ return n.find((u) => r(u)) || null;
1428
1428
  }
1429
1429
  return {
1430
- query: n,
1430
+ query: t,
1431
1431
  find: i,
1432
1432
  setIndex: (r) => {
1433
1433
  l.index = r;
@@ -1438,49 +1438,49 @@ function Cn(e) {
1438
1438
  }
1439
1439
  function Yt() {
1440
1440
  }
1441
- const pt = /* @__PURE__ */ Object.create(null);
1442
- function To(e) {
1443
- if (!pt[e]) {
1444
- const l = Tt(e);
1441
+ const ht = /* @__PURE__ */ Object.create(null);
1442
+ function Io(e) {
1443
+ if (!ht[e]) {
1444
+ const l = Mt(e);
1445
1445
  if (!l)
1446
1446
  return;
1447
- const t = Cn(l), o = {
1447
+ const n = Cn(l), o = {
1448
1448
  config: l,
1449
- redundancy: t
1449
+ redundancy: n
1450
1450
  };
1451
- pt[e] = o;
1451
+ ht[e] = o;
1452
1452
  }
1453
- return pt[e];
1453
+ return ht[e];
1454
1454
  }
1455
- function Mo(e, l, t) {
1456
- let o, n;
1455
+ function Fo(e, l, n) {
1456
+ let o, t;
1457
1457
  if (typeof e == "string") {
1458
- const i = wt(e);
1458
+ const i = yt(e);
1459
1459
  if (!i)
1460
- return t(void 0, 424), Yt;
1461
- n = i.send;
1462
- const s = To(e);
1460
+ return n(void 0, 424), Yt;
1461
+ t = i.send;
1462
+ const s = Io(e);
1463
1463
  s && (o = s.redundancy);
1464
1464
  } else {
1465
- const i = _t(e);
1465
+ const i = Et(e);
1466
1466
  if (i) {
1467
1467
  o = Cn(i);
1468
- const s = e.resources ? e.resources[0] : "", r = wt(s);
1469
- r && (n = r.send);
1468
+ const s = e.resources ? e.resources[0] : "", r = yt(s);
1469
+ r && (t = r.send);
1470
1470
  }
1471
1471
  }
1472
- return !o || !n ? (t(void 0, 424), Yt) : o.query(l, n, t)().abort;
1472
+ return !o || !t ? (n(void 0, 424), Yt) : o.query(l, t, n)().abort;
1473
1473
  }
1474
- const Jt = "iconify2", Ne = "iconify", zn = Ne + "-count", Zt = Ne + "-version", Ln = 36e5, Io = 168, Fo = 50;
1475
- function xt(e, l) {
1474
+ const Jt = "iconify2", Ae = "iconify", zn = Ae + "-count", Zt = Ae + "-version", Ln = 36e5, Oo = 168, $o = 50;
1475
+ function wt(e, l) {
1476
1476
  try {
1477
1477
  return e.getItem(l);
1478
1478
  } catch {
1479
1479
  }
1480
1480
  }
1481
- function Mt(e, l, t) {
1481
+ function Tt(e, l, n) {
1482
1482
  try {
1483
- return e.setItem(l, t), !0;
1483
+ return e.setItem(l, n), !0;
1484
1484
  } catch {
1485
1485
  }
1486
1486
  }
@@ -1490,11 +1490,11 @@ function en(e, l) {
1490
1490
  } catch {
1491
1491
  }
1492
1492
  }
1493
- function St(e, l) {
1494
- return Mt(e, zn, l.toString());
1493
+ function xt(e, l) {
1494
+ return Tt(e, zn, l.toString());
1495
1495
  }
1496
- function kt(e) {
1497
- return parseInt(xt(e, zn)) || 0;
1496
+ function St(e) {
1497
+ return parseInt(wt(e, zn)) || 0;
1498
1498
  }
1499
1499
  const rt = {
1500
1500
  local: !0,
@@ -1503,9 +1503,9 @@ const rt = {
1503
1503
  local: /* @__PURE__ */ new Set(),
1504
1504
  session: /* @__PURE__ */ new Set()
1505
1505
  };
1506
- let It = !1;
1507
- function Oo(e) {
1508
- It = e;
1506
+ let Pt = !1;
1507
+ function Ro(e) {
1508
+ Pt = e;
1509
1509
  }
1510
1510
  let Ke = typeof window > "u" ? {} : window;
1511
1511
  function _n(e) {
@@ -1517,117 +1517,117 @@ function _n(e) {
1517
1517
  }
1518
1518
  rt[e] = !1;
1519
1519
  }
1520
- function Pn(e, l) {
1521
- const t = _n(e);
1522
- if (!t)
1520
+ function Mn(e, l) {
1521
+ const n = _n(e);
1522
+ if (!n)
1523
1523
  return;
1524
- const o = xt(t, Zt);
1524
+ const o = wt(n, Zt);
1525
1525
  if (o !== Jt) {
1526
1526
  if (o) {
1527
- const r = kt(t);
1527
+ const r = St(n);
1528
1528
  for (let u = 0; u < r; u++)
1529
- en(t, Ne + u.toString());
1529
+ en(n, Ae + u.toString());
1530
1530
  }
1531
- Mt(t, Zt, Jt), St(t, 0);
1531
+ Tt(n, Zt, Jt), xt(n, 0);
1532
1532
  return;
1533
1533
  }
1534
- const n = Math.floor(Date.now() / Ln) - Io, i = (r) => {
1535
- const u = Ne + r.toString(), f = xt(t, u);
1534
+ const t = Math.floor(Date.now() / Ln) - Oo, i = (r) => {
1535
+ const u = Ae + r.toString(), f = wt(n, u);
1536
1536
  if (typeof f == "string") {
1537
1537
  try {
1538
1538
  const d = JSON.parse(f);
1539
- if (typeof d == "object" && typeof d.cached == "number" && d.cached > n && typeof d.provider == "string" && typeof d.data == "object" && typeof d.data.prefix == "string" && // Valid item: run callback
1539
+ if (typeof d == "object" && typeof d.cached == "number" && d.cached > t && typeof d.provider == "string" && typeof d.data == "object" && typeof d.data.prefix == "string" && // Valid item: run callback
1540
1540
  l(d, r))
1541
1541
  return !0;
1542
1542
  } catch {
1543
1543
  }
1544
- en(t, u);
1544
+ en(n, u);
1545
1545
  }
1546
1546
  };
1547
- let s = kt(t);
1547
+ let s = St(n);
1548
1548
  for (let r = s - 1; r >= 0; r--)
1549
- i(r) || (r === s - 1 ? (s--, St(t, s)) : En[e].add(r));
1549
+ i(r) || (r === s - 1 ? (s--, xt(n, s)) : En[e].add(r));
1550
1550
  }
1551
1551
  function Tn() {
1552
- if (!It) {
1553
- Oo(!0);
1552
+ if (!Pt) {
1553
+ Ro(!0);
1554
1554
  for (const e in rt)
1555
- Pn(e, (l) => {
1556
- const t = l.data, o = l.provider, n = t.prefix, i = ke(
1555
+ Mn(e, (l) => {
1556
+ const n = l.data, o = l.provider, t = n.prefix, i = ze(
1557
1557
  o,
1558
- n
1558
+ t
1559
1559
  );
1560
- if (!Et(i, t).length)
1560
+ if (!Lt(i, n).length)
1561
1561
  return !1;
1562
- const s = t.lastModified || -1;
1562
+ const s = n.lastModified || -1;
1563
1563
  return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, s) : s, !0;
1564
1564
  });
1565
1565
  }
1566
1566
  }
1567
- function $o(e, l) {
1568
- const t = e.lastModifiedCached;
1567
+ function No(e, l) {
1568
+ const n = e.lastModifiedCached;
1569
1569
  if (
1570
1570
  // Matches or newer
1571
- t && t >= l
1571
+ n && n >= l
1572
1572
  )
1573
- return t === l;
1574
- if (e.lastModifiedCached = l, t)
1573
+ return n === l;
1574
+ if (e.lastModifiedCached = l, n)
1575
1575
  for (const o in rt)
1576
- Pn(o, (n) => {
1577
- const i = n.data;
1578
- return n.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === l;
1576
+ Mn(o, (t) => {
1577
+ const i = t.data;
1578
+ return t.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === l;
1579
1579
  });
1580
1580
  return !0;
1581
1581
  }
1582
- function Ro(e, l) {
1583
- It || Tn();
1584
- function t(o) {
1585
- let n;
1586
- if (!rt[o] || !(n = _n(o)))
1582
+ function Ao(e, l) {
1583
+ Pt || Tn();
1584
+ function n(o) {
1585
+ let t;
1586
+ if (!rt[o] || !(t = _n(o)))
1587
1587
  return;
1588
1588
  const i = En[o];
1589
1589
  let s;
1590
1590
  if (i.size)
1591
1591
  i.delete(s = Array.from(i).shift());
1592
- else if (s = kt(n), s >= Fo || !St(n, s + 1))
1592
+ else if (s = St(t), s >= $o || !xt(t, s + 1))
1593
1593
  return;
1594
1594
  const r = {
1595
1595
  cached: Math.floor(Date.now() / Ln),
1596
1596
  provider: e.provider,
1597
1597
  data: l
1598
1598
  };
1599
- return Mt(
1600
- n,
1601
- Ne + s.toString(),
1599
+ return Tt(
1600
+ t,
1601
+ Ae + s.toString(),
1602
1602
  JSON.stringify(r)
1603
1603
  );
1604
1604
  }
1605
- l.lastModified && !$o(e, l.lastModified) || Object.keys(l.icons).length && (l.not_found && (l = Object.assign({}, l), delete l.not_found), t("local") || t("session"));
1605
+ l.lastModified && !No(e, l.lastModified) || Object.keys(l.icons).length && (l.not_found && (l = Object.assign({}, l), delete l.not_found), n("local") || n("session"));
1606
1606
  }
1607
1607
  function tn() {
1608
1608
  }
1609
- function No(e) {
1609
+ function Bo(e) {
1610
1610
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1611
- e.iconsLoaderFlag = !1, Co(e);
1611
+ e.iconsLoaderFlag = !1, Lo(e);
1612
1612
  }));
1613
1613
  }
1614
- function Ao(e, l) {
1614
+ function Do(e, l) {
1615
1615
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(l).sort() : e.iconsToLoad = l, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1616
1616
  e.iconsQueueFlag = !1;
1617
- const { provider: t, prefix: o } = e, n = e.iconsToLoad;
1617
+ const { provider: n, prefix: o } = e, t = e.iconsToLoad;
1618
1618
  delete e.iconsToLoad;
1619
1619
  let i;
1620
- if (!n || !(i = wt(t)))
1620
+ if (!t || !(i = yt(n)))
1621
1621
  return;
1622
- i.prepare(t, o, n).forEach((r) => {
1623
- Mo(t, r, (u) => {
1622
+ i.prepare(n, o, t).forEach((r) => {
1623
+ Fo(n, r, (u) => {
1624
1624
  if (typeof u != "object")
1625
1625
  r.icons.forEach((f) => {
1626
1626
  e.missing.add(f);
1627
1627
  });
1628
1628
  else
1629
1629
  try {
1630
- const f = Et(
1630
+ const f = Lt(
1631
1631
  e,
1632
1632
  u
1633
1633
  );
@@ -1636,17 +1636,17 @@ function Ao(e, l) {
1636
1636
  const d = e.pendingIcons;
1637
1637
  d && f.forEach((p) => {
1638
1638
  d.delete(p);
1639
- }), Ro(e, u);
1639
+ }), Ao(e, u);
1640
1640
  } catch (f) {
1641
1641
  console.error(f);
1642
1642
  }
1643
- No(e);
1643
+ Bo(e);
1644
1644
  });
1645
1645
  });
1646
1646
  }));
1647
1647
  }
1648
- const Bo = (e, l) => {
1649
- const t = Eo(e, !0, wn()), o = ko(t);
1648
+ const qo = (e, l) => {
1649
+ const n = Mo(e, !0, wn()), o = zo(n);
1650
1650
  if (!o.pending.length) {
1651
1651
  let u = !0;
1652
1652
  return l && setTimeout(() => {
@@ -1660,37 +1660,37 @@ const Bo = (e, l) => {
1660
1660
  u = !1;
1661
1661
  };
1662
1662
  }
1663
- const n = /* @__PURE__ */ Object.create(null), i = [];
1663
+ const t = /* @__PURE__ */ Object.create(null), i = [];
1664
1664
  let s, r;
1665
1665
  return o.pending.forEach((u) => {
1666
1666
  const { provider: f, prefix: d } = u;
1667
1667
  if (d === r && f === s)
1668
1668
  return;
1669
- s = f, r = d, i.push(ke(f, d));
1670
- const p = n[f] || (n[f] = /* @__PURE__ */ Object.create(null));
1669
+ s = f, r = d, i.push(ze(f, d));
1670
+ const p = t[f] || (t[f] = /* @__PURE__ */ Object.create(null));
1671
1671
  p[d] || (p[d] = []);
1672
1672
  }), o.pending.forEach((u) => {
1673
- const { provider: f, prefix: d, name: p } = u, _ = ke(f, d), I = _.pendingIcons || (_.pendingIcons = /* @__PURE__ */ new Set());
1674
- I.has(p) || (I.add(p), n[f][d].push(p));
1673
+ const { provider: f, prefix: d, name: p } = u, E = ze(f, d), P = E.pendingIcons || (E.pendingIcons = /* @__PURE__ */ new Set());
1674
+ P.has(p) || (P.add(p), t[f][d].push(p));
1675
1675
  }), i.forEach((u) => {
1676
1676
  const { provider: f, prefix: d } = u;
1677
- n[f][d].length && Ao(u, n[f][d]);
1678
- }), l ? Lo(l, o, i) : tn;
1677
+ t[f][d].length && Do(u, t[f][d]);
1678
+ }), l ? _o(l, o, i) : tn;
1679
1679
  };
1680
- function Do(e, l) {
1681
- const t = {
1680
+ function Ho(e, l) {
1681
+ const n = {
1682
1682
  ...e
1683
1683
  };
1684
1684
  for (const o in l) {
1685
- const n = l[o], i = typeof n;
1686
- o in xn ? (n === null || n && (i === "string" || i === "number")) && (t[o] = n) : i === typeof t[o] && (t[o] = o === "rotate" ? n % 4 : n);
1685
+ const t = l[o], i = typeof t;
1686
+ o in xn ? (t === null || t && (i === "string" || i === "number")) && (n[o] = t) : i === typeof n[o] && (n[o] = o === "rotate" ? t % 4 : t);
1687
1687
  }
1688
- return t;
1688
+ return n;
1689
1689
  }
1690
- const qo = /[\s,]+/;
1691
- function Ho(e, l) {
1692
- l.split(qo).forEach((t) => {
1693
- switch (t.trim()) {
1690
+ const Wo = /[\s,]+/;
1691
+ function jo(e, l) {
1692
+ l.split(Wo).forEach((n) => {
1693
+ switch (n.trim()) {
1694
1694
  case "horizontal":
1695
1695
  e.hFlip = !0;
1696
1696
  break;
@@ -1700,74 +1700,74 @@ function Ho(e, l) {
1700
1700
  }
1701
1701
  });
1702
1702
  }
1703
- function jo(e, l = 0) {
1704
- const t = e.replace(/^-?[0-9.]*/, "");
1705
- function o(n) {
1706
- for (; n < 0; )
1707
- n += 4;
1708
- return n % 4;
1709
- }
1710
- if (t === "") {
1711
- const n = parseInt(e);
1712
- return isNaN(n) ? 0 : o(n);
1713
- } else if (t !== e) {
1714
- let n = 0;
1715
- switch (t) {
1703
+ function Vo(e, l = 0) {
1704
+ const n = e.replace(/^-?[0-9.]*/, "");
1705
+ function o(t) {
1706
+ for (; t < 0; )
1707
+ t += 4;
1708
+ return t % 4;
1709
+ }
1710
+ if (n === "") {
1711
+ const t = parseInt(e);
1712
+ return isNaN(t) ? 0 : o(t);
1713
+ } else if (n !== e) {
1714
+ let t = 0;
1715
+ switch (n) {
1716
1716
  case "%":
1717
- n = 25;
1717
+ t = 25;
1718
1718
  break;
1719
1719
  case "deg":
1720
- n = 90;
1720
+ t = 90;
1721
1721
  }
1722
- if (n) {
1723
- let i = parseFloat(e.slice(0, e.length - t.length));
1724
- return isNaN(i) ? 0 : (i = i / n, i % 1 === 0 ? o(i) : 0);
1722
+ if (t) {
1723
+ let i = parseFloat(e.slice(0, e.length - n.length));
1724
+ return isNaN(i) ? 0 : (i = i / t, i % 1 === 0 ? o(i) : 0);
1725
1725
  }
1726
1726
  }
1727
1727
  return l;
1728
1728
  }
1729
- function Wo(e, l) {
1730
- let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1729
+ function Uo(e, l) {
1730
+ let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1731
1731
  for (const o in l)
1732
- t += " " + o + '="' + l[o] + '"';
1733
- return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
1732
+ n += " " + o + '="' + l[o] + '"';
1733
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1734
1734
  }
1735
- function Vo(e) {
1735
+ function Go(e) {
1736
1736
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1737
1737
  }
1738
- function Uo(e) {
1739
- return "data:image/svg+xml," + Vo(e);
1738
+ function Qo(e) {
1739
+ return "data:image/svg+xml," + Go(e);
1740
1740
  }
1741
- function Go(e) {
1742
- return 'url("' + Uo(e) + '")';
1741
+ function Ko(e) {
1742
+ return 'url("' + Qo(e) + '")';
1743
1743
  }
1744
1744
  const nn = {
1745
1745
  ...Sn,
1746
1746
  inline: !1
1747
- }, Qo = {
1747
+ }, Xo = {
1748
1748
  xmlns: "http://www.w3.org/2000/svg",
1749
1749
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1750
1750
  "aria-hidden": !0,
1751
1751
  role: "img"
1752
- }, Ko = {
1752
+ }, Yo = {
1753
1753
  display: "inline-block"
1754
- }, Ct = {
1754
+ }, kt = {
1755
1755
  backgroundColor: "currentColor"
1756
- }, Mn = {
1756
+ }, Pn = {
1757
1757
  backgroundColor: "transparent"
1758
1758
  }, ln = {
1759
1759
  Image: "var(--svg)",
1760
1760
  Repeat: "no-repeat",
1761
1761
  Size: "100% 100%"
1762
1762
  }, on = {
1763
- webkitMask: Ct,
1764
- mask: Ct,
1765
- background: Mn
1763
+ webkitMask: kt,
1764
+ mask: kt,
1765
+ background: Pn
1766
1766
  };
1767
1767
  for (const e in on) {
1768
1768
  const l = on[e];
1769
- for (const t in ln)
1770
- l[e + t] = ln[t];
1769
+ for (const n in ln)
1770
+ l[e + n] = ln[n];
1771
1771
  }
1772
1772
  const Je = {};
1773
1773
  ["horizontal", "vertical"].forEach((e) => {
@@ -1778,7 +1778,7 @@ function rn(e) {
1778
1778
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1779
1779
  }
1780
1780
  const sn = (e, l) => {
1781
- const t = Do(nn, l), o = { ...Qo }, n = l.mode || "svg", i = {}, s = l.style, r = typeof s == "object" && !(s instanceof Array) ? s : {};
1781
+ const n = Ho(nn, l), o = { ...Xo }, t = l.mode || "svg", i = {}, s = l.style, r = typeof s == "object" && !(s instanceof Array) ? s : {};
1782
1782
  for (let $ in l) {
1783
1783
  const y = l[$];
1784
1784
  if (y !== void 0)
@@ -1791,89 +1791,89 @@ const sn = (e, l) => {
1791
1791
  case "inline":
1792
1792
  case "hFlip":
1793
1793
  case "vFlip":
1794
- t[$] = y === !0 || y === "true" || y === 1;
1794
+ n[$] = y === !0 || y === "true" || y === 1;
1795
1795
  break;
1796
1796
  case "flip":
1797
- typeof y == "string" && Ho(t, y);
1797
+ typeof y == "string" && jo(n, y);
1798
1798
  break;
1799
1799
  case "color":
1800
1800
  i.color = y;
1801
1801
  break;
1802
1802
  case "rotate":
1803
- typeof y == "string" ? t[$] = jo(y) : typeof y == "number" && (t[$] = y);
1803
+ typeof y == "string" ? n[$] = Vo(y) : typeof y == "number" && (n[$] = y);
1804
1804
  break;
1805
1805
  case "ariaHidden":
1806
1806
  case "aria-hidden":
1807
1807
  y !== !0 && y !== "true" && delete o["aria-hidden"];
1808
1808
  break;
1809
1809
  default: {
1810
- const N = Je[$];
1811
- N ? (y === !0 || y === "true" || y === 1) && (t[N] = !0) : nn[$] === void 0 && (o[$] = y);
1810
+ const A = Je[$];
1811
+ A ? (y === !0 || y === "true" || y === 1) && (n[A] = !0) : nn[$] === void 0 && (o[$] = y);
1812
1812
  }
1813
1813
  }
1814
1814
  }
1815
- const u = ao(e, t), f = u.attributes;
1816
- if (t.inline && (i.verticalAlign = "-0.125em"), n === "svg") {
1815
+ const u = co(e, n), f = u.attributes;
1816
+ if (n.inline && (i.verticalAlign = "-0.125em"), t === "svg") {
1817
1817
  o.style = {
1818
1818
  ...i,
1819
1819
  ...r
1820
1820
  }, Object.assign(o, f);
1821
1821
  let $ = 0, y = l.id;
1822
- return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = ho(u.body, y ? () => y + "ID" + $++ : "iconifyVue"), mt("svg", o);
1822
+ return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = vo(u.body, y ? () => y + "ID" + $++ : "iconifyVue"), vt("svg", o);
1823
1823
  }
1824
- const { body: d, width: p, height: _ } = e, I = n === "mask" || (n === "bg" ? !1 : d.indexOf("currentColor") !== -1), F = Wo(d, {
1824
+ const { body: d, width: p, height: E } = e, P = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), I = Uo(d, {
1825
1825
  ...f,
1826
1826
  width: p + "",
1827
- height: _ + ""
1827
+ height: E + ""
1828
1828
  });
1829
1829
  return o.style = {
1830
1830
  ...i,
1831
- "--svg": Go(F),
1831
+ "--svg": Ko(I),
1832
1832
  width: rn(f.width),
1833
1833
  height: rn(f.height),
1834
- ...Ko,
1835
- ...I ? Ct : Mn,
1834
+ ...Yo,
1835
+ ...P ? kt : Pn,
1836
1836
  ...r
1837
- }, mt("span", o);
1837
+ }, vt("span", o);
1838
1838
  };
1839
1839
  wn(!0);
1840
- po("", So);
1840
+ mo("", Co);
1841
1841
  if (typeof document < "u" && typeof window < "u") {
1842
1842
  Tn();
1843
1843
  const e = window;
1844
1844
  if (e.IconifyPreload !== void 0) {
1845
- const l = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
1845
+ const l = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1846
1846
  typeof l == "object" && l !== null && (l instanceof Array ? l : [l]).forEach((o) => {
1847
1847
  try {
1848
1848
  // Check if item is an object and not null/array
1849
1849
  (typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
1850
1850
  typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
1851
- !to(o)) && console.error(t);
1851
+ !lo(o)) && console.error(n);
1852
1852
  } catch {
1853
- console.error(t);
1853
+ console.error(n);
1854
1854
  }
1855
1855
  });
1856
1856
  }
1857
1857
  if (e.IconifyProviders !== void 0) {
1858
1858
  const l = e.IconifyProviders;
1859
1859
  if (typeof l == "object" && l !== null)
1860
- for (let t in l) {
1861
- const o = "IconifyProviders[" + t + "] is invalid.";
1860
+ for (let n in l) {
1861
+ const o = "IconifyProviders[" + n + "] is invalid.";
1862
1862
  try {
1863
- const n = l[t];
1864
- if (typeof n != "object" || !n || n.resources === void 0)
1863
+ const t = l[n];
1864
+ if (typeof t != "object" || !t || t.resources === void 0)
1865
1865
  continue;
1866
- vo(t, n) || console.error(o);
1866
+ go(n, t) || console.error(o);
1867
1867
  } catch {
1868
1868
  console.error(o);
1869
1869
  }
1870
1870
  }
1871
1871
  }
1872
1872
  }
1873
- const Xo = {
1873
+ const Jo = {
1874
1874
  ...it,
1875
1875
  body: ""
1876
- }, ve = ge({
1876
+ }, be = we({
1877
1877
  // Do not inherit other attributes: it is handled by render()
1878
1878
  inheritAttrs: !1,
1879
1879
  // Set initial data
@@ -1905,20 +1905,20 @@ const Xo = {
1905
1905
  return this._name = "", this.abortLoading(), {
1906
1906
  data: e
1907
1907
  };
1908
- let t;
1909
- if (typeof e != "string" || (t = ot(e, !1, !0)) === null)
1908
+ let n;
1909
+ if (typeof e != "string" || (n = ot(e, !1, !0)) === null)
1910
1910
  return this.abortLoading(), null;
1911
- const o = Zl(t);
1911
+ const o = to(n);
1912
1912
  if (!o)
1913
1913
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", o !== null && (this._loadingIcon = {
1914
1914
  name: e,
1915
- abort: Bo([t], () => {
1915
+ abort: qo([n], () => {
1916
1916
  this.counter++;
1917
1917
  })
1918
1918
  })), null;
1919
1919
  this.abortLoading(), this._name !== e && (this._name = e, l && l(e));
1920
- const n = ["iconify"];
1921
- return t.prefix !== "" && n.push("iconify--" + t.prefix), t.provider !== "" && n.push("iconify--" + t.provider), { data: o, classes: n };
1920
+ const t = ["iconify"];
1921
+ return n.prefix !== "" && t.push("iconify--" + n.prefix), n.provider !== "" && t.push("iconify--" + n.provider), { data: o, classes: t };
1922
1922
  }
1923
1923
  },
1924
1924
  // Render icon
@@ -1926,77 +1926,77 @@ const Xo = {
1926
1926
  this.counter;
1927
1927
  const e = this.$attrs, l = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad) : null;
1928
1928
  if (!l)
1929
- return sn(Xo, e);
1930
- let t = e;
1931
- return l.classes && (t = {
1929
+ return sn(Jo, e);
1930
+ let n = e;
1931
+ return l.classes && (n = {
1932
1932
  ...e,
1933
1933
  class: (typeof e.class == "string" ? e.class + " " : "") + l.classes.join(" ")
1934
1934
  }), sn({
1935
1935
  ...it,
1936
1936
  ...l.data
1937
- }, t);
1937
+ }, n);
1938
1938
  }
1939
- }), Yo = {
1939
+ }), Zo = {
1940
1940
  name: "buttonExpand"
1941
- }, Jo = /* @__PURE__ */ ge({
1942
- ...Yo,
1941
+ }, ei = /* @__PURE__ */ we({
1942
+ ...Zo,
1943
1943
  props: {
1944
1944
  item: { default: [] },
1945
1945
  expandedrows: { default: () => [] },
1946
1946
  expandall: { type: Boolean, default: !1 }
1947
1947
  },
1948
1948
  setup(e) {
1949
- const l = e, t = Xn(l, "expandedrows"), o = B(!1);
1950
- function n(s) {
1949
+ const l = e, n = Jn(l, "expandedrows"), o = D(!1);
1950
+ function t(s) {
1951
1951
  if (l.expandall)
1952
- o.value = !o.value, t.value.forEach((r) => {
1952
+ o.value = !o.value, n.value.forEach((r) => {
1953
1953
  r.isExpanded = o.value;
1954
1954
  });
1955
1955
  else {
1956
- const r = t.value.find((u) => u.id == s);
1957
- r ? r.isExpanded = !r.isExpanded : t.value.push({ id: s, isExpanded: !0 });
1956
+ const r = n.value.find((u) => u.id == s);
1957
+ r ? r.isExpanded = !r.isExpanded : n.value.push({ id: s, isExpanded: !0 });
1958
1958
  }
1959
1959
  }
1960
- const i = B(-1);
1960
+ const i = D(-1);
1961
1961
  return ee(
1962
- () => t.value,
1962
+ () => n.value,
1963
1963
  (s, r) => {
1964
1964
  var u;
1965
- new Set(t.value.map((f) => f.isExpanded)).size > 1 ? (i.value = -1, o.value = !0) : (u = t.value.at(0)) != null && u.isExpanded ? (i.value = 0, o.value = !0) : (i.value = 1, o.value = !1);
1965
+ new Set(n.value.map((f) => f.isExpanded)).size > 1 ? (i.value = -1, o.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (i.value = 0, o.value = !0) : (i.value = 1, o.value = !1);
1966
1966
  },
1967
1967
  { deep: !0 }
1968
1968
  ), (s, r) => {
1969
1969
  var u, f;
1970
- return b(), w("button", {
1970
+ return m(), w("button", {
1971
1971
  class: "expandbtn",
1972
- onClick: r[0] || (r[0] = (d) => n(s.item.id))
1972
+ onClick: r[0] || (r[0] = (d) => t(s.item.id))
1973
1973
  }, [
1974
- (((u = t.value.find((d) => d.id == s.item.id)) == null ? void 0 : u.isExpanded) == null ? o.value : (f = t.value.find((d) => d.id == s.item.id)) != null && f.isExpanded) ? (b(), w(U, { key: 0 }, [
1975
- l.expandall ? (b(), w(U, { key: 0 }, [
1976
- i.value ? (b(), ue(Q(ve), {
1974
+ (((u = n.value.find((d) => d.id == s.item.id)) == null ? void 0 : u.isExpanded) == null ? o.value : (f = n.value.find((d) => d.id == s.item.id)) != null && f.isExpanded) ? (m(), w(U, { key: 0 }, [
1975
+ l.expandall ? (m(), w(U, { key: 0 }, [
1976
+ i.value ? (m(), ce(Q(be), {
1977
1977
  key: 0,
1978
1978
  icon: "fluent:chevron-down-up-16-filled"
1979
- })) : (b(), ue(Q(ve), {
1979
+ })) : (m(), ce(Q(be), {
1980
1980
  key: 1,
1981
1981
  icon: "mdi:chevron-down"
1982
1982
  }))
1983
- ], 64)) : (b(), ue(Q(ve), {
1983
+ ], 64)) : (m(), ce(Q(be), {
1984
1984
  key: 1,
1985
1985
  icon: "mdi:chevron-down"
1986
1986
  }))
1987
- ], 64)) : (b(), w(U, { key: 1 }, [
1988
- l.expandall ? (b(), w(U, { key: 0 }, [
1989
- i.value == -1 ? (b(), ue(Q(ve), {
1987
+ ], 64)) : (m(), w(U, { key: 1 }, [
1988
+ l.expandall ? (m(), w(U, { key: 0 }, [
1989
+ i.value == -1 ? (m(), ce(Q(be), {
1990
1990
  key: 0,
1991
1991
  icon: "ion:chevron-expand"
1992
- })) : i.value == 0 ? (b(), ue(Q(ve), {
1992
+ })) : i.value == 0 ? (m(), ce(Q(be), {
1993
1993
  key: 1,
1994
1994
  icon: "mdi:chevron-down"
1995
- })) : (b(), ue(Q(ve), {
1995
+ })) : (m(), ce(Q(be), {
1996
1996
  key: 2,
1997
1997
  icon: "mdi:chevron-right"
1998
1998
  }))
1999
- ], 64)) : (b(), ue(Q(ve), {
1999
+ ], 64)) : (m(), ce(Q(be), {
2000
2000
  key: 1,
2001
2001
  icon: "mdi:chevron-right"
2002
2002
  }))
@@ -2004,161 +2004,161 @@ const Xo = {
2004
2004
  ]);
2005
2005
  };
2006
2006
  }
2007
- }), Ae = (e, l) => {
2008
- const t = e.__vccOpts || e;
2009
- for (const [o, n] of l)
2010
- t[o] = n;
2011
- return t;
2012
- }, In = /* @__PURE__ */ Ae(Jo, [["__scopeId", "data-v-8bd9f848"]]), Zo = {
2007
+ }), Be = (e, l) => {
2008
+ const n = e.__vccOpts || e;
2009
+ for (const [o, t] of l)
2010
+ n[o] = t;
2011
+ return n;
2012
+ }, In = /* @__PURE__ */ Be(ei, [["__scopeId", "data-v-8bd9f848"]]), ti = {
2013
2013
  name: "ButtonRightPanel"
2014
- }, ei = /* @__PURE__ */ ge({
2015
- ...Zo,
2014
+ }, ni = /* @__PURE__ */ we({
2015
+ ...ti,
2016
2016
  props: {
2017
2017
  item: { default: [] }
2018
2018
  },
2019
2019
  emits: ["rightPanelClick"],
2020
2020
  setup(e, { emit: l }) {
2021
- const t = e, o = l;
2022
- function n() {
2023
- o("rightPanelClick", t.item);
2021
+ const n = e, o = l;
2022
+ function t() {
2023
+ o("rightPanelClick", n.item);
2024
2024
  }
2025
- return (i, s) => (b(), w("button", {
2025
+ return (i, s) => (m(), w("button", {
2026
2026
  class: "rightpanelbtn",
2027
- onClick: me(n, ["stop"])
2027
+ onClick: ye(t, ["stop"])
2028
2028
  }, [
2029
- ne(Q(ve), { icon: "lucide:plus" })
2029
+ le(Q(be), { icon: "lucide:plus" })
2030
2030
  ]));
2031
2031
  }
2032
- }), ti = /* @__PURE__ */ Ae(ei, [["__scopeId", "data-v-d739c6bf"]]), ni = { 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" }, li = {
2032
+ }), li = /* @__PURE__ */ Be(ni, [["__scopeId", "data-v-d739c6bf"]]), oi = { 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" }, ii = {
2033
2033
  name: "columnFilter"
2034
- }, oi = /* @__PURE__ */ ge({
2035
- ...li,
2034
+ }, ri = /* @__PURE__ */ we({
2035
+ ...ii,
2036
2036
  props: ["column", "columnFilterLang"],
2037
2037
  emits: ["close", "filterChange"],
2038
2038
  setup(e, { emit: l }) {
2039
- const t = e;
2040
- Lt(() => {
2041
- document.removeEventListener("click", n);
2042
- }), Ce(() => {
2043
- document.addEventListener("click", n);
2039
+ const n = e;
2040
+ zt(() => {
2041
+ document.removeEventListener("click", t);
2042
+ }), Le(() => {
2043
+ document.addEventListener("click", t);
2044
2044
  });
2045
- const o = l, n = () => {
2045
+ const o = l, t = () => {
2046
2046
  o("close");
2047
2047
  }, i = (s) => {
2048
- t.column.condition = s, s === "" && (t.column.value = ""), o("filterChange", t.column);
2048
+ n.column.condition = s, s === "" && (n.column.value = ""), o("filterChange", n.column);
2049
2049
  };
2050
- return (s, r) => (b(), w("div", ni, [
2050
+ return (s, r) => (m(), w("div", oi, [
2051
2051
  C("div", {
2052
2052
  class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",
2053
- onClick: me(n, ["stop"])
2053
+ onClick: ye(t, ["stop"])
2054
2054
  }, [
2055
2055
  C("button", {
2056
2056
  type: "button",
2057
- class: M({ active: t.column.condition === "" }),
2057
+ class: T({ active: n.column.condition === "" }),
2058
2058
  onClick: r[0] || (r[0] = (u) => i(""))
2059
- }, j((t.columnFilterLang && t.columnFilterLang.NoFilter) ?? "No filter"), 3),
2060
- t.column.type === "string" ? (b(), w(U, { key: 0 }, [
2059
+ }, W((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2060
+ n.column.type === "string" ? (m(), w(U, { key: 0 }, [
2061
2061
  C("button", {
2062
2062
  type: "button",
2063
- class: M({ active: t.column.condition === "Contains" }),
2063
+ class: T({ active: n.column.condition === "Contains" }),
2064
2064
  onClick: r[1] || (r[1] = (u) => i("Contains"))
2065
- }, j((t.columnFilterLang && t.columnFilterLang.Contains) ?? "Contains"), 3),
2065
+ }, W((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2066
2066
  C("button", {
2067
2067
  type: "button",
2068
- class: M({ active: t.column.condition === "NotContains" }),
2068
+ class: T({ active: n.column.condition === "NotContains" }),
2069
2069
  onClick: r[2] || (r[2] = (u) => i("NotContains"))
2070
- }, j((t.columnFilterLang && t.columnFilterLang.NotContains) ?? "NotContains"), 3),
2070
+ }, W((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2071
2071
  C("button", {
2072
2072
  type: "button",
2073
- class: M({ active: t.column.condition === "Equal" }),
2073
+ class: T({ active: n.column.condition === "Equal" }),
2074
2074
  onClick: r[3] || (r[3] = (u) => i("Equal"))
2075
- }, j((t.columnFilterLang && t.columnFilterLang.Equal) ?? "Equal"), 3),
2075
+ }, W((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2076
2076
  C("button", {
2077
2077
  type: "button",
2078
- class: M({ active: t.column.condition === "NotEqual" }),
2078
+ class: T({ active: n.column.condition === "NotEqual" }),
2079
2079
  onClick: r[4] || (r[4] = (u) => i("NotEqual"))
2080
- }, j((t.columnFilterLang && t.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2080
+ }, W((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2081
2081
  C("button", {
2082
2082
  type: "button",
2083
- class: M({ active: t.column.condition === "StartsWith" }),
2083
+ class: T({ active: n.column.condition === "StartsWith" }),
2084
2084
  onClick: r[5] || (r[5] = (u) => i("StartsWith"))
2085
- }, j((t.columnFilterLang && t.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2085
+ }, W((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2086
2086
  C("button", {
2087
2087
  type: "button",
2088
- class: M({ active: t.column.condition === "EndsWith" }),
2088
+ class: T({ active: n.column.condition === "EndsWith" }),
2089
2089
  onClick: r[6] || (r[6] = (u) => i("EndsWith"))
2090
- }, j((t.columnFilterLang && t.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2091
- ], 64)) : t.column.type === "number" ? (b(), w(U, { key: 1 }, [
2090
+ }, W((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2091
+ ], 64)) : n.column.type === "number" ? (m(), w(U, { key: 1 }, [
2092
2092
  C("button", {
2093
2093
  type: "button",
2094
- class: M({ active: t.column.condition === "Equal" }),
2094
+ class: T({ active: n.column.condition === "Equal" }),
2095
2095
  onClick: r[7] || (r[7] = (u) => i("Equal"))
2096
- }, j((t.columnFilterLang && t.columnFilterLang.Equal) ?? "Equal"), 3),
2096
+ }, W((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2097
2097
  C("button", {
2098
2098
  type: "button",
2099
- class: M({ active: t.column.condition === "NotEqual" }),
2099
+ class: T({ active: n.column.condition === "NotEqual" }),
2100
2100
  onClick: r[8] || (r[8] = (u) => i("NotEqual"))
2101
- }, j((t.columnFilterLang && t.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2101
+ }, W((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2102
2102
  C("button", {
2103
2103
  type: "button",
2104
- class: M({ active: t.column.condition === "GreaterThan" }),
2104
+ class: T({ active: n.column.condition === "GreaterThan" }),
2105
2105
  onClick: r[9] || (r[9] = (u) => i("GreaterThan"))
2106
- }, j((t.columnFilterLang && t.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2106
+ }, W((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2107
2107
  C("button", {
2108
2108
  type: "button",
2109
- class: M({ active: t.column.condition === "GreaterThanOrEqual" }),
2109
+ class: T({ active: n.column.condition === "GreaterThanOrEqual" }),
2110
2110
  onClick: r[10] || (r[10] = (u) => i("GreaterThanOrEqual"))
2111
- }, j((t.columnFilterLang && t.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2111
+ }, W((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2112
2112
  C("button", {
2113
2113
  type: "button",
2114
- class: M({ active: t.column.condition === "LessThan" }),
2114
+ class: T({ active: n.column.condition === "LessThan" }),
2115
2115
  onClick: r[11] || (r[11] = (u) => i("LessThan"))
2116
- }, j((t.columnFilterLang && t.columnFilterLang.LessThan) ?? "LessThan"), 3),
2116
+ }, W((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3),
2117
2117
  C("button", {
2118
2118
  type: "button",
2119
- class: M({ active: t.column.condition === "LessThanOrEqual" }),
2119
+ class: T({ active: n.column.condition === "LessThanOrEqual" }),
2120
2120
  onClick: r[12] || (r[12] = (u) => i("LessThanOrEqual"))
2121
- }, j((t.columnFilterLang && t.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2122
- ], 64)) : t.column.type === "date" ? (b(), w(U, { key: 2 }, [
2121
+ }, W((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2122
+ ], 64)) : n.column.type === "date" ? (m(), w(U, { key: 2 }, [
2123
2123
  C("button", {
2124
2124
  type: "button",
2125
- class: M({ active: t.column.condition === "Equal" }),
2125
+ class: T({ active: n.column.condition === "Equal" }),
2126
2126
  onClick: r[13] || (r[13] = (u) => i("Equal"))
2127
- }, j((t.columnFilterLang && t.columnFilterLang.Equal) ?? "Equal"), 3),
2127
+ }, W((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2128
2128
  C("button", {
2129
2129
  type: "button",
2130
- class: M({ active: t.column.condition === "NotEqual" }),
2130
+ class: T({ active: n.column.condition === "NotEqual" }),
2131
2131
  onClick: r[14] || (r[14] = (u) => i("NotEqual"))
2132
- }, j((t.columnFilterLang && t.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2132
+ }, W((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2133
2133
  C("button", {
2134
2134
  type: "button",
2135
- class: M({ active: t.column.condition === "GreaterThan" }),
2135
+ class: T({ active: n.column.condition === "GreaterThan" }),
2136
2136
  onClick: r[15] || (r[15] = (u) => i("GreaterThan"))
2137
- }, j((t.columnFilterLang && t.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2137
+ }, W((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2138
2138
  C("button", {
2139
2139
  type: "button",
2140
- class: M({ active: t.column.condition === "LessThan" }),
2140
+ class: T({ active: n.column.condition === "LessThan" }),
2141
2141
  onClick: r[16] || (r[16] = (u) => i("LessThan"))
2142
- }, j((t.columnFilterLang && t.columnFilterLang.LessThan) ?? "LessThan"), 3)
2143
- ], 64)) : R("", !0),
2142
+ }, W((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3)
2143
+ ], 64)) : N("", !0),
2144
2144
  C("button", {
2145
2145
  type: "button",
2146
- class: M({ active: t.column.condition === "IsNull" }),
2146
+ class: T({ active: n.column.condition === "IsNull" }),
2147
2147
  onClick: r[17] || (r[17] = (u) => i("IsNull"))
2148
- }, j((t.columnFilterLang && t.columnFilterLang.IsNull) ?? "IsNull"), 3),
2148
+ }, W((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2149
2149
  C("button", {
2150
2150
  type: "button",
2151
- class: M({ active: t.column.condition === "IsNotNull" }),
2151
+ class: T({ active: n.column.condition === "IsNotNull" }),
2152
2152
  onClick: r[18] || (r[18] = (u) => i("IsNotNull"))
2153
- }, j((t.columnFilterLang && t.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2153
+ }, W((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2154
2154
  ])
2155
2155
  ]));
2156
2156
  }
2157
- }), ii = {}, ri = {
2157
+ }), si = {}, ai = {
2158
2158
  version: "1.1",
2159
2159
  viewBox: "0 0 17 12",
2160
2160
  xmlns: "http://www.w3.org/2000/svg"
2161
- }, si = /* @__PURE__ */ C("g", {
2161
+ }, ui = /* @__PURE__ */ C("g", {
2162
2162
  fill: "none",
2163
2163
  "fill-rule": "evenodd"
2164
2164
  }, [
@@ -2169,13 +2169,13 @@ const Xo = {
2169
2169
  }, [
2170
2170
  /* @__PURE__ */ C("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" })
2171
2171
  ])
2172
- ], -1), ai = [
2173
- si
2172
+ ], -1), ci = [
2173
+ ui
2174
2174
  ];
2175
- function ui(e, l) {
2176
- return b(), w("svg", ri, ai);
2175
+ function di(e, l) {
2176
+ return m(), w("svg", ai, ci);
2177
2177
  }
2178
- const Fn = /* @__PURE__ */ Ae(ii, [["render", ui]]), ci = {}, di = {
2178
+ const Fn = /* @__PURE__ */ Be(si, [["render", di]]), fi = {}, hi = {
2179
2179
  viewBox: "0 0 24 24",
2180
2180
  width: "24",
2181
2181
  height: "24",
@@ -2185,18 +2185,18 @@ const Fn = /* @__PURE__ */ Ae(ii, [["render", ui]]), ci = {}, di = {
2185
2185
  "stroke-linecap": "round",
2186
2186
  "stroke-linejoin": "round",
2187
2187
  class: "css-i6dzq1"
2188
- }, fi = /* @__PURE__ */ C("line", {
2188
+ }, pi = /* @__PURE__ */ C("line", {
2189
2189
  x1: "5",
2190
2190
  y1: "12",
2191
2191
  x2: "19",
2192
2192
  y2: "12"
2193
- }, null, -1), hi = [
2194
- fi
2193
+ }, null, -1), vi = [
2194
+ pi
2195
2195
  ];
2196
- function pi(e, l) {
2197
- return b(), w("svg", di, hi);
2196
+ function mi(e, l) {
2197
+ return m(), w("svg", hi, vi);
2198
2198
  }
2199
- const vi = /* @__PURE__ */ Ae(ci, [["render", pi]]), mi = {}, gi = {
2199
+ const gi = /* @__PURE__ */ Be(fi, [["render", mi]]), bi = {}, yi = {
2200
2200
  viewBox: "0 0 24 24",
2201
2201
  width: "24",
2202
2202
  height: "24",
@@ -2206,31 +2206,31 @@ const vi = /* @__PURE__ */ Ae(ci, [["render", pi]]), mi = {}, gi = {
2206
2206
  "stroke-linecap": "round",
2207
2207
  "stroke-linejoin": "round",
2208
2208
  class: "css-i6dzq1"
2209
- }, bi = /* @__PURE__ */ C("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), yi = [
2210
- bi
2209
+ }, wi = /* @__PURE__ */ C("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), xi = [
2210
+ wi
2211
2211
  ];
2212
- function wi(e, l) {
2213
- return b(), w("svg", gi, yi);
2212
+ function Si(e, l) {
2213
+ return m(), w("svg", yi, xi);
2214
2214
  }
2215
- const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki = { class: "bh-checkbox" }, Ci = {
2215
+ const ki = /* @__PURE__ */ Be(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi = { class: "bh-checkbox" }, Li = {
2216
2216
  key: 2,
2217
2217
  class: "bh-w-px"
2218
- }, zi = ["onClick"], Li = {
2218
+ }, Ei = ["onClick"], _i = {
2219
2219
  width: "16",
2220
2220
  height: "16",
2221
2221
  viewBox: "0 0 14 14",
2222
2222
  fill: "none"
2223
- }, Ei = {
2223
+ }, Mi = {
2224
2224
  key: 0,
2225
2225
  class: "bh-filter bh-relative"
2226
- }, _i = ["onUpdate:modelValue"], Pi = ["onUpdate:modelValue"], Ti = ["onUpdate:modelValue"], Mi = ["onUpdate:modelValue"], Ii = /* @__PURE__ */ C("option", { value: void 0 }, "All", -1), Fi = /* @__PURE__ */ C("option", { value: !0 }, "True", -1), Oi = /* @__PURE__ */ C("option", { value: !1 }, "False", -1), $i = [
2227
- Ii,
2228
- Fi,
2229
- Oi
2230
- ], Ri = ["onClick"], Ni = {
2226
+ }, Ti = ["onUpdate:modelValue"], Pi = ["onUpdate:modelValue"], Ii = ["onUpdate:modelValue"], Fi = ["onUpdate:modelValue"], Oi = /* @__PURE__ */ C("option", { value: void 0 }, "All", -1), $i = /* @__PURE__ */ C("option", { value: !0 }, "True", -1), Ri = /* @__PURE__ */ C("option", { value: !1 }, "False", -1), Ni = [
2227
+ Oi,
2228
+ $i,
2229
+ Ri
2230
+ ], Ai = ["onClick"], Bi = {
2231
2231
  name: "columnHeader"
2232
- }, an = /* @__PURE__ */ ge({
2233
- ...Ni,
2232
+ }, an = /* @__PURE__ */ we({
2233
+ ...Bi,
2234
2234
  props: [
2235
2235
  "all",
2236
2236
  "expandedrows",
@@ -2248,115 +2248,115 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2248
2248
  "toggleFilterMenu"
2249
2249
  ],
2250
2250
  setup(e, { emit: l }) {
2251
- const t = B(null), o = e, n = l;
2251
+ const n = D(null), o = e, t = l;
2252
2252
  return ee(() => o.checkAll, () => {
2253
- t.value && (t.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, t.value.checked = o.checkAll);
2254
- }), (s, r) => (b(), w("tr", Si, [
2255
- o.all.hasCheckbox ? (b(), w("th", {
2253
+ n.value && (n.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, n.value.checked = o.checkAll);
2254
+ }), (s, r) => (m(), w("tr", Ci, [
2255
+ o.all.hasCheckbox ? (m(), w("th", {
2256
2256
  key: "chkall",
2257
- class: M(["bh-w-px", {
2257
+ class: T(["bh-w-px", {
2258
2258
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2259
2259
  "bh-top-0": o.all.stickyHeader,
2260
2260
  "bh-left-0": o.all.stickyFirstColumn
2261
2261
  }])
2262
2262
  }, [
2263
- C("div", ki, [
2263
+ C("div", zi, [
2264
2264
  C("input", {
2265
2265
  ref_key: "selectedAll",
2266
- ref: t,
2266
+ ref: n,
2267
2267
  type: "checkbox",
2268
- onClick: r[0] || (r[0] = me((u) => {
2268
+ onClick: r[0] || (r[0] = ye((u) => {
2269
2269
  var f;
2270
- return n("selectAll", (f = u == null ? void 0 : u.target) == null ? void 0 : f.checked);
2270
+ return t("selectAll", (f = u == null ? void 0 : u.target) == null ? void 0 : f.checked);
2271
2271
  }, ["stop"]))
2272
2272
  }, null, 512),
2273
2273
  C("div", null, [
2274
- ne(Fn, { class: "check" }),
2275
- ne(vi, { class: "intermediate" })
2274
+ le(Fn, { class: "check" }),
2275
+ le(gi, { class: "intermediate" })
2276
2276
  ])
2277
2277
  ])
2278
- ], 2)) : R("", !0),
2279
- o.all.hasRightPanel ? (b(), w("th", {
2278
+ ], 2)) : N("", !0),
2279
+ o.all.hasRightPanel ? (m(), w("th", {
2280
2280
  key: 1,
2281
- class: M(["bh-w-px", {
2281
+ class: T(["bh-w-px", {
2282
2282
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2283
2283
  "bh-top-0": o.all.stickyHeader,
2284
2284
  "bh-left-0": o.all.stickyFirstColumn
2285
2285
  }])
2286
- }, null, 2)) : R("", !0),
2287
- o.all.hasSubtable ? (b(), w("th", Ci, [
2288
- o.all.expandall ? (b(), ue(In, {
2286
+ }, null, 2)) : N("", !0),
2287
+ o.all.hasSubtable ? (m(), w("th", Li, [
2288
+ o.all.expandall ? (m(), ce(In, {
2289
2289
  key: 0,
2290
2290
  expandedrows: o.expandedrows,
2291
2291
  expandall: o.all.expandall
2292
- }, null, 8, ["expandedrows", "expandall"])) : R("", !0)
2293
- ])) : R("", !0),
2294
- (b(!0), w(U, null, fe(o.all.columns, (u, f) => (b(), w(U, null, [
2295
- u.hide ? R("", !0) : (b(), w("th", {
2292
+ }, null, 8, ["expandedrows", "expandall"])) : N("", !0)
2293
+ ])) : N("", !0),
2294
+ (m(!0), w(U, null, pe(o.all.columns, (u, f) => (m(), w(U, null, [
2295
+ u.hide ? N("", !0) : (m(), w("th", {
2296
2296
  key: u.field,
2297
- class: M(["bh-select-none bh-z-[1]", [
2297
+ class: T(["bh-select-none bh-z-[1]", [
2298
2298
  o.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2299
2299
  f === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2300
2300
  o.all.hasCheckbox && f === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2301
2301
  ]]),
2302
- style: oe({
2302
+ style: re({
2303
2303
  width: u.width,
2304
2304
  "min-width": u.minWidth,
2305
2305
  "max-width": u.maxWidth
2306
2306
  })
2307
2307
  }, [
2308
2308
  C("div", {
2309
- class: M(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2310
- onClick: (d) => o.all.sortable && u.sort && n("sortChange", u.field)
2309
+ class: T(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2310
+ onClick: (d) => o.all.sortable && u.sort && t("sortChange", u.field)
2311
2311
  }, [
2312
- gt(j(u.title) + " ", 1),
2313
- o.all.sortable && u.sort ? (b(), w("span", {
2312
+ mt(W(u.title) + " ", 1),
2313
+ o.all.sortable && u.sort ? (m(), w("span", {
2314
2314
  key: 0,
2315
- class: M(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2315
+ class: T(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2316
2316
  }, [
2317
- (b(), w("svg", Li, [
2317
+ (m(), w("svg", _i, [
2318
2318
  C("polygon", {
2319
2319
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2320
2320
  fill: "currentColor",
2321
- class: M(["bh-text-black/20", [
2321
+ class: T(["bh-text-black/20", [
2322
2322
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2323
2323
  ]])
2324
2324
  }, null, 2),
2325
2325
  C("polygon", {
2326
2326
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2327
2327
  fill: "currentColor",
2328
- class: M(["bh-text-black/20", [
2328
+ class: T(["bh-text-black/20", [
2329
2329
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2330
2330
  ]])
2331
2331
  }, null, 2)
2332
2332
  ]))
2333
- ], 2)) : R("", !0)
2334
- ], 10, zi),
2335
- o.all.columnFilter && !o.isFooter ? (b(), w(U, { key: 0 }, [
2336
- u.filter ? (b(), w("div", Ei, [
2337
- u.type === "string" ? he((b(), w("input", {
2333
+ ], 2)) : N("", !0)
2334
+ ], 10, Ei),
2335
+ o.all.columnFilter && !o.isFooter ? (m(), w(U, { key: 0 }, [
2336
+ u.filter ? (m(), w("div", Mi, [
2337
+ u.type === "string" ? ve((m(), w("input", {
2338
2338
  key: 0,
2339
2339
  "onUpdate:modelValue": (d) => u.value = d,
2340
2340
  type: "text",
2341
2341
  class: "bh-form-control",
2342
- onKeyup: r[1] || (r[1] = (d) => n("filterChange"))
2343
- }, null, 40, _i)), [
2342
+ onKeyup: r[1] || (r[1] = (d) => t("filterChange"))
2343
+ }, null, 40, Ti)), [
2344
2344
  [
2345
- ct,
2345
+ ut,
2346
2346
  u.value,
2347
2347
  void 0,
2348
2348
  { trim: !0 }
2349
2349
  ]
2350
- ]) : R("", !0),
2351
- u.type === "number" ? he((b(), w("input", {
2350
+ ]) : N("", !0),
2351
+ u.type === "number" ? ve((m(), w("input", {
2352
2352
  key: 1,
2353
2353
  "onUpdate:modelValue": (d) => u.value = d,
2354
2354
  type: "number",
2355
2355
  class: "bh-form-control",
2356
- onKeyup: r[2] || (r[2] = (d) => n("filterChange"))
2356
+ onKeyup: r[2] || (r[2] = (d) => t("filterChange"))
2357
2357
  }, null, 40, Pi)), [
2358
2358
  [
2359
- ct,
2359
+ ut,
2360
2360
  u.value,
2361
2361
  void 0,
2362
2362
  {
@@ -2364,112 +2364,115 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2364
2364
  trim: !0
2365
2365
  }
2366
2366
  ]
2367
- ]) : u.type === "date" ? he((b(), w("input", {
2367
+ ]) : u.type === "date" ? ve((m(), w("input", {
2368
2368
  key: 2,
2369
2369
  "onUpdate:modelValue": (d) => u.value = d,
2370
2370
  type: "date",
2371
2371
  class: "bh-form-control",
2372
- onChange: r[3] || (r[3] = (d) => n("filterChange"))
2373
- }, null, 40, Ti)), [
2374
- [ct, u.value]
2375
- ]) : u.type === "bool" ? he((b(), w("select", {
2372
+ onChange: r[3] || (r[3] = (d) => t("filterChange"))
2373
+ }, null, 40, Ii)), [
2374
+ [ut, u.value]
2375
+ ]) : u.type === "bool" ? ve((m(), w("select", {
2376
2376
  key: 3,
2377
2377
  "onUpdate:modelValue": (d) => u.value = d,
2378
2378
  class: "bh-form-control",
2379
- onChange: r[4] || (r[4] = (d) => n("filterChange")),
2379
+ onChange: r[4] || (r[4] = (d) => t("filterChange")),
2380
2380
  onClick: r[5] || (r[5] = //@ts-ignore
2381
2381
  (...d) => o.isOpenFilter && o.isOpenFilter(...d))
2382
- }, $i, 40, Mi)), [
2382
+ }, Ni, 40, Fi)), [
2383
2383
  [cn, u.value]
2384
- ]) : R("", !0),
2385
- u.type !== "bool" ? (b(), w("button", {
2384
+ ]) : N("", !0),
2385
+ u.type !== "bool" ? (m(), w("button", {
2386
2386
  key: 4,
2387
2387
  type: "button",
2388
- onClick: me((d) => n("toggleFilterMenu", u), ["stop"])
2388
+ onClick: ye((d) => t("toggleFilterMenu", u), ["stop"])
2389
2389
  }, [
2390
- ne(xi, { class: "bh-w-4" })
2391
- ], 8, Ri)) : R("", !0),
2392
- he(ne(oi, {
2390
+ le(ki, { class: "bh-w-4" })
2391
+ ], 8, Ai)) : N("", !0),
2392
+ ve(le(ri, {
2393
2393
  column: u,
2394
2394
  type: u.type,
2395
2395
  columnFilterLang: o.columnFilterLang,
2396
- onClose: r[6] || (r[6] = (d) => n("toggleFilterMenu", null)),
2397
- onFilterChange: r[7] || (r[7] = (d) => n("filterChange"))
2396
+ onClose: r[6] || (r[6] = (d) => t("toggleFilterMenu", null)),
2397
+ onFilterChange: r[7] || (r[7] = (d) => t("filterChange"))
2398
2398
  }, null, 8, ["column", "type", "columnFilterLang"]), [
2399
- [vt, o.isOpenFilter === u.field]
2399
+ [pt, o.isOpenFilter === u.field]
2400
2400
  ])
2401
- ])) : R("", !0)
2402
- ], 64)) : R("", !0)
2401
+ ])) : N("", !0)
2402
+ ], 64)) : N("", !0)
2403
2403
  ], 6))
2404
2404
  ], 64))), 256))
2405
2405
  ]));
2406
2406
  }
2407
- }), Ai = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Bi = { class: "bh-flex bh-h-full" }, Di = /* @__PURE__ */ C("span", null, "##Left Menu Slot##", -1), qi = { class: "menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md" }, Hi = /* @__PURE__ */ C("path", {
2407
+ }), Di = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, qi = { class: "bh-flex bh-h-full" }, Hi = /* @__PURE__ */ C("span", null, "##Left Menu Slot##", -1), Wi = { class: "menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none" }, ji = /* @__PURE__ */ C("path", {
2408
2408
  d: "M7 1L1 6L7 11",
2409
2409
  stroke: "currentColor",
2410
2410
  "stroke-width": "2",
2411
2411
  "stroke-linecap": "round",
2412
2412
  "stroke-linejoin": "round"
2413
- }, null, -1), ji = [
2414
- Hi
2415
- ], Wi = { class: "bh-flex-1" }, Vi = /* @__PURE__ */ C("span", null, "##Top Menu Slot##", -1), Ui = /* @__PURE__ */ C("span", null, "##Table Action Header Slot##", -1), Gi = ["onClick"], Qi = { class: "bh-checkbox" }, Ki = ["value"], Xi = ["innerHTML"], Yi = ["onClick"], Ji = ["colspan"], Zi = ["colspan"], er = /* @__PURE__ */ C("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), tr = [
2416
- er
2417
- ], nr = ["colspan"], lr = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, or = { class: "bh-pagination-info bh-flex bh-items-center" }, ir = { class: "bh-mr-2" }, rr = ["value"], sr = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, ar = ["innerHTML"], ur = {
2413
+ }, null, -1), Vi = [
2414
+ ji
2415
+ ], Ui = {
2416
+ class: "bh-flex-1",
2417
+ style: { overflow: "auto", "min-width": "0" }
2418
+ }, Gi = /* @__PURE__ */ C("span", null, "##Top Menu Slot##", -1), Qi = /* @__PURE__ */ C("span", null, "##Table Action Header Slot##", -1), Ki = ["onClick"], Xi = { class: "bh-checkbox" }, Yi = ["value"], Ji = ["innerHTML"], Zi = ["onClick"], er = ["colspan"], tr = ["colspan"], nr = /* @__PURE__ */ C("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), lr = [
2419
+ nr
2420
+ ], or = ["colspan"], ir = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, rr = { class: "bh-pagination-info bh-flex bh-items-center" }, sr = { class: "bh-mr-2" }, ar = ["value"], ur = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, cr = ["innerHTML"], dr = {
2418
2421
  key: 1,
2419
2422
  "aria-hidden": "true",
2420
2423
  width: "14",
2421
2424
  height: "14",
2422
2425
  viewBox: "0 0 16 16"
2423
- }, cr = /* @__PURE__ */ C("g", {
2426
+ }, fr = /* @__PURE__ */ C("g", {
2424
2427
  fill: "currentColor",
2425
2428
  "fill-rule": "evenodd"
2426
2429
  }, [
2427
2430
  /* @__PURE__ */ C("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" }),
2428
2431
  /* @__PURE__ */ C("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" })
2429
- ], -1), dr = [
2430
- cr
2431
- ], fr = ["innerHTML"], hr = {
2432
+ ], -1), hr = [
2433
+ fr
2434
+ ], pr = ["innerHTML"], vr = {
2432
2435
  key: 1,
2433
2436
  "aria-hidden": "true",
2434
2437
  width: "14",
2435
2438
  height: "14",
2436
2439
  viewBox: "0 0 16 16"
2437
- }, pr = /* @__PURE__ */ C("path", {
2440
+ }, mr = /* @__PURE__ */ C("path", {
2438
2441
  fill: "currentColor",
2439
2442
  "fill-rule": "evenodd",
2440
2443
  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"
2441
- }, null, -1), vr = [
2442
- pr
2443
- ], mr = ["onClick"], gr = ["innerHTML"], br = {
2444
+ }, null, -1), gr = [
2445
+ mr
2446
+ ], br = ["onClick"], yr = ["innerHTML"], wr = {
2444
2447
  key: 1,
2445
2448
  "aria-hidden": "true",
2446
2449
  width: "14",
2447
2450
  height: "14",
2448
2451
  viewBox: "0 0 16 16"
2449
- }, yr = /* @__PURE__ */ C("path", {
2452
+ }, xr = /* @__PURE__ */ C("path", {
2450
2453
  fill: "currentColor",
2451
2454
  "fill-rule": "evenodd",
2452
2455
  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"
2453
- }, null, -1), wr = [
2454
- yr
2455
- ], xr = ["innerHTML"], Sr = {
2456
+ }, null, -1), Sr = [
2457
+ xr
2458
+ ], kr = ["innerHTML"], Cr = {
2456
2459
  key: 1,
2457
2460
  "aria-hidden": "true",
2458
2461
  width: "14",
2459
2462
  height: "14",
2460
2463
  viewBox: "0 0 16 16"
2461
- }, kr = /* @__PURE__ */ C("g", {
2464
+ }, zr = /* @__PURE__ */ C("g", {
2462
2465
  fill: "currentColor",
2463
2466
  "fill-rule": "evenodd"
2464
2467
  }, [
2465
2468
  /* @__PURE__ */ C("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" }),
2466
2469
  /* @__PURE__ */ C("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" })
2467
- ], -1), Cr = [
2468
- kr
2469
- ], zr = {
2470
+ ], -1), Lr = [
2471
+ zr
2472
+ ], Er = {
2470
2473
  name: "Vue3Datatable"
2471
- }, Er = /* @__PURE__ */ ge({
2472
- ...zr,
2474
+ }, Mr = /* @__PURE__ */ we({
2475
+ ...Er,
2473
2476
  props: {
2474
2477
  loading: { type: Boolean, default: !1 },
2475
2478
  isServerMode: { type: Boolean, default: !1 },
@@ -2516,7 +2519,7 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2516
2519
  scrollbarautohide: { type: Boolean, default: !0 },
2517
2520
  scrollbarfixedthumb: { type: Boolean, default: !1 },
2518
2521
  scrollbarautoexpand: { type: Boolean, default: !1 },
2519
- scrollbardirection: { default: "vertical" },
2522
+ scrollbardirection: { default: "both" },
2520
2523
  enableleftmenu: { type: Boolean },
2521
2524
  enabletopmenu: { type: Boolean },
2522
2525
  leftmenuMinWidth: { default: 50 },
@@ -2544,40 +2547,51 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2544
2547
  "currentLeftMenuSize",
2545
2548
  "rowRightPanelClick"
2546
2549
  ],
2547
- setup(e, { expose: l, emit: t }) {
2550
+ setup(e, { expose: l, emit: n }) {
2548
2551
  var Rt, Nt;
2549
- const o = un(), n = e;
2550
- for (const a of n.columns || []) {
2552
+ const o = un(), t = e;
2553
+ for (const a of t.columns || []) {
2551
2554
  const v = ((Rt = a.type) == null ? void 0 : Rt.toLowerCase()) || "string";
2552
2555
  a.type = v, 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 = !v || v === "string" ? "Contains" : "Equal";
2553
2556
  }
2554
- const i = B([]), s = B(n.page), r = B(
2555
- n.pagination ? n.pageSize : (Nt = n.rows) == null ? void 0 : Nt.length
2556
- ), u = n.pageSize, f = B(n.sortColumn), d = n.sortColumn, p = B(n.sortDirection), _ = n.sortDirection, I = B(n.totalRows), F = B([]), $ = B(null), y = B(n.loading), N = B(n.search);
2557
- JSON.parse(JSON.stringify(n.columns));
2558
- const H = B(null), W = B(null);
2559
- let O = B(0);
2560
- const X = B(230), z = B(n.leftmenuDefaultWidth), E = B(!1), A = B(null), Y = () => {
2561
- E.value = !E.value, z.value = E.value ? n.leftmenuMinWidth : n.leftmenuDefaultWidth, A.value && (A.value.style.width = z.value + "px"), D("currentLeftMenuSize", z.value);
2557
+ const i = D([]), s = D(t.page), r = D(
2558
+ t.pagination ? t.pageSize : (Nt = t.rows) == null ? void 0 : Nt.length
2559
+ ), u = t.pageSize, f = D(t.sortColumn), d = t.sortColumn, p = D(t.sortDirection), E = t.sortDirection, P = D(t.totalRows), I = D([]), $ = D(null), y = D(t.loading), A = D(t.search);
2560
+ JSON.parse(JSON.stringify(t.columns));
2561
+ const H = D(null), j = D(null);
2562
+ let O = D(0);
2563
+ const Y = D(230), z = D(t.leftmenuDefaultWidth), L = D(!1), B = D(null), X = () => {
2564
+ if (B.value) {
2565
+ const a = L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2566
+ B.value.style.cssText = `
2567
+ width: ${z.value}px !important;
2568
+ min-width: ${a}px !important;
2569
+ max-width: ${a}px !important;
2570
+ `;
2571
+ }
2572
+ }, Z = () => {
2573
+ L.value ? z.value = t.leftmenuMinWidth : z.value = t.leftmenuDefaultWidth, X();
2574
+ }, st = () => {
2575
+ L.value = !L.value, z.value = L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, X(), oe("currentLeftMenuSize", z.value);
2562
2576
  };
2563
- Ce(() => {
2564
- ae(), Fe(() => {
2565
- Ge.value <= 0 && (Ge.value = 10), z.value = n.leftmenuDefaultWidth;
2577
+ Le(() => {
2578
+ ue(), Oe(() => {
2579
+ Ge.value <= 0 && (Ge.value = 10), z.value = t.leftmenuDefaultWidth, X(), window.addEventListener("resize", Z);
2566
2580
  });
2567
2581
  });
2568
- const D = t;
2582
+ const oe = n;
2569
2583
  l({
2570
2584
  reset() {
2571
- Ve();
2585
+ $n();
2572
2586
  },
2573
2587
  getSelectedRows() {
2574
- return On();
2588
+ return Rn();
2575
2589
  },
2576
2590
  getColumnFilters() {
2577
- return $n();
2591
+ return Nn();
2578
2592
  },
2579
2593
  clearSelectedRows() {
2580
- return Rn();
2594
+ return An();
2581
2595
  },
2582
2596
  selectRow(a) {
2583
2597
  Ft(a);
@@ -2589,141 +2603,141 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2589
2603
  return Ue(a);
2590
2604
  },
2591
2605
  getFilteredRows() {
2592
- return De();
2606
+ return He();
2593
2607
  }
2594
2608
  });
2595
- const Be = (a, ...v) => a.replace(/{(\d+)}/g, (k, q) => typeof v[q] < "u" ? v[q] : k), J = K(() => {
2596
- const a = n.columns.find((v) => v.isUnique);
2609
+ const De = (a, ...v) => a.replace(/{(\d+)}/g, (k, q) => typeof v[q] < "u" ? v[q] : k), J = K(() => {
2610
+ const a = t.columns.find((v) => v.isUnique);
2597
2611
  return (a == null ? void 0 : a.field) || null;
2598
- }), re = K(() => {
2599
- const a = r.value < 1 ? 1 : Math.ceil(I.value / r.value);
2612
+ }), se = K(() => {
2613
+ const a = r.value < 1 ? 1 : Math.ceil(P.value / r.value);
2600
2614
  return Math.max(a || 0, 1);
2601
- }), ze = K(() => (s.value - 1) * r.value + 1), Te = K(() => {
2615
+ }), ge = K(() => (s.value - 1) * r.value + 1), Pe = K(() => {
2602
2616
  const a = s.value * r.value;
2603
- return I.value >= a ? a : I.value;
2604
- }), be = K(() => {
2617
+ return P.value >= a ? a : P.value;
2618
+ }), qe = K(() => {
2605
2619
  let a, v;
2606
- return typeof n.showNumbersCount < "u" && n.showNumbersCount < re.value ? (a = Math.max(
2607
- s.value - Math.floor(n.showNumbersCount / 2),
2620
+ return typeof t.showNumbersCount < "u" && t.showNumbersCount < se.value ? (a = Math.max(
2621
+ s.value - Math.floor(t.showNumbersCount / 2),
2608
2622
  1
2609
- ), v = a + n.showNumbersCount - 1, v > re.value && (v = re.value, a = v - n.showNumbersCount + 1)) : (a = 1, v = re.value), Array.from(Array(v + 1 - a).keys()).map(
2610
- (te) => a + te
2623
+ ), v = a + t.showNumbersCount - 1, v > se.value && (v = se.value, a = v - t.showNumbersCount + 1)) : (a = 1, v = se.value), Array.from(Array(v + 1 - a).keys()).map(
2624
+ (ne) => a + ne
2611
2625
  );
2612
- }), De = () => {
2613
- var te, G, de;
2614
- let a = n.rows || [];
2615
- if (!n.isServerMode) {
2616
- if ((te = n.columns) == null || te.forEach((h) => {
2617
- 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.condition === "Contains" ? a = a.filter((P) => {
2626
+ }), He = () => {
2627
+ var ne, G, he;
2628
+ let a = t.rows || [];
2629
+ if (!t.isServerMode) {
2630
+ if ((ne = t.columns) == null || ne.forEach((h) => {
2631
+ 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.condition === "Contains" ? a = a.filter((M) => {
2618
2632
  var V;
2619
- return (V = L(P, h.field)) == null ? void 0 : V.toString().toLowerCase().includes(h.value.toLowerCase());
2620
- }) : h.condition === "NotContains" ? a = a.filter((P) => {
2633
+ return (V = F(M, h.field)) == null ? void 0 : V.toString().toLowerCase().includes(h.value.toLowerCase());
2634
+ }) : h.condition === "NotContains" ? a = a.filter((M) => {
2621
2635
  var V;
2622
- return !((V = L(P, h.field)) != null && V.toString().toLowerCase().includes(h.value.toLowerCase()));
2623
- }) : h.condition === "Equal" ? a = a.filter((P) => {
2636
+ return !((V = F(M, h.field)) != null && V.toString().toLowerCase().includes(h.value.toLowerCase()));
2637
+ }) : h.condition === "Equal" ? a = a.filter((M) => {
2624
2638
  var V;
2625
- return ((V = L(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) === h.value.toLowerCase();
2626
- }) : h.condition === "NotEqual" ? a = a.filter((P) => {
2639
+ return ((V = F(M, h.field)) == null ? void 0 : V.toString().toLowerCase()) === h.value.toLowerCase();
2640
+ }) : h.condition === "NotEqual" ? a = a.filter((M) => {
2627
2641
  var V;
2628
- return ((V = L(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) !== h.value.toLowerCase();
2629
- }) : h.condition == "StartsWith" ? a = a.filter((P) => {
2642
+ return ((V = F(M, h.field)) == null ? void 0 : V.toString().toLowerCase()) !== h.value.toLowerCase();
2643
+ }) : h.condition == "StartsWith" ? a = a.filter((M) => {
2630
2644
  var V;
2631
- return ((V = L(P, h.field)) == null ? void 0 : V.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2632
- }) : h.condition == "EndsWith" && (a = a.filter((P) => {
2645
+ return ((V = F(M, h.field)) == null ? void 0 : V.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2646
+ }) : h.condition == "EndsWith" && (a = a.filter((M) => {
2633
2647
  var V;
2634
- return ((V = L(P, h.field)) == null ? void 0 : V.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2635
- }))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (a = a.filter((P) => L(P, h.field) && parseFloat(L(P, h.field)) <= parseFloat(h.value)))) : h.type === "date" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((P) => L(P, h.field) && Z(L(P, h.field)) === h.value) : h.condition === "NotEqual" ? a = a.filter((P) => L(P, h.field) && Z(L(P, h.field)) !== h.value) : h.condition === "GreaterThan" ? a = a.filter((P) => L(P, h.field) && Z(L(P, h.field)) > h.value) : h.condition === "LessThan" && (a = a.filter((P) => L(P, h.field) && Z(L(P, h.field)) < h.value))) : h.type === "bool" && (a = a.filter((P) => L(P, h.field) === h.value)), h.condition === "IsNull" ? (a = a.filter((P) => L(P, h.field) == null || L(P, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", a = a.filter((P) => L(P, h.field))));
2636
- }), N.value && (a != null && a.length)) {
2648
+ return ((V = F(M, h.field)) == null ? void 0 : V.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2649
+ }))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (a = a.filter((M) => F(M, h.field) && parseFloat(F(M, h.field)) <= parseFloat(h.value)))) : h.type === "date" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((M) => F(M, h.field) && xe(F(M, h.field)) === h.value) : h.condition === "NotEqual" ? a = a.filter((M) => F(M, h.field) && xe(F(M, h.field)) !== h.value) : h.condition === "GreaterThan" ? a = a.filter((M) => F(M, h.field) && xe(F(M, h.field)) > h.value) : h.condition === "LessThan" && (a = a.filter((M) => F(M, h.field) && xe(F(M, h.field)) < h.value))) : h.type === "bool" && (a = a.filter((M) => F(M, h.field) === h.value)), h.condition === "IsNull" ? (a = a.filter((M) => F(M, h.field) == null || F(M, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", a = a.filter((M) => F(M, h.field))));
2650
+ }), A.value && (a != null && a.length)) {
2637
2651
  let h = [];
2638
- const P = (n.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
2652
+ const M = (t.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
2639
2653
  for (var v = 0; v < (a == null ? void 0 : a.length); v++)
2640
- for (var k = 0; k < P.length; k++)
2641
- if ((G = L(a[v], P[k])) != null && G.toString().toLowerCase().includes(N.value.toLowerCase())) {
2654
+ for (var k = 0; k < M.length; k++)
2655
+ if ((G = F(a[v], M[k])) != null && G.toString().toLowerCase().includes(A.value.toLowerCase())) {
2642
2656
  h.push(a[v]);
2643
2657
  break;
2644
2658
  }
2645
2659
  a = h;
2646
2660
  }
2647
2661
  var q = new Intl.Collator(void 0, {
2648
- numeric: ((de = n.columns.find((h) => h.field == f.value)) == null ? void 0 : de.type) === "number",
2662
+ numeric: ((he = t.columns.find((h) => h.field == f.value)) == null ? void 0 : he.type) === "number",
2649
2663
  sensitivity: "base"
2650
2664
  });
2651
- const qn = p.value === "desc" ? -1 : 1;
2652
- a.sort((h, P) => {
2665
+ const Wn = p.value === "desc" ? -1 : 1;
2666
+ a.sort((h, M) => {
2653
2667
  var At, Bt;
2654
- const V = (At = f.value) == null ? void 0 : At.split(".").reduce((xe, ut) => xe == null ? void 0 : xe[ut], h), Hn = (Bt = f.value) == null ? void 0 : Bt.split(".").reduce((xe, ut) => xe == null ? void 0 : xe[ut], P);
2655
- return q.compare(V, Hn) * qn;
2668
+ const V = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], h), jn = (Bt = f.value) == null ? void 0 : Bt.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], M);
2669
+ return q.compare(V, jn) * Wn;
2656
2670
  });
2657
2671
  }
2658
2672
  return a;
2659
- }, ye = B([]), ae = () => {
2660
- let a = [], v = De();
2661
- n.isServerMode ? (I.value = n.totalRows || 0, a = v) : (I.value = (v == null ? void 0 : v.length) || 0, a = v.slice(ze.value - 1, Te.value)), n.hasSubtable && a.forEach(function(k) {
2662
- k.isExpanded != null && (ye.value.find((te) => te.id == k.id) || ye.value.push({
2673
+ }, de = D([]), ue = () => {
2674
+ let a = [], v = He();
2675
+ t.isServerMode ? (P.value = t.totalRows || 0, a = v) : (P.value = (v == null ? void 0 : v.length) || 0, a = v.slice(ge.value - 1, Pe.value)), t.hasSubtable && a.forEach(function(k) {
2676
+ k.isExpanded != null && (de.value.find((ne) => ne.id == k.id) || de.value.push({
2663
2677
  id: k.id,
2664
2678
  isExpanded: k.isExpanded
2665
2679
  }));
2666
2680
  }), i.value = a || [];
2667
2681
  };
2668
2682
  ee(
2669
- () => n.loading,
2683
+ () => t.loading,
2670
2684
  () => {
2671
- y.value = n.loading;
2685
+ y.value = t.loading;
2672
2686
  }
2673
2687
  );
2674
- const Le = (a) => {
2688
+ const We = (a) => {
2675
2689
  a ? H.value === a.field ? H.value = null : H.value = a.field : H.value = null;
2676
- }, qe = () => {
2690
+ }, je = () => {
2677
2691
  if (s.value == 1)
2678
2692
  return !1;
2679
2693
  s.value--;
2680
- }, He = (a) => {
2694
+ }, Ee = (a) => {
2681
2695
  s.value = a;
2682
- }, je = () => {
2683
- if (s.value >= re.value)
2696
+ }, ie = () => {
2697
+ if (s.value >= se.value)
2684
2698
  return !1;
2685
2699
  s.value++;
2686
2700
  };
2687
2701
  ee(() => s.value, () => {
2688
- m(!1), n.isServerMode ? ce("page") : (ae(), D("pageChange", s.value));
2689
- }), ee(() => n.rows, () => {
2690
- n.isServerMode || (s.value = 1), m(!1), ae();
2702
+ _(!1), t.isServerMode ? fe("page") : (ue(), oe("pageChange", s.value));
2703
+ }), ee(() => t.rows, () => {
2704
+ t.isServerMode || (s.value = 1), _(!1), ue();
2691
2705
  });
2692
- const st = (a) => {
2706
+ const g = (a) => {
2693
2707
  r.value = a;
2694
2708
  };
2695
2709
  ee(() => r.value, () => {
2696
- m(!1), n.isServerMode ? s.value === 1 ? ce("pagesize", !0) : s.value = 1 : (s.value = 1, ae(), D("pageSizeChange", r.value));
2710
+ _(!1), t.isServerMode ? s.value === 1 ? fe("pagesize", !0) : s.value = 1 : (s.value = 1, ue(), oe("pageSizeChange", r.value));
2697
2711
  });
2698
- const g = (a) => {
2712
+ const b = (a) => {
2699
2713
  let v = "asc";
2700
2714
  a == f.value && p.value === "asc" && (v = "desc");
2701
2715
  let k = (s.value - 1) * r.value, q = r.value;
2702
- f.value = a, p.value = v, m(!1), ae(), n.isServerMode ? ce("sort") : D("sortChange", { offset: k, limit: q, field: a, direction: v });
2703
- }, S = (a) => {
2716
+ f.value = a, p.value = v, _(!1), ue(), t.isServerMode ? fe("sort") : oe("sortChange", { offset: k, limit: q, field: a, direction: v });
2717
+ }, x = (a) => {
2704
2718
  $.value = a.length && i.value.length && a.length === i.value.length;
2705
2719
  const v = i.value.filter(
2706
- (k, q) => F.value.includes(J.value ? k[J.value] : q)
2720
+ (k, q) => I.value.includes(J.value ? k[J.value] : q)
2707
2721
  );
2708
- D("rowSelect", v);
2722
+ oe("rowSelect", v);
2709
2723
  };
2710
- ee(() => F.value, S);
2711
- const m = (a) => {
2712
- a ? F.value = i.value.map(
2724
+ ee(() => I.value, x);
2725
+ const _ = (a) => {
2726
+ a ? I.value = i.value.map(
2713
2727
  (v, k) => J.value ? v[J.value] : k
2714
- ) : F.value = [];
2715
- }, x = () => {
2716
- m(!1), n.isServerMode ? s.value === 1 ? ce("filter", !0) : s.value = 1 : (s.value = 1, ae(), D("filterChange", n.columns));
2717
- }, T = () => {
2718
- m(!1), n.isServerMode ? s.value === 1 ? ce("search", !0) : s.value = 1 : (s.value = 1, ae(), D("searchChange", N.value));
2728
+ ) : I.value = [];
2729
+ }, R = () => {
2730
+ _(!1), t.isServerMode ? s.value === 1 ? fe("filter", !0) : s.value = 1 : (s.value = 1, ue(), oe("filterChange", t.columns));
2731
+ }, te = () => {
2732
+ _(!1), t.isServerMode ? s.value === 1 ? fe("search", !0) : s.value = 1 : (s.value = 1, ue(), oe("searchChange", A.value));
2719
2733
  };
2720
2734
  ee(
2721
- () => n.search,
2735
+ () => t.search,
2722
2736
  () => {
2723
- N.value = n.search, T();
2737
+ A.value = t.search, te();
2724
2738
  }
2725
2739
  );
2726
- const L = (a, v) => v == null ? void 0 : v.split(".").reduce((k, q) => k == null ? void 0 : k[q], a), Z = (a) => {
2740
+ const F = (a, v) => v == null ? void 0 : v.split(".").reduce((k, q) => k == null ? void 0 : k[q], a), xe = (a) => {
2727
2741
  try {
2728
2742
  if (!a)
2729
2743
  return "";
@@ -2732,350 +2746,351 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
2732
2746
  } catch {
2733
2747
  }
2734
2748
  return "";
2735
- }, le = (a, v) => {
2736
- O.value++, O.value === 1 ? W.value = setTimeout(() => {
2737
- O.value = 0, n.selectRowOnClick && (Ue(v) ? Ot(v) : Ft(v), S(F.value)), D("rowClick", a);
2738
- }, X.value) : O.value === 2 && (clearTimeout(W.value), O.value = 0, D("rowDBClick", a));
2739
- }, ce = (a, v = !1) => {
2740
- if (n.isServerMode) {
2741
- at();
2749
+ }, Ve = (a, v) => {
2750
+ O.value++, O.value === 1 ? j.value = setTimeout(() => {
2751
+ O.value = 0, t.selectRowOnClick && (Ue(v) ? Ot(v) : Ft(v), x(I.value)), oe("rowClick", a);
2752
+ }, Y.value) : O.value === 2 && (clearTimeout(j.value), O.value = 0, oe("rowDBClick", a));
2753
+ }, fe = (a, v = !1) => {
2754
+ if (t.isServerMode) {
2755
+ On();
2742
2756
  const k = {
2743
2757
  current_page: v ? 1 : s.value,
2744
2758
  pagesize: r.value,
2745
2759
  offset: (s.value - 1) * r.value,
2746
2760
  sort_column: f.value,
2747
2761
  sort_direction: p.value,
2748
- search: N.value,
2749
- column_filters: n.columns,
2762
+ search: A.value,
2763
+ column_filters: t.columns,
2750
2764
  change_type: a
2751
2765
  };
2752
- D("change", k);
2766
+ oe("change", k);
2753
2767
  }
2754
- }, at = () => {
2755
- for (let a = 0; a < n.columns.length; a++) {
2756
- let v = n.columns[a];
2768
+ }, On = () => {
2769
+ for (let a = 0; a < t.columns.length; a++) {
2770
+ let v = t.columns[a];
2757
2771
  v.filter && (v.value !== void 0 && v.value !== null && v.value !== "" || v.condition === "IsNull" || v.condition === "IsNotNull") && (v.type === "string" && v.value && !v.condition && (v.condition = "Contains"), v.type === "number" && v.value && !v.condition && (v.condition = "Equal"), v.type === "date" && v.value && !v.condition && (v.condition = "Equal"));
2758
2772
  }
2759
- }, Ve = () => {
2760
- m(!1);
2761
- for (let a = 0; a < n.columns.length; a++)
2762
- n.columns[a].value = "";
2763
- N.value = "", r.value = u, f.value = d, p.value = _, n.isServerMode ? s.value === 1 ? ce("reset", !0) : s.value = 1 : (s.value = 1, ae());
2764
- }, On = () => i.value.filter(
2765
- (v, k) => F.value.includes(J.value ? v[J.value] : k)
2766
- ), $n = () => n.columns, Rn = () => {
2767
- F.value = [];
2773
+ }, $n = () => {
2774
+ _(!1);
2775
+ for (let a = 0; a < t.columns.length; a++)
2776
+ t.columns[a].value = "";
2777
+ A.value = "", r.value = u, f.value = d, p.value = E, t.isServerMode ? s.value === 1 ? fe("reset", !0) : s.value = 1 : (s.value = 1, ue());
2778
+ }, Rn = () => i.value.filter(
2779
+ (v, k) => I.value.includes(J.value ? v[J.value] : k)
2780
+ ), Nn = () => t.columns, An = () => {
2781
+ I.value = [];
2768
2782
  }, Ft = (a) => {
2769
2783
  if (!Ue(a)) {
2770
2784
  const v = i.value.find((k, q) => q === a);
2771
- F.value.push(
2785
+ I.value.push(
2772
2786
  J.value ? v[J.value] : a
2773
2787
  );
2774
2788
  }
2775
2789
  }, Ot = (a) => {
2776
2790
  if (Ue(a)) {
2777
2791
  const v = i.value.find((k, q) => q === a);
2778
- F.value = F.value.filter(
2792
+ I.value = I.value.filter(
2779
2793
  (k) => k !== (J.value ? v[J.value] : a)
2780
2794
  );
2781
2795
  }
2782
2796
  }, Ue = (a) => {
2783
2797
  const v = i.value.find((k, q) => q === a);
2784
- return v ? F.value.includes(
2798
+ return v ? I.value.includes(
2785
2799
  J.value ? v[J.value] : a
2786
2800
  ) : !1;
2787
2801
  };
2788
- let we = 0;
2789
- n.hasCheckbox && we++, n.hasSubtable && we++, n.hasRightPanel && we++;
2790
- const Nn = B(0), An = setInterval(function() {
2791
- Nn.value++;
2792
- }, 2200), Ge = B(n.topmenusize), $t = B(null), Bn = rl($t).height, Dn = (a) => {
2802
+ let Se = 0;
2803
+ t.hasCheckbox && Se++, t.hasSubtable && Se++, t.hasRightPanel && Se++;
2804
+ const Bn = D(0), Dn = setInterval(function() {
2805
+ Bn.value++;
2806
+ }, 2200), Ge = D(t.topmenusize), $t = D(null), qn = al($t).height, Hn = (a) => {
2793
2807
  if (!a || !a.length) return;
2794
2808
  const v = a[0].size;
2795
- Ge.value = v, D("currentTopMenuSize", v);
2809
+ Ge.value = v, oe("currentTopMenuSize", v);
2796
2810
  };
2797
2811
  return Ze(() => {
2798
- clearInterval(An);
2799
- }), (a, v) => (b(), w("div", Ai, [
2800
- ne(Q(Ut), {
2812
+ clearInterval(Dn), window.removeEventListener("resize", Z);
2813
+ }), (a, v) => (m(), w("div", Di, [
2814
+ le(Q(Ut), {
2801
2815
  class: "default-theme",
2802
- style: oe({ height: n.height })
2816
+ style: re({ height: t.height })
2803
2817
  }, {
2804
- default: _e(() => [
2805
- ne(Q(ft), null, {
2806
- default: _e(() => [
2807
- C("div", Bi, [
2808
- a.enableleftmenu ? (b(), w("div", {
2818
+ default: Me(() => [
2819
+ le(Q(dt), null, {
2820
+ default: Me(() => [
2821
+ C("div", qi, [
2822
+ a.enableleftmenu ? (m(), w("div", {
2809
2823
  key: 0,
2810
2824
  ref_key: "leftmenuel",
2811
- ref: A,
2825
+ ref: B,
2812
2826
  class: "left-menu-container bh-relative",
2813
- style: oe({
2827
+ style: re({
2814
2828
  width: z.value + "px",
2815
2829
  transition: "width 0.3s ease",
2816
2830
  overflow: "hidden",
2817
- minWidth: n.leftmenuMinWidth + "px"
2831
+ minWidth: (L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2832
+ maxWidth: (L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
2818
2833
  })
2819
2834
  }, [
2820
- se(a.$slots, "tableleftmenu", {}, () => [
2821
- Di
2835
+ ae(a.$slots, "tableleftmenu", {}, () => [
2836
+ Hi
2822
2837
  ]),
2823
- C("div", qi, [
2838
+ C("div", Wi, [
2824
2839
  C("button", {
2825
- onClick: Y,
2840
+ onClick: st,
2826
2841
  class: "bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"
2827
2842
  }, [
2828
- (b(), w("svg", {
2843
+ (m(), w("svg", {
2829
2844
  width: "8",
2830
2845
  height: "12",
2831
2846
  viewBox: "0 0 8 12",
2832
2847
  fill: "none",
2833
2848
  xmlns: "http://www.w3.org/2000/svg",
2834
- style: oe({ transform: E.value ? "rotate(180deg)" : "none" })
2835
- }, ji, 4))
2849
+ style: re({ transform: L.value ? "rotate(180deg)" : "none" })
2850
+ }, Vi, 4))
2836
2851
  ])
2837
2852
  ])
2838
- ], 4)) : R("", !0),
2839
- C("div", Wi, [
2840
- ne(Q(Ut), {
2853
+ ], 4)) : N("", !0),
2854
+ C("div", Ui, [
2855
+ le(Q(Ut), {
2841
2856
  class: "default-theme",
2842
2857
  horizontal: "horizontal",
2843
- onResize: Dn,
2858
+ onResize: Hn,
2844
2859
  "push-other-panes": ""
2845
2860
  }, {
2846
- default: _e(() => [
2847
- a.enabletopmenu ? (b(), ue(Q(ft), {
2861
+ default: Me(() => [
2862
+ a.enabletopmenu ? (m(), ce(Q(dt), {
2848
2863
  key: 0,
2849
2864
  ref_key: "topmenuel",
2850
2865
  ref: $t,
2851
2866
  size: Ge.value || 10,
2852
2867
  "max-size": a.topmenumax || 100,
2853
- style: oe({ "min-height": a.topmenumin + "px" })
2868
+ style: re({ "min-height": a.topmenumin + "px" })
2854
2869
  }, {
2855
- default: _e(() => [
2856
- se(a.$slots, "tabletopmenu", {}, () => [
2857
- Vi
2870
+ default: Me(() => [
2871
+ ae(a.$slots, "tabletopmenu", {}, () => [
2872
+ Gi
2858
2873
  ])
2859
2874
  ]),
2860
2875
  _: 3
2861
- }, 8, ["size", "max-size", "style"])) : R("", !0),
2862
- ne(Q(ft), {
2863
- style: oe({ "padding-right": a.tableRightOffset + "px" })
2876
+ }, 8, ["size", "max-size", "style"])) : N("", !0),
2877
+ le(Q(dt), {
2878
+ style: re({ "padding-right": a.tableRightOffset + "px" })
2864
2879
  }, {
2865
- default: _e(() => [
2866
- se(a.$slots, "tableactionheader", {}, () => [
2867
- Ui
2880
+ default: Me(() => [
2881
+ ae(a.$slots, "tableactionheader", {}, () => [
2882
+ Qi
2868
2883
  ]),
2869
2884
  C("div", {
2870
- class: M(n.scrollbarstyle)
2885
+ class: T(t.scrollbarstyle)
2871
2886
  }, [
2872
- ne(Q(Ul), {
2873
- style: oe({
2874
- height: n.stickyHeader && Number(n.height.replace("px", "")) - (a.footerOffset + Q(Bn)) + "px"
2887
+ le(Q(Ql), {
2888
+ style: re({
2889
+ height: t.stickyHeader && Number(t.height.replace("px", "")) - (a.footerOffset + Q(qn)) + "px"
2875
2890
  }),
2876
- autoHide: n.scrollbarautohide,
2877
- fixedThumb: n.scrollbarfixedthumb,
2878
- autoExpand: n.scrollbarautoexpand,
2879
- direction: n.scrollbardirection,
2891
+ autoHide: t.scrollbarautohide,
2892
+ fixedThumb: t.scrollbarfixedthumb,
2893
+ autoExpand: t.scrollbarautoexpand,
2894
+ direction: t.scrollbardirection,
2880
2895
  throttleType: "none"
2881
2896
  }, {
2882
- default: _e(() => [
2897
+ default: Me(() => [
2883
2898
  C("div", {
2884
- class: M(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2885
- style: oe({ overflow: n.stickyHeader && "inherit" })
2899
+ class: T(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2900
+ style: re({ overflow: t.stickyHeader && "inherit" })
2886
2901
  }, [
2887
2902
  C("table", {
2888
- class: M([n.skin])
2903
+ class: T([t.skin])
2889
2904
  }, [
2890
2905
  C("thead", {
2891
- class: M({
2892
- "bh-sticky bh-top-0 bh-z-10": n.stickyHeader
2906
+ class: T({
2907
+ "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
2893
2908
  })
2894
2909
  }, [
2895
- ne(an, {
2896
- all: n,
2897
- expandedrows: ye.value,
2910
+ le(an, {
2911
+ all: t,
2912
+ expandedrows: de.value,
2898
2913
  currentSortColumn: f.value,
2899
2914
  currentSortDirection: p.value,
2900
2915
  isOpenFilter: H.value,
2901
2916
  checkAll: $.value,
2902
- columnFilterLang: n.columnFilterLang,
2903
- onSelectAll: m,
2904
- onSortChange: g,
2905
- onFilterChange: x,
2906
- onToggleFilterMenu: Le
2917
+ columnFilterLang: t.columnFilterLang,
2918
+ onSelectAll: _,
2919
+ onSortChange: b,
2920
+ onFilterChange: R,
2921
+ onToggleFilterMenu: We
2907
2922
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2908
2923
  ], 2),
2909
2924
  C("tbody", null, [
2910
- (b(!0), w(U, null, fe(i.value, (k, q) => {
2911
- var te;
2912
- return b(), w(U, {
2925
+ (m(!0), w(U, null, pe(i.value, (k, q) => {
2926
+ var ne;
2927
+ return m(), w(U, {
2913
2928
  key: k[J.value] ? k[J.value] : q
2914
2929
  }, [
2915
- I.value ? (b(), w("tr", {
2930
+ P.value ? (m(), w("tr", {
2916
2931
  key: 0,
2917
- class: M([
2918
- typeof n.rowClass == "function" ? a.rowClass(k) : n.rowClass,
2919
- n.selectRowOnClick ? "bh-cursor-pointer" : ""
2932
+ class: T([
2933
+ typeof t.rowClass == "function" ? a.rowClass(k) : t.rowClass,
2934
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
2920
2935
  ]),
2921
- onClick: me((G) => le(k, q), ["prevent"])
2936
+ onClick: ye((G) => Ve(k, q), ["prevent"])
2922
2937
  }, [
2923
- n.hasCheckbox ? (b(), w("td", {
2938
+ t.hasCheckbox ? (m(), w("td", {
2924
2939
  key: 0,
2925
- class: M({
2926
- "bh-sticky bh-left-0 bh-bg-blue-light": n.stickyFirstColumn
2940
+ class: T({
2941
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2927
2942
  })
2928
2943
  }, [
2929
- C("div", Qi, [
2930
- he(C("input", {
2931
- "onUpdate:modelValue": v[0] || (v[0] = (G) => F.value = G),
2944
+ C("div", Xi, [
2945
+ ve(C("input", {
2946
+ "onUpdate:modelValue": v[0] || (v[0] = (G) => I.value = G),
2932
2947
  type: "checkbox",
2933
2948
  value: k[J.value] ? k[J.value] : q,
2934
- onClick: v[1] || (v[1] = me(() => {
2949
+ onClick: v[1] || (v[1] = ye(() => {
2935
2950
  }, ["stop"]))
2936
- }, null, 8, Ki), [
2937
- [Yn, F.value]
2951
+ }, null, 8, Yi), [
2952
+ [Zn, I.value]
2938
2953
  ]),
2939
2954
  C("div", null, [
2940
- ne(Fn, { class: "check" })
2955
+ le(Fn, { class: "check" })
2941
2956
  ])
2942
2957
  ])
2943
- ], 2)) : R("", !0),
2944
- n.hasRightPanel ? (b(), w("td", {
2958
+ ], 2)) : N("", !0),
2959
+ t.hasRightPanel ? (m(), w("td", {
2945
2960
  key: 1,
2946
- class: M({
2947
- "bh-sticky bh-left-0 bh-bg-blue-light": n.stickyFirstColumn
2961
+ class: T({
2962
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2948
2963
  })
2949
2964
  }, [
2950
- ne(ti, {
2965
+ le(li, {
2951
2966
  item: k,
2952
- onRightPanelClick: v[2] || (v[2] = (G) => D("rowRightPanelClick", G))
2967
+ onRightPanelClick: v[2] || (v[2] = (G) => oe("rowRightPanelClick", G))
2953
2968
  }, null, 8, ["item"])
2954
- ], 2)) : R("", !0),
2955
- n.hasSubtable ? (b(), w("td", {
2969
+ ], 2)) : N("", !0),
2970
+ t.hasSubtable ? (m(), w("td", {
2956
2971
  key: 2,
2957
- class: M({
2958
- "bh-sticky bh-left-0 bh-bg-blue-light": n.stickyFirstColumn
2972
+ class: T({
2973
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2959
2974
  })
2960
2975
  }, [
2961
- ne(In, {
2976
+ le(In, {
2962
2977
  item: k,
2963
- expandedrows: ye.value
2978
+ expandedrows: de.value
2964
2979
  }, null, 8, ["item", "expandedrows"])
2965
- ], 2)) : R("", !0),
2966
- (b(!0), w(U, null, fe(n.columns, (G, de) => (b(), w(U, null, [
2967
- G.hide ? R("", !0) : (b(), w("td", {
2980
+ ], 2)) : N("", !0),
2981
+ (m(!0), w(U, null, pe(t.columns, (G, he) => (m(), w(U, null, [
2982
+ G.hide ? N("", !0) : (m(), w("td", {
2968
2983
  key: G.field,
2969
- class: M([
2970
- typeof n.cellClass == "function" ? a.cellClass(k) : n.cellClass,
2971
- de === 0 && n.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2972
- n.hasCheckbox && de === 0 && n.stickyFirstColumn ? "bh-left-[52px]" : "",
2984
+ class: T([
2985
+ typeof t.cellClass == "function" ? a.cellClass(k) : t.cellClass,
2986
+ he === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2987
+ t.hasCheckbox && he === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
2973
2988
  G.cellClass ? G.cellClass : ""
2974
2989
  ])
2975
2990
  }, [
2976
- Q(o)[G.field] ? se(a.$slots, G.field, {
2991
+ Q(o)[G.field] ? ae(a.$slots, G.field, {
2977
2992
  key: 0,
2978
2993
  value: k
2979
- }) : G.cellRenderer ? (b(), w("div", {
2994
+ }) : G.cellRenderer ? (m(), w("div", {
2980
2995
  key: 1,
2981
2996
  innerHTML: G.cellRenderer(k)
2982
- }, null, 8, Xi)) : (b(), w(U, { key: 2 }, [
2983
- gt(j(L(k, G.field)), 1)
2997
+ }, null, 8, Ji)) : (m(), w(U, { key: 2 }, [
2998
+ mt(W(F(k, G.field)), 1)
2984
2999
  ], 64))
2985
3000
  ], 2))
2986
3001
  ], 64))), 256))
2987
- ], 10, Gi)) : R("", !0),
2988
- (te = ye.value.find((G) => G.id == k.id)) != null && te.isExpanded && n.hasSubtable ? (b(), w("tr", {
3002
+ ], 10, Ki)) : N("", !0),
3003
+ (ne = de.value.find((G) => G.id == k.id)) != null && ne.isExpanded && t.hasSubtable ? (m(), w("tr", {
2989
3004
  key: 1,
2990
- class: M([
2991
- typeof n.rowClass == "function" ? a.rowClass(k) : n.rowClass,
2992
- n.selectRowOnClick ? "bh-cursor-pointer" : ""
3005
+ class: T([
3006
+ typeof t.rowClass == "function" ? a.rowClass(k) : t.rowClass,
3007
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
2993
3008
  ]),
2994
- onClick: me((G) => le(k, q), ["prevent"])
3009
+ onClick: ye((G) => Ve(k, q), ["prevent"])
2995
3010
  }, [
2996
3011
  C("td", {
2997
- colspan: n.columns.length + Q(we)
3012
+ colspan: t.columns.length + Q(Se)
2998
3013
  }, [
2999
- se(a.$slots, "tsub", { value: i.value })
3000
- ], 8, Ji)
3001
- ], 10, Yi)) : R("", !0)
3014
+ ae(a.$slots, "tsub", { value: i.value })
3015
+ ], 8, er)
3016
+ ], 10, Zi)) : N("", !0)
3002
3017
  ], 64);
3003
3018
  }), 128)),
3004
- !I.value && y.value && a.skeletonloader ? (b(!0), w(U, { key: 0 }, fe(n.pageSize, (k) => (b(), w("tr", {
3019
+ !P.value && y.value && a.skeletonloader ? (m(!0), w(U, { key: 0 }, pe(t.pageSize, (k) => (m(), w("tr", {
3005
3020
  key: k,
3006
3021
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3007
3022
  }, [
3008
3023
  C("td", {
3009
- colspan: n.columns.length + Q(we),
3024
+ colspan: t.columns.length + Q(Se),
3010
3025
  class: "!bh-p-0 !bh-border-transparent"
3011
- }, tr, 8, Zi)
3012
- ]))), 128)) : R("", !0),
3013
- I.value ? (b(!0), w(U, { key: 1 }, fe(n.footerRows, (k, q) => (b(), w("tr", {
3026
+ }, lr, 8, tr)
3027
+ ]))), 128)) : N("", !0),
3028
+ P.value ? (m(!0), w(U, { key: 1 }, pe(t.footerRows, (k, q) => (m(), w("tr", {
3014
3029
  key: k[J.value] ? k[J.value] : q,
3015
3030
  class: "sticky-table-footer"
3016
3031
  }, [
3017
- Q(we) > 0 ? (b(), w("td", {
3032
+ Q(Se) > 0 ? (m(), w("td", {
3018
3033
  key: 0,
3019
- colspan: Q(we)
3020
- }, null, 8, nr)) : R("", !0),
3021
- (b(!0), w(U, null, fe(n.columns, (te, G) => (b(), w(U, null, [
3022
- te.hide ? R("", !0) : (b(), w("td", {
3023
- key: te.field,
3024
- class: M([
3025
- typeof n.cellClass == "function" ? a.cellClass(k) : n.cellClass,
3026
- G === 0 && n.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3027
- n.hasCheckbox && G === 0 && n.stickyFirstColumn ? "bh-left-[52px]" : "",
3028
- te.cellClass ? te.cellClass : ""
3034
+ colspan: Q(Se)
3035
+ }, null, 8, or)) : N("", !0),
3036
+ (m(!0), w(U, null, pe(t.columns, (ne, G) => (m(), w(U, null, [
3037
+ ne.hide ? N("", !0) : (m(), w("td", {
3038
+ key: ne.field,
3039
+ class: T([
3040
+ typeof t.cellClass == "function" ? a.cellClass(k) : t.cellClass,
3041
+ G === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3042
+ t.hasCheckbox && G === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3043
+ ne.cellClass ? ne.cellClass : ""
3029
3044
  ])
3030
3045
  }, [
3031
- k.cells.find((de) => de.field == te.field) ? (b(), w(U, { key: 0 }, [
3032
- gt(j(k.cells.find((de) => de.field == te.field).text), 1)
3033
- ], 64)) : R("", !0)
3046
+ k.cells.find((he) => he.field == ne.field) ? (m(), w(U, { key: 0 }, [
3047
+ mt(W(k.cells.find((he) => he.field == ne.field).text), 1)
3048
+ ], 64)) : N("", !0)
3034
3049
  ], 2))
3035
3050
  ], 64))), 256))
3036
- ]))), 128)) : R("", !0)
3051
+ ]))), 128)) : N("", !0)
3037
3052
  ]),
3038
- n.cloneHeaderInFooter ? (b(), w("tfoot", {
3053
+ t.cloneHeaderInFooter ? (m(), w("tfoot", {
3039
3054
  key: 0,
3040
- class: M({
3041
- "bh-sticky bh-bottom-0": n.stickyHeader
3055
+ class: T({
3056
+ "bh-sticky bh-bottom-0": t.stickyHeader
3042
3057
  })
3043
3058
  }, [
3044
- ne(an, {
3045
- all: n,
3059
+ le(an, {
3060
+ all: t,
3046
3061
  currentSortColumn: f.value,
3047
3062
  currentSortDirection: p.value,
3048
3063
  isOpenFilter: H.value,
3049
3064
  isFooter: !0,
3050
3065
  checkAll: $.value,
3051
- onSelectAll: m,
3052
- onSortChange: g,
3053
- onFilterChange: x,
3054
- onToggleFilterMenu: Le
3066
+ onSelectAll: _,
3067
+ onSortChange: b,
3068
+ onFilterChange: R,
3069
+ onToggleFilterMenu: We
3055
3070
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3056
- ], 2)) : R("", !0)
3071
+ ], 2)) : N("", !0)
3057
3072
  ], 2),
3058
- y.value && a.enableloadinganimation ? (b(), w("div", {
3073
+ y.value && a.enableloadinganimation ? (m(), w("div", {
3059
3074
  key: 0,
3060
3075
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3061
- style: oe({
3062
- height: Number(n.height.replace("px", "")) - 175 + "px"
3076
+ style: re({
3077
+ height: Number(t.height.replace("px", "")) - 175 + "px"
3063
3078
  })
3064
3079
  }, [
3065
- se(a.$slots, "loadercontent")
3066
- ], 4)) : R("", !0)
3080
+ ae(a.$slots, "loadercontent")
3081
+ ], 4)) : N("", !0)
3067
3082
  ], 6),
3068
- !I.value && !y.value ? (b(), w("div", {
3083
+ !P.value && !y.value ? (m(), w("div", {
3069
3084
  key: 0,
3070
3085
  class: "nodatacontent",
3071
- style: oe({
3072
- height: Number(n.height.replace("px", "")) - 175 + "px"
3086
+ style: re({
3087
+ height: Number(t.height.replace("px", "")) - 175 + "px"
3073
3088
  })
3074
3089
  }, [
3075
- se(a.$slots, "nodatacontent", {}, () => [
3076
- C("span", null, j(n.noDataContent), 1)
3090
+ ae(a.$slots, "nodatacontent", {}, () => [
3091
+ C("span", null, W(t.noDataContent), 1)
3077
3092
  ])
3078
- ], 4)) : R("", !0)
3093
+ ], 4)) : N("", !0)
3079
3094
  ]),
3080
3095
  _: 3
3081
3096
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3094,115 +3109,115 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
3094
3109
  ]),
3095
3110
  _: 3
3096
3111
  }, 8, ["style"]),
3097
- n.pagination && I.value ? (b(), w("div", {
3112
+ t.pagination && P.value ? (m(), w("div", {
3098
3113
  key: 0,
3099
- class: M(["bh-pagination", {
3114
+ class: T(["bh-pagination", {
3100
3115
  "bh-pointer-events-none": y.value,
3101
- "sticky-footer": n.stickyFooter
3116
+ "sticky-footer": t.stickyFooter
3102
3117
  }])
3103
3118
  }, [
3104
- C("div", lr, [
3105
- a.enablefooterpagination ? se(a.$slots, "footerpageinfo", {
3119
+ C("div", ir, [
3120
+ a.enablefooterpagination ? ae(a.$slots, "footerpageinfo", {
3106
3121
  key: 0,
3107
3122
  paginationInfo: a.paginationInfo,
3108
- filterRowCount: I.value,
3109
- offset: ze.value,
3110
- limit: Te.value,
3123
+ filterRowCount: P.value,
3124
+ offset: ge.value,
3125
+ limit: Pe.value,
3111
3126
  showPageSize: a.showPageSize,
3112
3127
  pageSizeOptions: a.pageSizeOptions,
3113
3128
  currentPageSize: r.value,
3114
- stringFormat: Be,
3115
- setPageSize: st
3129
+ stringFormat: De,
3130
+ setPageSize: g
3116
3131
  }, () => [
3117
- C("div", or, [
3118
- C("span", ir, j(Be(
3119
- n.paginationInfo,
3120
- I.value ? ze.value : 0,
3121
- Te.value,
3122
- I.value
3132
+ C("div", rr, [
3133
+ C("span", sr, W(De(
3134
+ t.paginationInfo,
3135
+ P.value ? ge.value : 0,
3136
+ Pe.value,
3137
+ P.value
3123
3138
  )), 1),
3124
- n.showPageSize ? he((b(), w("select", {
3139
+ t.showPageSize ? ve((m(), w("select", {
3125
3140
  key: 0,
3126
3141
  "onUpdate:modelValue": v[3] || (v[3] = (k) => r.value = k),
3127
3142
  class: "bh-pagesize"
3128
3143
  }, [
3129
- (b(!0), w(U, null, fe(n.pageSizeOptions, (k) => (b(), w("option", {
3144
+ (m(!0), w(U, null, pe(t.pageSizeOptions, (k) => (m(), w("option", {
3130
3145
  value: k,
3131
3146
  key: k
3132
- }, j(k), 9, rr))), 128))
3147
+ }, W(k), 9, ar))), 128))
3133
3148
  ], 512)), [
3134
3149
  [cn, r.value]
3135
- ]) : R("", !0)
3150
+ ]) : N("", !0)
3136
3151
  ])
3137
- ]) : R("", !0),
3138
- a.enablefooterpagination ? se(a.$slots, "footerpagination", {
3152
+ ]) : N("", !0),
3153
+ a.enablefooterpagination ? ae(a.$slots, "footerpagination", {
3139
3154
  key: 1,
3140
3155
  currentPage: s.value,
3141
- maxPage: re.value,
3142
- paging: be.value,
3143
- movePage: He,
3144
- nextPage: je,
3145
- previousPage: qe
3156
+ maxPage: se.value,
3157
+ paging: qe.value,
3158
+ movePage: Ee,
3159
+ nextPage: ie,
3160
+ previousPage: je
3146
3161
  }, () => [
3147
- C("div", sr, [
3148
- n.showFirstPage ? (b(), w("button", {
3162
+ C("div", ur, [
3163
+ t.showFirstPage ? (m(), w("button", {
3149
3164
  key: 0,
3150
3165
  type: "button",
3151
- class: M(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3166
+ class: T(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3152
3167
  onClick: v[4] || (v[4] = (k) => s.value = 1)
3153
3168
  }, [
3154
- n.firstArrow ? (b(), w("span", {
3169
+ t.firstArrow ? (m(), w("span", {
3155
3170
  key: 0,
3156
- innerHTML: n.firstArrow
3157
- }, null, 8, ar)) : (b(), w("svg", ur, dr))
3158
- ], 2)) : R("", !0),
3171
+ innerHTML: t.firstArrow
3172
+ }, null, 8, cr)) : (m(), w("svg", dr, hr))
3173
+ ], 2)) : N("", !0),
3159
3174
  C("button", {
3160
3175
  type: "button",
3161
- class: M(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3162
- onClick: qe
3176
+ class: T(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3177
+ onClick: je
3163
3178
  }, [
3164
- n.previousArrow ? (b(), w("span", {
3179
+ t.previousArrow ? (m(), w("span", {
3165
3180
  key: 0,
3166
- innerHTML: n.previousArrow
3167
- }, null, 8, fr)) : (b(), w("svg", hr, vr))
3181
+ innerHTML: t.previousArrow
3182
+ }, null, 8, pr)) : (m(), w("svg", vr, gr))
3168
3183
  ], 2),
3169
- n.showNumbers ? (b(!0), w(U, { key: 1 }, fe(be.value, (k) => (b(), w("button", {
3184
+ t.showNumbers ? (m(!0), w(U, { key: 1 }, pe(qe.value, (k) => (m(), w("button", {
3170
3185
  key: k,
3171
3186
  type: "button",
3172
- class: M(["bh-page-item", {
3187
+ class: T(["bh-page-item", {
3173
3188
  disabled: s.value === k,
3174
3189
  "bh-active": k === s.value
3175
3190
  }]),
3176
- onClick: (q) => He(k)
3177
- }, j(k), 11, mr))), 128)) : R("", !0),
3191
+ onClick: (q) => Ee(k)
3192
+ }, W(k), 11, br))), 128)) : N("", !0),
3178
3193
  C("button", {
3179
3194
  type: "button",
3180
- class: M(["bh-page-item next-page", { disabled: s.value >= re.value }]),
3181
- onClick: je
3195
+ class: T(["bh-page-item next-page", { disabled: s.value >= se.value }]),
3196
+ onClick: ie
3182
3197
  }, [
3183
- n.nextArrow ? (b(), w("span", {
3198
+ t.nextArrow ? (m(), w("span", {
3184
3199
  key: 0,
3185
- innerHTML: n.nextArrow
3186
- }, null, 8, gr)) : (b(), w("svg", br, wr))
3200
+ innerHTML: t.nextArrow
3201
+ }, null, 8, yr)) : (m(), w("svg", wr, Sr))
3187
3202
  ], 2),
3188
- n.showLastPage ? (b(), w("button", {
3203
+ t.showLastPage ? (m(), w("button", {
3189
3204
  key: 2,
3190
3205
  type: "button",
3191
- class: M(["bh-page-item last-page", { disabled: s.value >= re.value }]),
3192
- onClick: v[5] || (v[5] = (k) => s.value = re.value)
3206
+ class: T(["bh-page-item last-page", { disabled: s.value >= se.value }]),
3207
+ onClick: v[5] || (v[5] = (k) => s.value = se.value)
3193
3208
  }, [
3194
- n.lastArrow ? (b(), w("span", {
3209
+ t.lastArrow ? (m(), w("span", {
3195
3210
  key: 0,
3196
- innerHTML: n.lastArrow
3197
- }, null, 8, xr)) : (b(), w("svg", Sr, Cr))
3198
- ], 2)) : R("", !0)
3211
+ innerHTML: t.lastArrow
3212
+ }, null, 8, kr)) : (m(), w("svg", Cr, Lr))
3213
+ ], 2)) : N("", !0)
3199
3214
  ])
3200
- ]) : R("", !0)
3215
+ ]) : N("", !0)
3201
3216
  ])
3202
- ], 2)) : R("", !0)
3217
+ ], 2)) : N("", !0)
3203
3218
  ]));
3204
3219
  }
3205
3220
  });
3206
3221
  export {
3207
- Er as default
3222
+ Mr as default
3208
3223
  };