@dolusoft/vue3-datatable 1.7.71 → 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,4 +1,4 @@
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 it, createTextVNode as We, vModelText as Pe, vShow as Gt, withCtx as Ae, 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
  }
@@ -24,31 +24,31 @@ function Pt(t, o) {
24
24
  const ol = (t) => t();
25
25
  function yn(t, o = {}) {
26
26
  let n, l, e = ye;
27
- const i = (a) => {
28
- clearTimeout(a), e(), e = ye;
27
+ const i = (r) => {
28
+ clearTimeout(r), e(), e = ye;
29
29
  };
30
- return (a) => {
30
+ return (r) => {
31
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(a())) : new Promise((C, v) => {
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
33
  e = o.rejectOnCancel ? v : C, y && !l && (l = setTimeout(() => {
34
- n && i(n), l = null, C(a());
34
+ n && i(n), l = null, C(r());
35
35
  }, y)), n = setTimeout(() => {
36
- l && i(l), l = null, C(a());
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, r, a, f, y;
43
- !Kn(t[0]) && typeof t[0] == "object" ? { delay: r, trailing: a = !0, leading: f = !0, rejectOnCancel: y = !1 } = t[0] : [r, a = !0, f = !0, y = !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 (m) => {
48
- const u = Be(r), z = Date.now() - o, L = () => i = m();
49
- return C(), u <= 0 ? (o = Date.now(), L()) : (z > u && (f || !l) ? (o = Date.now(), L()) : a && (i = new Promise((b, $) => {
50
- e = y ? $ : 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
  };
@@ -111,62 +111,62 @@ function bt(...t) {
111
111
  if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, l, e] = t, o = at) : [o, n, l, e] = t, !o)
112
112
  return ye;
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
114
- const i = [], r = () => {
114
+ const i = [], a = () => {
115
115
  i.forEach((C) => C()), i.length = 0;
116
- }, a = (C, v, m, u) => (C.addEventListener(v, m, u), () => C.removeEventListener(v, m, u)), f = Y(
116
+ }, r = (C, v, b, u) => (C.addEventListener(v, b, u), () => C.removeEventListener(v, b, u)), f = Y(
117
117
  () => [he(o), Be(e)],
118
118
  ([C, v]) => {
119
- if (r(), !C)
119
+ if (a(), !C)
120
120
  return;
121
- const m = tl(v) ? { ...v } : v;
121
+ const b = tl(v) ? { ...v } : v;
122
122
  i.push(
123
- ...n.flatMap((u) => l.map((z) => a(C, u, z, m)))
123
+ ...n.flatMap((u) => l.map((z) => r(C, u, z, b)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
127
  ), y = () => {
128
- f(), r();
128
+ f(), a();
129
129
  };
130
130
  return bn(y), y;
131
131
  }
132
132
  let Jt = !1;
133
133
  function dl(t, o, n = {}) {
134
- const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: r = !1 } = n;
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((m) => m.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
138
- let a = !0;
139
- const f = (m) => e.some((u) => {
137
+ nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((b) => b.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
138
+ let r = !0;
139
+ const f = (b) => e.some((u) => {
140
140
  if (typeof u == "string")
141
- return Array.from(l.document.querySelectorAll(u)).some((z) => z === m.target || m.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 && (m.target === z || m.composedPath().includes(z));
144
+ return z && (b.target === z || b.composedPath().includes(z));
145
145
  }
146
146
  }), C = [
147
- bt(l, "click", (m) => {
147
+ bt(l, "click", (b) => {
148
148
  const u = he(t);
149
- if (!(!u || u === m.target || m.composedPath().includes(u))) {
150
- if (m.detail === 0 && (a = !f(m)), !a) {
151
- a = !0;
149
+ if (!(!u || u === b.target || b.composedPath().includes(u))) {
150
+ if (b.detail === 0 && (r = !f(b)), !r) {
151
+ r = !0;
152
152
  return;
153
153
  }
154
- o(m);
154
+ o(b);
155
155
  }
156
156
  }, { passive: !0, capture: i }),
157
- bt(l, "pointerdown", (m) => {
157
+ bt(l, "pointerdown", (b) => {
158
158
  const u = he(t);
159
- a = !f(m) && !!(u && !m.composedPath().includes(u));
159
+ r = !f(b) && !!(u && !b.composedPath().includes(u));
160
160
  }, { passive: !0 }),
161
- r && bt(l, "blur", (m) => {
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(m);
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((m) => m());
169
+ return () => C.forEach((b) => b());
170
170
  }
171
171
  function fl() {
172
172
  const t = A(!1), o = It();
@@ -181,64 +181,64 @@ function hl(t) {
181
181
  function pl(t, o, n = {}) {
182
182
  const { window: l = at, ...e } = n;
183
183
  let i;
184
- const r = hl(() => l && "ResizeObserver" in l), a = () => {
184
+ const a = hl(() => l && "ResizeObserver" in l), r = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
186
  }, f = K(() => Array.isArray(t) ? t.map((v) => he(v)) : [he(t)]), y = Y(
187
187
  f,
188
188
  (v) => {
189
- if (a(), r.value && l) {
189
+ if (r(), a.value && l) {
190
190
  i = new ResizeObserver(o);
191
- for (const m of v)
192
- m && i.observe(m, 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
- a(), y();
197
+ r(), y();
198
198
  };
199
199
  return bn(C), {
200
- isSupported: r,
200
+ isSupported: a,
201
201
  stop: C
202
202
  };
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 v, m;
207
- return (m = (v = he(t)) == null ? void 0 : v.namespaceURI) == null ? void 0 : m.includes("svg");
208
- }), r = A(o.width), a = A(o.height), { stop: f } = pl(
206
+ var v, b;
207
+ return (b = (v = he(t)) == null ? void 0 : v.namespaceURI) == null ? void 0 : b.includes("svg");
208
+ }), a = A(o.width), r = A(o.height), { stop: f } = pl(
209
209
  t,
210
210
  ([v]) => {
211
- const m = e === "border-box" ? v.borderBoxSize : e === "content-box" ? v.contentBoxSize : v.devicePixelContentBoxSize;
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
- r.value = z.width, a.value = z.height;
216
+ a.value = z.width, r.value = z.height;
217
217
  }
218
- } else if (m) {
219
- const u = Array.isArray(m) ? m : [m];
220
- r.value = u.reduce((z, { inlineSize: L }) => z + L, 0), a.value = u.reduce((z, { blockSize: L }) => z + L, 0);
218
+ } else if (b) {
219
+ const u = Array.isArray(b) ? b : [b];
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
- r.value = v.contentRect.width, a.value = v.contentRect.height;
222
+ a.value = v.contentRect.width, r.value = v.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
226
  ul(() => {
227
227
  const v = he(t);
228
- v && (r.value = "offsetWidth" in v ? v.offsetWidth : o.width, a.value = "offsetHeight" in v ? v.offsetHeight : o.height);
228
+ v && (a.value = "offsetWidth" in v ? v.offsetWidth : o.width, r.value = "offsetHeight" in v ? v.offsetHeight : o.height);
229
229
  });
230
230
  const y = Y(
231
231
  () => he(t),
232
232
  (v) => {
233
- r.value = v ? o.width : 0, a.value = v ? o.height : 0;
233
+ a.value = v ? o.width : 0, r.value = v ? o.height : 0;
234
234
  }
235
235
  );
236
236
  function C() {
237
237
  f(), y();
238
238
  }
239
239
  return {
240
- width: r,
241
- height: a,
240
+ width: a,
241
+ height: r,
242
242
  stop: C
243
243
  };
244
244
  }
@@ -265,7 +265,7 @@ const Yt = {
265
265
  "splitter-dblclick"
266
266
  ],
267
267
  setup(t, { emit: o }) {
268
- const n = o, l = t, e = pn(), i = A([]), r = K(() => i.value.reduce((d, x) => (d[~~x.id] = x) && d, {})), a = K(() => i.value.length), f = A(null), y = 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,
@@ -275,21 +275,21 @@ const Yt = {
275
275
  // Used to detect double click on touch devices.
276
276
  splitter: null,
277
277
  timeoutId: null
278
- }), m = 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", $), "ontouchstart" in window && (document.addEventListener("touchmove", b, { passive: !1 }), document.addEventListener("touchend", $));
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", $), "ontouchstart" in window && (document.removeEventListener("touchmove", b, { passive: !1 }), document.removeEventListener("touchend", $));
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
  }));
@@ -297,7 +297,7 @@ const Yt = {
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) => {
300
+ }, q = (d, x) => {
301
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) {
@@ -307,8 +307,8 @@ const Yt = {
307
307
  }, J = (d, x) => {
308
308
  j("pane-click", {
309
309
  event: d,
310
- index: r.value[x].index,
311
- pane: r.value[x]
310
+ index: a.value[x].index,
311
+ pane: a.value[x]
312
312
  });
313
313
  }, we = (d) => {
314
314
  const x = f.value.getBoundingClientRect(), { clientX: _, clientY: S } = "ontouchstart" in window && d.touches ? d.touches[0] : d;
@@ -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) => {
@@ -350,7 +350,7 @@ const Yt = {
350
350
  }), i.value[S[1]].size = 100 - d.prevReachedMinPanes - i.value[0].min - d.prevPanesSize - d.nextPanesSize, null) : x > 100 - d.nextPanesSize - i.value[S[1]].min && (S[1] = ve(_).index, d.nextReachedMinPanes = 0, S[1] > _ + 1 && i.value.forEach((F, T) => {
351
351
  T > _ && T < S[1] && (F.size = F.min, d.nextReachedMinPanes += F.min);
352
352
  }), d.nextPanesSize = O(S[1] - 1), S[1] === void 0) ? (d.nextReachedMinPanes = 0, i.value.forEach((F, T) => {
353
- T < a.value - 1 && T >= _ + 1 && (F.size = F.min, d.nextReachedMinPanes += F.min);
353
+ T < r.value - 1 && T >= _ + 1 && (F.size = F.min, d.nextReachedMinPanes += F.min);
354
354
  }), i.value[S[0]].size = 100 - d.prevPanesSize - O(S[0] - 1), null) : { sums: d, panesToResize: S };
355
355
  }, se = (d) => i.value.reduce((x, _, S) => x + (S < d ? _.size : 0), 0), O = (d) => i.value.reduce((x, _, S) => x + (S > d + 1 ? _.size : 0), 0), le = (d) => [...i.value].reverse().find((x) => x.index < d && x.size > x.min) || {}, ve = (d) => i.value.find((x) => x.index > d + 1 && x.size > x.min) || {}, ze = () => {
356
356
  var d;
@@ -361,7 +361,7 @@ const Yt = {
361
361
  }
362
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 = () => {
@@ -373,7 +373,7 @@ const Yt = {
373
373
  for (const S of x)
374
374
  S.className.includes("splitpanes__pane") && (!_ && l.firstSplitter ? Te(_, S, !0) : _ && Te(_, S), _++);
375
375
  }, Ne = ({ uid: d, ...x }) => {
376
- const _ = r.value[d];
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;
@@ -391,7 +391,7 @@ const Yt = {
391
391
  }, ae = (d = {}) => {
392
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
- const d = 100 / a.value;
394
+ const d = 100 / r.value;
395
395
  let x = 0;
396
396
  const _ = [], S = [];
397
397
  for (const F of i.value)
@@ -406,29 +406,29 @@ const Yt = {
406
406
  let F = 100;
407
407
  if (d > 0.1) {
408
408
  for (const T of i.value)
409
- T.givenSize === null && (T.size = Math.max(Math.min(d / (a.value - S), T.max), T.min)), F -= T.size;
409
+ T.givenSize === null && (T.size = Math.max(Math.min(d / (r.value - S), T.max), T.min)), F -= T.size;
410
410
  F > 0.1 && $e(F, x, _);
411
411
  }
412
412
  }, Ge = ({ addedPane: d, removedPane: x } = {}) => {
413
- let _ = 100 / a.value, S = 0;
413
+ let _ = 100 / r.value, S = 0;
414
414
  const F = [], T = [];
415
- ((d == null ? void 0 : d.givenSize) ?? null) !== null && (_ = (100 - d.givenSize) / (a.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);
415
+ ((d == null ? void 0 : d.givenSize) ?? null) !== null && (_ = (100 - d.givenSize) / (r.value - 1));
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);
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
421
  S > 0.1 && $e(S, F, T);
422
422
  }
423
423
  }, $e = (d, x, _) => {
424
424
  let S;
425
- d > 0 ? S = d / (a.value - x.length) : S = d / (a.value - _.length), i.value.forEach((F, T) => {
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
434
  y.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
@@ -452,11 +452,11 @@ const Yt = {
452
452
  var d;
453
453
  return kt(
454
454
  "div",
455
- { ref: f, class: m.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", r), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", Ne), xe("onPaneAdd", ft), xe("onPaneRemove", Ue), xe("onPaneClick", J), (d, x) => (c(), re(Xn(Qe)));
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,38 +467,38 @@ 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"), r = Ie("onPaneRemove"), a = Ie("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, y = Ie("indexedPanes"), C = K(() => y.value[f]), v = A(null), m = 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(() => m.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
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 : m.value,
491
- size: m.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(() => r(f)), (b, $) => (c(), h("div", {
494
+ }), vn(() => a(f)), (m, $) => (c(), h("div", {
495
495
  ref_key: "paneEl",
496
496
  ref: v,
497
497
  class: "splitpanes__pane",
498
- onClick: $[0] || ($[0] = (D) => U(a)(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
504
  }, De = /^[a-z0-9]+(-[a-z0-9]+)*$/, ut = (t, o, n, l = "") => {
@@ -511,30 +511,30 @@ const Yt = {
511
511
  if (e.length > 3 || !e.length)
512
512
  return null;
513
513
  if (e.length > 1) {
514
- const a = e.pop(), f = e.pop(), y = {
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
- name: a
518
+ name: r
519
519
  };
520
520
  return o && !nt(y) ? null : y;
521
521
  }
522
- const i = e[0], r = i.split("-");
523
- if (r.length > 1) {
524
- const a = {
522
+ const i = e[0], a = i.split("-");
523
+ if (a.length > 1) {
524
+ const r = {
525
525
  provider: l,
526
- prefix: r.shift(),
527
- name: r.join("-")
526
+ prefix: a.shift(),
527
+ name: a.join("-")
528
528
  };
529
- return o && !nt(a) ? null : a;
529
+ return o && !nt(r) ? null : r;
530
530
  }
531
531
  if (n && l === "") {
532
- const a = {
532
+ const r = {
533
533
  provider: l,
534
534
  prefix: "",
535
535
  name: i
536
536
  };
537
- return o && !nt(a, n) ? null : a;
537
+ return o && !nt(r, n) ? null : r;
538
538
  }
539
539
  return null;
540
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(
@@ -570,28 +570,28 @@ function Xt(t, o) {
570
570
  }
571
571
  function bl(t, o) {
572
572
  const n = t.icons, l = t.aliases || /* @__PURE__ */ Object.create(null), e = /* @__PURE__ */ Object.create(null);
573
- function i(r) {
574
- if (n[r])
575
- return e[r] = [];
576
- if (!(r in e)) {
577
- e[r] = null;
578
- const a = l[r] && l[r].parent, f = a && i(a);
579
- f && (e[r] = [a].concat(f));
573
+ function i(a) {
574
+ if (n[a])
575
+ return e[a] = [];
576
+ if (!(a in e)) {
577
+ e[a] = null;
578
+ const r = l[a] && l[a].parent, f = r && i(r);
579
+ f && (e[a] = [r].concat(f));
580
580
  }
581
- return e[r];
581
+ return e[a];
582
582
  }
583
583
  return Object.keys(n).concat(Object.keys(l)).forEach(i), e;
584
584
  }
585
585
  function gl(t, o, n) {
586
586
  const l = t.icons, e = t.aliases || /* @__PURE__ */ Object.create(null);
587
587
  let i = {};
588
- function r(a) {
588
+ function a(r) {
589
589
  i = Xt(
590
- l[a] || e[a],
590
+ l[r] || e[r],
591
591
  i
592
592
  );
593
593
  }
594
- return r(o), n.forEach(r), Xt(t, i);
594
+ return a(o), n.forEach(a), Xt(t, i);
595
595
  }
596
596
  function kn(t, o) {
597
597
  const n = [];
@@ -636,8 +636,8 @@ function Cn(t) {
636
636
  }
637
637
  const l = o.aliases || /* @__PURE__ */ Object.create(null);
638
638
  for (const e in l) {
639
- const i = l[e], r = i.parent;
640
- if (!e.match(De) || typeof r != "string" || !n[r] && !l[r] || !yt(
639
+ const i = l[e], a = i.parent;
640
+ if (!e.match(De) || typeof a != "string" || !n[a] && !l[a] || !yt(
641
641
  i,
642
642
  Ct
643
643
  ))
@@ -694,8 +694,8 @@ function Sl(t, o) {
694
694
  return !1;
695
695
  if (typeof o != "string" && (o = t.provider || ""), He && !o && !t.prefix) {
696
696
  let e = !1;
697
- return Cn(t) && (t.prefix = "", kn(t, (i, r) => {
698
- r && xl(i, r) && (e = !0);
697
+ return Cn(t) && (t.prefix = "", kn(t, (i, a) => {
698
+ a && xl(i, a) && (e = !0);
699
699
  })), e;
700
700
  }
701
701
  const n = t.prefix;
@@ -728,16 +728,16 @@ function en(t, o, n) {
728
728
  if (l === null || !l.length)
729
729
  return t;
730
730
  const e = [];
731
- let i = l.shift(), r = Ll.test(i);
731
+ let i = l.shift(), a = Ll.test(i);
732
732
  for (; ; ) {
733
- if (r) {
734
- const a = parseFloat(i);
735
- isNaN(a) ? e.push(i) : e.push(Math.ceil(a * o * n) / n);
733
+ if (a) {
734
+ const r = parseFloat(i);
735
+ isNaN(r) ? e.push(i) : e.push(Math.ceil(r * o * n) / n);
736
736
  } else
737
737
  e.push(i);
738
738
  if (i = l.shift(), i === void 0)
739
739
  return e.join("");
740
- r = !r;
740
+ a = !a;
741
741
  }
742
742
  }
743
743
  function _l(t, o = "defs") {
@@ -747,10 +747,10 @@ function _l(t, o = "defs") {
747
747
  const e = t.indexOf(">", l), i = t.indexOf("</" + o);
748
748
  if (e === -1 || i === -1)
749
749
  break;
750
- const r = t.indexOf(">", i);
751
- if (r === -1)
750
+ const a = t.indexOf(">", i);
751
+ if (a === -1)
752
752
  break;
753
- n += t.slice(e + 1, i).trim(), t = t.slice(0, l).trim() + t.slice(r + 1);
753
+ n += t.slice(e + 1, i).trim(), t = t.slice(0, l).trim() + t.slice(a + 1);
754
754
  }
755
755
  return {
756
756
  defs: n,
@@ -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 = [], $ = L.hFlip, D = L.vFlip;
783
+ const m = [], $ = L.hFlip, q = L.vFlip;
784
784
  let ee = L.rotate;
785
- $ ? 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 r = l.width, a = l.height, f = e.width, y = e.height;
814
+ const a = l.width, r = l.height, f = e.width, y = e.height;
815
815
  let C, v;
816
- r === null ? (v = a === null ? "1em" : a === "auto" ? y : a, C = en(v, f / y)) : (C = r === "auto" ? f : r, v = a === null ? en(C, y / f) : a === "auto" ? y : a);
817
- const m = {}, u = (L, b) => {
818
- Ml(b) || (m[L] = b.toString());
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
820
  u("width", C), u("height", v);
821
821
  const z = [e.left, e.top, f, y];
822
- return m.viewBox = z.join(" "), {
823
- attributes: m,
822
+ return b.viewBox = z.join(" "), {
823
+ attributes: b,
824
824
  viewBox: z,
825
825
  body: i
826
826
  };
@@ -836,12 +836,12 @@ function $l(t, o = Tl) {
836
836
  return t;
837
837
  const e = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
838
838
  return n.forEach((i) => {
839
- const r = typeof o == "function" ? o(i) : o + (Nl++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
839
+ const a = typeof o == "function" ? o(i) : o + (Nl++).toString(), r = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
840
840
  t = t.replace(
841
841
  // Allowed characters before id: [#;"]
842
842
  // Allowed characters after id: [)"], .[a-z]
843
- new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"),
844
- "$1" + r + e + "$3"
843
+ new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
844
+ "$1" + a + e + "$3"
845
845
  );
846
846
  }), t = t.replace(new RegExp(e, "g"), ""), t;
847
847
  }
@@ -911,8 +911,8 @@ function ql(t, o) {
911
911
  l = 0;
912
912
  else {
913
913
  let e = 0;
914
- n.resources.forEach((r) => {
915
- e = Math.max(e, r.length);
914
+ n.resources.forEach((a) => {
915
+ e = Math.max(e, a.length);
916
916
  });
917
917
  const i = o + ".json?icons=";
918
918
  l = n.maxURL - e - n.path.length - i.length;
@@ -924,20 +924,20 @@ function Wl(t) {
924
924
  }
925
925
  const Dl = (t, o, n) => {
926
926
  const l = [], e = ql(t, o), i = "icons";
927
- let r = {
927
+ let a = {
928
928
  type: i,
929
929
  provider: t,
930
930
  prefix: o,
931
931
  icons: []
932
- }, a = 0;
932
+ }, r = 0;
933
933
  return n.forEach((f, y) => {
934
- a += f.length + 1, a >= e && y > 0 && (l.push(r), r = {
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,
938
938
  icons: []
939
- }, a = f.length), r.icons.push(f);
940
- }), l.push(r), l;
939
+ }, r = f.length), a.icons.push(f);
940
+ }), l.push(a), l;
941
941
  };
942
942
  function Bl(t) {
943
943
  if (typeof t == "string") {
@@ -955,8 +955,8 @@ const Hl = (t, o, n) => {
955
955
  let l = Bl(o.provider);
956
956
  switch (o.type) {
957
957
  case "icons": {
958
- const i = o.prefix, a = o.icons.join(","), f = new URLSearchParams({
959
- icons: a
958
+ const i = o.prefix, r = o.icons.join(","), f = new URLSearchParams({
959
+ icons: r
960
960
  });
961
961
  l += i + ".json?" + f.toString();
962
962
  break;
@@ -972,10 +972,10 @@ const Hl = (t, o, n) => {
972
972
  }
973
973
  let e = 503;
974
974
  tn(t + l).then((i) => {
975
- const r = i.status;
976
- if (r !== 200) {
975
+ const a = i.status;
976
+ if (a !== 200) {
977
977
  setTimeout(() => {
978
- n(Wl(r) ? "abort" : "next", r);
978
+ n(Wl(a) ? "abort" : "next", a);
979
979
  });
980
980
  return;
981
981
  }
@@ -1013,13 +1013,13 @@ 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, r = e.prefix, a = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), y = f[r] || (f[r] = Fe(i, r));
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
- a in y.icons ? C = o.loaded : r === "" || y.missing.has(a) ? C = o.missing : C = o.pending;
1018
+ r in y.icons ? C = o.loaded : a === "" || y.missing.has(r) ? C = o.missing : C = o.pending;
1019
1019
  const v = {
1020
1020
  provider: i,
1021
- prefix: r,
1022
- name: a
1021
+ prefix: a,
1022
+ name: r
1023
1023
  };
1024
1024
  C.push(v);
1025
1025
  }), o;
@@ -1039,19 +1039,19 @@ function Ul(t) {
1039
1039
  let n = !1;
1040
1040
  const l = t.provider, e = t.prefix;
1041
1041
  o.forEach((i) => {
1042
- const r = i.icons, a = r.pending.length;
1043
- r.pending = r.pending.filter((f) => {
1042
+ const a = i.icons, r = a.pending.length;
1043
+ a.pending = a.pending.filter((f) => {
1044
1044
  if (f.prefix !== e)
1045
1045
  return !0;
1046
1046
  const y = f.name;
1047
1047
  if (t.icons[y])
1048
- r.loaded.push({
1048
+ a.loaded.push({
1049
1049
  provider: l,
1050
1050
  prefix: e,
1051
1051
  name: y
1052
1052
  });
1053
1053
  else if (t.missing.has(y))
1054
- r.missing.push({
1054
+ a.missing.push({
1055
1055
  provider: l,
1056
1056
  prefix: e,
1057
1057
  name: y
@@ -1059,10 +1059,10 @@ function Ul(t) {
1059
1059
  else
1060
1060
  return n = !0, !0;
1061
1061
  return !1;
1062
- }), r.pending.length !== a && (n || Ln([t], i.id), i.callback(
1063
- r.loaded.slice(0),
1064
- r.missing.slice(0),
1065
- r.pending.slice(0),
1062
+ }), a.pending.length !== r && (n || Ln([t], i.id), i.callback(
1063
+ a.loaded.slice(0),
1064
+ a.missing.slice(0),
1065
+ a.pending.slice(0),
1066
1066
  i.abort
1067
1067
  ));
1068
1068
  });
@@ -1079,8 +1079,8 @@ function Ql(t, o, n) {
1079
1079
  callback: t,
1080
1080
  abort: e
1081
1081
  };
1082
- return n.forEach((r) => {
1083
- (r.loaderCallbacks || (r.loaderCallbacks = [])).push(i);
1082
+ return n.forEach((a) => {
1083
+ (a.loaderCallbacks || (a.loaderCallbacks = [])).push(i);
1084
1084
  }), e;
1085
1085
  }
1086
1086
  function Kl(t, o = !0, n = !1) {
@@ -1100,54 +1100,54 @@ var Jl = {
1100
1100
  };
1101
1101
  function Yl(t, o, n, l) {
1102
1102
  const e = t.resources.length, i = t.random ? Math.floor(Math.random() * e) : t.index;
1103
- let r;
1103
+ let a;
1104
1104
  if (t.random) {
1105
1105
  let R = t.resources.slice(0);
1106
- for (r = []; R.length > 1; ) {
1106
+ for (a = []; R.length > 1; ) {
1107
1107
  const H = Math.floor(Math.random() * R.length);
1108
- r.push(R[H]), R = R.slice(0, H).concat(R.slice(H + 1));
1108
+ a.push(R[H]), R = R.slice(0, H).concat(R.slice(H + 1));
1109
1109
  }
1110
- r = r.concat(R);
1110
+ a = a.concat(R);
1111
1111
  } else
1112
- r = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
- const a = Date.now();
1114
- let f = "pending", y = 0, C, v = null, m = [], u = [];
1112
+ a = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
+ const r = Date.now();
1114
+ let f = "pending", y = 0, C, v = null, b = [], u = [];
1115
1115
  typeof l == "function" && u.push(l);
1116
1116
  function z() {
1117
1117
  v && (clearTimeout(v), v = null);
1118
1118
  }
1119
1119
  function L() {
1120
- f === "pending" && (f = "aborted"), z(), m.forEach((R) => {
1120
+ f === "pending" && (f = "aborted"), z(), b.forEach((R) => {
1121
1121
  R.status === "pending" && (R.status = "aborted");
1122
- }), m = [];
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
1127
  function $() {
1128
1128
  return {
1129
- startTime: a,
1129
+ startTime: r,
1130
1130
  payload: o,
1131
1131
  status: f,
1132
1132
  queriesSent: y,
1133
- queriesPending: m.length,
1134
- subscribe: b,
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
- m.forEach((R) => {
1144
+ b.forEach((R) => {
1145
1145
  R.status === "pending" && (R.status = "aborted");
1146
- }), m = [];
1146
+ }), b = [];
1147
1147
  }
1148
1148
  function J(R, H, ce) {
1149
1149
  const se = H !== "success";
1150
- switch (m = m.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, m.length || (r.length ? we() : D());
1165
+ C = ce, b.length || (a.length ? we() : q());
1166
1166
  return;
1167
1167
  }
1168
1168
  if (z(), ee(), !t.random) {
@@ -1177,15 +1177,15 @@ function Yl(t, o, n, l) {
1177
1177
  if (f !== "pending")
1178
1178
  return;
1179
1179
  z();
1180
- const R = r.shift();
1180
+ const R = a.shift();
1181
1181
  if (R === void 0) {
1182
- if (m.length) {
1182
+ if (b.length) {
1183
1183
  v = setTimeout(() => {
1184
- z(), f === "pending" && (ee(), D());
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,7 +1195,7 @@ function Yl(t, o, n, l) {
1195
1195
  J(H, ce, se);
1196
1196
  }
1197
1197
  };
1198
- m.push(H), y++, v = 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
1200
  return setTimeout(we), $;
1201
1201
  }
@@ -1206,27 +1206,27 @@ function _n(t) {
1206
1206
  };
1207
1207
  let n = [];
1208
1208
  function l() {
1209
- n = n.filter((a) => a().status === "pending");
1209
+ n = n.filter((r) => r().status === "pending");
1210
1210
  }
1211
- function e(a, f, y) {
1211
+ function e(r, f, y) {
1212
1212
  const C = Yl(
1213
1213
  o,
1214
- a,
1214
+ r,
1215
1215
  f,
1216
- (v, m) => {
1217
- l(), y && y(v, m);
1216
+ (v, b) => {
1217
+ l(), y && y(v, b);
1218
1218
  }
1219
1219
  );
1220
1220
  return n.push(C), C;
1221
1221
  }
1222
- function i(a) {
1223
- return n.find((f) => a(f)) || null;
1222
+ function i(r) {
1223
+ return n.find((f) => r(f)) || null;
1224
1224
  }
1225
1225
  return {
1226
1226
  query: e,
1227
1227
  find: i,
1228
- setIndex: (a) => {
1229
- o.index = a;
1228
+ setIndex: (r) => {
1229
+ o.index = r;
1230
1230
  },
1231
1231
  getIndex: () => o.index,
1232
1232
  cleanup: l
@@ -1255,14 +1255,14 @@ function Zl(t, o, n) {
1255
1255
  if (!i)
1256
1256
  return n(void 0, 424), nn;
1257
1257
  e = i.send;
1258
- const r = Xl(t);
1259
- r && (l = r.redundancy);
1258
+ const a = Xl(t);
1259
+ a && (l = a.redundancy);
1260
1260
  } else {
1261
1261
  const i = Nt(t);
1262
1262
  if (i) {
1263
1263
  l = _n(i);
1264
- const r = t.resources ? t.resources[0] : "", a = St(r);
1265
- a && (e = a.send);
1264
+ const a = t.resources ? t.resources[0] : "", r = St(a);
1265
+ r && (e = r.send);
1266
1266
  }
1267
1267
  }
1268
1268
  return !l || !e ? (n(void 0, 424), nn) : l.query(o, e, n)().abort;
@@ -1320,29 +1320,29 @@ function Pn(t, o) {
1320
1320
  const l = Ft(n, on);
1321
1321
  if (l !== ln) {
1322
1322
  if (l) {
1323
- const a = _t(n);
1324
- for (let f = 0; f < a; f++)
1323
+ const r = _t(n);
1324
+ for (let f = 0; f < r; f++)
1325
1325
  sn(n, Ve + f.toString());
1326
1326
  }
1327
1327
  Rt(n, on, ln), Lt(n, 0);
1328
1328
  return;
1329
1329
  }
1330
- const e = Math.floor(Date.now() / En) - eo, i = (a) => {
1331
- const f = Ve + a.toString(), y = Ft(n, f);
1330
+ const e = Math.floor(Date.now() / En) - eo, i = (r) => {
1331
+ const f = Ve + r.toString(), y = Ft(n, f);
1332
1332
  if (typeof y == "string") {
1333
1333
  try {
1334
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
- o(C, a))
1336
+ o(C, r))
1337
1337
  return !0;
1338
1338
  } catch {
1339
1339
  }
1340
1340
  sn(n, f);
1341
1341
  }
1342
1342
  };
1343
- let r = _t(n);
1344
- for (let a = r - 1; a >= 0; a--)
1345
- i(a) || (a === r - 1 ? (r--, Lt(n, r)) : Mn[t].add(a));
1343
+ let a = _t(n);
1344
+ for (let r = a - 1; r >= 0; r--)
1345
+ i(r) || (r === a - 1 ? (a--, Lt(n, a)) : Mn[t].add(r));
1346
1346
  }
1347
1347
  function Tn() {
1348
1348
  if (!At) {
@@ -1355,8 +1355,8 @@ function Tn() {
1355
1355
  );
1356
1356
  if (!Tt(i, n).length)
1357
1357
  return !1;
1358
- const r = n.lastModified || -1;
1359
- return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, r) : r, !0;
1358
+ const a = n.lastModified || -1;
1359
+ return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, a) : a, !0;
1360
1360
  });
1361
1361
  }
1362
1362
  }
@@ -1382,20 +1382,20 @@ function oo(t, o) {
1382
1382
  if (!dt[l] || !(e = In(l)))
1383
1383
  return;
1384
1384
  const i = Mn[l];
1385
- let r;
1385
+ let a;
1386
1386
  if (i.size)
1387
- i.delete(r = Array.from(i).shift());
1388
- else if (r = _t(e), r >= to || !Lt(e, r + 1))
1387
+ i.delete(a = Array.from(i).shift());
1388
+ else if (a = _t(e), a >= to || !Lt(e, a + 1))
1389
1389
  return;
1390
- const a = {
1390
+ const r = {
1391
1391
  cached: Math.floor(Date.now() / En),
1392
1392
  provider: t.provider,
1393
1393
  data: o
1394
1394
  };
1395
1395
  return Rt(
1396
1396
  e,
1397
- Ve + r.toString(),
1398
- JSON.stringify(a)
1397
+ Ve + a.toString(),
1398
+ JSON.stringify(r)
1399
1399
  );
1400
1400
  }
1401
1401
  o.lastModified && !lo(t, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
@@ -1415,10 +1415,10 @@ function so(t, o) {
1415
1415
  let i;
1416
1416
  if (!e || !(i = St(n)))
1417
1417
  return;
1418
- i.prepare(n, l, e).forEach((a) => {
1419
- Zl(n, a, (f) => {
1418
+ i.prepare(n, l, e).forEach((r) => {
1419
+ Zl(n, r, (f) => {
1420
1420
  if (typeof f != "object")
1421
- a.icons.forEach((y) => {
1421
+ r.icons.forEach((y) => {
1422
1422
  t.missing.add(y);
1423
1423
  });
1424
1424
  else
@@ -1457,16 +1457,16 @@ const ro = (t, o) => {
1457
1457
  };
1458
1458
  }
1459
1459
  const e = /* @__PURE__ */ Object.create(null), i = [];
1460
- let r, a;
1460
+ let a, r;
1461
1461
  return l.pending.forEach((f) => {
1462
1462
  const { provider: y, prefix: C } = f;
1463
- if (C === a && y === r)
1463
+ if (C === r && y === a)
1464
1464
  return;
1465
- r = y, a = C, i.push(Fe(y, C));
1465
+ a = y, r = C, i.push(Fe(y, C));
1466
1466
  const v = e[y] || (e[y] = /* @__PURE__ */ Object.create(null));
1467
1467
  v[C] || (v[C] = []);
1468
1468
  }), l.pending.forEach((f) => {
1469
- const { provider: y, prefix: C, name: v } = f, m = Fe(y, C), u = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
1469
+ const { provider: y, prefix: C, name: v } = f, b = Fe(y, C), u = b.pendingIcons || (b.pendingIcons = /* @__PURE__ */ new Set());
1470
1470
  u.has(v) || (u.add(v), e[y][C].push(v));
1471
1471
  }), i.forEach((f) => {
1472
1472
  const { provider: y, prefix: C } = f;
@@ -1574,10 +1574,10 @@ function dn(t) {
1574
1574
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
1575
1575
  }
1576
1576
  const fn = (t, o) => {
1577
- const n = ao(an, o), l = { ...bo }, e = o.mode || "svg", i = {}, r = o.style, a = typeof r == "object" && !(r instanceof Array) ? r : {};
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,24 +1587,24 @@ 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
1606
  const $ = ot[L];
1607
- $ ? (b === !0 || b === "true" || b === 1) && (n[$] = !0) : an[L] === void 0 && (l[L] = b);
1607
+ $ ? (m === !0 || m === "true" || m === 1) && (n[$] = !0) : an[L] === void 0 && (l[L] = m);
1608
1608
  }
1609
1609
  }
1610
1610
  }
@@ -1612,15 +1612,15 @@ const fn = (t, o) => {
1612
1612
  if (n.inline && (i.verticalAlign = "-0.125em"), e === "svg") {
1613
1613
  l.style = {
1614
1614
  ...i,
1615
- ...a
1615
+ ...r
1616
1616
  }, Object.assign(l, y);
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);
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: v, height: m } = t, u = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), z = ho(C, {
1620
+ const { body: C, width: v, height: b } = t, u = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), z = ho(C, {
1621
1621
  ...y,
1622
1622
  width: v + "",
1623
- height: m + ""
1623
+ height: b + ""
1624
1624
  });
1625
1625
  return l.style = {
1626
1626
  ...i,
@@ -1629,7 +1629,7 @@ const fn = (t, o) => {
1629
1629
  height: dn(y.height),
1630
1630
  ...go,
1631
1631
  ...u ? zt : Nn,
1632
- ...a
1632
+ ...r
1633
1633
  }, kt("span", l);
1634
1634
  };
1635
1635
  xn(!0);
@@ -1743,28 +1743,28 @@ const yo = {
1743
1743
  },
1744
1744
  setup(t) {
1745
1745
  const o = t, n = Zn(o, "expandedrows"), l = A(!1);
1746
- function e(a) {
1746
+ function e(r) {
1747
1747
  if (o.expandall)
1748
1748
  l.value = !l.value, n.value.forEach((f, y) => {
1749
1749
  n.value.set(y, l.value);
1750
1750
  });
1751
1751
  else {
1752
- const f = n.value.get(a);
1753
- n.value.set(a, !f);
1752
+ const f = n.value.get(r);
1753
+ n.value.set(r, !f);
1754
1754
  }
1755
1755
  }
1756
- const i = (a) => a._rowIndex !== void 0 ? a._rowIndex : a.id || 0, r = A(-1);
1756
+ const i = (r) => r._rowIndex !== void 0 ? r._rowIndex : r.id || 0, a = A(-1);
1757
1757
  return Y(() => n.value, () => {
1758
1758
  if (!o.expandall) return;
1759
- const a = Array.from(n.value.values());
1760
- new Set(a).size > 1 ? (r.value = -1, l.value = !0) : a[0] ? (r.value = 0, l.value = !0) : (r.value = 1, l.value = !1);
1761
- }, { deep: !0 }), (a, f) => (c(), h("button", {
1759
+ const r = Array.from(n.value.values());
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
+ }, { deep: !0 }), (r, f) => (c(), h("button", {
1762
1762
  class: "expandbtn",
1763
- onClick: f[0] || (f[0] = (y) => e(i(a.item)))
1763
+ onClick: f[0] || (f[0] = (y) => e(i(r.item)))
1764
1764
  }, [
1765
- n.value.get(i(a.item)) === !0 ? (c(), h(W, { key: 0 }, [
1766
- o.expandall ? (c(), h(W, { key: 0 }, [
1767
- r.value ? (c(), re(U(ge), {
1765
+ n.value.get(i(r.item)) === !0 ? (c(), h(D, { key: 0 }, [
1766
+ o.expandall ? (c(), h(D, { key: 0 }, [
1767
+ a.value ? (c(), re(U(ge), {
1768
1768
  key: 0,
1769
1769
  icon: "fluent:chevron-down-up-16-filled"
1770
1770
  })) : (c(), re(U(ge), {
@@ -1775,12 +1775,12 @@ 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 }, [
1780
- r.value == -1 ? (c(), re(U(ge), {
1778
+ ], 64)) : (c(), h(D, { key: 1 }, [
1779
+ o.expandall ? (c(), h(D, { key: 0 }, [
1780
+ a.value == -1 ? (c(), re(U(ge), {
1781
1781
  key: 0,
1782
1782
  icon: "ion:chevron-expand"
1783
- })) : r.value == 0 ? (c(), re(U(ge), {
1783
+ })) : a.value == 0 ? (c(), re(U(ge), {
1784
1784
  key: 1,
1785
1785
  icon: "mdi:chevron-down"
1786
1786
  })) : (c(), re(U(ge), {
@@ -1812,7 +1812,7 @@ const yo = {
1812
1812
  function e() {
1813
1813
  l("rightPanelClick", n.item);
1814
1814
  }
1815
- return (i, r) => (c(), h("button", {
1815
+ return (i, a) => (c(), h("button", {
1816
1816
  class: "rightpanelbtn",
1817
1817
  onClick: V(e, ["stop"])
1818
1818
  }, [
@@ -1830,10 +1830,10 @@ const yo = {
1830
1830
  dl(e, () => {
1831
1831
  l("close");
1832
1832
  });
1833
- const i = (r) => {
1834
- n.column.condition = r, r === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1833
+ const i = (a) => {
1834
+ n.column.condition = a, a === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1835
1835
  };
1836
- return (r, a) => (c(), h("div", {
1836
+ return (a, r) => (c(), h("div", {
1837
1837
  ref_key: "menuRef",
1838
1838
  ref: e,
1839
1839
  class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"
@@ -1842,101 +1842,101 @@ const yo = {
1842
1842
  k("button", {
1843
1843
  type: "button",
1844
1844
  class: I({ active: n.column.condition === "" }),
1845
- onClick: a[0] || (a[0] = V((f) => i(""), ["stop"]))
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" }),
1851
- onClick: a[1] || (a[1] = V((f) => i("Contains"), ["stop"]))
1851
+ onClick: r[1] || (r[1] = V((f) => i("Contains"), ["stop"]))
1852
1852
  }, B((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
1853
1853
  k("button", {
1854
1854
  type: "button",
1855
1855
  class: I({ active: n.column.condition === "NotContains" }),
1856
- onClick: a[2] || (a[2] = V((f) => i("NotContains"), ["stop"]))
1856
+ onClick: r[2] || (r[2] = V((f) => i("NotContains"), ["stop"]))
1857
1857
  }, B((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
1858
1858
  k("button", {
1859
1859
  type: "button",
1860
1860
  class: I({ active: n.column.condition === "Equal" }),
1861
- onClick: a[3] || (a[3] = V((f) => i("Equal"), ["stop"]))
1861
+ onClick: r[3] || (r[3] = V((f) => i("Equal"), ["stop"]))
1862
1862
  }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1863
1863
  k("button", {
1864
1864
  type: "button",
1865
1865
  class: I({ active: n.column.condition === "NotEqual" }),
1866
- onClick: a[4] || (a[4] = V((f) => i("NotEqual"), ["stop"]))
1866
+ onClick: r[4] || (r[4] = V((f) => i("NotEqual"), ["stop"]))
1867
1867
  }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1868
1868
  k("button", {
1869
1869
  type: "button",
1870
1870
  class: I({ active: n.column.condition === "StartsWith" }),
1871
- onClick: a[5] || (a[5] = V((f) => i("StartsWith"), ["stop"]))
1871
+ onClick: r[5] || (r[5] = V((f) => i("StartsWith"), ["stop"]))
1872
1872
  }, B((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
1873
1873
  k("button", {
1874
1874
  type: "button",
1875
1875
  class: I({ active: n.column.condition === "EndsWith" }),
1876
- onClick: a[6] || (a[6] = V((f) => i("EndsWith"), ["stop"]))
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" }),
1882
- onClick: a[7] || (a[7] = V((f) => i("Equal"), ["stop"]))
1882
+ onClick: r[7] || (r[7] = V((f) => i("Equal"), ["stop"]))
1883
1883
  }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1884
1884
  k("button", {
1885
1885
  type: "button",
1886
1886
  class: I({ active: n.column.condition === "NotEqual" }),
1887
- onClick: a[8] || (a[8] = V((f) => i("NotEqual"), ["stop"]))
1887
+ onClick: r[8] || (r[8] = V((f) => i("NotEqual"), ["stop"]))
1888
1888
  }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1889
1889
  k("button", {
1890
1890
  type: "button",
1891
1891
  class: I({ active: n.column.condition === "GreaterThan" }),
1892
- onClick: a[9] || (a[9] = V((f) => i("GreaterThan"), ["stop"]))
1892
+ onClick: r[9] || (r[9] = V((f) => i("GreaterThan"), ["stop"]))
1893
1893
  }, B((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1894
1894
  k("button", {
1895
1895
  type: "button",
1896
1896
  class: I({ active: n.column.condition === "GreaterThanOrEqual" }),
1897
- onClick: a[10] || (a[10] = V((f) => i("GreaterThanOrEqual"), ["stop"]))
1897
+ onClick: r[10] || (r[10] = V((f) => i("GreaterThanOrEqual"), ["stop"]))
1898
1898
  }, B((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual (>=)"), 3),
1899
1899
  k("button", {
1900
1900
  type: "button",
1901
1901
  class: I({ active: n.column.condition === "LessThan" }),
1902
- onClick: a[11] || (a[11] = V((f) => i("LessThan"), ["stop"]))
1902
+ onClick: r[11] || (r[11] = V((f) => i("LessThan"), ["stop"]))
1903
1903
  }, B((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3),
1904
1904
  k("button", {
1905
1905
  type: "button",
1906
1906
  class: I({ active: n.column.condition === "LessThanOrEqual" }),
1907
- onClick: a[12] || (a[12] = V((f) => i("LessThanOrEqual"), ["stop"]))
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" }),
1913
- onClick: a[13] || (a[13] = V((f) => i("Equal"), ["stop"]))
1913
+ onClick: r[13] || (r[13] = V((f) => i("Equal"), ["stop"]))
1914
1914
  }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1915
1915
  k("button", {
1916
1916
  type: "button",
1917
1917
  class: I({ active: n.column.condition === "NotEqual" }),
1918
- onClick: a[14] || (a[14] = V((f) => i("NotEqual"), ["stop"]))
1918
+ onClick: r[14] || (r[14] = V((f) => i("NotEqual"), ["stop"]))
1919
1919
  }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal (!=)"), 3),
1920
1920
  k("button", {
1921
1921
  type: "button",
1922
1922
  class: I({ active: n.column.condition === "GreaterThan" }),
1923
- onClick: a[15] || (a[15] = V((f) => i("GreaterThan"), ["stop"]))
1923
+ onClick: r[15] || (r[15] = V((f) => i("GreaterThan"), ["stop"]))
1924
1924
  }, B((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1925
1925
  k("button", {
1926
1926
  type: "button",
1927
1927
  class: I({ active: n.column.condition === "LessThan" }),
1928
- onClick: a[16] || (a[16] = V((f) => i("LessThan"), ["stop"]))
1928
+ onClick: r[16] || (r[16] = V((f) => i("LessThan"), ["stop"]))
1929
1929
  }, B((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
1930
1930
  ], 64)) : M("", !0),
1931
1931
  k("button", {
1932
1932
  type: "button",
1933
1933
  class: I({ active: n.column.condition === "IsNull" }),
1934
- onClick: a[17] || (a[17] = V((f) => i("IsNull"), ["stop"]))
1934
+ onClick: r[17] || (r[17] = V((f) => i("IsNull"), ["stop"]))
1935
1935
  }, B((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
1936
1936
  k("button", {
1937
1937
  type: "button",
1938
1938
  class: I({ active: n.column.condition === "IsNotNull" }),
1939
- onClick: a[18] || (a[18] = V((f) => i("IsNotNull"), ["stop"]))
1939
+ onClick: r[18] || (r[18] = V((f) => i("IsNotNull"), ["stop"]))
1940
1940
  }, B((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
1941
1941
  ])
1942
1942
  ], 512));
@@ -2004,36 +2004,37 @@ const yo = {
2004
2004
  ],
2005
2005
  emits: ["close", "filterChange", "sortChange", "clearFilter"],
2006
2006
  setup(t, { emit: o }) {
2007
- const n = t, l = o, e = A(null), i = A(null), r = A(n.column.condition || ""), a = A(!1), f = K(() => {
2007
+ const n = t, l = o, e = A(null), i = A(null), a = A(n.column.condition || ""), r = A(!1), f = K(() => {
2008
2008
  var $;
2009
- const b = (($ = n.column.type) == null ? void 0 : $.toLowerCase()) || "string";
2010
- return rt[b] || rt.string;
2011
- }), y = (b) => {
2012
- if (!n.columnFilterLang) return b.label;
2013
- const $ = b.value === "" ? "NoFilter" : b.value;
2014
- return n.columnFilterLang[$] || b.label;
2015
- }, C = () => {
2016
- a.value = !1, n.column.condition = r.value, r.value === "" && (n.column.value = ""), l("filterChange", n.column);
2017
- }, v = (b) => n.currentSortColumn === n.column.field && n.currentSortDirection === b, m = (b) => {
2018
- l("sortChange", n.column.field, b), l("close");
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
2021
  var $;
2021
- const b = (($ = n.column.type) == null ? void 0 : $.toLowerCase()) || "string";
2022
- n.column.condition = b === "string" ? "Contains" : "Equal", n.column.value = "", r.value = n.column.condition, l("clearFilter", n.column), l("close");
2023
- }, z = (b) => {
2024
- const $ = b.target;
2025
- a.value || $.tagName === "SELECT" || $.tagName === "OPTION" || e.value && e.value.contains($) || $.closest(".bh-filter-button") || l("close");
2026
- }, L = (b) => {
2027
- b.key === "Escape" && l("close");
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, $) => (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": $[0] || ($[0] = (D) => r.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: $[1] || ($[1] = (D) => a.value = !0),
2050
- onBlur: $[2] || ($[2] = (D) => a.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(y(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
- [it, r.value]
2059
+ [it, a.value]
2059
2060
  ])
2060
2061
  ]),
2061
2062
  n.column.sort !== !1 ? (c(), h("div", Io, [
@@ -2067,7 +2068,7 @@ const yo = {
2067
2068
  "bh-bg-primary/10 bh-text-primary": v("asc"),
2068
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: $[3] || ($[3] = (D) => m("asc"))
2071
+ onClick: $[3] || ($[3] = (q) => b("asc"))
2071
2072
  }, " ↑ Sort Ascending ", 2),
2072
2073
  k("button", {
2073
2074
  type: "button",
@@ -2075,7 +2076,7 @@ const yo = {
2075
2076
  "bh-bg-primary/10 bh-text-primary": v("desc"),
2076
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: $[4] || ($[4] = (D) => m("desc"))
2079
+ onClick: $[4] || ($[4] = (q) => b("desc"))
2079
2080
  }, " ↓ Sort Descending ", 2)
2080
2081
  ])
2081
2082
  ])) : M("", !0),
@@ -2188,10 +2189,10 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2188
2189
  "clearColumnFilter"
2189
2190
  ],
2190
2191
  setup(t, { emit: o }) {
2191
- const n = A(null), l = t, e = o, i = A({}), r = K(() => {
2192
- var m;
2192
+ const n = A(null), l = t, e = o, i = A({}), a = K(() => {
2193
+ var b;
2193
2194
  const v = /* @__PURE__ */ new Map();
2194
- return (m = l.all) != null && m.columns && l.all.columns.forEach((u) => {
2195
+ return (b = l.all) != null && b.columns && l.all.columns.forEach((u) => {
2195
2196
  u.field && v.set(u.field, u);
2196
2197
  }), v;
2197
2198
  });
@@ -2205,11 +2206,11 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2205
2206
  { immediate: !0, deep: !0 }
2206
2207
  ), Le(() => {
2207
2208
  var v;
2208
- (v = l.all) != null && v.columns && l.all.columns.forEach((m) => {
2209
- m.filter && m.field && (i.value[m.field] = m.value || "", cl(
2210
- () => i.value[m.field],
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],
2211
2212
  (u) => {
2212
- const z = r.value.get(m.field);
2213
+ const z = a.value.get(b.field);
2213
2214
  z && (z.type === "string" || z.type === "String" ? z.value = typeof u == "string" ? u.trim() : u : z.value = u, e("filterChange"));
2214
2215
  },
2215
2216
  { debounce: 300 }
@@ -2220,15 +2221,15 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2220
2221
  });
2221
2222
  const f = (v) => {
2222
2223
  if (!v.field) return !1;
2223
- const m = i.value[v.field];
2224
- return m !== "" && m !== null && m !== void 0;
2224
+ const b = i.value[v.field];
2225
+ return b !== "" && b !== null && b !== void 0;
2225
2226
  }, y = (v) => v.condition && v.condition !== "", C = (v) => {
2226
2227
  var L;
2227
2228
  if (!v.condition || v.condition === "") return "";
2228
- const m = ((L = v.type) == null ? void 0 : L.toLowerCase()) || "string", z = (rt[m] || rt.string).find((b) => b.value === v.condition);
2229
+ const b = ((L = v.type) == null ? void 0 : L.toLowerCase()) || "string", z = (rt[b] || rt.string).find((m) => m.value === v.condition);
2229
2230
  return z ? l.columnFilterLang && l.columnFilterLang[v.condition] ? l.columnFilterLang[v.condition] : z.label : v.condition;
2230
2231
  };
2231
- return (v, m) => (c(), h("tr", Zo, [
2232
+ return (v, b) => (c(), h("tr", Zo, [
2232
2233
  l.all.hasCheckbox ? (c(), h("th", {
2233
2234
  key: "chkall",
2234
2235
  style: G({
@@ -2246,7 +2247,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2246
2247
  ref_key: "selectedAll",
2247
2248
  ref: n,
2248
2249
  type: "checkbox",
2249
- onClick: m[0] || (m[0] = V((u) => {
2250
+ onClick: b[0] || (b[0] = V((u) => {
2250
2251
  var z;
2251
2252
  return e("selectAll", (z = u == null ? void 0 : u.target) == null ? void 0 : z.checked);
2252
2253
  }, ["stop"]))
@@ -2282,7 +2283,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2282
2283
  expandall: l.all.expandall
2283
2284
  }, null, 8, ["expandedrows", "expandall"])) : M("", !0)
2284
2285
  ], 4)) : M("", !0),
2285
- (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, [
2286
2287
  u.hide ? M("", !0) : (c(), h("th", {
2287
2288
  key: u.field,
2288
2289
  class: I(["bh-select-none bh-z-[1]", [
@@ -2323,9 +2324,9 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2323
2324
  ]))
2324
2325
  ], 2)) : M("", !0)
2325
2326
  ], 10, ti),
2326
- l.all.columnFilter && !l.isFooter ? (c(), h(W, { key: 0 }, [
2327
+ l.all.columnFilter && !l.isFooter ? (c(), h(D, { key: 0 }, [
2327
2328
  u.filter ? (c(), h("div", li, [
2328
- l.all.showFloatingFilterLabel ? M("", !0) : (c(), h(W, { key: 0 }, [
2329
+ l.all.showFloatingFilterLabel ? M("", !0) : (c(), h(D, { key: 0 }, [
2329
2330
  u.type === "string" || u.type === "String" ? ie((c(), h("input", {
2330
2331
  key: 0,
2331
2332
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
@@ -2357,7 +2358,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2357
2358
  key: 3,
2358
2359
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
2359
2360
  class: "bh-form-control",
2360
- onClick: m[1] || (m[1] = //@ts-ignore
2361
+ onClick: b[1] || (b[1] = //@ts-ignore
2361
2362
  (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2362
2363
  }, di, 8, ri)), [
2363
2364
  [it, i.value[u.field]]
@@ -2407,7 +2408,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2407
2408
  key: 4,
2408
2409
  "onUpdate:modelValue": (L) => i.value[u.field] = L,
2409
2410
  class: "bh-form-control",
2410
- onClick: m[2] || (m[2] = //@ts-ignore
2411
+ onClick: b[2] || (b[2] = //@ts-ignore
2411
2412
  (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2412
2413
  }, wi, 8, mi)), [
2413
2414
  [it, i.value[u.field]]
@@ -2419,7 +2420,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2419
2420
  class: I(["bh-filter-button", {
2420
2421
  "!bh-bg-primary/10 !bh-border-primary": y(u),
2421
2422
  "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !y(u),
2422
- "bh-filter-button--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel
2423
+ "bh-filter-button--with-label": l.all.showFloatingFilterLabel
2423
2424
  }]),
2424
2425
  onClick: V((L) => e("toggleFilterMenu", u), ["stop"])
2425
2426
  }, [
@@ -2435,8 +2436,8 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2435
2436
  column: u,
2436
2437
  type: u.type,
2437
2438
  columnFilterLang: l.columnFilterLang,
2438
- onClose: m[3] || (m[3] = (L) => e("toggleFilterMenu", null)),
2439
- onFilterChange: m[4] || (m[4] = (L) => e("filterChange"))
2439
+ onClose: b[3] || (b[3] = (L) => e("toggleFilterMenu", null)),
2440
+ onFilterChange: b[4] || (b[4] = (L) => e("filterChange"))
2440
2441
  }, null, 8, ["column", "type", "columnFilterLang"])), [
2441
2442
  [Gt, l.isOpenFilter === u.field]
2442
2443
  ]),
@@ -2446,9 +2447,9 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2446
2447
  columnFilterLang: l.columnFilterLang,
2447
2448
  currentSortColumn: l.currentSortColumn,
2448
2449
  currentSortDirection: l.currentSortDirection,
2449
- onClose: m[5] || (m[5] = (L) => e("toggleFilterMenu", null)),
2450
- onFilterChange: m[6] || (m[6] = (L) => e("filterChange")),
2451
- onSortChange: m[7] || (m[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)),
2452
2453
  onClearFilter: (L) => {
2453
2454
  i.value[L.field] = "", L.value = "", l.currentSortColumn === L.field && e("sortChange", l.all.sortColumn || L.field, "asc"), e("filterChange");
2454
2455
  }
@@ -2624,11 +2625,11 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2624
2625
  const p = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2625
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";
2626
2627
  }
2627
- const i = A([]), r = A(e.page), a = A(
2628
+ const i = A([]), a = A(e.page), r = A(
2628
2629
  e.pagination ? e.pageSize : (Vt = e.rows) == null ? void 0 : Vt.length
2629
- ), f = e.pageSize, y = A(e.sortColumn), C = e.sortColumn, v = A(e.sortDirection), m = e.sortDirection, u = A(e.totalRows), z = A([]), L = A(null), b = A(e.loading), $ = 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);
2630
2631
  JSON.parse(JSON.stringify(e.columns));
2631
- const D = A(null), ee = A(null);
2632
+ const q = A(null), ee = A(null);
2632
2633
  let J = A(0);
2633
2634
  const we = A(230), R = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, p) => {
2634
2635
  if (!p) return;
@@ -2762,15 +2763,15 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2762
2763
  s !== void 0 && (H.value = s, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke());
2763
2764
  }, { immediate: !0 });
2764
2765
  const Qe = (s, ...p) => s.replace(/{(\d+)}/g, (g, N) => typeof p[N] < "u" ? p[N] : g), d = K(() => {
2765
- const s = a.value < 1 ? 1 : Math.ceil(u.value / a.value);
2766
+ const s = r.value < 1 ? 1 : Math.ceil(u.value / r.value);
2766
2767
  return Math.max(s || 0, 1);
2767
- }), x = K(() => (r.value - 1) * a.value + 1), _ = K(() => {
2768
- const s = r.value * a.value;
2768
+ }), x = K(() => (a.value - 1) * r.value + 1), _ = K(() => {
2769
+ const s = a.value * r.value;
2769
2770
  return u.value >= s ? s : u.value;
2770
2771
  }), S = K(() => {
2771
2772
  let s, p;
2772
2773
  return typeof e.showNumbersCount < "u" && e.showNumbersCount < d.value ? (s = Math.max(
2773
- r.value - Math.floor(e.showNumbersCount / 2),
2774
+ a.value - Math.floor(e.showNumbersCount / 2),
2774
2775
  1
2775
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(
2776
2777
  (E) => s + E
@@ -2779,37 +2780,37 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2779
2780
  Y(
2780
2781
  () => e.loading,
2781
2782
  () => {
2782
- b.value = e.loading;
2783
+ m.value = e.loading;
2783
2784
  }
2784
2785
  );
2785
2786
  const F = (s) => {
2786
- 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;
2787
2788
  }, T = () => {
2788
- if (r.value == 1)
2789
+ if (a.value == 1)
2789
2790
  return !1;
2790
- r.value--;
2791
- }, q = (s) => {
2792
- r.value = s;
2791
+ a.value--;
2792
+ }, W = (s) => {
2793
+ a.value = s;
2793
2794
  }, Z = () => {
2794
- if (r.value >= d.value)
2795
+ if (a.value >= d.value)
2795
2796
  return !1;
2796
- r.value++;
2797
+ a.value++;
2797
2798
  };
2798
- Y(() => r.value, () => {
2799
- de(!1), e.isServerMode ? Me("page") : (pe(), j("pageChange", r.value));
2799
+ Y(() => a.value, () => {
2800
+ de(!1), e.isServerMode ? Me("page") : (pe(), j("pageChange", a.value));
2800
2801
  }), Y(() => e.rows, () => {
2801
- e.isServerMode || (r.value = 1), de(!1), pe();
2802
+ e.isServerMode || (a.value = 1), de(!1), pe();
2802
2803
  });
2803
2804
  const pt = (s) => {
2804
- a.value = s;
2805
+ r.value = s;
2805
2806
  };
2806
- Y(() => a.value, () => {
2807
- de(!1), e.isServerMode ? r.value === 1 ? Me("pagesize", !0) : r.value = 1 : (r.value = 1, pe(), j("pageSizeChange", a.value));
2807
+ Y(() => r.value, () => {
2808
+ de(!1), e.isServerMode ? a.value === 1 ? Me("pagesize", !0) : a.value = 1 : (a.value = 1, pe(), j("pageSizeChange", r.value));
2808
2809
  });
2809
2810
  const Ke = (s, p) => {
2810
2811
  let g = p || "asc";
2811
2812
  p || s == y.value && v.value === "asc" && (g = "desc");
2812
- let N = (r.value - 1) * a.value, E = a.value;
2813
+ let N = (a.value - 1) * r.value, E = r.value;
2813
2814
  y.value = s, v.value = g, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: N, limit: E, field: s, direction: g });
2814
2815
  }, qt = (s) => {
2815
2816
  L.value = s.length && i.value.length && s.length === i.value.length;
@@ -2829,11 +2830,11 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2829
2830
  }
2830
2831
  ) : z.value = [];
2831
2832
  }, Oe = () => {
2832
- de(!1), e.isServerMode ? r.value === 1 ? Me("filter", !0) : r.value = 1 : (r.value = 1, pe(), j("filterChange", e.columns));
2833
+ de(!1), e.isServerMode ? a.value === 1 ? Me("filter", !0) : a.value = 1 : (a.value = 1, pe(), j("filterChange", e.columns));
2833
2834
  }, Wt = (s) => {
2834
2835
  Oe();
2835
2836
  }, $n = () => {
2836
- de(!1), e.isServerMode ? r.value === 1 ? Me("search", !0) : r.value = 1 : (r.value = 1, pe(), j("searchChange", $.value));
2837
+ de(!1), e.isServerMode ? a.value === 1 ? Me("search", !0) : a.value = 1 : (a.value = 1, pe(), j("searchChange", $.value));
2837
2838
  };
2838
2839
  Y(
2839
2840
  () => e.search,
@@ -2858,9 +2859,9 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2858
2859
  if (e.isServerMode) {
2859
2860
  On();
2860
2861
  const g = {
2861
- current_page: p ? 1 : r.value,
2862
- pagesize: a.value,
2863
- offset: (r.value - 1) * a.value,
2862
+ current_page: p ? 1 : a.value,
2863
+ pagesize: r.value,
2864
+ offset: (a.value - 1) * r.value,
2864
2865
  sort_column: y.value,
2865
2866
  sort_direction: v.value,
2866
2867
  search: $.value,
@@ -2878,7 +2879,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2878
2879
  de(!1);
2879
2880
  for (let s = 0; s < e.columns.length; s++)
2880
2881
  e.columns[s].value = "";
2881
- $.value = "", a.value = f, y.value = C, v.value = m, e.isServerMode ? r.value === 1 ? Me("reset", !0) : r.value = 1 : (r.value = 1, pe());
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());
2882
2883
  }, An = () => i.value.filter((p, g) => {
2883
2884
  var E;
2884
2885
  const N = le.value ? ((E = ve.value) == null ? void 0 : E.get(g)) ?? g : g;
@@ -3009,7 +3010,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3009
3010
  Pi
3010
3011
  ]),
3011
3012
  k("div", {
3012
- class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3013
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": m.value }]),
3013
3014
  style: G({
3014
3015
  overflow: "auto",
3015
3016
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - (e.footerOffset + (U(Bn) || 0)) + "px" : "auto"
@@ -3028,7 +3029,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3028
3029
  expandedrows: ae.value,
3029
3030
  currentSortColumn: y.value,
3030
3031
  currentSortDirection: v.value,
3031
- isOpenFilter: D.value,
3032
+ isOpenFilter: q.value,
3032
3033
  checkAll: L.value,
3033
3034
  columnFilterLang: e.columnFilterLang,
3034
3035
  onSelectAll: de,
@@ -3039,7 +3040,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3039
3040
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3040
3041
  ], 2),
3041
3042
  k("tbody", null, [
3042
- (c(!0), h(W, null, oe(i.value, (g, N) => (c(), h(W, {
3043
+ (c(!0), h(D, null, oe(i.value, (g, N) => (c(), h(D, {
3043
3044
  key: ze(N)
3044
3045
  }, [
3045
3046
  u.value ? (c(), h("tr", {
@@ -3096,7 +3097,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3096
3097
  expandedrows: ae.value
3097
3098
  }, null, 8, ["item", "expandedrows"])
3098
3099
  ], 6)) : M("", !0),
3099
- (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, [
3100
3101
  E.hide ? M("", !0) : (c(), h("td", {
3101
3102
  key: E.field,
3102
3103
  class: I([
@@ -3112,7 +3113,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3112
3113
  }) : E.cellRenderer ? (c(), h("div", {
3113
3114
  key: 1,
3114
3115
  innerHTML: E.cellRenderer(g)
3115
- }, null, 8, Oi)) : (c(), h(W, { key: 2 }, [
3116
+ }, null, 8, Oi)) : (c(), h(D, { key: 2 }, [
3116
3117
  We(B(O(g, E.field)), 1)
3117
3118
  ], 64))
3118
3119
  ], 2))
@@ -3137,7 +3138,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3137
3138
  ], 8, Ai)
3138
3139
  ], 10, Ri)) : M("", !0)
3139
3140
  ], 64))), 128)),
3140
- !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3141
+ !u.value && m.value && s.skeletonloader ? (c(!0), h(D, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3141
3142
  key: g,
3142
3143
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3143
3144
  }, [
@@ -3146,7 +3147,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3146
3147
  class: "!bh-p-0 !bh-border-transparent"
3147
3148
  }, Di, 8, qi)
3148
3149
  ]))), 128)) : M("", !0),
3149
- u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3150
+ u.value ? (c(!0), h(D, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3150
3151
  key: g[le.value] ? g[le.value] : N,
3151
3152
  class: "sticky-table-footer"
3152
3153
  }, [
@@ -3154,7 +3155,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3154
3155
  key: 0,
3155
3156
  colspan: U(fe)
3156
3157
  }, null, 8, Bi)) : M("", !0),
3157
- (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, [
3158
3159
  E.hide ? M("", !0) : (c(), h("td", {
3159
3160
  key: E.field,
3160
3161
  class: I([
@@ -3164,7 +3165,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3164
3165
  E.cellClass ? E.cellClass : ""
3165
3166
  ])
3166
3167
  }, [
3167
- g.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3168
+ g.cells.find((be) => be.field == E.field) ? (c(), h(D, { key: 0 }, [
3168
3169
  We(B(g.cells.find((be) => be.field == E.field).text), 1)
3169
3170
  ], 64)) : M("", !0)
3170
3171
  ], 2))
@@ -3181,7 +3182,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3181
3182
  all: e,
3182
3183
  currentSortColumn: y.value,
3183
3184
  currentSortDirection: v.value,
3184
- isOpenFilter: D.value,
3185
+ isOpenFilter: q.value,
3185
3186
  isFooter: !0,
3186
3187
  checkAll: L.value,
3187
3188
  onSelectAll: de,
@@ -3191,7 +3192,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3191
3192
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3192
3193
  ], 2)) : M("", !0)
3193
3194
  ], 2),
3194
- b.value && s.enableloadinganimation ? (c(), h("div", {
3195
+ m.value && s.enableloadinganimation ? (c(), h("div", {
3195
3196
  key: 0,
3196
3197
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3197
3198
  style: G({
@@ -3200,7 +3201,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3200
3201
  }, [
3201
3202
  te(s.$slots, "loadercontent")
3202
3203
  ], 4)) : M("", !0),
3203
- !u.value && !b.value ? (c(), h("div", {
3204
+ !u.value && !m.value ? (c(), h("div", {
3204
3205
  key: 1,
3205
3206
  class: "nodatacontent",
3206
3207
  style: G({
@@ -3234,7 +3235,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3234
3235
  ], 4)) : M("", !0),
3235
3236
  te(s.$slots, "tableactionheader"),
3236
3237
  k("div", {
3237
- class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3238
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": m.value }]),
3238
3239
  style: G({
3239
3240
  overflow: "auto",
3240
3241
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - e.footerOffset + "px" : "auto"
@@ -3251,7 +3252,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3251
3252
  expandedrows: ae.value,
3252
3253
  currentSortColumn: y.value,
3253
3254
  currentSortDirection: v.value,
3254
- isOpenFilter: D.value,
3255
+ isOpenFilter: q.value,
3255
3256
  checkAll: L.value,
3256
3257
  columnFilterLang: e.columnFilterLang,
3257
3258
  onSelectAll: de,
@@ -3262,7 +3263,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3262
3263
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3263
3264
  ], 2),
3264
3265
  k("tbody", null, [
3265
- (c(!0), h(W, null, oe(i.value, (g, N) => (c(), h(W, {
3266
+ (c(!0), h(D, null, oe(i.value, (g, N) => (c(), h(D, {
3266
3267
  key: ze(N)
3267
3268
  }, [
3268
3269
  u.value ? (c(), h("tr", {
@@ -3313,7 +3314,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3313
3314
  expandedrows: ae.value
3314
3315
  }, null, 8, ["item", "expandedrows"])
3315
3316
  ], 6)) : M("", !0),
3316
- (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, [
3317
3318
  E.hide ? M("", !0) : (c(), h("td", {
3318
3319
  key: E.field,
3319
3320
  class: I([
@@ -3329,7 +3330,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3329
3330
  }) : E.cellRenderer ? (c(), h("div", {
3330
3331
  key: 1,
3331
3332
  innerHTML: E.cellRenderer(g)
3332
- }, null, 8, Gi)) : (c(), h(W, { key: 2 }, [
3333
+ }, null, 8, Gi)) : (c(), h(D, { key: 2 }, [
3333
3334
  We(B(O(g, E.field)), 1)
3334
3335
  ], 64))
3335
3336
  ], 2))
@@ -3365,7 +3366,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3365
3366
  ], 8, Ki)
3366
3367
  ], 10, Qi)) : M("", !0)
3367
3368
  ], 64))), 128)),
3368
- !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3369
+ !u.value && m.value && s.skeletonloader ? (c(!0), h(D, { key: 0 }, oe(e.pageSize, (g) => (c(), h("tr", {
3369
3370
  key: g,
3370
3371
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3371
3372
  }, [
@@ -3374,7 +3375,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3374
3375
  class: "!bh-p-0 !bh-border-transparent"
3375
3376
  }, Xi, 8, Ji)
3376
3377
  ]))), 128)) : M("", !0),
3377
- u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3378
+ u.value ? (c(!0), h(D, { key: 1 }, oe(e.footerRows, (g, N) => (c(), h("tr", {
3378
3379
  key: g[le.value] ? g[le.value] : N,
3379
3380
  class: "sticky-table-footer"
3380
3381
  }, [
@@ -3382,7 +3383,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3382
3383
  key: 0,
3383
3384
  colspan: U(fe)
3384
3385
  }, null, 8, Zi)) : M("", !0),
3385
- (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, [
3386
3387
  E.hide ? M("", !0) : (c(), h("td", {
3387
3388
  key: E.field,
3388
3389
  class: I([
@@ -3392,7 +3393,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3392
3393
  E.cellClass ? E.cellClass : ""
3393
3394
  ])
3394
3395
  }, [
3395
- g.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3396
+ g.cells.find((be) => be.field == E.field) ? (c(), h(D, { key: 0 }, [
3396
3397
  We(B(g.cells.find((be) => be.field == E.field).text), 1)
3397
3398
  ], 64)) : M("", !0)
3398
3399
  ], 2))
@@ -3407,7 +3408,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3407
3408
  all: e,
3408
3409
  currentSortColumn: y.value,
3409
3410
  currentSortDirection: v.value,
3410
- isOpenFilter: D.value,
3411
+ isOpenFilter: q.value,
3411
3412
  isFooter: !0,
3412
3413
  checkAll: L.value,
3413
3414
  onSelectAll: de,
@@ -3417,14 +3418,14 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3417
3418
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3418
3419
  ], 2)) : M("", !0)
3419
3420
  ], 2),
3420
- b.value && s.enableloadinganimation ? (c(), h("div", {
3421
+ m.value && s.enableloadinganimation ? (c(), h("div", {
3421
3422
  key: 0,
3422
3423
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3423
3424
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3424
3425
  }, [
3425
3426
  te(s.$slots, "loadercontent")
3426
3427
  ], 4)) : M("", !0),
3427
- !u.value && !b.value ? (c(), h("div", {
3428
+ !u.value && !m.value ? (c(), h("div", {
3428
3429
  key: 1,
3429
3430
  class: "nodatacontent",
3430
3431
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
@@ -3445,7 +3446,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3445
3446
  }, 8, ["style"]),
3446
3447
  e.pagination && (u.value || e.alwaysShowPagination) ? (c(), h("div", {
3447
3448
  key: 0,
3448
- 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 }])
3449
3450
  }, [
3450
3451
  k("div", es, [
3451
3452
  s.enablefooterpagination ? te(s.$slots, "footerpageinfo", {
@@ -3456,7 +3457,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3456
3457
  limit: _.value,
3457
3458
  showPageSize: s.showPageSize,
3458
3459
  pageSizeOptions: s.pageSizeOptions,
3459
- currentPageSize: a.value,
3460
+ currentPageSize: r.value,
3460
3461
  stringFormat: Qe,
3461
3462
  setPageSize: pt
3462
3463
  }, () => [
@@ -3464,24 +3465,24 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3464
3465
  k("span", ns, B(Qe(e.paginationInfo, u.value ? x.value : 0, _.value, u.value)), 1),
3465
3466
  e.showPageSize ? ie((c(), h("select", {
3466
3467
  key: 0,
3467
- "onUpdate:modelValue": p[6] || (p[6] = (g) => a.value = g),
3468
+ "onUpdate:modelValue": p[6] || (p[6] = (g) => r.value = g),
3468
3469
  class: "bh-pagesize"
3469
3470
  }, [
3470
- (c(!0), h(W, null, oe(e.pageSizeOptions, (g) => (c(), h("option", {
3471
+ (c(!0), h(D, null, oe(e.pageSizeOptions, (g) => (c(), h("option", {
3471
3472
  value: g,
3472
3473
  key: g
3473
3474
  }, B(g), 9, ls))), 128))
3474
3475
  ], 512)), [
3475
- [it, a.value]
3476
+ [it, r.value]
3476
3477
  ]) : M("", !0)
3477
3478
  ])
3478
3479
  ]) : M("", !0),
3479
3480
  s.enablefooterpagination ? te(s.$slots, "footerpagination", {
3480
3481
  key: 1,
3481
- currentPage: r.value,
3482
+ currentPage: a.value,
3482
3483
  maxPage: d.value,
3483
3484
  paging: S.value,
3484
- movePage: q,
3485
+ movePage: W,
3485
3486
  nextPage: Z,
3486
3487
  previousPage: T
3487
3488
  }, () => [
@@ -3489,8 +3490,8 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3489
3490
  e.showFirstPage ? (c(), h("button", {
3490
3491
  key: 0,
3491
3492
  type: "button",
3492
- class: I(["bh-page-item first-page", { disabled: r.value <= 1 }]),
3493
- onClick: p[7] || (p[7] = (g) => r.value = 1)
3493
+ class: I(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3494
+ onClick: p[7] || (p[7] = (g) => a.value = 1)
3494
3495
  }, [
3495
3496
  e.firstArrow ? (c(), h("span", {
3496
3497
  key: 0,
@@ -3499,7 +3500,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3499
3500
  ], 2)) : M("", !0),
3500
3501
  k("button", {
3501
3502
  type: "button",
3502
- class: I(["bh-page-item previous-page", { disabled: r.value <= 1 }]),
3503
+ class: I(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3503
3504
  onClick: T
3504
3505
  }, [
3505
3506
  e.previousArrow ? (c(), h("span", {
@@ -3507,15 +3508,15 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3507
3508
  innerHTML: e.previousArrow
3508
3509
  }, null, 8, us)) : (c(), h("svg", cs, fs))
3509
3510
  ], 2),
3510
- e.showNumbers ? (c(!0), h(W, { key: 1 }, oe(S.value, (g) => (c(), h("button", {
3511
+ e.showNumbers ? (c(!0), h(D, { key: 1 }, oe(S.value, (g) => (c(), h("button", {
3511
3512
  key: g,
3512
3513
  type: "button",
3513
- class: I(["bh-page-item", { disabled: r.value === g, "bh-active": g === r.value }]),
3514
- onClick: (N) => q(g)
3514
+ class: I(["bh-page-item", { disabled: a.value === g, "bh-active": g === a.value }]),
3515
+ onClick: (N) => W(g)
3515
3516
  }, B(g), 11, hs))), 128)) : M("", !0),
3516
3517
  k("button", {
3517
3518
  type: "button",
3518
- class: I(["bh-page-item next-page", { disabled: r.value >= d.value }]),
3519
+ class: I(["bh-page-item next-page", { disabled: a.value >= d.value }]),
3519
3520
  onClick: Z
3520
3521
  }, [
3521
3522
  e.nextArrow ? (c(), h("span", {
@@ -3526,8 +3527,8 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3526
3527
  e.showLastPage ? (c(), h("button", {
3527
3528
  key: 2,
3528
3529
  type: "button",
3529
- class: I(["bh-page-item last-page", { disabled: r.value >= d.value }]),
3530
- onClick: p[8] || (p[8] = (g) => r.value = d.value)
3530
+ class: I(["bh-page-item last-page", { disabled: a.value >= d.value }]),
3531
+ onClick: p[8] || (p[8] = (g) => a.value = d.value)
3531
3532
  }, [
3532
3533
  e.lastArrow ? (c(), h("span", {
3533
3534
  key: 0,