@dolusoft/vue3-datatable 1.7.68 → 1.7.69

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 d, createBlock as re, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as p, 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 M, toDisplayString as B, createCommentVNode as E, onUnmounted as mn, withDirectives as ie, renderList as oe, vModelSelect as st, createTextVNode as De, vModelText as Pe, vShow as Gt, withCtx as qe, vModelCheckbox as Qt } from "vue";
1
+ import { isRef as Kn, watch as Y, onMounted as Le, nextTick as Se, getCurrentScope as Jn, onScopeDispose as Yn, unref as U, getCurrentInstance as It, computed as K, ref as A, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as re, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as h, normalizeStyle as G, renderSlot as te, h as kt, defineComponent as _e, toRef as Zn, Fragment as W, withModifiers as V, createVNode as ne, createElementVNode as k, normalizeClass as I, toDisplayString as B, createCommentVNode as M, onUnmounted as mn, withDirectives as ie, renderList as oe, vModelSelect as st, createTextVNode as De, vModelText as Pe, vShow as Gt, withCtx as qe, vModelCheckbox as Qt } from "vue";
2
2
  function bn(t) {
3
3
  return Jn() ? (Yn(t), !0) : !1;
4
4
  }
@@ -28,29 +28,29 @@ function yn(t, o = {}) {
28
28
  clearTimeout(r), e(), e = ye;
29
29
  };
30
30
  return (r) => {
31
- const h = He(t), b = He(o.maxWait);
32
- return n && i(n), h <= 0 || b !== void 0 && b <= 0 ? (l && (i(l), l = null), Promise.resolve(r())) : new Promise((C, x) => {
33
- e = o.rejectOnCancel ? x : C, b && !l && (l = setTimeout(() => {
31
+ const f = He(t), g = He(o.maxWait);
32
+ return n && i(n), f <= 0 || g !== void 0 && g <= 0 ? (l && (i(l), l = null), Promise.resolve(r())) : new Promise((C, m) => {
33
+ e = o.rejectOnCancel ? m : C, g && !l && (l = setTimeout(() => {
34
34
  n && i(n), l = null, C(r());
35
- }, b)), n = setTimeout(() => {
35
+ }, g)), n = setTimeout(() => {
36
36
  l && i(l), l = null, C(r());
37
- }, h);
37
+ }, f);
38
38
  });
39
39
  };
40
40
  }
41
41
  function il(...t) {
42
- let o = 0, n, l = !0, e = ye, i, a, r, h, b;
43
- !Kn(t[0]) && typeof t[0] == "object" ? { delay: a, trailing: r = !0, leading: h = !0, rejectOnCancel: b = !1 } = t[0] : [a, r = !0, h = !0, b = !1] = t;
42
+ let o = 0, n, l = !0, e = ye, i, a, r, f, g;
43
+ !Kn(t[0]) && typeof t[0] == "object" ? { delay: a, trailing: r = !0, leading: f = !0, rejectOnCancel: g = !1 } = t[0] : [a, r = !0, f = !0, g = !1] = t;
44
44
  const C = () => {
45
45
  n && (clearTimeout(n), n = void 0, e(), e = ye);
46
46
  };
47
- return (y) => {
48
- const v = He(a), u = Date.now() - o, I = () => i = y();
49
- return C(), v <= 0 ? (o = Date.now(), I()) : (u > v && (h || !l) ? (o = Date.now(), I()) : r && (i = new Promise((c, P) => {
50
- e = b ? P : c, n = setTimeout(() => {
51
- o = Date.now(), l = !0, c(I()), C();
52
- }, Math.max(0, v - u));
53
- })), !h && !n && (n = setTimeout(() => l = !0, v)), l = !1, i);
47
+ return (p) => {
48
+ const u = He(a), z = Date.now() - o, L = () => i = p();
49
+ return C(), u <= 0 ? (o = Date.now(), L()) : (z > u && (f || !l) ? (o = Date.now(), L()) : r && (i = new Promise((b, N) => {
50
+ e = g ? N : b, n = setTimeout(() => {
51
+ o = Date.now(), l = !0, b(L()), C();
52
+ }, Math.max(0, u - z));
53
+ })), !f && !n && (n = setTimeout(() => l = !0, u)), l = !1, i);
54
54
  };
55
55
  }
56
56
  function sl(t) {
@@ -113,60 +113,60 @@ function bt(...t) {
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
114
114
  const i = [], a = () => {
115
115
  i.forEach((C) => C()), i.length = 0;
116
- }, r = (C, x, y, v) => (C.addEventListener(x, y, v), () => C.removeEventListener(x, y, v)), h = Y(
116
+ }, r = (C, m, p, u) => (C.addEventListener(m, p, u), () => C.removeEventListener(m, p, u)), f = Y(
117
117
  () => [he(o), He(e)],
118
- ([C, x]) => {
118
+ ([C, m]) => {
119
119
  if (a(), !C)
120
120
  return;
121
- const y = tl(x) ? { ...x } : x;
121
+ const p = tl(m) ? { ...m } : m;
122
122
  i.push(
123
- ...n.flatMap((v) => l.map((u) => r(C, v, u, y)))
123
+ ...n.flatMap((u) => l.map((z) => r(C, u, z, p)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
- ), b = () => {
128
- h(), a();
127
+ ), g = () => {
128
+ f(), a();
129
129
  };
130
- return bn(b), b;
130
+ return bn(g), g;
131
131
  }
132
132
  let Jt = !1;
133
133
  function dl(t, o, n = {}) {
134
134
  const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: a = !1 } = n;
135
135
  if (!l)
136
136
  return ye;
137
- nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((y) => y.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
137
+ nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((p) => p.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
138
138
  let r = !0;
139
- const h = (y) => e.some((v) => {
140
- if (typeof v == "string")
141
- return Array.from(l.document.querySelectorAll(v)).some((u) => u === y.target || y.composedPath().includes(u));
139
+ const f = (p) => e.some((u) => {
140
+ if (typeof u == "string")
141
+ return Array.from(l.document.querySelectorAll(u)).some((z) => z === p.target || p.composedPath().includes(z));
142
142
  {
143
- const u = he(v);
144
- return u && (y.target === u || y.composedPath().includes(u));
143
+ const z = he(u);
144
+ return z && (p.target === z || p.composedPath().includes(z));
145
145
  }
146
146
  }), C = [
147
- bt(l, "click", (y) => {
148
- const v = he(t);
149
- if (!(!v || v === y.target || y.composedPath().includes(v))) {
150
- if (y.detail === 0 && (r = !h(y)), !r) {
147
+ bt(l, "click", (p) => {
148
+ const u = he(t);
149
+ if (!(!u || u === p.target || p.composedPath().includes(u))) {
150
+ if (p.detail === 0 && (r = !f(p)), !r) {
151
151
  r = !0;
152
152
  return;
153
153
  }
154
- o(y);
154
+ o(p);
155
155
  }
156
156
  }, { passive: !0, capture: i }),
157
- bt(l, "pointerdown", (y) => {
158
- const v = he(t);
159
- r = !h(y) && !!(v && !y.composedPath().includes(v));
157
+ bt(l, "pointerdown", (p) => {
158
+ const u = he(t);
159
+ r = !f(p) && !!(u && !p.composedPath().includes(u));
160
160
  }, { passive: !0 }),
161
- a && bt(l, "blur", (y) => {
161
+ a && bt(l, "blur", (p) => {
162
162
  setTimeout(() => {
163
- var v;
164
- const u = he(t);
165
- ((v = l.document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !(u != null && u.contains(l.document.activeElement)) && o(y);
163
+ var u;
164
+ const z = he(t);
165
+ ((u = l.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(z != null && z.contains(l.document.activeElement)) && o(p);
166
166
  }, 0);
167
167
  })
168
168
  ].filter(Boolean);
169
- return () => C.forEach((y) => y());
169
+ return () => C.forEach((p) => p());
170
170
  }
171
171
  function fl() {
172
172
  const t = A(!1), o = It();
@@ -183,18 +183,18 @@ function pl(t, o, n = {}) {
183
183
  let i;
184
184
  const a = hl(() => l && "ResizeObserver" in l), r = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
- }, h = K(() => Array.isArray(t) ? t.map((x) => he(x)) : [he(t)]), b = Y(
187
- h,
188
- (x) => {
186
+ }, f = K(() => Array.isArray(t) ? t.map((m) => he(m)) : [he(t)]), g = Y(
187
+ f,
188
+ (m) => {
189
189
  if (r(), a.value && l) {
190
190
  i = new ResizeObserver(o);
191
- for (const y of x)
192
- y && i.observe(y, e);
191
+ for (const p of m)
192
+ p && i.observe(p, e);
193
193
  }
194
194
  },
195
195
  { immediate: !0, flush: "post" }
196
196
  ), C = () => {
197
- r(), b();
197
+ r(), g();
198
198
  };
199
199
  return bn(C), {
200
200
  isSupported: a,
@@ -203,38 +203,38 @@ function pl(t, o, n = {}) {
203
203
  }
204
204
  function vl(t, o = { width: 0, height: 0 }, n = {}) {
205
205
  const { window: l = at, box: e = "content-box" } = n, i = K(() => {
206
- var x, y;
207
- return (y = (x = he(t)) == null ? void 0 : x.namespaceURI) == null ? void 0 : y.includes("svg");
208
- }), a = A(o.width), r = A(o.height), { stop: h } = pl(
206
+ var m, p;
207
+ return (p = (m = he(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : p.includes("svg");
208
+ }), a = A(o.width), r = A(o.height), { stop: f } = pl(
209
209
  t,
210
- ([x]) => {
211
- const y = e === "border-box" ? x.borderBoxSize : e === "content-box" ? x.contentBoxSize : x.devicePixelContentBoxSize;
210
+ ([m]) => {
211
+ const p = e === "border-box" ? m.borderBoxSize : e === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
212
212
  if (l && i.value) {
213
- const v = he(t);
214
- if (v) {
215
- const u = v.getBoundingClientRect();
216
- a.value = u.width, r.value = u.height;
213
+ const u = he(t);
214
+ if (u) {
215
+ const z = u.getBoundingClientRect();
216
+ a.value = z.width, r.value = z.height;
217
217
  }
218
- } else if (y) {
219
- const v = Array.isArray(y) ? y : [y];
220
- a.value = v.reduce((u, { inlineSize: I }) => u + I, 0), r.value = v.reduce((u, { blockSize: I }) => u + I, 0);
218
+ } else if (p) {
219
+ const u = Array.isArray(p) ? p : [p];
220
+ a.value = u.reduce((z, { inlineSize: L }) => z + L, 0), r.value = u.reduce((z, { blockSize: L }) => z + L, 0);
221
221
  } else
222
- a.value = x.contentRect.width, r.value = x.contentRect.height;
222
+ a.value = m.contentRect.width, r.value = m.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
226
  ul(() => {
227
- const x = he(t);
228
- x && (a.value = "offsetWidth" in x ? x.offsetWidth : o.width, r.value = "offsetHeight" in x ? x.offsetHeight : o.height);
227
+ const m = he(t);
228
+ m && (a.value = "offsetWidth" in m ? m.offsetWidth : o.width, r.value = "offsetHeight" in m ? m.offsetHeight : o.height);
229
229
  });
230
- const b = Y(
230
+ const g = Y(
231
231
  () => he(t),
232
- (x) => {
233
- a.value = x ? o.width : 0, r.value = x ? o.height : 0;
232
+ (m) => {
233
+ a.value = m ? o.width : 0, r.value = m ? o.height : 0;
234
234
  }
235
235
  );
236
236
  function C() {
237
- h(), b();
237
+ f(), g();
238
238
  }
239
239
  return {
240
240
  width: a,
@@ -265,74 +265,74 @@ const Yt = {
265
265
  "splitter-dblclick"
266
266
  ],
267
267
  setup(t, { emit: o }) {
268
- const n = o, l = t, e = pn(), i = A([]), a = K(() => i.value.reduce((f, S) => (f[~~S.id] = S) && f, {})), r = K(() => i.value.length), h = A(null), b = 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), g = A(!1), C = A({
269
269
  mouseDown: !1,
270
270
  dragging: !1,
271
271
  activeSplitter: null,
272
272
  cursorOffset: 0
273
273
  // Cursor offset within the splitter.
274
- }), x = A({
274
+ }), m = A({
275
275
  // Used to detect double click on touch devices.
276
276
  splitter: null,
277
277
  timeoutId: null
278
- }), y = K(() => ({
278
+ }), p = K(() => ({
279
279
  [`splitpanes splitpanes--${l.horizontal ? "horizontal" : "vertical"}`]: !0,
280
280
  "splitpanes--dragging": C.value.dragging
281
- })), v = () => {
282
- document.addEventListener("mousemove", c, { passive: !1 }), document.addEventListener("mouseup", P), "ontouchstart" in window && (document.addEventListener("touchmove", c, { passive: !1 }), document.addEventListener("touchend", P));
283
- }, u = () => {
284
- document.removeEventListener("mousemove", c, { passive: !1 }), document.removeEventListener("mouseup", P), "ontouchstart" in window && (document.removeEventListener("touchmove", c, { passive: !1 }), document.removeEventListener("touchend", P));
285
- }, I = (f, S) => {
286
- const _ = f.target.closest(".splitpanes__splitter");
281
+ })), u = () => {
282
+ document.addEventListener("mousemove", b, { passive: !1 }), document.addEventListener("mouseup", N), "ontouchstart" in window && (document.addEventListener("touchmove", b, { passive: !1 }), document.addEventListener("touchend", N));
283
+ }, z = () => {
284
+ document.removeEventListener("mousemove", b, { passive: !1 }), document.removeEventListener("mouseup", N), "ontouchstart" in window && (document.removeEventListener("touchmove", b, { passive: !1 }), document.removeEventListener("touchend", N));
285
+ }, L = (d, x) => {
286
+ const _ = d.target.closest(".splitpanes__splitter");
287
287
  if (_) {
288
- const { left: F, top: L } = _.getBoundingClientRect(), { clientX: T, clientY: q } = "ontouchstart" in window && f.touches ? f.touches[0] : f;
289
- C.value.cursorOffset = l.horizontal ? q - L : T - F;
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;
290
290
  }
291
- v(), C.value.mouseDown = !0, C.value.activeSplitter = S;
292
- }, c = (f) => {
293
- C.value.mouseDown && (f.preventDefault(), C.value.dragging = !0, requestAnimationFrame(() => {
294
- H(we(f)), j("resize", { event: f }, !0);
291
+ u(), C.value.mouseDown = !0, C.value.activeSplitter = x;
292
+ }, b = (d) => {
293
+ C.value.mouseDown && (d.preventDefault(), C.value.dragging = !0, requestAnimationFrame(() => {
294
+ H(we(d)), j("resize", { event: d }, !0);
295
295
  }));
296
- }, P = (f) => {
297
- C.value.dragging && j("resized", { event: f }, !0), C.value.mouseDown = !1, C.value.activeSplitter = null, setTimeout(() => {
298
- C.value.dragging = !1, u();
296
+ }, N = (d) => {
297
+ C.value.dragging && j("resized", { event: d }, !0), C.value.mouseDown = !1, C.value.activeSplitter = null, setTimeout(() => {
298
+ C.value.dragging = !1, z();
299
299
  }, 100);
300
- }, W = (f, S) => {
301
- "ontouchstart" in window && (f.preventDefault(), x.value.splitter === S ? (clearTimeout(x.value.timeoutId), x.value.timeoutId = null, ee(f, S), x.value.splitter = null) : (x.value.splitter = S, x.value.timeoutId = setTimeout(() => x.value.splitter = null, 500))), C.value.dragging || j("splitter-click", { event: f, index: S }, !0);
302
- }, ee = (f, S) => {
303
- if (j("splitter-dblclick", { event: f, index: S }, !0), l.maximizePanes) {
300
+ }, D = (d, x) => {
301
+ "ontouchstart" in window && (d.preventDefault(), m.value.splitter === x ? (clearTimeout(m.value.timeoutId), m.value.timeoutId = null, ee(d, x), m.value.splitter = null) : (m.value.splitter = x, m.value.timeoutId = setTimeout(() => m.value.splitter = null, 500))), C.value.dragging || j("splitter-click", { event: d, index: x }, !0);
302
+ }, ee = (d, x) => {
303
+ if (j("splitter-dblclick", { event: d, index: x }, !0), l.maximizePanes) {
304
304
  let _ = 0;
305
- i.value = i.value.map((F, L) => (F.size = L === S ? F.max : F.min, L !== S && (_ += F.min), F)), i.value[S].size -= _, j("pane-maximize", { event: f, index: S, pane: i.value[S] }), j("resized", { event: f, index: S }, !0);
305
+ i.value = i.value.map((S, F) => (S.size = F === x ? S.max : S.min, F !== x && (_ += S.min), S)), i.value[x].size -= _, j("pane-maximize", { event: d, index: x, pane: i.value[x] }), j("resized", { event: d, index: x }, !0);
306
306
  }
307
- }, J = (f, S) => {
307
+ }, J = (d, x) => {
308
308
  j("pane-click", {
309
- event: f,
310
- index: a.value[S].index,
311
- pane: a.value[S]
309
+ event: d,
310
+ index: a.value[x].index,
311
+ pane: a.value[x]
312
312
  });
313
- }, we = (f) => {
314
- const S = h.value.getBoundingClientRect(), { clientX: _, clientY: F } = "ontouchstart" in window && f.touches ? f.touches[0] : f;
313
+ }, we = (d) => {
314
+ const x = f.value.getBoundingClientRect(), { clientX: _, clientY: S } = "ontouchstart" in window && d.touches ? d.touches[0] : d;
315
315
  return {
316
- x: _ - (l.horizontal ? 0 : C.value.cursorOffset) - S.left,
317
- y: F - (l.horizontal ? C.value.cursorOffset : 0) - S.top
316
+ x: _ - (l.horizontal ? 0 : C.value.cursorOffset) - x.left,
317
+ y: S - (l.horizontal ? C.value.cursorOffset : 0) - x.top
318
318
  };
319
- }, R = (f) => {
320
- f = f[l.horizontal ? "y" : "x"];
321
- const S = h.value[l.horizontal ? "clientHeight" : "clientWidth"];
322
- return l.rtl && !l.horizontal && (f = S - f), f * 100 / S;
323
- }, H = (f) => {
324
- const S = C.value.activeSplitter;
319
+ }, R = (d) => {
320
+ d = d[l.horizontal ? "y" : "x"];
321
+ const x = f.value[l.horizontal ? "clientHeight" : "clientWidth"];
322
+ return l.rtl && !l.horizontal && (d = x - d), d * 100 / x;
323
+ }, H = (d) => {
324
+ const x = C.value.activeSplitter;
325
325
  let _ = {
326
- prevPanesSize: se(S),
327
- nextPanesSize: O(S),
326
+ prevPanesSize: se(x),
327
+ nextPanesSize: O(x),
328
328
  prevReachedMinPanes: 0,
329
329
  nextReachedMinPanes: 0
330
330
  };
331
- const F = 0 + (l.pushOtherPanes ? 0 : _.prevPanesSize), L = 100 - (l.pushOtherPanes ? 0 : _.nextPanesSize), T = Math.max(Math.min(R(f), L), F);
332
- let q = [S, S + 1], Z = i.value[q[0]] || null, ue = i.value[q[1]] || null;
333
- const ht = Z.max < 100 && T >= Z.max + _.prevPanesSize, pt = ue.max < 100 && T <= 100 - (ue.max + O(S + 1));
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;
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
- ht ? (Z.size = Z.max, ue.size = Math.max(100 - Z.max - _.prevPanesSize - _.nextPanesSize, 0)) : (Z.size = Math.max(100 - ue.max - _.prevPanesSize - O(S + 1), 0), ue.size = ue.max);
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);
336
336
  return;
337
337
  }
338
338
  if (l.pushOtherPanes) {
@@ -341,122 +341,122 @@ const Yt = {
341
341
  ({ sums: _, panesToResize: q } = vt), Z = i.value[q[0]] || null, ue = i.value[q[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
- }, ce = (f, S) => {
345
- const _ = C.value.activeSplitter, F = [_, _ + 1];
346
- return S < f.prevPanesSize + i.value[F[0]].min && (F[0] = le(_).index, f.prevReachedMinPanes = 0, F[0] < _ && i.value.forEach((L, T) => {
347
- T > F[0] && T <= _ && (L.size = L.min, f.prevReachedMinPanes += L.min);
348
- }), f.prevPanesSize = se(F[0]), F[0] === void 0) ? (f.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((L, T) => {
349
- T > 0 && T <= _ && (L.size = L.min, f.prevReachedMinPanes += L.min);
350
- }), i.value[F[1]].size = 100 - f.prevReachedMinPanes - i.value[0].min - f.prevPanesSize - f.nextPanesSize, null) : S > 100 - f.nextPanesSize - i.value[F[1]].min && (F[1] = ve(_).index, f.nextReachedMinPanes = 0, F[1] > _ + 1 && i.value.forEach((L, T) => {
351
- T > _ && T < F[1] && (L.size = L.min, f.nextReachedMinPanes += L.min);
352
- }), f.nextPanesSize = O(F[1] - 1), F[1] === void 0) ? (f.nextReachedMinPanes = 0, i.value.forEach((L, T) => {
353
- T < r.value - 1 && T >= _ + 1 && (L.size = L.min, f.nextReachedMinPanes += L.min);
354
- }), i.value[F[0]].size = 100 - f.prevPanesSize - O(F[0] - 1), null) : { sums: f, panesToResize: F };
355
- }, se = (f) => i.value.reduce((S, _, F) => S + (F < f ? _.size : 0), 0), O = (f) => i.value.reduce((S, _, F) => S + (F > f + 1 ? _.size : 0), 0), le = (f) => [...i.value].reverse().find((S) => S.index < f && S.size > S.min) || {}, ve = (f) => i.value.find((S) => S.index > f + 1 && S.size > S.min) || {}, ze = () => {
356
- var f;
357
- const S = Array.from(((f = h.value) == null ? void 0 : f.children) || []);
358
- for (const _ of S) {
359
- const F = _.classList.contains("splitpanes__pane"), L = _.classList.contains("splitpanes__splitter");
360
- !F && !L && (_.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
344
+ }, ce = (d, x) => {
345
+ const _ = C.value.activeSplitter, S = [_, _ + 1];
346
+ return x < d.prevPanesSize + i.value[S[0]].min && (S[0] = le(_).index, d.prevReachedMinPanes = 0, S[0] < _ && i.value.forEach((F, T) => {
347
+ T > S[0] && T <= _ && (F.size = F.min, d.prevReachedMinPanes += F.min);
348
+ }), d.prevPanesSize = se(S[0]), S[0] === void 0) ? (d.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((F, T) => {
349
+ T > 0 && T <= _ && (F.size = F.min, d.prevReachedMinPanes += F.min);
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
+ T > _ && T < S[1] && (F.size = F.min, d.nextReachedMinPanes += F.min);
352
+ }), d.nextPanesSize = O(S[1] - 1), S[1] === void 0) ? (d.nextReachedMinPanes = 0, i.value.forEach((F, T) => {
353
+ T < r.value - 1 && T >= _ + 1 && (F.size = F.min, d.nextReachedMinPanes += F.min);
354
+ }), i.value[S[0]].size = 100 - d.prevPanesSize - O(S[0] - 1), null) : { sums: d, panesToResize: S };
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
+ var d;
357
+ const x = Array.from(((d = f.value) == null ? void 0 : d.children) || []);
358
+ for (const _ of x) {
359
+ const S = _.classList.contains("splitpanes__pane"), F = _.classList.contains("splitpanes__splitter");
360
+ !S && !F && (_.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
361
361
  }
362
- }, Te = (f, S, _ = !1) => {
363
- const F = f - 1, L = document.createElement("div");
364
- L.classList.add("splitpanes__splitter"), _ || (L.onmousedown = (T) => I(T, F), typeof window < "u" && "ontouchstart" in window && (L.ontouchstart = (T) => I(T, F)), L.onclick = (T) => W(T, F + 1)), L.ondblclick = (T) => ee(T, F + 1), S.parentNode.insertBefore(L, S);
365
- }, Ee = (f) => {
366
- f.onmousedown = void 0, f.onclick = void 0, f.ondblclick = void 0, f.remove();
362
+ }, Ne = (d, x, _ = !1) => {
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);
365
+ }, Ee = (d) => {
366
+ d.onmousedown = void 0, d.onclick = void 0, d.ondblclick = void 0, d.remove();
367
367
  }, me = () => {
368
- var f;
369
- const S = Array.from(((f = h.value) == null ? void 0 : f.children) || []);
370
- for (const F of S)
371
- F.className.includes("splitpanes__splitter") && Ee(F);
368
+ var d;
369
+ const x = Array.from(((d = f.value) == null ? void 0 : d.children) || []);
370
+ for (const S of x)
371
+ S.className.includes("splitpanes__splitter") && Ee(S);
372
372
  let _ = 0;
373
- for (const F of S)
374
- F.className.includes("splitpanes__pane") && (!_ && l.firstSplitter ? Te(_, F, !0) : _ && Te(_, F), _++);
375
- }, $e = ({ uid: f, ...S }) => {
376
- const _ = a.value[f];
377
- for (const [F, L] of Object.entries(S)) _[F] = L;
378
- }, ft = (f) => {
379
- var S;
373
+ for (const S of x)
374
+ S.className.includes("splitpanes__pane") && (!_ && l.firstSplitter ? Ne(_, S, !0) : _ && Ne(_, S), _++);
375
+ }, $e = ({ uid: d, ...x }) => {
376
+ const _ = a.value[d];
377
+ for (const [S, F] of Object.entries(x)) _[S] = F;
378
+ }, ft = (d) => {
379
+ var x;
380
380
  let _ = -1;
381
- Array.from(((S = h.value) == null ? void 0 : S.children) || []).some((F) => (F.className.includes("splitpanes__pane") && _++, F.isSameNode(f.el))), i.value.splice(_, 0, { ...f, index: _ }), i.value.forEach((F, L) => F.index = L), b.value && Se(() => {
381
+ Array.from(((x = f.value) == null ? void 0 : x.children) || []).some((S) => (S.className.includes("splitpanes__pane") && _++, S.isSameNode(d.el))), i.value.splice(_, 0, { ...d, index: _ }), i.value.forEach((S, F) => S.index = F), g.value && Se(() => {
382
382
  me(), ae({ addedPane: i.value[_] }), j("pane-add", { pane: i.value[_] });
383
383
  });
384
- }, Ge = (f) => {
385
- const S = i.value.findIndex((F) => F.id === f);
386
- i.value[S].el = null;
387
- const _ = i.value.splice(S, 1)[0];
388
- i.value.forEach((F, L) => F.index = L), Se(() => {
384
+ }, Ge = (d) => {
385
+ const x = i.value.findIndex((S) => S.id === d);
386
+ i.value[x].el = null;
387
+ const _ = i.value.splice(x, 1)[0];
388
+ i.value.forEach((S, F) => S.index = F), Se(() => {
389
389
  me(), j("pane-remove", { pane: _ }), ae({ removedPane: { ..._ } });
390
390
  });
391
- }, ae = (f = {}) => {
392
- !f.addedPane && !f.removedPane ? ke() : i.value.some((S) => S.givenSize !== null || S.min || S.max < 100) ? Qe(f) : pe(), b.value && j("resized");
391
+ }, ae = (d = {}) => {
392
+ !d.addedPane && !d.removedPane ? ke() : i.value.some((x) => x.givenSize !== null || x.min || x.max < 100) ? Qe(d) : pe(), g.value && j("resized");
393
393
  }, pe = () => {
394
- const f = 100 / r.value;
395
- let S = 0;
396
- const _ = [], F = [];
397
- for (const L of i.value)
398
- L.size = Math.max(Math.min(f, L.max), L.min), S -= L.size, L.size >= L.max && _.push(L.id), L.size <= L.min && F.push(L.id);
399
- S > 0.1 && Oe(S, _, F);
394
+ const d = 100 / r.value;
395
+ let x = 0;
396
+ const _ = [], S = [];
397
+ for (const F of i.value)
398
+ F.size = Math.max(Math.min(d, F.max), F.min), x -= F.size, F.size >= F.max && _.push(F.id), F.size <= F.min && S.push(F.id);
399
+ x > 0.1 && Oe(x, _, S);
400
400
  }, ke = () => {
401
- let f = 100;
402
- const S = [], _ = [];
403
- let F = 0;
401
+ let d = 100;
402
+ const x = [], _ = [];
403
+ let S = 0;
404
404
  for (const T of i.value)
405
- f -= T.size, T.givenSize !== null && F++, T.size >= T.max && S.push(T.id), T.size <= T.min && _.push(T.id);
406
- let L = 100;
407
- if (f > 0.1) {
405
+ d -= T.size, T.givenSize !== null && S++, T.size >= T.max && x.push(T.id), T.size <= T.min && _.push(T.id);
406
+ let F = 100;
407
+ if (d > 0.1) {
408
408
  for (const T of i.value)
409
- T.givenSize === null && (T.size = Math.max(Math.min(f / (r.value - F), T.max), T.min)), L -= T.size;
410
- L > 0.1 && Oe(L, S, _);
409
+ T.givenSize === null && (T.size = Math.max(Math.min(d / (r.value - S), T.max), T.min)), F -= T.size;
410
+ F > 0.1 && Oe(F, x, _);
411
411
  }
412
- }, Qe = ({ addedPane: f, removedPane: S } = {}) => {
413
- let _ = 100 / r.value, F = 0;
414
- const L = [], T = [];
415
- ((f == null ? void 0 : f.givenSize) ?? null) !== null && (_ = (100 - f.givenSize) / (r.value - 1));
412
+ }, Qe = ({ addedPane: d, removedPane: x } = {}) => {
413
+ let _ = 100 / r.value, S = 0;
414
+ const F = [], T = [];
415
+ ((d == null ? void 0 : d.givenSize) ?? null) !== null && (_ = (100 - d.givenSize) / (r.value - 1));
416
416
  for (const q of i.value)
417
- F -= q.size, q.size >= q.max && L.push(q.id), q.size <= q.min && T.push(q.id);
418
- if (!(Math.abs(F) < 0.1)) {
417
+ S -= q.size, q.size >= q.max && F.push(q.id), q.size <= q.min && T.push(q.id);
418
+ if (!(Math.abs(S) < 0.1)) {
419
419
  for (const q of i.value)
420
- (f == null ? void 0 : f.givenSize) !== null && (f == null ? void 0 : f.id) === q.id || (q.size = Math.max(Math.min(_, q.max), q.min)), F -= q.size, q.size >= q.max && L.push(q.id), q.size <= q.min && T.push(q.id);
421
- F > 0.1 && Oe(F, L, T);
420
+ (d == null ? void 0 : d.givenSize) !== null && (d == null ? void 0 : d.id) === q.id || (q.size = Math.max(Math.min(_, q.max), q.min)), S -= q.size, q.size >= q.max && F.push(q.id), q.size <= q.min && T.push(q.id);
421
+ S > 0.1 && Oe(S, F, T);
422
422
  }
423
- }, Oe = (f, S, _) => {
424
- let F;
425
- f > 0 ? F = f / (r.value - S.length) : F = f / (r.value - _.length), i.value.forEach((L, T) => {
426
- if (f > 0 && !S.includes(L.id)) {
427
- const q = Math.max(Math.min(L.size + F, L.max), L.min), Z = q - L.size;
428
- f -= Z, L.size = q;
429
- } else if (!_.includes(L.id)) {
430
- const q = Math.max(Math.min(L.size + F, L.max), L.min), Z = q - L.size;
431
- f -= Z, L.size = q;
423
+ }, Oe = (d, x, _) => {
424
+ let S;
425
+ d > 0 ? S = d / (r.value - x.length) : S = d / (r.value - _.length), i.value.forEach((F, T) => {
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;
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;
432
432
  }
433
- }), Math.abs(f) > 0.1 && Se(() => {
434
- b.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
433
+ }), Math.abs(d) > 0.1 && Se(() => {
434
+ g.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
435
435
  });
436
- }, j = (f, S = void 0, _ = !1) => {
437
- const F = (S == null ? void 0 : S.index) ?? C.value.activeSplitter ?? null;
438
- n(f, {
439
- ...S,
440
- ...F !== null && { index: F },
441
- ..._ && F !== null && {
442
- prevPane: i.value[F - (l.firstSplitter ? 1 : 0)],
443
- nextPane: i.value[F + (l.firstSplitter ? 0 : 1)]
436
+ }, j = (d, x = void 0, _ = !1) => {
437
+ const S = (x == null ? void 0 : x.index) ?? C.value.activeSplitter ?? null;
438
+ n(d, {
439
+ ...x,
440
+ ...S !== null && { index: S },
441
+ ..._ && S !== null && {
442
+ prevPane: i.value[S - (l.firstSplitter ? 1 : 0)],
443
+ nextPane: i.value[S + (l.firstSplitter ? 0 : 1)]
444
444
  },
445
- panes: i.value.map((L) => ({ min: L.min, max: L.max, size: L.size }))
445
+ panes: i.value.map((F) => ({ min: F.min, max: F.max, size: F.size }))
446
446
  });
447
447
  };
448
448
  Y(() => l.firstSplitter, () => me()), Le(() => {
449
- ze(), me(), ae(), j("ready"), b.value = !0;
450
- }), vn(() => b.value = !1);
449
+ ze(), me(), ae(), j("ready"), g.value = !0;
450
+ }), vn(() => g.value = !1);
451
451
  const Ke = () => {
452
- var f;
452
+ var d;
453
453
  return kt(
454
454
  "div",
455
- { ref: h, class: y.value },
456
- (f = e.default) == null ? void 0 : f.call(e)
455
+ { ref: f, class: p.value },
456
+ (d = e.default) == null ? void 0 : d.call(e)
457
457
  );
458
458
  };
459
- return xe("panes", i), xe("indexedPanes", a), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", $e), xe("onPaneAdd", ft), xe("onPaneRemove", Ge), xe("onPaneClick", J), (f, S) => (d(), re(Xn(Ke)));
459
+ return xe("panes", i), xe("indexedPanes", a), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", $e), xe("onPaneAdd", ft), xe("onPaneRemove", Ge), xe("onPaneClick", J), (d, x) => (c(), re(Xn(Ke)));
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"), a = Ie("onPaneRemove"), r = Ie("onPaneClick"), h = (o = It()) == null ? void 0 : o.uid, b = Ie("indexedPanes"), C = K(() => b.value[h]), x = A(null), y = K(() => {
471
- const c = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
- return Math.max(Math.min(c, u.value), v.value);
473
- }), v = K(() => {
474
- const c = parseFloat(n.minSize);
475
- return isNaN(c) ? 0 : c;
470
+ const n = t, l = Ie("requestUpdate"), e = Ie("onPaneAdd"), i = Ie("horizontal"), a = Ie("onPaneRemove"), r = Ie("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, g = Ie("indexedPanes"), C = K(() => g.value[f]), m = A(null), p = K(() => {
471
+ const b = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
+ return Math.max(Math.min(b, z.value), u.value);
476
473
  }), u = K(() => {
477
- const c = parseFloat(n.maxSize);
478
- return isNaN(c) ? 100 : c;
479
- }), I = K(() => {
480
- var c;
481
- return `${i.value ? "height" : "width"}: ${(c = C.value) == null ? void 0 : c.size}%`;
474
+ const b = parseFloat(n.minSize);
475
+ return isNaN(b) ? 0 : b;
476
+ }), z = K(() => {
477
+ const b = parseFloat(n.maxSize);
478
+ return isNaN(b) ? 100 : b;
479
+ }), L = K(() => {
480
+ var b;
481
+ return `${i.value ? "height" : "width"}: ${(b = C.value) == null ? void 0 : b.size}%`;
482
482
  });
483
- return Y(() => y.value, (c) => l({ uid: h, size: c })), Y(() => v.value, (c) => l({ uid: h, min: c })), Y(() => u.value, (c) => l({ uid: h, max: c })), Le(() => {
483
+ return Y(() => p.value, (b) => l({ uid: f, size: b })), Y(() => u.value, (b) => l({ uid: f, min: b })), Y(() => z.value, (b) => l({ uid: f, max: b })), Le(() => {
484
484
  e({
485
- id: h,
486
- el: x.value,
487
- min: v.value,
488
- max: u.value,
485
+ id: f,
486
+ el: m.value,
487
+ min: u.value,
488
+ max: z.value,
489
489
  // The given size (useful to know the user intention).
490
- givenSize: n.size === void 0 ? null : y.value,
491
- size: y.value
490
+ givenSize: n.size === void 0 ? null : p.value,
491
+ size: p.value
492
492
  // The computed current size at any time.
493
493
  });
494
- }), vn(() => a(h)), (c, P) => (d(), p("div", {
494
+ }), vn(() => a(f)), (b, N) => (c(), h("div", {
495
495
  ref_key: "paneEl",
496
- ref: x,
496
+ ref: m,
497
497
  class: "splitpanes__pane",
498
- onClick: P[0] || (P[0] = (W) => U(r)(W, c._.uid)),
499
- style: G(I.value)
498
+ onClick: N[0] || (N[0] = (D) => U(r)(D, b._.uid)),
499
+ style: G(L.value)
500
500
  }, [
501
- te(c.$slots, "default")
501
+ te(b.$slots, "default")
502
502
  ], 4));
503
503
  }
504
504
  }, Be = /^[a-z0-9]+(-[a-z0-9]+)*$/, ut = (t, o, n, l = "") => {
@@ -511,13 +511,13 @@ const Yt = {
511
511
  if (e.length > 3 || !e.length)
512
512
  return null;
513
513
  if (e.length > 1) {
514
- const r = e.pop(), h = e.pop(), b = {
514
+ const r = e.pop(), f = e.pop(), g = {
515
515
  // Allow provider without '@': "provider:prefix:name"
516
516
  provider: e.length > 0 ? e[0] : l,
517
- prefix: h,
517
+ prefix: f,
518
518
  name: r
519
519
  };
520
- return o && !lt(b) ? null : b;
520
+ return o && !lt(g) ? null : g;
521
521
  }
522
522
  const i = e[0], a = i.split("-");
523
523
  if (a.length > 1) {
@@ -575,8 +575,8 @@ function bl(t, o) {
575
575
  return e[a] = [];
576
576
  if (!(a in e)) {
577
577
  e[a] = null;
578
- const r = l[a] && l[a].parent, h = r && i(r);
579
- h && (e[a] = [r].concat(h));
578
+ const r = l[a] && l[a].parent, f = r && i(r);
579
+ f && (e[a] = [r].concat(f));
580
580
  }
581
581
  return e[a];
582
582
  }
@@ -658,7 +658,7 @@ function Fe(t, o) {
658
658
  const n = Zt[t] || (Zt[t] = /* @__PURE__ */ Object.create(null));
659
659
  return n[o] || (n[o] = wl(t, o));
660
660
  }
661
- function Nt(t, o) {
661
+ function Tt(t, o) {
662
662
  return Cn(o) ? kn(o, (n, l) => {
663
663
  l ? t.icons[n] = l : t.missing.add(n);
664
664
  }) : [];
@@ -706,7 +706,7 @@ function Sl(t, o) {
706
706
  }))
707
707
  return !1;
708
708
  const l = Fe(o, n);
709
- return !!Nt(l, t);
709
+ return !!Tt(l, t);
710
710
  }
711
711
  const Sn = Object.freeze({
712
712
  width: null,
@@ -779,55 +779,55 @@ function Il(t, o) {
779
779
  height: n.height
780
780
  };
781
781
  let i = n.body;
782
- [n, l].forEach((I) => {
783
- const c = [], P = I.hFlip, W = I.vFlip;
784
- let ee = I.rotate;
785
- P ? W ? ee += 2 : (c.push(
782
+ [n, l].forEach((L) => {
783
+ const b = [], N = L.hFlip, D = L.vFlip;
784
+ let ee = L.rotate;
785
+ N ? D ? ee += 2 : (b.push(
786
786
  "translate(" + (e.width + e.left).toString() + " " + (0 - e.top).toString() + ")"
787
- ), c.push("scale(-1 1)"), e.top = e.left = 0) : W && (c.push(
787
+ ), b.push("scale(-1 1)"), e.top = e.left = 0) : D && (b.push(
788
788
  "translate(" + (0 - e.left).toString() + " " + (e.height + e.top).toString() + ")"
789
- ), c.push("scale(1 -1)"), e.top = e.left = 0);
789
+ ), b.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, c.unshift(
793
+ J = e.height / 2 + e.top, b.unshift(
794
794
  "rotate(90 " + J.toString() + " " + J.toString() + ")"
795
795
  );
796
796
  break;
797
797
  case 2:
798
- c.unshift(
798
+ b.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, c.unshift(
803
+ J = e.width / 2 + e.left, b.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)), c.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)), b.length && (i = El(
809
809
  i,
810
- '<g transform="' + c.join(" ") + '">',
810
+ '<g transform="' + b.join(" ") + '">',
811
811
  "</g>"
812
812
  ));
813
813
  });
814
- const a = l.width, r = l.height, h = e.width, b = e.height;
815
- let C, x;
816
- a === null ? (x = r === null ? "1em" : r === "auto" ? b : r, C = en(x, h / b)) : (C = a === "auto" ? h : a, x = r === null ? en(C, b / h) : r === "auto" ? b : r);
817
- const y = {}, v = (I, c) => {
818
- Ml(c) || (y[I] = c.toString());
814
+ const a = l.width, r = l.height, f = e.width, g = e.height;
815
+ let C, m;
816
+ a === null ? (m = r === null ? "1em" : r === "auto" ? g : r, C = en(m, f / g)) : (C = a === "auto" ? f : a, m = r === null ? en(C, g / f) : r === "auto" ? g : r);
817
+ const p = {}, u = (L, b) => {
818
+ Ml(b) || (p[L] = b.toString());
819
819
  };
820
- v("width", C), v("height", x);
821
- const u = [e.left, e.top, h, b];
822
- return y.viewBox = u.join(" "), {
823
- attributes: y,
824
- viewBox: u,
820
+ u("width", C), u("height", m);
821
+ const z = [e.left, e.top, f, g];
822
+ return p.viewBox = z.join(" "), {
823
+ attributes: p,
824
+ viewBox: z,
825
825
  body: i
826
826
  };
827
827
  }
828
- const Pl = /\sid="(\S+)"/g, Nl = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
829
- let Tl = 0;
830
- function $l(t, o = Nl) {
828
+ const Pl = /\sid="(\S+)"/g, Tl = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
829
+ let Nl = 0;
830
+ function $l(t, o = Tl) {
831
831
  const n = [];
832
832
  let l;
833
833
  for (; l = Pl.exec(t); )
@@ -836,7 +836,7 @@ function $l(t, o = Nl) {
836
836
  return t;
837
837
  const e = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
838
838
  return n.forEach((i) => {
839
- const a = typeof o == "function" ? o(i) : o + (Tl++).toString(), r = 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]
@@ -852,7 +852,7 @@ function Ol(t, o) {
852
852
  function St(t) {
853
853
  return xt[t] || xt[""];
854
854
  }
855
- function Tt(t) {
855
+ function Nt(t) {
856
856
  let o;
857
857
  if (typeof t.resources == "string")
858
858
  o = [t.resources];
@@ -883,11 +883,11 @@ const $t = /* @__PURE__ */ Object.create(null), We = [
883
883
  ], ot = [];
884
884
  for (; We.length > 0; )
885
885
  We.length === 1 || Math.random() > 0.5 ? ot.push(We.shift()) : ot.push(We.pop());
886
- $t[""] = Tt({
886
+ $t[""] = Nt({
887
887
  resources: ["https://api.iconify.design"].concat(ot)
888
888
  });
889
889
  function Rl(t, o) {
890
- const n = Tt(o);
890
+ const n = Nt(o);
891
891
  return n === null ? !1 : ($t[t] = n, !0);
892
892
  }
893
893
  function Ot(t) {
@@ -930,13 +930,13 @@ const Dl = (t, o, n) => {
930
930
  prefix: o,
931
931
  icons: []
932
932
  }, r = 0;
933
- return n.forEach((h, b) => {
934
- r += h.length + 1, r >= e && b > 0 && (l.push(a), a = {
933
+ return n.forEach((f, g) => {
934
+ r += f.length + 1, r >= e && g > 0 && (l.push(a), a = {
935
935
  type: i,
936
936
  provider: t,
937
937
  prefix: o,
938
938
  icons: []
939
- }, r = h.length), a.icons.push(h);
939
+ }, r = f.length), a.icons.push(f);
940
940
  }), l.push(a), l;
941
941
  };
942
942
  function Bl(t) {
@@ -955,10 +955,10 @@ 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, r = o.icons.join(","), h = new URLSearchParams({
958
+ const i = o.prefix, r = o.icons.join(","), f = new URLSearchParams({
959
959
  icons: r
960
960
  });
961
- l += i + ".json?" + h.toString();
961
+ l += i + ".json?" + f.toString();
962
962
  break;
963
963
  }
964
964
  case "custom": {
@@ -1013,15 +1013,15 @@ function jl(t) {
1013
1013
  if (l.name === e.name && l.prefix === e.prefix && l.provider === e.provider)
1014
1014
  return;
1015
1015
  l = e;
1016
- const i = e.provider, a = e.prefix, r = e.name, h = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), b = h[a] || (h[a] = Fe(i, a));
1016
+ const i = e.provider, a = e.prefix, r = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), g = f[a] || (f[a] = Fe(i, a));
1017
1017
  let C;
1018
- r in b.icons ? C = o.loaded : a === "" || b.missing.has(r) ? C = o.missing : C = o.pending;
1019
- const x = {
1018
+ r in g.icons ? C = o.loaded : a === "" || g.missing.has(r) ? C = o.missing : C = o.pending;
1019
+ const m = {
1020
1020
  provider: i,
1021
1021
  prefix: a,
1022
1022
  name: r
1023
1023
  };
1024
- C.push(x);
1024
+ C.push(m);
1025
1025
  }), o;
1026
1026
  }
1027
1027
  function Ln(t, o) {
@@ -1040,21 +1040,21 @@ function Ul(t) {
1040
1040
  const l = t.provider, e = t.prefix;
1041
1041
  o.forEach((i) => {
1042
1042
  const a = i.icons, r = a.pending.length;
1043
- a.pending = a.pending.filter((h) => {
1044
- if (h.prefix !== e)
1043
+ a.pending = a.pending.filter((f) => {
1044
+ if (f.prefix !== e)
1045
1045
  return !0;
1046
- const b = h.name;
1047
- if (t.icons[b])
1046
+ const g = f.name;
1047
+ if (t.icons[g])
1048
1048
  a.loaded.push({
1049
1049
  provider: l,
1050
1050
  prefix: e,
1051
- name: b
1051
+ name: g
1052
1052
  });
1053
- else if (t.missing.has(b))
1053
+ else if (t.missing.has(g))
1054
1054
  a.missing.push({
1055
1055
  provider: l,
1056
1056
  prefix: e,
1057
- name: b
1057
+ name: g
1058
1058
  });
1059
1059
  else
1060
1060
  return n = !0, !0;
@@ -1111,43 +1111,43 @@ function Yl(t, o, n, l) {
1111
1111
  } else
1112
1112
  a = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
1113
  const r = Date.now();
1114
- let h = "pending", b = 0, C, x = null, y = [], v = [];
1115
- typeof l == "function" && v.push(l);
1116
- function u() {
1117
- x && (clearTimeout(x), x = null);
1114
+ let f = "pending", g = 0, C, m = null, p = [], u = [];
1115
+ typeof l == "function" && u.push(l);
1116
+ function z() {
1117
+ m && (clearTimeout(m), m = null);
1118
1118
  }
1119
- function I() {
1120
- h === "pending" && (h = "aborted"), u(), y.forEach((R) => {
1119
+ function L() {
1120
+ f === "pending" && (f = "aborted"), z(), p.forEach((R) => {
1121
1121
  R.status === "pending" && (R.status = "aborted");
1122
- }), y = [];
1122
+ }), p = [];
1123
1123
  }
1124
- function c(R, H) {
1125
- H && (v = []), typeof R == "function" && v.push(R);
1124
+ function b(R, H) {
1125
+ H && (u = []), typeof R == "function" && u.push(R);
1126
1126
  }
1127
- function P() {
1127
+ function N() {
1128
1128
  return {
1129
1129
  startTime: r,
1130
1130
  payload: o,
1131
- status: h,
1132
- queriesSent: b,
1133
- queriesPending: y.length,
1134
- subscribe: c,
1135
- abort: I
1131
+ status: f,
1132
+ queriesSent: g,
1133
+ queriesPending: p.length,
1134
+ subscribe: b,
1135
+ abort: L
1136
1136
  };
1137
1137
  }
1138
- function W() {
1139
- h = "failed", v.forEach((R) => {
1138
+ function D() {
1139
+ f = "failed", u.forEach((R) => {
1140
1140
  R(void 0, C);
1141
1141
  });
1142
1142
  }
1143
1143
  function ee() {
1144
- y.forEach((R) => {
1144
+ p.forEach((R) => {
1145
1145
  R.status === "pending" && (R.status = "aborted");
1146
- }), y = [];
1146
+ }), p = [];
1147
1147
  }
1148
1148
  function J(R, H, ce) {
1149
1149
  const se = H !== "success";
1150
- switch (y = y.filter((O) => O !== R), h) {
1150
+ switch (p = p.filter((O) => O !== R), f) {
1151
1151
  case "pending":
1152
1152
  break;
1153
1153
  case "failed":
@@ -1158,34 +1158,34 @@ function Yl(t, o, n, l) {
1158
1158
  return;
1159
1159
  }
1160
1160
  if (H === "abort") {
1161
- C = ce, W();
1161
+ C = ce, D();
1162
1162
  return;
1163
1163
  }
1164
1164
  if (se) {
1165
- C = ce, y.length || (a.length ? we() : W());
1165
+ C = ce, p.length || (a.length ? we() : D());
1166
1166
  return;
1167
1167
  }
1168
- if (u(), ee(), !t.random) {
1168
+ if (z(), ee(), !t.random) {
1169
1169
  const O = t.resources.indexOf(R.resource);
1170
1170
  O !== -1 && O !== t.index && (t.index = O);
1171
1171
  }
1172
- h = "completed", v.forEach((O) => {
1172
+ f = "completed", u.forEach((O) => {
1173
1173
  O(ce);
1174
1174
  });
1175
1175
  }
1176
1176
  function we() {
1177
- if (h !== "pending")
1177
+ if (f !== "pending")
1178
1178
  return;
1179
- u();
1179
+ z();
1180
1180
  const R = a.shift();
1181
1181
  if (R === void 0) {
1182
- if (y.length) {
1183
- x = setTimeout(() => {
1184
- u(), h === "pending" && (ee(), W());
1182
+ if (p.length) {
1183
+ m = setTimeout(() => {
1184
+ z(), f === "pending" && (ee(), D());
1185
1185
  }, t.timeout);
1186
1186
  return;
1187
1187
  }
1188
- W();
1188
+ D();
1189
1189
  return;
1190
1190
  }
1191
1191
  const H = {
@@ -1195,9 +1195,9 @@ function Yl(t, o, n, l) {
1195
1195
  J(H, ce, se);
1196
1196
  }
1197
1197
  };
1198
- y.push(H), b++, x = setTimeout(we, t.rotate), n(R, o, H.callback);
1198
+ p.push(H), g++, m = setTimeout(we, t.rotate), n(R, o, H.callback);
1199
1199
  }
1200
- return setTimeout(we), P;
1200
+ return setTimeout(we), N;
1201
1201
  }
1202
1202
  function _n(t) {
1203
1203
  const o = {
@@ -1208,19 +1208,19 @@ function _n(t) {
1208
1208
  function l() {
1209
1209
  n = n.filter((r) => r().status === "pending");
1210
1210
  }
1211
- function e(r, h, b) {
1211
+ function e(r, f, g) {
1212
1212
  const C = Yl(
1213
1213
  o,
1214
1214
  r,
1215
- h,
1216
- (x, y) => {
1217
- l(), b && b(x, y);
1215
+ f,
1216
+ (m, p) => {
1217
+ l(), g && g(m, p);
1218
1218
  }
1219
1219
  );
1220
1220
  return n.push(C), C;
1221
1221
  }
1222
1222
  function i(r) {
1223
- return n.find((h) => r(h)) || null;
1223
+ return n.find((f) => r(f)) || null;
1224
1224
  }
1225
1225
  return {
1226
1226
  query: e,
@@ -1258,7 +1258,7 @@ function Zl(t, o, n) {
1258
1258
  const a = Xl(t);
1259
1259
  a && (l = a.redundancy);
1260
1260
  } else {
1261
- const i = Tt(t);
1261
+ const i = Nt(t);
1262
1262
  if (i) {
1263
1263
  l = _n(i);
1264
1264
  const a = t.resources ? t.resources[0] : "", r = St(a);
@@ -1321,30 +1321,30 @@ function Pn(t, o) {
1321
1321
  if (l !== ln) {
1322
1322
  if (l) {
1323
1323
  const r = _t(n);
1324
- for (let h = 0; h < r; h++)
1325
- sn(n, je + h.toString());
1324
+ for (let f = 0; f < r; f++)
1325
+ sn(n, je + f.toString());
1326
1326
  }
1327
1327
  Rt(n, on, ln), Lt(n, 0);
1328
1328
  return;
1329
1329
  }
1330
1330
  const e = Math.floor(Date.now() / En) - eo, i = (r) => {
1331
- const h = je + r.toString(), b = Ft(n, h);
1332
- if (typeof b == "string") {
1331
+ const f = je + r.toString(), g = Ft(n, f);
1332
+ if (typeof g == "string") {
1333
1333
  try {
1334
- const C = JSON.parse(b);
1334
+ const C = JSON.parse(g);
1335
1335
  if (typeof C == "object" && typeof C.cached == "number" && C.cached > e && typeof C.provider == "string" && typeof C.data == "object" && typeof C.data.prefix == "string" && // Valid item: run callback
1336
1336
  o(C, r))
1337
1337
  return !0;
1338
1338
  } catch {
1339
1339
  }
1340
- sn(n, h);
1340
+ sn(n, f);
1341
1341
  }
1342
1342
  };
1343
1343
  let a = _t(n);
1344
1344
  for (let r = a - 1; r >= 0; r--)
1345
1345
  i(r) || (r === a - 1 ? (a--, Lt(n, a)) : Mn[t].add(r));
1346
1346
  }
1347
- function Nn() {
1347
+ function Tn() {
1348
1348
  if (!At) {
1349
1349
  no(!0);
1350
1350
  for (const t in dt)
@@ -1353,7 +1353,7 @@ function Nn() {
1353
1353
  l,
1354
1354
  e
1355
1355
  );
1356
- if (!Nt(i, n).length)
1356
+ if (!Tt(i, n).length)
1357
1357
  return !1;
1358
1358
  const a = n.lastModified || -1;
1359
1359
  return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, a) : a, !0;
@@ -1376,7 +1376,7 @@ function lo(t, o) {
1376
1376
  return !0;
1377
1377
  }
1378
1378
  function oo(t, o) {
1379
- At || Nn();
1379
+ At || Tn();
1380
1380
  function n(l) {
1381
1381
  let e;
1382
1382
  if (!dt[l] || !(e = In(l)))
@@ -1416,25 +1416,25 @@ function so(t, o) {
1416
1416
  if (!e || !(i = St(n)))
1417
1417
  return;
1418
1418
  i.prepare(n, l, e).forEach((r) => {
1419
- Zl(n, r, (h) => {
1420
- if (typeof h != "object")
1421
- r.icons.forEach((b) => {
1422
- t.missing.add(b);
1419
+ Zl(n, r, (f) => {
1420
+ if (typeof f != "object")
1421
+ r.icons.forEach((g) => {
1422
+ t.missing.add(g);
1423
1423
  });
1424
1424
  else
1425
1425
  try {
1426
- const b = Nt(
1426
+ const g = Tt(
1427
1427
  t,
1428
- h
1428
+ f
1429
1429
  );
1430
- if (!b.length)
1430
+ if (!g.length)
1431
1431
  return;
1432
1432
  const C = t.pendingIcons;
1433
- C && b.forEach((x) => {
1434
- C.delete(x);
1435
- }), oo(t, h);
1436
- } catch (b) {
1437
- console.error(b);
1433
+ C && g.forEach((m) => {
1434
+ C.delete(m);
1435
+ }), oo(t, f);
1436
+ } catch (g) {
1437
+ console.error(g);
1438
1438
  }
1439
1439
  io(t);
1440
1440
  });
@@ -1444,33 +1444,33 @@ function so(t, o) {
1444
1444
  const ro = (t, o) => {
1445
1445
  const n = Kl(t, !0, xn()), l = jl(n);
1446
1446
  if (!l.pending.length) {
1447
- let h = !0;
1447
+ let f = !0;
1448
1448
  return o && setTimeout(() => {
1449
- h && o(
1449
+ f && o(
1450
1450
  l.loaded,
1451
1451
  l.missing,
1452
1452
  l.pending,
1453
1453
  rn
1454
1454
  );
1455
1455
  }), () => {
1456
- h = !1;
1456
+ f = !1;
1457
1457
  };
1458
1458
  }
1459
1459
  const e = /* @__PURE__ */ Object.create(null), i = [];
1460
1460
  let a, r;
1461
- return l.pending.forEach((h) => {
1462
- const { provider: b, prefix: C } = h;
1463
- if (C === r && b === a)
1461
+ return l.pending.forEach((f) => {
1462
+ const { provider: g, prefix: C } = f;
1463
+ if (C === r && g === a)
1464
1464
  return;
1465
- a = b, r = C, i.push(Fe(b, C));
1466
- const x = e[b] || (e[b] = /* @__PURE__ */ Object.create(null));
1467
- x[C] || (x[C] = []);
1468
- }), l.pending.forEach((h) => {
1469
- const { provider: b, prefix: C, name: x } = h, y = Fe(b, C), v = y.pendingIcons || (y.pendingIcons = /* @__PURE__ */ new Set());
1470
- v.has(x) || (v.add(x), e[b][C].push(x));
1471
- }), i.forEach((h) => {
1472
- const { provider: b, prefix: C } = h;
1473
- e[b][C].length && so(h, e[b][C]);
1465
+ a = g, r = C, i.push(Fe(g, C));
1466
+ const m = e[g] || (e[g] = /* @__PURE__ */ Object.create(null));
1467
+ m[C] || (m[C] = []);
1468
+ }), l.pending.forEach((f) => {
1469
+ const { provider: g, prefix: C, name: m } = f, p = Fe(g, C), u = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
1470
+ u.has(m) || (u.add(m), e[g][C].push(m));
1471
+ }), i.forEach((f) => {
1472
+ const { provider: g, prefix: C } = f;
1473
+ e[g][C].length && so(f, e[g][C]);
1474
1474
  }), o ? Ql(o, l, i) : rn;
1475
1475
  };
1476
1476
  function ao(t, o) {
@@ -1549,7 +1549,7 @@ const an = {
1549
1549
  display: "inline-block"
1550
1550
  }, zt = {
1551
1551
  backgroundColor: "currentColor"
1552
- }, Tn = {
1552
+ }, Nn = {
1553
1553
  backgroundColor: "transparent"
1554
1554
  }, un = {
1555
1555
  Image: "var(--svg)",
@@ -1558,7 +1558,7 @@ const an = {
1558
1558
  }, cn = {
1559
1559
  webkitMask: zt,
1560
1560
  mask: zt,
1561
- background: Tn
1561
+ background: Nn
1562
1562
  };
1563
1563
  for (const t in cn) {
1564
1564
  const o = cn[t];
@@ -1575,10 +1575,10 @@ function dn(t) {
1575
1575
  }
1576
1576
  const fn = (t, o) => {
1577
1577
  const n = ao(an, o), l = { ...bo }, e = o.mode || "svg", i = {}, a = o.style, r = typeof a == "object" && !(a instanceof Array) ? a : {};
1578
- for (let I in o) {
1579
- const c = o[I];
1580
- if (c !== void 0)
1581
- switch (I) {
1578
+ for (let L in o) {
1579
+ const b = o[L];
1580
+ if (b !== void 0)
1581
+ switch (L) {
1582
1582
  case "icon":
1583
1583
  case "style":
1584
1584
  case "onLoad":
@@ -1587,55 +1587,55 @@ const fn = (t, o) => {
1587
1587
  case "inline":
1588
1588
  case "hFlip":
1589
1589
  case "vFlip":
1590
- n[I] = c === !0 || c === "true" || c === 1;
1590
+ n[L] = b === !0 || b === "true" || b === 1;
1591
1591
  break;
1592
1592
  case "flip":
1593
- typeof c == "string" && co(n, c);
1593
+ typeof b == "string" && co(n, b);
1594
1594
  break;
1595
1595
  case "color":
1596
- i.color = c;
1596
+ i.color = b;
1597
1597
  break;
1598
1598
  case "rotate":
1599
- typeof c == "string" ? n[I] = fo(c) : typeof c == "number" && (n[I] = c);
1599
+ typeof b == "string" ? n[L] = fo(b) : typeof b == "number" && (n[L] = b);
1600
1600
  break;
1601
1601
  case "ariaHidden":
1602
1602
  case "aria-hidden":
1603
- c !== !0 && c !== "true" && delete l["aria-hidden"];
1603
+ b !== !0 && b !== "true" && delete l["aria-hidden"];
1604
1604
  break;
1605
1605
  default: {
1606
- const P = it[I];
1607
- P ? (c === !0 || c === "true" || c === 1) && (n[P] = !0) : an[I] === void 0 && (l[I] = c);
1606
+ const N = it[L];
1607
+ N ? (b === !0 || b === "true" || b === 1) && (n[N] = !0) : an[L] === void 0 && (l[L] = b);
1608
1608
  }
1609
1609
  }
1610
1610
  }
1611
- const h = Il(t, n), b = h.attributes;
1611
+ const f = Il(t, n), g = f.attributes;
1612
1612
  if (n.inline && (i.verticalAlign = "-0.125em"), e === "svg") {
1613
1613
  l.style = {
1614
1614
  ...i,
1615
1615
  ...r
1616
- }, Object.assign(l, b);
1617
- let I = 0, c = o.id;
1618
- return typeof c == "string" && (c = c.replace(/-/g, "_")), l.innerHTML = $l(h.body, c ? () => c + "ID" + I++ : "iconifyVue"), kt("svg", l);
1616
+ }, Object.assign(l, g);
1617
+ let L = 0, b = o.id;
1618
+ return typeof b == "string" && (b = b.replace(/-/g, "_")), l.innerHTML = $l(f.body, b ? () => b + "ID" + L++ : "iconifyVue"), kt("svg", l);
1619
1619
  }
1620
- const { body: C, width: x, height: y } = t, v = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), u = ho(C, {
1621
- ...b,
1622
- width: x + "",
1623
- height: y + ""
1620
+ const { body: C, width: m, height: p } = t, u = e === "mask" || (e === "bg" ? !1 : C.indexOf("currentColor") !== -1), z = ho(C, {
1621
+ ...g,
1622
+ width: m + "",
1623
+ height: p + ""
1624
1624
  });
1625
1625
  return l.style = {
1626
1626
  ...i,
1627
- "--svg": mo(u),
1628
- width: dn(b.width),
1629
- height: dn(b.height),
1627
+ "--svg": mo(z),
1628
+ width: dn(g.width),
1629
+ height: dn(g.height),
1630
1630
  ...go,
1631
- ...v ? zt : Tn,
1631
+ ...u ? zt : Nn,
1632
1632
  ...r
1633
1633
  }, kt("span", l);
1634
1634
  };
1635
1635
  xn(!0);
1636
1636
  Ol("", Vl);
1637
1637
  if (typeof document < "u" && typeof window < "u") {
1638
- Nn();
1638
+ Tn();
1639
1639
  const t = window;
1640
1640
  if (t.IconifyPreload !== void 0) {
1641
1641
  const o = t.IconifyPreload, n = "Invalid IconifyPreload syntax.";
@@ -1745,12 +1745,12 @@ const yo = {
1745
1745
  const o = t, n = Zn(o, "expandedrows"), l = A(!1);
1746
1746
  function e(r) {
1747
1747
  if (o.expandall)
1748
- l.value = !l.value, n.value.forEach((h, b) => {
1749
- n.value.set(b, l.value);
1748
+ l.value = !l.value, n.value.forEach((f, g) => {
1749
+ n.value.set(g, l.value);
1750
1750
  });
1751
1751
  else {
1752
- const h = n.value.get(r);
1753
- n.value.set(r, !h);
1752
+ const f = n.value.get(r);
1753
+ n.value.set(r, !f);
1754
1754
  }
1755
1755
  }
1756
1756
  const i = (r) => r._rowIndex !== void 0 ? r._rowIndex : r.id || 0, a = A(-1);
@@ -1758,36 +1758,36 @@ const yo = {
1758
1758
  if (!o.expandall) return;
1759
1759
  const r = Array.from(n.value.values());
1760
1760
  new Set(r).size > 1 ? (a.value = -1, l.value = !0) : r[0] ? (a.value = 0, l.value = !0) : (a.value = 1, l.value = !1);
1761
- }, { deep: !0 }), (r, h) => (d(), p("button", {
1761
+ }, { deep: !0 }), (r, f) => (c(), h("button", {
1762
1762
  class: "expandbtn",
1763
- onClick: h[0] || (h[0] = (b) => e(i(r.item)))
1763
+ onClick: f[0] || (f[0] = (g) => e(i(r.item)))
1764
1764
  }, [
1765
- n.value.get(i(r.item)) === !0 ? (d(), p(D, { key: 0 }, [
1766
- o.expandall ? (d(), p(D, { key: 0 }, [
1767
- a.value ? (d(), re(U(ge), {
1765
+ n.value.get(i(r.item)) === !0 ? (c(), h(W, { key: 0 }, [
1766
+ o.expandall ? (c(), h(W, { key: 0 }, [
1767
+ a.value ? (c(), re(U(ge), {
1768
1768
  key: 0,
1769
1769
  icon: "fluent:chevron-down-up-16-filled"
1770
- })) : (d(), re(U(ge), {
1770
+ })) : (c(), re(U(ge), {
1771
1771
  key: 1,
1772
1772
  icon: "mdi:chevron-down"
1773
1773
  }))
1774
- ], 64)) : (d(), re(U(ge), {
1774
+ ], 64)) : (c(), re(U(ge), {
1775
1775
  key: 1,
1776
1776
  icon: "mdi:chevron-down"
1777
1777
  }))
1778
- ], 64)) : (d(), p(D, { key: 1 }, [
1779
- o.expandall ? (d(), p(D, { key: 0 }, [
1780
- a.value == -1 ? (d(), re(U(ge), {
1778
+ ], 64)) : (c(), h(W, { key: 1 }, [
1779
+ o.expandall ? (c(), h(W, { key: 0 }, [
1780
+ a.value == -1 ? (c(), re(U(ge), {
1781
1781
  key: 0,
1782
1782
  icon: "ion:chevron-expand"
1783
- })) : a.value == 0 ? (d(), re(U(ge), {
1783
+ })) : a.value == 0 ? (c(), re(U(ge), {
1784
1784
  key: 1,
1785
1785
  icon: "mdi:chevron-down"
1786
- })) : (d(), re(U(ge), {
1786
+ })) : (c(), re(U(ge), {
1787
1787
  key: 2,
1788
1788
  icon: "mdi:chevron-right"
1789
1789
  }))
1790
- ], 64)) : (d(), re(U(ge), {
1790
+ ], 64)) : (c(), re(U(ge), {
1791
1791
  key: 1,
1792
1792
  icon: "mdi:chevron-right"
1793
1793
  }))
@@ -1812,7 +1812,7 @@ const yo = {
1812
1812
  function e() {
1813
1813
  l("rightPanelClick", n.item);
1814
1814
  }
1815
- return (i, a) => (d(), p("button", {
1815
+ return (i, a) => (c(), h("button", {
1816
1816
  class: "rightpanelbtn",
1817
1817
  onClick: V(e, ["stop"])
1818
1818
  }, [
@@ -1833,7 +1833,7 @@ const yo = {
1833
1833
  const i = (a) => {
1834
1834
  n.column.condition = a, a === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1835
1835
  };
1836
- return (a, r) => (d(), p("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"
@@ -1841,107 +1841,107 @@ const yo = {
1841
1841
  k("div", So, [
1842
1842
  k("button", {
1843
1843
  type: "button",
1844
- class: M({ active: n.column.condition === "" }),
1845
- onClick: r[0] || (r[0] = V((h) => i(""), ["stop"]))
1844
+ class: I({ active: n.column.condition === "" }),
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" ? (d(), p(D, { key: 0 }, [
1847
+ n.column.type === "string" ? (c(), h(W, { key: 0 }, [
1848
1848
  k("button", {
1849
1849
  type: "button",
1850
- class: M({ active: n.column.condition === "Contains" }),
1851
- onClick: r[1] || (r[1] = V((h) => i("Contains"), ["stop"]))
1850
+ class: I({ active: n.column.condition === "Contains" }),
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
- class: M({ active: n.column.condition === "NotContains" }),
1856
- onClick: r[2] || (r[2] = V((h) => i("NotContains"), ["stop"]))
1855
+ class: I({ active: n.column.condition === "NotContains" }),
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
- class: M({ active: n.column.condition === "Equal" }),
1861
- onClick: r[3] || (r[3] = V((h) => i("Equal"), ["stop"]))
1860
+ class: I({ active: n.column.condition === "Equal" }),
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
- class: M({ active: n.column.condition === "NotEqual" }),
1866
- onClick: r[4] || (r[4] = V((h) => i("NotEqual"), ["stop"]))
1865
+ class: I({ active: n.column.condition === "NotEqual" }),
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
- class: M({ active: n.column.condition === "StartsWith" }),
1871
- onClick: r[5] || (r[5] = V((h) => i("StartsWith"), ["stop"]))
1870
+ class: I({ active: n.column.condition === "StartsWith" }),
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
- class: M({ active: n.column.condition === "EndsWith" }),
1876
- onClick: r[6] || (r[6] = V((h) => i("EndsWith"), ["stop"]))
1875
+ class: I({ active: n.column.condition === "EndsWith" }),
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" ? (d(), p(D, { key: 1 }, [
1878
+ ], 64)) : n.column.type === "number" ? (c(), h(W, { key: 1 }, [
1879
1879
  k("button", {
1880
1880
  type: "button",
1881
- class: M({ active: n.column.condition === "Equal" }),
1882
- onClick: r[7] || (r[7] = V((h) => i("Equal"), ["stop"]))
1881
+ class: I({ active: n.column.condition === "Equal" }),
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
- class: M({ active: n.column.condition === "NotEqual" }),
1887
- onClick: r[8] || (r[8] = V((h) => i("NotEqual"), ["stop"]))
1886
+ class: I({ active: n.column.condition === "NotEqual" }),
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
- class: M({ active: n.column.condition === "GreaterThan" }),
1892
- onClick: r[9] || (r[9] = V((h) => i("GreaterThan"), ["stop"]))
1891
+ class: I({ active: n.column.condition === "GreaterThan" }),
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
- class: M({ active: n.column.condition === "GreaterThanOrEqual" }),
1897
- onClick: r[10] || (r[10] = V((h) => i("GreaterThanOrEqual"), ["stop"]))
1896
+ class: I({ active: n.column.condition === "GreaterThanOrEqual" }),
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
- class: M({ active: n.column.condition === "LessThan" }),
1902
- onClick: r[11] || (r[11] = V((h) => i("LessThan"), ["stop"]))
1901
+ class: I({ active: n.column.condition === "LessThan" }),
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
- class: M({ active: n.column.condition === "LessThanOrEqual" }),
1907
- onClick: r[12] || (r[12] = V((h) => i("LessThanOrEqual"), ["stop"]))
1906
+ class: I({ active: n.column.condition === "LessThanOrEqual" }),
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" ? (d(), p(D, { key: 2 }, [
1909
+ ], 64)) : n.column.type === "date" ? (c(), h(W, { key: 2 }, [
1910
1910
  k("button", {
1911
1911
  type: "button",
1912
- class: M({ active: n.column.condition === "Equal" }),
1913
- onClick: r[13] || (r[13] = V((h) => i("Equal"), ["stop"]))
1912
+ class: I({ active: n.column.condition === "Equal" }),
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
- class: M({ active: n.column.condition === "NotEqual" }),
1918
- onClick: r[14] || (r[14] = V((h) => i("NotEqual"), ["stop"]))
1917
+ class: I({ active: n.column.condition === "NotEqual" }),
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
- class: M({ active: n.column.condition === "GreaterThan" }),
1923
- onClick: r[15] || (r[15] = V((h) => i("GreaterThan"), ["stop"]))
1922
+ class: I({ active: n.column.condition === "GreaterThan" }),
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
- class: M({ active: n.column.condition === "LessThan" }),
1928
- onClick: r[16] || (r[16] = V((h) => i("LessThan"), ["stop"]))
1927
+ class: I({ active: n.column.condition === "LessThan" }),
1928
+ onClick: r[16] || (r[16] = V((f) => i("LessThan"), ["stop"]))
1929
1929
  }, B((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
1930
- ], 64)) : E("", !0),
1930
+ ], 64)) : M("", !0),
1931
1931
  k("button", {
1932
1932
  type: "button",
1933
- class: M({ active: n.column.condition === "IsNull" }),
1934
- onClick: r[17] || (r[17] = V((h) => i("IsNull"), ["stop"]))
1933
+ class: I({ active: n.column.condition === "IsNull" }),
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
- class: M({ active: n.column.condition === "IsNotNull" }),
1939
- onClick: r[18] || (r[18] = V((h) => i("IsNotNull"), ["stop"]))
1938
+ class: I({ active: n.column.condition === "IsNotNull" }),
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));
1943
1943
  }
1944
- }), Ne = {
1944
+ }), Te = {
1945
1945
  string: [
1946
1946
  { value: "", label: "No Filter", icon: "" },
1947
1947
  { value: "Contains", label: "Contains", icon: "⊃" },
@@ -1992,10 +1992,10 @@ const yo = {
1992
1992
  }, _o = { class: "bh-p-2 bh-min-w-[200px]" }, zo = { class: "bh-mb-2" }, Eo = /* @__PURE__ */ k("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Filter Condition ", -1), Mo = ["value"], Io = {
1993
1993
  key: 0,
1994
1994
  class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2"
1995
- }, Po = /* @__PURE__ */ k("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Sort ", -1), No = { class: "bh-flex bh-flex-col bh-gap-1" }, To = {
1995
+ }, Po = /* @__PURE__ */ k("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Sort ", -1), To = { class: "bh-flex bh-flex-col bh-gap-1" }, No = {
1996
1996
  name: "columnFilterNew"
1997
1997
  }, $o = /* @__PURE__ */ _e({
1998
- ...To,
1998
+ ...No,
1999
1999
  props: [
2000
2000
  "column",
2001
2001
  "columnFilterLang",
@@ -2004,36 +2004,36 @@ 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), a = A(n.column.condition || ""), r = A(!1), h = K(() => {
2008
- var P;
2009
- const c = ((P = n.column.type) == null ? void 0 : P.toLowerCase()) || "string";
2010
- return Ne[c] || Ne.string;
2011
- }), b = (c) => {
2012
- if (!n.columnFilterLang) return c.label;
2013
- const P = c.value === "" ? "NoFilter" : c.value;
2014
- return n.columnFilterLang[P] || c.label;
2007
+ const n = t, l = o, e = A(null), i = A(null), a = A(n.column.condition || ""), r = A(!1), f = K(() => {
2008
+ var N;
2009
+ const b = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2010
+ return Te[b] || Te.string;
2011
+ }), g = (b) => {
2012
+ if (!n.columnFilterLang) return b.label;
2013
+ const N = b.value === "" ? "NoFilter" : b.value;
2014
+ return n.columnFilterLang[N] || b.label;
2015
2015
  }, C = () => {
2016
2016
  r.value = !1, n.column.condition = a.value, a.value === "" && (n.column.value = ""), l("filterChange", n.column);
2017
- }, x = (c) => n.currentSortColumn === n.column.field && n.currentSortDirection === c, y = (c) => {
2018
- l("sortChange", n.column.field, c), l("close");
2019
- }, v = () => {
2020
- var P;
2021
- const c = ((P = n.column.type) == null ? void 0 : P.toLowerCase()) || "string";
2022
- n.column.condition = c === "string" ? "Contains" : "Equal", n.column.value = "", a.value = n.column.condition, l("clearFilter", n.column), l("close");
2023
- }, u = (c) => {
2024
- const P = c.target;
2025
- r.value || P.tagName === "SELECT" || P.tagName === "OPTION" || e.value && e.value.contains(P) || P.closest(".bh-filter-button") || l("close");
2026
- }, I = (c) => {
2027
- c.key === "Escape" && l("close");
2017
+ }, m = (b) => n.currentSortColumn === n.column.field && n.currentSortDirection === b, p = (b) => {
2018
+ l("sortChange", n.column.field, b), l("close");
2019
+ }, u = () => {
2020
+ var N;
2021
+ const b = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2022
+ n.column.condition = b === "string" ? "Contains" : "Equal", n.column.value = "", a.value = n.column.condition, l("clearFilter", n.column), l("close");
2023
+ }, z = (b) => {
2024
+ const N = b.target;
2025
+ r.value || N.tagName === "SELECT" || N.tagName === "OPTION" || e.value && e.value.contains(N) || N.closest(".bh-filter-button") || l("close");
2026
+ }, L = (b) => {
2027
+ b.key === "Escape" && l("close");
2028
2028
  };
2029
2029
  return Le(() => {
2030
2030
  Se(() => {
2031
- var c;
2032
- (c = i.value) == null || c.focus(), document.addEventListener("click", u, !0), document.addEventListener("keydown", I);
2031
+ var b;
2032
+ (b = i.value) == null || b.focus(), document.addEventListener("click", z, !0), document.addEventListener("keydown", L);
2033
2033
  });
2034
2034
  }), mn(() => {
2035
- document.removeEventListener("click", u, !0), document.removeEventListener("keydown", I);
2036
- }), (c, P) => (d(), p("div", {
2035
+ document.removeEventListener("click", z, !0), document.removeEventListener("keydown", L);
2036
+ }), (b, N) => (c(), h("div", {
2037
2037
  ref_key: "dropdownRef",
2038
2038
  ref: e,
2039
2039
  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,46 +2044,46 @@ const yo = {
2044
2044
  ie(k("select", {
2045
2045
  ref_key: "selectRef",
2046
2046
  ref: i,
2047
- "onUpdate:modelValue": P[0] || (P[0] = (W) => a.value = W),
2047
+ "onUpdate:modelValue": N[0] || (N[0] = (D) => a.value = D),
2048
2048
  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: P[1] || (P[1] = (W) => r.value = !0),
2050
- onBlur: P[2] || (P[2] = (W) => r.value = !1),
2049
+ onFocus: N[1] || (N[1] = (D) => r.value = !0),
2050
+ onBlur: N[2] || (N[2] = (D) => r.value = !1),
2051
2051
  onChange: C
2052
2052
  }, [
2053
- (d(!0), p(D, null, oe(h.value, (W) => (d(), p("option", {
2054
- key: W.value,
2055
- value: W.value
2056
- }, B(W.icon ? W.icon + " " : "") + B(b(W)), 9, Mo))), 128))
2053
+ (c(!0), h(W, null, oe(f.value, (D) => (c(), h("option", {
2054
+ key: D.value,
2055
+ value: D.value
2056
+ }, B(D.icon ? D.icon + " " : "") + B(g(D)), 9, Mo))), 128))
2057
2057
  ], 544), [
2058
2058
  [st, a.value]
2059
2059
  ])
2060
2060
  ]),
2061
- n.column.sort !== !1 ? (d(), p("div", Io, [
2061
+ n.column.sort !== !1 ? (c(), h("div", Io, [
2062
2062
  Po,
2063
- k("div", No, [
2063
+ k("div", To, [
2064
2064
  k("button", {
2065
2065
  type: "button",
2066
- class: M(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2067
- "bh-bg-primary/10 bh-text-primary": x("asc"),
2068
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !x("asc")
2066
+ class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2067
+ "bh-bg-primary/10 bh-text-primary": m("asc"),
2068
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !m("asc")
2069
2069
  }]),
2070
- onClick: P[3] || (P[3] = (W) => y("asc"))
2070
+ onClick: N[3] || (N[3] = (D) => p("asc"))
2071
2071
  }, " ↑ Sort Ascending ", 2),
2072
2072
  k("button", {
2073
2073
  type: "button",
2074
- class: M(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2075
- "bh-bg-primary/10 bh-text-primary": x("desc"),
2076
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !x("desc")
2074
+ class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2075
+ "bh-bg-primary/10 bh-text-primary": m("desc"),
2076
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !m("desc")
2077
2077
  }]),
2078
- onClick: P[4] || (P[4] = (W) => y("desc"))
2078
+ onClick: N[4] || (N[4] = (D) => p("desc"))
2079
2079
  }, " ↓ Sort Descending ", 2)
2080
2080
  ])
2081
- ])) : E("", !0),
2081
+ ])) : M("", !0),
2082
2082
  k("div", { class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2" }, [
2083
2083
  k("button", {
2084
2084
  type: "button",
2085
2085
  class: "bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors bh-text-red-600 hover:bh-bg-red-50 dark:hover:bh-bg-red-900/20",
2086
- onClick: v
2086
+ onClick: u
2087
2087
  }, " ✕ Clear Filter ")
2088
2088
  ])
2089
2089
  ])
@@ -2108,7 +2108,7 @@ const yo = {
2108
2108
  Ao
2109
2109
  ];
2110
2110
  function Wo(t, o) {
2111
- return d(), p("svg", Ro, qo);
2111
+ return c(), h("svg", Ro, qo);
2112
2112
  }
2113
2113
  const Mt = /* @__PURE__ */ Ue(Oo, [["render", Wo]]), Do = {}, Bo = {
2114
2114
  viewBox: "0 0 24 24",
@@ -2129,7 +2129,7 @@ const Mt = /* @__PURE__ */ Ue(Oo, [["render", Wo]]), Do = {}, Bo = {
2129
2129
  Ho
2130
2130
  ];
2131
2131
  function jo(t, o) {
2132
- return d(), p("svg", Bo, Vo);
2132
+ return c(), h("svg", Bo, Vo);
2133
2133
  }
2134
2134
  const Uo = /* @__PURE__ */ Ue(Do, [["render", jo]]), Go = {}, Qo = {
2135
2135
  viewBox: "0 0 24 24",
@@ -2145,7 +2145,7 @@ const Uo = /* @__PURE__ */ Ue(Do, [["render", jo]]), Go = {}, Qo = {
2145
2145
  Ko
2146
2146
  ];
2147
2147
  function Yo(t, o) {
2148
- return d(), p("svg", Qo, Jo);
2148
+ return c(), h("svg", Qo, Jo);
2149
2149
  }
2150
2150
  const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei = { class: "bh-checkbox" }, ti = ["onClick"], ni = {
2151
2151
  width: "16",
@@ -2155,14 +2155,14 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2155
2155
  }, li = {
2156
2156
  key: 0,
2157
2157
  class: "bh-filter bh-relative"
2158
- }, oi = ["onUpdate:modelValue", "placeholder"], ii = ["onUpdate:modelValue", "placeholder"], si = ["onUpdate:modelValue"], ri = ["onUpdate:modelValue"], ai = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), ui = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), ci = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), di = [
2158
+ }, oi = ["onUpdate:modelValue"], ii = ["onUpdate:modelValue"], si = ["onUpdate:modelValue"], ri = ["onUpdate:modelValue"], ai = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), ui = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), ci = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), di = [
2159
2159
  ai,
2160
2160
  ui,
2161
2161
  ci
2162
2162
  ], fi = {
2163
2163
  key: 1,
2164
2164
  class: "bh-filter-input-wrapper"
2165
- }, hi = ["onUpdate:modelValue", "placeholder"], pi = ["onUpdate:modelValue", "placeholder"], vi = ["onUpdate:modelValue"], mi = ["onUpdate:modelValue"], bi = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), gi = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), yi = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), wi = [
2165
+ }, hi = ["onUpdate:modelValue"], pi = ["onUpdate:modelValue"], vi = ["onUpdate:modelValue"], mi = ["onUpdate:modelValue"], bi = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), gi = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), yi = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), wi = [
2166
2166
  bi,
2167
2167
  gi,
2168
2168
  yi
@@ -2189,38 +2189,38 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2189
2189
  ],
2190
2190
  setup(t, { emit: o }) {
2191
2191
  const n = A(null), l = t, e = o, i = A({}), a = K(() => {
2192
- var v;
2193
- const y = /* @__PURE__ */ new Map();
2194
- return (v = l.all) != null && v.columns && l.all.columns.forEach((u) => {
2195
- u.field && y.set(u.field, u);
2196
- }), y;
2192
+ var p;
2193
+ const m = /* @__PURE__ */ new Map();
2194
+ return (p = l.all) != null && p.columns && l.all.columns.forEach((u) => {
2195
+ u.field && m.set(u.field, u);
2196
+ }), m;
2197
2197
  }), r = () => {
2198
- var y;
2199
- (y = l.all) != null && y.columns && l.all.columns.forEach((v) => {
2198
+ var m;
2199
+ (m = l.all) != null && m.columns && l.all.columns.forEach((p) => {
2200
2200
  var u;
2201
- if (v.filter && v.field && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel && (!v.condition || v.condition === "")) {
2202
- const I = ((u = v.type) == null ? void 0 : u.toLowerCase()) || "string", P = (Ne[I] || Ne.string).find((W) => W.value !== "");
2203
- P && (v.condition = P.value);
2201
+ if (p.filter && p.field && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel && (!p.condition || p.condition === "")) {
2202
+ const z = ((u = p.type) == null ? void 0 : u.toLowerCase()) || "string", b = (Te[z] || Te.string).find((N) => N.value !== "");
2203
+ b && (p.condition = b.value);
2204
2204
  }
2205
2205
  });
2206
2206
  };
2207
2207
  Y(
2208
2208
  () => {
2209
- var y;
2210
- return (y = l.all) == null ? void 0 : y.columns;
2209
+ var m;
2210
+ return (m = l.all) == null ? void 0 : m.columns;
2211
2211
  },
2212
2212
  () => {
2213
2213
  r();
2214
2214
  },
2215
2215
  { immediate: !0, deep: !0 }
2216
2216
  ), Le(() => {
2217
- var y;
2218
- r(), (y = l.all) != null && y.columns && l.all.columns.forEach((v) => {
2219
- v.filter && v.field && (i.value[v.field] = v.value || "", cl(
2220
- () => i.value[v.field],
2217
+ var m;
2218
+ r(), (m = l.all) != null && m.columns && l.all.columns.forEach((p) => {
2219
+ p.filter && p.field && (i.value[p.field] = p.value || "", cl(
2220
+ () => i.value[p.field],
2221
2221
  (u) => {
2222
- const I = a.value.get(v.field);
2223
- I && (I.type === "string" || I.type === "String" ? I.value = typeof u == "string" ? u.trim() : u : I.value = u, e("filterChange"));
2222
+ const z = a.value.get(p.field);
2223
+ z && (z.type === "string" || z.type === "String" ? z.value = typeof u == "string" ? u.trim() : u : z.value = u, e("filterChange"));
2224
2224
  },
2225
2225
  { debounce: 300 }
2226
2226
  ));
@@ -2228,24 +2228,24 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2228
2228
  }), Y(() => l.checkAll, () => {
2229
2229
  n.value && (n.value.indeterminate = l.checkAll !== 0 ? !l.checkAll : !1, n.value.checked = l.checkAll);
2230
2230
  });
2231
- const b = (y) => {
2232
- if (!y.field) return !1;
2233
- const v = i.value[y.field];
2234
- return v !== "" && v !== null && v !== void 0;
2235
- }, C = (y) => {
2236
- var c;
2237
- if (!y.condition || y.condition === "") return "";
2238
- const v = ((c = y.type) == null ? void 0 : c.toLowerCase()) || "string", I = (Ne[v] || Ne.string).find((P) => P.value === y.condition);
2239
- return I ? l.columnFilterLang && l.columnFilterLang[y.condition] ? l.columnFilterLang[y.condition] : I.label : y.condition;
2240
- }, x = (y) => !y.condition || y.condition === "" ? "Filter..." : `Enter ${C(y).toLowerCase()}...`;
2241
- return (y, v) => (d(), p("tr", Zo, [
2242
- l.all.hasCheckbox ? (d(), p("th", {
2231
+ const g = (m) => {
2232
+ if (!m.field) return !1;
2233
+ const p = i.value[m.field];
2234
+ return p !== "" && p !== null && p !== void 0;
2235
+ }, C = (m) => {
2236
+ var L;
2237
+ if (!m.condition || m.condition === "") return "";
2238
+ const p = ((L = m.type) == null ? void 0 : L.toLowerCase()) || "string", z = (Te[p] || Te.string).find((b) => b.value === m.condition);
2239
+ return z ? l.columnFilterLang && l.columnFilterLang[m.condition] ? l.columnFilterLang[m.condition] : z.label : m.condition;
2240
+ };
2241
+ return (m, p) => (c(), h("tr", Zo, [
2242
+ l.all.hasCheckbox ? (c(), h("th", {
2243
2243
  key: "chkall",
2244
2244
  style: G({
2245
2245
  width: l.all.checkboxColumnWidth + " !important",
2246
2246
  minWidth: l.all.checkboxColumnWidth + " !important"
2247
2247
  }),
2248
- class: M({
2248
+ class: I({
2249
2249
  "bh-sticky bh-bg-blue-light bh-z-[1]": l.all.stickyHeader || l.all.stickyFirstColumn,
2250
2250
  "bh-top-0": l.all.stickyHeader,
2251
2251
  "bh-left-0": l.all.stickyFirstColumn
@@ -2256,9 +2256,9 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2256
2256
  ref_key: "selectedAll",
2257
2257
  ref: n,
2258
2258
  type: "checkbox",
2259
- onClick: v[0] || (v[0] = V((u) => {
2260
- var I;
2261
- return e("selectAll", (I = u == null ? void 0 : u.target) == null ? void 0 : I.checked);
2259
+ onClick: p[0] || (p[0] = V((u) => {
2260
+ var z;
2261
+ return e("selectAll", (z = u == null ? void 0 : u.target) == null ? void 0 : z.checked);
2262
2262
  }, ["stop"]))
2263
2263
  }, null, 512),
2264
2264
  k("div", null, [
@@ -2266,39 +2266,39 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2266
2266
  ne(Uo, { class: "intermediate" })
2267
2267
  ])
2268
2268
  ])
2269
- ], 6)) : E("", !0),
2270
- l.all.hasRightPanel ? (d(), p("th", {
2269
+ ], 6)) : M("", !0),
2270
+ l.all.hasRightPanel ? (c(), h("th", {
2271
2271
  key: 1,
2272
2272
  style: G({
2273
2273
  width: l.all.rightPanelColumnWidth + " !important",
2274
2274
  minWidth: l.all.rightPanelColumnWidth + " !important"
2275
2275
  }),
2276
- class: M({
2276
+ class: I({
2277
2277
  "bh-sticky bh-bg-blue-light bh-z-[1]": l.all.stickyHeader || l.all.stickyFirstColumn,
2278
2278
  "bh-top-0": l.all.stickyHeader,
2279
2279
  "bh-left-0": l.all.stickyFirstColumn
2280
2280
  })
2281
- }, null, 6)) : E("", !0),
2282
- l.all.hasSubtable ? (d(), p("th", {
2281
+ }, null, 6)) : M("", !0),
2282
+ l.all.hasSubtable ? (c(), h("th", {
2283
2283
  key: 2,
2284
2284
  style: G({
2285
2285
  width: l.all.subtableColumnWidth + " !important",
2286
2286
  minWidth: l.all.subtableColumnWidth + " !important"
2287
2287
  })
2288
2288
  }, [
2289
- l.all.expandall ? (d(), re(Et, {
2289
+ l.all.expandall ? (c(), re(Et, {
2290
2290
  key: 0,
2291
2291
  expandedrows: l.expandedrows,
2292
2292
  expandall: l.all.expandall
2293
- }, null, 8, ["expandedrows", "expandall"])) : E("", !0)
2294
- ], 4)) : E("", !0),
2295
- (d(!0), p(D, null, oe(l.all.columns, (u, I) => (d(), p(D, null, [
2296
- u.hide ? E("", !0) : (d(), p("th", {
2293
+ }, null, 8, ["expandedrows", "expandall"])) : M("", !0)
2294
+ ], 4)) : M("", !0),
2295
+ (c(!0), h(W, null, oe(l.all.columns, (u, z) => (c(), h(W, null, [
2296
+ u.hide ? M("", !0) : (c(), h("th", {
2297
2297
  key: u.field,
2298
- class: M(["bh-select-none bh-z-[1]", [
2298
+ class: I(["bh-select-none bh-z-[1]", [
2299
2299
  l.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2300
- I === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2301
- l.all.hasCheckbox && I === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2300
+ z === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2301
+ l.all.hasCheckbox && z === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2302
2302
  ]]),
2303
2303
  style: G({
2304
2304
  width: u.width,
@@ -2307,50 +2307,48 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2307
2307
  })
2308
2308
  }, [
2309
2309
  k("div", {
2310
- class: M(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2311
- onClick: (c) => l.all.sortable && u.sort && e("sortChange", u.field)
2310
+ class: I(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2311
+ onClick: (L) => l.all.sortable && u.sort && e("sortChange", u.field)
2312
2312
  }, [
2313
2313
  De(B(u.title) + " ", 1),
2314
- l.all.sortable && u.sort ? (d(), p("span", {
2314
+ l.all.sortable && u.sort ? (c(), h("span", {
2315
2315
  key: 0,
2316
- class: M(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
2316
+ class: I(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
2317
2317
  }, [
2318
- (d(), p("svg", ni, [
2318
+ (c(), h("svg", ni, [
2319
2319
  k("polygon", {
2320
2320
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2321
2321
  fill: "currentColor",
2322
- class: M(["bh-text-black/20", [
2322
+ class: I(["bh-text-black/20", [
2323
2323
  t.currentSortColumn === u.field && t.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2324
2324
  ]])
2325
2325
  }, null, 2),
2326
2326
  k("polygon", {
2327
2327
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2328
2328
  fill: "currentColor",
2329
- class: M(["bh-text-black/20", [
2329
+ class: I(["bh-text-black/20", [
2330
2330
  t.currentSortColumn === u.field && t.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2331
2331
  ]])
2332
2332
  }, null, 2)
2333
2333
  ]))
2334
- ], 2)) : E("", !0)
2334
+ ], 2)) : M("", !0)
2335
2335
  ], 10, ti),
2336
- l.all.columnFilter && !l.isFooter ? (d(), p(D, { key: 0 }, [
2337
- u.filter ? (d(), p("div", li, [
2338
- l.all.showFloatingFilterLabel ? E("", !0) : (d(), p(D, { key: 0 }, [
2339
- u.type === "string" || u.type === "String" ? ie((d(), p("input", {
2336
+ l.all.columnFilter && !l.isFooter ? (c(), h(W, { key: 0 }, [
2337
+ u.filter ? (c(), h("div", li, [
2338
+ l.all.showFloatingFilterLabel ? M("", !0) : (c(), h(W, { key: 0 }, [
2339
+ u.type === "string" || u.type === "String" ? ie((c(), h("input", {
2340
2340
  key: 0,
2341
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2341
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2342
2342
  type: "text",
2343
- class: "bh-form-control",
2344
- placeholder: l.all.useNewColumnFilter ? x(u) : "Filter..."
2343
+ class: "bh-form-control"
2345
2344
  }, null, 8, oi)), [
2346
2345
  [Pe, i.value[u.field]]
2347
- ]) : E("", !0),
2348
- u.type === "number" || u.type === "integer" || u.type === "Integer" ? ie((d(), p("input", {
2346
+ ]) : M("", !0),
2347
+ u.type === "number" || u.type === "integer" || u.type === "Integer" ? ie((c(), h("input", {
2349
2348
  key: 1,
2350
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2349
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2351
2350
  type: "number",
2352
- class: "bh-form-control",
2353
- placeholder: l.all.useNewColumnFilter ? x(u) : "Filter..."
2351
+ class: "bh-form-control"
2354
2352
  }, null, 8, ii)), [
2355
2353
  [
2356
2354
  Pe,
@@ -2358,49 +2356,47 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2358
2356
  void 0,
2359
2357
  { number: !0 }
2360
2358
  ]
2361
- ]) : u.type === "date" || u.type === "DateTime" ? ie((d(), p("input", {
2359
+ ]) : u.type === "date" || u.type === "DateTime" ? ie((c(), h("input", {
2362
2360
  key: 2,
2363
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2361
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2364
2362
  type: "date",
2365
2363
  class: "bh-form-control"
2366
2364
  }, null, 8, si)), [
2367
2365
  [Pe, i.value[u.field]]
2368
- ]) : u.type === "bool" ? ie((d(), p("select", {
2366
+ ]) : u.type === "bool" ? ie((c(), h("select", {
2369
2367
  key: 3,
2370
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2368
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2371
2369
  class: "bh-form-control",
2372
- onClick: v[1] || (v[1] = //@ts-ignore
2373
- (...c) => l.isOpenFilter && l.isOpenFilter(...c))
2370
+ onClick: p[1] || (p[1] = //@ts-ignore
2371
+ (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2374
2372
  }, di, 8, ri)), [
2375
2373
  [st, i.value[u.field]]
2376
- ]) : E("", !0)
2374
+ ]) : M("", !0)
2377
2375
  ], 64)),
2378
- l.all.showFloatingFilterLabel ? (d(), p("div", fi, [
2379
- u.condition && u.condition !== "" && l.all.useNewColumnFilter ? (d(), p("label", {
2376
+ l.all.showFloatingFilterLabel ? (c(), h("div", fi, [
2377
+ u.condition && u.condition !== "" && l.all.useNewColumnFilter ? (c(), h("label", {
2380
2378
  key: 0,
2381
- class: M(["bh-floating-label", {
2382
- "bh-floating-label--active": b(u)
2379
+ class: I(["bh-floating-label", {
2380
+ "bh-floating-label--active": g(u)
2383
2381
  }])
2384
- }, B(C(u)), 3)) : E("", !0),
2385
- u.type === "string" || u.type === "String" ? ie((d(), p("input", {
2382
+ }, B(C(u)), 3)) : M("", !0),
2383
+ u.type === "string" || u.type === "String" ? ie((c(), h("input", {
2386
2384
  key: 1,
2387
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2385
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2388
2386
  type: "text",
2389
- class: M(["bh-form-control", {
2387
+ class: I(["bh-form-control", {
2390
2388
  "bh-form-control--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter
2391
- }]),
2392
- placeholder: l.all.useNewColumnFilter ? x(u) : "Filter..."
2389
+ }])
2393
2390
  }, null, 10, hi)), [
2394
2391
  [Pe, i.value[u.field]]
2395
- ]) : E("", !0),
2396
- u.type === "number" || u.type === "integer" || u.type === "Integer" ? ie((d(), p("input", {
2392
+ ]) : M("", !0),
2393
+ u.type === "number" || u.type === "integer" || u.type === "Integer" ? ie((c(), h("input", {
2397
2394
  key: 2,
2398
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2395
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2399
2396
  type: "number",
2400
- class: M(["bh-form-control", {
2397
+ class: I(["bh-form-control", {
2401
2398
  "bh-form-control--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter
2402
- }]),
2403
- placeholder: l.all.useNewColumnFilter ? x(u) : "Filter..."
2399
+ }])
2404
2400
  }, null, 10, pi)), [
2405
2401
  [
2406
2402
  Pe,
@@ -2408,69 +2404,69 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2408
2404
  void 0,
2409
2405
  { number: !0 }
2410
2406
  ]
2411
- ]) : u.type === "date" || u.type === "DateTime" ? ie((d(), p("input", {
2407
+ ]) : u.type === "date" || u.type === "DateTime" ? ie((c(), h("input", {
2412
2408
  key: 3,
2413
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2409
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2414
2410
  type: "date",
2415
- class: M(["bh-form-control", {
2411
+ class: I(["bh-form-control", {
2416
2412
  "bh-form-control--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter
2417
2413
  }])
2418
2414
  }, null, 10, vi)), [
2419
2415
  [Pe, i.value[u.field]]
2420
- ]) : u.type === "bool" ? ie((d(), p("select", {
2416
+ ]) : u.type === "bool" ? ie((c(), h("select", {
2421
2417
  key: 4,
2422
- "onUpdate:modelValue": (c) => i.value[u.field] = c,
2418
+ "onUpdate:modelValue": (L) => i.value[u.field] = L,
2423
2419
  class: "bh-form-control",
2424
- onClick: v[2] || (v[2] = //@ts-ignore
2425
- (...c) => l.isOpenFilter && l.isOpenFilter(...c))
2420
+ onClick: p[2] || (p[2] = //@ts-ignore
2421
+ (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2426
2422
  }, wi, 8, mi)), [
2427
2423
  [st, i.value[u.field]]
2428
- ]) : E("", !0)
2429
- ])) : E("", !0),
2430
- u.type !== "bool" ? (d(), p("button", {
2424
+ ]) : M("", !0)
2425
+ ])) : M("", !0),
2426
+ u.type !== "bool" ? (c(), h("button", {
2431
2427
  key: 2,
2432
2428
  type: "button",
2433
- class: M(["bh-filter-button", {
2434
- "!bh-bg-primary/10 !bh-border-primary": b(u),
2435
- "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !b(u),
2429
+ class: I(["bh-filter-button", {
2430
+ "!bh-bg-primary/10 !bh-border-primary": g(u),
2431
+ "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !g(u),
2436
2432
  "bh-filter-button--with-label": u.condition && u.condition !== "" && l.all.useNewColumnFilter && l.all.showFloatingFilterLabel
2437
2433
  }]),
2438
- onClick: V((c) => e("toggleFilterMenu", u), ["stop"])
2434
+ onClick: V((L) => e("toggleFilterMenu", u), ["stop"])
2439
2435
  }, [
2440
2436
  ne(Xo, {
2441
- class: M(["bh-w-4", {
2442
- "bh-text-primary": b(u),
2443
- "bh-text-black/70 dark:bh-text-gray-300": !b(u)
2437
+ class: I(["bh-w-4", {
2438
+ "bh-text-primary": g(u),
2439
+ "bh-text-black/70 dark:bh-text-gray-300": !g(u)
2444
2440
  }])
2445
2441
  }, null, 8, ["class"])
2446
- ], 10, ki)) : E("", !0),
2447
- l.all.useNewColumnFilter ? E("", !0) : ie((d(), re(Lo, {
2442
+ ], 10, ki)) : M("", !0),
2443
+ l.all.useNewColumnFilter ? M("", !0) : ie((c(), re(Lo, {
2448
2444
  key: 3,
2449
2445
  column: u,
2450
2446
  type: u.type,
2451
2447
  columnFilterLang: l.columnFilterLang,
2452
- onClose: v[3] || (v[3] = (c) => e("toggleFilterMenu", null)),
2453
- onFilterChange: v[4] || (v[4] = (c) => e("filterChange"))
2448
+ onClose: p[3] || (p[3] = (L) => e("toggleFilterMenu", null)),
2449
+ onFilterChange: p[4] || (p[4] = (L) => e("filterChange"))
2454
2450
  }, null, 8, ["column", "type", "columnFilterLang"])), [
2455
2451
  [Gt, l.isOpenFilter === u.field]
2456
2452
  ]),
2457
- l.all.useNewColumnFilter ? ie((d(), re($o, {
2453
+ l.all.useNewColumnFilter ? ie((c(), re($o, {
2458
2454
  key: 4,
2459
2455
  column: u,
2460
2456
  columnFilterLang: l.columnFilterLang,
2461
2457
  currentSortColumn: l.currentSortColumn,
2462
2458
  currentSortDirection: l.currentSortDirection,
2463
- onClose: v[5] || (v[5] = (c) => e("toggleFilterMenu", null)),
2464
- onFilterChange: v[6] || (v[6] = (c) => e("filterChange")),
2465
- onSortChange: v[7] || (v[7] = (c, P) => e("sortChange", c, P)),
2466
- onClearFilter: (c) => {
2467
- i.value[c.field] = "", c.value = "", l.currentSortColumn === c.field && e("sortChange", l.all.sortColumn || c.field, "asc"), e("filterChange");
2459
+ onClose: p[5] || (p[5] = (L) => e("toggleFilterMenu", null)),
2460
+ onFilterChange: p[6] || (p[6] = (L) => e("filterChange")),
2461
+ onSortChange: p[7] || (p[7] = (L, b) => e("sortChange", L, b)),
2462
+ onClearFilter: (L) => {
2463
+ i.value[L.field] = "", L.value = "", l.currentSortColumn === L.field && e("sortChange", l.all.sortColumn || L.field, "asc"), e("filterChange");
2468
2464
  }
2469
2465
  }, null, 8, ["column", "columnFilterLang", "currentSortColumn", "currentSortDirection", "onClearFilter"])), [
2470
2466
  [Gt, l.isOpenFilter === u.field]
2471
- ]) : E("", !0)
2472
- ])) : E("", !0)
2473
- ], 64)) : E("", !0)
2467
+ ]) : M("", !0)
2468
+ ])) : M("", !0)
2469
+ ], 64)) : M("", !0)
2474
2470
  ], 6))
2475
2471
  ], 64))), 256))
2476
2472
  ]));
@@ -2489,7 +2485,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2489
2485
  ], Ei = {
2490
2486
  class: "bh-flex-1",
2491
2487
  style: { overflow: "auto", "min-width": "0", width: "100%" }
2492
- }, Mi = /* @__PURE__ */ k("span", null, "##Top Menu Slot##", -1), Ii = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Pi = /* @__PURE__ */ k("span", null, "##Table Action Header Slot##", -1), Ni = ["onClick"], Ti = { class: "bh-checkbox" }, $i = ["value"], Oi = ["innerHTML"], Ri = ["onClick"], Ai = ["colspan"], qi = ["colspan"], Wi = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Di = [
2488
+ }, Mi = /* @__PURE__ */ k("span", null, "##Top Menu Slot##", -1), Ii = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Pi = /* @__PURE__ */ k("span", null, "##Table Action Header Slot##", -1), Ti = ["onClick"], Ni = { class: "bh-checkbox" }, $i = ["value"], Oi = ["innerHTML"], Ri = ["onClick"], Ai = ["colspan"], qi = ["colspan"], Wi = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Di = [
2493
2489
  Wi
2494
2490
  ], Bi = ["colspan"], Hi = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Vi = ["onClick"], ji = { class: "bh-checkbox" }, Ui = ["value"], Gi = ["innerHTML"], Qi = ["onClick"], Ki = ["colspan"], Ji = ["colspan"], Yi = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Xi = [
2495
2491
  Yi
@@ -2635,90 +2631,90 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2635
2631
  var Ht, Vt;
2636
2632
  const l = pn(), e = t;
2637
2633
  for (const s of e.columns || []) {
2638
- const m = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2639
- s.type = m, 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 = !m || m === "string" ? "Contains" : "Equal";
2634
+ const v = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2635
+ s.type = v, s.isUnique = s.isUnique !== void 0 ? s.isUnique : !1, s.hide = s.hide !== void 0 ? s.hide : !1, s.filter = s.filter !== void 0 ? s.filter : !0, s.search = s.search !== void 0 ? s.search : !0, s.sort = s.sort !== void 0 ? s.sort : !0, s.html = s.html !== void 0 ? s.html : !1, s.condition = !v || v === "string" ? "Contains" : "Equal";
2640
2636
  }
2641
2637
  const i = A([]), a = A(e.page), r = A(
2642
2638
  e.pagination ? e.pageSize : (Vt = e.rows) == null ? void 0 : Vt.length
2643
- ), h = e.pageSize, b = A(e.sortColumn), C = e.sortColumn, x = A(e.sortDirection), y = e.sortDirection, v = A(e.totalRows), u = A([]), I = A(null), c = A(e.loading), P = A(e.search);
2639
+ ), f = e.pageSize, g = A(e.sortColumn), C = e.sortColumn, m = A(e.sortDirection), p = e.sortDirection, u = A(e.totalRows), z = A([]), L = A(null), b = A(e.loading), N = A(e.search);
2644
2640
  JSON.parse(JSON.stringify(e.columns));
2645
- const W = A(null), ee = A(null);
2641
+ const D = A(null), ee = A(null);
2646
2642
  let J = A(0);
2647
- const we = A(230), R = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, m) => {
2648
- if (!m) return;
2649
- const g = `${s.id || JSON.stringify(s)}-${m}`;
2650
- if (se.has(g))
2651
- return se.get(g);
2652
- const $ = m.split(".").reduce((z, X) => z == null ? void 0 : z[X], s);
2653
- return se.set(g, $), $;
2643
+ const we = A(230), R = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, v) => {
2644
+ if (!v) return;
2645
+ const y = `${s.id || JSON.stringify(s)}-${v}`;
2646
+ if (se.has(y))
2647
+ return se.get(y);
2648
+ const $ = v.split(".").reduce((E, X) => E == null ? void 0 : E[X], s);
2649
+ return se.set(y, $), $;
2654
2650
  };
2655
2651
  Y(() => e.rows, () => {
2656
2652
  se.clear();
2657
2653
  }, { deep: !1 });
2658
2654
  const le = K(() => {
2659
- const s = e.columns.find((m) => m.isUnique);
2655
+ const s = e.columns.find((v) => v.isUnique);
2660
2656
  return (s == null ? void 0 : s.field) || null;
2661
- }), ve = K(() => le.value ? new Map(i.value.map((s, m) => [m, s[le.value]])) : null), ze = (s) => {
2662
- var m;
2663
- return le.value ? ((m = ve.value) == null ? void 0 : m.get(s)) ?? s : s;
2664
- }, Te = (s, m) => {
2665
- const g = s._rowIndex !== void 0 ? s._rowIndex : s.id || m;
2666
- return ae.value.get(g) === !0;
2657
+ }), ve = K(() => le.value ? new Map(i.value.map((s, v) => [v, s[le.value]])) : null), ze = (s) => {
2658
+ var v;
2659
+ return le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2660
+ }, Ne = (s, v) => {
2661
+ const y = s._rowIndex !== void 0 ? s._rowIndex : s.id || v;
2662
+ return ae.value.get(y) === !0;
2667
2663
  }, Ee = K(() => typeof e.rowClass == "function"), me = K(() => typeof e.cellClass == "function"), $e = /* @__PURE__ */ new Map(), ft = (s) => {
2668
- const m = s ? "numeric" : "string";
2669
- return $e.has(m) || $e.set(m, new Intl.Collator(void 0, {
2664
+ const v = s ? "numeric" : "string";
2665
+ return $e.has(v) || $e.set(v, new Intl.Collator(void 0, {
2670
2666
  numeric: s,
2671
2667
  sensitivity: "base"
2672
- })), $e.get(m);
2668
+ })), $e.get(v);
2673
2669
  }, Ge = K(() => {
2674
- var $, z, X;
2670
+ var $, E, X;
2675
2671
  let s = e.rows || [];
2676
2672
  if (!e.isServerMode) {
2677
2673
  if (($ = e.columns) == null || $.forEach((w) => {
2678
- w.filter && (w.value !== void 0 && w.value !== null && w.value !== "" || w.condition === "IsNull" || w.condition == "IsNotNull") && (w.type === "string" ? (w.value && !w.condition && (w.condition = "Contains"), w.condition === "Contains" ? s = s.filter((N) => {
2674
+ w.filter && (w.value !== void 0 && w.value !== null && w.value !== "" || w.condition === "IsNull" || w.condition == "IsNotNull") && (w.type === "string" ? (w.value && !w.condition && (w.condition = "Contains"), w.condition === "Contains" ? s = s.filter((P) => {
2679
2675
  var Q;
2680
- return (Q = O(N, w.field)) == null ? void 0 : Q.toString().toLowerCase().includes(w.value.toLowerCase());
2681
- }) : w.condition === "NotContains" ? s = s.filter((N) => {
2676
+ return (Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase().includes(w.value.toLowerCase());
2677
+ }) : w.condition === "NotContains" ? s = s.filter((P) => {
2682
2678
  var Q;
2683
- return !((Q = O(N, w.field)) != null && Q.toString().toLowerCase().includes(w.value.toLowerCase()));
2684
- }) : w.condition === "Equal" ? s = s.filter((N) => {
2679
+ return !((Q = O(P, w.field)) != null && Q.toString().toLowerCase().includes(w.value.toLowerCase()));
2680
+ }) : w.condition === "Equal" ? s = s.filter((P) => {
2685
2681
  var Q;
2686
- return ((Q = O(N, w.field)) == null ? void 0 : Q.toString().toLowerCase()) === w.value.toLowerCase();
2687
- }) : w.condition === "NotEqual" ? s = s.filter((N) => {
2682
+ return ((Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase()) === w.value.toLowerCase();
2683
+ }) : w.condition === "NotEqual" ? s = s.filter((P) => {
2688
2684
  var Q;
2689
- return ((Q = O(N, w.field)) == null ? void 0 : Q.toString().toLowerCase()) !== w.value.toLowerCase();
2690
- }) : w.condition == "StartsWith" ? s = s.filter((N) => {
2685
+ return ((Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase()) !== w.value.toLowerCase();
2686
+ }) : w.condition == "StartsWith" ? s = s.filter((P) => {
2691
2687
  var Q;
2692
- return ((Q = O(N, w.field)) == null ? void 0 : Q.toString().toLowerCase().indexOf(w.value.toLowerCase())) === 0;
2693
- }) : w.condition == "EndsWith" && (s = s.filter((N) => {
2688
+ return ((Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase().indexOf(w.value.toLowerCase())) === 0;
2689
+ }) : w.condition == "EndsWith" && (s = s.filter((P) => {
2694
2690
  var Q;
2695
- return ((Q = O(N, w.field)) == null ? void 0 : Q.toString().toLowerCase().substr(w.value.length * -1)) === w.value.toLowerCase();
2696
- }))) : w.type === "number" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) === parseFloat(w.value)) : w.condition === "NotEqual" ? s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) !== parseFloat(w.value)) : w.condition === "GreaterThan" ? s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) > parseFloat(w.value)) : w.condition === "GreaterThanOrEqual" ? s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) >= parseFloat(w.value)) : w.condition === "LessThan" ? s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) < parseFloat(w.value)) : w.condition === "LessThanOrEqual" && (s = s.filter((N) => O(N, w.field) && parseFloat(O(N, w.field)) <= parseFloat(w.value)))) : w.type === "date" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((N) => O(N, w.field) && Ye(O(N, w.field)) === w.value) : w.condition === "NotEqual" ? s = s.filter((N) => O(N, w.field) && Ye(O(N, w.field)) !== w.value) : w.condition === "GreaterThan" ? s = s.filter((N) => O(N, w.field) && Ye(O(N, w.field)) > w.value) : w.condition === "LessThan" && (s = s.filter((N) => O(N, w.field) && Ye(O(N, w.field)) < w.value))) : w.type === "bool" && (s = s.filter((N) => O(N, w.field) === w.value)), w.condition === "IsNull" ? (s = s.filter((N) => O(N, w.field) == null || O(N, w.field) == ""), w.value = "") : w.condition === "IsNotNull" && (w.value = "", s = s.filter((N) => O(N, w.field))));
2697
- }), P.value && (s != null && s.length)) {
2691
+ return ((Q = O(P, w.field)) == null ? void 0 : Q.toString().toLowerCase().substr(w.value.length * -1)) === w.value.toLowerCase();
2692
+ }))) : w.type === "number" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) === parseFloat(w.value)) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) !== parseFloat(w.value)) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) > parseFloat(w.value)) : w.condition === "GreaterThanOrEqual" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) >= parseFloat(w.value)) : w.condition === "LessThan" ? s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) < parseFloat(w.value)) : w.condition === "LessThanOrEqual" && (s = s.filter((P) => O(P, w.field) && parseFloat(O(P, w.field)) <= parseFloat(w.value)))) : w.type === "date" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) === w.value) : w.condition === "NotEqual" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) !== w.value) : w.condition === "GreaterThan" ? s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) > w.value) : w.condition === "LessThan" && (s = s.filter((P) => O(P, w.field) && Ye(O(P, w.field)) < w.value))) : w.type === "bool" && (s = s.filter((P) => O(P, w.field) === w.value)), w.condition === "IsNull" ? (s = s.filter((P) => O(P, w.field) == null || O(P, w.field) == ""), w.value = "") : w.condition === "IsNotNull" && (w.value = "", s = s.filter((P) => O(P, w.field))));
2693
+ }), N.value && (s != null && s.length)) {
2698
2694
  let w = [];
2699
- const N = (e.columns || []).filter((Q) => Q.search && !Q.hide).map((Q) => Q.field);
2700
- for (var m = 0; m < (s == null ? void 0 : s.length); m++)
2701
- for (var g = 0; g < N.length; g++)
2702
- if ((z = O(s[m], N[g])) != null && z.toString().toLowerCase().includes(P.value.toLowerCase())) {
2703
- w.push(s[m]);
2695
+ const P = (e.columns || []).filter((Q) => Q.search && !Q.hide).map((Q) => Q.field);
2696
+ for (var v = 0; v < (s == null ? void 0 : s.length); v++)
2697
+ for (var y = 0; y < P.length; y++)
2698
+ if ((E = O(s[v], P[y])) != null && E.toString().toLowerCase().includes(N.value.toLowerCase())) {
2699
+ w.push(s[v]);
2704
2700
  break;
2705
2701
  }
2706
2702
  s = w;
2707
2703
  }
2708
- const be = ((X = e.columns.find((w) => w.field == b.value)) == null ? void 0 : X.type) === "number", Un = ft(be || !1), Gn = x.value === "desc" ? -1 : 1;
2709
- s.sort((w, N) => {
2704
+ const be = ((X = e.columns.find((w) => w.field == g.value)) == null ? void 0 : X.type) === "number", Un = ft(be || !1), Gn = m.value === "desc" ? -1 : 1;
2705
+ s.sort((w, P) => {
2710
2706
  var jt, Ut;
2711
- const Q = (jt = b.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], w), Qn = (Ut = b.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], N);
2707
+ const Q = (jt = g.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], w), Qn = (Ut = g.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], P);
2712
2708
  return Un.compare(Q, Qn) * Gn;
2713
2709
  });
2714
2710
  }
2715
2711
  return s;
2716
2712
  }), ae = A(/* @__PURE__ */ new Map()), pe = () => {
2717
- let s = [], m = Ge.value;
2718
- e.isServerMode ? (v.value = e.totalRows || 0, s = m) : (v.value = (m == null ? void 0 : m.length) || 0, s = m.slice(S.value - 1, _.value)), e.hasSubtable && s.forEach(function(g, $) {
2719
- if (g.isExpanded !== void 0) {
2720
- const z = g._rowIndex !== void 0 ? g._rowIndex : g.id || $;
2721
- ae.value.set(z, g.isExpanded);
2713
+ let s = [], v = Ge.value;
2714
+ e.isServerMode ? (u.value = e.totalRows || 0, s = v) : (u.value = (v == null ? void 0 : v.length) || 0, s = v.slice(x.value - 1, _.value)), e.hasSubtable && s.forEach(function(y, $) {
2715
+ if (y.isExpanded !== void 0) {
2716
+ const E = y._rowIndex !== void 0 ? y._rowIndex : y.id || $;
2717
+ ae.value.set(E, y.isExpanded);
2722
2718
  }
2723
2719
  }), i.value = s || [];
2724
2720
  }, ke = () => {
@@ -2775,29 +2771,29 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2775
2771
  }), Y(() => e.initialLeftMenuState, (s) => {
2776
2772
  s !== void 0 && (H.value = s, R.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke());
2777
2773
  }, { immediate: !0 });
2778
- const Ke = (s, ...m) => s.replace(/{(\d+)}/g, (g, $) => typeof m[$] < "u" ? m[$] : g), f = K(() => {
2779
- const s = r.value < 1 ? 1 : Math.ceil(v.value / r.value);
2774
+ const Ke = (s, ...v) => s.replace(/{(\d+)}/g, (y, $) => typeof v[$] < "u" ? v[$] : y), d = K(() => {
2775
+ const s = r.value < 1 ? 1 : Math.ceil(u.value / r.value);
2780
2776
  return Math.max(s || 0, 1);
2781
- }), S = K(() => (a.value - 1) * r.value + 1), _ = K(() => {
2777
+ }), x = K(() => (a.value - 1) * r.value + 1), _ = K(() => {
2782
2778
  const s = a.value * r.value;
2783
- return v.value >= s ? s : v.value;
2784
- }), F = K(() => {
2785
- let s, m;
2786
- return typeof e.showNumbersCount < "u" && e.showNumbersCount < f.value ? (s = Math.max(
2779
+ return u.value >= s ? s : u.value;
2780
+ }), S = K(() => {
2781
+ let s, v;
2782
+ return typeof e.showNumbersCount < "u" && e.showNumbersCount < d.value ? (s = Math.max(
2787
2783
  a.value - Math.floor(e.showNumbersCount / 2),
2788
2784
  1
2789
- ), m = s + e.showNumbersCount - 1, m > f.value && (m = f.value, s = m - e.showNumbersCount + 1)) : (s = 1, m = f.value), Array.from(Array(m + 1 - s).keys()).map(
2790
- (z) => s + z
2785
+ ), v = s + e.showNumbersCount - 1, v > d.value && (v = d.value, s = v - e.showNumbersCount + 1)) : (s = 1, v = d.value), Array.from(Array(v + 1 - s).keys()).map(
2786
+ (E) => s + E
2791
2787
  );
2792
2788
  });
2793
2789
  Y(
2794
2790
  () => e.loading,
2795
2791
  () => {
2796
- c.value = e.loading;
2792
+ b.value = e.loading;
2797
2793
  }
2798
2794
  );
2799
- const L = (s) => {
2800
- s ? W.value === s.field ? W.value = null : W.value = s.field : W.value = null;
2795
+ const F = (s) => {
2796
+ s ? D.value === s.field ? D.value = null : D.value = s.field : D.value = null;
2801
2797
  }, T = () => {
2802
2798
  if (a.value == 1)
2803
2799
  return !1;
@@ -2805,7 +2801,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2805
2801
  }, q = (s) => {
2806
2802
  a.value = s;
2807
2803
  }, Z = () => {
2808
- if (a.value >= f.value)
2804
+ if (a.value >= d.value)
2809
2805
  return !1;
2810
2806
  a.value++;
2811
2807
  };
@@ -2820,105 +2816,105 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2820
2816
  Y(() => r.value, () => {
2821
2817
  de(!1), e.isServerMode ? a.value === 1 ? Me("pagesize", !0) : a.value = 1 : (a.value = 1, pe(), j("pageSizeChange", r.value));
2822
2818
  });
2823
- const Je = (s, m) => {
2824
- let g = m || "asc";
2825
- m || s == b.value && x.value === "asc" && (g = "desc");
2826
- let $ = (a.value - 1) * r.value, z = r.value;
2827
- b.value = s, x.value = g, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: $, limit: z, field: s, direction: g });
2819
+ const Je = (s, v) => {
2820
+ let y = v || "asc";
2821
+ v || s == g.value && m.value === "asc" && (y = "desc");
2822
+ let $ = (a.value - 1) * r.value, E = r.value;
2823
+ g.value = s, m.value = y, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: $, limit: E, field: s, direction: y });
2828
2824
  }, qt = (s) => {
2829
- I.value = s.length && i.value.length && s.length === i.value.length;
2830
- const m = i.value.filter((g, $) => {
2825
+ L.value = s.length && i.value.length && s.length === i.value.length;
2826
+ const v = i.value.filter((y, $) => {
2831
2827
  var X;
2832
- const z = le.value ? ((X = ve.value) == null ? void 0 : X.get($)) ?? $ : $;
2833
- return u.value.includes(z);
2828
+ const E = le.value ? ((X = ve.value) == null ? void 0 : X.get($)) ?? $ : $;
2829
+ return z.value.includes(E);
2834
2830
  });
2835
- j("rowSelect", m);
2831
+ j("rowSelect", v);
2836
2832
  };
2837
- Y(() => u.value, qt);
2833
+ Y(() => z.value, qt);
2838
2834
  const de = (s) => {
2839
- s ? u.value = i.value.map(
2840
- (m, g) => {
2835
+ s ? z.value = i.value.map(
2836
+ (v, y) => {
2841
2837
  var $;
2842
- return le.value ? (($ = ve.value) == null ? void 0 : $.get(g)) ?? g : g;
2838
+ return le.value ? (($ = ve.value) == null ? void 0 : $.get(y)) ?? y : y;
2843
2839
  }
2844
- ) : u.value = [];
2840
+ ) : z.value = [];
2845
2841
  }, Re = () => {
2846
2842
  de(!1), e.isServerMode ? a.value === 1 ? Me("filter", !0) : a.value = 1 : (a.value = 1, pe(), j("filterChange", e.columns));
2847
2843
  }, Wt = (s) => {
2848
2844
  Re();
2849
2845
  }, $n = () => {
2850
- de(!1), e.isServerMode ? a.value === 1 ? Me("search", !0) : a.value = 1 : (a.value = 1, pe(), j("searchChange", P.value));
2846
+ de(!1), e.isServerMode ? a.value === 1 ? Me("search", !0) : a.value = 1 : (a.value = 1, pe(), j("searchChange", N.value));
2851
2847
  };
2852
2848
  Y(
2853
2849
  () => e.search,
2854
2850
  () => {
2855
- P.value = e.search, $n();
2851
+ N.value = e.search, $n();
2856
2852
  }
2857
2853
  );
2858
2854
  const Ye = (s) => {
2859
2855
  try {
2860
2856
  if (!s)
2861
2857
  return "";
2862
- const m = new Date(s), g = m.getDate(), $ = m.getMonth() + 1;
2863
- return m.getFullYear() + "-" + ($ > 9 ? $ : "0" + $) + "-" + (g > 9 ? g : "0" + g);
2858
+ const v = new Date(s), y = v.getDate(), $ = v.getMonth() + 1;
2859
+ return v.getFullYear() + "-" + ($ > 9 ? $ : "0" + $) + "-" + (y > 9 ? y : "0" + y);
2864
2860
  } catch {
2865
2861
  }
2866
2862
  return "";
2867
- }, Xe = (s, m) => {
2863
+ }, Xe = (s, v) => {
2868
2864
  J.value++, J.value === 1 ? ee.value = setTimeout(() => {
2869
- J.value = 0, e.selectRowOnClick && (Ze(m) ? Bt(m) : Dt(m), qt(u.value)), j("rowClick", s);
2865
+ J.value = 0, e.selectRowOnClick && (Ze(v) ? Bt(v) : Dt(v), qt(z.value)), j("rowClick", s);
2870
2866
  }, we.value) : J.value === 2 && (clearTimeout(ee.value), J.value = 0, j("rowDBClick", s));
2871
- }, Me = (s, m = !1) => {
2867
+ }, Me = (s, v = !1) => {
2872
2868
  if (e.isServerMode) {
2873
2869
  On();
2874
- const g = {
2875
- current_page: m ? 1 : a.value,
2870
+ const y = {
2871
+ current_page: v ? 1 : a.value,
2876
2872
  pagesize: r.value,
2877
2873
  offset: (a.value - 1) * r.value,
2878
- sort_column: b.value,
2879
- sort_direction: x.value,
2880
- search: P.value,
2874
+ sort_column: g.value,
2875
+ sort_direction: m.value,
2876
+ search: N.value,
2881
2877
  column_filters: e.columns,
2882
2878
  change_type: s
2883
2879
  };
2884
- j("change", g);
2880
+ j("change", y);
2885
2881
  }
2886
2882
  }, On = () => {
2887
2883
  for (let s = 0; s < e.columns.length; s++) {
2888
- let m = e.columns[s];
2889
- m.filter && (m.value !== void 0 && m.value !== null && m.value !== "" || m.condition === "IsNull" || m.condition === "IsNotNull") && (m.type === "string" && m.value && !m.condition && (m.condition = "Contains"), m.type === "number" && m.value && !m.condition && (m.condition = "Equal"), m.type === "date" && m.value && !m.condition && (m.condition = "Equal"));
2884
+ let v = e.columns[s];
2885
+ v.filter && (v.value !== void 0 && v.value !== null && v.value !== "" || v.condition === "IsNull" || v.condition === "IsNotNull") && (v.type === "string" && v.value && !v.condition && (v.condition = "Contains"), v.type === "number" && v.value && !v.condition && (v.condition = "Equal"), v.type === "date" && v.value && !v.condition && (v.condition = "Equal"));
2890
2886
  }
2891
2887
  }, Rn = () => {
2892
2888
  de(!1);
2893
2889
  for (let s = 0; s < e.columns.length; s++)
2894
2890
  e.columns[s].value = "";
2895
- P.value = "", r.value = h, b.value = C, x.value = y, e.isServerMode ? a.value === 1 ? Me("reset", !0) : a.value = 1 : (a.value = 1, pe());
2896
- }, An = () => i.value.filter((m, g) => {
2897
- var z;
2898
- const $ = le.value ? ((z = ve.value) == null ? void 0 : z.get(g)) ?? g : g;
2899
- return u.value.includes($);
2891
+ N.value = "", r.value = f, g.value = C, m.value = p, e.isServerMode ? a.value === 1 ? Me("reset", !0) : a.value = 1 : (a.value = 1, pe());
2892
+ }, An = () => i.value.filter((v, y) => {
2893
+ var E;
2894
+ const $ = le.value ? ((E = ve.value) == null ? void 0 : E.get(y)) ?? y : y;
2895
+ return z.value.includes($);
2900
2896
  }), qn = () => e.columns, Wn = () => {
2901
- u.value = [];
2897
+ z.value = [];
2902
2898
  }, Dt = (s) => {
2903
- var m;
2899
+ var v;
2904
2900
  if (!Ze(s)) {
2905
- const g = le.value ? ((m = ve.value) == null ? void 0 : m.get(s)) ?? s : s;
2906
- u.value.push(g);
2901
+ const y = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2902
+ z.value.push(y);
2907
2903
  }
2908
2904
  }, Bt = (s) => {
2909
- var m;
2905
+ var v;
2910
2906
  if (Ze(s)) {
2911
- const g = le.value ? ((m = ve.value) == null ? void 0 : m.get(s)) ?? s : s;
2912
- u.value = u.value.filter(($) => $ !== g);
2907
+ const y = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2908
+ z.value = z.value.filter(($) => $ !== y);
2913
2909
  }
2914
2910
  }, Ze = (s) => {
2915
- var g;
2911
+ var y;
2916
2912
  if (s >= i.value.length) return !1;
2917
- const m = le.value ? ((g = ve.value) == null ? void 0 : g.get(s)) ?? s : s;
2918
- return u.value.includes(m);
2913
+ const v = le.value ? ((y = ve.value) == null ? void 0 : y.get(s)) ?? s : s;
2914
+ return z.value.includes(v);
2919
2915
  }, Dn = () => {
2920
- ae.value.forEach((s, m) => {
2921
- ae.value.set(m, !1);
2916
+ ae.value.forEach((s, v) => {
2917
+ ae.value.set(v, !1);
2922
2918
  });
2923
2919
  };
2924
2920
  let fe = 0;
@@ -2927,21 +2923,21 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2927
2923
  Se(() => {
2928
2924
  let s = et.value;
2929
2925
  if (s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement) {
2930
- const m = s.offsetHeight || 0;
2931
- j("currentTopMenuSize", m);
2926
+ const v = s.offsetHeight || 0;
2927
+ j("currentTopMenuSize", v);
2932
2928
  }
2933
2929
  });
2934
2930
  }, 50), Vn = rl((s) => {
2935
2931
  if (!s || !s.panes || !s.panes.length) return;
2936
- const m = s.panes[0].size;
2937
- Ae.value = m, Hn();
2932
+ const v = s.panes[0].size;
2933
+ Ae.value = v, Hn();
2938
2934
  }, 16), jn = Kt(() => {
2939
2935
  let s = et.value;
2940
2936
  s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement && j("currentTopMenuSize", s.offsetHeight || 0);
2941
2937
  }, 50);
2942
2938
  return Y(() => Ae.value, jn), mn(() => {
2943
2939
  window.removeEventListener("resize", Qe), se.clear();
2944
- }), (s, m) => (d(), p("div", xi, [
2940
+ }), (s, v) => (c(), h("div", xi, [
2945
2941
  ne(U(Yt), {
2946
2942
  class: "default-theme",
2947
2943
  style: G({ height: e.height })
@@ -2950,7 +2946,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2950
2946
  ne(U(gt), null, {
2951
2947
  default: qe(() => [
2952
2948
  k("div", Si, [
2953
- s.enableleftmenu ? (d(), p("div", {
2949
+ s.enableleftmenu ? (c(), h("div", {
2954
2950
  key: 0,
2955
2951
  ref_key: "leftmenuel",
2956
2952
  ref: ce,
@@ -2966,12 +2962,12 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2966
2962
  te(s.$slots, "tableleftmenu", {}, () => [
2967
2963
  Fi
2968
2964
  ]),
2969
- e.showResizeButton ? (d(), p("div", Li, [
2965
+ e.showResizeButton ? (c(), h("div", Li, [
2970
2966
  k("button", {
2971
2967
  onClick: Oe,
2972
2968
  class: "bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"
2973
2969
  }, [
2974
- (d(), p("svg", {
2970
+ (c(), h("svg", {
2975
2971
  width: "8",
2976
2972
  height: "12",
2977
2973
  viewBox: "0 0 8 12",
@@ -2980,10 +2976,10 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2980
2976
  style: G({ transform: H.value ? "rotate(180deg)" : "none" })
2981
2977
  }, zi, 4))
2982
2978
  ])
2983
- ])) : E("", !0)
2984
- ], 4)) : E("", !0),
2979
+ ])) : M("", !0)
2980
+ ], 4)) : M("", !0),
2985
2981
  k("div", Ei, [
2986
- s.enabletopmenu ? (d(), re(U(Yt), {
2982
+ s.enabletopmenu ? (c(), re(U(Yt), {
2987
2983
  key: 0,
2988
2984
  class: "default-theme",
2989
2985
  horizontal: "horizontal",
@@ -2991,7 +2987,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2991
2987
  "push-other-panes": ""
2992
2988
  }, {
2993
2989
  default: qe(() => [
2994
- s.enabletopmenu ? (d(), re(U(gt), {
2990
+ s.enabletopmenu ? (c(), re(U(gt), {
2995
2991
  key: 0,
2996
2992
  ref_key: "topmenuel",
2997
2993
  ref: et,
@@ -3005,12 +3001,12 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3005
3001
  ])
3006
3002
  ]),
3007
3003
  _: 3
3008
- }, 8, ["size", "max-size", "style"])) : E("", !0),
3004
+ }, 8, ["size", "max-size", "style"])) : M("", !0),
3009
3005
  ne(U(gt), {
3010
3006
  style: G({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3011
3007
  }, {
3012
3008
  default: qe(() => [
3013
- s.enableHeaderArea ? (d(), p("div", {
3009
+ s.enableHeaderArea ? (c(), h("div", {
3014
3010
  key: 0,
3015
3011
  class: "bh-w-full bh-overflow-auto",
3016
3012
  style: G({ height: s.headerAreaHeight, "margin-bottom": "10px" })
@@ -3018,194 +3014,194 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3018
3014
  te(s.$slots, "tableHeaderArea", {}, () => [
3019
3015
  Ii
3020
3016
  ])
3021
- ], 4)) : E("", !0),
3017
+ ], 4)) : M("", !0),
3022
3018
  te(s.$slots, "tableactionheader", {}, () => [
3023
3019
  Pi
3024
3020
  ]),
3025
3021
  k("div", {
3026
- class: M(["bh-table-responsive", { "bh-min-h-[100px]": c.value }]),
3022
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3027
3023
  style: G({
3028
3024
  overflow: "auto",
3029
3025
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - (e.footerOffset + (U(Bn) || 0)) + "px" : "auto"
3030
3026
  })
3031
3027
  }, [
3032
3028
  k("table", {
3033
- class: M([e.skin])
3029
+ class: I([e.skin])
3034
3030
  }, [
3035
3031
  k("thead", {
3036
- class: M({
3032
+ class: I({
3037
3033
  "bh-sticky bh-top-0 bh-z-10": e.stickyHeader
3038
3034
  })
3039
3035
  }, [
3040
3036
  ne(nt, {
3041
3037
  all: e,
3042
3038
  expandedrows: ae.value,
3043
- currentSortColumn: b.value,
3044
- currentSortDirection: x.value,
3045
- isOpenFilter: W.value,
3046
- checkAll: I.value,
3039
+ currentSortColumn: g.value,
3040
+ currentSortDirection: m.value,
3041
+ isOpenFilter: D.value,
3042
+ checkAll: L.value,
3047
3043
  columnFilterLang: e.columnFilterLang,
3048
3044
  onSelectAll: de,
3049
3045
  onSortChange: Je,
3050
3046
  onFilterChange: Re,
3051
- onToggleFilterMenu: L,
3047
+ onToggleFilterMenu: F,
3052
3048
  onClearColumnFilter: Wt
3053
3049
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3054
3050
  ], 2),
3055
3051
  k("tbody", null, [
3056
- (d(!0), p(D, null, oe(i.value, (g, $) => (d(), p(D, {
3052
+ (c(!0), h(W, null, oe(i.value, (y, $) => (c(), h(W, {
3057
3053
  key: ze($)
3058
3054
  }, [
3059
- v.value ? (d(), p("tr", {
3055
+ u.value ? (c(), h("tr", {
3060
3056
  key: 0,
3061
- class: M([
3062
- Ee.value ? s.rowClass(g) : e.rowClass,
3057
+ class: I([
3058
+ Ee.value ? s.rowClass(y) : e.rowClass,
3063
3059
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3064
3060
  ]),
3065
- onClick: V((z) => Xe(g, $), ["prevent"])
3061
+ onClick: V((E) => Xe(y, $), ["prevent"])
3066
3062
  }, [
3067
- e.hasCheckbox ? (d(), p("td", {
3063
+ e.hasCheckbox ? (c(), h("td", {
3068
3064
  key: 0,
3069
3065
  style: G({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3070
- class: M({
3066
+ class: I({
3071
3067
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3072
3068
  })
3073
3069
  }, [
3074
- k("div", Ti, [
3070
+ k("div", Ni, [
3075
3071
  ie(k("input", {
3076
- "onUpdate:modelValue": m[0] || (m[0] = (z) => u.value = z),
3072
+ "onUpdate:modelValue": v[0] || (v[0] = (E) => z.value = E),
3077
3073
  type: "checkbox",
3078
3074
  value: ze($),
3079
- onClick: m[1] || (m[1] = V(() => {
3075
+ onClick: v[1] || (v[1] = V(() => {
3080
3076
  }, ["stop"]))
3081
3077
  }, null, 8, $i), [
3082
- [Qt, u.value]
3078
+ [Qt, z.value]
3083
3079
  ]),
3084
3080
  k("div", null, [
3085
3081
  ne(Mt, { class: "check" })
3086
3082
  ])
3087
3083
  ])
3088
- ], 6)) : E("", !0),
3089
- e.hasRightPanel ? (d(), p("td", {
3084
+ ], 6)) : M("", !0),
3085
+ e.hasRightPanel ? (c(), h("td", {
3090
3086
  key: 1,
3091
3087
  style: G({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3092
- class: M({
3088
+ class: I({
3093
3089
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3094
3090
  })
3095
3091
  }, [
3096
3092
  ne(hn, {
3097
- item: g,
3098
- onRightPanelClick: m[2] || (m[2] = (z) => j("rowRightPanelClick", z))
3093
+ item: y,
3094
+ onRightPanelClick: v[2] || (v[2] = (E) => j("rowRightPanelClick", E))
3099
3095
  }, null, 8, ["item"])
3100
- ], 6)) : E("", !0),
3101
- e.hasSubtable ? (d(), p("td", {
3096
+ ], 6)) : M("", !0),
3097
+ e.hasSubtable ? (c(), h("td", {
3102
3098
  key: 2,
3103
3099
  style: G({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3104
- class: M({
3100
+ class: I({
3105
3101
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3106
3102
  })
3107
3103
  }, [
3108
3104
  ne(Et, {
3109
- item: { ...g, _rowIndex: $ },
3105
+ item: { ...y, _rowIndex: $ },
3110
3106
  expandedrows: ae.value
3111
3107
  }, null, 8, ["item", "expandedrows"])
3112
- ], 6)) : E("", !0),
3113
- (d(!0), p(D, null, oe(e.columns, (z, X) => (d(), p(D, null, [
3114
- z.hide ? E("", !0) : (d(), p("td", {
3115
- key: z.field,
3116
- class: M([
3117
- me.value ? s.cellClass(g) : e.cellClass,
3108
+ ], 6)) : M("", !0),
3109
+ (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3110
+ E.hide ? M("", !0) : (c(), h("td", {
3111
+ key: E.field,
3112
+ class: I([
3113
+ me.value ? s.cellClass(y) : e.cellClass,
3118
3114
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3119
3115
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3120
- z.cellClass ? z.cellClass : ""
3116
+ E.cellClass ? E.cellClass : ""
3121
3117
  ])
3122
3118
  }, [
3123
- U(l)[z.field] ? te(s.$slots, z.field, {
3119
+ U(l)[E.field] ? te(s.$slots, E.field, {
3124
3120
  key: 0,
3125
- value: g
3126
- }) : z.cellRenderer ? (d(), p("div", {
3121
+ value: y
3122
+ }) : E.cellRenderer ? (c(), h("div", {
3127
3123
  key: 1,
3128
- innerHTML: z.cellRenderer(g)
3129
- }, null, 8, Oi)) : (d(), p(D, { key: 2 }, [
3130
- De(B(O(g, z.field)), 1)
3124
+ innerHTML: E.cellRenderer(y)
3125
+ }, null, 8, Oi)) : (c(), h(W, { key: 2 }, [
3126
+ De(B(O(y, E.field)), 1)
3131
3127
  ], 64))
3132
3128
  ], 2))
3133
3129
  ], 64))), 256))
3134
- ], 10, Ni)) : E("", !0),
3135
- Te(g, $) && e.hasSubtable ? (d(), p("tr", {
3130
+ ], 10, Ti)) : M("", !0),
3131
+ Ne(y, $) && e.hasSubtable ? (c(), h("tr", {
3136
3132
  key: 1,
3137
- class: M([
3138
- Ee.value ? s.rowClass(g) : e.rowClass,
3133
+ class: I([
3134
+ Ee.value ? s.rowClass(y) : e.rowClass,
3139
3135
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3140
3136
  ]),
3141
- onClick: V((z) => Xe(g, $), ["prevent"])
3137
+ onClick: V((E) => Xe(y, $), ["prevent"])
3142
3138
  }, [
3143
3139
  k("td", {
3144
3140
  colspan: e.columns.length + U(fe)
3145
3141
  }, [
3146
3142
  te(s.$slots, "tsub", {
3147
- rowData: g,
3143
+ rowData: y,
3148
3144
  rowIndex: $,
3149
3145
  filterItems: i.value
3150
3146
  })
3151
3147
  ], 8, Ai)
3152
- ], 10, Ri)) : E("", !0)
3148
+ ], 10, Ri)) : M("", !0)
3153
3149
  ], 64))), 128)),
3154
- !v.value && c.value && s.skeletonloader ? (d(!0), p(D, { key: 0 }, oe(e.pageSize, (g) => (d(), p("tr", {
3155
- key: g,
3150
+ !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (y) => (c(), h("tr", {
3151
+ key: y,
3156
3152
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3157
3153
  }, [
3158
3154
  k("td", {
3159
3155
  colspan: e.columns.length + U(fe),
3160
3156
  class: "!bh-p-0 !bh-border-transparent"
3161
3157
  }, Di, 8, qi)
3162
- ]))), 128)) : E("", !0),
3163
- v.value ? (d(!0), p(D, { key: 1 }, oe(e.footerRows, (g, $) => (d(), p("tr", {
3164
- key: g[le.value] ? g[le.value] : $,
3158
+ ]))), 128)) : M("", !0),
3159
+ u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (y, $) => (c(), h("tr", {
3160
+ key: y[le.value] ? y[le.value] : $,
3165
3161
  class: "sticky-table-footer"
3166
3162
  }, [
3167
- U(fe) > 0 ? (d(), p("td", {
3163
+ U(fe) > 0 ? (c(), h("td", {
3168
3164
  key: 0,
3169
3165
  colspan: U(fe)
3170
- }, null, 8, Bi)) : E("", !0),
3171
- (d(!0), p(D, null, oe(e.columns, (z, X) => (d(), p(D, null, [
3172
- z.hide ? E("", !0) : (d(), p("td", {
3173
- key: z.field,
3174
- class: M([
3175
- me.value ? s.cellClass(g) : e.cellClass,
3166
+ }, null, 8, Bi)) : M("", !0),
3167
+ (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3168
+ E.hide ? M("", !0) : (c(), h("td", {
3169
+ key: E.field,
3170
+ class: I([
3171
+ me.value ? s.cellClass(y) : e.cellClass,
3176
3172
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3177
3173
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3178
- z.cellClass ? z.cellClass : ""
3174
+ E.cellClass ? E.cellClass : ""
3179
3175
  ])
3180
3176
  }, [
3181
- g.cells.find((be) => be.field == z.field) ? (d(), p(D, { key: 0 }, [
3182
- De(B(g.cells.find((be) => be.field == z.field).text), 1)
3183
- ], 64)) : E("", !0)
3177
+ y.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3178
+ De(B(y.cells.find((be) => be.field == E.field).text), 1)
3179
+ ], 64)) : M("", !0)
3184
3180
  ], 2))
3185
3181
  ], 64))), 256))
3186
- ]))), 128)) : E("", !0)
3182
+ ]))), 128)) : M("", !0)
3187
3183
  ]),
3188
- e.cloneHeaderInFooter ? (d(), p("tfoot", {
3184
+ e.cloneHeaderInFooter ? (c(), h("tfoot", {
3189
3185
  key: 0,
3190
- class: M({
3186
+ class: I({
3191
3187
  "bh-sticky bh-bottom-0": e.stickyHeader
3192
3188
  })
3193
3189
  }, [
3194
3190
  ne(nt, {
3195
3191
  all: e,
3196
- currentSortColumn: b.value,
3197
- currentSortDirection: x.value,
3198
- isOpenFilter: W.value,
3192
+ currentSortColumn: g.value,
3193
+ currentSortDirection: m.value,
3194
+ isOpenFilter: D.value,
3199
3195
  isFooter: !0,
3200
- checkAll: I.value,
3196
+ checkAll: L.value,
3201
3197
  onSelectAll: de,
3202
3198
  onSortChange: Je,
3203
3199
  onFilterChange: Re,
3204
- onToggleFilterMenu: L
3200
+ onToggleFilterMenu: F
3205
3201
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3206
- ], 2)) : E("", !0)
3202
+ ], 2)) : M("", !0)
3207
3203
  ], 2),
3208
- c.value && s.enableloadinganimation ? (d(), p("div", {
3204
+ b.value && s.enableloadinganimation ? (c(), h("div", {
3209
3205
  key: 0,
3210
3206
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3211
3207
  style: G({
@@ -3213,8 +3209,8 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3213
3209
  })
3214
3210
  }, [
3215
3211
  te(s.$slots, "loadercontent")
3216
- ], 4)) : E("", !0),
3217
- !v.value && !c.value ? (d(), p("div", {
3212
+ ], 4)) : M("", !0),
3213
+ !u.value && !b.value ? (c(), h("div", {
3218
3214
  key: 1,
3219
3215
  class: "nodatacontent",
3220
3216
  style: G({
@@ -3224,20 +3220,20 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3224
3220
  te(s.$slots, "nodatacontent", {}, () => [
3225
3221
  k("span", null, B(e.noDataContent), 1)
3226
3222
  ])
3227
- ], 4)) : E("", !0)
3223
+ ], 4)) : M("", !0)
3228
3224
  ], 6)
3229
3225
  ]),
3230
3226
  _: 3
3231
3227
  }, 8, ["style"])
3232
3228
  ]),
3233
3229
  _: 3
3234
- }, 8, ["onResize"])) : E("", !0),
3235
- s.enabletopmenu ? E("", !0) : (d(), p("div", {
3230
+ }, 8, ["onResize"])) : M("", !0),
3231
+ s.enabletopmenu ? M("", !0) : (c(), h("div", {
3236
3232
  key: 1,
3237
3233
  class: "bh-w-full bh-h-full",
3238
3234
  style: G({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3239
3235
  }, [
3240
- s.enableHeaderArea ? (d(), p("div", {
3236
+ s.enableHeaderArea ? (c(), h("div", {
3241
3237
  key: 0,
3242
3238
  class: "bh-w-full bh-overflow-auto",
3243
3239
  style: G({ height: s.headerAreaHeight, "margin-bottom": "10px" })
@@ -3245,117 +3241,117 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3245
3241
  te(s.$slots, "tableHeaderArea", {}, () => [
3246
3242
  Hi
3247
3243
  ])
3248
- ], 4)) : E("", !0),
3244
+ ], 4)) : M("", !0),
3249
3245
  te(s.$slots, "tableactionheader"),
3250
3246
  k("div", {
3251
- class: M(["bh-table-responsive", { "bh-min-h-[100px]": c.value }]),
3247
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": b.value }]),
3252
3248
  style: G({
3253
3249
  overflow: "auto",
3254
3250
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - e.footerOffset + "px" : "auto"
3255
3251
  })
3256
3252
  }, [
3257
3253
  k("table", {
3258
- class: M([e.skin])
3254
+ class: I([e.skin])
3259
3255
  }, [
3260
3256
  k("thead", {
3261
- class: M({ "bh-sticky bh-top-0 bh-z-10": e.stickyHeader })
3257
+ class: I({ "bh-sticky bh-top-0 bh-z-10": e.stickyHeader })
3262
3258
  }, [
3263
3259
  ne(nt, {
3264
3260
  all: e,
3265
3261
  expandedrows: ae.value,
3266
- currentSortColumn: b.value,
3267
- currentSortDirection: x.value,
3268
- isOpenFilter: W.value,
3269
- checkAll: I.value,
3262
+ currentSortColumn: g.value,
3263
+ currentSortDirection: m.value,
3264
+ isOpenFilter: D.value,
3265
+ checkAll: L.value,
3270
3266
  columnFilterLang: e.columnFilterLang,
3271
3267
  onSelectAll: de,
3272
3268
  onSortChange: Je,
3273
3269
  onFilterChange: Re,
3274
- onToggleFilterMenu: L,
3270
+ onToggleFilterMenu: F,
3275
3271
  onClearColumnFilter: Wt
3276
3272
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3277
3273
  ], 2),
3278
3274
  k("tbody", null, [
3279
- (d(!0), p(D, null, oe(i.value, (g, $) => (d(), p(D, {
3275
+ (c(!0), h(W, null, oe(i.value, (y, $) => (c(), h(W, {
3280
3276
  key: ze($)
3281
3277
  }, [
3282
- v.value ? (d(), p("tr", {
3278
+ u.value ? (c(), h("tr", {
3283
3279
  key: 0,
3284
- class: M([
3285
- Ee.value ? s.rowClass(g) : e.rowClass,
3280
+ class: I([
3281
+ Ee.value ? s.rowClass(y) : e.rowClass,
3286
3282
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3287
3283
  ]),
3288
- onClick: V((z) => Xe(g, $), ["prevent"])
3284
+ onClick: V((E) => Xe(y, $), ["prevent"])
3289
3285
  }, [
3290
- e.hasCheckbox ? (d(), p("td", {
3286
+ e.hasCheckbox ? (c(), h("td", {
3291
3287
  key: 0,
3292
3288
  style: G({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3293
- class: M({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3289
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3294
3290
  }, [
3295
3291
  k("div", ji, [
3296
3292
  ie(k("input", {
3297
- "onUpdate:modelValue": m[3] || (m[3] = (z) => u.value = z),
3293
+ "onUpdate:modelValue": v[3] || (v[3] = (E) => z.value = E),
3298
3294
  type: "checkbox",
3299
3295
  value: ze($),
3300
- onClick: m[4] || (m[4] = V(() => {
3296
+ onClick: v[4] || (v[4] = V(() => {
3301
3297
  }, ["stop"]))
3302
3298
  }, null, 8, Ui), [
3303
- [Qt, u.value]
3299
+ [Qt, z.value]
3304
3300
  ]),
3305
3301
  k("div", null, [
3306
3302
  ne(Mt, { class: "check" })
3307
3303
  ])
3308
3304
  ])
3309
- ], 6)) : E("", !0),
3310
- e.hasRightPanel ? (d(), p("td", {
3305
+ ], 6)) : M("", !0),
3306
+ e.hasRightPanel ? (c(), h("td", {
3311
3307
  key: 1,
3312
3308
  style: G({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3313
- class: M({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3309
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3314
3310
  }, [
3315
3311
  ne(hn, {
3316
- item: g,
3317
- onRightPanelClick: m[5] || (m[5] = (z) => j("rowRightPanelClick", z))
3312
+ item: y,
3313
+ onRightPanelClick: v[5] || (v[5] = (E) => j("rowRightPanelClick", E))
3318
3314
  }, null, 8, ["item"])
3319
- ], 6)) : E("", !0),
3320
- e.hasSubtable ? (d(), p("td", {
3315
+ ], 6)) : M("", !0),
3316
+ e.hasSubtable ? (c(), h("td", {
3321
3317
  key: 2,
3322
3318
  style: G({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3323
- class: M({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3319
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3324
3320
  }, [
3325
3321
  ne(Et, {
3326
- item: { ...g, _rowIndex: $ },
3322
+ item: { ...y, _rowIndex: $ },
3327
3323
  expandedrows: ae.value
3328
3324
  }, null, 8, ["item", "expandedrows"])
3329
- ], 6)) : E("", !0),
3330
- (d(!0), p(D, null, oe(e.columns, (z, X) => (d(), p(D, null, [
3331
- z.hide ? E("", !0) : (d(), p("td", {
3332
- key: z.field,
3333
- class: M([
3334
- me.value ? s.cellClass(g) : e.cellClass,
3325
+ ], 6)) : M("", !0),
3326
+ (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3327
+ E.hide ? M("", !0) : (c(), h("td", {
3328
+ key: E.field,
3329
+ class: I([
3330
+ me.value ? s.cellClass(y) : e.cellClass,
3335
3331
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3336
3332
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3337
- z.cellClass ? z.cellClass : ""
3333
+ E.cellClass ? E.cellClass : ""
3338
3334
  ])
3339
3335
  }, [
3340
- U(l)[z.field] ? te(s.$slots, z.field, {
3336
+ U(l)[E.field] ? te(s.$slots, E.field, {
3341
3337
  key: 0,
3342
- value: g
3343
- }) : z.cellRenderer ? (d(), p("div", {
3338
+ value: y
3339
+ }) : E.cellRenderer ? (c(), h("div", {
3344
3340
  key: 1,
3345
- innerHTML: z.cellRenderer(g)
3346
- }, null, 8, Gi)) : (d(), p(D, { key: 2 }, [
3347
- De(B(O(g, z.field)), 1)
3341
+ innerHTML: E.cellRenderer(y)
3342
+ }, null, 8, Gi)) : (c(), h(W, { key: 2 }, [
3343
+ De(B(O(y, E.field)), 1)
3348
3344
  ], 64))
3349
3345
  ], 2))
3350
3346
  ], 64))), 256))
3351
- ], 10, Vi)) : E("", !0),
3352
- Te(g, $) && e.hasSubtable ? (d(), p("tr", {
3347
+ ], 10, Vi)) : M("", !0),
3348
+ Ne(y, $) && e.hasSubtable ? (c(), h("tr", {
3353
3349
  key: 1,
3354
- class: M([
3355
- Ee.value ? s.rowClass(g) : e.rowClass,
3350
+ class: I([
3351
+ Ee.value ? s.rowClass(y) : e.rowClass,
3356
3352
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3357
3353
  ]),
3358
- onClick: V((z) => Xe(g, $), ["prevent"])
3354
+ onClick: V((E) => Xe(y, $), ["prevent"])
3359
3355
  }, [
3360
3356
  k("td", {
3361
3357
  colspan: e.columns.length + U(fe)
@@ -3371,74 +3367,74 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3371
3367
  })
3372
3368
  }, [
3373
3369
  te(s.$slots, "tsub", {
3374
- rowData: g,
3370
+ rowData: y,
3375
3371
  rowIndex: $,
3376
3372
  filterItems: i.value
3377
3373
  })
3378
3374
  ], 4)
3379
3375
  ], 8, Ki)
3380
- ], 10, Qi)) : E("", !0)
3376
+ ], 10, Qi)) : M("", !0)
3381
3377
  ], 64))), 128)),
3382
- !v.value && c.value && s.skeletonloader ? (d(!0), p(D, { key: 0 }, oe(e.pageSize, (g) => (d(), p("tr", {
3383
- key: g,
3378
+ !u.value && b.value && s.skeletonloader ? (c(!0), h(W, { key: 0 }, oe(e.pageSize, (y) => (c(), h("tr", {
3379
+ key: y,
3384
3380
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3385
3381
  }, [
3386
3382
  k("td", {
3387
3383
  colspan: e.columns.length + U(fe),
3388
3384
  class: "!bh-p-0 !bh-border-transparent"
3389
3385
  }, Xi, 8, Ji)
3390
- ]))), 128)) : E("", !0),
3391
- v.value ? (d(!0), p(D, { key: 1 }, oe(e.footerRows, (g, $) => (d(), p("tr", {
3392
- key: g[le.value] ? g[le.value] : $,
3386
+ ]))), 128)) : M("", !0),
3387
+ u.value ? (c(!0), h(W, { key: 1 }, oe(e.footerRows, (y, $) => (c(), h("tr", {
3388
+ key: y[le.value] ? y[le.value] : $,
3393
3389
  class: "sticky-table-footer"
3394
3390
  }, [
3395
- U(fe) > 0 ? (d(), p("td", {
3391
+ U(fe) > 0 ? (c(), h("td", {
3396
3392
  key: 0,
3397
3393
  colspan: U(fe)
3398
- }, null, 8, Zi)) : E("", !0),
3399
- (d(!0), p(D, null, oe(e.columns, (z, X) => (d(), p(D, null, [
3400
- z.hide ? E("", !0) : (d(), p("td", {
3401
- key: z.field,
3402
- class: M([
3403
- me.value ? s.cellClass(g) : e.cellClass,
3394
+ }, null, 8, Zi)) : M("", !0),
3395
+ (c(!0), h(W, null, oe(e.columns, (E, X) => (c(), h(W, null, [
3396
+ E.hide ? M("", !0) : (c(), h("td", {
3397
+ key: E.field,
3398
+ class: I([
3399
+ me.value ? s.cellClass(y) : e.cellClass,
3404
3400
  X === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3405
3401
  e.hasCheckbox && X === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3406
- z.cellClass ? z.cellClass : ""
3402
+ E.cellClass ? E.cellClass : ""
3407
3403
  ])
3408
3404
  }, [
3409
- g.cells.find((be) => be.field == z.field) ? (d(), p(D, { key: 0 }, [
3410
- De(B(g.cells.find((be) => be.field == z.field).text), 1)
3411
- ], 64)) : E("", !0)
3405
+ y.cells.find((be) => be.field == E.field) ? (c(), h(W, { key: 0 }, [
3406
+ De(B(y.cells.find((be) => be.field == E.field).text), 1)
3407
+ ], 64)) : M("", !0)
3412
3408
  ], 2))
3413
3409
  ], 64))), 256))
3414
- ]))), 128)) : E("", !0)
3410
+ ]))), 128)) : M("", !0)
3415
3411
  ]),
3416
- e.cloneHeaderInFooter ? (d(), p("tfoot", {
3412
+ e.cloneHeaderInFooter ? (c(), h("tfoot", {
3417
3413
  key: 0,
3418
- class: M({ "bh-sticky bh-bottom-0": e.stickyHeader })
3414
+ class: I({ "bh-sticky bh-bottom-0": e.stickyHeader })
3419
3415
  }, [
3420
3416
  ne(nt, {
3421
3417
  all: e,
3422
- currentSortColumn: b.value,
3423
- currentSortDirection: x.value,
3424
- isOpenFilter: W.value,
3418
+ currentSortColumn: g.value,
3419
+ currentSortDirection: m.value,
3420
+ isOpenFilter: D.value,
3425
3421
  isFooter: !0,
3426
- checkAll: I.value,
3422
+ checkAll: L.value,
3427
3423
  onSelectAll: de,
3428
3424
  onSortChange: Je,
3429
3425
  onFilterChange: Re,
3430
- onToggleFilterMenu: L
3426
+ onToggleFilterMenu: F
3431
3427
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3432
- ], 2)) : E("", !0)
3428
+ ], 2)) : M("", !0)
3433
3429
  ], 2),
3434
- c.value && s.enableloadinganimation ? (d(), p("div", {
3430
+ b.value && s.enableloadinganimation ? (c(), h("div", {
3435
3431
  key: 0,
3436
3432
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3437
3433
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3438
3434
  }, [
3439
3435
  te(s.$slots, "loadercontent")
3440
- ], 4)) : E("", !0),
3441
- !v.value && !c.value ? (d(), p("div", {
3436
+ ], 4)) : M("", !0),
3437
+ !u.value && !b.value ? (c(), h("div", {
3442
3438
  key: 1,
3443
3439
  class: "nodatacontent",
3444
3440
  style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
@@ -3446,7 +3442,7 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3446
3442
  te(s.$slots, "nodatacontent", {}, () => [
3447
3443
  k("span", null, B(e.noDataContent), 1)
3448
3444
  ])
3449
- ], 4)) : E("", !0)
3445
+ ], 4)) : M("", !0)
3450
3446
  ], 6)
3451
3447
  ], 4))
3452
3448
  ])
@@ -3457,16 +3453,16 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3457
3453
  ]),
3458
3454
  _: 3
3459
3455
  }, 8, ["style"]),
3460
- e.pagination && (v.value || e.alwaysShowPagination) ? (d(), p("div", {
3456
+ e.pagination && (u.value || e.alwaysShowPagination) ? (c(), h("div", {
3461
3457
  key: 0,
3462
- class: M(["bh-pagination", { "bh-pointer-events-none": c.value, "sticky-footer": e.stickyFooter }])
3458
+ class: I(["bh-pagination", { "bh-pointer-events-none": b.value, "sticky-footer": e.stickyFooter }])
3463
3459
  }, [
3464
3460
  k("div", es, [
3465
3461
  s.enablefooterpagination ? te(s.$slots, "footerpageinfo", {
3466
3462
  key: 0,
3467
3463
  paginationInfo: s.paginationInfo,
3468
- filterRowCount: v.value,
3469
- offset: S.value,
3464
+ filterRowCount: u.value,
3465
+ offset: x.value,
3470
3466
  limit: _.value,
3471
3467
  showPageSize: s.showPageSize,
3472
3468
  pageSizeOptions: s.pageSizeOptions,
@@ -3475,83 +3471,83 @@ const Xo = /* @__PURE__ */ Ue(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3475
3471
  setPageSize: pt
3476
3472
  }, () => [
3477
3473
  k("div", ts, [
3478
- k("span", ns, B(Ke(e.paginationInfo, v.value ? S.value : 0, _.value, v.value)), 1),
3479
- e.showPageSize ? ie((d(), p("select", {
3474
+ k("span", ns, B(Ke(e.paginationInfo, u.value ? x.value : 0, _.value, u.value)), 1),
3475
+ e.showPageSize ? ie((c(), h("select", {
3480
3476
  key: 0,
3481
- "onUpdate:modelValue": m[6] || (m[6] = (g) => r.value = g),
3477
+ "onUpdate:modelValue": v[6] || (v[6] = (y) => r.value = y),
3482
3478
  class: "bh-pagesize"
3483
3479
  }, [
3484
- (d(!0), p(D, null, oe(e.pageSizeOptions, (g) => (d(), p("option", {
3485
- value: g,
3486
- key: g
3487
- }, B(g), 9, ls))), 128))
3480
+ (c(!0), h(W, null, oe(e.pageSizeOptions, (y) => (c(), h("option", {
3481
+ value: y,
3482
+ key: y
3483
+ }, B(y), 9, ls))), 128))
3488
3484
  ], 512)), [
3489
3485
  [st, r.value]
3490
- ]) : E("", !0)
3486
+ ]) : M("", !0)
3491
3487
  ])
3492
- ]) : E("", !0),
3488
+ ]) : M("", !0),
3493
3489
  s.enablefooterpagination ? te(s.$slots, "footerpagination", {
3494
3490
  key: 1,
3495
3491
  currentPage: a.value,
3496
- maxPage: f.value,
3497
- paging: F.value,
3492
+ maxPage: d.value,
3493
+ paging: S.value,
3498
3494
  movePage: q,
3499
3495
  nextPage: Z,
3500
3496
  previousPage: T
3501
3497
  }, () => [
3502
3498
  k("div", os, [
3503
- e.showFirstPage ? (d(), p("button", {
3499
+ e.showFirstPage ? (c(), h("button", {
3504
3500
  key: 0,
3505
3501
  type: "button",
3506
- class: M(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3507
- onClick: m[7] || (m[7] = (g) => a.value = 1)
3502
+ class: I(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3503
+ onClick: v[7] || (v[7] = (y) => a.value = 1)
3508
3504
  }, [
3509
- e.firstArrow ? (d(), p("span", {
3505
+ e.firstArrow ? (c(), h("span", {
3510
3506
  key: 0,
3511
3507
  innerHTML: e.firstArrow
3512
- }, null, 8, is)) : (d(), p("svg", ss, as))
3513
- ], 2)) : E("", !0),
3508
+ }, null, 8, is)) : (c(), h("svg", ss, as))
3509
+ ], 2)) : M("", !0),
3514
3510
  k("button", {
3515
3511
  type: "button",
3516
- class: M(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3512
+ class: I(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3517
3513
  onClick: T
3518
3514
  }, [
3519
- e.previousArrow ? (d(), p("span", {
3515
+ e.previousArrow ? (c(), h("span", {
3520
3516
  key: 0,
3521
3517
  innerHTML: e.previousArrow
3522
- }, null, 8, us)) : (d(), p("svg", cs, fs))
3518
+ }, null, 8, us)) : (c(), h("svg", cs, fs))
3523
3519
  ], 2),
3524
- e.showNumbers ? (d(!0), p(D, { key: 1 }, oe(F.value, (g) => (d(), p("button", {
3525
- key: g,
3520
+ e.showNumbers ? (c(!0), h(W, { key: 1 }, oe(S.value, (y) => (c(), h("button", {
3521
+ key: y,
3526
3522
  type: "button",
3527
- class: M(["bh-page-item", { disabled: a.value === g, "bh-active": g === a.value }]),
3528
- onClick: ($) => q(g)
3529
- }, B(g), 11, hs))), 128)) : E("", !0),
3523
+ class: I(["bh-page-item", { disabled: a.value === y, "bh-active": y === a.value }]),
3524
+ onClick: ($) => q(y)
3525
+ }, B(y), 11, hs))), 128)) : M("", !0),
3530
3526
  k("button", {
3531
3527
  type: "button",
3532
- class: M(["bh-page-item next-page", { disabled: a.value >= f.value }]),
3528
+ class: I(["bh-page-item next-page", { disabled: a.value >= d.value }]),
3533
3529
  onClick: Z
3534
3530
  }, [
3535
- e.nextArrow ? (d(), p("span", {
3531
+ e.nextArrow ? (c(), h("span", {
3536
3532
  key: 0,
3537
3533
  innerHTML: e.nextArrow
3538
- }, null, 8, ps)) : (d(), p("svg", vs, bs))
3534
+ }, null, 8, ps)) : (c(), h("svg", vs, bs))
3539
3535
  ], 2),
3540
- e.showLastPage ? (d(), p("button", {
3536
+ e.showLastPage ? (c(), h("button", {
3541
3537
  key: 2,
3542
3538
  type: "button",
3543
- class: M(["bh-page-item last-page", { disabled: a.value >= f.value }]),
3544
- onClick: m[8] || (m[8] = (g) => a.value = f.value)
3539
+ class: I(["bh-page-item last-page", { disabled: a.value >= d.value }]),
3540
+ onClick: v[8] || (v[8] = (y) => a.value = d.value)
3545
3541
  }, [
3546
- e.lastArrow ? (d(), p("span", {
3542
+ e.lastArrow ? (c(), h("span", {
3547
3543
  key: 0,
3548
3544
  innerHTML: e.lastArrow
3549
- }, null, 8, gs)) : (d(), p("svg", ys, ks))
3550
- ], 2)) : E("", !0)
3545
+ }, null, 8, gs)) : (c(), h("svg", ys, ks))
3546
+ ], 2)) : M("", !0)
3551
3547
  ])
3552
- ]) : E("", !0)
3548
+ ]) : M("", !0)
3553
3549
  ])
3554
- ], 2)) : E("", !0)
3550
+ ], 2)) : M("", !0)
3555
3551
  ]));
3556
3552
  }
3557
3553
  });