@dolusoft/vue3-datatable 1.7.46 → 1.7.47

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,19 +1,19 @@
1
- import { isRef as dl, watch as ee, onMounted as Me, nextTick as Re, getCurrentScope as fl, onScopeDispose as hl, unref as G, getCurrentInstance as Nt, computed as X, ref as B, defineComponent as ke, useCssVars as pl, shallowRef as ye, onUnmounted as ut, openBlock as p, createElementBlock as m, Fragment as H, withDirectives as ge, createElementVNode as k, normalizeClass as T, normalizeStyle as V, withModifiers as Q, setBlockTracking as Jt, vShow as Et, createCommentVNode as P, mergeProps as vl, renderSlot as ie, renderList as ue, createVNode as le, reactive as ml, watchEffect as gl, useSlots as zn, onBeforeUnmount as Ln, provide as ze, createBlock as pe, resolveDynamicComponent as bl, inject as $e, h as Mt, toRef as yl, toDisplayString as K, createTextVNode as qe, vModelText as xt, vModelSelect as En, withCtx as Le, vModelCheckbox as Zt } from "vue";
2
- function Mn(e) {
3
- return fl() ? (hl(e), !0) : !1;
1
+ import { isRef as hl, watch as ee, onMounted as Te, nextTick as Ie, getCurrentScope as pl, onScopeDispose as vl, unref as U, getCurrentInstance as Wt, computed as Q, ref as B, defineComponent as ke, useCssVars as ml, shallowRef as ye, onUnmounted as at, openBlock as p, createElementBlock as m, Fragment as H, withDirectives as ve, createElementVNode as S, normalizeClass as E, normalizeStyle as V, withModifiers as G, setBlockTracking as en, vShow as Tt, createCommentVNode as _, mergeProps as gl, renderSlot as ie, renderList as se, createVNode as ne, reactive as bl, watchEffect as yl, useSlots as Mn, onBeforeUnmount as Tn, provide as ze, createBlock as fe, resolveDynamicComponent as wl, inject as _e, h as Et, toRef as xl, toDisplayString as K, createTextVNode as De, vModelText as kt, vModelSelect as En, withCtx as Le, vModelCheckbox as tn } from "vue";
2
+ function Fn(e) {
3
+ return pl() ? (vl(e), !0) : !1;
4
4
  }
5
- function Ve(e) {
6
- return typeof e == "function" ? e() : G(e);
5
+ function qe(e) {
6
+ return typeof e == "function" ? e() : U(e);
7
7
  }
8
- const Tn = typeof window < "u" && typeof document < "u";
8
+ const Pn = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const wl = Object.prototype.toString, xl = (e) => wl.call(e) === "[object Object]", xe = () => {
11
- }, kl = /* @__PURE__ */ Cl();
12
- function Cl() {
10
+ const kl = Object.prototype.toString, Sl = (e) => kl.call(e) === "[object Object]", xe = () => {
11
+ }, Cl = /* @__PURE__ */ zl();
12
+ function zl() {
13
13
  var e, l;
14
- return Tn && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
14
+ return Pn && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
15
15
  }
16
- function Wt(e, l) {
16
+ function Dt(e, l) {
17
17
  function n(...o) {
18
18
  return new Promise((t, i) => {
19
19
  Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(t).catch(i);
@@ -21,14 +21,14 @@ function Wt(e, l) {
21
21
  }
22
22
  return n;
23
23
  }
24
- const Sl = (e) => e();
25
- function Fn(e, l = {}) {
24
+ const Ll = (e) => e();
25
+ function _n(e, l = {}) {
26
26
  let n, o, t = xe;
27
27
  const i = (a) => {
28
28
  clearTimeout(a), t(), t = xe;
29
29
  };
30
30
  return (a) => {
31
- const c = Ve(e), f = Ve(l.maxWait);
31
+ const c = qe(e), f = qe(l.maxWait);
32
32
  return n && i(n), c <= 0 || f !== void 0 && f <= 0 ? (o && (i(o), o = null), Promise.resolve(a())) : new Promise((d, u) => {
33
33
  t = l.rejectOnCancel ? u : d, f && !o && (o = setTimeout(() => {
34
34
  n && i(n), o = null, d(a());
@@ -38,197 +38,197 @@ function Fn(e, l = {}) {
38
38
  });
39
39
  };
40
40
  }
41
- function zl(...e) {
41
+ function Ml(...e) {
42
42
  let l = 0, n, o = !0, t = xe, i, s, a, c, f;
43
- !dl(e[0]) && typeof e[0] == "object" ? { delay: s, trailing: a = !0, leading: c = !0, rejectOnCancel: f = !1 } = e[0] : [s, a = !0, c = !0, f = !1] = e;
43
+ !hl(e[0]) && typeof e[0] == "object" ? { delay: s, trailing: a = !0, leading: c = !0, rejectOnCancel: f = !1 } = e[0] : [s, a = !0, c = !0, f = !1] = e;
44
44
  const d = () => {
45
45
  n && (clearTimeout(n), n = void 0, t(), t = xe);
46
46
  };
47
- return (g) => {
48
- const w = Ve(s), F = Date.now() - l, R = () => i = g();
49
- return d(), w <= 0 ? (l = Date.now(), R()) : (F > w && (c || !o) ? (l = Date.now(), R()) : a && (i = new Promise((C, W) => {
50
- t = f ? W : C, n = setTimeout(() => {
51
- l = Date.now(), o = !0, C(R()), d();
52
- }, Math.max(0, w - F));
47
+ return (b) => {
48
+ const w = qe(s), P = Date.now() - l, A = () => i = b();
49
+ return d(), w <= 0 ? (l = Date.now(), A()) : (P > w && (c || !o) ? (l = Date.now(), A()) : a && (i = new Promise((k, W) => {
50
+ t = f ? W : k, n = setTimeout(() => {
51
+ l = Date.now(), o = !0, k(A()), d();
52
+ }, Math.max(0, w - P));
53
53
  })), !c && !n && (n = setTimeout(() => o = !0, w)), o = !1, i);
54
54
  };
55
55
  }
56
- function Ll(e) {
57
- return Nt();
56
+ function Tl(e) {
57
+ return Wt();
58
58
  }
59
- function en(e, l = 200, n = {}) {
60
- return Wt(
61
- Fn(l, n),
59
+ function nn(e, l = 200, n = {}) {
60
+ return Dt(
61
+ _n(l, n),
62
62
  e
63
63
  );
64
64
  }
65
65
  function El(e, l = 200, n = !1, o = !0, t = !1) {
66
- return Wt(
67
- zl(l, n, o, t),
66
+ return Dt(
67
+ Ml(l, n, o, t),
68
68
  e
69
69
  );
70
70
  }
71
- function Ml(e, l, n = {}) {
71
+ function Fl(e, l, n = {}) {
72
72
  const {
73
- eventFilter: o = Sl,
73
+ eventFilter: o = Ll,
74
74
  ...t
75
75
  } = n;
76
76
  return ee(
77
77
  e,
78
- Wt(
78
+ Dt(
79
79
  o,
80
80
  l
81
81
  ),
82
82
  t
83
83
  );
84
84
  }
85
- function Tl(e, l = !0, n) {
86
- Ll() ? Me(e, n) : l ? e() : Re(e);
85
+ function Pl(e, l = !0, n) {
86
+ Tl() ? Te(e, n) : l ? e() : Ie(e);
87
87
  }
88
- function Fl(e, l, n = {}) {
88
+ function _l(e, l, n = {}) {
89
89
  const {
90
90
  debounce: o = 0,
91
91
  maxWait: t = void 0,
92
92
  ...i
93
93
  } = n;
94
- return Ml(
94
+ return Fl(
95
95
  e,
96
96
  l,
97
97
  {
98
98
  ...i,
99
- eventFilter: Fn(o, { maxWait: t })
99
+ eventFilter: _n(o, { maxWait: t })
100
100
  }
101
101
  );
102
102
  }
103
- function ve(e) {
103
+ function he(e) {
104
104
  var l;
105
- const n = Ve(e);
105
+ const n = qe(e);
106
106
  return (l = n == null ? void 0 : n.$el) != null ? l : n;
107
107
  }
108
- const pt = Tn ? window : void 0;
109
- function kt(...e) {
108
+ const ht = Pn ? window : void 0;
109
+ function St(...e) {
110
110
  let l, n, o, t;
111
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, l = pt) : [l, n, o, t] = e, !l)
111
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, l = ht) : [l, n, o, t] = e, !l)
112
112
  return xe;
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
114
114
  const i = [], s = () => {
115
115
  i.forEach((d) => d()), i.length = 0;
116
- }, a = (d, u, g, w) => (d.addEventListener(u, g, w), () => d.removeEventListener(u, g, w)), c = ee(
117
- () => [ve(l), Ve(t)],
116
+ }, a = (d, u, b, w) => (d.addEventListener(u, b, w), () => d.removeEventListener(u, b, w)), c = ee(
117
+ () => [he(l), qe(t)],
118
118
  ([d, u]) => {
119
119
  if (s(), !d)
120
120
  return;
121
- const g = xl(u) ? { ...u } : u;
121
+ const b = Sl(u) ? { ...u } : u;
122
122
  i.push(
123
- ...n.flatMap((w) => o.map((F) => a(d, w, F, g)))
123
+ ...n.flatMap((w) => o.map((P) => a(d, w, P, b)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
127
  ), f = () => {
128
128
  c(), s();
129
129
  };
130
- return Mn(f), f;
130
+ return Fn(f), f;
131
131
  }
132
- let tn = !1;
133
- function Pl(e, l, n = {}) {
134
- const { window: o = pt, ignore: t = [], capture: i = !0, detectIframe: s = !1 } = n;
132
+ let ln = !1;
133
+ function Il(e, l, n = {}) {
134
+ const { window: o = ht, ignore: t = [], capture: i = !0, detectIframe: s = !1 } = n;
135
135
  if (!o)
136
136
  return xe;
137
- kl && !tn && (tn = !0, Array.from(o.document.body.children).forEach((g) => g.addEventListener("click", xe)), o.document.documentElement.addEventListener("click", xe));
137
+ Cl && !ln && (ln = !0, Array.from(o.document.body.children).forEach((b) => b.addEventListener("click", xe)), o.document.documentElement.addEventListener("click", xe));
138
138
  let a = !0;
139
- const c = (g) => t.some((w) => {
139
+ const c = (b) => t.some((w) => {
140
140
  if (typeof w == "string")
141
- return Array.from(o.document.querySelectorAll(w)).some((F) => F === g.target || g.composedPath().includes(F));
141
+ return Array.from(o.document.querySelectorAll(w)).some((P) => P === b.target || b.composedPath().includes(P));
142
142
  {
143
- const F = ve(w);
144
- return F && (g.target === F || g.composedPath().includes(F));
143
+ const P = he(w);
144
+ return P && (b.target === P || b.composedPath().includes(P));
145
145
  }
146
146
  }), d = [
147
- kt(o, "click", (g) => {
148
- const w = ve(e);
149
- if (!(!w || w === g.target || g.composedPath().includes(w))) {
150
- if (g.detail === 0 && (a = !c(g)), !a) {
147
+ St(o, "click", (b) => {
148
+ const w = he(e);
149
+ if (!(!w || w === b.target || b.composedPath().includes(w))) {
150
+ if (b.detail === 0 && (a = !c(b)), !a) {
151
151
  a = !0;
152
152
  return;
153
153
  }
154
- l(g);
154
+ l(b);
155
155
  }
156
156
  }, { passive: !0, capture: i }),
157
- kt(o, "pointerdown", (g) => {
158
- const w = ve(e);
159
- a = !c(g) && !!(w && !g.composedPath().includes(w));
157
+ St(o, "pointerdown", (b) => {
158
+ const w = he(e);
159
+ a = !c(b) && !!(w && !b.composedPath().includes(w));
160
160
  }, { passive: !0 }),
161
- s && kt(o, "blur", (g) => {
161
+ s && St(o, "blur", (b) => {
162
162
  setTimeout(() => {
163
163
  var w;
164
- const F = ve(e);
165
- ((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(F != null && F.contains(o.document.activeElement)) && l(g);
164
+ const P = he(e);
165
+ ((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(P != null && P.contains(o.document.activeElement)) && l(b);
166
166
  }, 0);
167
167
  })
168
168
  ].filter(Boolean);
169
- return () => d.forEach((g) => g());
169
+ return () => d.forEach((b) => b());
170
170
  }
171
- function _l() {
172
- const e = B(!1), l = Nt();
173
- return l && Me(() => {
171
+ function Ol() {
172
+ const e = B(!1), l = Wt();
173
+ return l && Te(() => {
174
174
  e.value = !0;
175
175
  }, l), e;
176
176
  }
177
- function Il(e) {
178
- const l = _l();
179
- return X(() => (l.value, !!e()));
177
+ function $l(e) {
178
+ const l = Ol();
179
+ return Q(() => (l.value, !!e()));
180
180
  }
181
- function Ol(e, l, n = {}) {
182
- const { window: o = pt, ...t } = n;
181
+ function Rl(e, l, n = {}) {
182
+ const { window: o = ht, ...t } = n;
183
183
  let i;
184
- const s = Il(() => o && "ResizeObserver" in o), a = () => {
184
+ const s = $l(() => o && "ResizeObserver" in o), a = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
- }, c = X(() => Array.isArray(e) ? e.map((u) => ve(u)) : [ve(e)]), f = ee(
186
+ }, c = Q(() => Array.isArray(e) ? e.map((u) => he(u)) : [he(e)]), f = ee(
187
187
  c,
188
188
  (u) => {
189
189
  if (a(), s.value && o) {
190
190
  i = new ResizeObserver(l);
191
- for (const g of u)
192
- g && i.observe(g, t);
191
+ for (const b of u)
192
+ b && i.observe(b, t);
193
193
  }
194
194
  },
195
195
  { immediate: !0, flush: "post" }
196
196
  ), d = () => {
197
197
  a(), f();
198
198
  };
199
- return Mn(d), {
199
+ return Fn(d), {
200
200
  isSupported: s,
201
201
  stop: d
202
202
  };
203
203
  }
204
- function $l(e, l = { width: 0, height: 0 }, n = {}) {
205
- const { window: o = pt, box: t = "content-box" } = n, i = X(() => {
206
- var u, g;
207
- return (g = (u = ve(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : g.includes("svg");
208
- }), s = B(l.width), a = B(l.height), { stop: c } = Ol(
204
+ function Al(e, l = { width: 0, height: 0 }, n = {}) {
205
+ const { window: o = ht, box: t = "content-box" } = n, i = Q(() => {
206
+ var u, b;
207
+ return (b = (u = he(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : b.includes("svg");
208
+ }), s = B(l.width), a = B(l.height), { stop: c } = Rl(
209
209
  e,
210
210
  ([u]) => {
211
- const g = t === "border-box" ? u.borderBoxSize : t === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
211
+ const b = t === "border-box" ? u.borderBoxSize : t === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
212
212
  if (o && i.value) {
213
- const w = ve(e);
213
+ const w = he(e);
214
214
  if (w) {
215
- const F = w.getBoundingClientRect();
216
- s.value = F.width, a.value = F.height;
215
+ const P = w.getBoundingClientRect();
216
+ s.value = P.width, a.value = P.height;
217
217
  }
218
- } else if (g) {
219
- const w = Array.isArray(g) ? g : [g];
220
- s.value = w.reduce((F, { inlineSize: R }) => F + R, 0), a.value = w.reduce((F, { blockSize: R }) => F + R, 0);
218
+ } else if (b) {
219
+ const w = Array.isArray(b) ? b : [b];
220
+ s.value = w.reduce((P, { inlineSize: A }) => P + A, 0), a.value = w.reduce((P, { blockSize: A }) => P + A, 0);
221
221
  } else
222
222
  s.value = u.contentRect.width, a.value = u.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
- Tl(() => {
227
- const u = ve(e);
226
+ Pl(() => {
227
+ const u = he(e);
228
228
  u && (s.value = "offsetWidth" in u ? u.offsetWidth : l.width, a.value = "offsetHeight" in u ? u.offsetHeight : l.height);
229
229
  });
230
230
  const f = ee(
231
- () => ve(e),
231
+ () => he(e),
232
232
  (u) => {
233
233
  s.value = u ? l.width : 0, a.value = u ? l.height : 0;
234
234
  }
@@ -242,99 +242,99 @@ function $l(e, l = { width: 0, height: 0 }, n = {}) {
242
242
  stop: d
243
243
  };
244
244
  }
245
- var Rl = typeof global == "object" && global && global.Object === Object && global, Al = typeof self == "object" && self && self.Object === Object && self, Pn = Rl || Al || Function("return this")(), ct = Pn.Symbol, _n = Object.prototype, Nl = _n.hasOwnProperty, Wl = _n.toString, He = ct ? ct.toStringTag : void 0;
246
- function Dl(e) {
247
- var l = Nl.call(e, He), n = e[He];
245
+ var Nl = typeof global == "object" && global && global.Object === Object && global, Wl = typeof self == "object" && self && self.Object === Object && self, In = Nl || Wl || Function("return this")(), ut = In.Symbol, On = Object.prototype, Dl = On.hasOwnProperty, Hl = On.toString, Ne = ut ? ut.toStringTag : void 0;
246
+ function Bl(e) {
247
+ var l = Dl.call(e, Ne), n = e[Ne];
248
248
  try {
249
- e[He] = void 0;
249
+ e[Ne] = void 0;
250
250
  var o = !0;
251
251
  } catch {
252
252
  }
253
- var t = Wl.call(e);
254
- return o && (l ? e[He] = n : delete e[He]), t;
253
+ var t = Hl.call(e);
254
+ return o && (l ? e[Ne] = n : delete e[Ne]), t;
255
255
  }
256
- var Hl = Object.prototype, Bl = Hl.toString;
257
- function ql(e) {
258
- return Bl.call(e);
259
- }
260
- var jl = "[object Null]", Ul = "[object Undefined]", nn = ct ? ct.toStringTag : void 0;
256
+ var ql = Object.prototype, jl = ql.toString;
261
257
  function Vl(e) {
262
- return e == null ? e === void 0 ? Ul : jl : nn && nn in Object(e) ? Dl(e) : ql(e);
263
- }
264
- function Gl(e) {
265
- return e != null && typeof e == "object";
258
+ return jl.call(e);
266
259
  }
267
- var Ql = "[object Symbol]";
260
+ var Ul = "[object Null]", Gl = "[object Undefined]", on = ut ? ut.toStringTag : void 0;
268
261
  function Kl(e) {
269
- return typeof e == "symbol" || Gl(e) && Vl(e) == Ql;
262
+ return e == null ? e === void 0 ? Gl : Ul : on && on in Object(e) ? Bl(e) : Vl(e);
270
263
  }
271
- var Xl = /\s/;
264
+ function Ql(e) {
265
+ return e != null && typeof e == "object";
266
+ }
267
+ var Xl = "[object Symbol]";
272
268
  function Yl(e) {
273
- for (var l = e.length; l-- && Xl.test(e.charAt(l)); )
269
+ return typeof e == "symbol" || Ql(e) && Kl(e) == Xl;
270
+ }
271
+ var Jl = /\s/;
272
+ function Zl(e) {
273
+ for (var l = e.length; l-- && Jl.test(e.charAt(l)); )
274
274
  ;
275
275
  return l;
276
276
  }
277
- var Jl = /^\s+/;
278
- function Zl(e) {
279
- return e && e.slice(0, Yl(e) + 1).replace(Jl, "");
277
+ var eo = /^\s+/;
278
+ function to(e) {
279
+ return e && e.slice(0, Zl(e) + 1).replace(eo, "");
280
280
  }
281
- function dt(e) {
281
+ function ct(e) {
282
282
  var l = typeof e;
283
283
  return e != null && (l == "object" || l == "function");
284
284
  }
285
- var ln = NaN, eo = /^[-+]0x[0-9a-f]+$/i, to = /^0b[01]+$/i, no = /^0o[0-7]+$/i, lo = parseInt;
286
- function je(e) {
285
+ var rn = NaN, no = /^[-+]0x[0-9a-f]+$/i, lo = /^0b[01]+$/i, oo = /^0o[0-7]+$/i, io = parseInt;
286
+ function He(e) {
287
287
  if (typeof e == "number")
288
288
  return e;
289
- if (Kl(e))
290
- return ln;
291
- if (dt(e)) {
289
+ if (Yl(e))
290
+ return rn;
291
+ if (ct(e)) {
292
292
  var l = typeof e.valueOf == "function" ? e.valueOf() : e;
293
- e = dt(l) ? l + "" : l;
293
+ e = ct(l) ? l + "" : l;
294
294
  }
295
295
  if (typeof e != "string")
296
296
  return e === 0 ? e : +e;
297
- e = Zl(e);
298
- var n = to.test(e);
299
- return n || no.test(e) ? lo(e.slice(2), n ? 2 : 8) : eo.test(e) ? ln : +e;
297
+ e = to(e);
298
+ var n = lo.test(e);
299
+ return n || oo.test(e) ? io(e.slice(2), n ? 2 : 8) : no.test(e) ? rn : +e;
300
300
  }
301
- function oo(e, l, n) {
301
+ function ro(e, l, n) {
302
302
  return e === e && (n !== void 0 && (e = e <= n ? e : n), l !== void 0 && (e = e >= l ? e : l)), e;
303
303
  }
304
- function lt(e, l, n) {
305
- return n === void 0 && (n = l, l = void 0), n !== void 0 && (n = je(n), n = n === n ? n : 0), l !== void 0 && (l = je(l), l = l === l ? l : 0), oo(je(e), l, n);
304
+ function nt(e, l, n) {
305
+ return n === void 0 && (n = l, l = void 0), n !== void 0 && (n = He(n), n = n === n ? n : 0), l !== void 0 && (l = He(l), l = l === l ? l : 0), ro(He(e), l, n);
306
306
  }
307
307
  var Ct = function() {
308
- return Pn.Date.now();
309
- }, io = "Expected a function", ro = Math.max, so = Math.min;
310
- function In(e, l, n) {
311
- var o, t, i, s, a, c, f = 0, d = !1, u = !1, g = !0;
308
+ return In.Date.now();
309
+ }, so = "Expected a function", ao = Math.max, uo = Math.min;
310
+ function $n(e, l, n) {
311
+ var o, t, i, s, a, c, f = 0, d = !1, u = !1, b = !0;
312
312
  if (typeof e != "function")
313
- throw new TypeError(io);
314
- l = je(l) || 0, dt(n) && (d = !!n.leading, u = "maxWait" in n, i = u ? ro(je(n.maxWait) || 0, l) : i, g = "trailing" in n ? !!n.trailing : g);
315
- function w(E) {
316
- var M = o, q = t;
317
- return o = t = void 0, f = E, s = e.apply(q, M), s;
313
+ throw new TypeError(so);
314
+ l = He(l) || 0, ct(n) && (d = !!n.leading, u = "maxWait" in n, i = u ? ao(He(n.maxWait) || 0, l) : i, b = "trailing" in n ? !!n.trailing : b);
315
+ function w(M) {
316
+ var T = o, q = t;
317
+ return o = t = void 0, f = M, s = e.apply(q, T), s;
318
318
  }
319
- function F(E) {
320
- return f = E, a = setTimeout(W, l), d ? w(E) : s;
319
+ function P(M) {
320
+ return f = M, a = setTimeout(W, l), d ? w(M) : s;
321
321
  }
322
- function R(E) {
323
- var M = E - c, q = E - f, J = l - M;
324
- return u ? so(J, i - q) : J;
322
+ function A(M) {
323
+ var T = M - c, q = M - f, J = l - T;
324
+ return u ? uo(J, i - q) : J;
325
325
  }
326
- function C(E) {
327
- var M = E - c, q = E - f;
328
- return c === void 0 || M >= l || M < 0 || u && q >= i;
326
+ function k(M) {
327
+ var T = M - c, q = M - f;
328
+ return c === void 0 || T >= l || T < 0 || u && q >= i;
329
329
  }
330
330
  function W() {
331
- var E = Ct();
332
- if (C(E))
333
- return j(E);
334
- a = setTimeout(W, R(E));
331
+ var M = Ct();
332
+ if (k(M))
333
+ return j(M);
334
+ a = setTimeout(W, A(M));
335
335
  }
336
- function j(E) {
337
- return a = void 0, g && o ? w(E) : (o = t = void 0, s);
336
+ function j(M) {
337
+ return a = void 0, b && o ? w(M) : (o = t = void 0, s);
338
338
  }
339
339
  function Y() {
340
340
  a !== void 0 && clearTimeout(a), f = 0, o = c = t = a = void 0;
@@ -343,10 +343,10 @@ function In(e, l, n) {
343
343
  return a === void 0 ? s : j(Ct());
344
344
  }
345
345
  function te() {
346
- var E = Ct(), M = C(E);
347
- if (o = arguments, t = this, c = E, M) {
346
+ var M = Ct(), T = k(M);
347
+ if (o = arguments, t = this, c = M, T) {
348
348
  if (a === void 0)
349
- return F(c);
349
+ return P(c);
350
350
  if (u)
351
351
  return clearTimeout(a), a = setTimeout(W, l), w(c);
352
352
  }
@@ -354,36 +354,36 @@ function In(e, l, n) {
354
354
  }
355
355
  return te.cancel = Y, te.flush = N, te;
356
356
  }
357
- var ao = "Expected a function";
358
- function On(e, l, n) {
357
+ var co = "Expected a function";
358
+ function Rn(e, l, n) {
359
359
  var o = !0, t = !0;
360
360
  if (typeof e != "function")
361
- throw new TypeError(ao);
362
- return dt(n) && (o = "leading" in n ? !!n.leading : o, t = "trailing" in n ? !!n.trailing : t), In(e, l, {
361
+ throw new TypeError(co);
362
+ return ct(n) && (o = "leading" in n ? !!n.leading : o, t = "trailing" in n ? !!n.trailing : t), $n(e, l, {
363
363
  leading: o,
364
364
  maxWait: l,
365
365
  trailing: t
366
366
  });
367
367
  }
368
- var uo = Object.defineProperty, co = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, on = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, rn = (e, l, n) => l in e ? uo(e, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[l] = n, ft = (e, l) => {
368
+ var fo = Object.defineProperty, ho = Object.defineProperties, po = Object.getOwnPropertyDescriptors, sn = Object.getOwnPropertySymbols, vo = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, an = (e, l, n) => l in e ? fo(e, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[l] = n, dt = (e, l) => {
369
369
  for (var n in l || (l = {}))
370
- ho.call(l, n) && rn(e, n, l[n]);
371
- if (on)
372
- for (var n of on(l))
373
- po.call(l, n) && rn(e, n, l[n]);
370
+ vo.call(l, n) && an(e, n, l[n]);
371
+ if (sn)
372
+ for (var n of sn(l))
373
+ mo.call(l, n) && an(e, n, l[n]);
374
374
  return e;
375
- }, $n = (e, l) => co(e, fo(l));
376
- const vo = ["onPointerdown"], mo = {
375
+ }, An = (e, l) => ho(e, po(l));
376
+ const go = ["onPointerdown"], bo = {
377
377
  name: "ScrollbarThumb"
378
378
  };
379
- function go(e, { expose: l }) {
379
+ function yo(e, { expose: l }) {
380
380
  const n = e;
381
- pl((M) => ({
382
- "1fb98f78": G(o)
381
+ ml((T) => ({
382
+ "1fb98f78": U(o)
383
383
  }));
384
- const o = X(() => {
385
- var M;
386
- return `${(M = n.thumbWidth) != null ? M : 12}px`;
384
+ const o = Q(() => {
385
+ var T;
386
+ return `${(T = n.thumbWidth) != null ? T : 12}px`;
387
387
  });
388
388
  let t = null, i = ye(null);
389
389
  const s = { pageX: 0, pageY: 0, scrollPos: 0 };
@@ -395,32 +395,32 @@ function go(e, { expose: l }) {
395
395
  }, f = () => {
396
396
  t !== null && clearTimeout(t);
397
397
  };
398
- ut(f);
399
- const d = On((M) => {
400
- M.stopPropagation(), M.preventDefault();
401
- const q = n.type === "horizontal" ? "pageX" : "pageY", J = (M[q] - s[q]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
398
+ at(f);
399
+ const d = Rn((T) => {
400
+ T.stopPropagation(), T.preventDefault();
401
+ const q = n.type === "horizontal" ? "pageX" : "pageY", J = (T[q] - s[q]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
402
402
  n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: s.scrollPos + J, behavior: "auto" });
403
403
  }, 16), u = () => {
404
404
  c(), i.value.removeEventListener("pointermove", d), i.value.removeEventListener("pointerup", u), i.value.removeEventListener("pointercancel", u), i.value.removeEventListener("mousewheel", u), document.removeEventListener("mousewheel", u), typeof a == "number" && i.value.releasePointerCapture(a), a = null;
405
- }, g = (M) => {
406
- M.ctrlKey || M.button !== 0 || (f(), s.pageX = M.pageX, s.pageY = M.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], a = M == null ? void 0 : M.pointerId, i.value.setPointerCapture(a), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", u), i.value.addEventListener("pointercancel", u), i.value.addEventListener("mousewheel", u, { passive: !1 }), document.addEventListener("mousewheel", u, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
405
+ }, b = (T) => {
406
+ T.ctrlKey || T.button !== 0 || (f(), s.pageX = T.pageX, s.pageY = T.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], a = T == null ? void 0 : T.pointerId, i.value.setPointerCapture(a), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", u), i.value.addEventListener("pointercancel", u), i.value.addEventListener("mousewheel", u, { passive: !1 }), document.addEventListener("mousewheel", u, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
407
407
  };
408
408
  l({
409
409
  autoHideAfterScroll: () => {
410
410
  f(), i.value && i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), c();
411
411
  }
412
412
  });
413
- let F = ye(!1), R = ye(!1), C = ye(null), W = null, j = null, Y = X(() => n.fixedThumb && !R.value);
414
- const N = ([M]) => R.value = M.isIntersecting, te = ([M]) => F.value = M.isIntersecting, E = () => {
413
+ let P = ye(!1), A = ye(!1), k = ye(null), W = null, j = null, Y = Q(() => n.fixedThumb && !A.value);
414
+ const N = ([T]) => A.value = T.isIntersecting, te = ([T]) => P.value = T.isIntersecting, M = () => {
415
415
  W && (W.disconnect(), W = null), j && (j.disconnect(), j = null);
416
416
  };
417
417
  return ee(() => [n.fixedThumb, n.wrapperEl], () => {
418
418
  if (!n.fixedThumb || !n.wrapperEl)
419
- return E();
420
- E(), j = new IntersectionObserver(te, { threshold: [0, 0.5] }), j.observe(n.wrapperEl), W = new IntersectionObserver(N), W.observe(C.value);
421
- }), ut(E), (M, q) => (p(), m(H, null, [
422
- ge(k("div", {
423
- class: T([
419
+ return M();
420
+ M(), j = new IntersectionObserver(te, { threshold: [0, 0.5] }), j.observe(n.wrapperEl), W = new IntersectionObserver(N), W.observe(k.value);
421
+ }), at(M), (T, q) => (p(), m(H, null, [
422
+ ve(S("div", {
423
+ class: E([
424
424
  "scrollbar__thumbPlaceholder",
425
425
  `scrollbar__thumbPlaceholder--${e.type}`,
426
426
  {
@@ -434,29 +434,29 @@ function go(e, { expose: l }) {
434
434
  position: Y.value ? "fixed" : "absolute",
435
435
  [e.type === "vertical" ? "top" : "left"]: Y.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
436
436
  }),
437
- ref: (J, I) => {
438
- I.thumbEl = J, i.value = J;
437
+ ref: (J, O) => {
438
+ O.thumbEl = J, i.value = J;
439
439
  },
440
- onPointerdown: Q(g, ["stop"])
440
+ onPointerdown: G(b, ["stop"])
441
441
  }, [
442
- q[0] || (Jt(-1), q[0] = k("div", {
443
- class: T(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
444
- }, null, 2), Jt(1), q[0])
445
- ], 46, vo), [
446
- [Et, !!e.scrollInfo.thumbSize && (e.fixedThumb ? F.value : !0)]
442
+ q[0] || (en(-1), q[0] = S("div", {
443
+ class: E(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
444
+ }, null, 2), en(1), q[0])
445
+ ], 46, go), [
446
+ [Tt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? P.value : !0)]
447
447
  ]),
448
- n.fixedThumb ? ge((p(), m("div", {
448
+ n.fixedThumb ? ve((p(), m("div", {
449
449
  key: 0,
450
- ref: (J, I) => {
451
- I.shepherdEl = J, C.value = J;
450
+ ref: (J, O) => {
451
+ O.shepherdEl = J, k.value = J;
452
452
  },
453
- class: T(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
453
+ class: E(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
454
454
  }, null, 2)), [
455
- [Et, !!e.scrollInfo.thumbSize]
456
- ]) : P("", !0)
455
+ [Tt, !!e.scrollInfo.thumbSize]
456
+ ]) : _("", !0)
457
457
  ], 64));
458
458
  }
459
- const bo = /* @__PURE__ */ ke($n(ft({}, mo), {
459
+ const wo = /* @__PURE__ */ ke(An(dt({}, bo), {
460
460
  props: {
461
461
  type: null,
462
462
  autoExpand: null,
@@ -467,32 +467,32 @@ const bo = /* @__PURE__ */ ke($n(ft({}, mo), {
467
467
  thumbWidth: null,
468
468
  wrapperEl: null
469
469
  },
470
- setup: go
471
- })), yo = {
470
+ setup: yo
471
+ })), xo = {
472
472
  wait: 333,
473
473
  type: "debounce"
474
474
  };
475
- function sn(...e) {
475
+ function un(...e) {
476
476
  const l = "value" in (e == null ? void 0 : e[0]);
477
477
  let n;
478
478
  l ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
479
- const { wait: o, type: t, callback: i } = ft(ft({}, yo), n), s = l ? e[0] : ye(null), a = ml({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), c = () => {
480
- const g = s.value.getBoundingClientRect();
481
- a.left = g.left, a.top = g.top, a.right = g.right, a.bottom = g.bottom, a.width = g.width, a.height = g.height, a.x = g.x, a.y = g.y, i == null || i();
479
+ const { wait: o, type: t, callback: i } = dt(dt({}, xo), n), s = l ? e[0] : ye(null), a = bl({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), c = () => {
480
+ const b = s.value.getBoundingClientRect();
481
+ a.left = b.left, a.top = b.top, a.right = b.right, a.bottom = b.bottom, a.width = b.width, a.height = b.height, a.x = b.x, a.y = b.y, i == null || i();
482
482
  };
483
483
  let f = null, d = null;
484
484
  const u = () => {
485
485
  f && window.removeEventListener("resize", f), d && (d.disconnect(), d = null);
486
486
  };
487
- return gl(() => {
488
- s.value && (u(), f = c, t === "throttle" && o >= 4 ? f = On(f, o) : t === "debounce" && o >= 4 && (f = In(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(s.value));
489
- }), ut(u), l ? a : [s, a];
487
+ return yl(() => {
488
+ s.value && (u(), f = c, t === "throttle" && o >= 4 ? f = Rn(f, o) : t === "debounce" && o >= 4 && (f = $n(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(s.value));
489
+ }), at(u), l ? a : [s, a];
490
490
  }
491
- const wo = {
491
+ const ko = {
492
492
  name: "CustomScrollbar",
493
493
  inheritAttrs: !1
494
494
  };
495
- function xo(e, { expose: l, emit: n }) {
495
+ function So(e, { expose: l, emit: n }) {
496
496
  const o = e, t = {
497
497
  horizontal: { el: null, instance: null },
498
498
  vertical: { el: null, instance: null }
@@ -500,82 +500,82 @@ function xo(e, { expose: l, emit: n }) {
500
500
  t[te].instance || (t[te].instance = N);
501
501
  };
502
502
  let s = ye(null), a = ye(null);
503
- Me(() => {
503
+ Te(() => {
504
504
  var N;
505
505
  const te = Array.from((N = s.value.parentElement) == null ? void 0 : N.childNodes);
506
- for (const E in t)
507
- t[E].el = te.find((M) => {
506
+ for (const M in t)
507
+ t[M].el = te.find((T) => {
508
508
  var q;
509
- return (q = M == null ? void 0 : M.classList) == null ? void 0 : q.contains(`scrollbar__thumbPlaceholder--${E}`);
509
+ return (q = T == null ? void 0 : T.classList) == null ? void 0 : q.contains(`scrollbar__thumbPlaceholder--${M}`);
510
510
  });
511
511
  });
512
- const c = sn(s, { wait: o.throttleWait, type: o.throttleType, callback: g }), f = sn(a, { wait: o.throttleWait, type: o.throttleType, callback: g });
512
+ const c = un(s, { wait: o.throttleWait, type: o.throttleType, callback: b }), f = un(a, { wait: o.throttleWait, type: o.throttleType, callback: b });
513
513
  let d = ye(0), u = ye(0);
514
- function g() {
514
+ function b() {
515
515
  d.value = Math.max(s.value.scrollHeight - c.height | 0, 0), u.value = Math.max(s.value.scrollWidth - c.width | 0, 0);
516
516
  }
517
- let w = X(() => ({
518
- thumbSize: u.value ? lt(c.width / s.value.scrollWidth * c.width, o.thumbMinSize > c.width ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
517
+ let w = Q(() => ({
518
+ thumbSize: u.value ? nt(c.width / s.value.scrollWidth * c.width, o.thumbMinSize > c.width ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
519
519
  contentMainSize: f.width,
520
520
  wrapperMainSize: c.width,
521
521
  boundaryDistance: Math.abs(c.left)
522
- })), F = X(() => ({
523
- thumbSize: d.value ? lt(c.height / s.value.scrollHeight * c.height, o.thumbMinSize > c.height ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
522
+ })), P = Q(() => ({
523
+ thumbSize: d.value ? nt(c.height / s.value.scrollHeight * c.height, o.thumbMinSize > c.height ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
524
524
  contentMainSize: f.height,
525
525
  wrapperMainSize: c.height,
526
526
  boundaryDistance: Math.abs(c.top)
527
- })), R = X(() => c.height - F.value.thumbSize - 5), C = X(() => c.width - w.value.thumbSize - 5);
527
+ })), A = Q(() => c.height - P.value.thumbSize - 5), k = Q(() => c.width - w.value.thumbSize - 5);
528
528
  const W = () => {
529
- u.value && (t.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / u.value * C.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * R.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
529
+ u.value && (t.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / u.value * k.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * A.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
530
530
  };
531
531
  ee(() => [u.value, d.value], W);
532
532
  const j = (N) => {
533
533
  N.stopPropagation();
534
- const te = s.value.scrollLeft, E = s.value.scrollTop, M = lt(te + ((N == null ? void 0 : N.deltaX) || 0), 0, u.value) | 0, q = lt(E + ((N == null ? void 0 : N.deltaY) || 0), 0, d.value) | 0;
535
- s.value.scrollLeft = M, s.value.scrollTop = q, u.value && (t.horizontal.el.style.transform = `translate3d(${M / u.value * C.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${q / d.value * R.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: M, scrollTop: q });
534
+ const te = s.value.scrollLeft, M = s.value.scrollTop, T = nt(te + ((N == null ? void 0 : N.deltaX) || 0), 0, u.value) | 0, q = nt(M + ((N == null ? void 0 : N.deltaY) || 0), 0, d.value) | 0;
535
+ s.value.scrollLeft = T, s.value.scrollTop = q, u.value && (t.horizontal.el.style.transform = `translate3d(${T / u.value * k.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${q / d.value * A.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: T, scrollTop: q });
536
536
  }, Y = (N) => {
537
537
  o.simulateScroll ? j(N) : W();
538
538
  };
539
539
  return ee(c, () => n("wrapperResize", c)), ee(f, () => n("contentResize", f)), l({
540
540
  scrollEl: s
541
541
  }), (N, te) => (p(), m("div", {
542
- class: T(["scrollbar__wrapper", e.wrapperClass]),
542
+ class: E(["scrollbar__wrapper", e.wrapperClass]),
543
543
  style: V(e.wrapperStyle)
544
544
  }, [
545
- k("div", vl({
546
- ref: (E, M) => {
547
- M.wrapperEl = E, s.value = E;
545
+ S("div", gl({
546
+ ref: (M, T) => {
547
+ T.wrapperEl = M, s.value = M;
548
548
  },
549
549
  class: "scrollbar__scroller"
550
550
  }, N.$attrs, {
551
551
  onWheel: Y,
552
552
  onScroll: Y
553
553
  }), [
554
- k("div", {
555
- ref: (E, M) => {
556
- M.contentEl = E, a.value = E;
554
+ S("div", {
555
+ ref: (M, T) => {
556
+ T.contentEl = M, a.value = M;
557
557
  },
558
- class: T(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
558
+ class: E(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
559
559
  style: V(e.contentStyle)
560
560
  }, [
561
561
  ie(N.$slots, "default")
562
562
  ], 6)
563
563
  ], 16),
564
- (p(), m(H, null, ue(t, (E, M) => le(bo, {
565
- ref: (q) => i(q, M),
566
- key: M,
564
+ (p(), m(H, null, se(t, (M, T) => ne(wo, {
565
+ ref: (q) => i(q, T),
566
+ key: T,
567
567
  autoExpand: e.autoExpand,
568
568
  autoHide: e.autoHide,
569
569
  autoHideDelay: e.autoHideDelay,
570
- fixedThumb: M === e.direction ? !1 : e.fixedThumb,
571
- type: M,
572
- scrollInfo: M === "vertical" ? F.value : w.value,
570
+ fixedThumb: T === e.direction ? !1 : e.fixedThumb,
571
+ type: T,
572
+ scrollInfo: T === "vertical" ? P.value : w.value,
573
573
  thumbWidth: e.thumbWidth,
574
574
  wrapperEl: s.value
575
575
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
576
576
  ], 6));
577
577
  }
578
- const an = /* @__PURE__ */ ke($n(ft({}, wo), {
578
+ const cn = /* @__PURE__ */ ke(An(dt({}, ko), {
579
579
  props: {
580
580
  wrapperClass: null,
581
581
  wrapperStyle: null,
@@ -594,8 +594,8 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
594
594
  simulateScroll: null
595
595
  },
596
596
  emits: ["wrapperResize", "contentResize", "scroll"],
597
- setup: xo
598
- })), un = {
597
+ setup: So
598
+ })), dn = {
599
599
  __name: "splitpanes",
600
600
  props: {
601
601
  horizontal: { type: Boolean, default: !1 },
@@ -618,7 +618,7 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
618
618
  "splitter-dblclick"
619
619
  ],
620
620
  setup(e, { emit: l }) {
621
- const n = l, o = e, t = zn(), i = B([]), s = X(() => i.value.reduce((h, x) => (h[~~x.id] = x) && h, {})), a = X(() => i.value.length), c = B(null), f = B(!1), d = B({
621
+ const n = l, o = e, t = Mn(), i = B([]), s = Q(() => i.value.reduce((h, x) => (h[~~x.id] = x) && h, {})), a = Q(() => i.value.length), c = B(null), f = B(!1), d = B({
622
622
  mouseDown: !1,
623
623
  dragging: !1,
624
624
  activeSplitter: null,
@@ -628,190 +628,190 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
628
628
  // Used to detect double click on touch devices.
629
629
  splitter: null,
630
630
  timeoutId: null
631
- }), g = X(() => ({
631
+ }), b = Q(() => ({
632
632
  [`splitpanes splitpanes--${o.horizontal ? "horizontal" : "vertical"}`]: !0,
633
633
  "splitpanes--dragging": d.value.dragging
634
634
  })), w = () => {
635
- document.addEventListener("mousemove", C, { passive: !1 }), document.addEventListener("mouseup", W), "ontouchstart" in window && (document.addEventListener("touchmove", C, { passive: !1 }), document.addEventListener("touchend", W));
636
- }, F = () => {
637
- document.removeEventListener("mousemove", C, { passive: !1 }), document.removeEventListener("mouseup", W), "ontouchstart" in window && (document.removeEventListener("touchmove", C, { passive: !1 }), document.removeEventListener("touchend", W));
638
- }, R = (h, x) => {
639
- const z = h.target.closest(".splitpanes__splitter");
640
- if (z) {
641
- const { left: S, top: L } = z.getBoundingClientRect(), { clientX: O, clientY: D } = "ontouchstart" in window && h.touches ? h.touches[0] : h;
642
- d.value.cursorOffset = o.horizontal ? D - L : O - S;
635
+ document.addEventListener("mousemove", k, { passive: !1 }), document.addEventListener("mouseup", W), "ontouchstart" in window && (document.addEventListener("touchmove", k, { passive: !1 }), document.addEventListener("touchend", W));
636
+ }, P = () => {
637
+ document.removeEventListener("mousemove", k, { passive: !1 }), document.removeEventListener("mouseup", W), "ontouchstart" in window && (document.removeEventListener("touchmove", k, { passive: !1 }), document.removeEventListener("touchend", W));
638
+ }, A = (h, x) => {
639
+ const L = h.target.closest(".splitpanes__splitter");
640
+ if (L) {
641
+ const { left: C, top: z } = L.getBoundingClientRect(), { clientX: $, clientY: D } = "ontouchstart" in window && h.touches ? h.touches[0] : h;
642
+ d.value.cursorOffset = o.horizontal ? D - z : $ - C;
643
643
  }
644
644
  w(), d.value.mouseDown = !0, d.value.activeSplitter = x;
645
- }, C = (h) => {
645
+ }, k = (h) => {
646
646
  d.value.mouseDown && (h.preventDefault(), d.value.dragging = !0, requestAnimationFrame(() => {
647
- M(te(h)), ne("resize", { event: h }, !0);
647
+ T(te(h)), X("resize", { event: h }, !0);
648
648
  }));
649
649
  }, W = (h) => {
650
- d.value.dragging && ne("resized", { event: h }, !0), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
651
- d.value.dragging = !1, F();
650
+ d.value.dragging && X("resized", { event: h }, !0), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
651
+ d.value.dragging = !1, P();
652
652
  }, 100);
653
653
  }, j = (h, x) => {
654
- "ontouchstart" in window && (h.preventDefault(), u.value.splitter === x ? (clearTimeout(u.value.timeoutId), u.value.timeoutId = null, Y(h, x), u.value.splitter = null) : (u.value.splitter = x, u.value.timeoutId = setTimeout(() => u.value.splitter = null, 500))), d.value.dragging || ne("splitter-click", { event: h, index: x }, !0);
654
+ "ontouchstart" in window && (h.preventDefault(), u.value.splitter === x ? (clearTimeout(u.value.timeoutId), u.value.timeoutId = null, Y(h, x), u.value.splitter = null) : (u.value.splitter = x, u.value.timeoutId = setTimeout(() => u.value.splitter = null, 500))), d.value.dragging || X("splitter-click", { event: h, index: x }, !0);
655
655
  }, Y = (h, x) => {
656
- if (ne("splitter-dblclick", { event: h, index: x }, !0), o.maximizePanes) {
657
- let z = 0;
658
- i.value = i.value.map((S, L) => (S.size = L === x ? S.max : S.min, L !== x && (z += S.min), S)), i.value[x].size -= z, ne("pane-maximize", { event: h, index: x, pane: i.value[x] }), ne("resized", { event: h, index: x }, !0);
656
+ if (X("splitter-dblclick", { event: h, index: x }, !0), o.maximizePanes) {
657
+ let L = 0;
658
+ i.value = i.value.map((C, z) => (C.size = z === x ? C.max : C.min, z !== x && (L += C.min), C)), i.value[x].size -= L, X("pane-maximize", { event: h, index: x, pane: i.value[x] }), X("resized", { event: h, index: x }, !0);
659
659
  }
660
660
  }, N = (h, x) => {
661
- ne("pane-click", {
661
+ X("pane-click", {
662
662
  event: h,
663
663
  index: s.value[x].index,
664
664
  pane: s.value[x]
665
665
  });
666
666
  }, te = (h) => {
667
- const x = c.value.getBoundingClientRect(), { clientX: z, clientY: S } = "ontouchstart" in window && h.touches ? h.touches[0] : h;
667
+ const x = c.value.getBoundingClientRect(), { clientX: L, clientY: C } = "ontouchstart" in window && h.touches ? h.touches[0] : h;
668
668
  return {
669
- x: z - (o.horizontal ? 0 : d.value.cursorOffset) - x.left,
670
- y: S - (o.horizontal ? d.value.cursorOffset : 0) - x.top
669
+ x: L - (o.horizontal ? 0 : d.value.cursorOffset) - x.left,
670
+ y: C - (o.horizontal ? d.value.cursorOffset : 0) - x.top
671
671
  };
672
- }, E = (h) => {
672
+ }, M = (h) => {
673
673
  h = h[o.horizontal ? "y" : "x"];
674
674
  const x = c.value[o.horizontal ? "clientHeight" : "clientWidth"];
675
675
  return o.rtl && !o.horizontal && (h = x - h), h * 100 / x;
676
- }, M = (h) => {
676
+ }, T = (h) => {
677
677
  const x = d.value.activeSplitter;
678
- let z = {
678
+ let L = {
679
679
  prevPanesSize: J(x),
680
- nextPanesSize: I(x),
680
+ nextPanesSize: O(x),
681
681
  prevReachedMinPanes: 0,
682
682
  nextReachedMinPanes: 0
683
683
  };
684
- const S = 0 + (o.pushOtherPanes ? 0 : z.prevPanesSize), L = 100 - (o.pushOtherPanes ? 0 : z.nextPanesSize), O = Math.max(Math.min(E(h), L), S);
685
- let D = [x, x + 1], se = i.value[D[0]] || null, ce = i.value[D[1]] || null;
686
- const yt = se.max < 100 && O >= se.max + z.prevPanesSize, Ie = ce.max < 100 && O <= 100 - (ce.max + I(x + 1));
687
- if (yt || Ie) {
688
- yt ? (se.size = se.max, ce.size = Math.max(100 - se.max - z.prevPanesSize - z.nextPanesSize, 0)) : (se.size = Math.max(100 - ce.max - z.prevPanesSize - I(x + 1), 0), ce.size = ce.max);
684
+ const C = 0 + (o.pushOtherPanes ? 0 : L.prevPanesSize), z = 100 - (o.pushOtherPanes ? 0 : L.nextPanesSize), $ = Math.max(Math.min(M(h), z), C);
685
+ let D = [x, x + 1], oe = i.value[D[0]] || null, ue = i.value[D[1]] || null;
686
+ const bt = oe.max < 100 && $ >= oe.max + L.prevPanesSize, yt = ue.max < 100 && $ <= 100 - (ue.max + O(x + 1));
687
+ if (bt || yt) {
688
+ bt ? (oe.size = oe.max, ue.size = Math.max(100 - oe.max - L.prevPanesSize - L.nextPanesSize, 0)) : (oe.size = Math.max(100 - ue.max - L.prevPanesSize - O(x + 1), 0), ue.size = ue.max);
689
689
  return;
690
690
  }
691
691
  if (o.pushOtherPanes) {
692
- const We = q(z, O);
693
- if (!We) return;
694
- ({ sums: z, panesToResize: D } = We), se = i.value[D[0]] || null, ce = i.value[D[1]] || null;
692
+ const wt = q(L, $);
693
+ if (!wt) return;
694
+ ({ sums: L, panesToResize: D } = wt), oe = i.value[D[0]] || null, ue = i.value[D[1]] || null;
695
695
  }
696
- se !== null && (se.size = Math.min(Math.max(O - z.prevPanesSize - z.prevReachedMinPanes, se.min), se.max)), ce !== null && (ce.size = Math.min(Math.max(100 - O - z.nextPanesSize - z.nextReachedMinPanes, ce.min), ce.max));
696
+ oe !== null && (oe.size = Math.min(Math.max($ - L.prevPanesSize - L.prevReachedMinPanes, oe.min), oe.max)), ue !== null && (ue.size = Math.min(Math.max(100 - $ - L.nextPanesSize - L.nextReachedMinPanes, ue.min), ue.max));
697
697
  }, q = (h, x) => {
698
- const z = d.value.activeSplitter, S = [z, z + 1];
699
- return x < h.prevPanesSize + i.value[S[0]].min && (S[0] = oe(z).index, h.prevReachedMinPanes = 0, S[0] < z && i.value.forEach((L, O) => {
700
- O > S[0] && O <= z && (L.size = L.min, h.prevReachedMinPanes += L.min);
701
- }), h.prevPanesSize = J(S[0]), S[0] === void 0) ? (h.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((L, O) => {
702
- O > 0 && O <= z && (L.size = L.min, h.prevReachedMinPanes += L.min);
703
- }), i.value[S[1]].size = 100 - h.prevReachedMinPanes - i.value[0].min - h.prevPanesSize - h.nextPanesSize, null) : x > 100 - h.nextPanesSize - i.value[S[1]].min && (S[1] = Te(z).index, h.nextReachedMinPanes = 0, S[1] > z + 1 && i.value.forEach((L, O) => {
704
- O > z && O < S[1] && (L.size = L.min, h.nextReachedMinPanes += L.min);
705
- }), h.nextPanesSize = I(S[1] - 1), S[1] === void 0) ? (h.nextReachedMinPanes = 0, i.value.forEach((L, O) => {
706
- O < a.value - 1 && O >= z + 1 && (L.size = L.min, h.nextReachedMinPanes += L.min);
707
- }), i.value[S[0]].size = 100 - h.prevPanesSize - I(S[0] - 1), null) : { sums: h, panesToResize: S };
708
- }, J = (h) => i.value.reduce((x, z, S) => x + (S < h ? z.size : 0), 0), I = (h) => i.value.reduce((x, z, S) => x + (S > h + 1 ? z.size : 0), 0), oe = (h) => [...i.value].reverse().find((x) => x.index < h && x.size > x.min) || {}, Te = (h) => i.value.find((x) => x.index > h + 1 && x.size > x.min) || {}, Fe = () => {
698
+ const L = d.value.activeSplitter, C = [L, L + 1];
699
+ return x < h.prevPanesSize + i.value[C[0]].min && (C[0] = re(L).index, h.prevReachedMinPanes = 0, C[0] < L && i.value.forEach((z, $) => {
700
+ $ > C[0] && $ <= L && (z.size = z.min, h.prevReachedMinPanes += z.min);
701
+ }), h.prevPanesSize = J(C[0]), C[0] === void 0) ? (h.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((z, $) => {
702
+ $ > 0 && $ <= L && (z.size = z.min, h.prevReachedMinPanes += z.min);
703
+ }), i.value[C[1]].size = 100 - h.prevReachedMinPanes - i.value[0].min - h.prevPanesSize - h.nextPanesSize, null) : x > 100 - h.nextPanesSize - i.value[C[1]].min && (C[1] = me(L).index, h.nextReachedMinPanes = 0, C[1] > L + 1 && i.value.forEach((z, $) => {
704
+ $ > L && $ < C[1] && (z.size = z.min, h.nextReachedMinPanes += z.min);
705
+ }), h.nextPanesSize = O(C[1] - 1), C[1] === void 0) ? (h.nextReachedMinPanes = 0, i.value.forEach((z, $) => {
706
+ $ < a.value - 1 && $ >= L + 1 && (z.size = z.min, h.nextReachedMinPanes += z.min);
707
+ }), i.value[C[0]].size = 100 - h.prevPanesSize - O(C[0] - 1), null) : { sums: h, panesToResize: C };
708
+ }, J = (h) => i.value.reduce((x, L, C) => x + (C < h ? L.size : 0), 0), O = (h) => i.value.reduce((x, L, C) => x + (C > h + 1 ? L.size : 0), 0), re = (h) => [...i.value].reverse().find((x) => x.index < h && x.size > x.min) || {}, me = (h) => i.value.find((x) => x.index > h + 1 && x.size > x.min) || {}, Ee = () => {
709
709
  var h;
710
710
  const x = Array.from(((h = c.value) == null ? void 0 : h.children) || []);
711
- for (const z of x) {
712
- const S = z.classList.contains("splitpanes__pane"), L = z.classList.contains("splitpanes__splitter");
713
- !S && !L && (z.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
711
+ for (const L of x) {
712
+ const C = L.classList.contains("splitpanes__pane"), z = L.classList.contains("splitpanes__splitter");
713
+ !C && !z && (L.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
714
714
  }
715
- }, Ce = (h, x, z = !1) => {
716
- const S = h - 1, L = document.createElement("div");
717
- L.classList.add("splitpanes__splitter"), z || (L.onmousedown = (O) => R(O, S), typeof window < "u" && "ontouchstart" in window && (L.ontouchstart = (O) => R(O, S)), L.onclick = (O) => j(O, S + 1)), L.ondblclick = (O) => Y(O, S + 1), x.parentNode.insertBefore(L, x);
718
- }, Ae = (h) => {
715
+ }, Oe = (h, x, L = !1) => {
716
+ const C = h - 1, z = document.createElement("div");
717
+ z.classList.add("splitpanes__splitter"), L || (z.onmousedown = ($) => A($, C), typeof window < "u" && "ontouchstart" in window && (z.ontouchstart = ($) => A($, C)), z.onclick = ($) => j($, C + 1)), z.ondblclick = ($) => Y($, C + 1), x.parentNode.insertBefore(z, x);
718
+ }, Fe = (h) => {
719
719
  h.onmousedown = void 0, h.onclick = void 0, h.ondblclick = void 0, h.remove();
720
- }, Pe = () => {
720
+ }, ge = () => {
721
721
  var h;
722
722
  const x = Array.from(((h = c.value) == null ? void 0 : h.children) || []);
723
- for (const S of x)
724
- S.className.includes("splitpanes__splitter") && Ae(S);
725
- let z = 0;
726
- for (const S of x)
727
- S.className.includes("splitpanes__pane") && (!z && o.firstSplitter ? Ce(z, S, !0) : z && Ce(z, S), z++);
728
- }, Xe = ({ uid: h, ...x }) => {
729
- const z = s.value[h];
730
- for (const [S, L] of Object.entries(x)) z[S] = L;
731
- }, de = (h) => {
723
+ for (const C of x)
724
+ C.className.includes("splitpanes__splitter") && Fe(C);
725
+ let L = 0;
726
+ for (const C of x)
727
+ C.className.includes("splitpanes__pane") && (!L && o.firstSplitter ? Oe(L, C, !0) : L && Oe(L, C), L++);
728
+ }, $e = ({ uid: h, ...x }) => {
729
+ const L = s.value[h];
730
+ for (const [C, z] of Object.entries(x)) L[C] = z;
731
+ }, gt = (h) => {
732
732
  var x;
733
- let z = -1;
734
- Array.from(((x = c.value) == null ? void 0 : x.children) || []).some((S) => (S.className.includes("splitpanes__pane") && z++, S.isSameNode(h.el))), i.value.splice(z, 0, { ...h, index: z }), i.value.forEach((S, L) => S.index = L), f.value && Re(() => {
735
- Pe(), be({ addedPane: i.value[z] }), ne("pane-add", { pane: i.value[z] });
733
+ let L = -1;
734
+ Array.from(((x = c.value) == null ? void 0 : x.children) || []).some((C) => (C.className.includes("splitpanes__pane") && L++, C.isSameNode(h.el))), i.value.splice(L, 0, { ...h, index: L }), i.value.forEach((C, z) => C.index = z), f.value && Ie(() => {
735
+ ge(), ae({ addedPane: i.value[L] }), X("pane-add", { pane: i.value[L] });
736
736
  });
737
- }, me = (h) => {
738
- const x = i.value.findIndex((S) => S.id === h);
737
+ }, Ge = (h) => {
738
+ const x = i.value.findIndex((C) => C.id === h);
739
739
  i.value[x].el = null;
740
- const z = i.value.splice(x, 1)[0];
741
- i.value.forEach((S, L) => S.index = L), Re(() => {
742
- Pe(), ne("pane-remove", { pane: z }), be({ removedPane: { ...z } });
740
+ const L = i.value.splice(x, 1)[0];
741
+ i.value.forEach((C, z) => C.index = z), Ie(() => {
742
+ ge(), X("pane-remove", { pane: L }), ae({ removedPane: { ...L } });
743
743
  });
744
- }, be = (h = {}) => {
745
- !h.addedPane && !h.removedPane ? bt() : i.value.some((x) => x.givenSize !== null || x.min || x.max < 100) ? re(h) : Ye(), f.value && ne("resized");
746
- }, Ye = () => {
744
+ }, ae = (h = {}) => {
745
+ !h.addedPane && !h.removedPane ? Se() : i.value.some((x) => x.givenSize !== null || x.min || x.max < 100) ? Ke(h) : pe(), f.value && X("resized");
746
+ }, pe = () => {
747
747
  const h = 100 / a.value;
748
748
  let x = 0;
749
- const z = [], S = [];
750
- for (const L of i.value)
751
- L.size = Math.max(Math.min(h, L.max), L.min), x -= L.size, L.size >= L.max && z.push(L.id), L.size <= L.min && S.push(L.id);
752
- x > 0.1 && _e(x, z, S);
753
- }, bt = () => {
749
+ const L = [], C = [];
750
+ for (const z of i.value)
751
+ z.size = Math.max(Math.min(h, z.max), z.min), x -= z.size, z.size >= z.max && L.push(z.id), z.size <= z.min && C.push(z.id);
752
+ x > 0.1 && Re(x, L, C);
753
+ }, Se = () => {
754
754
  let h = 100;
755
- const x = [], z = [];
756
- let S = 0;
757
- for (const O of i.value)
758
- h -= O.size, O.givenSize !== null && S++, O.size >= O.max && x.push(O.id), O.size <= O.min && z.push(O.id);
759
- let L = 100;
755
+ const x = [], L = [];
756
+ let C = 0;
757
+ for (const $ of i.value)
758
+ h -= $.size, $.givenSize !== null && C++, $.size >= $.max && x.push($.id), $.size <= $.min && L.push($.id);
759
+ let z = 100;
760
760
  if (h > 0.1) {
761
- for (const O of i.value)
762
- O.givenSize === null && (O.size = Math.max(Math.min(h / (a.value - S), O.max), O.min)), L -= O.size;
763
- L > 0.1 && _e(L, x, z);
761
+ for (const $ of i.value)
762
+ $.givenSize === null && ($.size = Math.max(Math.min(h / (a.value - C), $.max), $.min)), z -= $.size;
763
+ z > 0.1 && Re(z, x, L);
764
764
  }
765
- }, re = ({ addedPane: h, removedPane: x } = {}) => {
766
- let z = 100 / a.value, S = 0;
767
- const L = [], O = [];
768
- ((h == null ? void 0 : h.givenSize) ?? null) !== null && (z = (100 - h.givenSize) / (a.value - 1));
765
+ }, Ke = ({ addedPane: h, removedPane: x } = {}) => {
766
+ let L = 100 / a.value, C = 0;
767
+ const z = [], $ = [];
768
+ ((h == null ? void 0 : h.givenSize) ?? null) !== null && (L = (100 - h.givenSize) / (a.value - 1));
769
769
  for (const D of i.value)
770
- S -= D.size, D.size >= D.max && L.push(D.id), D.size <= D.min && O.push(D.id);
771
- if (!(Math.abs(S) < 0.1)) {
770
+ C -= D.size, D.size >= D.max && z.push(D.id), D.size <= D.min && $.push(D.id);
771
+ if (!(Math.abs(C) < 0.1)) {
772
772
  for (const D of i.value)
773
- (h == null ? void 0 : h.givenSize) !== null && (h == null ? void 0 : h.id) === D.id || (D.size = Math.max(Math.min(z, D.max), D.min)), S -= D.size, D.size >= D.max && L.push(D.id), D.size <= D.min && O.push(D.id);
774
- S > 0.1 && _e(S, L, O);
773
+ (h == null ? void 0 : h.givenSize) !== null && (h == null ? void 0 : h.id) === D.id || (D.size = Math.max(Math.min(L, D.max), D.min)), C -= D.size, D.size >= D.max && z.push(D.id), D.size <= D.min && $.push(D.id);
774
+ C > 0.1 && Re(C, z, $);
775
775
  }
776
- }, _e = (h, x, z) => {
777
- let S;
778
- h > 0 ? S = h / (a.value - x.length) : S = h / (a.value - z.length), i.value.forEach((L, O) => {
779
- if (h > 0 && !x.includes(L.id)) {
780
- const D = Math.max(Math.min(L.size + S, L.max), L.min), se = D - L.size;
781
- h -= se, L.size = D;
782
- } else if (!z.includes(L.id)) {
783
- const D = Math.max(Math.min(L.size + S, L.max), L.min), se = D - L.size;
784
- h -= se, L.size = D;
776
+ }, Re = (h, x, L) => {
777
+ let C;
778
+ h > 0 ? C = h / (a.value - x.length) : C = h / (a.value - L.length), i.value.forEach((z, $) => {
779
+ if (h > 0 && !x.includes(z.id)) {
780
+ const D = Math.max(Math.min(z.size + C, z.max), z.min), oe = D - z.size;
781
+ h -= oe, z.size = D;
782
+ } else if (!L.includes(z.id)) {
783
+ const D = Math.max(Math.min(z.size + C, z.max), z.min), oe = D - z.size;
784
+ h -= oe, z.size = D;
785
785
  }
786
- }), Math.abs(h) > 0.1 && Re(() => {
786
+ }), Math.abs(h) > 0.1 && Ie(() => {
787
787
  f.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
788
788
  });
789
- }, ne = (h, x = void 0, z = !1) => {
790
- const S = (x == null ? void 0 : x.index) ?? d.value.activeSplitter ?? null;
789
+ }, X = (h, x = void 0, L = !1) => {
790
+ const C = (x == null ? void 0 : x.index) ?? d.value.activeSplitter ?? null;
791
791
  n(h, {
792
792
  ...x,
793
- ...S !== null && { index: S },
794
- ...z && S !== null && {
795
- prevPane: i.value[S - (o.firstSplitter ? 1 : 0)],
796
- nextPane: i.value[S + (o.firstSplitter ? 0 : 1)]
793
+ ...C !== null && { index: C },
794
+ ...L && C !== null && {
795
+ prevPane: i.value[C - (o.firstSplitter ? 1 : 0)],
796
+ nextPane: i.value[C + (o.firstSplitter ? 0 : 1)]
797
797
  },
798
- panes: i.value.map((L) => ({ min: L.min, max: L.max, size: L.size }))
798
+ panes: i.value.map((z) => ({ min: z.min, max: z.max, size: z.size }))
799
799
  });
800
800
  };
801
- ee(() => o.firstSplitter, () => Pe()), Me(() => {
802
- Fe(), Pe(), be(), ne("ready"), f.value = !0;
803
- }), Ln(() => f.value = !1);
804
- const Ne = () => {
801
+ ee(() => o.firstSplitter, () => ge()), Te(() => {
802
+ Ee(), ge(), ae(), X("ready"), f.value = !0;
803
+ }), Tn(() => f.value = !1);
804
+ const Qe = () => {
805
805
  var h;
806
- return Mt(
806
+ return Et(
807
807
  "div",
808
- { ref: c, class: g.value },
808
+ { ref: c, class: b.value },
809
809
  (h = t.default) == null ? void 0 : h.call(t)
810
810
  );
811
811
  };
812
- return ze("panes", i), ze("indexedPanes", s), ze("horizontal", X(() => o.horizontal)), ze("requestUpdate", Xe), ze("onPaneAdd", de), ze("onPaneRemove", me), ze("onPaneClick", N), (h, x) => (p(), pe(bl(Ne)));
812
+ return ze("panes", i), ze("indexedPanes", s), ze("horizontal", Q(() => o.horizontal)), ze("requestUpdate", $e), ze("onPaneAdd", gt), ze("onPaneRemove", Ge), ze("onPaneClick", N), (h, x) => (p(), fe(wl(Qe)));
813
813
  }
814
- }, St = {
814
+ }, zt = {
815
815
  __name: "pane",
816
816
  props: {
817
817
  size: { type: [Number, String] },
@@ -820,41 +820,41 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
820
820
  },
821
821
  setup(e) {
822
822
  var l;
823
- const n = e, o = $e("requestUpdate"), t = $e("onPaneAdd"), i = $e("horizontal"), s = $e("onPaneRemove"), a = $e("onPaneClick"), c = (l = Nt()) == null ? void 0 : l.uid, f = $e("indexedPanes"), d = X(() => f.value[c]), u = B(null), g = X(() => {
824
- const C = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
825
- return Math.max(Math.min(C, F.value), w.value);
826
- }), w = X(() => {
827
- const C = parseFloat(n.minSize);
828
- return isNaN(C) ? 0 : C;
829
- }), F = X(() => {
830
- const C = parseFloat(n.maxSize);
831
- return isNaN(C) ? 100 : C;
832
- }), R = X(() => {
833
- var C;
834
- return `${i.value ? "height" : "width"}: ${(C = d.value) == null ? void 0 : C.size}%`;
823
+ const n = e, o = _e("requestUpdate"), t = _e("onPaneAdd"), i = _e("horizontal"), s = _e("onPaneRemove"), a = _e("onPaneClick"), c = (l = Wt()) == null ? void 0 : l.uid, f = _e("indexedPanes"), d = Q(() => f.value[c]), u = B(null), b = Q(() => {
824
+ const k = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
825
+ return Math.max(Math.min(k, P.value), w.value);
826
+ }), w = Q(() => {
827
+ const k = parseFloat(n.minSize);
828
+ return isNaN(k) ? 0 : k;
829
+ }), P = Q(() => {
830
+ const k = parseFloat(n.maxSize);
831
+ return isNaN(k) ? 100 : k;
832
+ }), A = Q(() => {
833
+ var k;
834
+ return `${i.value ? "height" : "width"}: ${(k = d.value) == null ? void 0 : k.size}%`;
835
835
  });
836
- return ee(() => g.value, (C) => o({ uid: c, size: C })), ee(() => w.value, (C) => o({ uid: c, min: C })), ee(() => F.value, (C) => o({ uid: c, max: C })), Me(() => {
836
+ return ee(() => b.value, (k) => o({ uid: c, size: k })), ee(() => w.value, (k) => o({ uid: c, min: k })), ee(() => P.value, (k) => o({ uid: c, max: k })), Te(() => {
837
837
  t({
838
838
  id: c,
839
839
  el: u.value,
840
840
  min: w.value,
841
- max: F.value,
841
+ max: P.value,
842
842
  // The given size (useful to know the user intention).
843
- givenSize: n.size === void 0 ? null : g.value,
844
- size: g.value
843
+ givenSize: n.size === void 0 ? null : b.value,
844
+ size: b.value
845
845
  // The computed current size at any time.
846
846
  });
847
- }), Ln(() => s(c)), (C, W) => (p(), m("div", {
847
+ }), Tn(() => s(c)), (k, W) => (p(), m("div", {
848
848
  ref_key: "paneEl",
849
849
  ref: u,
850
850
  class: "splitpanes__pane",
851
- onClick: W[0] || (W[0] = (j) => G(a)(j, C._.uid)),
852
- style: V(R.value)
851
+ onClick: W[0] || (W[0] = (j) => U(a)(j, k._.uid)),
852
+ style: V(A.value)
853
853
  }, [
854
- ie(C.$slots, "default")
854
+ ie(k.$slots, "default")
855
855
  ], 4));
856
856
  }
857
- }, Ue = /^[a-z0-9]+(-[a-z0-9]+)*$/, vt = (e, l, n, o = "") => {
857
+ }, Be = /^[a-z0-9]+(-[a-z0-9]+)*$/, pt = (e, l, n, o = "") => {
858
858
  const t = e.split(":");
859
859
  if (e.slice(0, 1) === "@") {
860
860
  if (t.length < 2 || t.length > 3)
@@ -870,7 +870,7 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
870
870
  prefix: c,
871
871
  name: a
872
872
  };
873
- return l && !rt(f) ? null : f;
873
+ return l && !it(f) ? null : f;
874
874
  }
875
875
  const i = t[0], s = i.split("-");
876
876
  if (s.length > 1) {
@@ -879,7 +879,7 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
879
879
  prefix: s.shift(),
880
880
  name: s.join("-")
881
881
  };
882
- return l && !rt(a) ? null : a;
882
+ return l && !it(a) ? null : a;
883
883
  }
884
884
  if (n && o === "") {
885
885
  const a = {
@@ -887,41 +887,41 @@ const an = /* @__PURE__ */ ke($n(ft({}, wo), {
887
887
  prefix: "",
888
888
  name: i
889
889
  };
890
- return l && !rt(a, n) ? null : a;
890
+ return l && !it(a, n) ? null : a;
891
891
  }
892
892
  return null;
893
- }, rt = (e, l) => e ? !!((e.provider === "" || e.provider.match(Ue)) && (l && e.prefix === "" || e.prefix.match(Ue)) && e.name.match(Ue)) : !1, Rn = Object.freeze(
893
+ }, it = (e, l) => e ? !!((e.provider === "" || e.provider.match(Be)) && (l && e.prefix === "" || e.prefix.match(Be)) && e.name.match(Be)) : !1, Nn = Object.freeze(
894
894
  {
895
895
  left: 0,
896
896
  top: 0,
897
897
  width: 16,
898
898
  height: 16
899
899
  }
900
- ), ht = Object.freeze({
900
+ ), ft = Object.freeze({
901
901
  rotate: 0,
902
902
  vFlip: !1,
903
903
  hFlip: !1
904
- }), mt = Object.freeze({
905
- ...Rn,
906
- ...ht
907
- }), Tt = Object.freeze({
908
- ...mt,
904
+ }), vt = Object.freeze({
905
+ ...Nn,
906
+ ...ft
907
+ }), Ft = Object.freeze({
908
+ ...vt,
909
909
  body: "",
910
910
  hidden: !1
911
911
  });
912
- function ko(e, l) {
912
+ function Co(e, l) {
913
913
  const n = {};
914
914
  !e.hFlip != !l.hFlip && (n.hFlip = !0), !e.vFlip != !l.vFlip && (n.vFlip = !0);
915
915
  const o = ((e.rotate || 0) + (l.rotate || 0)) % 4;
916
916
  return o && (n.rotate = o), n;
917
917
  }
918
- function cn(e, l) {
919
- const n = ko(e, l);
920
- for (const o in Tt)
921
- o in ht ? o in e && !(o in n) && (n[o] = ht[o]) : o in l ? n[o] = l[o] : o in e && (n[o] = e[o]);
918
+ function fn(e, l) {
919
+ const n = Co(e, l);
920
+ for (const o in Ft)
921
+ o in ft ? o in e && !(o in n) && (n[o] = ft[o]) : o in l ? n[o] = l[o] : o in e && (n[o] = e[o]);
922
922
  return n;
923
923
  }
924
- function Co(e, l) {
924
+ function zo(e, l) {
925
925
  const n = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
926
926
  function i(s) {
927
927
  if (n[s])
@@ -935,71 +935,71 @@ function Co(e, l) {
935
935
  }
936
936
  return Object.keys(n).concat(Object.keys(o)).forEach(i), t;
937
937
  }
938
- function So(e, l, n) {
938
+ function Lo(e, l, n) {
939
939
  const o = e.icons, t = e.aliases || /* @__PURE__ */ Object.create(null);
940
940
  let i = {};
941
941
  function s(a) {
942
- i = cn(
942
+ i = fn(
943
943
  o[a] || t[a],
944
944
  i
945
945
  );
946
946
  }
947
- return s(l), n.forEach(s), cn(e, i);
947
+ return s(l), n.forEach(s), fn(e, i);
948
948
  }
949
- function An(e, l) {
949
+ function Wn(e, l) {
950
950
  const n = [];
951
951
  if (typeof e != "object" || typeof e.icons != "object")
952
952
  return n;
953
953
  e.not_found instanceof Array && e.not_found.forEach((t) => {
954
954
  l(t, null), n.push(t);
955
955
  });
956
- const o = Co(e);
956
+ const o = zo(e);
957
957
  for (const t in o) {
958
958
  const i = o[t];
959
- i && (l(t, So(e, t, i)), n.push(t));
959
+ i && (l(t, Lo(e, t, i)), n.push(t));
960
960
  }
961
961
  return n;
962
962
  }
963
- const zo = {
963
+ const Mo = {
964
964
  provider: "",
965
965
  aliases: {},
966
966
  not_found: {},
967
- ...Rn
967
+ ...Nn
968
968
  };
969
- function zt(e, l) {
969
+ function Lt(e, l) {
970
970
  for (const n in l)
971
971
  if (n in e && typeof e[n] != typeof l[n])
972
972
  return !1;
973
973
  return !0;
974
974
  }
975
- function Nn(e) {
975
+ function Dn(e) {
976
976
  if (typeof e != "object" || e === null)
977
977
  return null;
978
978
  const l = e;
979
- if (typeof l.prefix != "string" || !e.icons || typeof e.icons != "object" || !zt(e, zo))
979
+ if (typeof l.prefix != "string" || !e.icons || typeof e.icons != "object" || !Lt(e, Mo))
980
980
  return null;
981
981
  const n = l.icons;
982
982
  for (const t in n) {
983
983
  const i = n[t];
984
- if (!t.match(Ue) || typeof i.body != "string" || !zt(
984
+ if (!t.match(Be) || typeof i.body != "string" || !Lt(
985
985
  i,
986
- Tt
986
+ Ft
987
987
  ))
988
988
  return null;
989
989
  }
990
990
  const o = l.aliases || /* @__PURE__ */ Object.create(null);
991
991
  for (const t in o) {
992
992
  const i = o[t], s = i.parent;
993
- if (!t.match(Ue) || typeof s != "string" || !n[s] && !o[s] || !zt(
993
+ if (!t.match(Be) || typeof s != "string" || !n[s] && !o[s] || !Lt(
994
994
  i,
995
- Tt
995
+ Ft
996
996
  ))
997
997
  return null;
998
998
  }
999
999
  return l;
1000
1000
  }
1001
- const dn = /* @__PURE__ */ Object.create(null);
1002
- function Lo(e, l) {
1001
+ const hn = /* @__PURE__ */ Object.create(null);
1002
+ function To(e, l) {
1003
1003
  return {
1004
1004
  provider: e,
1005
1005
  prefix: l,
@@ -1007,12 +1007,12 @@ function Lo(e, l) {
1007
1007
  missing: /* @__PURE__ */ new Set()
1008
1008
  };
1009
1009
  }
1010
- function Ee(e, l) {
1011
- const n = dn[e] || (dn[e] = /* @__PURE__ */ Object.create(null));
1012
- return n[l] || (n[l] = Lo(e, l));
1010
+ function Me(e, l) {
1011
+ const n = hn[e] || (hn[e] = /* @__PURE__ */ Object.create(null));
1012
+ return n[l] || (n[l] = To(e, l));
1013
1013
  }
1014
- function Dt(e, l) {
1015
- return Nn(l) ? An(l, (n, o) => {
1014
+ function Ht(e, l) {
1015
+ return Dn(l) ? Wn(l, (n, o) => {
1016
1016
  o ? e.icons[n] = o : e.missing.add(n);
1017
1017
  }) : [];
1018
1018
  }
@@ -1024,64 +1024,64 @@ function Eo(e, l, n) {
1024
1024
  }
1025
1025
  return !1;
1026
1026
  }
1027
- let Ge = !1;
1028
- function Wn(e) {
1029
- return typeof e == "boolean" && (Ge = e), Ge;
1027
+ let je = !1;
1028
+ function Hn(e) {
1029
+ return typeof e == "boolean" && (je = e), je;
1030
1030
  }
1031
- function Mo(e) {
1032
- const l = typeof e == "string" ? vt(e, !0, Ge) : e;
1031
+ function Fo(e) {
1032
+ const l = typeof e == "string" ? pt(e, !0, je) : e;
1033
1033
  if (l) {
1034
- const n = Ee(l.provider, l.prefix), o = l.name;
1034
+ const n = Me(l.provider, l.prefix), o = l.name;
1035
1035
  return n.icons[o] || (n.missing.has(o) ? null : void 0);
1036
1036
  }
1037
1037
  }
1038
- function To(e, l) {
1039
- const n = vt(e, !0, Ge);
1038
+ function Po(e, l) {
1039
+ const n = pt(e, !0, je);
1040
1040
  if (!n)
1041
1041
  return !1;
1042
- const o = Ee(n.provider, n.prefix);
1042
+ const o = Me(n.provider, n.prefix);
1043
1043
  return Eo(o, n.name, l);
1044
1044
  }
1045
- function Fo(e, l) {
1045
+ function _o(e, l) {
1046
1046
  if (typeof e != "object")
1047
1047
  return !1;
1048
- if (typeof l != "string" && (l = e.provider || ""), Ge && !l && !e.prefix) {
1048
+ if (typeof l != "string" && (l = e.provider || ""), je && !l && !e.prefix) {
1049
1049
  let t = !1;
1050
- return Nn(e) && (e.prefix = "", An(e, (i, s) => {
1051
- s && To(i, s) && (t = !0);
1050
+ return Dn(e) && (e.prefix = "", Wn(e, (i, s) => {
1051
+ s && Po(i, s) && (t = !0);
1052
1052
  })), t;
1053
1053
  }
1054
1054
  const n = e.prefix;
1055
- if (!rt({
1055
+ if (!it({
1056
1056
  provider: l,
1057
1057
  prefix: n,
1058
1058
  name: "a"
1059
1059
  }))
1060
1060
  return !1;
1061
- const o = Ee(l, n);
1062
- return !!Dt(o, e);
1061
+ const o = Me(l, n);
1062
+ return !!Ht(o, e);
1063
1063
  }
1064
- const Dn = Object.freeze({
1064
+ const Bn = Object.freeze({
1065
1065
  width: null,
1066
1066
  height: null
1067
- }), Hn = Object.freeze({
1067
+ }), qn = Object.freeze({
1068
1068
  // Dimensions
1069
- ...Dn,
1069
+ ...Bn,
1070
1070
  // Transformations
1071
- ...ht
1072
- }), Po = /(-?[0-9.]*[0-9]+[0-9.]*)/g, _o = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1073
- function fn(e, l, n) {
1071
+ ...ft
1072
+ }), Io = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Oo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1073
+ function pn(e, l, n) {
1074
1074
  if (l === 1)
1075
1075
  return e;
1076
1076
  if (n = n || 100, typeof e == "number")
1077
1077
  return Math.ceil(e * l * n) / n;
1078
1078
  if (typeof e != "string")
1079
1079
  return e;
1080
- const o = e.split(Po);
1080
+ const o = e.split(Io);
1081
1081
  if (o === null || !o.length)
1082
1082
  return e;
1083
1083
  const t = [];
1084
- let i = o.shift(), s = _o.test(i);
1084
+ let i = o.shift(), s = Oo.test(i);
1085
1085
  for (; ; ) {
1086
1086
  if (s) {
1087
1087
  const a = parseFloat(i);
@@ -1093,7 +1093,7 @@ function fn(e, l, n) {
1093
1093
  s = !s;
1094
1094
  }
1095
1095
  }
1096
- function Io(e, l = "defs") {
1096
+ function $o(e, l = "defs") {
1097
1097
  let n = "";
1098
1098
  const o = e.indexOf("<" + l);
1099
1099
  for (; o >= 0; ) {
@@ -1110,20 +1110,20 @@ function Io(e, l = "defs") {
1110
1110
  content: e
1111
1111
  };
1112
1112
  }
1113
- function Oo(e, l) {
1113
+ function Ro(e, l) {
1114
1114
  return e ? "<defs>" + e + "</defs>" + l : l;
1115
1115
  }
1116
- function $o(e, l, n) {
1117
- const o = Io(e);
1118
- return Oo(o.defs, l + o.content + n);
1116
+ function Ao(e, l, n) {
1117
+ const o = $o(e);
1118
+ return Ro(o.defs, l + o.content + n);
1119
1119
  }
1120
- const Ro = (e) => e === "unset" || e === "undefined" || e === "none";
1121
- function Ao(e, l) {
1120
+ const No = (e) => e === "unset" || e === "undefined" || e === "none";
1121
+ function Wo(e, l) {
1122
1122
  const n = {
1123
- ...mt,
1123
+ ...vt,
1124
1124
  ...e
1125
1125
  }, o = {
1126
- ...Hn,
1126
+ ...qn,
1127
1127
  ...l
1128
1128
  }, t = {
1129
1129
  left: n.left,
@@ -1132,64 +1132,64 @@ function Ao(e, l) {
1132
1132
  height: n.height
1133
1133
  };
1134
1134
  let i = n.body;
1135
- [n, o].forEach((R) => {
1136
- const C = [], W = R.hFlip, j = R.vFlip;
1137
- let Y = R.rotate;
1138
- W ? j ? Y += 2 : (C.push(
1135
+ [n, o].forEach((A) => {
1136
+ const k = [], W = A.hFlip, j = A.vFlip;
1137
+ let Y = A.rotate;
1138
+ W ? j ? Y += 2 : (k.push(
1139
1139
  "translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
1140
- ), C.push("scale(-1 1)"), t.top = t.left = 0) : j && (C.push(
1140
+ ), k.push("scale(-1 1)"), t.top = t.left = 0) : j && (k.push(
1141
1141
  "translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
1142
- ), C.push("scale(1 -1)"), t.top = t.left = 0);
1142
+ ), k.push("scale(1 -1)"), t.top = t.left = 0);
1143
1143
  let N;
1144
1144
  switch (Y < 0 && (Y -= Math.floor(Y / 4) * 4), Y = Y % 4, Y) {
1145
1145
  case 1:
1146
- N = t.height / 2 + t.top, C.unshift(
1146
+ N = t.height / 2 + t.top, k.unshift(
1147
1147
  "rotate(90 " + N.toString() + " " + N.toString() + ")"
1148
1148
  );
1149
1149
  break;
1150
1150
  case 2:
1151
- C.unshift(
1151
+ k.unshift(
1152
1152
  "rotate(180 " + (t.width / 2 + t.left).toString() + " " + (t.height / 2 + t.top).toString() + ")"
1153
1153
  );
1154
1154
  break;
1155
1155
  case 3:
1156
- N = t.width / 2 + t.left, C.unshift(
1156
+ N = t.width / 2 + t.left, k.unshift(
1157
1157
  "rotate(-90 " + N.toString() + " " + N.toString() + ")"
1158
1158
  );
1159
1159
  break;
1160
1160
  }
1161
- Y % 2 === 1 && (t.left !== t.top && (N = t.left, t.left = t.top, t.top = N), t.width !== t.height && (N = t.width, t.width = t.height, t.height = N)), C.length && (i = $o(
1161
+ Y % 2 === 1 && (t.left !== t.top && (N = t.left, t.left = t.top, t.top = N), t.width !== t.height && (N = t.width, t.width = t.height, t.height = N)), k.length && (i = Ao(
1162
1162
  i,
1163
- '<g transform="' + C.join(" ") + '">',
1163
+ '<g transform="' + k.join(" ") + '">',
1164
1164
  "</g>"
1165
1165
  ));
1166
1166
  });
1167
1167
  const s = o.width, a = o.height, c = t.width, f = t.height;
1168
1168
  let d, u;
1169
- s === null ? (u = a === null ? "1em" : a === "auto" ? f : a, d = fn(u, c / f)) : (d = s === "auto" ? c : s, u = a === null ? fn(d, f / c) : a === "auto" ? f : a);
1170
- const g = {}, w = (R, C) => {
1171
- Ro(C) || (g[R] = C.toString());
1169
+ s === null ? (u = a === null ? "1em" : a === "auto" ? f : a, d = pn(u, c / f)) : (d = s === "auto" ? c : s, u = a === null ? pn(d, f / c) : a === "auto" ? f : a);
1170
+ const b = {}, w = (A, k) => {
1171
+ No(k) || (b[A] = k.toString());
1172
1172
  };
1173
1173
  w("width", d), w("height", u);
1174
- const F = [t.left, t.top, c, f];
1175
- return g.viewBox = F.join(" "), {
1176
- attributes: g,
1177
- viewBox: F,
1174
+ const P = [t.left, t.top, c, f];
1175
+ return b.viewBox = P.join(" "), {
1176
+ attributes: b,
1177
+ viewBox: P,
1178
1178
  body: i
1179
1179
  };
1180
1180
  }
1181
- const No = /\sid="(\S+)"/g, Wo = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1182
- let Do = 0;
1183
- function Ho(e, l = Wo) {
1181
+ const Do = /\sid="(\S+)"/g, Ho = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1182
+ let Bo = 0;
1183
+ function qo(e, l = Ho) {
1184
1184
  const n = [];
1185
1185
  let o;
1186
- for (; o = No.exec(e); )
1186
+ for (; o = Do.exec(e); )
1187
1187
  n.push(o[1]);
1188
1188
  if (!n.length)
1189
1189
  return e;
1190
1190
  const t = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
1191
1191
  return n.forEach((i) => {
1192
- const s = typeof l == "function" ? l(i) : l + (Do++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1192
+ const s = typeof l == "function" ? l(i) : l + (Bo++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1193
1193
  e = e.replace(
1194
1194
  // Allowed characters before id: [#;"]
1195
1195
  // Allowed characters after id: [)"], .[a-z]
@@ -1198,14 +1198,14 @@ function Ho(e, l = Wo) {
1198
1198
  );
1199
1199
  }), e = e.replace(new RegExp(t, "g"), ""), e;
1200
1200
  }
1201
- const Ft = /* @__PURE__ */ Object.create(null);
1202
- function Bo(e, l) {
1203
- Ft[e] = l;
1201
+ const Pt = /* @__PURE__ */ Object.create(null);
1202
+ function jo(e, l) {
1203
+ Pt[e] = l;
1204
1204
  }
1205
- function Pt(e) {
1206
- return Ft[e] || Ft[""];
1205
+ function _t(e) {
1206
+ return Pt[e] || Pt[""];
1207
1207
  }
1208
- function Ht(e) {
1208
+ function Bt(e) {
1209
1209
  let l;
1210
1210
  if (typeof e.resources == "string")
1211
1211
  l = [e.resources];
@@ -1230,23 +1230,23 @@ function Ht(e) {
1230
1230
  dataAfterTimeout: e.dataAfterTimeout !== !1
1231
1231
  };
1232
1232
  }
1233
- const Bt = /* @__PURE__ */ Object.create(null), Be = [
1233
+ const qt = /* @__PURE__ */ Object.create(null), We = [
1234
1234
  "https://api.simplesvg.com",
1235
1235
  "https://api.unisvg.com"
1236
- ], st = [];
1237
- for (; Be.length > 0; )
1238
- Be.length === 1 || Math.random() > 0.5 ? st.push(Be.shift()) : st.push(Be.pop());
1239
- Bt[""] = Ht({
1240
- resources: ["https://api.iconify.design"].concat(st)
1236
+ ], rt = [];
1237
+ for (; We.length > 0; )
1238
+ We.length === 1 || Math.random() > 0.5 ? rt.push(We.shift()) : rt.push(We.pop());
1239
+ qt[""] = Bt({
1240
+ resources: ["https://api.iconify.design"].concat(rt)
1241
1241
  });
1242
- function qo(e, l) {
1243
- const n = Ht(l);
1244
- return n === null ? !1 : (Bt[e] = n, !0);
1242
+ function Vo(e, l) {
1243
+ const n = Bt(l);
1244
+ return n === null ? !1 : (qt[e] = n, !0);
1245
1245
  }
1246
- function qt(e) {
1247
- return Bt[e];
1246
+ function jt(e) {
1247
+ return qt[e];
1248
1248
  }
1249
- const jo = () => {
1249
+ const Uo = () => {
1250
1250
  let e;
1251
1251
  try {
1252
1252
  if (e = fetch, typeof e == "function")
@@ -1254,9 +1254,9 @@ const jo = () => {
1254
1254
  } catch {
1255
1255
  }
1256
1256
  };
1257
- let hn = jo();
1258
- function Uo(e, l) {
1259
- const n = qt(e);
1257
+ let vn = Uo();
1258
+ function Go(e, l) {
1259
+ const n = jt(e);
1260
1260
  if (!n)
1261
1261
  return 0;
1262
1262
  let o;
@@ -1272,11 +1272,11 @@ function Uo(e, l) {
1272
1272
  }
1273
1273
  return o;
1274
1274
  }
1275
- function Vo(e) {
1275
+ function Ko(e) {
1276
1276
  return e === 404;
1277
1277
  }
1278
- const Go = (e, l, n) => {
1279
- const o = [], t = Uo(e, l), i = "icons";
1278
+ const Qo = (e, l, n) => {
1279
+ const o = [], t = Go(e, l), i = "icons";
1280
1280
  let s = {
1281
1281
  type: i,
1282
1282
  provider: e,
@@ -1292,20 +1292,20 @@ const Go = (e, l, n) => {
1292
1292
  }, a = c.length), s.icons.push(c);
1293
1293
  }), o.push(s), o;
1294
1294
  };
1295
- function Qo(e) {
1295
+ function Xo(e) {
1296
1296
  if (typeof e == "string") {
1297
- const l = qt(e);
1297
+ const l = jt(e);
1298
1298
  if (l)
1299
1299
  return l.path;
1300
1300
  }
1301
1301
  return "/";
1302
1302
  }
1303
- const Ko = (e, l, n) => {
1304
- if (!hn) {
1303
+ const Yo = (e, l, n) => {
1304
+ if (!vn) {
1305
1305
  n("abort", 424);
1306
1306
  return;
1307
1307
  }
1308
- let o = Qo(l.provider);
1308
+ let o = Xo(l.provider);
1309
1309
  switch (l.type) {
1310
1310
  case "icons": {
1311
1311
  const i = l.prefix, a = l.icons.join(","), c = new URLSearchParams({
@@ -1324,11 +1324,11 @@ const Ko = (e, l, n) => {
1324
1324
  return;
1325
1325
  }
1326
1326
  let t = 503;
1327
- hn(e + o).then((i) => {
1327
+ vn(e + o).then((i) => {
1328
1328
  const s = i.status;
1329
1329
  if (s !== 200) {
1330
1330
  setTimeout(() => {
1331
- n(Vo(s) ? "abort" : "next", s);
1331
+ n(Ko(s) ? "abort" : "next", s);
1332
1332
  });
1333
1333
  return;
1334
1334
  }
@@ -1346,11 +1346,11 @@ const Ko = (e, l, n) => {
1346
1346
  }).catch(() => {
1347
1347
  n("next", t);
1348
1348
  });
1349
- }, Xo = {
1350
- prepare: Go,
1351
- send: Ko
1349
+ }, Jo = {
1350
+ prepare: Qo,
1351
+ send: Yo
1352
1352
  };
1353
- function Yo(e) {
1353
+ function Zo(e) {
1354
1354
  const l = {
1355
1355
  loaded: [],
1356
1356
  missing: [],
@@ -1366,7 +1366,7 @@ function Yo(e) {
1366
1366
  if (o.name === t.name && o.prefix === t.prefix && o.provider === t.provider)
1367
1367
  return;
1368
1368
  o = t;
1369
- const i = t.provider, s = t.prefix, a = t.name, c = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), f = c[s] || (c[s] = Ee(i, s));
1369
+ const i = t.provider, s = t.prefix, a = t.name, c = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), f = c[s] || (c[s] = Me(i, s));
1370
1370
  let d;
1371
1371
  a in f.icons ? d = l.loaded : s === "" || f.missing.has(a) ? d = l.missing : d = l.pending;
1372
1372
  const u = {
@@ -1377,13 +1377,13 @@ function Yo(e) {
1377
1377
  d.push(u);
1378
1378
  }), l;
1379
1379
  }
1380
- function Bn(e, l) {
1380
+ function jn(e, l) {
1381
1381
  e.forEach((n) => {
1382
1382
  const o = n.loaderCallbacks;
1383
1383
  o && (n.loaderCallbacks = o.filter((t) => t.id !== l));
1384
1384
  });
1385
1385
  }
1386
- function Jo(e) {
1386
+ function ei(e) {
1387
1387
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
1388
1388
  e.pendingCallbacksFlag = !1;
1389
1389
  const l = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -1412,7 +1412,7 @@ function Jo(e) {
1412
1412
  else
1413
1413
  return n = !0, !0;
1414
1414
  return !1;
1415
- }), s.pending.length !== a && (n || Bn([e], i.id), i.callback(
1415
+ }), s.pending.length !== a && (n || jn([e], i.id), i.callback(
1416
1416
  s.loaded.slice(0),
1417
1417
  s.missing.slice(0),
1418
1418
  s.pending.slice(0),
@@ -1421,9 +1421,9 @@ function Jo(e) {
1421
1421
  });
1422
1422
  }));
1423
1423
  }
1424
- let Zo = 0;
1425
- function ei(e, l, n) {
1426
- const o = Zo++, t = Bn.bind(null, n, o);
1424
+ let ti = 0;
1425
+ function ni(e, l, n) {
1426
+ const o = ti++, t = jn.bind(null, n, o);
1427
1427
  if (!l.pending.length)
1428
1428
  return t;
1429
1429
  const i = {
@@ -1436,14 +1436,14 @@ function ei(e, l, n) {
1436
1436
  (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
1437
1437
  }), t;
1438
1438
  }
1439
- function ti(e, l = !0, n = !1) {
1439
+ function li(e, l = !0, n = !1) {
1440
1440
  const o = [];
1441
1441
  return e.forEach((t) => {
1442
- const i = typeof t == "string" ? vt(t, l, n) : t;
1442
+ const i = typeof t == "string" ? pt(t, l, n) : t;
1443
1443
  i && o.push(i);
1444
1444
  }), o;
1445
1445
  }
1446
- var ni = {
1446
+ var oi = {
1447
1447
  resources: [],
1448
1448
  index: 0,
1449
1449
  timeout: 2e3,
@@ -1451,31 +1451,31 @@ var ni = {
1451
1451
  random: !1,
1452
1452
  dataAfterTimeout: !1
1453
1453
  };
1454
- function li(e, l, n, o) {
1454
+ function ii(e, l, n, o) {
1455
1455
  const t = e.resources.length, i = e.random ? Math.floor(Math.random() * t) : e.index;
1456
1456
  let s;
1457
1457
  if (e.random) {
1458
- let E = e.resources.slice(0);
1459
- for (s = []; E.length > 1; ) {
1460
- const M = Math.floor(Math.random() * E.length);
1461
- s.push(E[M]), E = E.slice(0, M).concat(E.slice(M + 1));
1458
+ let M = e.resources.slice(0);
1459
+ for (s = []; M.length > 1; ) {
1460
+ const T = Math.floor(Math.random() * M.length);
1461
+ s.push(M[T]), M = M.slice(0, T).concat(M.slice(T + 1));
1462
1462
  }
1463
- s = s.concat(E);
1463
+ s = s.concat(M);
1464
1464
  } else
1465
1465
  s = e.resources.slice(i).concat(e.resources.slice(0, i));
1466
1466
  const a = Date.now();
1467
- let c = "pending", f = 0, d, u = null, g = [], w = [];
1467
+ let c = "pending", f = 0, d, u = null, b = [], w = [];
1468
1468
  typeof o == "function" && w.push(o);
1469
- function F() {
1469
+ function P() {
1470
1470
  u && (clearTimeout(u), u = null);
1471
1471
  }
1472
- function R() {
1473
- c === "pending" && (c = "aborted"), F(), g.forEach((E) => {
1474
- E.status === "pending" && (E.status = "aborted");
1475
- }), g = [];
1472
+ function A() {
1473
+ c === "pending" && (c = "aborted"), P(), b.forEach((M) => {
1474
+ M.status === "pending" && (M.status = "aborted");
1475
+ }), b = [];
1476
1476
  }
1477
- function C(E, M) {
1478
- M && (w = []), typeof E == "function" && w.push(E);
1477
+ function k(M, T) {
1478
+ T && (w = []), typeof M == "function" && w.push(M);
1479
1479
  }
1480
1480
  function W() {
1481
1481
  return {
@@ -1483,24 +1483,24 @@ function li(e, l, n, o) {
1483
1483
  payload: l,
1484
1484
  status: c,
1485
1485
  queriesSent: f,
1486
- queriesPending: g.length,
1487
- subscribe: C,
1488
- abort: R
1486
+ queriesPending: b.length,
1487
+ subscribe: k,
1488
+ abort: A
1489
1489
  };
1490
1490
  }
1491
1491
  function j() {
1492
- c = "failed", w.forEach((E) => {
1493
- E(void 0, d);
1492
+ c = "failed", w.forEach((M) => {
1493
+ M(void 0, d);
1494
1494
  });
1495
1495
  }
1496
1496
  function Y() {
1497
- g.forEach((E) => {
1498
- E.status === "pending" && (E.status = "aborted");
1499
- }), g = [];
1497
+ b.forEach((M) => {
1498
+ M.status === "pending" && (M.status = "aborted");
1499
+ }), b = [];
1500
1500
  }
1501
- function N(E, M, q) {
1502
- const J = M !== "success";
1503
- switch (g = g.filter((I) => I !== E), c) {
1501
+ function N(M, T, q) {
1502
+ const J = T !== "success";
1503
+ switch (b = b.filter((O) => O !== M), c) {
1504
1504
  case "pending":
1505
1505
  break;
1506
1506
  case "failed":
@@ -1510,51 +1510,51 @@ function li(e, l, n, o) {
1510
1510
  default:
1511
1511
  return;
1512
1512
  }
1513
- if (M === "abort") {
1513
+ if (T === "abort") {
1514
1514
  d = q, j();
1515
1515
  return;
1516
1516
  }
1517
1517
  if (J) {
1518
- d = q, g.length || (s.length ? te() : j());
1518
+ d = q, b.length || (s.length ? te() : j());
1519
1519
  return;
1520
1520
  }
1521
- if (F(), Y(), !e.random) {
1522
- const I = e.resources.indexOf(E.resource);
1523
- I !== -1 && I !== e.index && (e.index = I);
1521
+ if (P(), Y(), !e.random) {
1522
+ const O = e.resources.indexOf(M.resource);
1523
+ O !== -1 && O !== e.index && (e.index = O);
1524
1524
  }
1525
- c = "completed", w.forEach((I) => {
1526
- I(q);
1525
+ c = "completed", w.forEach((O) => {
1526
+ O(q);
1527
1527
  });
1528
1528
  }
1529
1529
  function te() {
1530
1530
  if (c !== "pending")
1531
1531
  return;
1532
- F();
1533
- const E = s.shift();
1534
- if (E === void 0) {
1535
- if (g.length) {
1532
+ P();
1533
+ const M = s.shift();
1534
+ if (M === void 0) {
1535
+ if (b.length) {
1536
1536
  u = setTimeout(() => {
1537
- F(), c === "pending" && (Y(), j());
1537
+ P(), c === "pending" && (Y(), j());
1538
1538
  }, e.timeout);
1539
1539
  return;
1540
1540
  }
1541
1541
  j();
1542
1542
  return;
1543
1543
  }
1544
- const M = {
1544
+ const T = {
1545
1545
  status: "pending",
1546
- resource: E,
1546
+ resource: M,
1547
1547
  callback: (q, J) => {
1548
- N(M, q, J);
1548
+ N(T, q, J);
1549
1549
  }
1550
1550
  };
1551
- g.push(M), f++, u = setTimeout(te, e.rotate), n(E, l, M.callback);
1551
+ b.push(T), f++, u = setTimeout(te, e.rotate), n(M, l, T.callback);
1552
1552
  }
1553
1553
  return setTimeout(te), W;
1554
1554
  }
1555
- function qn(e) {
1555
+ function Vn(e) {
1556
1556
  const l = {
1557
- ...ni,
1557
+ ...oi,
1558
1558
  ...e
1559
1559
  };
1560
1560
  let n = [];
@@ -1562,12 +1562,12 @@ function qn(e) {
1562
1562
  n = n.filter((a) => a().status === "pending");
1563
1563
  }
1564
1564
  function t(a, c, f) {
1565
- const d = li(
1565
+ const d = ii(
1566
1566
  l,
1567
1567
  a,
1568
1568
  c,
1569
- (u, g) => {
1570
- o(), f && f(u, g);
1569
+ (u, b) => {
1570
+ o(), f && f(u, b);
1571
1571
  }
1572
1572
  );
1573
1573
  return n.push(d), d;
@@ -1585,103 +1585,103 @@ function qn(e) {
1585
1585
  cleanup: o
1586
1586
  };
1587
1587
  }
1588
- function pn() {
1588
+ function mn() {
1589
1589
  }
1590
- const Lt = /* @__PURE__ */ Object.create(null);
1591
- function oi(e) {
1592
- if (!Lt[e]) {
1593
- const l = qt(e);
1590
+ const Mt = /* @__PURE__ */ Object.create(null);
1591
+ function ri(e) {
1592
+ if (!Mt[e]) {
1593
+ const l = jt(e);
1594
1594
  if (!l)
1595
1595
  return;
1596
- const n = qn(l), o = {
1596
+ const n = Vn(l), o = {
1597
1597
  config: l,
1598
1598
  redundancy: n
1599
1599
  };
1600
- Lt[e] = o;
1600
+ Mt[e] = o;
1601
1601
  }
1602
- return Lt[e];
1602
+ return Mt[e];
1603
1603
  }
1604
- function ii(e, l, n) {
1604
+ function si(e, l, n) {
1605
1605
  let o, t;
1606
1606
  if (typeof e == "string") {
1607
- const i = Pt(e);
1607
+ const i = _t(e);
1608
1608
  if (!i)
1609
- return n(void 0, 424), pn;
1609
+ return n(void 0, 424), mn;
1610
1610
  t = i.send;
1611
- const s = oi(e);
1611
+ const s = ri(e);
1612
1612
  s && (o = s.redundancy);
1613
1613
  } else {
1614
- const i = Ht(e);
1614
+ const i = Bt(e);
1615
1615
  if (i) {
1616
- o = qn(i);
1617
- const s = e.resources ? e.resources[0] : "", a = Pt(s);
1616
+ o = Vn(i);
1617
+ const s = e.resources ? e.resources[0] : "", a = _t(s);
1618
1618
  a && (t = a.send);
1619
1619
  }
1620
1620
  }
1621
- return !o || !t ? (n(void 0, 424), pn) : o.query(l, t, n)().abort;
1621
+ return !o || !t ? (n(void 0, 424), mn) : o.query(l, t, n)().abort;
1622
1622
  }
1623
- const vn = "iconify2", Qe = "iconify", jn = Qe + "-count", mn = Qe + "-version", Un = 36e5, ri = 168, si = 50;
1624
- function _t(e, l) {
1623
+ const gn = "iconify2", Ve = "iconify", Un = Ve + "-count", bn = Ve + "-version", Gn = 36e5, ai = 168, ui = 50;
1624
+ function It(e, l) {
1625
1625
  try {
1626
1626
  return e.getItem(l);
1627
1627
  } catch {
1628
1628
  }
1629
1629
  }
1630
- function jt(e, l, n) {
1630
+ function Vt(e, l, n) {
1631
1631
  try {
1632
1632
  return e.setItem(l, n), !0;
1633
1633
  } catch {
1634
1634
  }
1635
1635
  }
1636
- function gn(e, l) {
1636
+ function yn(e, l) {
1637
1637
  try {
1638
1638
  e.removeItem(l);
1639
1639
  } catch {
1640
1640
  }
1641
1641
  }
1642
- function It(e, l) {
1643
- return jt(e, jn, l.toString());
1642
+ function Ot(e, l) {
1643
+ return Vt(e, Un, l.toString());
1644
1644
  }
1645
- function Ot(e) {
1646
- return parseInt(_t(e, jn)) || 0;
1645
+ function $t(e) {
1646
+ return parseInt(It(e, Un)) || 0;
1647
1647
  }
1648
- const gt = {
1648
+ const mt = {
1649
1649
  local: !0,
1650
1650
  session: !0
1651
- }, Vn = {
1651
+ }, Kn = {
1652
1652
  local: /* @__PURE__ */ new Set(),
1653
1653
  session: /* @__PURE__ */ new Set()
1654
1654
  };
1655
1655
  let Ut = !1;
1656
- function ai(e) {
1656
+ function ci(e) {
1657
1657
  Ut = e;
1658
1658
  }
1659
- let ot = typeof window > "u" ? {} : window;
1660
- function Gn(e) {
1659
+ let lt = typeof window > "u" ? {} : window;
1660
+ function Qn(e) {
1661
1661
  const l = e + "Storage";
1662
1662
  try {
1663
- if (ot && ot[l] && typeof ot[l].length == "number")
1664
- return ot[l];
1663
+ if (lt && lt[l] && typeof lt[l].length == "number")
1664
+ return lt[l];
1665
1665
  } catch {
1666
1666
  }
1667
- gt[e] = !1;
1667
+ mt[e] = !1;
1668
1668
  }
1669
- function Qn(e, l) {
1670
- const n = Gn(e);
1669
+ function Xn(e, l) {
1670
+ const n = Qn(e);
1671
1671
  if (!n)
1672
1672
  return;
1673
- const o = _t(n, mn);
1674
- if (o !== vn) {
1673
+ const o = It(n, bn);
1674
+ if (o !== gn) {
1675
1675
  if (o) {
1676
- const a = Ot(n);
1676
+ const a = $t(n);
1677
1677
  for (let c = 0; c < a; c++)
1678
- gn(n, Qe + c.toString());
1678
+ yn(n, Ve + c.toString());
1679
1679
  }
1680
- jt(n, mn, vn), It(n, 0);
1680
+ Vt(n, bn, gn), Ot(n, 0);
1681
1681
  return;
1682
1682
  }
1683
- const t = Math.floor(Date.now() / Un) - ri, i = (a) => {
1684
- const c = Qe + a.toString(), f = _t(n, c);
1683
+ const t = Math.floor(Date.now() / Gn) - ai, i = (a) => {
1684
+ const c = Ve + a.toString(), f = It(n, c);
1685
1685
  if (typeof f == "string") {
1686
1686
  try {
1687
1687
  const d = JSON.parse(f);
@@ -1690,30 +1690,30 @@ function Qn(e, l) {
1690
1690
  return !0;
1691
1691
  } catch {
1692
1692
  }
1693
- gn(n, c);
1693
+ yn(n, c);
1694
1694
  }
1695
1695
  };
1696
- let s = Ot(n);
1696
+ let s = $t(n);
1697
1697
  for (let a = s - 1; a >= 0; a--)
1698
- i(a) || (a === s - 1 ? (s--, It(n, s)) : Vn[e].add(a));
1698
+ i(a) || (a === s - 1 ? (s--, Ot(n, s)) : Kn[e].add(a));
1699
1699
  }
1700
- function Kn() {
1700
+ function Yn() {
1701
1701
  if (!Ut) {
1702
- ai(!0);
1703
- for (const e in gt)
1704
- Qn(e, (l) => {
1705
- const n = l.data, o = l.provider, t = n.prefix, i = Ee(
1702
+ ci(!0);
1703
+ for (const e in mt)
1704
+ Xn(e, (l) => {
1705
+ const n = l.data, o = l.provider, t = n.prefix, i = Me(
1706
1706
  o,
1707
1707
  t
1708
1708
  );
1709
- if (!Dt(i, n).length)
1709
+ if (!Ht(i, n).length)
1710
1710
  return !1;
1711
1711
  const s = n.lastModified || -1;
1712
1712
  return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, s) : s, !0;
1713
1713
  });
1714
1714
  }
1715
1715
  }
1716
- function ui(e, l) {
1716
+ function di(e, l) {
1717
1717
  const n = e.lastModifiedCached;
1718
1718
  if (
1719
1719
  // Matches or newer
@@ -1721,62 +1721,62 @@ function ui(e, l) {
1721
1721
  )
1722
1722
  return n === l;
1723
1723
  if (e.lastModifiedCached = l, n)
1724
- for (const o in gt)
1725
- Qn(o, (t) => {
1724
+ for (const o in mt)
1725
+ Xn(o, (t) => {
1726
1726
  const i = t.data;
1727
1727
  return t.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === l;
1728
1728
  });
1729
1729
  return !0;
1730
1730
  }
1731
- function ci(e, l) {
1732
- Ut || Kn();
1731
+ function fi(e, l) {
1732
+ Ut || Yn();
1733
1733
  function n(o) {
1734
1734
  let t;
1735
- if (!gt[o] || !(t = Gn(o)))
1735
+ if (!mt[o] || !(t = Qn(o)))
1736
1736
  return;
1737
- const i = Vn[o];
1737
+ const i = Kn[o];
1738
1738
  let s;
1739
1739
  if (i.size)
1740
1740
  i.delete(s = Array.from(i).shift());
1741
- else if (s = Ot(t), s >= si || !It(t, s + 1))
1741
+ else if (s = $t(t), s >= ui || !Ot(t, s + 1))
1742
1742
  return;
1743
1743
  const a = {
1744
- cached: Math.floor(Date.now() / Un),
1744
+ cached: Math.floor(Date.now() / Gn),
1745
1745
  provider: e.provider,
1746
1746
  data: l
1747
1747
  };
1748
- return jt(
1748
+ return Vt(
1749
1749
  t,
1750
- Qe + s.toString(),
1750
+ Ve + s.toString(),
1751
1751
  JSON.stringify(a)
1752
1752
  );
1753
1753
  }
1754
- l.lastModified && !ui(e, l.lastModified) || Object.keys(l.icons).length && (l.not_found && (l = Object.assign({}, l), delete l.not_found), n("local") || n("session"));
1754
+ l.lastModified && !di(e, l.lastModified) || Object.keys(l.icons).length && (l.not_found && (l = Object.assign({}, l), delete l.not_found), n("local") || n("session"));
1755
1755
  }
1756
- function bn() {
1756
+ function wn() {
1757
1757
  }
1758
- function di(e) {
1758
+ function hi(e) {
1759
1759
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1760
- e.iconsLoaderFlag = !1, Jo(e);
1760
+ e.iconsLoaderFlag = !1, ei(e);
1761
1761
  }));
1762
1762
  }
1763
- function fi(e, l) {
1763
+ function pi(e, l) {
1764
1764
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(l).sort() : e.iconsToLoad = l, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1765
1765
  e.iconsQueueFlag = !1;
1766
1766
  const { provider: n, prefix: o } = e, t = e.iconsToLoad;
1767
1767
  delete e.iconsToLoad;
1768
1768
  let i;
1769
- if (!t || !(i = Pt(n)))
1769
+ if (!t || !(i = _t(n)))
1770
1770
  return;
1771
1771
  i.prepare(n, o, t).forEach((a) => {
1772
- ii(n, a, (c) => {
1772
+ si(n, a, (c) => {
1773
1773
  if (typeof c != "object")
1774
1774
  a.icons.forEach((f) => {
1775
1775
  e.missing.add(f);
1776
1776
  });
1777
1777
  else
1778
1778
  try {
1779
- const f = Dt(
1779
+ const f = Ht(
1780
1780
  e,
1781
1781
  c
1782
1782
  );
@@ -1785,17 +1785,17 @@ function fi(e, l) {
1785
1785
  const d = e.pendingIcons;
1786
1786
  d && f.forEach((u) => {
1787
1787
  d.delete(u);
1788
- }), ci(e, c);
1788
+ }), fi(e, c);
1789
1789
  } catch (f) {
1790
1790
  console.error(f);
1791
1791
  }
1792
- di(e);
1792
+ hi(e);
1793
1793
  });
1794
1794
  });
1795
1795
  }));
1796
1796
  }
1797
- const hi = (e, l) => {
1798
- const n = ti(e, !0, Wn()), o = Yo(n);
1797
+ const vi = (e, l) => {
1798
+ const n = li(e, !0, Hn()), o = Zo(n);
1799
1799
  if (!o.pending.length) {
1800
1800
  let c = !0;
1801
1801
  return l && setTimeout(() => {
@@ -1803,7 +1803,7 @@ const hi = (e, l) => {
1803
1803
  o.loaded,
1804
1804
  o.missing,
1805
1805
  o.pending,
1806
- bn
1806
+ wn
1807
1807
  );
1808
1808
  }), () => {
1809
1809
  c = !1;
@@ -1815,30 +1815,30 @@ const hi = (e, l) => {
1815
1815
  const { provider: f, prefix: d } = c;
1816
1816
  if (d === a && f === s)
1817
1817
  return;
1818
- s = f, a = d, i.push(Ee(f, d));
1818
+ s = f, a = d, i.push(Me(f, d));
1819
1819
  const u = t[f] || (t[f] = /* @__PURE__ */ Object.create(null));
1820
1820
  u[d] || (u[d] = []);
1821
1821
  }), o.pending.forEach((c) => {
1822
- const { provider: f, prefix: d, name: u } = c, g = Ee(f, d), w = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
1822
+ const { provider: f, prefix: d, name: u } = c, b = Me(f, d), w = b.pendingIcons || (b.pendingIcons = /* @__PURE__ */ new Set());
1823
1823
  w.has(u) || (w.add(u), t[f][d].push(u));
1824
1824
  }), i.forEach((c) => {
1825
1825
  const { provider: f, prefix: d } = c;
1826
- t[f][d].length && fi(c, t[f][d]);
1827
- }), l ? ei(l, o, i) : bn;
1826
+ t[f][d].length && pi(c, t[f][d]);
1827
+ }), l ? ni(l, o, i) : wn;
1828
1828
  };
1829
- function pi(e, l) {
1829
+ function mi(e, l) {
1830
1830
  const n = {
1831
1831
  ...e
1832
1832
  };
1833
1833
  for (const o in l) {
1834
1834
  const t = l[o], i = typeof t;
1835
- o in Dn ? (t === null || t && (i === "string" || i === "number")) && (n[o] = t) : i === typeof n[o] && (n[o] = o === "rotate" ? t % 4 : t);
1835
+ o in Bn ? (t === null || t && (i === "string" || i === "number")) && (n[o] = t) : i === typeof n[o] && (n[o] = o === "rotate" ? t % 4 : t);
1836
1836
  }
1837
1837
  return n;
1838
1838
  }
1839
- const vi = /[\s,]+/;
1840
- function mi(e, l) {
1841
- l.split(vi).forEach((n) => {
1839
+ const gi = /[\s,]+/;
1840
+ function bi(e, l) {
1841
+ l.split(gi).forEach((n) => {
1842
1842
  switch (n.trim()) {
1843
1843
  case "horizontal":
1844
1844
  e.hFlip = !0;
@@ -1849,7 +1849,7 @@ function mi(e, l) {
1849
1849
  }
1850
1850
  });
1851
1851
  }
1852
- function gi(e, l = 0) {
1852
+ function yi(e, l = 0) {
1853
1853
  const n = e.replace(/^-?[0-9.]*/, "");
1854
1854
  function o(t) {
1855
1855
  for (; t < 0; )
@@ -1875,63 +1875,63 @@ function gi(e, l = 0) {
1875
1875
  }
1876
1876
  return l;
1877
1877
  }
1878
- function bi(e, l) {
1878
+ function wi(e, l) {
1879
1879
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1880
1880
  for (const o in l)
1881
1881
  n += " " + o + '="' + l[o] + '"';
1882
1882
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1883
1883
  }
1884
- function yi(e) {
1884
+ function xi(e) {
1885
1885
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1886
1886
  }
1887
- function wi(e) {
1888
- return "data:image/svg+xml," + yi(e);
1887
+ function ki(e) {
1888
+ return "data:image/svg+xml," + xi(e);
1889
1889
  }
1890
- function xi(e) {
1891
- return 'url("' + wi(e) + '")';
1890
+ function Si(e) {
1891
+ return 'url("' + ki(e) + '")';
1892
1892
  }
1893
- const yn = {
1894
- ...Hn,
1893
+ const xn = {
1894
+ ...qn,
1895
1895
  inline: !1
1896
- }, ki = {
1896
+ }, Ci = {
1897
1897
  xmlns: "http://www.w3.org/2000/svg",
1898
1898
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1899
1899
  "aria-hidden": !0,
1900
1900
  role: "img"
1901
- }, Ci = {
1901
+ }, zi = {
1902
1902
  display: "inline-block"
1903
- }, $t = {
1903
+ }, Rt = {
1904
1904
  backgroundColor: "currentColor"
1905
- }, Xn = {
1905
+ }, Jn = {
1906
1906
  backgroundColor: "transparent"
1907
- }, wn = {
1907
+ }, kn = {
1908
1908
  Image: "var(--svg)",
1909
1909
  Repeat: "no-repeat",
1910
1910
  Size: "100% 100%"
1911
- }, xn = {
1912
- webkitMask: $t,
1913
- mask: $t,
1914
- background: Xn
1911
+ }, Sn = {
1912
+ webkitMask: Rt,
1913
+ mask: Rt,
1914
+ background: Jn
1915
1915
  };
1916
- for (const e in xn) {
1917
- const l = xn[e];
1918
- for (const n in wn)
1919
- l[e + n] = wn[n];
1916
+ for (const e in Sn) {
1917
+ const l = Sn[e];
1918
+ for (const n in kn)
1919
+ l[e + n] = kn[n];
1920
1920
  }
1921
- const at = {};
1921
+ const st = {};
1922
1922
  ["horizontal", "vertical"].forEach((e) => {
1923
1923
  const l = e.slice(0, 1) + "Flip";
1924
- at[e + "-flip"] = l, at[e.slice(0, 1) + "-flip"] = l, at[e + "Flip"] = l;
1924
+ st[e + "-flip"] = l, st[e.slice(0, 1) + "-flip"] = l, st[e + "Flip"] = l;
1925
1925
  });
1926
- function kn(e) {
1926
+ function Cn(e) {
1927
1927
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1928
1928
  }
1929
- const Cn = (e, l) => {
1930
- const n = pi(yn, l), o = { ...ki }, t = l.mode || "svg", i = {}, s = l.style, a = typeof s == "object" && !(s instanceof Array) ? s : {};
1931
- for (let R in l) {
1932
- const C = l[R];
1933
- if (C !== void 0)
1934
- switch (R) {
1929
+ const zn = (e, l) => {
1930
+ const n = mi(xn, l), o = { ...Ci }, t = l.mode || "svg", i = {}, s = l.style, a = typeof s == "object" && !(s instanceof Array) ? s : {};
1931
+ for (let A in l) {
1932
+ const k = l[A];
1933
+ if (k !== void 0)
1934
+ switch (A) {
1935
1935
  case "icon":
1936
1936
  case "style":
1937
1937
  case "onLoad":
@@ -1940,55 +1940,55 @@ const Cn = (e, l) => {
1940
1940
  case "inline":
1941
1941
  case "hFlip":
1942
1942
  case "vFlip":
1943
- n[R] = C === !0 || C === "true" || C === 1;
1943
+ n[A] = k === !0 || k === "true" || k === 1;
1944
1944
  break;
1945
1945
  case "flip":
1946
- typeof C == "string" && mi(n, C);
1946
+ typeof k == "string" && bi(n, k);
1947
1947
  break;
1948
1948
  case "color":
1949
- i.color = C;
1949
+ i.color = k;
1950
1950
  break;
1951
1951
  case "rotate":
1952
- typeof C == "string" ? n[R] = gi(C) : typeof C == "number" && (n[R] = C);
1952
+ typeof k == "string" ? n[A] = yi(k) : typeof k == "number" && (n[A] = k);
1953
1953
  break;
1954
1954
  case "ariaHidden":
1955
1955
  case "aria-hidden":
1956
- C !== !0 && C !== "true" && delete o["aria-hidden"];
1956
+ k !== !0 && k !== "true" && delete o["aria-hidden"];
1957
1957
  break;
1958
1958
  default: {
1959
- const W = at[R];
1960
- W ? (C === !0 || C === "true" || C === 1) && (n[W] = !0) : yn[R] === void 0 && (o[R] = C);
1959
+ const W = st[A];
1960
+ W ? (k === !0 || k === "true" || k === 1) && (n[W] = !0) : xn[A] === void 0 && (o[A] = k);
1961
1961
  }
1962
1962
  }
1963
1963
  }
1964
- const c = Ao(e, n), f = c.attributes;
1964
+ const c = Wo(e, n), f = c.attributes;
1965
1965
  if (n.inline && (i.verticalAlign = "-0.125em"), t === "svg") {
1966
1966
  o.style = {
1967
1967
  ...i,
1968
1968
  ...a
1969
1969
  }, Object.assign(o, f);
1970
- let R = 0, C = l.id;
1971
- return typeof C == "string" && (C = C.replace(/-/g, "_")), o.innerHTML = Ho(c.body, C ? () => C + "ID" + R++ : "iconifyVue"), Mt("svg", o);
1970
+ let A = 0, k = l.id;
1971
+ return typeof k == "string" && (k = k.replace(/-/g, "_")), o.innerHTML = qo(c.body, k ? () => k + "ID" + A++ : "iconifyVue"), Et("svg", o);
1972
1972
  }
1973
- const { body: d, width: u, height: g } = e, w = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), F = bi(d, {
1973
+ const { body: d, width: u, height: b } = e, w = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), P = wi(d, {
1974
1974
  ...f,
1975
1975
  width: u + "",
1976
- height: g + ""
1976
+ height: b + ""
1977
1977
  });
1978
1978
  return o.style = {
1979
1979
  ...i,
1980
- "--svg": xi(F),
1981
- width: kn(f.width),
1982
- height: kn(f.height),
1983
- ...Ci,
1984
- ...w ? $t : Xn,
1980
+ "--svg": Si(P),
1981
+ width: Cn(f.width),
1982
+ height: Cn(f.height),
1983
+ ...zi,
1984
+ ...w ? Rt : Jn,
1985
1985
  ...a
1986
- }, Mt("span", o);
1986
+ }, Et("span", o);
1987
1987
  };
1988
- Wn(!0);
1989
- Bo("", Xo);
1988
+ Hn(!0);
1989
+ jo("", Jo);
1990
1990
  if (typeof document < "u" && typeof window < "u") {
1991
- Kn();
1991
+ Yn();
1992
1992
  const e = window;
1993
1993
  if (e.IconifyPreload !== void 0) {
1994
1994
  const l = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
@@ -1997,7 +1997,7 @@ if (typeof document < "u" && typeof window < "u") {
1997
1997
  // Check if item is an object and not null/array
1998
1998
  (typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
1999
1999
  typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
2000
- !Fo(o)) && console.error(n);
2000
+ !_o(o)) && console.error(n);
2001
2001
  } catch {
2002
2002
  console.error(n);
2003
2003
  }
@@ -2012,15 +2012,15 @@ if (typeof document < "u" && typeof window < "u") {
2012
2012
  const t = l[n];
2013
2013
  if (typeof t != "object" || !t || t.resources === void 0)
2014
2014
  continue;
2015
- qo(n, t) || console.error(o);
2015
+ Vo(n, t) || console.error(o);
2016
2016
  } catch {
2017
2017
  console.error(o);
2018
2018
  }
2019
2019
  }
2020
2020
  }
2021
2021
  }
2022
- const Si = {
2023
- ...mt,
2022
+ const Li = {
2023
+ ...vt,
2024
2024
  body: ""
2025
2025
  }, we = ke({
2026
2026
  // Do not inherit other attributes: it is handled by render()
@@ -2055,13 +2055,13 @@ const Si = {
2055
2055
  data: e
2056
2056
  };
2057
2057
  let n;
2058
- if (typeof e != "string" || (n = vt(e, !1, !0)) === null)
2058
+ if (typeof e != "string" || (n = pt(e, !1, !0)) === null)
2059
2059
  return this.abortLoading(), null;
2060
- const o = Mo(n);
2060
+ const o = Fo(n);
2061
2061
  if (!o)
2062
2062
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", o !== null && (this._loadingIcon = {
2063
2063
  name: e,
2064
- abort: hi([n], () => {
2064
+ abort: vi([n], () => {
2065
2065
  this.counter++;
2066
2066
  })
2067
2067
  })), null;
@@ -2075,88 +2075,86 @@ const Si = {
2075
2075
  this.counter;
2076
2076
  const e = this.$attrs, l = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad) : null;
2077
2077
  if (!l)
2078
- return Cn(Si, e);
2078
+ return zn(Li, e);
2079
2079
  let n = e;
2080
2080
  return l.classes && (n = {
2081
2081
  ...e,
2082
2082
  class: (typeof e.class == "string" ? e.class + " " : "") + l.classes.join(" ")
2083
- }), Cn({
2084
- ...mt,
2083
+ }), zn({
2084
+ ...vt,
2085
2085
  ...l.data
2086
2086
  }, n);
2087
2087
  }
2088
- }), zi = {
2088
+ }), Mi = {
2089
2089
  name: "buttonExpand"
2090
- }, Li = /* @__PURE__ */ ke({
2091
- ...zi,
2090
+ }, Ti = /* @__PURE__ */ ke({
2091
+ ...Mi,
2092
2092
  props: {
2093
2093
  item: { default: [] },
2094
- expandedrows: { default: () => [] },
2094
+ expandedrows: { default: () => /* @__PURE__ */ new Map() },
2095
2095
  expandall: { type: Boolean, default: !1 }
2096
2096
  },
2097
2097
  setup(e) {
2098
- const l = e, n = yl(l, "expandedrows"), o = B(!1);
2098
+ const l = e, n = xl(l, "expandedrows"), o = B(!1);
2099
2099
  function t(a) {
2100
2100
  if (l.expandall)
2101
- o.value = !o.value, n.value.forEach((c) => {
2102
- c.isExpanded = o.value;
2101
+ o.value = !o.value, n.value.forEach((c, f) => {
2102
+ n.value.set(f, o.value);
2103
2103
  });
2104
2104
  else {
2105
- const c = n.value.find((f) => f.id == a);
2106
- c ? c.isExpanded = !c.isExpanded : n.value.push({ id: a, isExpanded: !0 });
2105
+ const c = n.value.get(a);
2106
+ n.value.set(a, !c);
2107
2107
  }
2108
2108
  }
2109
2109
  const i = (a) => a._rowIndex !== void 0 ? a._rowIndex : a.id || 0, s = B(-1);
2110
2110
  return ee(() => n.value, () => {
2111
- var a;
2112
- l.expandall && (new Set(n.value.map((c) => c.isExpanded)).size > 1 ? (s.value = -1, o.value = !0) : (a = n.value.at(0)) != null && a.isExpanded ? (s.value = 0, o.value = !0) : (s.value = 1, o.value = !1));
2113
- }, { deep: !0 }), (a, c) => {
2114
- var f;
2115
- return p(), m("button", {
2116
- class: "expandbtn",
2117
- onClick: c[0] || (c[0] = (d) => t(i(a.item)))
2118
- }, [
2119
- ((f = n.value.find((d) => d.id == i(a.item))) == null ? void 0 : f.isExpanded) === !0 ? (p(), m(H, { key: 0 }, [
2120
- l.expandall ? (p(), m(H, { key: 0 }, [
2121
- s.value ? (p(), pe(G(we), {
2122
- key: 0,
2123
- icon: "fluent:chevron-down-up-16-filled"
2124
- })) : (p(), pe(G(we), {
2125
- key: 1,
2126
- icon: "mdi:chevron-down"
2127
- }))
2128
- ], 64)) : (p(), pe(G(we), {
2111
+ if (!l.expandall) return;
2112
+ const a = Array.from(n.value.values());
2113
+ new Set(a).size > 1 ? (s.value = -1, o.value = !0) : a[0] ? (s.value = 0, o.value = !0) : (s.value = 1, o.value = !1);
2114
+ }, { deep: !0 }), (a, c) => (p(), m("button", {
2115
+ class: "expandbtn",
2116
+ onClick: c[0] || (c[0] = (f) => t(i(a.item)))
2117
+ }, [
2118
+ n.value.get(i(a.item)) === !0 ? (p(), m(H, { key: 0 }, [
2119
+ l.expandall ? (p(), m(H, { key: 0 }, [
2120
+ s.value ? (p(), fe(U(we), {
2121
+ key: 0,
2122
+ icon: "fluent:chevron-down-up-16-filled"
2123
+ })) : (p(), fe(U(we), {
2129
2124
  key: 1,
2130
2125
  icon: "mdi:chevron-down"
2131
2126
  }))
2132
- ], 64)) : (p(), m(H, { key: 1 }, [
2133
- l.expandall ? (p(), m(H, { key: 0 }, [
2134
- s.value == -1 ? (p(), pe(G(we), {
2135
- key: 0,
2136
- icon: "ion:chevron-expand"
2137
- })) : s.value == 0 ? (p(), pe(G(we), {
2138
- key: 1,
2139
- icon: "mdi:chevron-down"
2140
- })) : (p(), pe(G(we), {
2141
- key: 2,
2142
- icon: "mdi:chevron-right"
2143
- }))
2144
- ], 64)) : (p(), pe(G(we), {
2127
+ ], 64)) : (p(), fe(U(we), {
2128
+ key: 1,
2129
+ icon: "mdi:chevron-down"
2130
+ }))
2131
+ ], 64)) : (p(), m(H, { key: 1 }, [
2132
+ l.expandall ? (p(), m(H, { key: 0 }, [
2133
+ s.value == -1 ? (p(), fe(U(we), {
2134
+ key: 0,
2135
+ icon: "ion:chevron-expand"
2136
+ })) : s.value == 0 ? (p(), fe(U(we), {
2145
2137
  key: 1,
2138
+ icon: "mdi:chevron-down"
2139
+ })) : (p(), fe(U(we), {
2140
+ key: 2,
2146
2141
  icon: "mdi:chevron-right"
2147
2142
  }))
2148
- ], 64))
2149
- ]);
2150
- };
2143
+ ], 64)) : (p(), fe(U(we), {
2144
+ key: 1,
2145
+ icon: "mdi:chevron-right"
2146
+ }))
2147
+ ], 64))
2148
+ ]));
2151
2149
  }
2152
- }), Ke = (e, l) => {
2150
+ }), Ue = (e, l) => {
2153
2151
  const n = e.__vccOpts || e;
2154
2152
  for (const [o, t] of l)
2155
2153
  n[o] = t;
2156
2154
  return n;
2157
- }, Rt = /* @__PURE__ */ Ke(Li, [["__scopeId", "data-v-42a02e93"]]), Ei = {
2155
+ }, At = /* @__PURE__ */ Ue(Ti, [["__scopeId", "data-v-4d01a2fa"]]), Ei = {
2158
2156
  name: "ButtonRightPanel"
2159
- }, Mi = /* @__PURE__ */ ke({
2157
+ }, Fi = /* @__PURE__ */ ke({
2160
2158
  ...Ei,
2161
2159
  props: {
2162
2160
  item: { default: [] }
@@ -2169,20 +2167,20 @@ const Si = {
2169
2167
  }
2170
2168
  return (i, s) => (p(), m("button", {
2171
2169
  class: "rightpanelbtn",
2172
- onClick: Q(t, ["stop"])
2170
+ onClick: G(t, ["stop"])
2173
2171
  }, [
2174
- le(G(we), { icon: "lucide:plus" })
2172
+ ne(U(we), { icon: "lucide:plus" })
2175
2173
  ]));
2176
2174
  }
2177
- }), Sn = /* @__PURE__ */ Ke(Mi, [["__scopeId", "data-v-d739c6bf"]]), Ti = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" }, Fi = {
2175
+ }), Ln = /* @__PURE__ */ Ue(Fi, [["__scopeId", "data-v-d739c6bf"]]), Pi = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" }, _i = {
2178
2176
  name: "columnFilter"
2179
- }, Pi = /* @__PURE__ */ ke({
2180
- ...Fi,
2177
+ }, Ii = /* @__PURE__ */ ke({
2178
+ ..._i,
2181
2179
  props: ["column", "columnFilterLang"],
2182
2180
  emits: ["close", "filterChange"],
2183
2181
  setup(e, { emit: l }) {
2184
2182
  const n = e, o = l, t = B(null);
2185
- Pl(t, () => {
2183
+ Il(t, () => {
2186
2184
  o("close");
2187
2185
  });
2188
2186
  const i = (s) => {
@@ -2193,131 +2191,131 @@ const Si = {
2193
2191
  ref: t,
2194
2192
  class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"
2195
2193
  }, [
2196
- k("div", Ti, [
2197
- k("button", {
2194
+ S("div", Pi, [
2195
+ S("button", {
2198
2196
  type: "button",
2199
- class: T({ active: n.column.condition === "" }),
2200
- onClick: a[0] || (a[0] = Q((c) => i(""), ["stop"]))
2197
+ class: E({ active: n.column.condition === "" }),
2198
+ onClick: a[0] || (a[0] = G((c) => i(""), ["stop"]))
2201
2199
  }, K((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2202
2200
  n.column.type === "string" ? (p(), m(H, { key: 0 }, [
2203
- k("button", {
2201
+ S("button", {
2204
2202
  type: "button",
2205
- class: T({ active: n.column.condition === "Contains" }),
2206
- onClick: a[1] || (a[1] = Q((c) => i("Contains"), ["stop"]))
2203
+ class: E({ active: n.column.condition === "Contains" }),
2204
+ onClick: a[1] || (a[1] = G((c) => i("Contains"), ["stop"]))
2207
2205
  }, K((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2208
- k("button", {
2206
+ S("button", {
2209
2207
  type: "button",
2210
- class: T({ active: n.column.condition === "NotContains" }),
2211
- onClick: a[2] || (a[2] = Q((c) => i("NotContains"), ["stop"]))
2208
+ class: E({ active: n.column.condition === "NotContains" }),
2209
+ onClick: a[2] || (a[2] = G((c) => i("NotContains"), ["stop"]))
2212
2210
  }, K((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2213
- k("button", {
2211
+ S("button", {
2214
2212
  type: "button",
2215
- class: T({ active: n.column.condition === "Equal" }),
2216
- onClick: a[3] || (a[3] = Q((c) => i("Equal"), ["stop"]))
2213
+ class: E({ active: n.column.condition === "Equal" }),
2214
+ onClick: a[3] || (a[3] = G((c) => i("Equal"), ["stop"]))
2217
2215
  }, K((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
2218
- k("button", {
2216
+ S("button", {
2219
2217
  type: "button",
2220
- class: T({ active: n.column.condition === "NotEqual" }),
2221
- onClick: a[4] || (a[4] = Q((c) => i("NotEqual"), ["stop"]))
2218
+ class: E({ active: n.column.condition === "NotEqual" }),
2219
+ onClick: a[4] || (a[4] = G((c) => i("NotEqual"), ["stop"]))
2222
2220
  }, K((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
2223
- k("button", {
2221
+ S("button", {
2224
2222
  type: "button",
2225
- class: T({ active: n.column.condition === "StartsWith" }),
2226
- onClick: a[5] || (a[5] = Q((c) => i("StartsWith"), ["stop"]))
2223
+ class: E({ active: n.column.condition === "StartsWith" }),
2224
+ onClick: a[5] || (a[5] = G((c) => i("StartsWith"), ["stop"]))
2227
2225
  }, K((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2228
- k("button", {
2226
+ S("button", {
2229
2227
  type: "button",
2230
- class: T({ active: n.column.condition === "EndsWith" }),
2231
- onClick: a[6] || (a[6] = Q((c) => i("EndsWith"), ["stop"]))
2228
+ class: E({ active: n.column.condition === "EndsWith" }),
2229
+ onClick: a[6] || (a[6] = G((c) => i("EndsWith"), ["stop"]))
2232
2230
  }, K((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2233
2231
  ], 64)) : n.column.type === "number" ? (p(), m(H, { key: 1 }, [
2234
- k("button", {
2232
+ S("button", {
2235
2233
  type: "button",
2236
- class: T({ active: n.column.condition === "Equal" }),
2237
- onClick: a[7] || (a[7] = Q((c) => i("Equal"), ["stop"]))
2234
+ class: E({ active: n.column.condition === "Equal" }),
2235
+ onClick: a[7] || (a[7] = G((c) => i("Equal"), ["stop"]))
2238
2236
  }, K((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
2239
- k("button", {
2237
+ S("button", {
2240
2238
  type: "button",
2241
- class: T({ active: n.column.condition === "NotEqual" }),
2242
- onClick: a[8] || (a[8] = Q((c) => i("NotEqual"), ["stop"]))
2239
+ class: E({ active: n.column.condition === "NotEqual" }),
2240
+ onClick: a[8] || (a[8] = G((c) => i("NotEqual"), ["stop"]))
2243
2241
  }, K((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
2244
- k("button", {
2242
+ S("button", {
2245
2243
  type: "button",
2246
- class: T({ active: n.column.condition === "GreaterThan" }),
2247
- onClick: a[9] || (a[9] = Q((c) => i("GreaterThan"), ["stop"]))
2244
+ class: E({ active: n.column.condition === "GreaterThan" }),
2245
+ onClick: a[9] || (a[9] = G((c) => i("GreaterThan"), ["stop"]))
2248
2246
  }, K((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
2249
- k("button", {
2247
+ S("button", {
2250
2248
  type: "button",
2251
- class: T({ active: n.column.condition === "GreaterThanOrEqual" }),
2252
- onClick: a[10] || (a[10] = Q((c) => i("GreaterThanOrEqual"), ["stop"]))
2249
+ class: E({ active: n.column.condition === "GreaterThanOrEqual" }),
2250
+ onClick: a[10] || (a[10] = G((c) => i("GreaterThanOrEqual"), ["stop"]))
2253
2251
  }, K((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual (>=)"), 3),
2254
- k("button", {
2252
+ S("button", {
2255
2253
  type: "button",
2256
- class: T({ active: n.column.condition === "LessThan" }),
2257
- onClick: a[11] || (a[11] = Q((c) => i("LessThan"), ["stop"]))
2254
+ class: E({ active: n.column.condition === "LessThan" }),
2255
+ onClick: a[11] || (a[11] = G((c) => i("LessThan"), ["stop"]))
2258
2256
  }, K((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3),
2259
- k("button", {
2257
+ S("button", {
2260
2258
  type: "button",
2261
- class: T({ active: n.column.condition === "LessThanOrEqual" }),
2262
- onClick: a[12] || (a[12] = Q((c) => i("LessThanOrEqual"), ["stop"]))
2259
+ class: E({ active: n.column.condition === "LessThanOrEqual" }),
2260
+ onClick: a[12] || (a[12] = G((c) => i("LessThanOrEqual"), ["stop"]))
2263
2261
  }, K((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual (<=)"), 3)
2264
2262
  ], 64)) : n.column.type === "date" ? (p(), m(H, { key: 2 }, [
2265
- k("button", {
2263
+ S("button", {
2266
2264
  type: "button",
2267
- class: T({ active: n.column.condition === "Equal" }),
2268
- onClick: a[13] || (a[13] = Q((c) => i("Equal"), ["stop"]))
2265
+ class: E({ active: n.column.condition === "Equal" }),
2266
+ onClick: a[13] || (a[13] = G((c) => i("Equal"), ["stop"]))
2269
2267
  }, K((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
2270
- k("button", {
2268
+ S("button", {
2271
2269
  type: "button",
2272
- class: T({ active: n.column.condition === "NotEqual" }),
2273
- onClick: a[14] || (a[14] = Q((c) => i("NotEqual"), ["stop"]))
2270
+ class: E({ active: n.column.condition === "NotEqual" }),
2271
+ onClick: a[14] || (a[14] = G((c) => i("NotEqual"), ["stop"]))
2274
2272
  }, K((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal (!=)"), 3),
2275
- k("button", {
2273
+ S("button", {
2276
2274
  type: "button",
2277
- class: T({ active: n.column.condition === "GreaterThan" }),
2278
- onClick: a[15] || (a[15] = Q((c) => i("GreaterThan"), ["stop"]))
2275
+ class: E({ active: n.column.condition === "GreaterThan" }),
2276
+ onClick: a[15] || (a[15] = G((c) => i("GreaterThan"), ["stop"]))
2279
2277
  }, K((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
2280
- k("button", {
2278
+ S("button", {
2281
2279
  type: "button",
2282
- class: T({ active: n.column.condition === "LessThan" }),
2283
- onClick: a[16] || (a[16] = Q((c) => i("LessThan"), ["stop"]))
2280
+ class: E({ active: n.column.condition === "LessThan" }),
2281
+ onClick: a[16] || (a[16] = G((c) => i("LessThan"), ["stop"]))
2284
2282
  }, K((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
2285
- ], 64)) : P("", !0),
2286
- k("button", {
2283
+ ], 64)) : _("", !0),
2284
+ S("button", {
2287
2285
  type: "button",
2288
- class: T({ active: n.column.condition === "IsNull" }),
2289
- onClick: a[17] || (a[17] = Q((c) => i("IsNull"), ["stop"]))
2286
+ class: E({ active: n.column.condition === "IsNull" }),
2287
+ onClick: a[17] || (a[17] = G((c) => i("IsNull"), ["stop"]))
2290
2288
  }, K((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2291
- k("button", {
2289
+ S("button", {
2292
2290
  type: "button",
2293
- class: T({ active: n.column.condition === "IsNotNull" }),
2294
- onClick: a[18] || (a[18] = Q((c) => i("IsNotNull"), ["stop"]))
2291
+ class: E({ active: n.column.condition === "IsNotNull" }),
2292
+ onClick: a[18] || (a[18] = G((c) => i("IsNotNull"), ["stop"]))
2295
2293
  }, K((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2296
2294
  ])
2297
2295
  ], 512));
2298
2296
  }
2299
- }), _i = {}, Ii = {
2297
+ }), Oi = {}, $i = {
2300
2298
  version: "1.1",
2301
2299
  viewBox: "0 0 17 12",
2302
2300
  xmlns: "http://www.w3.org/2000/svg"
2303
- }, Oi = /* @__PURE__ */ k("g", {
2301
+ }, Ri = /* @__PURE__ */ S("g", {
2304
2302
  fill: "none",
2305
2303
  "fill-rule": "evenodd"
2306
2304
  }, [
2307
- /* @__PURE__ */ k("g", {
2305
+ /* @__PURE__ */ S("g", {
2308
2306
  transform: "translate(-9 -11)",
2309
2307
  fill: "currentColor",
2310
2308
  "fill-rule": "nonzero"
2311
2309
  }, [
2312
- /* @__PURE__ */ k("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" })
2310
+ /* @__PURE__ */ S("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" })
2313
2311
  ])
2314
- ], -1), $i = [
2315
- Oi
2312
+ ], -1), Ai = [
2313
+ Ri
2316
2314
  ];
2317
- function Ri(e, l) {
2318
- return p(), m("svg", Ii, $i);
2315
+ function Ni(e, l) {
2316
+ return p(), m("svg", $i, Ai);
2319
2317
  }
2320
- const At = /* @__PURE__ */ Ke(_i, [["render", Ri]]), Ai = {}, Ni = {
2318
+ const Nt = /* @__PURE__ */ Ue(Oi, [["render", Ni]]), Wi = {}, Di = {
2321
2319
  viewBox: "0 0 24 24",
2322
2320
  width: "24",
2323
2321
  height: "24",
@@ -2327,18 +2325,18 @@ const At = /* @__PURE__ */ Ke(_i, [["render", Ri]]), Ai = {}, Ni = {
2327
2325
  "stroke-linecap": "round",
2328
2326
  "stroke-linejoin": "round",
2329
2327
  class: "css-i6dzq1"
2330
- }, Wi = /* @__PURE__ */ k("line", {
2328
+ }, Hi = /* @__PURE__ */ S("line", {
2331
2329
  x1: "5",
2332
2330
  y1: "12",
2333
2331
  x2: "19",
2334
2332
  y2: "12"
2335
- }, null, -1), Di = [
2336
- Wi
2333
+ }, null, -1), Bi = [
2334
+ Hi
2337
2335
  ];
2338
- function Hi(e, l) {
2339
- return p(), m("svg", Ni, Di);
2336
+ function qi(e, l) {
2337
+ return p(), m("svg", Di, Bi);
2340
2338
  }
2341
- const Bi = /* @__PURE__ */ Ke(Ai, [["render", Hi]]), qi = {}, ji = {
2339
+ const ji = /* @__PURE__ */ Ue(Wi, [["render", qi]]), Vi = {}, Ui = {
2342
2340
  viewBox: "0 0 24 24",
2343
2341
  width: "24",
2344
2342
  height: "24",
@@ -2348,28 +2346,28 @@ const Bi = /* @__PURE__ */ Ke(Ai, [["render", Hi]]), qi = {}, ji = {
2348
2346
  "stroke-linecap": "round",
2349
2347
  "stroke-linejoin": "round",
2350
2348
  class: "css-i6dzq1"
2351
- }, Ui = /* @__PURE__ */ k("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), Vi = [
2352
- Ui
2349
+ }, Gi = /* @__PURE__ */ S("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), Ki = [
2350
+ Gi
2353
2351
  ];
2354
- function Gi(e, l) {
2355
- return p(), m("svg", ji, Vi);
2352
+ function Qi(e, l) {
2353
+ return p(), m("svg", Ui, Ki);
2356
2354
  }
2357
- const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi = { class: "bh-checkbox" }, Yi = ["onClick"], Ji = {
2355
+ const Xi = /* @__PURE__ */ Ue(Vi, [["render", Qi]]), Yi = { key: "hdrrow" }, Ji = { class: "bh-checkbox" }, Zi = ["onClick"], er = {
2358
2356
  width: "16",
2359
2357
  height: "16",
2360
2358
  viewBox: "0 0 14 14",
2361
2359
  fill: "none"
2362
- }, Zi = {
2360
+ }, tr = {
2363
2361
  key: 0,
2364
2362
  class: "bh-filter bh-relative"
2365
- }, er = ["onUpdate:modelValue"], tr = ["onUpdate:modelValue"], nr = ["onUpdate:modelValue"], lr = ["onUpdate:modelValue"], or = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), ir = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), rr = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), sr = [
2366
- or,
2367
- ir,
2368
- rr
2369
- ], ar = ["onClick"], ur = {
2363
+ }, nr = ["onUpdate:modelValue"], lr = ["onUpdate:modelValue"], or = ["onUpdate:modelValue"], ir = ["onUpdate:modelValue"], rr = /* @__PURE__ */ S("option", { value: void 0 }, "All", -1), sr = /* @__PURE__ */ S("option", { value: !0 }, "True", -1), ar = /* @__PURE__ */ S("option", { value: !1 }, "False", -1), ur = [
2364
+ rr,
2365
+ sr,
2366
+ ar
2367
+ ], cr = ["onClick"], dr = {
2370
2368
  name: "columnHeader"
2371
- }, it = /* @__PURE__ */ ke({
2372
- ...ur,
2369
+ }, ot = /* @__PURE__ */ ke({
2370
+ ...dr,
2373
2371
  props: [
2374
2372
  "all",
2375
2373
  "expandedrows",
@@ -2387,21 +2385,21 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2387
2385
  "toggleFilterMenu"
2388
2386
  ],
2389
2387
  setup(e, { emit: l }) {
2390
- const n = B(null), o = e, t = l, i = B({}), s = X(() => {
2388
+ const n = B(null), o = e, t = l, i = B({}), s = Q(() => {
2391
2389
  var d;
2392
2390
  const f = /* @__PURE__ */ new Map();
2393
2391
  return (d = o.all) != null && d.columns && o.all.columns.forEach((u) => {
2394
2392
  u.field && f.set(u.field, u);
2395
2393
  }), f;
2396
2394
  });
2397
- Me(() => {
2395
+ Te(() => {
2398
2396
  var f;
2399
2397
  (f = o.all) != null && f.columns && o.all.columns.forEach((d) => {
2400
- d.filter && d.field && (i.value[d.field] = d.value || "", Fl(
2398
+ d.filter && d.field && (i.value[d.field] = d.value || "", _l(
2401
2399
  () => i.value[d.field],
2402
2400
  (u) => {
2403
- const g = s.value.get(d.field);
2404
- g && (g.type === "string" || g.type === "String" ? g.value = typeof u == "string" ? u.trim() : u : g.value = u, t("filterChange"));
2401
+ const b = s.value.get(d.field);
2402
+ b && (b.type === "string" || b.type === "String" ? b.value = typeof u == "string" ? u.trim() : u : b.value = u, t("filterChange"));
2405
2403
  },
2406
2404
  { debounce: 300 }
2407
2405
  ));
@@ -2414,58 +2412,58 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2414
2412
  const d = i.value[f.field];
2415
2413
  return d !== "" && d !== null && d !== void 0;
2416
2414
  };
2417
- return (f, d) => (p(), m("tr", Ki, [
2415
+ return (f, d) => (p(), m("tr", Yi, [
2418
2416
  o.all.hasCheckbox ? (p(), m("th", {
2419
2417
  key: "chkall",
2420
2418
  style: V({ width: o.all.checkboxColumnWidth + " !important", minWidth: o.all.checkboxColumnWidth + " !important" }),
2421
- class: T({
2419
+ class: E({
2422
2420
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2423
2421
  "bh-top-0": o.all.stickyHeader,
2424
2422
  "bh-left-0": o.all.stickyFirstColumn
2425
2423
  })
2426
2424
  }, [
2427
- k("div", Xi, [
2428
- k("input", {
2425
+ S("div", Ji, [
2426
+ S("input", {
2429
2427
  ref_key: "selectedAll",
2430
2428
  ref: n,
2431
2429
  type: "checkbox",
2432
- onClick: d[0] || (d[0] = Q((u) => {
2433
- var g;
2434
- return t("selectAll", (g = u == null ? void 0 : u.target) == null ? void 0 : g.checked);
2430
+ onClick: d[0] || (d[0] = G((u) => {
2431
+ var b;
2432
+ return t("selectAll", (b = u == null ? void 0 : u.target) == null ? void 0 : b.checked);
2435
2433
  }, ["stop"]))
2436
2434
  }, null, 512),
2437
- k("div", null, [
2438
- le(At, { class: "check" }),
2439
- le(Bi, { class: "intermediate" })
2435
+ S("div", null, [
2436
+ ne(Nt, { class: "check" }),
2437
+ ne(ji, { class: "intermediate" })
2440
2438
  ])
2441
2439
  ])
2442
- ], 6)) : P("", !0),
2440
+ ], 6)) : _("", !0),
2443
2441
  o.all.hasRightPanel ? (p(), m("th", {
2444
2442
  key: 1,
2445
2443
  style: V({ width: o.all.rightPanelColumnWidth + " !important", minWidth: o.all.rightPanelColumnWidth + " !important" }),
2446
- class: T({
2444
+ class: E({
2447
2445
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2448
2446
  "bh-top-0": o.all.stickyHeader,
2449
2447
  "bh-left-0": o.all.stickyFirstColumn
2450
2448
  })
2451
- }, null, 6)) : P("", !0),
2449
+ }, null, 6)) : _("", !0),
2452
2450
  o.all.hasSubtable ? (p(), m("th", {
2453
2451
  key: 2,
2454
2452
  style: V({ width: o.all.subtableColumnWidth + " !important", minWidth: o.all.subtableColumnWidth + " !important" })
2455
2453
  }, [
2456
- o.all.expandall ? (p(), pe(Rt, {
2454
+ o.all.expandall ? (p(), fe(At, {
2457
2455
  key: 0,
2458
2456
  expandedrows: o.expandedrows,
2459
2457
  expandall: o.all.expandall
2460
- }, null, 8, ["expandedrows", "expandall"])) : P("", !0)
2461
- ], 4)) : P("", !0),
2462
- (p(!0), m(H, null, ue(o.all.columns, (u, g) => (p(), m(H, null, [
2463
- u.hide ? P("", !0) : (p(), m("th", {
2458
+ }, null, 8, ["expandedrows", "expandall"])) : _("", !0)
2459
+ ], 4)) : _("", !0),
2460
+ (p(!0), m(H, null, se(o.all.columns, (u, b) => (p(), m(H, null, [
2461
+ u.hide ? _("", !0) : (p(), m("th", {
2464
2462
  key: u.field,
2465
- class: T(["bh-select-none bh-z-[1]", [
2463
+ class: E(["bh-select-none bh-z-[1]", [
2466
2464
  o.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2467
- g === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2468
- o.all.hasCheckbox && g === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2465
+ b === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2466
+ o.all.hasCheckbox && b === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2469
2467
  ]]),
2470
2468
  style: V({
2471
2469
  width: u.width,
@@ -2473,173 +2471,176 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2473
2471
  "max-width": u.maxWidth
2474
2472
  })
2475
2473
  }, [
2476
- k("div", {
2477
- class: T(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2474
+ S("div", {
2475
+ class: E(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2478
2476
  onClick: (w) => o.all.sortable && u.sort && t("sortChange", u.field)
2479
2477
  }, [
2480
- qe(K(u.title) + " ", 1),
2478
+ De(K(u.title) + " ", 1),
2481
2479
  o.all.sortable && u.sort ? (p(), m("span", {
2482
2480
  key: 0,
2483
- class: T(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2481
+ class: E(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2484
2482
  }, [
2485
- (p(), m("svg", Ji, [
2486
- k("polygon", {
2483
+ (p(), m("svg", er, [
2484
+ S("polygon", {
2487
2485
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2488
2486
  fill: "currentColor",
2489
- class: T(["bh-text-black/20", [
2487
+ class: E(["bh-text-black/20", [
2490
2488
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2491
2489
  ]])
2492
2490
  }, null, 2),
2493
- k("polygon", {
2491
+ S("polygon", {
2494
2492
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2495
2493
  fill: "currentColor",
2496
- class: T(["bh-text-black/20", [
2494
+ class: E(["bh-text-black/20", [
2497
2495
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2498
2496
  ]])
2499
2497
  }, null, 2)
2500
2498
  ]))
2501
- ], 2)) : P("", !0)
2502
- ], 10, Yi),
2499
+ ], 2)) : _("", !0)
2500
+ ], 10, Zi),
2503
2501
  o.all.columnFilter && !o.isFooter ? (p(), m(H, { key: 0 }, [
2504
- u.filter ? (p(), m("div", Zi, [
2505
- u.type === "string" || u.type === "String" ? ge((p(), m("input", {
2502
+ u.filter ? (p(), m("div", tr, [
2503
+ u.type === "string" || u.type === "String" ? ve((p(), m("input", {
2506
2504
  key: 0,
2507
2505
  "onUpdate:modelValue": (w) => i.value[u.field] = w,
2508
2506
  type: "text",
2509
2507
  class: "bh-form-control"
2510
- }, null, 8, er)), [
2511
- [xt, i.value[u.field]]
2512
- ]) : P("", !0),
2513
- u.type === "number" || u.type === "integer" || u.type === "Integer" ? ge((p(), m("input", {
2508
+ }, null, 8, nr)), [
2509
+ [kt, i.value[u.field]]
2510
+ ]) : _("", !0),
2511
+ u.type === "number" || u.type === "integer" || u.type === "Integer" ? ve((p(), m("input", {
2514
2512
  key: 1,
2515
2513
  "onUpdate:modelValue": (w) => i.value[u.field] = w,
2516
2514
  type: "number",
2517
2515
  class: "bh-form-control"
2518
- }, null, 8, tr)), [
2516
+ }, null, 8, lr)), [
2519
2517
  [
2520
- xt,
2518
+ kt,
2521
2519
  i.value[u.field],
2522
2520
  void 0,
2523
2521
  { number: !0 }
2524
2522
  ]
2525
- ]) : u.type === "date" || u.type === "DateTime" ? ge((p(), m("input", {
2523
+ ]) : u.type === "date" || u.type === "DateTime" ? ve((p(), m("input", {
2526
2524
  key: 2,
2527
2525
  "onUpdate:modelValue": (w) => i.value[u.field] = w,
2528
2526
  type: "date",
2529
2527
  class: "bh-form-control"
2530
- }, null, 8, nr)), [
2531
- [xt, i.value[u.field]]
2532
- ]) : u.type === "bool" ? ge((p(), m("select", {
2528
+ }, null, 8, or)), [
2529
+ [kt, i.value[u.field]]
2530
+ ]) : u.type === "bool" ? ve((p(), m("select", {
2533
2531
  key: 3,
2534
2532
  "onUpdate:modelValue": (w) => i.value[u.field] = w,
2535
2533
  class: "bh-form-control",
2536
2534
  onClick: d[1] || (d[1] = //@ts-ignore
2537
2535
  (...w) => o.isOpenFilter && o.isOpenFilter(...w))
2538
- }, sr, 8, lr)), [
2536
+ }, ur, 8, ir)), [
2539
2537
  [En, i.value[u.field]]
2540
- ]) : P("", !0),
2538
+ ]) : _("", !0),
2541
2539
  u.type !== "bool" ? (p(), m("button", {
2542
2540
  key: 4,
2543
2541
  type: "button",
2544
- onClick: Q((w) => t("toggleFilterMenu", u), ["stop"]),
2545
- class: T({
2542
+ onClick: G((w) => t("toggleFilterMenu", u), ["stop"]),
2543
+ class: E({
2546
2544
  "!bh-bg-primary/10 !bh-border-primary": c(u),
2547
2545
  "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !c(u)
2548
2546
  })
2549
2547
  }, [
2550
- le(Qi, {
2551
- class: T(["bh-w-4", {
2548
+ ne(Xi, {
2549
+ class: E(["bh-w-4", {
2552
2550
  "bh-text-primary": c(u),
2553
2551
  "bh-text-black/70 dark:bh-text-gray-300": !c(u)
2554
2552
  }])
2555
2553
  }, null, 8, ["class"])
2556
- ], 10, ar)) : P("", !0),
2557
- ge(le(Pi, {
2554
+ ], 10, cr)) : _("", !0),
2555
+ ve(ne(Ii, {
2558
2556
  column: u,
2559
2557
  type: u.type,
2560
2558
  columnFilterLang: o.columnFilterLang,
2561
2559
  onClose: d[2] || (d[2] = (w) => t("toggleFilterMenu", null)),
2562
2560
  onFilterChange: d[3] || (d[3] = (w) => t("filterChange"))
2563
2561
  }, null, 8, ["column", "type", "columnFilterLang"]), [
2564
- [Et, o.isOpenFilter === u.field]
2562
+ [Tt, o.isOpenFilter === u.field]
2565
2563
  ])
2566
- ])) : P("", !0)
2567
- ], 64)) : P("", !0)
2564
+ ])) : _("", !0)
2565
+ ], 64)) : _("", !0)
2568
2566
  ], 6))
2569
2567
  ], 64))), 256))
2570
2568
  ]));
2571
2569
  }
2572
- }), cr = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, dr = { class: "bh-flex bh-h-full" }, fr = /* @__PURE__ */ k("span", null, "##Left Menu Slot##", -1), hr = { 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" }, pr = /* @__PURE__ */ k("path", {
2570
+ }), fr = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, hr = { class: "bh-flex bh-h-full" }, pr = /* @__PURE__ */ S("span", null, "##Left Menu Slot##", -1), vr = {
2571
+ key: 0,
2572
+ 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"
2573
+ }, mr = /* @__PURE__ */ S("path", {
2573
2574
  d: "M7 1L1 6L7 11",
2574
2575
  stroke: "currentColor",
2575
2576
  "stroke-width": "2",
2576
2577
  "stroke-linecap": "round",
2577
2578
  "stroke-linejoin": "round"
2578
- }, null, -1), vr = [
2579
- pr
2580
- ], mr = {
2579
+ }, null, -1), gr = [
2580
+ mr
2581
+ ], br = {
2581
2582
  class: "bh-flex-1",
2582
2583
  style: { overflow: "auto", "min-width": "0", width: "100%" }
2583
- }, gr = /* @__PURE__ */ k("span", null, "##Top Menu Slot##", -1), br = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), yr = /* @__PURE__ */ k("span", null, "##Table Action Header Slot##", -1), wr = ["onClick"], xr = { class: "bh-checkbox" }, kr = ["value"], Cr = ["innerHTML"], Sr = ["onClick"], zr = ["colspan"], Lr = ["colspan"], Er = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Mr = [
2584
+ }, yr = /* @__PURE__ */ S("span", null, "##Top Menu Slot##", -1), wr = /* @__PURE__ */ S("span", null, "##Table Header Area Slot##", -1), xr = /* @__PURE__ */ S("span", null, "##Table Action Header Slot##", -1), kr = ["onClick"], Sr = { class: "bh-checkbox" }, Cr = ["value"], zr = ["innerHTML"], Lr = ["onClick"], Mr = ["colspan"], Tr = ["colspan"], Er = /* @__PURE__ */ S("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Fr = [
2584
2585
  Er
2585
- ], Tr = ["colspan"], Fr = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Pr = ["onClick"], _r = { class: "bh-checkbox" }, Ir = ["value"], Or = ["innerHTML"], $r = ["onClick"], Rr = ["colspan"], Ar = ["colspan"], Nr = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Wr = [
2586
- Nr
2587
- ], Dr = ["colspan"], Hr = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Br = { class: "bh-pagination-info bh-flex bh-items-center" }, qr = { class: "bh-mr-2" }, jr = ["value"], Ur = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Vr = ["innerHTML"], Gr = {
2586
+ ], Pr = ["colspan"], _r = /* @__PURE__ */ S("span", null, "##Table Header Area Slot##", -1), Ir = ["onClick"], Or = { class: "bh-checkbox" }, $r = ["value"], Rr = ["innerHTML"], Ar = ["onClick"], Nr = ["colspan"], Wr = ["colspan"], Dr = /* @__PURE__ */ S("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Hr = [
2587
+ Dr
2588
+ ], Br = ["colspan"], qr = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, jr = { class: "bh-pagination-info bh-flex bh-items-center" }, Vr = { class: "bh-mr-2" }, Ur = ["value"], Gr = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Kr = ["innerHTML"], Qr = {
2588
2589
  key: 1,
2589
2590
  "aria-hidden": "true",
2590
2591
  width: "14",
2591
2592
  height: "14",
2592
2593
  viewBox: "0 0 16 16"
2593
- }, Qr = /* @__PURE__ */ k("g", {
2594
+ }, Xr = /* @__PURE__ */ S("g", {
2594
2595
  fill: "currentColor",
2595
2596
  "fill-rule": "evenodd"
2596
2597
  }, [
2597
- /* @__PURE__ */ k("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" }),
2598
- /* @__PURE__ */ k("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" })
2599
- ], -1), Kr = [
2600
- Qr
2601
- ], Xr = ["innerHTML"], Yr = {
2598
+ /* @__PURE__ */ S("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" }),
2599
+ /* @__PURE__ */ S("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" })
2600
+ ], -1), Yr = [
2601
+ Xr
2602
+ ], Jr = ["innerHTML"], Zr = {
2602
2603
  key: 1,
2603
2604
  "aria-hidden": "true",
2604
2605
  width: "14",
2605
2606
  height: "14",
2606
2607
  viewBox: "0 0 16 16"
2607
- }, Jr = /* @__PURE__ */ k("path", {
2608
+ }, es = /* @__PURE__ */ S("path", {
2608
2609
  fill: "currentColor",
2609
2610
  "fill-rule": "evenodd",
2610
2611
  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"
2611
- }, null, -1), Zr = [
2612
- Jr
2613
- ], es = ["onClick"], ts = ["innerHTML"], ns = {
2612
+ }, null, -1), ts = [
2613
+ es
2614
+ ], ns = ["onClick"], ls = ["innerHTML"], os = {
2614
2615
  key: 1,
2615
2616
  "aria-hidden": "true",
2616
2617
  width: "14",
2617
2618
  height: "14",
2618
2619
  viewBox: "0 0 16 16"
2619
- }, ls = /* @__PURE__ */ k("path", {
2620
+ }, is = /* @__PURE__ */ S("path", {
2620
2621
  fill: "currentColor",
2621
2622
  "fill-rule": "evenodd",
2622
2623
  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"
2623
- }, null, -1), os = [
2624
- ls
2625
- ], is = ["innerHTML"], rs = {
2624
+ }, null, -1), rs = [
2625
+ is
2626
+ ], ss = ["innerHTML"], as = {
2626
2627
  key: 1,
2627
2628
  "aria-hidden": "true",
2628
2629
  width: "14",
2629
2630
  height: "14",
2630
2631
  viewBox: "0 0 16 16"
2631
- }, ss = /* @__PURE__ */ k("g", {
2632
+ }, us = /* @__PURE__ */ S("g", {
2632
2633
  fill: "currentColor",
2633
2634
  "fill-rule": "evenodd"
2634
2635
  }, [
2635
- /* @__PURE__ */ k("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" }),
2636
- /* @__PURE__ */ k("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" })
2637
- ], -1), as = [
2638
- ss
2639
- ], us = {
2636
+ /* @__PURE__ */ S("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" }),
2637
+ /* @__PURE__ */ S("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" })
2638
+ ], -1), cs = [
2639
+ us
2640
+ ], ds = {
2640
2641
  name: "Vue3Datatable"
2641
- }, fs = /* @__PURE__ */ ke({
2642
- ...us,
2642
+ }, ps = /* @__PURE__ */ ke({
2643
+ ...ds,
2643
2644
  props: {
2644
2645
  loading: { type: Boolean, default: !1 },
2645
2646
  isServerMode: { type: Boolean, default: !1 },
@@ -2698,6 +2699,7 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2698
2699
  headerAreaHeight: { default: "80px" },
2699
2700
  leftmenuMinWidth: { default: 50 },
2700
2701
  leftmenuDefaultWidth: { default: 250 },
2702
+ showResizeButton: { type: Boolean, default: !1 },
2701
2703
  topmenusize: {},
2702
2704
  topmenumax: {},
2703
2705
  topmenumin: {},
@@ -2724,235 +2726,244 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2724
2726
  "rowRightPanelClick"
2725
2727
  ],
2726
2728
  setup(e, { expose: l, emit: n }) {
2727
- var Qt, Kt;
2728
- const o = zn(), t = e;
2729
+ var Xt, Yt;
2730
+ const o = Mn(), t = e;
2729
2731
  for (const r of t.columns || []) {
2730
- const v = ((Qt = r.type) == null ? void 0 : Qt.toLowerCase()) || "string";
2732
+ const v = ((Xt = r.type) == null ? void 0 : Xt.toLowerCase()) || "string";
2731
2733
  r.type = v, r.isUnique = r.isUnique !== void 0 ? r.isUnique : !1, r.hide = r.hide !== void 0 ? r.hide : !1, r.filter = r.filter !== void 0 ? r.filter : !0, r.search = r.search !== void 0 ? r.search : !0, r.sort = r.sort !== void 0 ? r.sort : !0, r.html = r.html !== void 0 ? r.html : !1, r.condition = !v || v === "string" ? "Contains" : "Equal";
2732
2734
  }
2733
2735
  const i = B([]), s = B(t.page), a = B(
2734
- t.pagination ? t.pageSize : (Kt = t.rows) == null ? void 0 : Kt.length
2735
- ), c = t.pageSize, f = B(t.sortColumn), d = t.sortColumn, u = B(t.sortDirection), g = t.sortDirection, w = B(t.totalRows), F = B([]), R = B(null), C = B(t.loading), W = B(t.search);
2736
+ t.pagination ? t.pageSize : (Yt = t.rows) == null ? void 0 : Yt.length
2737
+ ), c = t.pageSize, f = B(t.sortColumn), d = t.sortColumn, u = B(t.sortDirection), b = t.sortDirection, w = B(t.totalRows), P = B([]), A = B(null), k = B(t.loading), W = B(t.search);
2736
2738
  JSON.parse(JSON.stringify(t.columns));
2737
2739
  const j = B(null), Y = B(null);
2738
2740
  let N = B(0);
2739
- const te = B(230), E = B(t.leftmenuDefaultWidth), M = B(!1), q = B(null), J = /* @__PURE__ */ new Map(), I = (r, v) => {
2741
+ const te = B(230), M = B(t.leftmenuDefaultWidth), T = B(!1), q = B(null), J = /* @__PURE__ */ new Map(), O = (r, v) => {
2740
2742
  if (!v) return;
2741
- const b = `${r.id || JSON.stringify(r)}-${v}`;
2742
- if (J.has(b))
2743
- return J.get(b);
2744
- const A = v.split(".").reduce((U, $) => U == null ? void 0 : U[$], r);
2745
- return J.set(b, A), A;
2743
+ const g = `${r.id || JSON.stringify(r)}-${v}`;
2744
+ if (J.has(g))
2745
+ return J.get(g);
2746
+ const R = v.split(".").reduce((F, le) => F == null ? void 0 : F[le], r);
2747
+ return J.set(g, R), R;
2746
2748
  };
2747
2749
  ee(() => t.rows, () => {
2748
2750
  J.clear();
2749
2751
  }, { deep: !1 });
2750
- const oe = X(() => {
2752
+ const re = Q(() => {
2751
2753
  const r = t.columns.find((v) => v.isUnique);
2752
2754
  return (r == null ? void 0 : r.field) || null;
2753
- }), Te = X(() => i.value.map(
2754
- (r, v) => oe.value ? r[oe.value] : v
2755
- )), Fe = X(() => typeof t.rowClass == "function"), Ce = X(() => typeof t.cellClass == "function"), Ae = /* @__PURE__ */ new Map(), Pe = (r) => {
2755
+ }), me = Q(() => re.value ? new Map(i.value.map((r, v) => [v, r[re.value]])) : null), Ee = (r) => {
2756
+ var v;
2757
+ return re.value ? ((v = me.value) == null ? void 0 : v.get(r)) ?? r : r;
2758
+ }, Oe = (r, v) => {
2759
+ const g = r._rowIndex !== void 0 ? r._rowIndex : r.id || v;
2760
+ return ae.value.get(g) === !0;
2761
+ }, Fe = Q(() => typeof t.rowClass == "function"), ge = Q(() => typeof t.cellClass == "function"), $e = /* @__PURE__ */ new Map(), gt = (r) => {
2756
2762
  const v = r ? "numeric" : "string";
2757
- return Ae.has(v) || Ae.set(v, new Intl.Collator(void 0, {
2763
+ return $e.has(v) || $e.set(v, new Intl.Collator(void 0, {
2758
2764
  numeric: r,
2759
2765
  sensitivity: "base"
2760
- })), Ae.get(v);
2761
- }, Xe = X(() => {
2762
- var A, U, $;
2766
+ })), $e.get(v);
2767
+ }, Ge = Q(() => {
2768
+ var R, F, le;
2763
2769
  let r = t.rows || [];
2764
2770
  if (!t.isServerMode) {
2765
- if ((A = t.columns) == null || A.forEach((y) => {
2766
- y.filter && (y.value !== void 0 && y.value !== null && y.value !== "" || y.condition === "IsNull" || y.condition == "IsNotNull") && (y.type === "string" ? (y.value && !y.condition && (y.condition = "Contains"), y.condition === "Contains" ? r = r.filter((_) => {
2771
+ if ((R = t.columns) == null || R.forEach((y) => {
2772
+ y.filter && (y.value !== void 0 && y.value !== null && y.value !== "" || y.condition === "IsNull" || y.condition == "IsNotNull") && (y.type === "string" ? (y.value && !y.condition && (y.condition = "Contains"), y.condition === "Contains" ? r = r.filter((I) => {
2767
2773
  var Z;
2768
- return (Z = I(_, y.field)) == null ? void 0 : Z.toString().toLowerCase().includes(y.value.toLowerCase());
2769
- }) : y.condition === "NotContains" ? r = r.filter((_) => {
2774
+ return (Z = O(I, y.field)) == null ? void 0 : Z.toString().toLowerCase().includes(y.value.toLowerCase());
2775
+ }) : y.condition === "NotContains" ? r = r.filter((I) => {
2770
2776
  var Z;
2771
- return !((Z = I(_, y.field)) != null && Z.toString().toLowerCase().includes(y.value.toLowerCase()));
2772
- }) : y.condition === "Equal" ? r = r.filter((_) => {
2777
+ return !((Z = O(I, y.field)) != null && Z.toString().toLowerCase().includes(y.value.toLowerCase()));
2778
+ }) : y.condition === "Equal" ? r = r.filter((I) => {
2773
2779
  var Z;
2774
- return ((Z = I(_, y.field)) == null ? void 0 : Z.toString().toLowerCase()) === y.value.toLowerCase();
2775
- }) : y.condition === "NotEqual" ? r = r.filter((_) => {
2780
+ return ((Z = O(I, y.field)) == null ? void 0 : Z.toString().toLowerCase()) === y.value.toLowerCase();
2781
+ }) : y.condition === "NotEqual" ? r = r.filter((I) => {
2776
2782
  var Z;
2777
- return ((Z = I(_, y.field)) == null ? void 0 : Z.toString().toLowerCase()) !== y.value.toLowerCase();
2778
- }) : y.condition == "StartsWith" ? r = r.filter((_) => {
2783
+ return ((Z = O(I, y.field)) == null ? void 0 : Z.toString().toLowerCase()) !== y.value.toLowerCase();
2784
+ }) : y.condition == "StartsWith" ? r = r.filter((I) => {
2779
2785
  var Z;
2780
- return ((Z = I(_, y.field)) == null ? void 0 : Z.toString().toLowerCase().indexOf(y.value.toLowerCase())) === 0;
2781
- }) : y.condition == "EndsWith" && (r = r.filter((_) => {
2786
+ return ((Z = O(I, y.field)) == null ? void 0 : Z.toString().toLowerCase().indexOf(y.value.toLowerCase())) === 0;
2787
+ }) : y.condition == "EndsWith" && (r = r.filter((I) => {
2782
2788
  var Z;
2783
- return ((Z = I(_, y.field)) == null ? void 0 : Z.toString().toLowerCase().substr(y.value.length * -1)) === y.value.toLowerCase();
2784
- }))) : y.type === "number" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) === parseFloat(y.value)) : y.condition === "NotEqual" ? r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) !== parseFloat(y.value)) : y.condition === "GreaterThan" ? r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) > parseFloat(y.value)) : y.condition === "GreaterThanOrEqual" ? r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) >= parseFloat(y.value)) : y.condition === "LessThan" ? r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) < parseFloat(y.value)) : y.condition === "LessThanOrEqual" && (r = r.filter((_) => I(_, y.field) && parseFloat(I(_, y.field)) <= parseFloat(y.value)))) : y.type === "date" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? r = r.filter((_) => I(_, y.field) && Ze(I(_, y.field)) === y.value) : y.condition === "NotEqual" ? r = r.filter((_) => I(_, y.field) && Ze(I(_, y.field)) !== y.value) : y.condition === "GreaterThan" ? r = r.filter((_) => I(_, y.field) && Ze(I(_, y.field)) > y.value) : y.condition === "LessThan" && (r = r.filter((_) => I(_, y.field) && Ze(I(_, y.field)) < y.value))) : y.type === "bool" && (r = r.filter((_) => I(_, y.field) === y.value)), y.condition === "IsNull" ? (r = r.filter((_) => I(_, y.field) == null || I(_, y.field) == ""), y.value = "") : y.condition === "IsNotNull" && (y.value = "", r = r.filter((_) => I(_, y.field))));
2789
+ return ((Z = O(I, y.field)) == null ? void 0 : Z.toString().toLowerCase().substr(y.value.length * -1)) === y.value.toLowerCase();
2790
+ }))) : y.type === "number" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) === parseFloat(y.value)) : y.condition === "NotEqual" ? r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) !== parseFloat(y.value)) : y.condition === "GreaterThan" ? r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) > parseFloat(y.value)) : y.condition === "GreaterThanOrEqual" ? r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) >= parseFloat(y.value)) : y.condition === "LessThan" ? r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) < parseFloat(y.value)) : y.condition === "LessThanOrEqual" && (r = r.filter((I) => O(I, y.field) && parseFloat(O(I, y.field)) <= parseFloat(y.value)))) : y.type === "date" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? r = r.filter((I) => O(I, y.field) && Je(O(I, y.field)) === y.value) : y.condition === "NotEqual" ? r = r.filter((I) => O(I, y.field) && Je(O(I, y.field)) !== y.value) : y.condition === "GreaterThan" ? r = r.filter((I) => O(I, y.field) && Je(O(I, y.field)) > y.value) : y.condition === "LessThan" && (r = r.filter((I) => O(I, y.field) && Je(O(I, y.field)) < y.value))) : y.type === "bool" && (r = r.filter((I) => O(I, y.field) === y.value)), y.condition === "IsNull" ? (r = r.filter((I) => O(I, y.field) == null || O(I, y.field) == ""), y.value = "") : y.condition === "IsNotNull" && (y.value = "", r = r.filter((I) => O(I, y.field))));
2785
2791
  }), W.value && (r != null && r.length)) {
2786
2792
  let y = [];
2787
- const _ = (t.columns || []).filter((Z) => Z.search && !Z.hide).map((Z) => Z.field);
2793
+ const I = (t.columns || []).filter((Z) => Z.search && !Z.hide).map((Z) => Z.field);
2788
2794
  for (var v = 0; v < (r == null ? void 0 : r.length); v++)
2789
- for (var b = 0; b < _.length; b++)
2790
- if ((U = I(r[v], _[b])) != null && U.toString().toLowerCase().includes(W.value.toLowerCase())) {
2795
+ for (var g = 0; g < I.length; g++)
2796
+ if ((F = O(r[v], I[g])) != null && F.toString().toLowerCase().includes(W.value.toLowerCase())) {
2791
2797
  y.push(r[v]);
2792
2798
  break;
2793
2799
  }
2794
2800
  r = y;
2795
2801
  }
2796
- const ae = (($ = t.columns.find((y) => y.field == f.value)) == null ? void 0 : $.type) === "number", al = Pe(ae || !1), ul = u.value === "desc" ? -1 : 1;
2797
- r.sort((y, _) => {
2798
- var Xt, Yt;
2799
- const Z = (Xt = f.value) == null ? void 0 : Xt.split(".").reduce((Se, wt) => Se == null ? void 0 : Se[wt], y), cl = (Yt = f.value) == null ? void 0 : Yt.split(".").reduce((Se, wt) => Se == null ? void 0 : Se[wt], _);
2800
- return al.compare(Z, cl) * ul;
2802
+ const be = ((le = t.columns.find((y) => y.field == f.value)) == null ? void 0 : le.type) === "number", cl = gt(be || !1), dl = u.value === "desc" ? -1 : 1;
2803
+ r.sort((y, I) => {
2804
+ var Jt, Zt;
2805
+ const Z = (Jt = f.value) == null ? void 0 : Jt.split(".").reduce((Ce, xt) => Ce == null ? void 0 : Ce[xt], y), fl = (Zt = f.value) == null ? void 0 : Zt.split(".").reduce((Ce, xt) => Ce == null ? void 0 : Ce[xt], I);
2806
+ return cl.compare(Z, fl) * dl;
2801
2807
  });
2802
2808
  }
2803
2809
  return r;
2804
- }), de = B([]), me = () => {
2805
- let r = [], v = Xe.value;
2806
- t.isServerMode ? (w.value = t.totalRows || 0, r = v) : (w.value = (v == null ? void 0 : v.length) || 0, r = v.slice(Ne.value - 1, h.value)), t.hasSubtable && r.forEach(function(b) {
2807
- b.isExpanded != null && (de.value.find((U) => U.id == b.id) || de.value.push({
2808
- id: b.id,
2809
- isExpanded: b.isExpanded
2810
- }));
2810
+ }), ae = B(/* @__PURE__ */ new Map()), pe = () => {
2811
+ let r = [], v = Ge.value;
2812
+ t.isServerMode ? (w.value = t.totalRows || 0, r = v) : (w.value = (v == null ? void 0 : v.length) || 0, r = v.slice(x.value - 1, L.value)), t.hasSubtable && r.forEach(function(g, R) {
2813
+ if (g.isExpanded !== void 0) {
2814
+ const F = g._rowIndex !== void 0 ? g._rowIndex : g.id || R;
2815
+ ae.value.set(F, g.isExpanded);
2816
+ }
2811
2817
  }), i.value = r || [];
2812
- }, be = () => {
2818
+ }, Se = () => {
2813
2819
  if (q.value) {
2814
- const r = M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2820
+ const r = T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2815
2821
  q.value.style.cssText = `
2816
- width: ${E.value}px !important;
2822
+ width: ${M.value}px !important;
2817
2823
  min-width: ${r}px !important;
2818
2824
  max-width: ${r}px !important;
2819
2825
  `;
2820
2826
  }
2821
- }, Ye = () => {
2822
- M.value ? E.value = t.leftmenuMinWidth : E.value = t.leftmenuDefaultWidth, be();
2823
- }, bt = () => {
2824
- M.value = !M.value, E.value = M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, be(), re("currentLeftMenuSize", E.value);
2827
+ }, Ke = () => {
2828
+ T.value ? M.value = t.leftmenuMinWidth : M.value = t.leftmenuDefaultWidth, Se();
2829
+ }, Re = () => {
2830
+ T.value = !T.value, M.value = T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, Se(), X("currentLeftMenuSize", M.value);
2825
2831
  };
2826
- Me(() => {
2827
- me(), Re(() => {
2828
- De.value <= 0 && (De.value = 10), re("currentTopMenuSize", t.topmenumin || 20), t.initialLeftMenuState !== void 0 ? (M.value = t.initialLeftMenuState, E.value = M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) : E.value = t.leftmenuDefaultWidth, be(), window.addEventListener("resize", Ye);
2832
+ Te(() => {
2833
+ pe(), Ie(() => {
2834
+ Ae.value <= 0 && (Ae.value = 10), X("currentTopMenuSize", t.topmenumin || 20), t.initialLeftMenuState !== void 0 ? (T.value = t.initialLeftMenuState, M.value = T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) : M.value = t.leftmenuDefaultWidth, Se(), window.addEventListener("resize", Ke);
2829
2835
  });
2830
2836
  });
2831
- const re = n;
2837
+ const X = n;
2832
2838
  l({
2833
2839
  reset() {
2834
- Zn();
2840
+ tl();
2835
2841
  },
2836
2842
  getSelectedRows() {
2837
- return el();
2843
+ return nl();
2838
2844
  },
2839
2845
  getColumnFilters() {
2840
- return tl();
2846
+ return ll();
2841
2847
  },
2842
2848
  clearSelectedRows() {
2843
- return nl();
2849
+ return ol();
2844
2850
  },
2845
2851
  selectRow(r) {
2846
- Vt(r);
2852
+ Kt(r);
2847
2853
  },
2848
2854
  unselectRow(r) {
2849
- Gt(r);
2855
+ Qt(r);
2850
2856
  },
2851
2857
  isRowSelected(r) {
2852
- return tt(r);
2858
+ return et(r);
2853
2859
  },
2854
2860
  getFilteredRows() {
2855
- return Xe.value;
2861
+ return Ge.value;
2856
2862
  },
2857
2863
  collapseAll() {
2858
- ll();
2864
+ il();
2859
2865
  },
2860
2866
  setLeftMenuState(r) {
2861
- M.value = r, E.value = r ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, be();
2867
+ T.value = r, M.value = r ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, Se();
2862
2868
  }
2863
2869
  }), ee(() => t.initialLeftMenuState, (r) => {
2864
- r !== void 0 && (M.value = r, E.value = M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, be());
2870
+ r !== void 0 && (T.value = r, M.value = T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, Se());
2865
2871
  }, { immediate: !0 });
2866
- const _e = (r, ...v) => r.replace(/{(\d+)}/g, (b, A) => typeof v[A] < "u" ? v[A] : b), ne = X(() => {
2872
+ const Qe = (r, ...v) => r.replace(/{(\d+)}/g, (g, R) => typeof v[R] < "u" ? v[R] : g), h = Q(() => {
2867
2873
  const r = a.value < 1 ? 1 : Math.ceil(w.value / a.value);
2868
2874
  return Math.max(r || 0, 1);
2869
- }), Ne = X(() => (s.value - 1) * a.value + 1), h = X(() => {
2875
+ }), x = Q(() => (s.value - 1) * a.value + 1), L = Q(() => {
2870
2876
  const r = s.value * a.value;
2871
2877
  return w.value >= r ? r : w.value;
2872
- }), x = X(() => {
2878
+ }), C = Q(() => {
2873
2879
  let r, v;
2874
- return typeof t.showNumbersCount < "u" && t.showNumbersCount < ne.value ? (r = Math.max(
2880
+ return typeof t.showNumbersCount < "u" && t.showNumbersCount < h.value ? (r = Math.max(
2875
2881
  s.value - Math.floor(t.showNumbersCount / 2),
2876
2882
  1
2877
- ), v = r + t.showNumbersCount - 1, v > ne.value && (v = ne.value, r = v - t.showNumbersCount + 1)) : (r = 1, v = ne.value), Array.from(Array(v + 1 - r).keys()).map(
2878
- (U) => r + U
2883
+ ), v = r + t.showNumbersCount - 1, v > h.value && (v = h.value, r = v - t.showNumbersCount + 1)) : (r = 1, v = h.value), Array.from(Array(v + 1 - r).keys()).map(
2884
+ (F) => r + F
2879
2885
  );
2880
2886
  });
2881
2887
  ee(
2882
2888
  () => t.loading,
2883
2889
  () => {
2884
- C.value = t.loading;
2890
+ k.value = t.loading;
2885
2891
  }
2886
2892
  );
2887
2893
  const z = (r) => {
2888
2894
  r ? j.value === r.field ? j.value = null : j.value = r.field : j.value = null;
2889
- }, S = () => {
2895
+ }, $ = () => {
2890
2896
  if (s.value == 1)
2891
2897
  return !1;
2892
2898
  s.value--;
2893
- }, L = (r) => {
2899
+ }, D = (r) => {
2894
2900
  s.value = r;
2895
- }, O = () => {
2896
- if (s.value >= ne.value)
2901
+ }, oe = () => {
2902
+ if (s.value >= h.value)
2897
2903
  return !1;
2898
2904
  s.value++;
2899
2905
  };
2900
2906
  ee(() => s.value, () => {
2901
- fe(!1), t.isServerMode ? Oe("page") : (me(), re("pageChange", s.value));
2907
+ ce(!1), t.isServerMode ? Pe("page") : (pe(), X("pageChange", s.value));
2902
2908
  }), ee(() => t.rows, () => {
2903
- t.isServerMode || (s.value = 1), fe(!1), me();
2909
+ t.isServerMode || (s.value = 1), ce(!1), pe();
2904
2910
  });
2905
- const ce = (r) => {
2911
+ const yt = (r) => {
2906
2912
  a.value = r;
2907
2913
  };
2908
2914
  ee(() => a.value, () => {
2909
- fe(!1), t.isServerMode ? s.value === 1 ? Oe("pagesize", !0) : s.value = 1 : (s.value = 1, me(), re("pageSizeChange", a.value));
2915
+ ce(!1), t.isServerMode ? s.value === 1 ? Pe("pagesize", !0) : s.value = 1 : (s.value = 1, pe(), X("pageSizeChange", a.value));
2910
2916
  });
2911
- const Ie = (r) => {
2917
+ const Xe = (r) => {
2912
2918
  let v = "asc";
2913
2919
  r == f.value && u.value === "asc" && (v = "desc");
2914
- let b = (s.value - 1) * a.value, A = a.value;
2915
- f.value = r, u.value = v, fe(!1), me(), t.isServerMode ? Oe("sort") : re("sortChange", { offset: b, limit: A, field: r, direction: v });
2916
- }, We = (r) => {
2917
- R.value = r.length && i.value.length && r.length === i.value.length;
2918
- const v = i.value.filter(
2919
- (b, A) => F.value.includes(oe.value ? b[oe.value] : A)
2920
- );
2921
- re("rowSelect", v);
2920
+ let g = (s.value - 1) * a.value, R = a.value;
2921
+ f.value = r, u.value = v, ce(!1), pe(), t.isServerMode ? Pe("sort") : X("sortChange", { offset: g, limit: R, field: r, direction: v });
2922
+ }, Gt = (r) => {
2923
+ A.value = r.length && i.value.length && r.length === i.value.length;
2924
+ const v = i.value.filter((g, R) => {
2925
+ var le;
2926
+ const F = re.value ? ((le = me.value) == null ? void 0 : le.get(R)) ?? R : R;
2927
+ return P.value.includes(F);
2928
+ });
2929
+ X("rowSelect", v);
2922
2930
  };
2923
- ee(() => F.value, We);
2924
- const fe = (r) => {
2925
- r ? F.value = i.value.map(
2926
- (v, b) => oe.value ? v[oe.value] : b
2927
- ) : F.value = [];
2928
- }, Je = () => {
2929
- fe(!1), t.isServerMode ? s.value === 1 ? Oe("filter", !0) : s.value = 1 : (s.value = 1, me(), re("filterChange", t.columns));
2930
- }, Yn = () => {
2931
- fe(!1), t.isServerMode ? s.value === 1 ? Oe("search", !0) : s.value = 1 : (s.value = 1, me(), re("searchChange", W.value));
2931
+ ee(() => P.value, Gt);
2932
+ const ce = (r) => {
2933
+ r ? P.value = i.value.map(
2934
+ (v, g) => {
2935
+ var R;
2936
+ return re.value ? ((R = me.value) == null ? void 0 : R.get(g)) ?? g : g;
2937
+ }
2938
+ ) : P.value = [];
2939
+ }, Ye = () => {
2940
+ ce(!1), t.isServerMode ? s.value === 1 ? Pe("filter", !0) : s.value = 1 : (s.value = 1, pe(), X("filterChange", t.columns));
2941
+ }, Zn = () => {
2942
+ ce(!1), t.isServerMode ? s.value === 1 ? Pe("search", !0) : s.value = 1 : (s.value = 1, pe(), X("searchChange", W.value));
2932
2943
  };
2933
2944
  ee(
2934
2945
  () => t.search,
2935
2946
  () => {
2936
- W.value = t.search, Yn();
2947
+ W.value = t.search, Zn();
2937
2948
  }
2938
2949
  );
2939
- const Ze = (r) => {
2950
+ const Je = (r) => {
2940
2951
  try {
2941
2952
  if (!r)
2942
2953
  return "";
2943
- const v = new Date(r), b = v.getDate(), A = v.getMonth() + 1;
2944
- return v.getFullYear() + "-" + (A > 9 ? A : "0" + A) + "-" + (b > 9 ? b : "0" + b);
2954
+ const v = new Date(r), g = v.getDate(), R = v.getMonth() + 1;
2955
+ return v.getFullYear() + "-" + (R > 9 ? R : "0" + R) + "-" + (g > 9 ? g : "0" + g);
2945
2956
  } catch {
2946
2957
  }
2947
2958
  return "";
2948
- }, et = (r, v) => {
2959
+ }, Ze = (r, v) => {
2949
2960
  N.value++, N.value === 1 ? Y.value = setTimeout(() => {
2950
- N.value = 0, t.selectRowOnClick && (tt(v) ? Gt(v) : Vt(v), We(F.value)), re("rowClick", r);
2951
- }, te.value) : N.value === 2 && (clearTimeout(Y.value), N.value = 0, re("rowDBClick", r));
2952
- }, Oe = (r, v = !1) => {
2961
+ N.value = 0, t.selectRowOnClick && (et(v) ? Qt(v) : Kt(v), Gt(P.value)), X("rowClick", r);
2962
+ }, te.value) : N.value === 2 && (clearTimeout(Y.value), N.value = 0, X("rowDBClick", r));
2963
+ }, Pe = (r, v = !1) => {
2953
2964
  if (t.isServerMode) {
2954
- Jn();
2955
- const b = {
2965
+ el();
2966
+ const g = {
2956
2967
  current_page: v ? 1 : s.value,
2957
2968
  pagesize: a.value,
2958
2969
  offset: (s.value - 1) * a.value,
@@ -2962,94 +2973,94 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
2962
2973
  column_filters: t.columns,
2963
2974
  change_type: r
2964
2975
  };
2965
- re("change", b);
2976
+ X("change", g);
2966
2977
  }
2967
- }, Jn = () => {
2978
+ }, el = () => {
2968
2979
  for (let r = 0; r < t.columns.length; r++) {
2969
2980
  let v = t.columns[r];
2970
2981
  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"));
2971
2982
  }
2972
- }, Zn = () => {
2973
- fe(!1);
2983
+ }, tl = () => {
2984
+ ce(!1);
2974
2985
  for (let r = 0; r < t.columns.length; r++)
2975
2986
  t.columns[r].value = "";
2976
- W.value = "", a.value = c, f.value = d, u.value = g, t.isServerMode ? s.value === 1 ? Oe("reset", !0) : s.value = 1 : (s.value = 1, me());
2977
- }, el = () => i.value.filter(
2978
- (v, b) => F.value.includes(oe.value ? v[oe.value] : b)
2979
- ), tl = () => t.columns, nl = () => {
2980
- F.value = [];
2981
- }, Vt = (r) => {
2982
- if (!tt(r)) {
2983
- const v = i.value.find((b, A) => A === r);
2984
- F.value.push(
2985
- oe.value ? v[oe.value] : r
2986
- );
2987
+ W.value = "", a.value = c, f.value = d, u.value = b, t.isServerMode ? s.value === 1 ? Pe("reset", !0) : s.value = 1 : (s.value = 1, pe());
2988
+ }, nl = () => i.value.filter((v, g) => {
2989
+ var F;
2990
+ const R = re.value ? ((F = me.value) == null ? void 0 : F.get(g)) ?? g : g;
2991
+ return P.value.includes(R);
2992
+ }), ll = () => t.columns, ol = () => {
2993
+ P.value = [];
2994
+ }, Kt = (r) => {
2995
+ var v;
2996
+ if (!et(r)) {
2997
+ const g = re.value ? ((v = me.value) == null ? void 0 : v.get(r)) ?? r : r;
2998
+ P.value.push(g);
2987
2999
  }
2988
- }, Gt = (r) => {
2989
- if (tt(r)) {
2990
- const v = i.value.find((b, A) => A === r);
2991
- F.value = F.value.filter(
2992
- (b) => b !== (oe.value ? v[oe.value] : r)
2993
- );
3000
+ }, Qt = (r) => {
3001
+ var v;
3002
+ if (et(r)) {
3003
+ const g = re.value ? ((v = me.value) == null ? void 0 : v.get(r)) ?? r : r;
3004
+ P.value = P.value.filter((R) => R !== g);
2994
3005
  }
2995
- }, tt = (r) => {
2996
- const v = i.value.find((b, A) => A === r);
2997
- return v ? F.value.includes(
2998
- oe.value ? v[oe.value] : r
2999
- ) : !1;
3000
- }, ll = () => {
3001
- de.value.forEach((r) => {
3002
- r.isExpanded = !1;
3006
+ }, et = (r) => {
3007
+ var g;
3008
+ if (r >= i.value.length) return !1;
3009
+ const v = re.value ? ((g = me.value) == null ? void 0 : g.get(r)) ?? r : r;
3010
+ return P.value.includes(v);
3011
+ }, il = () => {
3012
+ ae.value.forEach((r, v) => {
3013
+ ae.value.set(v, !1);
3003
3014
  });
3004
3015
  };
3005
- let he = 0;
3006
- t.hasCheckbox && he++, t.hasSubtable && he++, t.hasRightPanel && he++;
3007
- const De = B(t.topmenusize), nt = B(null), { height: ol } = $l(nt, { box: "border-box" }, { throttle: 100 }), il = en(() => {
3008
- Re(() => {
3009
- let r = nt.value;
3016
+ let de = 0;
3017
+ t.hasCheckbox && de++, t.hasSubtable && de++, t.hasRightPanel && de++;
3018
+ const Ae = B(t.topmenusize), tt = B(null), { height: rl } = Al(tt, { box: "border-box" }, { throttle: 100 }), sl = nn(() => {
3019
+ Ie(() => {
3020
+ let r = tt.value;
3010
3021
  if (r && typeof r == "object" && (r = r.$el || r), r instanceof HTMLElement) {
3011
3022
  const v = r.offsetHeight || 0;
3012
- re("currentTopMenuSize", v);
3023
+ X("currentTopMenuSize", v);
3013
3024
  }
3014
3025
  });
3015
- }, 50), rl = El((r) => {
3026
+ }, 50), al = El((r) => {
3016
3027
  if (!r || !r.panes || !r.panes.length) return;
3017
3028
  const v = r.panes[0].size;
3018
- De.value = v, il();
3019
- }, 16), sl = en(() => {
3020
- let r = nt.value;
3021
- r && typeof r == "object" && (r = r.$el || r), r instanceof HTMLElement && re("currentTopMenuSize", r.offsetHeight || 0);
3029
+ Ae.value = v, sl();
3030
+ }, 16), ul = nn(() => {
3031
+ let r = tt.value;
3032
+ r && typeof r == "object" && (r = r.$el || r), r instanceof HTMLElement && X("currentTopMenuSize", r.offsetHeight || 0);
3022
3033
  }, 50);
3023
- return ee(() => De.value, sl), ut(() => {
3024
- window.removeEventListener("resize", Ye), J.clear();
3025
- }), (r, v) => (p(), m("div", cr, [
3026
- le(G(un), {
3034
+ return ee(() => Ae.value, ul), at(() => {
3035
+ window.removeEventListener("resize", Ke), J.clear();
3036
+ }), (r, v) => (p(), m("div", fr, [
3037
+ ne(U(dn), {
3027
3038
  class: "default-theme",
3028
3039
  style: V({ height: t.height })
3029
3040
  }, {
3030
3041
  default: Le(() => [
3031
- le(G(St), null, {
3042
+ ne(U(zt), null, {
3032
3043
  default: Le(() => [
3033
- k("div", dr, [
3044
+ S("div", hr, [
3034
3045
  r.enableleftmenu ? (p(), m("div", {
3035
3046
  key: 0,
3036
3047
  ref_key: "leftmenuel",
3037
3048
  ref: q,
3038
3049
  class: "left-menu-container bh-relative",
3039
3050
  style: V({
3040
- width: E.value + "px",
3051
+ width: M.value + "px",
3041
3052
  transition: "width 0.3s ease",
3042
3053
  overflow: "hidden",
3043
- minWidth: (M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
3044
- maxWidth: (M.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
3054
+ minWidth: (T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
3055
+ maxWidth: (T.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
3045
3056
  })
3046
3057
  }, [
3047
3058
  ie(r.$slots, "tableleftmenu", {}, () => [
3048
- fr
3059
+ pr
3049
3060
  ]),
3050
- k("div", hr, [
3051
- k("button", {
3052
- onClick: bt,
3061
+ t.showResizeButton ? (p(), m("div", vr, [
3062
+ S("button", {
3063
+ onClick: Re,
3053
3064
  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"
3054
3065
  }, [
3055
3066
  (p(), m("svg", {
@@ -3058,36 +3069,36 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3058
3069
  viewBox: "0 0 8 12",
3059
3070
  fill: "none",
3060
3071
  xmlns: "http://www.w3.org/2000/svg",
3061
- style: V({ transform: M.value ? "rotate(180deg)" : "none" })
3062
- }, vr, 4))
3072
+ style: V({ transform: T.value ? "rotate(180deg)" : "none" })
3073
+ }, gr, 4))
3063
3074
  ])
3064
- ])
3065
- ], 4)) : P("", !0),
3066
- k("div", mr, [
3067
- r.enabletopmenu ? (p(), pe(G(un), {
3075
+ ])) : _("", !0)
3076
+ ], 4)) : _("", !0),
3077
+ S("div", br, [
3078
+ r.enabletopmenu ? (p(), fe(U(dn), {
3068
3079
  key: 0,
3069
3080
  class: "default-theme",
3070
3081
  horizontal: "horizontal",
3071
- onResize: G(rl),
3082
+ onResize: U(al),
3072
3083
  "push-other-panes": ""
3073
3084
  }, {
3074
3085
  default: Le(() => [
3075
- r.enabletopmenu ? (p(), pe(G(St), {
3086
+ r.enabletopmenu ? (p(), fe(U(zt), {
3076
3087
  key: 0,
3077
3088
  ref_key: "topmenuel",
3078
- ref: nt,
3079
- size: De.value || 10,
3089
+ ref: tt,
3090
+ size: Ae.value || 10,
3080
3091
  "max-size": r.topmenumax || 100,
3081
3092
  style: V({ "min-height": r.topmenumin + "px" })
3082
3093
  }, {
3083
3094
  default: Le(() => [
3084
3095
  ie(r.$slots, "tabletopmenu", {}, () => [
3085
- gr
3096
+ yr
3086
3097
  ])
3087
3098
  ]),
3088
3099
  _: 3
3089
- }, 8, ["size", "max-size", "style"])) : P("", !0),
3090
- le(G(St), {
3100
+ }, 8, ["size", "max-size", "style"])) : _("", !0),
3101
+ ne(U(zt), {
3091
3102
  style: V({ "padding-right": r.tableRightOffset + "px", "padding-left": r.tableLeftOffset + "px" })
3092
3103
  }, {
3093
3104
  default: Le(() => [
@@ -3097,18 +3108,18 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3097
3108
  style: V({ height: r.headerAreaHeight, "margin-bottom": "10px" })
3098
3109
  }, [
3099
3110
  ie(r.$slots, "tableHeaderArea", {}, () => [
3100
- br
3111
+ wr
3101
3112
  ])
3102
- ], 4)) : P("", !0),
3113
+ ], 4)) : _("", !0),
3103
3114
  ie(r.$slots, "tableactionheader", {}, () => [
3104
- yr
3115
+ xr
3105
3116
  ]),
3106
- k("div", {
3107
- class: T(t.scrollbarstyle)
3117
+ S("div", {
3118
+ class: E(t.scrollbarstyle)
3108
3119
  }, [
3109
- le(G(an), {
3120
+ ne(U(cn), {
3110
3121
  style: V({
3111
- height: t.stickyHeader && Number(t.height.replace("px", "")) - (r.footerOffset + G(ol)) + "px"
3122
+ height: t.stickyHeader && Number(t.height.replace("px", "")) - (r.footerOffset + U(rl)) + "px"
3112
3123
  }),
3113
3124
  autoHide: t.scrollbarautohide,
3114
3125
  fixedThumb: t.scrollbarfixedthumb,
@@ -3117,189 +3128,186 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3117
3128
  throttleType: "none"
3118
3129
  }, {
3119
3130
  default: Le(() => [
3120
- k("div", {
3121
- class: T(["bh-table-responsive", { "bh-min-h-[100px]": C.value }]),
3131
+ S("div", {
3132
+ class: E(["bh-table-responsive", { "bh-min-h-[100px]": k.value }]),
3122
3133
  style: V({ overflow: t.stickyHeader && "inherit" })
3123
3134
  }, [
3124
- k("table", {
3125
- class: T([t.skin])
3135
+ S("table", {
3136
+ class: E([t.skin])
3126
3137
  }, [
3127
- k("thead", {
3128
- class: T({
3138
+ S("thead", {
3139
+ class: E({
3129
3140
  "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
3130
3141
  })
3131
3142
  }, [
3132
- le(it, {
3143
+ ne(ot, {
3133
3144
  all: t,
3134
- expandedrows: de.value,
3145
+ expandedrows: ae.value,
3135
3146
  currentSortColumn: f.value,
3136
3147
  currentSortDirection: u.value,
3137
3148
  isOpenFilter: j.value,
3138
- checkAll: R.value,
3149
+ checkAll: A.value,
3139
3150
  columnFilterLang: t.columnFilterLang,
3140
- onSelectAll: fe,
3141
- onSortChange: Ie,
3142
- onFilterChange: Je,
3151
+ onSelectAll: ce,
3152
+ onSortChange: Xe,
3153
+ onFilterChange: Ye,
3143
3154
  onToggleFilterMenu: z
3144
3155
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3145
3156
  ], 2),
3146
- k("tbody", null, [
3147
- (p(!0), m(H, null, ue(i.value, (b, A) => {
3148
- var U;
3149
- return p(), m(H, {
3150
- key: Te.value[A]
3157
+ S("tbody", null, [
3158
+ (p(!0), m(H, null, se(i.value, (g, R) => (p(), m(H, {
3159
+ key: Ee(R)
3160
+ }, [
3161
+ w.value ? (p(), m("tr", {
3162
+ key: 0,
3163
+ class: E([
3164
+ Fe.value ? r.rowClass(g) : t.rowClass,
3165
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
3166
+ ]),
3167
+ onClick: G((F) => Ze(g, R), ["prevent"])
3151
3168
  }, [
3152
- w.value ? (p(), m("tr", {
3169
+ t.hasCheckbox ? (p(), m("td", {
3153
3170
  key: 0,
3154
- class: T([
3155
- Fe.value ? r.rowClass(b) : t.rowClass,
3156
- t.selectRowOnClick ? "bh-cursor-pointer" : ""
3157
- ]),
3158
- onClick: Q(($) => et(b, A), ["prevent"])
3171
+ style: V({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
3172
+ class: E({
3173
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3174
+ })
3159
3175
  }, [
3160
- t.hasCheckbox ? (p(), m("td", {
3161
- key: 0,
3162
- style: V({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
3163
- class: T({
3164
- "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3165
- })
3166
- }, [
3167
- k("div", xr, [
3168
- ge(k("input", {
3169
- "onUpdate:modelValue": v[0] || (v[0] = ($) => F.value = $),
3170
- type: "checkbox",
3171
- value: Te.value[A],
3172
- onClick: v[1] || (v[1] = Q(() => {
3173
- }, ["stop"]))
3174
- }, null, 8, kr), [
3175
- [Zt, F.value]
3176
- ]),
3177
- k("div", null, [
3178
- le(At, { class: "check" })
3179
- ])
3176
+ S("div", Sr, [
3177
+ ve(S("input", {
3178
+ "onUpdate:modelValue": v[0] || (v[0] = (F) => P.value = F),
3179
+ type: "checkbox",
3180
+ value: Ee(R),
3181
+ onClick: v[1] || (v[1] = G(() => {
3182
+ }, ["stop"]))
3183
+ }, null, 8, Cr), [
3184
+ [tn, P.value]
3185
+ ]),
3186
+ S("div", null, [
3187
+ ne(Nt, { class: "check" })
3180
3188
  ])
3181
- ], 6)) : P("", !0),
3182
- t.hasRightPanel ? (p(), m("td", {
3183
- key: 1,
3184
- style: V({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3185
- class: T({
3186
- "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3187
- })
3188
- }, [
3189
- le(Sn, {
3190
- item: b,
3191
- onRightPanelClick: v[2] || (v[2] = ($) => re("rowRightPanelClick", $))
3192
- }, null, 8, ["item"])
3193
- ], 6)) : P("", !0),
3194
- t.hasSubtable ? (p(), m("td", {
3195
- key: 2,
3196
- style: V({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
3197
- class: T({
3198
- "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3199
- })
3200
- }, [
3201
- le(Rt, {
3202
- item: { ...b, _rowIndex: A },
3203
- expandedrows: de.value
3204
- }, null, 8, ["item", "expandedrows"])
3205
- ], 6)) : P("", !0),
3206
- (p(!0), m(H, null, ue(t.columns, ($, ae) => (p(), m(H, null, [
3207
- $.hide ? P("", !0) : (p(), m("td", {
3208
- key: $.field,
3209
- class: T([
3210
- Ce.value ? r.cellClass(b) : t.cellClass,
3211
- ae === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3212
- t.hasCheckbox && ae === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3213
- $.cellClass ? $.cellClass : ""
3214
- ])
3215
- }, [
3216
- G(o)[$.field] ? ie(r.$slots, $.field, {
3217
- key: 0,
3218
- value: b
3219
- }) : $.cellRenderer ? (p(), m("div", {
3220
- key: 1,
3221
- innerHTML: $.cellRenderer(b)
3222
- }, null, 8, Cr)) : (p(), m(H, { key: 2 }, [
3223
- qe(K(I(b, $.field)), 1)
3224
- ], 64))
3225
- ], 2))
3226
- ], 64))), 256))
3227
- ], 10, wr)) : P("", !0),
3228
- (U = de.value.find(($) => $.id == (b._rowIndex !== void 0 ? b._rowIndex : b.id || A))) != null && U.isExpanded && t.hasSubtable ? (p(), m("tr", {
3189
+ ])
3190
+ ], 6)) : _("", !0),
3191
+ t.hasRightPanel ? (p(), m("td", {
3229
3192
  key: 1,
3230
- class: T([
3231
- Fe.value ? r.rowClass(b) : t.rowClass,
3232
- t.selectRowOnClick ? "bh-cursor-pointer" : ""
3233
- ]),
3234
- onClick: Q(($) => et(b, A), ["prevent"])
3193
+ style: V({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3194
+ class: E({
3195
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3196
+ })
3197
+ }, [
3198
+ ne(Ln, {
3199
+ item: g,
3200
+ onRightPanelClick: v[2] || (v[2] = (F) => X("rowRightPanelClick", F))
3201
+ }, null, 8, ["item"])
3202
+ ], 6)) : _("", !0),
3203
+ t.hasSubtable ? (p(), m("td", {
3204
+ key: 2,
3205
+ style: V({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
3206
+ class: E({
3207
+ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3208
+ })
3235
3209
  }, [
3236
- k("td", {
3237
- colspan: t.columns.length + G(he)
3210
+ ne(At, {
3211
+ item: { ...g, _rowIndex: R },
3212
+ expandedrows: ae.value
3213
+ }, null, 8, ["item", "expandedrows"])
3214
+ ], 6)) : _("", !0),
3215
+ (p(!0), m(H, null, se(t.columns, (F, le) => (p(), m(H, null, [
3216
+ F.hide ? _("", !0) : (p(), m("td", {
3217
+ key: F.field,
3218
+ class: E([
3219
+ ge.value ? r.cellClass(g) : t.cellClass,
3220
+ le === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3221
+ t.hasCheckbox && le === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3222
+ F.cellClass ? F.cellClass : ""
3223
+ ])
3238
3224
  }, [
3239
- ie(r.$slots, "tsub", {
3240
- rowData: b,
3241
- rowIndex: A,
3242
- filterItems: i.value
3243
- })
3244
- ], 8, zr)
3245
- ], 10, Sr)) : P("", !0)
3246
- ], 64);
3247
- }), 128)),
3248
- !w.value && C.value && r.skeletonloader ? (p(!0), m(H, { key: 0 }, ue(t.pageSize, (b) => (p(), m("tr", {
3249
- key: b,
3225
+ U(o)[F.field] ? ie(r.$slots, F.field, {
3226
+ key: 0,
3227
+ value: g
3228
+ }) : F.cellRenderer ? (p(), m("div", {
3229
+ key: 1,
3230
+ innerHTML: F.cellRenderer(g)
3231
+ }, null, 8, zr)) : (p(), m(H, { key: 2 }, [
3232
+ De(K(O(g, F.field)), 1)
3233
+ ], 64))
3234
+ ], 2))
3235
+ ], 64))), 256))
3236
+ ], 10, kr)) : _("", !0),
3237
+ Oe(g, R) && t.hasSubtable ? (p(), m("tr", {
3238
+ key: 1,
3239
+ class: E([
3240
+ Fe.value ? r.rowClass(g) : t.rowClass,
3241
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
3242
+ ]),
3243
+ onClick: G((F) => Ze(g, R), ["prevent"])
3244
+ }, [
3245
+ S("td", {
3246
+ colspan: t.columns.length + U(de)
3247
+ }, [
3248
+ ie(r.$slots, "tsub", {
3249
+ rowData: g,
3250
+ rowIndex: R,
3251
+ filterItems: i.value
3252
+ })
3253
+ ], 8, Mr)
3254
+ ], 10, Lr)) : _("", !0)
3255
+ ], 64))), 128)),
3256
+ !w.value && k.value && r.skeletonloader ? (p(!0), m(H, { key: 0 }, se(t.pageSize, (g) => (p(), m("tr", {
3257
+ key: g,
3250
3258
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3251
3259
  }, [
3252
- k("td", {
3253
- colspan: t.columns.length + G(he),
3260
+ S("td", {
3261
+ colspan: t.columns.length + U(de),
3254
3262
  class: "!bh-p-0 !bh-border-transparent"
3255
- }, Mr, 8, Lr)
3256
- ]))), 128)) : P("", !0),
3257
- w.value ? (p(!0), m(H, { key: 1 }, ue(t.footerRows, (b, A) => (p(), m("tr", {
3258
- key: b[oe.value] ? b[oe.value] : A,
3263
+ }, Fr, 8, Tr)
3264
+ ]))), 128)) : _("", !0),
3265
+ w.value ? (p(!0), m(H, { key: 1 }, se(t.footerRows, (g, R) => (p(), m("tr", {
3266
+ key: g[re.value] ? g[re.value] : R,
3259
3267
  class: "sticky-table-footer"
3260
3268
  }, [
3261
- G(he) > 0 ? (p(), m("td", {
3269
+ U(de) > 0 ? (p(), m("td", {
3262
3270
  key: 0,
3263
- colspan: G(he)
3264
- }, null, 8, Tr)) : P("", !0),
3265
- (p(!0), m(H, null, ue(t.columns, (U, $) => (p(), m(H, null, [
3266
- U.hide ? P("", !0) : (p(), m("td", {
3267
- key: U.field,
3268
- class: T([
3269
- Ce.value ? r.cellClass(b) : t.cellClass,
3270
- $ === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3271
- t.hasCheckbox && $ === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3272
- U.cellClass ? U.cellClass : ""
3271
+ colspan: U(de)
3272
+ }, null, 8, Pr)) : _("", !0),
3273
+ (p(!0), m(H, null, se(t.columns, (F, le) => (p(), m(H, null, [
3274
+ F.hide ? _("", !0) : (p(), m("td", {
3275
+ key: F.field,
3276
+ class: E([
3277
+ ge.value ? r.cellClass(g) : t.cellClass,
3278
+ le === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3279
+ t.hasCheckbox && le === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3280
+ F.cellClass ? F.cellClass : ""
3273
3281
  ])
3274
3282
  }, [
3275
- b.cells.find((ae) => ae.field == U.field) ? (p(), m(H, { key: 0 }, [
3276
- qe(K(b.cells.find((ae) => ae.field == U.field).text), 1)
3277
- ], 64)) : P("", !0)
3283
+ g.cells.find((be) => be.field == F.field) ? (p(), m(H, { key: 0 }, [
3284
+ De(K(g.cells.find((be) => be.field == F.field).text), 1)
3285
+ ], 64)) : _("", !0)
3278
3286
  ], 2))
3279
3287
  ], 64))), 256))
3280
- ]))), 128)) : P("", !0)
3288
+ ]))), 128)) : _("", !0)
3281
3289
  ]),
3282
3290
  t.cloneHeaderInFooter ? (p(), m("tfoot", {
3283
3291
  key: 0,
3284
- class: T({
3292
+ class: E({
3285
3293
  "bh-sticky bh-bottom-0": t.stickyHeader
3286
3294
  })
3287
3295
  }, [
3288
- le(it, {
3296
+ ne(ot, {
3289
3297
  all: t,
3290
3298
  currentSortColumn: f.value,
3291
3299
  currentSortDirection: u.value,
3292
3300
  isOpenFilter: j.value,
3293
3301
  isFooter: !0,
3294
- checkAll: R.value,
3295
- onSelectAll: fe,
3296
- onSortChange: Ie,
3297
- onFilterChange: Je,
3302
+ checkAll: A.value,
3303
+ onSelectAll: ce,
3304
+ onSortChange: Xe,
3305
+ onFilterChange: Ye,
3298
3306
  onToggleFilterMenu: z
3299
3307
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3300
- ], 2)) : P("", !0)
3308
+ ], 2)) : _("", !0)
3301
3309
  ], 2),
3302
- C.value && r.enableloadinganimation ? (p(), m("div", {
3310
+ k.value && r.enableloadinganimation ? (p(), m("div", {
3303
3311
  key: 0,
3304
3312
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3305
3313
  style: V({
@@ -3307,9 +3315,9 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3307
3315
  })
3308
3316
  }, [
3309
3317
  ie(r.$slots, "loadercontent")
3310
- ], 4)) : P("", !0)
3318
+ ], 4)) : _("", !0)
3311
3319
  ], 6),
3312
- !w.value && !C.value ? (p(), m("div", {
3320
+ !w.value && !k.value ? (p(), m("div", {
3313
3321
  key: 0,
3314
3322
  class: "nodatacontent",
3315
3323
  style: V({
@@ -3317,9 +3325,9 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3317
3325
  })
3318
3326
  }, [
3319
3327
  ie(r.$slots, "nodatacontent", {}, () => [
3320
- k("span", null, K(t.noDataContent), 1)
3328
+ S("span", null, K(t.noDataContent), 1)
3321
3329
  ])
3322
- ], 4)) : P("", !0)
3330
+ ], 4)) : _("", !0)
3323
3331
  ]),
3324
3332
  _: 3
3325
3333
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3329,8 +3337,8 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3329
3337
  }, 8, ["style"])
3330
3338
  ]),
3331
3339
  _: 3
3332
- }, 8, ["onResize"])) : P("", !0),
3333
- r.enabletopmenu ? P("", !0) : (p(), m("div", {
3340
+ }, 8, ["onResize"])) : _("", !0),
3341
+ r.enabletopmenu ? _("", !0) : (p(), m("div", {
3334
3342
  key: 1,
3335
3343
  class: "bh-w-full bh-h-full",
3336
3344
  style: V({ "padding-right": r.tableRightOffset + "px", "padding-left": r.tableLeftOffset + "px" })
@@ -3341,14 +3349,14 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3341
3349
  style: V({ height: r.headerAreaHeight, "margin-bottom": "10px" })
3342
3350
  }, [
3343
3351
  ie(r.$slots, "tableHeaderArea", {}, () => [
3344
- Fr
3352
+ _r
3345
3353
  ])
3346
- ], 4)) : P("", !0),
3354
+ ], 4)) : _("", !0),
3347
3355
  ie(r.$slots, "tableactionheader"),
3348
- k("div", {
3349
- class: T(t.scrollbarstyle)
3356
+ S("div", {
3357
+ class: E(t.scrollbarstyle)
3350
3358
  }, [
3351
- le(G(an), {
3359
+ ne(U(cn), {
3352
3360
  style: V({
3353
3361
  height: t.stickyHeader ? Number(t.height.replace("px", "")) - r.footerOffset + "px" : t.height
3354
3362
  }),
@@ -3359,206 +3367,203 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3359
3367
  throttleType: "none"
3360
3368
  }, {
3361
3369
  default: Le(() => [
3362
- k("div", {
3363
- class: T(["bh-table-responsive", { "bh-min-h-[100px]": C.value }]),
3370
+ S("div", {
3371
+ class: E(["bh-table-responsive", { "bh-min-h-[100px]": k.value }]),
3364
3372
  style: V({ overflow: t.stickyHeader && "inherit" })
3365
3373
  }, [
3366
- k("table", {
3367
- class: T([t.skin])
3374
+ S("table", {
3375
+ class: E([t.skin])
3368
3376
  }, [
3369
- k("thead", {
3370
- class: T({ "bh-sticky bh-top-0 bh-z-10": t.stickyHeader })
3377
+ S("thead", {
3378
+ class: E({ "bh-sticky bh-top-0 bh-z-10": t.stickyHeader })
3371
3379
  }, [
3372
- le(it, {
3380
+ ne(ot, {
3373
3381
  all: t,
3374
- expandedrows: de.value,
3382
+ expandedrows: ae.value,
3375
3383
  currentSortColumn: f.value,
3376
3384
  currentSortDirection: u.value,
3377
3385
  isOpenFilter: j.value,
3378
- checkAll: R.value,
3386
+ checkAll: A.value,
3379
3387
  columnFilterLang: t.columnFilterLang,
3380
- onSelectAll: fe,
3381
- onSortChange: Ie,
3382
- onFilterChange: Je,
3388
+ onSelectAll: ce,
3389
+ onSortChange: Xe,
3390
+ onFilterChange: Ye,
3383
3391
  onToggleFilterMenu: z
3384
3392
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3385
3393
  ], 2),
3386
- k("tbody", null, [
3387
- (p(!0), m(H, null, ue(i.value, (b, A) => {
3388
- var U;
3389
- return p(), m(H, {
3390
- key: Te.value[A]
3394
+ S("tbody", null, [
3395
+ (p(!0), m(H, null, se(i.value, (g, R) => (p(), m(H, {
3396
+ key: Ee(R)
3397
+ }, [
3398
+ w.value ? (p(), m("tr", {
3399
+ key: 0,
3400
+ class: E([
3401
+ Fe.value ? r.rowClass(g) : t.rowClass,
3402
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
3403
+ ]),
3404
+ onClick: G((F) => Ze(g, R), ["prevent"])
3391
3405
  }, [
3392
- w.value ? (p(), m("tr", {
3406
+ t.hasCheckbox ? (p(), m("td", {
3393
3407
  key: 0,
3394
- class: T([
3395
- Fe.value ? r.rowClass(b) : t.rowClass,
3396
- t.selectRowOnClick ? "bh-cursor-pointer" : ""
3397
- ]),
3398
- onClick: Q(($) => et(b, A), ["prevent"])
3408
+ style: V({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
3409
+ class: E({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3399
3410
  }, [
3400
- t.hasCheckbox ? (p(), m("td", {
3401
- key: 0,
3402
- style: V({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
3403
- class: T({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3404
- }, [
3405
- k("div", _r, [
3406
- ge(k("input", {
3407
- "onUpdate:modelValue": v[3] || (v[3] = ($) => F.value = $),
3408
- type: "checkbox",
3409
- value: Te.value[A],
3410
- onClick: v[4] || (v[4] = Q(() => {
3411
- }, ["stop"]))
3412
- }, null, 8, Ir), [
3413
- [Zt, F.value]
3414
- ]),
3415
- k("div", null, [
3416
- le(At, { class: "check" })
3417
- ])
3411
+ S("div", Or, [
3412
+ ve(S("input", {
3413
+ "onUpdate:modelValue": v[3] || (v[3] = (F) => P.value = F),
3414
+ type: "checkbox",
3415
+ value: Ee(R),
3416
+ onClick: v[4] || (v[4] = G(() => {
3417
+ }, ["stop"]))
3418
+ }, null, 8, $r), [
3419
+ [tn, P.value]
3420
+ ]),
3421
+ S("div", null, [
3422
+ ne(Nt, { class: "check" })
3418
3423
  ])
3419
- ], 6)) : P("", !0),
3420
- t.hasRightPanel ? (p(), m("td", {
3421
- key: 1,
3422
- style: V({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3423
- class: T({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3424
- }, [
3425
- le(Sn, {
3426
- item: b,
3427
- onRightPanelClick: v[5] || (v[5] = ($) => re("rowRightPanelClick", $))
3428
- }, null, 8, ["item"])
3429
- ], 6)) : P("", !0),
3430
- t.hasSubtable ? (p(), m("td", {
3431
- key: 2,
3432
- style: V({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
3433
- class: T({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3434
- }, [
3435
- le(Rt, {
3436
- item: { ...b, _rowIndex: A },
3437
- expandedrows: de.value
3438
- }, null, 8, ["item", "expandedrows"])
3439
- ], 6)) : P("", !0),
3440
- (p(!0), m(H, null, ue(t.columns, ($, ae) => (p(), m(H, null, [
3441
- $.hide ? P("", !0) : (p(), m("td", {
3442
- key: $.field,
3443
- class: T([
3444
- Ce.value ? r.cellClass(b) : t.cellClass,
3445
- ae === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3446
- t.hasCheckbox && ae === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3447
- $.cellClass ? $.cellClass : ""
3448
- ])
3449
- }, [
3450
- G(o)[$.field] ? ie(r.$slots, $.field, {
3451
- key: 0,
3452
- value: b
3453
- }) : $.cellRenderer ? (p(), m("div", {
3454
- key: 1,
3455
- innerHTML: $.cellRenderer(b)
3456
- }, null, 8, Or)) : (p(), m(H, { key: 2 }, [
3457
- qe(K(I(b, $.field)), 1)
3458
- ], 64))
3459
- ], 2))
3460
- ], 64))), 256))
3461
- ], 10, Pr)) : P("", !0),
3462
- (U = de.value.find(($) => $.id == (b._rowIndex !== void 0 ? b._rowIndex : b.id || A))) != null && U.isExpanded && t.hasSubtable ? (p(), m("tr", {
3424
+ ])
3425
+ ], 6)) : _("", !0),
3426
+ t.hasRightPanel ? (p(), m("td", {
3463
3427
  key: 1,
3464
- class: T([
3465
- Fe.value ? r.rowClass(b) : t.rowClass,
3466
- t.selectRowOnClick ? "bh-cursor-pointer" : ""
3467
- ]),
3468
- onClick: Q(($) => et(b, A), ["prevent"])
3428
+ style: V({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3429
+ class: E({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3469
3430
  }, [
3470
- k("td", {
3471
- colspan: t.columns.length + G(he)
3431
+ ne(Ln, {
3432
+ item: g,
3433
+ onRightPanelClick: v[5] || (v[5] = (F) => X("rowRightPanelClick", F))
3434
+ }, null, 8, ["item"])
3435
+ ], 6)) : _("", !0),
3436
+ t.hasSubtable ? (p(), m("td", {
3437
+ key: 2,
3438
+ style: V({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
3439
+ class: E({ "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn })
3440
+ }, [
3441
+ ne(At, {
3442
+ item: { ...g, _rowIndex: R },
3443
+ expandedrows: ae.value
3444
+ }, null, 8, ["item", "expandedrows"])
3445
+ ], 6)) : _("", !0),
3446
+ (p(!0), m(H, null, se(t.columns, (F, le) => (p(), m(H, null, [
3447
+ F.hide ? _("", !0) : (p(), m("td", {
3448
+ key: F.field,
3449
+ class: E([
3450
+ ge.value ? r.cellClass(g) : t.cellClass,
3451
+ le === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3452
+ t.hasCheckbox && le === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3453
+ F.cellClass ? F.cellClass : ""
3454
+ ])
3472
3455
  }, [
3473
- k("div", {
3474
- class: "subtable-container",
3475
- style: V({
3476
- maxHeight: t.subtableMaxHeight,
3477
- overflow: "auto",
3478
- padding: "10px",
3479
- background: "var(--white)",
3480
- border: "1px solid var(--fade-grey)"
3481
- })
3482
- }, [
3483
- ie(r.$slots, "tsub", {
3484
- rowData: b,
3485
- rowIndex: A,
3486
- filterItems: i.value
3487
- })
3488
- ], 4)
3489
- ], 8, Rr)
3490
- ], 10, $r)) : P("", !0)
3491
- ], 64);
3492
- }), 128)),
3493
- !w.value && C.value && r.skeletonloader ? (p(!0), m(H, { key: 0 }, ue(t.pageSize, (b) => (p(), m("tr", {
3494
- key: b,
3456
+ U(o)[F.field] ? ie(r.$slots, F.field, {
3457
+ key: 0,
3458
+ value: g
3459
+ }) : F.cellRenderer ? (p(), m("div", {
3460
+ key: 1,
3461
+ innerHTML: F.cellRenderer(g)
3462
+ }, null, 8, Rr)) : (p(), m(H, { key: 2 }, [
3463
+ De(K(O(g, F.field)), 1)
3464
+ ], 64))
3465
+ ], 2))
3466
+ ], 64))), 256))
3467
+ ], 10, Ir)) : _("", !0),
3468
+ Oe(g, R) && t.hasSubtable ? (p(), m("tr", {
3469
+ key: 1,
3470
+ class: E([
3471
+ Fe.value ? r.rowClass(g) : t.rowClass,
3472
+ t.selectRowOnClick ? "bh-cursor-pointer" : ""
3473
+ ]),
3474
+ onClick: G((F) => Ze(g, R), ["prevent"])
3475
+ }, [
3476
+ S("td", {
3477
+ colspan: t.columns.length + U(de)
3478
+ }, [
3479
+ S("div", {
3480
+ class: "subtable-container",
3481
+ style: V({
3482
+ maxHeight: t.subtableMaxHeight,
3483
+ overflow: "auto",
3484
+ padding: "10px",
3485
+ background: "var(--white)",
3486
+ border: "1px solid var(--fade-grey)"
3487
+ })
3488
+ }, [
3489
+ ie(r.$slots, "tsub", {
3490
+ rowData: g,
3491
+ rowIndex: R,
3492
+ filterItems: i.value
3493
+ })
3494
+ ], 4)
3495
+ ], 8, Nr)
3496
+ ], 10, Ar)) : _("", !0)
3497
+ ], 64))), 128)),
3498
+ !w.value && k.value && r.skeletonloader ? (p(!0), m(H, { key: 0 }, se(t.pageSize, (g) => (p(), m("tr", {
3499
+ key: g,
3495
3500
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3496
3501
  }, [
3497
- k("td", {
3498
- colspan: t.columns.length + G(he),
3502
+ S("td", {
3503
+ colspan: t.columns.length + U(de),
3499
3504
  class: "!bh-p-0 !bh-border-transparent"
3500
- }, Wr, 8, Ar)
3501
- ]))), 128)) : P("", !0),
3502
- w.value ? (p(!0), m(H, { key: 1 }, ue(t.footerRows, (b, A) => (p(), m("tr", {
3503
- key: b[oe.value] ? b[oe.value] : A,
3505
+ }, Hr, 8, Wr)
3506
+ ]))), 128)) : _("", !0),
3507
+ w.value ? (p(!0), m(H, { key: 1 }, se(t.footerRows, (g, R) => (p(), m("tr", {
3508
+ key: g[re.value] ? g[re.value] : R,
3504
3509
  class: "sticky-table-footer"
3505
3510
  }, [
3506
- G(he) > 0 ? (p(), m("td", {
3511
+ U(de) > 0 ? (p(), m("td", {
3507
3512
  key: 0,
3508
- colspan: G(he)
3509
- }, null, 8, Dr)) : P("", !0),
3510
- (p(!0), m(H, null, ue(t.columns, (U, $) => (p(), m(H, null, [
3511
- U.hide ? P("", !0) : (p(), m("td", {
3512
- key: U.field,
3513
- class: T([
3514
- Ce.value ? r.cellClass(b) : t.cellClass,
3515
- $ === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3516
- t.hasCheckbox && $ === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3517
- U.cellClass ? U.cellClass : ""
3513
+ colspan: U(de)
3514
+ }, null, 8, Br)) : _("", !0),
3515
+ (p(!0), m(H, null, se(t.columns, (F, le) => (p(), m(H, null, [
3516
+ F.hide ? _("", !0) : (p(), m("td", {
3517
+ key: F.field,
3518
+ class: E([
3519
+ ge.value ? r.cellClass(g) : t.cellClass,
3520
+ le === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3521
+ t.hasCheckbox && le === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3522
+ F.cellClass ? F.cellClass : ""
3518
3523
  ])
3519
3524
  }, [
3520
- b.cells.find((ae) => ae.field == U.field) ? (p(), m(H, { key: 0 }, [
3521
- qe(K(b.cells.find((ae) => ae.field == U.field).text), 1)
3522
- ], 64)) : P("", !0)
3525
+ g.cells.find((be) => be.field == F.field) ? (p(), m(H, { key: 0 }, [
3526
+ De(K(g.cells.find((be) => be.field == F.field).text), 1)
3527
+ ], 64)) : _("", !0)
3523
3528
  ], 2))
3524
3529
  ], 64))), 256))
3525
- ]))), 128)) : P("", !0)
3530
+ ]))), 128)) : _("", !0)
3526
3531
  ]),
3527
3532
  t.cloneHeaderInFooter ? (p(), m("tfoot", {
3528
3533
  key: 0,
3529
- class: T({ "bh-sticky bh-bottom-0": t.stickyHeader })
3534
+ class: E({ "bh-sticky bh-bottom-0": t.stickyHeader })
3530
3535
  }, [
3531
- le(it, {
3536
+ ne(ot, {
3532
3537
  all: t,
3533
3538
  currentSortColumn: f.value,
3534
3539
  currentSortDirection: u.value,
3535
3540
  isOpenFilter: j.value,
3536
3541
  isFooter: !0,
3537
- checkAll: R.value,
3538
- onSelectAll: fe,
3539
- onSortChange: Ie,
3540
- onFilterChange: Je,
3542
+ checkAll: A.value,
3543
+ onSelectAll: ce,
3544
+ onSortChange: Xe,
3545
+ onFilterChange: Ye,
3541
3546
  onToggleFilterMenu: z
3542
3547
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3543
- ], 2)) : P("", !0)
3548
+ ], 2)) : _("", !0)
3544
3549
  ], 2),
3545
- C.value && r.enableloadinganimation ? (p(), m("div", {
3550
+ k.value && r.enableloadinganimation ? (p(), m("div", {
3546
3551
  key: 0,
3547
3552
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3548
3553
  style: V({ height: Number(t.height.replace("px", "")) - 175 + "px" })
3549
3554
  }, [
3550
3555
  ie(r.$slots, "loadercontent")
3551
- ], 4)) : P("", !0)
3556
+ ], 4)) : _("", !0)
3552
3557
  ], 6),
3553
- !w.value && !C.value ? (p(), m("div", {
3558
+ !w.value && !k.value ? (p(), m("div", {
3554
3559
  key: 0,
3555
3560
  class: "nodatacontent",
3556
3561
  style: V({ height: Number(t.height.replace("px", "")) - 175 + "px" })
3557
3562
  }, [
3558
3563
  ie(r.$slots, "nodatacontent", {}, () => [
3559
- k("span", null, K(t.noDataContent), 1)
3564
+ S("span", null, K(t.noDataContent), 1)
3560
3565
  ])
3561
- ], 4)) : P("", !0)
3566
+ ], 4)) : _("", !0)
3562
3567
  ]),
3563
3568
  _: 3
3564
3569
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3574,102 +3579,102 @@ const Qi = /* @__PURE__ */ Ke(qi, [["render", Gi]]), Ki = { key: "hdrrow" }, Xi
3574
3579
  }, 8, ["style"]),
3575
3580
  t.pagination && w.value ? (p(), m("div", {
3576
3581
  key: 0,
3577
- class: T(["bh-pagination", { "bh-pointer-events-none": C.value, "sticky-footer": t.stickyFooter }])
3582
+ class: E(["bh-pagination", { "bh-pointer-events-none": k.value, "sticky-footer": t.stickyFooter }])
3578
3583
  }, [
3579
- k("div", Hr, [
3584
+ S("div", qr, [
3580
3585
  r.enablefooterpagination ? ie(r.$slots, "footerpageinfo", {
3581
3586
  key: 0,
3582
3587
  paginationInfo: r.paginationInfo,
3583
3588
  filterRowCount: w.value,
3584
- offset: Ne.value,
3585
- limit: h.value,
3589
+ offset: x.value,
3590
+ limit: L.value,
3586
3591
  showPageSize: r.showPageSize,
3587
3592
  pageSizeOptions: r.pageSizeOptions,
3588
3593
  currentPageSize: a.value,
3589
- stringFormat: _e,
3590
- setPageSize: ce
3594
+ stringFormat: Qe,
3595
+ setPageSize: yt
3591
3596
  }, () => [
3592
- k("div", Br, [
3593
- k("span", qr, K(_e(t.paginationInfo, w.value ? Ne.value : 0, h.value, w.value)), 1),
3594
- t.showPageSize ? ge((p(), m("select", {
3597
+ S("div", jr, [
3598
+ S("span", Vr, K(Qe(t.paginationInfo, w.value ? x.value : 0, L.value, w.value)), 1),
3599
+ t.showPageSize ? ve((p(), m("select", {
3595
3600
  key: 0,
3596
- "onUpdate:modelValue": v[6] || (v[6] = (b) => a.value = b),
3601
+ "onUpdate:modelValue": v[6] || (v[6] = (g) => a.value = g),
3597
3602
  class: "bh-pagesize"
3598
3603
  }, [
3599
- (p(!0), m(H, null, ue(t.pageSizeOptions, (b) => (p(), m("option", {
3600
- value: b,
3601
- key: b
3602
- }, K(b), 9, jr))), 128))
3604
+ (p(!0), m(H, null, se(t.pageSizeOptions, (g) => (p(), m("option", {
3605
+ value: g,
3606
+ key: g
3607
+ }, K(g), 9, Ur))), 128))
3603
3608
  ], 512)), [
3604
3609
  [En, a.value]
3605
- ]) : P("", !0)
3610
+ ]) : _("", !0)
3606
3611
  ])
3607
- ]) : P("", !0),
3612
+ ]) : _("", !0),
3608
3613
  r.enablefooterpagination ? ie(r.$slots, "footerpagination", {
3609
3614
  key: 1,
3610
3615
  currentPage: s.value,
3611
- maxPage: ne.value,
3612
- paging: x.value,
3613
- movePage: L,
3614
- nextPage: O,
3615
- previousPage: S
3616
+ maxPage: h.value,
3617
+ paging: C.value,
3618
+ movePage: D,
3619
+ nextPage: oe,
3620
+ previousPage: $
3616
3621
  }, () => [
3617
- k("div", Ur, [
3622
+ S("div", Gr, [
3618
3623
  t.showFirstPage ? (p(), m("button", {
3619
3624
  key: 0,
3620
3625
  type: "button",
3621
- class: T(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3622
- onClick: v[7] || (v[7] = (b) => s.value = 1)
3626
+ class: E(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3627
+ onClick: v[7] || (v[7] = (g) => s.value = 1)
3623
3628
  }, [
3624
3629
  t.firstArrow ? (p(), m("span", {
3625
3630
  key: 0,
3626
3631
  innerHTML: t.firstArrow
3627
- }, null, 8, Vr)) : (p(), m("svg", Gr, Kr))
3628
- ], 2)) : P("", !0),
3629
- k("button", {
3632
+ }, null, 8, Kr)) : (p(), m("svg", Qr, Yr))
3633
+ ], 2)) : _("", !0),
3634
+ S("button", {
3630
3635
  type: "button",
3631
- class: T(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3632
- onClick: S
3636
+ class: E(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3637
+ onClick: $
3633
3638
  }, [
3634
3639
  t.previousArrow ? (p(), m("span", {
3635
3640
  key: 0,
3636
3641
  innerHTML: t.previousArrow
3637
- }, null, 8, Xr)) : (p(), m("svg", Yr, Zr))
3642
+ }, null, 8, Jr)) : (p(), m("svg", Zr, ts))
3638
3643
  ], 2),
3639
- t.showNumbers ? (p(!0), m(H, { key: 1 }, ue(x.value, (b) => (p(), m("button", {
3640
- key: b,
3644
+ t.showNumbers ? (p(!0), m(H, { key: 1 }, se(C.value, (g) => (p(), m("button", {
3645
+ key: g,
3641
3646
  type: "button",
3642
- class: T(["bh-page-item", { disabled: s.value === b, "bh-active": b === s.value }]),
3643
- onClick: (A) => L(b)
3644
- }, K(b), 11, es))), 128)) : P("", !0),
3645
- k("button", {
3647
+ class: E(["bh-page-item", { disabled: s.value === g, "bh-active": g === s.value }]),
3648
+ onClick: (R) => D(g)
3649
+ }, K(g), 11, ns))), 128)) : _("", !0),
3650
+ S("button", {
3646
3651
  type: "button",
3647
- class: T(["bh-page-item next-page", { disabled: s.value >= ne.value }]),
3648
- onClick: O
3652
+ class: E(["bh-page-item next-page", { disabled: s.value >= h.value }]),
3653
+ onClick: oe
3649
3654
  }, [
3650
3655
  t.nextArrow ? (p(), m("span", {
3651
3656
  key: 0,
3652
3657
  innerHTML: t.nextArrow
3653
- }, null, 8, ts)) : (p(), m("svg", ns, os))
3658
+ }, null, 8, ls)) : (p(), m("svg", os, rs))
3654
3659
  ], 2),
3655
3660
  t.showLastPage ? (p(), m("button", {
3656
3661
  key: 2,
3657
3662
  type: "button",
3658
- class: T(["bh-page-item last-page", { disabled: s.value >= ne.value }]),
3659
- onClick: v[8] || (v[8] = (b) => s.value = ne.value)
3663
+ class: E(["bh-page-item last-page", { disabled: s.value >= h.value }]),
3664
+ onClick: v[8] || (v[8] = (g) => s.value = h.value)
3660
3665
  }, [
3661
3666
  t.lastArrow ? (p(), m("span", {
3662
3667
  key: 0,
3663
3668
  innerHTML: t.lastArrow
3664
- }, null, 8, is)) : (p(), m("svg", rs, as))
3665
- ], 2)) : P("", !0)
3669
+ }, null, 8, ss)) : (p(), m("svg", as, cs))
3670
+ ], 2)) : _("", !0)
3666
3671
  ])
3667
- ]) : P("", !0)
3672
+ ]) : _("", !0)
3668
3673
  ])
3669
- ], 2)) : P("", !0)
3674
+ ], 2)) : _("", !0)
3670
3675
  ]));
3671
3676
  }
3672
3677
  });
3673
3678
  export {
3674
- fs as default
3679
+ ps as default
3675
3680
  };