@dolusoft/vue3-datatable 1.7.72 → 1.7.73

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