@dolusoft/vue3-datatable 1.7.69 → 1.7.72

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,8 +1,8 @@
1
- import { isRef as Kn, watch as Y, onMounted as Le, nextTick as Se, getCurrentScope as Jn, onScopeDispose as Yn, unref as U, getCurrentInstance as It, computed as K, ref as A, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as re, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as h, normalizeStyle as G, renderSlot as te, h as kt, defineComponent as _e, toRef as Zn, Fragment as W, withModifiers as V, createVNode as ne, createElementVNode as k, normalizeClass as I, toDisplayString as B, createCommentVNode as M, onUnmounted as mn, withDirectives as ie, renderList as oe, vModelSelect as st, createTextVNode as De, vModelText as Pe, vShow as Gt, withCtx as qe, vModelCheckbox as Qt } from "vue";
1
+ import { isRef as Kn, watch as Y, onMounted as Le, nextTick as Se, getCurrentScope as Jn, onScopeDispose as Yn, unref as U, getCurrentInstance as It, computed as K, ref as A, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as re, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as h, normalizeStyle as G, renderSlot as te, h as kt, defineComponent as _e, toRef as Zn, Fragment as D, withModifiers as V, createVNode as ne, createElementVNode as k, normalizeClass as I, toDisplayString as B, createCommentVNode as M, onUnmounted as mn, withDirectives as ie, renderList as oe, vModelSelect as it, createTextVNode as We, vModelText as Pe, vShow as Gt, withCtx as Ae, vModelCheckbox as Qt } from "vue";
2
2
  function bn(t) {
3
3
  return Jn() ? (Yn(t), !0) : !1;
4
4
  }
5
- function He(t) {
5
+ function Be(t) {
6
6
  return typeof t == "function" ? t() : U(t);
7
7
  }
8
8
  const gn = typeof window < "u" && typeof document < "u";
@@ -28,27 +28,27 @@ function yn(t, o = {}) {
28
28
  clearTimeout(r), e(), e = ye;
29
29
  };
30
30
  return (r) => {
31
- const f = He(t), g = He(o.maxWait);
32
- return n && i(n), f <= 0 || g !== void 0 && g <= 0 ? (l && (i(l), l = null), Promise.resolve(r())) : new Promise((C, m) => {
33
- e = o.rejectOnCancel ? m : C, g && !l && (l = setTimeout(() => {
31
+ const f = Be(t), y = Be(o.maxWait);
32
+ return n && i(n), f <= 0 || y !== void 0 && y <= 0 ? (l && (i(l), l = null), Promise.resolve(r())) : new Promise((C, v) => {
33
+ e = o.rejectOnCancel ? v : C, y && !l && (l = setTimeout(() => {
34
34
  n && i(n), l = null, C(r());
35
- }, g)), n = setTimeout(() => {
35
+ }, y)), n = setTimeout(() => {
36
36
  l && i(l), l = null, C(r());
37
37
  }, f);
38
38
  });
39
39
  };
40
40
  }
41
41
  function il(...t) {
42
- let o = 0, n, l = !0, e = ye, i, a, r, f, g;
43
- !Kn(t[0]) && typeof t[0] == "object" ? { delay: a, trailing: r = !0, leading: f = !0, rejectOnCancel: g = !1 } = t[0] : [a, r = !0, f = !0, g = !1] = t;
42
+ let o = 0, n, l = !0, e = ye, i, a, r, f, y;
43
+ !Kn(t[0]) && typeof t[0] == "object" ? { delay: a, trailing: r = !0, leading: f = !0, rejectOnCancel: y = !1 } = t[0] : [a, r = !0, f = !0, y = !1] = t;
44
44
  const C = () => {
45
45
  n && (clearTimeout(n), n = void 0, e(), e = ye);
46
46
  };
47
- return (p) => {
48
- const u = He(a), z = Date.now() - o, L = () => i = p();
49
- return C(), u <= 0 ? (o = Date.now(), L()) : (z > u && (f || !l) ? (o = Date.now(), L()) : r && (i = new Promise((b, N) => {
50
- e = g ? N : b, n = setTimeout(() => {
51
- o = Date.now(), l = !0, b(L()), C();
47
+ return (b) => {
48
+ const u = Be(a), z = Date.now() - o, L = () => i = b();
49
+ return C(), u <= 0 ? (o = Date.now(), L()) : (z > u && (f || !l) ? (o = Date.now(), L()) : r && (i = new Promise((m, $) => {
50
+ e = y ? $ : m, n = setTimeout(() => {
51
+ o = Date.now(), l = !0, m(L()), C();
52
52
  }, Math.max(0, u - z));
53
53
  })), !f && !n && (n = setTimeout(() => l = !0, u)), l = !1, i);
54
54
  };
@@ -102,7 +102,7 @@ function cl(t, o, n = {}) {
102
102
  }
103
103
  function he(t) {
104
104
  var o;
105
- const n = He(t);
105
+ const n = Be(t);
106
106
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
107
107
  }
108
108
  const at = gn ? window : void 0;
@@ -113,60 +113,60 @@ function bt(...t) {
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
114
114
  const i = [], a = () => {
115
115
  i.forEach((C) => C()), i.length = 0;
116
- }, r = (C, m, p, u) => (C.addEventListener(m, p, u), () => C.removeEventListener(m, p, u)), f = Y(
117
- () => [he(o), He(e)],
118
- ([C, m]) => {
116
+ }, r = (C, v, b, u) => (C.addEventListener(v, b, u), () => C.removeEventListener(v, b, u)), f = Y(
117
+ () => [he(o), Be(e)],
118
+ ([C, v]) => {
119
119
  if (a(), !C)
120
120
  return;
121
- const p = tl(m) ? { ...m } : m;
121
+ const b = tl(v) ? { ...v } : v;
122
122
  i.push(
123
- ...n.flatMap((u) => l.map((z) => r(C, u, z, p)))
123
+ ...n.flatMap((u) => l.map((z) => r(C, u, z, b)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
- ), g = () => {
127
+ ), y = () => {
128
128
  f(), a();
129
129
  };
130
- return bn(g), g;
130
+ return bn(y), y;
131
131
  }
132
132
  let Jt = !1;
133
133
  function dl(t, o, n = {}) {
134
134
  const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: a = !1 } = n;
135
135
  if (!l)
136
136
  return ye;
137
- nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((p) => p.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
137
+ nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((b) => b.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
138
138
  let r = !0;
139
- const f = (p) => e.some((u) => {
139
+ const f = (b) => e.some((u) => {
140
140
  if (typeof u == "string")
141
- return Array.from(l.document.querySelectorAll(u)).some((z) => z === p.target || p.composedPath().includes(z));
141
+ return Array.from(l.document.querySelectorAll(u)).some((z) => z === b.target || b.composedPath().includes(z));
142
142
  {
143
143
  const z = he(u);
144
- return z && (p.target === z || p.composedPath().includes(z));
144
+ return z && (b.target === z || b.composedPath().includes(z));
145
145
  }
146
146
  }), C = [
147
- bt(l, "click", (p) => {
147
+ bt(l, "click", (b) => {
148
148
  const u = he(t);
149
- if (!(!u || u === p.target || p.composedPath().includes(u))) {
150
- if (p.detail === 0 && (r = !f(p)), !r) {
149
+ if (!(!u || u === b.target || b.composedPath().includes(u))) {
150
+ if (b.detail === 0 && (r = !f(b)), !r) {
151
151
  r = !0;
152
152
  return;
153
153
  }
154
- o(p);
154
+ o(b);
155
155
  }
156
156
  }, { passive: !0, capture: i }),
157
- bt(l, "pointerdown", (p) => {
157
+ bt(l, "pointerdown", (b) => {
158
158
  const u = he(t);
159
- r = !f(p) && !!(u && !p.composedPath().includes(u));
159
+ r = !f(b) && !!(u && !b.composedPath().includes(u));
160
160
  }, { passive: !0 }),
161
- a && bt(l, "blur", (p) => {
161
+ a && bt(l, "blur", (b) => {
162
162
  setTimeout(() => {
163
163
  var u;
164
164
  const z = he(t);
165
- ((u = l.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(z != null && z.contains(l.document.activeElement)) && o(p);
165
+ ((u = l.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(z != null && z.contains(l.document.activeElement)) && o(b);
166
166
  }, 0);
167
167
  })
168
168
  ].filter(Boolean);
169
- return () => C.forEach((p) => p());
169
+ return () => C.forEach((b) => b());
170
170
  }
171
171
  function fl() {
172
172
  const t = A(!1), o = It();
@@ -183,18 +183,18 @@ function pl(t, o, n = {}) {
183
183
  let i;
184
184
  const a = hl(() => l && "ResizeObserver" in l), r = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
- }, f = K(() => Array.isArray(t) ? t.map((m) => he(m)) : [he(t)]), g = Y(
186
+ }, f = K(() => Array.isArray(t) ? t.map((v) => he(v)) : [he(t)]), y = Y(
187
187
  f,
188
- (m) => {
188
+ (v) => {
189
189
  if (r(), a.value && l) {
190
190
  i = new ResizeObserver(o);
191
- for (const p of m)
192
- p && i.observe(p, e);
191
+ for (const b of v)
192
+ b && i.observe(b, e);
193
193
  }
194
194
  },
195
195
  { immediate: !0, flush: "post" }
196
196
  ), C = () => {
197
- r(), g();
197
+ r(), y();
198
198
  };
199
199
  return bn(C), {
200
200
  isSupported: a,
@@ -203,38 +203,38 @@ function pl(t, o, n = {}) {
203
203
  }
204
204
  function vl(t, o = { width: 0, height: 0 }, n = {}) {
205
205
  const { window: l = at, box: e = "content-box" } = n, i = K(() => {
206
- var m, p;
207
- return (p = (m = he(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : p.includes("svg");
206
+ var v, b;
207
+ return (b = (v = he(t)) == null ? void 0 : v.namespaceURI) == null ? void 0 : b.includes("svg");
208
208
  }), a = A(o.width), r = A(o.height), { stop: f } = pl(
209
209
  t,
210
- ([m]) => {
211
- const p = e === "border-box" ? m.borderBoxSize : e === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
210
+ ([v]) => {
211
+ const b = e === "border-box" ? v.borderBoxSize : e === "content-box" ? v.contentBoxSize : v.devicePixelContentBoxSize;
212
212
  if (l && i.value) {
213
213
  const u = he(t);
214
214
  if (u) {
215
215
  const z = u.getBoundingClientRect();
216
216
  a.value = z.width, r.value = z.height;
217
217
  }
218
- } else if (p) {
219
- const u = Array.isArray(p) ? p : [p];
218
+ } else if (b) {
219
+ const u = Array.isArray(b) ? b : [b];
220
220
  a.value = u.reduce((z, { inlineSize: L }) => z + L, 0), r.value = u.reduce((z, { blockSize: L }) => z + L, 0);
221
221
  } else
222
- a.value = m.contentRect.width, r.value = m.contentRect.height;
222
+ a.value = v.contentRect.width, r.value = v.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
226
  ul(() => {
227
- const m = he(t);
228
- m && (a.value = "offsetWidth" in m ? m.offsetWidth : o.width, r.value = "offsetHeight" in m ? m.offsetHeight : o.height);
227
+ const v = he(t);
228
+ v && (a.value = "offsetWidth" in v ? v.offsetWidth : o.width, r.value = "offsetHeight" in v ? v.offsetHeight : o.height);
229
229
  });
230
- const g = Y(
230
+ const y = Y(
231
231
  () => he(t),
232
- (m) => {
233
- a.value = m ? o.width : 0, r.value = m ? o.height : 0;
232
+ (v) => {
233
+ a.value = v ? o.width : 0, r.value = v ? o.height : 0;
234
234
  }
235
235
  );
236
236
  function C() {
237
- f(), g();
237
+ f(), y();
238
238
  }
239
239
  return {
240
240
  width: a,
@@ -265,40 +265,40 @@ const Yt = {
265
265
  "splitter-dblclick"
266
266
  ],
267
267
  setup(t, { emit: o }) {
268
- const n = o, l = t, e = pn(), i = A([]), a = K(() => i.value.reduce((d, x) => (d[~~x.id] = x) && d, {})), r = K(() => i.value.length), f = A(null), g = A(!1), C = A({
268
+ const n = o, l = t, e = pn(), i = A([]), a = K(() => i.value.reduce((d, x) => (d[~~x.id] = x) && d, {})), r = K(() => i.value.length), f = A(null), y = A(!1), C = A({
269
269
  mouseDown: !1,
270
270
  dragging: !1,
271
271
  activeSplitter: null,
272
272
  cursorOffset: 0
273
273
  // Cursor offset within the splitter.
274
- }), m = A({
274
+ }), v = A({
275
275
  // Used to detect double click on touch devices.
276
276
  splitter: null,
277
277
  timeoutId: null
278
- }), p = K(() => ({
278
+ }), b = K(() => ({
279
279
  [`splitpanes splitpanes--${l.horizontal ? "horizontal" : "vertical"}`]: !0,
280
280
  "splitpanes--dragging": C.value.dragging
281
281
  })), u = () => {
282
- document.addEventListener("mousemove", b, { passive: !1 }), document.addEventListener("mouseup", N), "ontouchstart" in window && (document.addEventListener("touchmove", b, { passive: !1 }), document.addEventListener("touchend", N));
282
+ document.addEventListener("mousemove", m, { passive: !1 }), document.addEventListener("mouseup", $), "ontouchstart" in window && (document.addEventListener("touchmove", m, { passive: !1 }), document.addEventListener("touchend", $));
283
283
  }, z = () => {
284
- document.removeEventListener("mousemove", b, { passive: !1 }), document.removeEventListener("mouseup", N), "ontouchstart" in window && (document.removeEventListener("touchmove", b, { passive: !1 }), document.removeEventListener("touchend", N));
284
+ document.removeEventListener("mousemove", m, { passive: !1 }), document.removeEventListener("mouseup", $), "ontouchstart" in window && (document.removeEventListener("touchmove", m, { passive: !1 }), document.removeEventListener("touchend", $));
285
285
  }, L = (d, x) => {
286
286
  const _ = d.target.closest(".splitpanes__splitter");
287
287
  if (_) {
288
- const { left: S, top: F } = _.getBoundingClientRect(), { clientX: T, clientY: q } = "ontouchstart" in window && d.touches ? d.touches[0] : d;
289
- C.value.cursorOffset = l.horizontal ? q - F : T - S;
288
+ const { left: S, top: F } = _.getBoundingClientRect(), { clientX: T, clientY: W } = "ontouchstart" in window && d.touches ? d.touches[0] : d;
289
+ C.value.cursorOffset = l.horizontal ? W - F : T - S;
290
290
  }
291
291
  u(), C.value.mouseDown = !0, C.value.activeSplitter = x;
292
- }, b = (d) => {
292
+ }, m = (d) => {
293
293
  C.value.mouseDown && (d.preventDefault(), C.value.dragging = !0, requestAnimationFrame(() => {
294
294
  H(we(d)), j("resize", { event: d }, !0);
295
295
  }));
296
- }, N = (d) => {
296
+ }, $ = (d) => {
297
297
  C.value.dragging && j("resized", { event: d }, !0), C.value.mouseDown = !1, C.value.activeSplitter = null, setTimeout(() => {
298
298
  C.value.dragging = !1, z();
299
299
  }, 100);
300
- }, D = (d, x) => {
301
- "ontouchstart" in window && (d.preventDefault(), m.value.splitter === x ? (clearTimeout(m.value.timeoutId), m.value.timeoutId = null, ee(d, x), m.value.splitter = null) : (m.value.splitter = x, m.value.timeoutId = setTimeout(() => m.value.splitter = null, 500))), C.value.dragging || j("splitter-click", { event: d, index: x }, !0);
300
+ }, q = (d, x) => {
301
+ "ontouchstart" in window && (d.preventDefault(), v.value.splitter === x ? (clearTimeout(v.value.timeoutId), v.value.timeoutId = null, ee(d, x), v.value.splitter = null) : (v.value.splitter = x, v.value.timeoutId = setTimeout(() => v.value.splitter = null, 500))), C.value.dragging || j("splitter-click", { event: d, index: x }, !0);
302
302
  }, ee = (d, x) => {
303
303
  if (j("splitter-dblclick", { event: d, index: x }, !0), l.maximizePanes) {
304
304
  let _ = 0;
@@ -329,7 +329,7 @@ const Yt = {
329
329
  nextReachedMinPanes: 0
330
330
  };
331
331
  const S = 0 + (l.pushOtherPanes ? 0 : _.prevPanesSize), F = 100 - (l.pushOtherPanes ? 0 : _.nextPanesSize), T = Math.max(Math.min(R(d), F), S);
332
- let q = [x, x + 1], Z = i.value[q[0]] || null, ue = i.value[q[1]] || null;
332
+ let W = [x, x + 1], Z = i.value[W[0]] || null, ue = i.value[W[1]] || null;
333
333
  const ht = Z.max < 100 && T >= Z.max + _.prevPanesSize, pt = ue.max < 100 && T <= 100 - (ue.max + O(x + 1));
334
334
  if (ht || pt) {
335
335
  ht ? (Z.size = Z.max, ue.size = Math.max(100 - Z.max - _.prevPanesSize - _.nextPanesSize, 0)) : (Z.size = Math.max(100 - ue.max - _.prevPanesSize - O(x + 1), 0), ue.size = ue.max);
@@ -338,7 +338,7 @@ const Yt = {
338
338
  if (l.pushOtherPanes) {
339
339
  const vt = ce(_, T);
340
340
  if (!vt) return;
341
- ({ sums: _, panesToResize: q } = vt), Z = i.value[q[0]] || null, ue = i.value[q[1]] || null;
341
+ ({ sums: _, panesToResize: W } = vt), Z = i.value[W[0]] || null, ue = i.value[W[1]] || null;
342
342
  }
343
343
  Z !== null && (Z.size = Math.min(Math.max(T - _.prevPanesSize - _.prevReachedMinPanes, Z.min), Z.max)), ue !== null && (ue.size = Math.min(Math.max(100 - T - _.nextPanesSize - _.nextReachedMinPanes, ue.min), ue.max));
344
344
  }, ce = (d, x) => {
@@ -359,9 +359,9 @@ const Yt = {
359
359
  const S = _.classList.contains("splitpanes__pane"), F = _.classList.contains("splitpanes__splitter");
360
360
  !S && !F && (_.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
361
361
  }
362
- }, Ne = (d, x, _ = !1) => {
362
+ }, Te = (d, x, _ = !1) => {
363
363
  const S = d - 1, F = document.createElement("div");
364
- F.classList.add("splitpanes__splitter"), _ || (F.onmousedown = (T) => L(T, S), typeof window < "u" && "ontouchstart" in window && (F.ontouchstart = (T) => L(T, S)), F.onclick = (T) => D(T, S + 1)), F.ondblclick = (T) => ee(T, S + 1), x.parentNode.insertBefore(F, x);
364
+ F.classList.add("splitpanes__splitter"), _ || (F.onmousedown = (T) => L(T, S), typeof window < "u" && "ontouchstart" in window && (F.ontouchstart = (T) => L(T, S)), F.onclick = (T) => q(T, S + 1)), F.ondblclick = (T) => ee(T, S + 1), x.parentNode.insertBefore(F, x);
365
365
  }, Ee = (d) => {
366
366
  d.onmousedown = void 0, d.onclick = void 0, d.ondblclick = void 0, d.remove();
367
367
  }, me = () => {
@@ -371,17 +371,17 @@ const Yt = {
371
371
  S.className.includes("splitpanes__splitter") && Ee(S);
372
372
  let _ = 0;
373
373
  for (const S of x)
374
- S.className.includes("splitpanes__pane") && (!_ && l.firstSplitter ? Ne(_, S, !0) : _ && Ne(_, S), _++);
375
- }, $e = ({ uid: d, ...x }) => {
374
+ S.className.includes("splitpanes__pane") && (!_ && l.firstSplitter ? Te(_, S, !0) : _ && Te(_, S), _++);
375
+ }, Ne = ({ uid: d, ...x }) => {
376
376
  const _ = a.value[d];
377
377
  for (const [S, F] of Object.entries(x)) _[S] = F;
378
378
  }, ft = (d) => {
379
379
  var x;
380
380
  let _ = -1;
381
- Array.from(((x = f.value) == null ? void 0 : x.children) || []).some((S) => (S.className.includes("splitpanes__pane") && _++, S.isSameNode(d.el))), i.value.splice(_, 0, { ...d, index: _ }), i.value.forEach((S, F) => S.index = F), g.value && Se(() => {
381
+ Array.from(((x = f.value) == null ? void 0 : x.children) || []).some((S) => (S.className.includes("splitpanes__pane") && _++, S.isSameNode(d.el))), i.value.splice(_, 0, { ...d, index: _ }), i.value.forEach((S, F) => S.index = F), y.value && Se(() => {
382
382
  me(), ae({ addedPane: i.value[_] }), j("pane-add", { pane: i.value[_] });
383
383
  });
384
- }, Ge = (d) => {
384
+ }, Ue = (d) => {
385
385
  const x = i.value.findIndex((S) => S.id === d);
386
386
  i.value[x].el = null;
387
387
  const _ = i.value.splice(x, 1)[0];
@@ -389,14 +389,14 @@ const Yt = {
389
389
  me(), j("pane-remove", { pane: _ }), ae({ removedPane: { ..._ } });
390
390
  });
391
391
  }, ae = (d = {}) => {
392
- !d.addedPane && !d.removedPane ? ke() : i.value.some((x) => x.givenSize !== null || x.min || x.max < 100) ? Qe(d) : pe(), g.value && j("resized");
392
+ !d.addedPane && !d.removedPane ? ke() : i.value.some((x) => x.givenSize !== null || x.min || x.max < 100) ? Ge(d) : pe(), y.value && j("resized");
393
393
  }, pe = () => {
394
394
  const d = 100 / r.value;
395
395
  let x = 0;
396
396
  const _ = [], S = [];
397
397
  for (const F of i.value)
398
398
  F.size = Math.max(Math.min(d, F.max), F.min), x -= F.size, F.size >= F.max && _.push(F.id), F.size <= F.min && S.push(F.id);
399
- x > 0.1 && Oe(x, _, S);
399
+ x > 0.1 && $e(x, _, S);
400
400
  }, ke = () => {
401
401
  let d = 100;
402
402
  const x = [], _ = [];
@@ -407,31 +407,31 @@ const Yt = {
407
407
  if (d > 0.1) {
408
408
  for (const T of i.value)
409
409
  T.givenSize === null && (T.size = Math.max(Math.min(d / (r.value - S), T.max), T.min)), F -= T.size;
410
- F > 0.1 && Oe(F, x, _);
410
+ F > 0.1 && $e(F, x, _);
411
411
  }
412
- }, Qe = ({ addedPane: d, removedPane: x } = {}) => {
412
+ }, Ge = ({ addedPane: d, removedPane: x } = {}) => {
413
413
  let _ = 100 / r.value, S = 0;
414
414
  const F = [], T = [];
415
415
  ((d == null ? void 0 : d.givenSize) ?? null) !== null && (_ = (100 - d.givenSize) / (r.value - 1));
416
- for (const q of i.value)
417
- S -= q.size, q.size >= q.max && F.push(q.id), q.size <= q.min && T.push(q.id);
416
+ for (const W of i.value)
417
+ S -= W.size, W.size >= W.max && F.push(W.id), W.size <= W.min && T.push(W.id);
418
418
  if (!(Math.abs(S) < 0.1)) {
419
- for (const q of i.value)
420
- (d == null ? void 0 : d.givenSize) !== null && (d == null ? void 0 : d.id) === q.id || (q.size = Math.max(Math.min(_, q.max), q.min)), S -= q.size, q.size >= q.max && F.push(q.id), q.size <= q.min && T.push(q.id);
421
- S > 0.1 && Oe(S, F, T);
419
+ for (const W of i.value)
420
+ (d == null ? void 0 : d.givenSize) !== null && (d == null ? void 0 : d.id) === W.id || (W.size = Math.max(Math.min(_, W.max), W.min)), S -= W.size, W.size >= W.max && F.push(W.id), W.size <= W.min && T.push(W.id);
421
+ S > 0.1 && $e(S, F, T);
422
422
  }
423
- }, Oe = (d, x, _) => {
423
+ }, $e = (d, x, _) => {
424
424
  let S;
425
425
  d > 0 ? S = d / (r.value - x.length) : S = d / (r.value - _.length), i.value.forEach((F, T) => {
426
426
  if (d > 0 && !x.includes(F.id)) {
427
- const q = Math.max(Math.min(F.size + S, F.max), F.min), Z = q - F.size;
428
- d -= Z, F.size = q;
427
+ const W = Math.max(Math.min(F.size + S, F.max), F.min), Z = W - F.size;
428
+ d -= Z, F.size = W;
429
429
  } else if (!_.includes(F.id)) {
430
- const q = Math.max(Math.min(F.size + S, F.max), F.min), Z = q - F.size;
431
- d -= Z, F.size = q;
430
+ const W = Math.max(Math.min(F.size + S, F.max), F.min), Z = W - F.size;
431
+ d -= Z, F.size = W;
432
432
  }
433
433
  }), Math.abs(d) > 0.1 && Se(() => {
434
- g.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
434
+ y.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
435
435
  });
436
436
  }, j = (d, x = void 0, _ = !1) => {
437
437
  const S = (x == null ? void 0 : x.index) ?? C.value.activeSplitter ?? null;
@@ -446,17 +446,17 @@ const Yt = {
446
446
  });
447
447
  };
448
448
  Y(() => l.firstSplitter, () => me()), Le(() => {
449
- ze(), me(), ae(), j("ready"), g.value = !0;
450
- }), vn(() => g.value = !1);
451
- const Ke = () => {
449
+ ze(), me(), ae(), j("ready"), y.value = !0;
450
+ }), vn(() => y.value = !1);
451
+ const Qe = () => {
452
452
  var d;
453
453
  return kt(
454
454
  "div",
455
- { ref: f, class: p.value },
455
+ { ref: f, class: b.value },
456
456
  (d = e.default) == null ? void 0 : d.call(e)
457
457
  );
458
458
  };
459
- return xe("panes", i), xe("indexedPanes", a), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", $e), xe("onPaneAdd", ft), xe("onPaneRemove", Ge), xe("onPaneClick", J), (d, x) => (c(), re(Xn(Ke)));
459
+ return xe("panes", i), xe("indexedPanes", a), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", Ne), xe("onPaneAdd", ft), xe("onPaneRemove", Ue), xe("onPaneClick", J), (d, x) => (c(), re(Xn(Qe)));
460
460
  }
461
461
  }, gt = {
462
462
  __name: "pane",
@@ -467,41 +467,41 @@ const Yt = {
467
467
  },
468
468
  setup(t) {
469
469
  var o;
470
- const n = t, l = Ie("requestUpdate"), e = Ie("onPaneAdd"), i = Ie("horizontal"), a = Ie("onPaneRemove"), r = Ie("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, g = Ie("indexedPanes"), C = K(() => g.value[f]), m = A(null), p = K(() => {
471
- const b = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
- return Math.max(Math.min(b, z.value), u.value);
470
+ const n = t, l = Ie("requestUpdate"), e = Ie("onPaneAdd"), i = Ie("horizontal"), a = Ie("onPaneRemove"), r = Ie("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, y = Ie("indexedPanes"), C = K(() => y.value[f]), v = A(null), b = K(() => {
471
+ const m = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
+ return Math.max(Math.min(m, z.value), u.value);
473
473
  }), u = K(() => {
474
- const b = parseFloat(n.minSize);
475
- return isNaN(b) ? 0 : b;
474
+ const m = parseFloat(n.minSize);
475
+ return isNaN(m) ? 0 : m;
476
476
  }), z = K(() => {
477
- const b = parseFloat(n.maxSize);
478
- return isNaN(b) ? 100 : b;
477
+ const m = parseFloat(n.maxSize);
478
+ return isNaN(m) ? 100 : m;
479
479
  }), L = K(() => {
480
- var b;
481
- return `${i.value ? "height" : "width"}: ${(b = C.value) == null ? void 0 : b.size}%`;
480
+ var m;
481
+ return `${i.value ? "height" : "width"}: ${(m = C.value) == null ? void 0 : m.size}%`;
482
482
  });
483
- return Y(() => p.value, (b) => l({ uid: f, size: b })), Y(() => u.value, (b) => l({ uid: f, min: b })), Y(() => z.value, (b) => l({ uid: f, max: b })), Le(() => {
483
+ return Y(() => b.value, (m) => l({ uid: f, size: m })), Y(() => u.value, (m) => l({ uid: f, min: m })), Y(() => z.value, (m) => l({ uid: f, max: m })), Le(() => {
484
484
  e({
485
485
  id: f,
486
- el: m.value,
486
+ el: v.value,
487
487
  min: u.value,
488
488
  max: z.value,
489
489
  // The given size (useful to know the user intention).
490
- givenSize: n.size === void 0 ? null : p.value,
491
- size: p.value
490
+ givenSize: n.size === void 0 ? null : b.value,
491
+ size: b.value
492
492
  // The computed current size at any time.
493
493
  });
494
- }), vn(() => a(f)), (b, N) => (c(), h("div", {
494
+ }), vn(() => a(f)), (m, $) => (c(), h("div", {
495
495
  ref_key: "paneEl",
496
- ref: m,
496
+ ref: v,
497
497
  class: "splitpanes__pane",
498
- onClick: N[0] || (N[0] = (D) => U(r)(D, b._.uid)),
498
+ onClick: $[0] || ($[0] = (q) => U(r)(q, m._.uid)),
499
499
  style: G(L.value)
500
500
  }, [
501
- te(b.$slots, "default")
501
+ te(m.$slots, "default")
502
502
  ], 4));
503
503
  }
504
- }, Be = /^[a-z0-9]+(-[a-z0-9]+)*$/, ut = (t, o, n, l = "") => {
504
+ }, De = /^[a-z0-9]+(-[a-z0-9]+)*$/, ut = (t, o, n, l = "") => {
505
505
  const e = t.split(":");
506
506
  if (t.slice(0, 1) === "@") {
507
507
  if (e.length < 2 || e.length > 3)
@@ -511,13 +511,13 @@ const Yt = {
511
511
  if (e.length > 3 || !e.length)
512
512
  return null;
513
513
  if (e.length > 1) {
514
- const r = e.pop(), f = e.pop(), g = {
514
+ const r = e.pop(), f = e.pop(), y = {
515
515
  // Allow provider without '@': "provider:prefix:name"
516
516
  provider: e.length > 0 ? e[0] : l,
517
517
  prefix: f,
518
518
  name: r
519
519
  };
520
- return o && !lt(g) ? null : g;
520
+ return o && !nt(y) ? null : y;
521
521
  }
522
522
  const i = e[0], a = i.split("-");
523
523
  if (a.length > 1) {
@@ -526,7 +526,7 @@ const Yt = {
526
526
  prefix: a.shift(),
527
527
  name: a.join("-")
528
528
  };
529
- return o && !lt(r) ? null : r;
529
+ return o && !nt(r) ? null : r;
530
530
  }
531
531
  if (n && l === "") {
532
532
  const r = {
@@ -534,23 +534,23 @@ const Yt = {
534
534
  prefix: "",
535
535
  name: i
536
536
  };
537
- return o && !lt(r, n) ? null : r;
537
+ return o && !nt(r, n) ? null : r;
538
538
  }
539
539
  return null;
540
- }, lt = (t, o) => t ? !!((t.provider === "" || t.provider.match(Be)) && (o && t.prefix === "" || t.prefix.match(Be)) && t.name.match(Be)) : !1, wn = Object.freeze(
540
+ }, nt = (t, o) => t ? !!((t.provider === "" || t.provider.match(De)) && (o && t.prefix === "" || t.prefix.match(De)) && t.name.match(De)) : !1, wn = Object.freeze(
541
541
  {
542
542
  left: 0,
543
543
  top: 0,
544
544
  width: 16,
545
545
  height: 16
546
546
  }
547
- ), rt = Object.freeze({
547
+ ), st = Object.freeze({
548
548
  rotate: 0,
549
549
  vFlip: !1,
550
550
  hFlip: !1
551
551
  }), ct = Object.freeze({
552
552
  ...wn,
553
- ...rt
553
+ ...st
554
554
  }), Ct = Object.freeze({
555
555
  ...ct,
556
556
  body: "",
@@ -565,7 +565,7 @@ function ml(t, o) {
565
565
  function Xt(t, o) {
566
566
  const n = ml(t, o);
567
567
  for (const l in Ct)
568
- l in rt ? l in t && !(l in n) && (n[l] = rt[l]) : l in o ? n[l] = o[l] : l in t && (n[l] = t[l]);
568
+ l in st ? l in t && !(l in n) && (n[l] = st[l]) : l in o ? n[l] = o[l] : l in t && (n[l] = t[l]);
569
569
  return n;
570
570
  }
571
571
  function bl(t, o) {
@@ -628,7 +628,7 @@ function Cn(t) {
628
628
  const n = o.icons;
629
629
  for (const e in n) {
630
630
  const i = n[e];
631
- if (!e.match(Be) || typeof i.body != "string" || !yt(
631
+ if (!e.match(De) || typeof i.body != "string" || !yt(
632
632
  i,
633
633
  Ct
634
634
  ))
@@ -637,7 +637,7 @@ function Cn(t) {
637
637
  const l = o.aliases || /* @__PURE__ */ Object.create(null);
638
638
  for (const e in l) {
639
639
  const i = l[e], a = i.parent;
640
- if (!e.match(Be) || typeof a != "string" || !n[a] && !l[a] || !yt(
640
+ if (!e.match(De) || typeof a != "string" || !n[a] && !l[a] || !yt(
641
641
  i,
642
642
  Ct
643
643
  ))
@@ -671,19 +671,19 @@ function kl(t, o, n) {
671
671
  }
672
672
  return !1;
673
673
  }
674
- let Ve = !1;
674
+ let He = !1;
675
675
  function xn(t) {
676
- return typeof t == "boolean" && (Ve = t), Ve;
676
+ return typeof t == "boolean" && (He = t), He;
677
677
  }
678
678
  function Cl(t) {
679
- const o = typeof t == "string" ? ut(t, !0, Ve) : t;
679
+ const o = typeof t == "string" ? ut(t, !0, He) : t;
680
680
  if (o) {
681
681
  const n = Fe(o.provider, o.prefix), l = o.name;
682
682
  return n.icons[l] || (n.missing.has(l) ? null : void 0);
683
683
  }
684
684
  }
685
685
  function xl(t, o) {
686
- const n = ut(t, !0, Ve);
686
+ const n = ut(t, !0, He);
687
687
  if (!n)
688
688
  return !1;
689
689
  const l = Fe(n.provider, n.prefix);
@@ -692,14 +692,14 @@ function xl(t, o) {
692
692
  function Sl(t, o) {
693
693
  if (typeof t != "object")
694
694
  return !1;
695
- if (typeof o != "string" && (o = t.provider || ""), Ve && !o && !t.prefix) {
695
+ if (typeof o != "string" && (o = t.provider || ""), He && !o && !t.prefix) {
696
696
  let e = !1;
697
697
  return Cn(t) && (t.prefix = "", kn(t, (i, a) => {
698
698
  a && xl(i, a) && (e = !0);
699
699
  })), e;
700
700
  }
701
701
  const n = t.prefix;
702
- if (!lt({
702
+ if (!nt({
703
703
  provider: o,
704
704
  prefix: n,
705
705
  name: "a"
@@ -715,7 +715,7 @@ const Sn = Object.freeze({
715
715
  // Dimensions
716
716
  ...Sn,
717
717
  // Transformations
718
- ...rt
718
+ ...st
719
719
  }), Fl = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ll = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
720
720
  function en(t, o, n) {
721
721
  if (o === 1)
@@ -780,47 +780,47 @@ function Il(t, o) {
780
780
  };
781
781
  let i = n.body;
782
782
  [n, l].forEach((L) => {
783
- const b = [], N = L.hFlip, D = L.vFlip;
783
+ const m = [], $ = L.hFlip, q = L.vFlip;
784
784
  let ee = L.rotate;
785
- N ? D ? ee += 2 : (b.push(
785
+ $ ? q ? ee += 2 : (m.push(
786
786
  "translate(" + (e.width + e.left).toString() + " " + (0 - e.top).toString() + ")"
787
- ), b.push("scale(-1 1)"), e.top = e.left = 0) : D && (b.push(
787
+ ), m.push("scale(-1 1)"), e.top = e.left = 0) : q && (m.push(
788
788
  "translate(" + (0 - e.left).toString() + " " + (e.height + e.top).toString() + ")"
789
- ), b.push("scale(1 -1)"), e.top = e.left = 0);
789
+ ), m.push("scale(1 -1)"), e.top = e.left = 0);
790
790
  let J;
791
791
  switch (ee < 0 && (ee -= Math.floor(ee / 4) * 4), ee = ee % 4, ee) {
792
792
  case 1:
793
- J = e.height / 2 + e.top, b.unshift(
793
+ J = e.height / 2 + e.top, m.unshift(
794
794
  "rotate(90 " + J.toString() + " " + J.toString() + ")"
795
795
  );
796
796
  break;
797
797
  case 2:
798
- b.unshift(
798
+ m.unshift(
799
799
  "rotate(180 " + (e.width / 2 + e.left).toString() + " " + (e.height / 2 + e.top).toString() + ")"
800
800
  );
801
801
  break;
802
802
  case 3:
803
- J = e.width / 2 + e.left, b.unshift(
803
+ J = e.width / 2 + e.left, m.unshift(
804
804
  "rotate(-90 " + J.toString() + " " + J.toString() + ")"
805
805
  );
806
806
  break;
807
807
  }
808
- ee % 2 === 1 && (e.left !== e.top && (J = e.left, e.left = e.top, e.top = J), e.width !== e.height && (J = e.width, e.width = e.height, e.height = J)), b.length && (i = El(
808
+ ee % 2 === 1 && (e.left !== e.top && (J = e.left, e.left = e.top, e.top = J), e.width !== e.height && (J = e.width, e.width = e.height, e.height = J)), m.length && (i = El(
809
809
  i,
810
- '<g transform="' + b.join(" ") + '">',
810
+ '<g transform="' + m.join(" ") + '">',
811
811
  "</g>"
812
812
  ));
813
813
  });
814
- const a = l.width, r = l.height, f = e.width, g = e.height;
815
- let C, m;
816
- a === null ? (m = r === null ? "1em" : r === "auto" ? g : r, C = en(m, f / g)) : (C = a === "auto" ? f : a, m = r === null ? en(C, g / f) : r === "auto" ? g : r);
817
- const p = {}, u = (L, b) => {
818
- Ml(b) || (p[L] = b.toString());
814
+ const a = l.width, r = l.height, f = e.width, y = e.height;
815
+ let C, v;
816
+ a === null ? (v = r === null ? "1em" : r === "auto" ? y : r, C = en(v, f / y)) : (C = a === "auto" ? f : a, v = r === null ? en(C, y / f) : r === "auto" ? y : r);
817
+ const b = {}, u = (L, m) => {
818
+ Ml(m) || (b[L] = m.toString());
819
819
  };
820
- u("width", C), u("height", m);
821
- const z = [e.left, e.top, f, g];
822
- return p.viewBox = z.join(" "), {
823
- attributes: p,
820
+ u("width", C), u("height", v);
821
+ const z = [e.left, e.top, f, y];
822
+ return b.viewBox = z.join(" "), {
823
+ attributes: b,
824
824
  viewBox: z,
825
825
  body: i
826
826
  };
@@ -877,14 +877,14 @@ function Nt(t) {
877
877
  dataAfterTimeout: t.dataAfterTimeout !== !1
878
878
  };
879
879
  }
880
- const $t = /* @__PURE__ */ Object.create(null), We = [
880
+ const $t = /* @__PURE__ */ Object.create(null), qe = [
881
881
  "https://api.simplesvg.com",
882
882
  "https://api.unisvg.com"
883
- ], ot = [];
884
- for (; We.length > 0; )
885
- We.length === 1 || Math.random() > 0.5 ? ot.push(We.shift()) : ot.push(We.pop());
883
+ ], lt = [];
884
+ for (; qe.length > 0; )
885
+ qe.length === 1 || Math.random() > 0.5 ? lt.push(qe.shift()) : lt.push(qe.pop());
886
886
  $t[""] = Nt({
887
- resources: ["https://api.iconify.design"].concat(ot)
887
+ resources: ["https://api.iconify.design"].concat(lt)
888
888
  });
889
889
  function Rl(t, o) {
890
890
  const n = Nt(o);
@@ -930,8 +930,8 @@ const Dl = (t, o, n) => {
930
930
  prefix: o,
931
931
  icons: []
932
932
  }, r = 0;
933
- return n.forEach((f, g) => {
934
- r += f.length + 1, r >= e && g > 0 && (l.push(a), a = {
933
+ return n.forEach((f, y) => {
934
+ r += f.length + 1, r >= e && y > 0 && (l.push(a), a = {
935
935
  type: i,
936
936
  provider: t,
937
937
  prefix: o,
@@ -1013,15 +1013,15 @@ function jl(t) {
1013
1013
  if (l.name === e.name && l.prefix === e.prefix && l.provider === e.provider)
1014
1014
  return;
1015
1015
  l = e;
1016
- const i = e.provider, a = e.prefix, r = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), g = f[a] || (f[a] = Fe(i, a));
1016
+ const i = e.provider, a = e.prefix, r = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), y = f[a] || (f[a] = Fe(i, a));
1017
1017
  let C;
1018
- r in g.icons ? C = o.loaded : a === "" || g.missing.has(r) ? C = o.missing : C = o.pending;
1019
- const m = {
1018
+ r in y.icons ? C = o.loaded : a === "" || y.missing.has(r) ? C = o.missing : C = o.pending;
1019
+ const v = {
1020
1020
  provider: i,
1021
1021
  prefix: a,
1022
1022
  name: r
1023
1023
  };
1024
- C.push(m);
1024
+ C.push(v);
1025
1025
  }), o;
1026
1026
  }
1027
1027
  function Ln(t, o) {
@@ -1043,18 +1043,18 @@ function Ul(t) {
1043
1043
  a.pending = a.pending.filter((f) => {
1044
1044
  if (f.prefix !== e)
1045
1045
  return !0;
1046
- const g = f.name;
1047
- if (t.icons[g])
1046
+ const y = f.name;
1047
+ if (t.icons[y])
1048
1048
  a.loaded.push({
1049
1049
  provider: l,
1050
1050
  prefix: e,
1051
- name: g
1051
+ name: y
1052
1052
  });
1053
- else if (t.missing.has(g))
1053
+ else if (t.missing.has(y))
1054
1054
  a.missing.push({
1055
1055
  provider: l,
1056
1056
  prefix: e,
1057
- name: g
1057
+ name: y
1058
1058
  });
1059
1059
  else
1060
1060
  return n = !0, !0;
@@ -1111,43 +1111,43 @@ function Yl(t, o, n, l) {
1111
1111
  } else
1112
1112
  a = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
1113
  const r = Date.now();
1114
- let f = "pending", g = 0, C, m = null, p = [], u = [];
1114
+ let f = "pending", y = 0, C, v = null, b = [], u = [];
1115
1115
  typeof l == "function" && u.push(l);
1116
1116
  function z() {
1117
- m && (clearTimeout(m), m = null);
1117
+ v && (clearTimeout(v), v = null);
1118
1118
  }
1119
1119
  function L() {
1120
- f === "pending" && (f = "aborted"), z(), p.forEach((R) => {
1120
+ f === "pending" && (f = "aborted"), z(), b.forEach((R) => {
1121
1121
  R.status === "pending" && (R.status = "aborted");
1122
- }), p = [];
1122
+ }), b = [];
1123
1123
  }
1124
- function b(R, H) {
1124
+ function m(R, H) {
1125
1125
  H && (u = []), typeof R == "function" && u.push(R);
1126
1126
  }
1127
- function N() {
1127
+ function $() {
1128
1128
  return {
1129
1129
  startTime: r,
1130
1130
  payload: o,
1131
1131
  status: f,
1132
- queriesSent: g,
1133
- queriesPending: p.length,
1134
- subscribe: b,
1132
+ queriesSent: y,
1133
+ queriesPending: b.length,
1134
+ subscribe: m,
1135
1135
  abort: L
1136
1136
  };
1137
1137
  }
1138
- function D() {
1138
+ function q() {
1139
1139
  f = "failed", u.forEach((R) => {
1140
1140
  R(void 0, C);
1141
1141
  });
1142
1142
  }
1143
1143
  function ee() {
1144
- p.forEach((R) => {
1144
+ b.forEach((R) => {
1145
1145
  R.status === "pending" && (R.status = "aborted");
1146
- }), p = [];
1146
+ }), b = [];
1147
1147
  }
1148
1148
  function J(R, H, ce) {
1149
1149
  const se = H !== "success";
1150
- switch (p = p.filter((O) => O !== R), f) {
1150
+ switch (b = b.filter((O) => O !== R), f) {
1151
1151
  case "pending":
1152
1152
  break;
1153
1153
  case "failed":
@@ -1158,11 +1158,11 @@ function Yl(t, o, n, l) {
1158
1158
  return;
1159
1159
  }
1160
1160
  if (H === "abort") {
1161
- C = ce, D();
1161
+ C = ce, q();
1162
1162
  return;
1163
1163
  }
1164
1164
  if (se) {
1165
- C = ce, p.length || (a.length ? we() : D());
1165
+ C = ce, b.length || (a.length ? we() : q());
1166
1166
  return;
1167
1167
  }
1168
1168
  if (z(), ee(), !t.random) {
@@ -1179,13 +1179,13 @@ function Yl(t, o, n, l) {
1179
1179
  z();
1180
1180
  const R = a.shift();
1181
1181
  if (R === void 0) {
1182
- if (p.length) {
1183
- m = setTimeout(() => {
1184
- z(), f === "pending" && (ee(), D());
1182
+ if (b.length) {
1183
+ v = setTimeout(() => {
1184
+ z(), f === "pending" && (ee(), q());
1185
1185
  }, t.timeout);
1186
1186
  return;
1187
1187
  }
1188
- D();
1188
+ q();
1189
1189
  return;
1190
1190
  }
1191
1191
  const H = {
@@ -1195,9 +1195,9 @@ function Yl(t, o, n, l) {
1195
1195
  J(H, ce, se);
1196
1196
  }
1197
1197
  };
1198
- p.push(H), g++, m = setTimeout(we, t.rotate), n(R, o, H.callback);
1198
+ b.push(H), y++, v = setTimeout(we, t.rotate), n(R, o, H.callback);
1199
1199
  }
1200
- return setTimeout(we), N;
1200
+ return setTimeout(we), $;
1201
1201
  }
1202
1202
  function _n(t) {
1203
1203
  const o = {
@@ -1208,13 +1208,13 @@ function _n(t) {
1208
1208
  function l() {
1209
1209
  n = n.filter((r) => r().status === "pending");
1210
1210
  }
1211
- function e(r, f, g) {
1211
+ function e(r, f, y) {
1212
1212
  const C = Yl(
1213
1213
  o,
1214
1214
  r,
1215
1215
  f,
1216
- (m, p) => {
1217
- l(), g && g(m, p);
1216
+ (v, b) => {
1217
+ l(), y && y(v, b);
1218
1218
  }
1219
1219
  );
1220
1220
  return n.push(C), C;
@@ -1267,7 +1267,7 @@ function Zl(t, o, n) {
1267
1267
  }
1268
1268
  return !l || !e ? (n(void 0, 424), nn) : l.query(o, e, n)().abort;
1269
1269
  }
1270
- const ln = "iconify2", je = "iconify", zn = je + "-count", on = je + "-version", En = 36e5, eo = 168, to = 50;
1270
+ const ln = "iconify2", Ve = "iconify", zn = Ve + "-count", on = Ve + "-version", En = 36e5, eo = 168, to = 50;
1271
1271
  function Ft(t, o) {
1272
1272
  try {
1273
1273
  return t.getItem(o);
@@ -1303,12 +1303,12 @@ let At = !1;
1303
1303
  function no(t) {
1304
1304
  At = t;
1305
1305
  }
1306
- let tt = typeof window > "u" ? {} : window;
1306
+ let et = typeof window > "u" ? {} : window;
1307
1307
  function In(t) {
1308
1308
  const o = t + "Storage";
1309
1309
  try {
1310
- if (tt && tt[o] && typeof tt[o].length == "number")
1311
- return tt[o];
1310
+ if (et && et[o] && typeof et[o].length == "number")
1311
+ return et[o];
1312
1312
  } catch {
1313
1313
  }
1314
1314
  dt[t] = !1;
@@ -1322,16 +1322,16 @@ function Pn(t, o) {
1322
1322
  if (l) {
1323
1323
  const r = _t(n);
1324
1324
  for (let f = 0; f < r; f++)
1325
- sn(n, je + f.toString());
1325
+ sn(n, Ve + f.toString());
1326
1326
  }
1327
1327
  Rt(n, on, ln), Lt(n, 0);
1328
1328
  return;
1329
1329
  }
1330
1330
  const e = Math.floor(Date.now() / En) - eo, i = (r) => {
1331
- const f = je + r.toString(), g = Ft(n, f);
1332
- if (typeof g == "string") {
1331
+ const f = Ve + r.toString(), y = Ft(n, f);
1332
+ if (typeof y == "string") {
1333
1333
  try {
1334
- const C = JSON.parse(g);
1334
+ const C = JSON.parse(y);
1335
1335
  if (typeof C == "object" && typeof C.cached == "number" && C.cached > e && typeof C.provider == "string" && typeof C.data == "object" && typeof C.data.prefix == "string" && // Valid item: run callback
1336
1336
  o(C, r))
1337
1337
  return !0;
@@ -1394,7 +1394,7 @@ function oo(t, o) {
1394
1394
  };
1395
1395
  return Rt(
1396
1396
  e,
1397
- je + a.toString(),
1397
+ Ve + a.toString(),
1398
1398
  JSON.stringify(r)
1399
1399
  );
1400
1400
  }
@@ -1418,23 +1418,23 @@ function so(t, o) {
1418
1418
  i.prepare(n, l, e).forEach((r) => {
1419
1419
  Zl(n, r, (f) => {
1420
1420
  if (typeof f != "object")
1421
- r.icons.forEach((g) => {
1422
- t.missing.add(g);
1421
+ r.icons.forEach((y) => {
1422
+ t.missing.add(y);
1423
1423
  });
1424
1424
  else
1425
1425
  try {
1426
- const g = Tt(
1426
+ const y = Tt(
1427
1427
  t,
1428
1428
  f
1429
1429
  );
1430
- if (!g.length)
1430
+ if (!y.length)
1431
1431
  return;
1432
1432
  const C = t.pendingIcons;
1433
- C && g.forEach((m) => {
1434
- C.delete(m);
1433
+ C && y.forEach((v) => {
1434
+ C.delete(v);
1435
1435
  }), oo(t, f);
1436
- } catch (g) {
1437
- console.error(g);
1436
+ } catch (y) {
1437
+ console.error(y);
1438
1438
  }
1439
1439
  io(t);
1440
1440
  });
@@ -1459,18 +1459,18 @@ const ro = (t, o) => {
1459
1459
  const e = /* @__PURE__ */ Object.create(null), i = [];
1460
1460
  let a, r;
1461
1461
  return l.pending.forEach((f) => {
1462
- const { provider: g, prefix: C } = f;
1463
- if (C === r && g === a)
1462
+ const { provider: y, prefix: C } = f;
1463
+ if (C === r && y === a)
1464
1464
  return;
1465
- a = g, r = C, i.push(Fe(g, C));
1466
- const m = e[g] || (e[g] = /* @__PURE__ */ Object.create(null));
1467
- m[C] || (m[C] = []);
1465
+ a = y, r = C, i.push(Fe(y, C));
1466
+ const v = e[y] || (e[y] = /* @__PURE__ */ Object.create(null));
1467
+ v[C] || (v[C] = []);
1468
1468
  }), l.pending.forEach((f) => {
1469
- const { provider: g, prefix: C, name: m } = f, p = Fe(g, C), u = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
1470
- u.has(m) || (u.add(m), e[g][C].push(m));
1469
+ const { provider: y, prefix: C, name: v } = f, b = Fe(y, C), u = b.pendingIcons || (b.pendingIcons = /* @__PURE__ */ new Set());
1470
+ u.has(v) || (u.add(v), e[y][C].push(v));
1471
1471
  }), i.forEach((f) => {
1472
- const { provider: g, prefix: C } = f;
1473
- e[g][C].length && so(f, e[g][C]);
1472
+ const { provider: y, prefix: C } = f;
1473
+ e[y][C].length && so(f, e[y][C]);
1474
1474
  }), o ? Ql(o, l, i) : rn;
1475
1475
  };
1476
1476
  function ao(t, o) {
@@ -1565,10 +1565,10 @@ for (const t in cn) {
1565
1565
  for (const n in un)
1566
1566
  o[t + n] = un[n];
1567
1567
  }
1568
- const it = {};
1568
+ const ot = {};
1569
1569
  ["horizontal", "vertical"].forEach((t) => {
1570
1570
  const o = t.slice(0, 1) + "Flip";
1571
- it[t + "-flip"] = o, it[t.slice(0, 1) + "-flip"] = o, it[t + "Flip"] = o;
1571
+ ot[t + "-flip"] = o, ot[t.slice(0, 1) + "-flip"] = o, ot[t + "Flip"] = o;
1572
1572
  });
1573
1573
  function dn(t) {
1574
1574
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
@@ -1576,8 +1576,8 @@ function dn(t) {
1576
1576
  const fn = (t, o) => {
1577
1577
  const n = ao(an, o), l = { ...bo }, e = o.mode || "svg", i = {}, a = o.style, r = typeof a == "object" && !(a instanceof Array) ? a : {};
1578
1578
  for (let L in o) {
1579
- const b = o[L];
1580
- if (b !== void 0)
1579
+ const m = o[L];
1580
+ if (m !== void 0)
1581
1581
  switch (L) {
1582
1582
  case "icon":
1583
1583
  case "style":
@@ -1587,46 +1587,46 @@ const fn = (t, o) => {
1587
1587
  case "inline":
1588
1588
  case "hFlip":
1589
1589
  case "vFlip":
1590
- n[L] = b === !0 || b === "true" || b === 1;
1590
+ n[L] = m === !0 || m === "true" || m === 1;
1591
1591
  break;
1592
1592
  case "flip":
1593
- typeof b == "string" && co(n, b);
1593
+ typeof m == "string" && co(n, m);
1594
1594
  break;
1595
1595
  case "color":
1596
- i.color = b;
1596
+ i.color = m;
1597
1597
  break;
1598
1598
  case "rotate":
1599
- typeof b == "string" ? n[L] = fo(b) : typeof b == "number" && (n[L] = b);
1599
+ typeof m == "string" ? n[L] = fo(m) : typeof m == "number" && (n[L] = m);
1600
1600
  break;
1601
1601
  case "ariaHidden":
1602
1602
  case "aria-hidden":
1603
- b !== !0 && b !== "true" && delete l["aria-hidden"];
1603
+ m !== !0 && m !== "true" && delete l["aria-hidden"];
1604
1604
  break;
1605
1605
  default: {
1606
- const N = it[L];
1607
- N ? (b === !0 || b === "true" || b === 1) && (n[N] = !0) : an[L] === void 0 && (l[L] = b);
1606
+ const $ = ot[L];
1607
+ $ ? (m === !0 || m === "true" || m === 1) && (n[$] = !0) : an[L] === void 0 && (l[L] = m);
1608
1608
  }
1609
1609
  }
1610
1610
  }
1611
- const f = Il(t, n), g = f.attributes;
1611
+ const f = Il(t, n), y = f.attributes;
1612
1612
  if (n.inline && (i.verticalAlign = "-0.125em"), e === "svg") {
1613
1613
  l.style = {
1614
1614
  ...i,
1615
1615
  ...r
1616
- }, Object.assign(l, g);
1617
- let L = 0, b = o.id;
1618
- return typeof b == "string" && (b = b.replace(/-/g, "_")), l.innerHTML = $l(f.body, b ? () => b + "ID" + L++ : "iconifyVue"), kt("svg", l);
1616
+ }, Object.assign(l, y);
1617
+ let L = 0, m = o.id;
1618
+ return typeof m == "string" && (m = m.replace(/-/g, "_")), l.innerHTML = $l(f.body, m ? () => m + "ID" + L++ : "iconifyVue"), kt("svg", l);
1619
1619
  }
1620
- const { body: C, width: m, height: p } = t, u = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), z = ho(C, {
1621
- ...g,
1622
- width: m + "",
1623
- height: p + ""
1620
+ const { body: C, width: v, height: b } = t, u = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), z = ho(C, {
1621
+ ...y,
1622
+ width: v + "",
1623
+ height: b + ""
1624
1624
  });
1625
1625
  return l.style = {
1626
1626
  ...i,
1627
1627
  "--svg": mo(z),
1628
- width: dn(g.width),
1629
- height: dn(g.height),
1628
+ width: dn(y.width),
1629
+ height: dn(y.height),
1630
1630
  ...go,
1631
1631
  ...u ? zt : Nn,
1632
1632
  ...r
@@ -1745,8 +1745,8 @@ const yo = {
1745
1745
  const o = t, n = Zn(o, "expandedrows"), l = A(!1);
1746
1746
  function e(r) {
1747
1747
  if (o.expandall)
1748
- l.value = !l.value, n.value.forEach((f, g) => {
1749
- n.value.set(g, l.value);
1748
+ l.value = !l.value, n.value.forEach((f, y) => {
1749
+ n.value.set(y, l.value);
1750
1750
  });
1751
1751
  else {
1752
1752
  const f = n.value.get(r);
@@ -1760,10 +1760,10 @@ const yo = {
1760
1760
  new Set(r).size > 1 ? (a.value = -1, l.value = !0) : r[0] ? (a.value = 0, l.value = !0) : (a.value = 1, l.value = !1);
1761
1761
  }, { deep: !0 }), (r, f) => (c(), h("button", {
1762
1762
  class: "expandbtn",
1763
- onClick: f[0] || (f[0] = (g) => e(i(r.item)))
1763
+ onClick: f[0] || (f[0] = (y) => e(i(r.item)))
1764
1764
  }, [
1765
- n.value.get(i(r.item)) === !0 ? (c(), h(W, { key: 0 }, [
1766
- o.expandall ? (c(), h(W, { key: 0 }, [
1765
+ n.value.get(i(r.item)) === !0 ? (c(), h(D, { key: 0 }, [
1766
+ o.expandall ? (c(), h(D, { key: 0 }, [
1767
1767
  a.value ? (c(), re(U(ge), {
1768
1768
  key: 0,
1769
1769
  icon: "fluent:chevron-down-up-16-filled"
@@ -1775,8 +1775,8 @@ const yo = {
1775
1775
  key: 1,
1776
1776
  icon: "mdi:chevron-down"
1777
1777
  }))
1778
- ], 64)) : (c(), h(W, { key: 1 }, [
1779
- o.expandall ? (c(), h(W, { key: 0 }, [
1778
+ ], 64)) : (c(), h(D, { key: 1 }, [
1779
+ o.expandall ? (c(), h(D, { key: 0 }, [
1780
1780
  a.value == -1 ? (c(), re(U(ge), {
1781
1781
  key: 0,
1782
1782
  icon: "ion:chevron-expand"
@@ -1794,12 +1794,12 @@ const yo = {
1794
1794
  ], 64))
1795
1795
  ]));
1796
1796
  }
1797
- }), Ue = (t, o) => {
1797
+ }), je = (t, o) => {
1798
1798
  const n = t.__vccOpts || t;
1799
1799
  for (const [l, e] of o)
1800
1800
  n[l] = e;
1801
1801
  return n;
1802
- }, Et = /* @__PURE__ */ Ue(ko, [["__scopeId", "data-v-da3bc8d5"]]), Co = {
1802
+ }, Et = /* @__PURE__ */ je(ko, [["__scopeId", "data-v-da3bc8d5"]]), Co = {
1803
1803
  name: "ButtonRightPanel"
1804
1804
  }, xo = /* @__PURE__ */ _e({
1805
1805
  ...Co,
@@ -1819,7 +1819,7 @@ const yo = {
1819
1819
  ne(U(ge), { icon: "lucide:plus" })
1820
1820
  ]));
1821
1821
  }
1822
- }), hn = /* @__PURE__ */ Ue(xo, [["__scopeId", "data-v-b373d5f7"]]), So = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" }, Fo = {
1822
+ }), hn = /* @__PURE__ */ je(xo, [["__scopeId", "data-v-b373d5f7"]]), So = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" }, Fo = {
1823
1823
  name: "columnFilter"
1824
1824
  }, Lo = /* @__PURE__ */ _e({
1825
1825
  ...Fo,
@@ -1844,7 +1844,7 @@ const yo = {
1844
1844
  class: I({ active: n.column.condition === "" }),
1845
1845
  onClick: r[0] || (r[0] = V((f) => i(""), ["stop"]))
1846
1846
  }, B((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
1847
- n.column.type === "string" ? (c(), h(W, { key: 0 }, [
1847
+ n.column.type === "string" ? (c(), h(D, { key: 0 }, [
1848
1848
  k("button", {
1849
1849
  type: "button",
1850
1850
  class: I({ active: n.column.condition === "Contains" }),
@@ -1875,7 +1875,7 @@ const yo = {
1875
1875
  class: I({ active: n.column.condition === "EndsWith" }),
1876
1876
  onClick: r[6] || (r[6] = V((f) => i("EndsWith"), ["stop"]))
1877
1877
  }, B((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
1878
- ], 64)) : n.column.type === "number" ? (c(), h(W, { key: 1 }, [
1878
+ ], 64)) : n.column.type === "number" ? (c(), h(D, { key: 1 }, [
1879
1879
  k("button", {
1880
1880
  type: "button",
1881
1881
  class: I({ active: n.column.condition === "Equal" }),
@@ -1906,7 +1906,7 @@ const yo = {
1906
1906
  class: I({ active: n.column.condition === "LessThanOrEqual" }),
1907
1907
  onClick: r[12] || (r[12] = V((f) => i("LessThanOrEqual"), ["stop"]))
1908
1908
  }, B((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual (<=)"), 3)
1909
- ], 64)) : n.column.type === "date" ? (c(), h(W, { key: 2 }, [
1909
+ ], 64)) : n.column.type === "date" ? (c(), h(D, { key: 2 }, [
1910
1910
  k("button", {
1911
1911
  type: "button",
1912
1912
  class: I({ active: n.column.condition === "Equal" }),
@@ -1941,7 +1941,7 @@ const yo = {
1941
1941
  ])
1942
1942
  ], 512));
1943
1943
  }
1944
- }), Te = {
1944
+ }), rt = {
1945
1945
  string: [
1946
1946
  { value: "", label: "No Filter", icon: "" },
1947
1947
  { value: "Contains", label: "Contains", icon: "⊃" },
@@ -2005,35 +2005,36 @@ const yo = {
2005
2005
  emits: ["close", "filterChange", "sortChange", "clearFilter"],
2006
2006
  setup(t, { emit: o }) {
2007
2007
  const n = t, l = o, e = A(null), i = A(null), a = A(n.column.condition || ""), r = A(!1), f = K(() => {
2008
- var N;
2009
- const b = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2010
- return Te[b] || Te.string;
2011
- }), g = (b) => {
2012
- if (!n.columnFilterLang) return b.label;
2013
- const N = b.value === "" ? "NoFilter" : b.value;
2014
- return n.columnFilterLang[N] || b.label;
2015
- }, C = () => {
2016
- r.value = !1, n.column.condition = a.value, a.value === "" && (n.column.value = ""), l("filterChange", n.column);
2017
- }, m = (b) => n.currentSortColumn === n.column.field && n.currentSortDirection === b, p = (b) => {
2018
- l("sortChange", n.column.field, b), l("close");
2008
+ var $;
2009
+ const m = (($ = n.column.type) == null ? void 0 : $.toLowerCase()) || "string";
2010
+ return rt[m] || rt.string;
2011
+ }), y = (m) => {
2012
+ if (!n.columnFilterLang) return m.label;
2013
+ const $ = m.value === "" ? "NoFilter" : m.value;
2014
+ return n.columnFilterLang[$] || m.label;
2015
+ }, C = (m) => {
2016
+ const q = m.target.value;
2017
+ r.value = !1, a.value = q, n.column.condition = q, q === "" && (n.column.value = ""), l("filterChange", n.column);
2018
+ }, v = (m) => n.currentSortColumn === n.column.field && n.currentSortDirection === m, b = (m) => {
2019
+ l("sortChange", n.column.field, m), l("close");
2019
2020
  }, u = () => {
2020
- var N;
2021
- const b = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2022
- n.column.condition = b === "string" ? "Contains" : "Equal", n.column.value = "", a.value = n.column.condition, l("clearFilter", n.column), l("close");
2023
- }, z = (b) => {
2024
- const N = b.target;
2025
- r.value || N.tagName === "SELECT" || N.tagName === "OPTION" || e.value && e.value.contains(N) || N.closest(".bh-filter-button") || l("close");
2026
- }, L = (b) => {
2027
- b.key === "Escape" && l("close");
2021
+ var $;
2022
+ const m = (($ = n.column.type) == null ? void 0 : $.toLowerCase()) || "string";
2023
+ n.column.condition = m === "string" ? "Contains" : "Equal", n.column.value = "", a.value = n.column.condition, l("clearFilter", n.column), l("close");
2024
+ }, z = (m) => {
2025
+ const $ = m.target;
2026
+ r.value || $.tagName === "SELECT" || $.tagName === "OPTION" || e.value && e.value.contains($) || $.closest(".bh-filter-button") || l("close");
2027
+ }, L = (m) => {
2028
+ m.key === "Escape" && l("close");
2028
2029
  };
2029
2030
  return Le(() => {
2030
2031
  Se(() => {
2031
- var b;
2032
- (b = i.value) == null || b.focus(), document.addEventListener("click", z, !0), document.addEventListener("keydown", L);
2032
+ var m;
2033
+ (m = i.value) == null || m.focus(), document.addEventListener("click", z, !0), document.addEventListener("keydown", L);
2033
2034
  });
2034
2035
  }), mn(() => {
2035
2036
  document.removeEventListener("click", z, !0), document.removeEventListener("keydown", L);
2036
- }), (b, N) => (c(), h("div", {
2037
+ }), (m, $) => (c(), h("div", {
2037
2038
  ref_key: "dropdownRef",
2038
2039
  ref: e,
2039
2040
  class: "bh-filter-dropdown-container bh-absolute bh-z-[100] bh-bg-white dark:bh-bg-gray-800 bh-shadow-lg bh-rounded bh-top-full bh-right-0 bh-mt-1 bh-border bh-border-solid bh-border-gray-300 dark:bh-border-gray-600"
@@ -2044,18 +2045,18 @@ const yo = {
2044
2045
  ie(k("select", {
2045
2046
  ref_key: "selectRef",
2046
2047
  ref: i,
2047
- "onUpdate:modelValue": N[0] || (N[0] = (D) => a.value = D),
2048
+ "onUpdate:modelValue": $[0] || ($[0] = (q) => a.value = q),
2048
2049
  class: "bh-filter-select bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-border bh-border-gray-300 dark:bh-border-gray-600 bh-rounded bh-bg-white dark:bh-bg-gray-700 hover:bh-border-primary focus:bh-border-primary focus:bh-ring-1 focus:bh-ring-primary bh-outline-none bh-cursor-pointer bh-transition-colors",
2049
- onFocus: N[1] || (N[1] = (D) => r.value = !0),
2050
- onBlur: N[2] || (N[2] = (D) => r.value = !1),
2050
+ onFocus: $[1] || ($[1] = (q) => r.value = !0),
2051
+ onBlur: $[2] || ($[2] = (q) => r.value = !1),
2051
2052
  onChange: C
2052
2053
  }, [
2053
- (c(!0), h(W, null, oe(f.value, (D) => (c(), h("option", {
2054
- key: D.value,
2055
- value: D.value
2056
- }, B(D.icon ? D.icon + " " : "") + B(g(D)), 9, Mo))), 128))
2054
+ (c(!0), h(D, null, oe(f.value, (q) => (c(), h("option", {
2055
+ key: q.value,
2056
+ value: q.value
2057
+ }, B(q.icon ? q.icon + " " : "") + B(y(q)), 9, Mo))), 128))
2057
2058
  ], 544), [
2058
- [st, a.value]
2059
+ [it, a.value]
2059
2060
  ])
2060
2061
  ]),
2061
2062
  n.column.sort !== !1 ? (c(), h("div", Io, [
@@ -2064,18 +2065,18 @@ const yo = {
2064
2065
  k("button", {
2065
2066
  type: "button",
2066
2067
  class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2067
- "bh-bg-primary/10 bh-text-primary": m("asc"),
2068
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !m("asc")
2068
+ "bh-bg-primary/10 bh-text-primary": v("asc"),
2069
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !v("asc")
2069
2070
  }]),
2070
- onClick: N[3] || (N[3] = (D) => p("asc"))
2071
+ onClick: $[3] || ($[3] = (q) => b("asc"))
2071
2072
  }, " ↑ Sort Ascending ", 2),
2072
2073
  k("button", {
2073
2074
  type: "button",
2074
2075
  class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2075
- "bh-bg-primary/10 bh-text-primary": m("desc"),
2076
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !m("desc")
2076
+ "bh-bg-primary/10 bh-text-primary": v("desc"),
2077
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !v("desc")
2077
2078
  }]),
2078
- onClick: N[4] || (N[4] = (D) => p("desc"))
2079
+ onClick: $[4] || ($[4] = (q) => b("desc"))
2079
2080
  }, " ↓ Sort Descending ", 2)
2080
2081
  ])
2081
2082
  ])) : M("", !0),
@@ -2110,7 +2111,7 @@ const yo = {
2110
2111
  function Wo(t, o) {
2111
2112
  return c(), h("svg", Ro, qo);
2112
2113
  }
2113
- const Mt = /* @__PURE__ */ Ue(Oo, [["render", Wo]]), Do = {}, Bo = {
2114
+ const Mt = /* @__PURE__ */ je(Oo, [["render", Wo]]), Do = {}, Bo = {
2114
2115
  viewBox: "0 0 24 24",
2115
2116
  width: "24",
2116
2117
  height: "24",
@@ -2131,7 +2132,7 @@ const Mt = /* @__PURE__ */ Ue(Oo, [["render", Wo]]), Do = {}, Bo = {
2131
2132
  function jo(t, o) {
2132
2133
  return c(), h("svg", Bo, Vo);
2133
2134
  }
2134
- const Uo = /* @__PURE__ */ Ue(Do, [["render", jo]]), Go = {}, Qo = {
2135
+ const Uo = /* @__PURE__ */ je(Do, [["render", jo]]), Go = {}, Qo = {
2135
2136
  viewBox: "0 0 24 24",
2136
2137
  width: "24",
2137
2138
  height: "24",
@@ -2147,7 +2148,7 @@ const Uo = /* @__PURE__ */ Ue(Do, [["render", jo]]), Go = {}, Qo = {
2147
2148
  function Yo(t, o) {
2148
2149
  return c(), h("svg", Qo, Jo);
2149
2150
  }
2150
- const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei = { class: "bh-checkbox" }, ti = ["onClick"], ni = {
2151
+ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei = { class: "bh-checkbox" }, ti = ["onClick"], ni = {
2151
2152
  width: "16",
2152
2153
  height: "16",
2153
2154
  viewBox: "0 0 14 14",
@@ -2168,7 +2169,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2168
2169
  yi
2169
2170
  ], ki = ["onClick"], Ci = {
2170
2171
  name: "columnHeader"
2171
- }, nt = /* @__PURE__ */ _e({
2172
+ }, tt = /* @__PURE__ */ _e({
2172
2173
  ...Ci,
2173
2174
  props: [
2174
2175
  "all",
@@ -2189,37 +2190,27 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2189
2190
  ],
2190
2191
  setup(t, { emit: o }) {
2191
2192
  const n = A(null), l = t, e = o, i = A({}), a = K(() => {
2192
- var p;
2193
- const m = /* @__PURE__ */ new Map();
2194
- return (p = l.all) != null && p.columns && l.all.columns.forEach((u) => {
2195
- u.field && m.set(u.field, u);
2196
- }), m;
2197
- }), r = () => {
2198
- var m;
2199
- (m = l.all) != null && m.columns && l.all.columns.forEach((p) => {
2200
- var u;
2201
- if (p.filter && p.field && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel && (!p.condition || p.condition === "")) {
2202
- const z = ((u = p.type) == null ? void 0 : u.toLowerCase()) || "string", b = (Te[z] || Te.string).find((N) => N.value !== "");
2203
- b && (p.condition = b.value);
2204
- }
2205
- });
2206
- };
2193
+ var b;
2194
+ const v = /* @__PURE__ */ new Map();
2195
+ return (b = l.all) != null && b.columns && l.all.columns.forEach((u) => {
2196
+ u.field && v.set(u.field, u);
2197
+ }), v;
2198
+ });
2207
2199
  Y(
2208
2200
  () => {
2209
- var m;
2210
- return (m = l.all) == null ? void 0 : m.columns;
2201
+ var v;
2202
+ return (v = l.all) == null ? void 0 : v.columns;
2211
2203
  },
2212
2204
  () => {
2213
- r();
2214
2205
  },
2215
2206
  { immediate: !0, deep: !0 }
2216
2207
  ), Le(() => {
2217
- var m;
2218
- r(), (m = l.all) != null && m.columns && l.all.columns.forEach((p) => {
2219
- p.filter && p.field && (i.value[p.field] = p.value || "", cl(
2220
- () => i.value[p.field],
2208
+ var v;
2209
+ (v = l.all) != null && v.columns && l.all.columns.forEach((b) => {
2210
+ b.filter && b.field && (i.value[b.field] = b.value || "", cl(
2211
+ () => i.value[b.field],
2221
2212
  (u) => {
2222
- const z = a.value.get(p.field);
2213
+ const z = a.value.get(b.field);
2223
2214
  z && (z.type === "string" || z.type === "String" ? z.value = typeof u == "string" ? u.trim() : u : z.value = u, e("filterChange"));
2224
2215
  },
2225
2216
  { debounce: 300 }
@@ -2228,17 +2219,17 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2228
2219
  }), Y(() => l.checkAll, () => {
2229
2220
  n.value && (n.value.indeterminate = l.checkAll !== 0 ? !l.checkAll : !1, n.value.checked = l.checkAll);
2230
2221
  });
2231
- const g = (m) => {
2232
- if (!m.field) return !1;
2233
- const p = i.value[m.field];
2234
- return p !== "" && p !== null && p !== void 0;
2235
- }, C = (m) => {
2222
+ const f = (v) => {
2223
+ if (!v.field) return !1;
2224
+ const b = i.value[v.field];
2225
+ return b !== "" && b !== null && b !== void 0;
2226
+ }, y = (v) => v.condition && v.condition !== "", C = (v) => {
2236
2227
  var L;
2237
- if (!m.condition || m.condition === "") return "";
2238
- const p = ((L = m.type) == null ? void 0 : L.toLowerCase()) || "string", z = (Te[p] || Te.string).find((b) => b.value === m.condition);
2239
- return z ? l.columnFilterLang && l.columnFilterLang[m.condition] ? l.columnFilterLang[m.condition] : z.label : m.condition;
2228
+ if (!v.condition || v.condition === "") return "";
2229
+ const b = ((L = v.type) == null ? void 0 : L.toLowerCase()) || "string", z = (rt[b] || rt.string).find((m) => m.value === v.condition);
2230
+ return z ? l.columnFilterLang && l.columnFilterLang[v.condition] ? l.columnFilterLang[v.condition] : z.label : v.condition;
2240
2231
  };
2241
- return (m, p) => (c(), h("tr", Zo, [
2232
+ return (v, b) => (c(), h("tr", Zo, [
2242
2233
  l.all.hasCheckbox ? (c(), h("th", {
2243
2234
  key: "chkall",
2244
2235
  style: G({
@@ -2256,7 +2247,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2256
2247
  ref_key: "selectedAll",
2257
2248
  ref: n,
2258
2249
  type: "checkbox",
2259
- onClick: p[0] || (p[0] = V((u) => {
2250
+ onClick: b[0] || (b[0] = V((u) => {
2260
2251
  var z;
2261
2252
  return e("selectAll", (z = u == null ? void 0 : u.target) == null ? void 0 : z.checked);
2262
2253
  }, ["stop"]))
@@ -2292,7 +2283,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2292
2283
  expandall: l.all.expandall
2293
2284
  }, null, 8, ["expandedrows", "expandall"])) : M("", !0)
2294
2285
  ], 4)) : M("", !0),
2295
- (c(!0), h(W, null, oe(l.all.columns, (u, z) => (c(), h(W, null, [
2286
+ (c(!0), h(D, null, oe(l.all.columns, (u, z) => (c(), h(D, null, [
2296
2287
  u.hide ? M("", !0) : (c(), h("th", {
2297
2288
  key: u.field,
2298
2289
  class: I(["bh-select-none bh-z-[1]", [
@@ -2310,7 +2301,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2310
2301
  class: I(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2311
2302
  onClick: (L) => l.all.sortable && u.sort && e("sortChange", u.field)
2312
2303
  }, [
2313
- De(B(u.title) + " ", 1),
2304
+ We(B(u.title) + " ", 1),
2314
2305
  l.all.sortable && u.sort ? (c(), h("span", {
2315
2306
  key: 0,
2316
2307
  class: I(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
@@ -2333,9 +2324,9 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2333
2324
  ]))
2334
2325
  ], 2)) : M("", !0)
2335
2326
  ], 10, ti),
2336
- l.all.columnFilter && !l.isFooter ? (c(), h(W, { key: 0 }, [
2327
+ l.all.columnFilter && !l.isFooter ? (c(), h(D, { key: 0 }, [
2337
2328
  u.filter ? (c(), h("div", li, [
2338
- l.all.showFloatingFilterLabel ? M("", !0) : (c(), h(W, { key: 0 }, [
2329
+ l.all.showFloatingFilterLabel ? M("", !0) : (c(), h(D, { key: 0 }, [
2339
2330
  u.type === "string" || u.type === "String" ? ie((c(), h("input", {
2340
2331
  key: 0,
2341
2332
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
@@ -2367,17 +2358,17 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2367
2358
  key: 3,
2368
2359
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
2369
2360
  class: "bh-form-control",
2370
- onClick: p[1] || (p[1] = //@ts-ignore
2361
+ onClick: b[1] || (b[1] = //@ts-ignore
2371
2362
  (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2372
2363
  }, di, 8, ri)), [
2373
- [st, i.value[u.field]]
2364
+ [it, i.value[u.field]]
2374
2365
  ]) : M("", !0)
2375
2366
  ], 64)),
2376
2367
  l.all.showFloatingFilterLabel ? (c(), h("div", fi, [
2377
2368
  u.condition && u.condition !== "" && l.all.useNewColumnFilter ? (c(), h("label", {
2378
2369
  key: 0,
2379
2370
  class: I(["bh-floating-label", {
2380
- "bh-floating-label--active": g(u)
2371
+ "bh-floating-label--active": f(u)
2381
2372
  }])
2382
2373
  }, B(C(u)), 3)) : M("", !0),
2383
2374
  u.type === "string" || u.type === "String" ? ie((c(), h("input", {
@@ -2417,26 +2408,26 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2417
2408
  key: 4,
2418
2409
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
2419
2410
  class: "bh-form-control",
2420
- onClick: p[2] || (p[2] = //@ts-ignore
2411
+ onClick: b[2] || (b[2] = //@ts-ignore
2421
2412
  (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2422
2413
  }, wi, 8, mi)), [
2423
- [st, i.value[u.field]]
2414
+ [it, i.value[u.field]]
2424
2415
  ]) : M("", !0)
2425
2416
  ])) : M("", !0),
2426
2417
  u.type !== "bool" ? (c(), h("button", {
2427
2418
  key: 2,
2428
2419
  type: "button",
2429
2420
  class: I(["bh-filter-button", {
2430
- "!bh-bg-primary/10 !bh-border-primary": g(u),
2431
- "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !g(u),
2432
- "bh-filter-button--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel
2421
+ "!bh-bg-primary/10 !bh-border-primary": y(u),
2422
+ "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !y(u),
2423
+ "bh-filter-button--with-label": l.all.showFloatingFilterLabel
2433
2424
  }]),
2434
2425
  onClick: V((L) => e("toggleFilterMenu", u), ["stop"])
2435
2426
  }, [
2436
2427
  ne(Xo, {
2437
2428
  class: I(["bh-w-4", {
2438
- "bh-text-primary": g(u),
2439
- "bh-text-black/70 dark:bh-text-gray-300": !g(u)
2429
+ "bh-text-primary": y(u),
2430
+ "bh-text-black/70 dark:bh-text-gray-300": !y(u)
2440
2431
  }])
2441
2432
  }, null, 8, ["class"])
2442
2433
  ], 10, ki)) : M("", !0),
@@ -2445,8 +2436,8 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2445
2436
  column: u,
2446
2437
  type: u.type,
2447
2438
  columnFilterLang: l.columnFilterLang,
2448
- onClose: p[3] || (p[3] = (L) => e("toggleFilterMenu", null)),
2449
- onFilterChange: p[4] || (p[4] = (L) => e("filterChange"))
2439
+ onClose: b[3] || (b[3] = (L) => e("toggleFilterMenu", null)),
2440
+ onFilterChange: b[4] || (b[4] = (L) => e("filterChange"))
2450
2441
  }, null, 8, ["column", "type", "columnFilterLang"])), [
2451
2442
  [Gt, l.isOpenFilter === u.field]
2452
2443
  ]),
@@ -2456,9 +2447,9 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2456
2447
  columnFilterLang: l.columnFilterLang,
2457
2448
  currentSortColumn: l.currentSortColumn,
2458
2449
  currentSortDirection: l.currentSortDirection,
2459
- onClose: p[5] || (p[5] = (L) => e("toggleFilterMenu", null)),
2460
- onFilterChange: p[6] || (p[6] = (L) => e("filterChange")),
2461
- onSortChange: p[7] || (p[7] = (L, b) => e("sortChange", L, b)),
2450
+ onClose: b[5] || (b[5] = (L) => e("toggleFilterMenu", null)),
2451
+ onFilterChange: b[6] || (b[6] = (L) => e("filterChange")),
2452
+ onSortChange: b[7] || (b[7] = (L, m) => e("sortChange", L, m)),
2462
2453
  onClearFilter: (L) => {
2463
2454
  i.value[L.field] = "", L.value = "", l.currentSortColumn === L.field && e("sortChange", l.all.sortColumn || L.field, "asc"), e("filterChange");
2464
2455
  }
@@ -2631,46 +2622,46 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2631
2622
  var Ht, Vt;
2632
2623
  const l = pn(), e = t;
2633
2624
  for (const s of e.columns || []) {
2634
- const v = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2635
- s.type = v, s.isUnique = s.isUnique !== void 0 ? s.isUnique : !1, s.hide = s.hide !== void 0 ? s.hide : !1, s.filter = s.filter !== void 0 ? s.filter : !0, s.search = s.search !== void 0 ? s.search : !0, s.sort = s.sort !== void 0 ? s.sort : !0, s.html = s.html !== void 0 ? s.html : !1, s.condition = !v || v === "string" ? "Contains" : "Equal";
2625
+ const p = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2626
+ s.type = p, s.isUnique = s.isUnique !== void 0 ? s.isUnique : !1, s.hide = s.hide !== void 0 ? s.hide : !1, s.filter = s.filter !== void 0 ? s.filter : !0, s.search = s.search !== void 0 ? s.search : !0, s.sort = s.sort !== void 0 ? s.sort : !0, s.html = s.html !== void 0 ? s.html : !1, s.condition = !p || p === "string" ? "Contains" : "Equal";
2636
2627
  }
2637
2628
  const i = A([]), a = A(e.page), r = A(
2638
2629
  e.pagination ? e.pageSize : (Vt = e.rows) == null ? void 0 : Vt.length
2639
- ), f = e.pageSize, g = A(e.sortColumn), C = e.sortColumn, m = A(e.sortDirection), p = e.sortDirection, u = A(e.totalRows), z = A([]), L = A(null), b = A(e.loading), N = A(e.search);
2630
+ ), f = e.pageSize, y = A(e.sortColumn), C = e.sortColumn, v = A(e.sortDirection), b = e.sortDirection, u = A(e.totalRows), z = A([]), L = A(null), m = A(e.loading), $ = A(e.search);
2640
2631
  JSON.parse(JSON.stringify(e.columns));
2641
- const D = A(null), ee = A(null);
2632
+ const q = A(null), ee = A(null);
2642
2633
  let J = A(0);
2643
- const we = A(230), R = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, v) => {
2644
- if (!v) return;
2645
- const y = `${s.id || JSON.stringify(s)}-${v}`;
2646
- if (se.has(y))
2647
- return se.get(y);
2648
- const $ = v.split(".").reduce((E, X) => E == null ? void 0 : E[X], s);
2649
- return se.set(y, $), $;
2634
+ const we = A(230), R = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, p) => {
2635
+ if (!p) return;
2636
+ const g = `${s.id || JSON.stringify(s)}-${p}`;
2637
+ if (se.has(g))
2638
+ return se.get(g);
2639
+ const N = p.split(".").reduce((E, X) => E == null ? void 0 : E[X], s);
2640
+ return se.set(g, N), N;
2650
2641
  };
2651
2642
  Y(() => e.rows, () => {
2652
2643
  se.clear();
2653
2644
  }, { deep: !1 });
2654
2645
  const le = K(() => {
2655
- const s = e.columns.find((v) => v.isUnique);
2646
+ const s = e.columns.find((p) => p.isUnique);
2656
2647
  return (s == null ? void 0 : s.field) || null;
2657
- }), ve = K(() => le.value ? new Map(i.value.map((s, v) => [v, s[le.value]])) : null), ze = (s) => {
2658
- var v;
2659
- return le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2660
- }, Ne = (s, v) => {
2661
- const y = s._rowIndex !== void 0 ? s._rowIndex : s.id || v;
2662
- return ae.value.get(y) === !0;
2663
- }, Ee = K(() => typeof e.rowClass == "function"), me = K(() => typeof e.cellClass == "function"), $e = /* @__PURE__ */ new Map(), ft = (s) => {
2664
- const v = s ? "numeric" : "string";
2665
- return $e.has(v) || $e.set(v, new Intl.Collator(void 0, {
2648
+ }), ve = K(() => le.value ? new Map(i.value.map((s, p) => [p, s[le.value]])) : null), ze = (s) => {
2649
+ var p;
2650
+ return le.value ? ((p = ve.value) == null ? void 0 : p.get(s)) ?? s : s;
2651
+ }, Te = (s, p) => {
2652
+ const g = s._rowIndex !== void 0 ? s._rowIndex : s.id || p;
2653
+ return ae.value.get(g) === !0;
2654
+ }, Ee = K(() => typeof e.rowClass == "function"), me = K(() => typeof e.cellClass == "function"), Ne = /* @__PURE__ */ new Map(), ft = (s) => {
2655
+ const p = s ? "numeric" : "string";
2656
+ return Ne.has(p) || Ne.set(p, new Intl.Collator(void 0, {
2666
2657
  numeric: s,
2667
2658
  sensitivity: "base"
2668
- })), $e.get(v);
2669
- }, Ge = K(() => {
2670
- var $, E, X;
2659
+ })), Ne.get(p);
2660
+ }, Ue = K(() => {
2661
+ var N, E, X;
2671
2662
  let s = e.rows || [];
2672
2663
  if (!e.isServerMode) {
2673
- if (($ = e.columns) == null || $.forEach((w) => {
2664
+ if ((N = e.columns) == null || N.forEach((w) => {
2674
2665
  w.filter && (w.value !== void 0 && w.value !== null && w.value !== "" || w.condition === "IsNull" || w.condition == "IsNotNull") && (w.type === "string" ? (w.value && !w.condition && (w.condition = "Contains"), w.condition === "Contains" ? s = s.filter((P) => {
2675
2666
  var Q;
2676
2667
  return (Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase().includes(w.value.toLowerCase());
@@ -2689,32 +2680,32 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2689
2680
  }) : w.condition == "EndsWith" && (s = s.filter((P) => {
2690
2681
  var Q;
2691
2682
  return ((Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase().substr(w.value.length * -1)) === w.value.toLowerCase();
2692
- }))) : w.type === "number" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) === parseFloat(w.value)) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) !== parseFloat(w.value)) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) > parseFloat(w.value)) : w.condition === "GreaterThanOrEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) >= parseFloat(w.value)) : w.condition === "LessThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) < parseFloat(w.value)) : w.condition === "LessThanOrEqual" && (s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) <= parseFloat(w.value)))) : w.type === "date" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) === w.value) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) !== w.value) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) > w.value) : w.condition === "LessThan" && (s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) < w.value))) : w.type === "bool" && (s = s.filter((P) => O(P, w.field) === w.value)), w.condition === "IsNull" ? (s = s.filter((P) => O(P, w.field) == null || O(P, w.field) == ""), w.value = "") : w.condition === "IsNotNull" && (w.value = "", s = s.filter((P) => O(P, w.field))));
2693
- }), N.value && (s != null && s.length)) {
2683
+ }))) : w.type === "number" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) === parseFloat(w.value)) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) !== parseFloat(w.value)) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) > parseFloat(w.value)) : w.condition === "GreaterThanOrEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) >= parseFloat(w.value)) : w.condition === "LessThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) < parseFloat(w.value)) : w.condition === "LessThanOrEqual" && (s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) <= parseFloat(w.value)))) : w.type === "date" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && Je(O(P, w.field)) === w.value) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && Je(O(P, w.field)) !== w.value) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && Je(O(P, w.field)) > w.value) : w.condition === "LessThan" && (s = s.filter((P) => O(P, w.field) && Je(O(P, w.field)) < w.value))) : w.type === "bool" && (s = s.filter((P) => O(P, w.field) === w.value)), w.condition === "IsNull" ? (s = s.filter((P) => O(P, w.field) == null || O(P, w.field) == ""), w.value = "") : w.condition === "IsNotNull" && (w.value = "", s = s.filter((P) => O(P, w.field))));
2684
+ }), $.value && (s != null && s.length)) {
2694
2685
  let w = [];
2695
2686
  const P = (e.columns || []).filter((Q) => Q.search && !Q.hide).map((Q) => Q.field);
2696
- for (var v = 0; v < (s == null ? void 0 : s.length); v++)
2697
- for (var y = 0; y < P.length; y++)
2698
- if ((E = O(s[v], P[y])) != null && E.toString().toLowerCase().includes(N.value.toLowerCase())) {
2699
- w.push(s[v]);
2687
+ for (var p = 0; p < (s == null ? void 0 : s.length); p++)
2688
+ for (var g = 0; g < P.length; g++)
2689
+ if ((E = O(s[p], P[g])) != null && E.toString().toLowerCase().includes($.value.toLowerCase())) {
2690
+ w.push(s[p]);
2700
2691
  break;
2701
2692
  }
2702
2693
  s = w;
2703
2694
  }
2704
- const be = ((X = e.columns.find((w) => w.field == g.value)) == null ? void 0 : X.type) === "number", Un = ft(be || !1), Gn = m.value === "desc" ? -1 : 1;
2695
+ const be = ((X = e.columns.find((w) => w.field == y.value)) == null ? void 0 : X.type) === "number", Un = ft(be || !1), Gn = v.value === "desc" ? -1 : 1;
2705
2696
  s.sort((w, P) => {
2706
2697
  var jt, Ut;
2707
- const Q = (jt = g.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], w), Qn = (Ut = g.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], P);
2698
+ const Q = (jt = y.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], w), Qn = (Ut = y.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], P);
2708
2699
  return Un.compare(Q, Qn) * Gn;
2709
2700
  });
2710
2701
  }
2711
2702
  return s;
2712
2703
  }), ae = A(/* @__PURE__ */ new Map()), pe = () => {
2713
- let s = [], v = Ge.value;
2714
- e.isServerMode ? (u.value = e.totalRows || 0, s = v) : (u.value = (v == null ? void 0 : v.length) || 0, s = v.slice(x.value - 1, _.value)), e.hasSubtable && s.forEach(function(y, $) {
2715
- if (y.isExpanded !== void 0) {
2716
- const E = y._rowIndex !== void 0 ? y._rowIndex : y.id || $;
2717
- ae.value.set(E, y.isExpanded);
2704
+ let s = [], p = Ue.value;
2705
+ e.isServerMode ? (u.value = e.totalRows || 0, s = p) : (u.value = (p == null ? void 0 : p.length) || 0, s = p.slice(x.value - 1, _.value)), e.hasSubtable && s.forEach(function(g, N) {
2706
+ if (g.isExpanded !== void 0) {
2707
+ const E = g._rowIndex !== void 0 ? g._rowIndex : g.id || N;
2708
+ ae.value.set(E, g.isExpanded);
2718
2709
  }
2719
2710
  }), i.value = s || [];
2720
2711
  }, ke = () => {
@@ -2726,14 +2717,14 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2726
2717
  max-width: ${s}px !important;
2727
2718
  `;
2728
2719
  }
2729
- }, Qe = () => {
2720
+ }, Ge = () => {
2730
2721
  H.value ? R.value = e.leftmenuMinWidth : R.value = e.leftmenuDefaultWidth, ke();
2731
- }, Oe = () => {
2722
+ }, $e = () => {
2732
2723
  H.value = !H.value, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke(), j("currentLeftMenuSize", R.value);
2733
2724
  };
2734
2725
  Le(() => {
2735
2726
  pe(), Se(() => {
2736
- Ae.value <= 0 && (Ae.value = 10), j("currentTopMenuSize", e.topmenumin || 20), e.initialLeftMenuState !== void 0 ? (H.value = e.initialLeftMenuState, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) : R.value = e.leftmenuDefaultWidth, ke(), window.addEventListener("resize", Qe);
2727
+ Re.value <= 0 && (Re.value = 10), j("currentTopMenuSize", e.topmenumin || 20), e.initialLeftMenuState !== void 0 ? (H.value = e.initialLeftMenuState, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) : R.value = e.leftmenuDefaultWidth, ke(), window.addEventListener("resize", Ge);
2737
2728
  });
2738
2729
  });
2739
2730
  const j = n;
@@ -2757,10 +2748,10 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2757
2748
  Bt(s);
2758
2749
  },
2759
2750
  isRowSelected(s) {
2760
- return Ze(s);
2751
+ return Xe(s);
2761
2752
  },
2762
2753
  getFilteredRows() {
2763
- return Ge.value;
2754
+ return Ue.value;
2764
2755
  },
2765
2756
  collapseAll() {
2766
2757
  Dn();
@@ -2771,34 +2762,34 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2771
2762
  }), Y(() => e.initialLeftMenuState, (s) => {
2772
2763
  s !== void 0 && (H.value = s, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke());
2773
2764
  }, { immediate: !0 });
2774
- const Ke = (s, ...v) => s.replace(/{(\d+)}/g, (y, $) => typeof v[$] < "u" ? v[$] : y), d = K(() => {
2765
+ const Qe = (s, ...p) => s.replace(/{(\d+)}/g, (g, N) => typeof p[N] < "u" ? p[N] : g), d = K(() => {
2775
2766
  const s = r.value < 1 ? 1 : Math.ceil(u.value / r.value);
2776
2767
  return Math.max(s || 0, 1);
2777
2768
  }), x = K(() => (a.value - 1) * r.value + 1), _ = K(() => {
2778
2769
  const s = a.value * r.value;
2779
2770
  return u.value >= s ? s : u.value;
2780
2771
  }), S = K(() => {
2781
- let s, v;
2772
+ let s, p;
2782
2773
  return typeof e.showNumbersCount < "u" && e.showNumbersCount < d.value ? (s = Math.max(
2783
2774
  a.value - Math.floor(e.showNumbersCount / 2),
2784
2775
  1
2785
- ), v = s + e.showNumbersCount - 1, v > d.value && (v = d.value, s = v - e.showNumbersCount + 1)) : (s = 1, v = d.value), Array.from(Array(v + 1 - s).keys()).map(
2776
+ ), p = s + e.showNumbersCount - 1, p > d.value && (p = d.value, s = p - e.showNumbersCount + 1)) : (s = 1, p = d.value), Array.from(Array(p + 1 - s).keys()).map(
2786
2777
  (E) => s + E
2787
2778
  );
2788
2779
  });
2789
2780
  Y(
2790
2781
  () => e.loading,
2791
2782
  () => {
2792
- b.value = e.loading;
2783
+ m.value = e.loading;
2793
2784
  }
2794
2785
  );
2795
2786
  const F = (s) => {
2796
- s ? D.value === s.field ? D.value = null : D.value = s.field : D.value = null;
2787
+ s ? q.value === s.field ? q.value = null : q.value = s.field : q.value = null;
2797
2788
  }, T = () => {
2798
2789
  if (a.value == 1)
2799
2790
  return !1;
2800
2791
  a.value--;
2801
- }, q = (s) => {
2792
+ }, W = (s) => {
2802
2793
  a.value = s;
2803
2794
  }, Z = () => {
2804
2795
  if (a.value >= d.value)
@@ -2816,135 +2807,135 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2816
2807
  Y(() => r.value, () => {
2817
2808
  de(!1), e.isServerMode ? a.value === 1 ? Me("pagesize", !0) : a.value = 1 : (a.value = 1, pe(), j("pageSizeChange", r.value));
2818
2809
  });
2819
- const Je = (s, v) => {
2820
- let y = v || "asc";
2821
- v || s == g.value && m.value === "asc" && (y = "desc");
2822
- let $ = (a.value - 1) * r.value, E = r.value;
2823
- g.value = s, m.value = y, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: $, limit: E, field: s, direction: y });
2810
+ const Ke = (s, p) => {
2811
+ let g = p || "asc";
2812
+ p || s == y.value && v.value === "asc" && (g = "desc");
2813
+ let N = (a.value - 1) * r.value, E = r.value;
2814
+ y.value = s, v.value = g, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: N, limit: E, field: s, direction: g });
2824
2815
  }, qt = (s) => {
2825
2816
  L.value = s.length && i.value.length && s.length === i.value.length;
2826
- const v = i.value.filter((y, $) => {
2817
+ const p = i.value.filter((g, N) => {
2827
2818
  var X;
2828
- const E = le.value ? ((X = ve.value) == null ? void 0 : X.get($)) ?? $ : $;
2819
+ const E = le.value ? ((X = ve.value) == null ? void 0 : X.get(N)) ?? N : N;
2829
2820
  return z.value.includes(E);
2830
2821
  });
2831
- j("rowSelect", v);
2822
+ j("rowSelect", p);
2832
2823
  };
2833
2824
  Y(() => z.value, qt);
2834
2825
  const de = (s) => {
2835
2826
  s ? z.value = i.value.map(
2836
- (v, y) => {
2837
- var $;
2838
- return le.value ? (($ = ve.value) == null ? void 0 : $.get(y)) ?? y : y;
2827
+ (p, g) => {
2828
+ var N;
2829
+ return le.value ? ((N = ve.value) == null ? void 0 : N.get(g)) ?? g : g;
2839
2830
  }
2840
2831
  ) : z.value = [];
2841
- }, Re = () => {
2832
+ }, Oe = () => {
2842
2833
  de(!1), e.isServerMode ? a.value === 1 ? Me("filter", !0) : a.value = 1 : (a.value = 1, pe(), j("filterChange", e.columns));
2843
2834
  }, Wt = (s) => {
2844
- Re();
2835
+ Oe();
2845
2836
  }, $n = () => {
2846
- de(!1), e.isServerMode ? a.value === 1 ? Me("search", !0) : a.value = 1 : (a.value = 1, pe(), j("searchChange", N.value));
2837
+ de(!1), e.isServerMode ? a.value === 1 ? Me("search", !0) : a.value = 1 : (a.value = 1, pe(), j("searchChange", $.value));
2847
2838
  };
2848
2839
  Y(
2849
2840
  () => e.search,
2850
2841
  () => {
2851
- N.value = e.search, $n();
2842
+ $.value = e.search, $n();
2852
2843
  }
2853
2844
  );
2854
- const Ye = (s) => {
2845
+ const Je = (s) => {
2855
2846
  try {
2856
2847
  if (!s)
2857
2848
  return "";
2858
- const v = new Date(s), y = v.getDate(), $ = v.getMonth() + 1;
2859
- return v.getFullYear() + "-" + ($ > 9 ? $ : "0" + $) + "-" + (y > 9 ? y : "0" + y);
2849
+ const p = new Date(s), g = p.getDate(), N = p.getMonth() + 1;
2850
+ return p.getFullYear() + "-" + (N > 9 ? N : "0" + N) + "-" + (g > 9 ? g : "0" + g);
2860
2851
  } catch {
2861
2852
  }
2862
2853
  return "";
2863
- }, Xe = (s, v) => {
2854
+ }, Ye = (s, p) => {
2864
2855
  J.value++, J.value === 1 ? ee.value = setTimeout(() => {
2865
- J.value = 0, e.selectRowOnClick && (Ze(v) ? Bt(v) : Dt(v), qt(z.value)), j("rowClick", s);
2856
+ J.value = 0, e.selectRowOnClick && (Xe(p) ? Bt(p) : Dt(p), qt(z.value)), j("rowClick", s);
2866
2857
  }, we.value) : J.value === 2 && (clearTimeout(ee.value), J.value = 0, j("rowDBClick", s));
2867
- }, Me = (s, v = !1) => {
2858
+ }, Me = (s, p = !1) => {
2868
2859
  if (e.isServerMode) {
2869
2860
  On();
2870
- const y = {
2871
- current_page: v ? 1 : a.value,
2861
+ const g = {
2862
+ current_page: p ? 1 : a.value,
2872
2863
  pagesize: r.value,
2873
2864
  offset: (a.value - 1) * r.value,
2874
- sort_column: g.value,
2875
- sort_direction: m.value,
2876
- search: N.value,
2865
+ sort_column: y.value,
2866
+ sort_direction: v.value,
2867
+ search: $.value,
2877
2868
  column_filters: e.columns,
2878
2869
  change_type: s
2879
2870
  };
2880
- j("change", y);
2871
+ j("change", g);
2881
2872
  }
2882
2873
  }, On = () => {
2883
2874
  for (let s = 0; s < e.columns.length; s++) {
2884
- let v = e.columns[s];
2885
- 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"));
2875
+ let p = e.columns[s];
2876
+ p.filter && (p.value !== void 0 && p.value !== null && p.value !== "" || p.condition === "IsNull" || p.condition === "IsNotNull") && (p.type === "string" && p.value && !p.condition && (p.condition = "Contains"), p.type === "number" && p.value && !p.condition && (p.condition = "Equal"), p.type === "date" && p.value && !p.condition && (p.condition = "Equal"));
2886
2877
  }
2887
2878
  }, Rn = () => {
2888
2879
  de(!1);
2889
2880
  for (let s = 0; s < e.columns.length; s++)
2890
2881
  e.columns[s].value = "";
2891
- N.value = "", r.value = f, g.value = C, m.value = p, e.isServerMode ? a.value === 1 ? Me("reset", !0) : a.value = 1 : (a.value = 1, pe());
2892
- }, An = () => i.value.filter((v, y) => {
2882
+ $.value = "", r.value = f, y.value = C, v.value = b, e.isServerMode ? a.value === 1 ? Me("reset", !0) : a.value = 1 : (a.value = 1, pe());
2883
+ }, An = () => i.value.filter((p, g) => {
2893
2884
  var E;
2894
- const $ = le.value ? ((E = ve.value) == null ? void 0 : E.get(y)) ?? y : y;
2895
- return z.value.includes($);
2885
+ const N = le.value ? ((E = ve.value) == null ? void 0 : E.get(g)) ?? g : g;
2886
+ return z.value.includes(N);
2896
2887
  }), qn = () => e.columns, Wn = () => {
2897
2888
  z.value = [];
2898
2889
  }, Dt = (s) => {
2899
- var v;
2900
- if (!Ze(s)) {
2901
- const y = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2902
- z.value.push(y);
2890
+ var p;
2891
+ if (!Xe(s)) {
2892
+ const g = le.value ? ((p = ve.value) == null ? void 0 : p.get(s)) ?? s : s;
2893
+ z.value.push(g);
2903
2894
  }
2904
2895
  }, Bt = (s) => {
2905
- var v;
2906
- if (Ze(s)) {
2907
- const y = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2908
- z.value = z.value.filter(($) => $ !== y);
2896
+ var p;
2897
+ if (Xe(s)) {
2898
+ const g = le.value ? ((p = ve.value) == null ? void 0 : p.get(s)) ?? s : s;
2899
+ z.value = z.value.filter((N) => N !== g);
2909
2900
  }
2910
- }, Ze = (s) => {
2911
- var y;
2901
+ }, Xe = (s) => {
2902
+ var g;
2912
2903
  if (s >= i.value.length) return !1;
2913
- const v = le.value ? ((y = ve.value) == null ? void 0 : y.get(s)) ?? s : s;
2914
- return z.value.includes(v);
2904
+ const p = le.value ? ((g = ve.value) == null ? void 0 : g.get(s)) ?? s : s;
2905
+ return z.value.includes(p);
2915
2906
  }, Dn = () => {
2916
- ae.value.forEach((s, v) => {
2917
- ae.value.set(v, !1);
2907
+ ae.value.forEach((s, p) => {
2908
+ ae.value.set(p, !1);
2918
2909
  });
2919
2910
  };
2920
2911
  let fe = 0;
2921
2912
  e.hasCheckbox && fe++, e.hasSubtable && fe++, e.hasRightPanel && fe++;
2922
- const Ae = A(e.topmenusize), et = A(null), { height: Bn } = vl(et, { box: "border-box" }, { throttle: 100 }), Hn = Kt(() => {
2913
+ const Re = A(e.topmenusize), Ze = A(null), { height: Bn } = vl(Ze, { box: "border-box" }, { throttle: 100 }), Hn = Kt(() => {
2923
2914
  Se(() => {
2924
- let s = et.value;
2915
+ let s = Ze.value;
2925
2916
  if (s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement) {
2926
- const v = s.offsetHeight || 0;
2927
- j("currentTopMenuSize", v);
2917
+ const p = s.offsetHeight || 0;
2918
+ j("currentTopMenuSize", p);
2928
2919
  }
2929
2920
  });
2930
2921
  }, 50), Vn = rl((s) => {
2931
2922
  if (!s || !s.panes || !s.panes.length) return;
2932
- const v = s.panes[0].size;
2933
- Ae.value = v, Hn();
2923
+ const p = s.panes[0].size;
2924
+ Re.value = p, Hn();
2934
2925
  }, 16), jn = Kt(() => {
2935
- let s = et.value;
2926
+ let s = Ze.value;
2936
2927
  s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement && j("currentTopMenuSize", s.offsetHeight || 0);
2937
2928
  }, 50);
2938
- return Y(() => Ae.value, jn), mn(() => {
2939
- window.removeEventListener("resize", Qe), se.clear();
2940
- }), (s, v) => (c(), h("div", xi, [
2929
+ return Y(() => Re.value, jn), mn(() => {
2930
+ window.removeEventListener("resize", Ge), se.clear();
2931
+ }), (s, p) => (c(), h("div", xi, [
2941
2932
  ne(U(Yt), {
2942
2933
  class: "default-theme",
2943
2934
  style: G({ height: e.height })
2944
2935
  }, {
2945
- default: qe(() => [
2936
+ default: Ae(() => [
2946
2937
  ne(U(gt), null, {
2947
- default: qe(() => [
2938
+ default: Ae(() => [
2948
2939
  k("div", Si, [
2949
2940
  s.enableleftmenu ? (c(), h("div", {
2950
2941
  key: 0,
@@ -2964,7 +2955,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2964
2955
  ]),
2965
2956
  e.showResizeButton ? (c(), h("div", Li, [
2966
2957
  k("button", {
2967
- onClick: Oe,
2958
+ onClick: $e,
2968
2959
  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"
2969
2960
  }, [
2970
2961
  (c(), h("svg", {
@@ -2986,16 +2977,16 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2986
2977
  onResize: U(Vn),
2987
2978
  "push-other-panes": ""
2988
2979
  }, {
2989
- default: qe(() => [
2980
+ default: Ae(() => [
2990
2981
  s.enabletopmenu ? (c(), re(U(gt), {
2991
2982
  key: 0,
2992
2983
  ref_key: "topmenuel",
2993
- ref: et,
2994
- size: Ae.value || 10,
2984
+ ref: Ze,
2985
+ size: Re.value || 10,
2995
2986
  "max-size": s.topmenumax || 100,
2996
2987
  style: G({ "min-height": s.topmenumin + "px" })
2997
2988
  }, {
2998
- default: qe(() => [
2989
+ default: Ae(() => [
2999
2990
  te(s.$slots, "tabletopmenu", {}, () => [
3000
2991
  Mi
3001
2992
  ])
@@ -3005,7 +2996,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3005
2996
  ne(U(gt), {
3006
2997
  style: G({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3007
2998
  }, {
3008
- default: qe(() => [
2999
+ default: Ae(() => [
3009
3000
  s.enableHeaderArea ? (c(), h("div", {
3010
3001
  key: 0,
3011
3002
  class: "bh-w-full bh-overflow-auto",
@@ -3019,7 +3010,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3019
3010
  Pi
3020
3011
  ]),
3021
3012
  k("div", {
3022
- class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3013
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": m.value }]),
3023
3014
  style: G({
3024
3015
  overflow: "auto",
3025
3016
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - (e.footerOffset + (U(Bn) || 0)) + "px" : "auto"
@@ -3033,32 +3024,32 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3033
3024
  "bh-sticky bh-top-0 bh-z-10": e.stickyHeader
3034
3025
  })
3035
3026
  }, [
3036
- ne(nt, {
3027
+ ne(tt, {
3037
3028
  all: e,
3038
3029
  expandedrows: ae.value,
3039
- currentSortColumn: g.value,
3040
- currentSortDirection: m.value,
3041
- isOpenFilter: D.value,
3030
+ currentSortColumn: y.value,
3031
+ currentSortDirection: v.value,
3032
+ isOpenFilter: q.value,
3042
3033
  checkAll: L.value,
3043
3034
  columnFilterLang: e.columnFilterLang,
3044
3035
  onSelectAll: de,
3045
- onSortChange: Je,
3046
- onFilterChange: Re,
3036
+ onSortChange: Ke,
3037
+ onFilterChange: Oe,
3047
3038
  onToggleFilterMenu: F,
3048
3039
  onClearColumnFilter: Wt
3049
3040
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3050
3041
  ], 2),
3051
3042
  k("tbody", null, [
3052
- (c(!0), h(W, null, oe(i.value, (y, $) => (c(), h(W, {
3053
- key: ze($)
3043
+ (c(!0), h(D, null, oe(i.value, (g, N) => (c(), h(D, {
3044
+ key: ze(N)
3054
3045
  }, [
3055
3046
  u.value ? (c(), h("tr", {
3056
3047
  key: 0,
3057
3048
  class: I([
3058
- Ee.value ? s.rowClass(y) : e.rowClass,
3049
+ Ee.value ? s.rowClass(g) : e.rowClass,
3059
3050
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3060
3051
  ]),
3061
- onClick: V((E) => Xe(y, $), ["prevent"])
3052
+ onClick: V((E) => Ye(g, N), ["prevent"])
3062
3053
  }, [
3063
3054
  e.hasCheckbox ? (c(), h("td", {
3064
3055
  key: 0,
@@ -3069,10 +3060,10 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3069
3060
  }, [
3070
3061
  k("div", Ni, [
3071
3062
  ie(k("input", {
3072
- "onUpdate:modelValue": v[0] || (v[0] = (E) => z.value = E),
3063
+ "onUpdate:modelValue": p[0] || (p[0] = (E) => z.value = E),
3073
3064
  type: "checkbox",
3074
- value: ze($),
3075
- onClick: v[1] || (v[1] = V(() => {
3065
+ value: ze(N),
3066
+ onClick: p[1] || (p[1] = V(() => {
3076
3067
  }, ["stop"]))
3077
3068
  }, null, 8, $i), [
3078
3069
  [Qt, z.value]
@@ -3090,8 +3081,8 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3090
3081
  })
3091
3082
  }, [
3092
3083
  ne(hn, {
3093
- item: y,
3094
- onRightPanelClick: v[2] || (v[2] = (E) => j("rowRightPanelClick", E))
3084
+ item: g,
3085
+ onRightPanelClick: p[2] || (p[2] = (E) => j("rowRightPanelClick", E))
3095
3086
  }, null, 8, ["item"])
3096
3087
  ], 6)) : M("", !0),
3097
3088
  e.hasSubtable ? (c(), h("td", {
@@ -3102,15 +3093,15 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3102
3093
  })
3103
3094
  }, [
3104
3095
  ne(Et, {
3105
- item: { ...y, _rowIndex: $ },
3096
+ item: { ...g, _rowIndex: N },
3106
3097
  expandedrows: ae.value
3107
3098
  }, null, 8, ["item", "expandedrows"])
3108
3099
  ], 6)) : M("", !0),
3109
- (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3100
+ (c(!0), h(D, null, oe(e.columns, (E, X) => (c(), h(D, null, [
3110
3101
  E.hide ? M("", !0) : (c(), h("td", {
3111
3102
  key: E.field,
3112
3103
  class: I([
3113
- me.value ? s.cellClass(y) : e.cellClass,
3104
+ me.value ? s.cellClass(g) : e.cellClass,
3114
3105
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3115
3106
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3116
3107
  E.cellClass ? E.cellClass : ""
@@ -3118,37 +3109,37 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3118
3109
  }, [
3119
3110
  U(l)[E.field] ? te(s.$slots, E.field, {
3120
3111
  key: 0,
3121
- value: y
3112
+ value: g
3122
3113
  }) : E.cellRenderer ? (c(), h("div", {
3123
3114
  key: 1,
3124
- innerHTML: E.cellRenderer(y)
3125
- }, null, 8, Oi)) : (c(), h(W, { key: 2 }, [
3126
- De(B(O(y, E.field)), 1)
3115
+ innerHTML: E.cellRenderer(g)
3116
+ }, null, 8, Oi)) : (c(), h(D, { key: 2 }, [
3117
+ We(B(O(g, E.field)), 1)
3127
3118
  ], 64))
3128
3119
  ], 2))
3129
3120
  ], 64))), 256))
3130
3121
  ], 10, Ti)) : M("", !0),
3131
- Ne(y, $) && e.hasSubtable ? (c(), h("tr", {
3122
+ Te(g, N) && e.hasSubtable ? (c(), h("tr", {
3132
3123
  key: 1,
3133
3124
  class: I([
3134
- Ee.value ? s.rowClass(y) : e.rowClass,
3125
+ Ee.value ? s.rowClass(g) : e.rowClass,
3135
3126
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3136
3127
  ]),
3137
- onClick: V((E) => Xe(y, $), ["prevent"])
3128
+ onClick: V((E) => Ye(g, N), ["prevent"])
3138
3129
  }, [
3139
3130
  k("td", {
3140
3131
  colspan: e.columns.length + U(fe)
3141
3132
  }, [
3142
3133
  te(s.$slots, "tsub", {
3143
- rowData: y,
3144
- rowIndex: $,
3134
+ rowData: g,
3135
+ rowIndex: N,
3145
3136
  filterItems: i.value
3146
3137
  })
3147
3138
  ], 8, Ai)
3148
3139
  ], 10, Ri)) : M("", !0)
3149
3140
  ], 64))), 128)),
3150
- !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (y) => (c(), h("tr", {
3151
- key: y,
3141
+ !u.value && m.value && s.skeletonloader ? (c(!0), h(D, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3142
+ key: g,
3152
3143
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3153
3144
  }, [
3154
3145
  k("td", {
@@ -3156,26 +3147,26 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3156
3147
  class: "!bh-p-0 !bh-border-transparent"
3157
3148
  }, Di, 8, qi)
3158
3149
  ]))), 128)) : M("", !0),
3159
- u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (y, $) => (c(), h("tr", {
3160
- key: y[le.value] ? y[le.value] : $,
3150
+ u.value ? (c(!0), h(D, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3151
+ key: g[le.value] ? g[le.value] : N,
3161
3152
  class: "sticky-table-footer"
3162
3153
  }, [
3163
3154
  U(fe) > 0 ? (c(), h("td", {
3164
3155
  key: 0,
3165
3156
  colspan: U(fe)
3166
3157
  }, null, 8, Bi)) : M("", !0),
3167
- (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3158
+ (c(!0), h(D, null, oe(e.columns, (E, X) => (c(), h(D, null, [
3168
3159
  E.hide ? M("", !0) : (c(), h("td", {
3169
3160
  key: E.field,
3170
3161
  class: I([
3171
- me.value ? s.cellClass(y) : e.cellClass,
3162
+ me.value ? s.cellClass(g) : e.cellClass,
3172
3163
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3173
3164
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3174
3165
  E.cellClass ? E.cellClass : ""
3175
3166
  ])
3176
3167
  }, [
3177
- y.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3178
- De(B(y.cells.find((be) => be.field == E.field).text), 1)
3168
+ g.cells.find((be) => be.field == E.field) ? (c(), h(D, { key: 0 }, [
3169
+ We(B(g.cells.find((be) => be.field == E.field).text), 1)
3179
3170
  ], 64)) : M("", !0)
3180
3171
  ], 2))
3181
3172
  ], 64))), 256))
@@ -3187,21 +3178,21 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3187
3178
  "bh-sticky bh-bottom-0": e.stickyHeader
3188
3179
  })
3189
3180
  }, [
3190
- ne(nt, {
3181
+ ne(tt, {
3191
3182
  all: e,
3192
- currentSortColumn: g.value,
3193
- currentSortDirection: m.value,
3194
- isOpenFilter: D.value,
3183
+ currentSortColumn: y.value,
3184
+ currentSortDirection: v.value,
3185
+ isOpenFilter: q.value,
3195
3186
  isFooter: !0,
3196
3187
  checkAll: L.value,
3197
3188
  onSelectAll: de,
3198
- onSortChange: Je,
3199
- onFilterChange: Re,
3189
+ onSortChange: Ke,
3190
+ onFilterChange: Oe,
3200
3191
  onToggleFilterMenu: F
3201
3192
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3202
3193
  ], 2)) : M("", !0)
3203
3194
  ], 2),
3204
- b.value && s.enableloadinganimation ? (c(), h("div", {
3195
+ m.value && s.enableloadinganimation ? (c(), h("div", {
3205
3196
  key: 0,
3206
3197
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3207
3198
  style: G({
@@ -3210,7 +3201,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3210
3201
  }, [
3211
3202
  te(s.$slots, "loadercontent")
3212
3203
  ], 4)) : M("", !0),
3213
- !u.value && !b.value ? (c(), h("div", {
3204
+ !u.value && !m.value ? (c(), h("div", {
3214
3205
  key: 1,
3215
3206
  class: "nodatacontent",
3216
3207
  style: G({
@@ -3244,7 +3235,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3244
3235
  ], 4)) : M("", !0),
3245
3236
  te(s.$slots, "tableactionheader"),
3246
3237
  k("div", {
3247
- class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3238
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": m.value }]),
3248
3239
  style: G({
3249
3240
  overflow: "auto",
3250
3241
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - e.footerOffset + "px" : "auto"
@@ -3256,32 +3247,32 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3256
3247
  k("thead", {
3257
3248
  class: I({ "bh-sticky bh-top-0 bh-z-10": e.stickyHeader })
3258
3249
  }, [
3259
- ne(nt, {
3250
+ ne(tt, {
3260
3251
  all: e,
3261
3252
  expandedrows: ae.value,
3262
- currentSortColumn: g.value,
3263
- currentSortDirection: m.value,
3264
- isOpenFilter: D.value,
3253
+ currentSortColumn: y.value,
3254
+ currentSortDirection: v.value,
3255
+ isOpenFilter: q.value,
3265
3256
  checkAll: L.value,
3266
3257
  columnFilterLang: e.columnFilterLang,
3267
3258
  onSelectAll: de,
3268
- onSortChange: Je,
3269
- onFilterChange: Re,
3259
+ onSortChange: Ke,
3260
+ onFilterChange: Oe,
3270
3261
  onToggleFilterMenu: F,
3271
3262
  onClearColumnFilter: Wt
3272
3263
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3273
3264
  ], 2),
3274
3265
  k("tbody", null, [
3275
- (c(!0), h(W, null, oe(i.value, (y, $) => (c(), h(W, {
3276
- key: ze($)
3266
+ (c(!0), h(D, null, oe(i.value, (g, N) => (c(), h(D, {
3267
+ key: ze(N)
3277
3268
  }, [
3278
3269
  u.value ? (c(), h("tr", {
3279
3270
  key: 0,
3280
3271
  class: I([
3281
- Ee.value ? s.rowClass(y) : e.rowClass,
3272
+ Ee.value ? s.rowClass(g) : e.rowClass,
3282
3273
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3283
3274
  ]),
3284
- onClick: V((E) => Xe(y, $), ["prevent"])
3275
+ onClick: V((E) => Ye(g, N), ["prevent"])
3285
3276
  }, [
3286
3277
  e.hasCheckbox ? (c(), h("td", {
3287
3278
  key: 0,
@@ -3290,10 +3281,10 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3290
3281
  }, [
3291
3282
  k("div", ji, [
3292
3283
  ie(k("input", {
3293
- "onUpdate:modelValue": v[3] || (v[3] = (E) => z.value = E),
3284
+ "onUpdate:modelValue": p[3] || (p[3] = (E) => z.value = E),
3294
3285
  type: "checkbox",
3295
- value: ze($),
3296
- onClick: v[4] || (v[4] = V(() => {
3286
+ value: ze(N),
3287
+ onClick: p[4] || (p[4] = V(() => {
3297
3288
  }, ["stop"]))
3298
3289
  }, null, 8, Ui), [
3299
3290
  [Qt, z.value]
@@ -3309,8 +3300,8 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3309
3300
  class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3310
3301
  }, [
3311
3302
  ne(hn, {
3312
- item: y,
3313
- onRightPanelClick: v[5] || (v[5] = (E) => j("rowRightPanelClick", E))
3303
+ item: g,
3304
+ onRightPanelClick: p[5] || (p[5] = (E) => j("rowRightPanelClick", E))
3314
3305
  }, null, 8, ["item"])
3315
3306
  ], 6)) : M("", !0),
3316
3307
  e.hasSubtable ? (c(), h("td", {
@@ -3319,15 +3310,15 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3319
3310
  class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3320
3311
  }, [
3321
3312
  ne(Et, {
3322
- item: { ...y, _rowIndex: $ },
3313
+ item: { ...g, _rowIndex: N },
3323
3314
  expandedrows: ae.value
3324
3315
  }, null, 8, ["item", "expandedrows"])
3325
3316
  ], 6)) : M("", !0),
3326
- (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3317
+ (c(!0), h(D, null, oe(e.columns, (E, X) => (c(), h(D, null, [
3327
3318
  E.hide ? M("", !0) : (c(), h("td", {
3328
3319
  key: E.field,
3329
3320
  class: I([
3330
- me.value ? s.cellClass(y) : e.cellClass,
3321
+ me.value ? s.cellClass(g) : e.cellClass,
3331
3322
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3332
3323
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3333
3324
  E.cellClass ? E.cellClass : ""
@@ -3335,23 +3326,23 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3335
3326
  }, [
3336
3327
  U(l)[E.field] ? te(s.$slots, E.field, {
3337
3328
  key: 0,
3338
- value: y
3329
+ value: g
3339
3330
  }) : E.cellRenderer ? (c(), h("div", {
3340
3331
  key: 1,
3341
- innerHTML: E.cellRenderer(y)
3342
- }, null, 8, Gi)) : (c(), h(W, { key: 2 }, [
3343
- De(B(O(y, E.field)), 1)
3332
+ innerHTML: E.cellRenderer(g)
3333
+ }, null, 8, Gi)) : (c(), h(D, { key: 2 }, [
3334
+ We(B(O(g, E.field)), 1)
3344
3335
  ], 64))
3345
3336
  ], 2))
3346
3337
  ], 64))), 256))
3347
3338
  ], 10, Vi)) : M("", !0),
3348
- Ne(y, $) && e.hasSubtable ? (c(), h("tr", {
3339
+ Te(g, N) && e.hasSubtable ? (c(), h("tr", {
3349
3340
  key: 1,
3350
3341
  class: I([
3351
- Ee.value ? s.rowClass(y) : e.rowClass,
3342
+ Ee.value ? s.rowClass(g) : e.rowClass,
3352
3343
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3353
3344
  ]),
3354
- onClick: V((E) => Xe(y, $), ["prevent"])
3345
+ onClick: V((E) => Ye(g, N), ["prevent"])
3355
3346
  }, [
3356
3347
  k("td", {
3357
3348
  colspan: e.columns.length + U(fe)
@@ -3367,16 +3358,16 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3367
3358
  })
3368
3359
  }, [
3369
3360
  te(s.$slots, "tsub", {
3370
- rowData: y,
3371
- rowIndex: $,
3361
+ rowData: g,
3362
+ rowIndex: N,
3372
3363
  filterItems: i.value
3373
3364
  })
3374
3365
  ], 4)
3375
3366
  ], 8, Ki)
3376
3367
  ], 10, Qi)) : M("", !0)
3377
3368
  ], 64))), 128)),
3378
- !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (y) => (c(), h("tr", {
3379
- key: y,
3369
+ !u.value && m.value && s.skeletonloader ? (c(!0), h(D, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3370
+ key: g,
3380
3371
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3381
3372
  }, [
3382
3373
  k("td", {
@@ -3384,26 +3375,26 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3384
3375
  class: "!bh-p-0 !bh-border-transparent"
3385
3376
  }, Xi, 8, Ji)
3386
3377
  ]))), 128)) : M("", !0),
3387
- u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (y, $) => (c(), h("tr", {
3388
- key: y[le.value] ? y[le.value] : $,
3378
+ u.value ? (c(!0), h(D, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3379
+ key: g[le.value] ? g[le.value] : N,
3389
3380
  class: "sticky-table-footer"
3390
3381
  }, [
3391
3382
  U(fe) > 0 ? (c(), h("td", {
3392
3383
  key: 0,
3393
3384
  colspan: U(fe)
3394
3385
  }, null, 8, Zi)) : M("", !0),
3395
- (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3386
+ (c(!0), h(D, null, oe(e.columns, (E, X) => (c(), h(D, null, [
3396
3387
  E.hide ? M("", !0) : (c(), h("td", {
3397
3388
  key: E.field,
3398
3389
  class: I([
3399
- me.value ? s.cellClass(y) : e.cellClass,
3390
+ me.value ? s.cellClass(g) : e.cellClass,
3400
3391
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3401
3392
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3402
3393
  E.cellClass ? E.cellClass : ""
3403
3394
  ])
3404
3395
  }, [
3405
- y.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3406
- De(B(y.cells.find((be) => be.field == E.field).text), 1)
3396
+ g.cells.find((be) => be.field == E.field) ? (c(), h(D, { key: 0 }, [
3397
+ We(B(g.cells.find((be) => be.field == E.field).text), 1)
3407
3398
  ], 64)) : M("", !0)
3408
3399
  ], 2))
3409
3400
  ], 64))), 256))
@@ -3413,28 +3404,28 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3413
3404
  key: 0,
3414
3405
  class: I({ "bh-sticky bh-bottom-0": e.stickyHeader })
3415
3406
  }, [
3416
- ne(nt, {
3407
+ ne(tt, {
3417
3408
  all: e,
3418
- currentSortColumn: g.value,
3419
- currentSortDirection: m.value,
3420
- isOpenFilter: D.value,
3409
+ currentSortColumn: y.value,
3410
+ currentSortDirection: v.value,
3411
+ isOpenFilter: q.value,
3421
3412
  isFooter: !0,
3422
3413
  checkAll: L.value,
3423
3414
  onSelectAll: de,
3424
- onSortChange: Je,
3425
- onFilterChange: Re,
3415
+ onSortChange: Ke,
3416
+ onFilterChange: Oe,
3426
3417
  onToggleFilterMenu: F
3427
3418
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3428
3419
  ], 2)) : M("", !0)
3429
3420
  ], 2),
3430
- b.value && s.enableloadinganimation ? (c(), h("div", {
3421
+ m.value && s.enableloadinganimation ? (c(), h("div", {
3431
3422
  key: 0,
3432
3423
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3433
3424
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3434
3425
  }, [
3435
3426
  te(s.$slots, "loadercontent")
3436
3427
  ], 4)) : M("", !0),
3437
- !u.value && !b.value ? (c(), h("div", {
3428
+ !u.value && !m.value ? (c(), h("div", {
3438
3429
  key: 1,
3439
3430
  class: "nodatacontent",
3440
3431
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
@@ -3455,7 +3446,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3455
3446
  }, 8, ["style"]),
3456
3447
  e.pagination && (u.value || e.alwaysShowPagination) ? (c(), h("div", {
3457
3448
  key: 0,
3458
- class: I(["bh-pagination", { "bh-pointer-events-none": b.value, "sticky-footer": e.stickyFooter }])
3449
+ class: I(["bh-pagination", { "bh-pointer-events-none": m.value, "sticky-footer": e.stickyFooter }])
3459
3450
  }, [
3460
3451
  k("div", es, [
3461
3452
  s.enablefooterpagination ? te(s.$slots, "footerpageinfo", {
@@ -3467,22 +3458,22 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3467
3458
  showPageSize: s.showPageSize,
3468
3459
  pageSizeOptions: s.pageSizeOptions,
3469
3460
  currentPageSize: r.value,
3470
- stringFormat: Ke,
3461
+ stringFormat: Qe,
3471
3462
  setPageSize: pt
3472
3463
  }, () => [
3473
3464
  k("div", ts, [
3474
- k("span", ns, B(Ke(e.paginationInfo, u.value ? x.value : 0, _.value, u.value)), 1),
3465
+ k("span", ns, B(Qe(e.paginationInfo, u.value ? x.value : 0, _.value, u.value)), 1),
3475
3466
  e.showPageSize ? ie((c(), h("select", {
3476
3467
  key: 0,
3477
- "onUpdate:modelValue": v[6] || (v[6] = (y) => r.value = y),
3468
+ "onUpdate:modelValue": p[6] || (p[6] = (g) => r.value = g),
3478
3469
  class: "bh-pagesize"
3479
3470
  }, [
3480
- (c(!0), h(W, null, oe(e.pageSizeOptions, (y) => (c(), h("option", {
3481
- value: y,
3482
- key: y
3483
- }, B(y), 9, ls))), 128))
3471
+ (c(!0), h(D, null, oe(e.pageSizeOptions, (g) => (c(), h("option", {
3472
+ value: g,
3473
+ key: g
3474
+ }, B(g), 9, ls))), 128))
3484
3475
  ], 512)), [
3485
- [st, r.value]
3476
+ [it, r.value]
3486
3477
  ]) : M("", !0)
3487
3478
  ])
3488
3479
  ]) : M("", !0),
@@ -3491,7 +3482,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3491
3482
  currentPage: a.value,
3492
3483
  maxPage: d.value,
3493
3484
  paging: S.value,
3494
- movePage: q,
3485
+ movePage: W,
3495
3486
  nextPage: Z,
3496
3487
  previousPage: T
3497
3488
  }, () => [
@@ -3500,7 +3491,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3500
3491
  key: 0,
3501
3492
  type: "button",
3502
3493
  class: I(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3503
- onClick: v[7] || (v[7] = (y) => a.value = 1)
3494
+ onClick: p[7] || (p[7] = (g) => a.value = 1)
3504
3495
  }, [
3505
3496
  e.firstArrow ? (c(), h("span", {
3506
3497
  key: 0,
@@ -3517,12 +3508,12 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3517
3508
  innerHTML: e.previousArrow
3518
3509
  }, null, 8, us)) : (c(), h("svg", cs, fs))
3519
3510
  ], 2),
3520
- e.showNumbers ? (c(!0), h(W, { key: 1 }, oe(S.value, (y) => (c(), h("button", {
3521
- key: y,
3511
+ e.showNumbers ? (c(!0), h(D, { key: 1 }, oe(S.value, (g) => (c(), h("button", {
3512
+ key: g,
3522
3513
  type: "button",
3523
- class: I(["bh-page-item", { disabled: a.value === y, "bh-active": y === a.value }]),
3524
- onClick: ($) => q(y)
3525
- }, B(y), 11, hs))), 128)) : M("", !0),
3514
+ class: I(["bh-page-item", { disabled: a.value === g, "bh-active": g === a.value }]),
3515
+ onClick: (N) => W(g)
3516
+ }, B(g), 11, hs))), 128)) : M("", !0),
3526
3517
  k("button", {
3527
3518
  type: "button",
3528
3519
  class: I(["bh-page-item next-page", { disabled: a.value >= d.value }]),
@@ -3537,7 +3528,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3537
3528
  key: 2,
3538
3529
  type: "button",
3539
3530
  class: I(["bh-page-item last-page", { disabled: a.value >= d.value }]),
3540
- onClick: v[8] || (v[8] = (y) => a.value = d.value)
3531
+ onClick: p[8] || (p[8] = (g) => a.value = d.value)
3541
3532
  }, [
3542
3533
  e.lastArrow ? (c(), h("span", {
3543
3534
  key: 0,