@dolusoft/vue3-datatable 1.7.78 → 1.7.80

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