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