@dolusoft/vue3-datatable 1.2.1 → 1.2.2

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,23 +1,23 @@
1
- import { defineComponent as fe, onBeforeUnmount as Yt, onMounted as yt, openBlock as d, createElementBlock as v, createElementVNode as m, withModifiers as le, normalizeClass as y, toDisplayString as $, Fragment as T, createCommentVNode as S, h as nt, toRef as Xt, ref as z, watch as W, createBlock as G, unref as H, createVNode as Q, renderList as J, normalizeStyle as wt, createTextVNode as Ie, withDirectives as ee, vModelText as Se, vModelSelect as kt, vShow as Zt, createStaticVNode as en, useSlots as tn, computed as se, vModelCheckbox as nn, renderSlot as ot } from "vue";
2
- const on = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1" }, ln = {
1
+ import { defineComponent as fe, onBeforeUnmount as Xt, onMounted as wt, openBlock as d, createElementBlock as v, createElementVNode as m, withModifiers as le, normalizeClass as y, toDisplayString as M, Fragment as T, createCommentVNode as S, h as ot, toRef as Zt, ref as O, watch as J, createBlock as K, unref as H, createVNode as W, renderList as G, normalizeStyle as kt, createTextVNode as Ie, withDirectives as ee, vModelText as Se, vModelSelect as Ct, vShow as en, useSlots as tn, computed as ie, vModelCheckbox as nn, renderSlot as lt, createStaticVNode as on } from "vue";
2
+ const ln = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1" }, sn = {
3
3
  name: "columnFilter"
4
- }, sn = /* @__PURE__ */ fe({
5
- ...ln,
4
+ }, rn = /* @__PURE__ */ fe({
5
+ ...sn,
6
6
  props: ["column", "columnFilterLang"],
7
7
  emits: ["close", "filterChange"],
8
8
  setup(e, { emit: o }) {
9
9
  const n = e;
10
- Yt(() => {
10
+ Xt(() => {
11
11
  document.removeEventListener("click", t);
12
- }), yt(() => {
12
+ }), wt(() => {
13
13
  document.addEventListener("click", t);
14
14
  });
15
15
  const l = o, t = () => {
16
16
  l("close");
17
- }, i = (a) => {
17
+ }, s = (a) => {
18
18
  n.column.condition = a, a === "" && (n.column.value = ""), l("filterChange", n.column);
19
19
  };
20
- return (a, s) => (d(), v("div", on, [
20
+ return (a, i) => (d(), v("div", ln, [
21
21
  m("div", {
22
22
  class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",
23
23
  onClick: le(t, ["stop"])
@@ -25,115 +25,115 @@ const on = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
25
25
  m("button", {
26
26
  type: "button",
27
27
  class: y({ active: n.column.condition === "" }),
28
- onClick: s[0] || (s[0] = (u) => i(""))
29
- }, $((n.columnFilterLang && n.columnFilterLang.no_filter) ?? "No filter"), 3),
28
+ onClick: i[0] || (i[0] = (u) => s(""))
29
+ }, M((n.columnFilterLang && n.columnFilterLang.no_filter) ?? "No filter"), 3),
30
30
  n.column.type === "string" ? (d(), v(T, { key: 0 }, [
31
31
  m("button", {
32
32
  type: "button",
33
33
  class: y({ active: n.column.condition === "contain" }),
34
- onClick: s[1] || (s[1] = (u) => i("contain"))
35
- }, $((n.columnFilterLang && n.columnFilterLang.contain) ?? "Contain"), 3),
34
+ onClick: i[1] || (i[1] = (u) => s("contain"))
35
+ }, M((n.columnFilterLang && n.columnFilterLang.contain) ?? "Contain"), 3),
36
36
  m("button", {
37
37
  type: "button",
38
38
  class: y({ active: n.column.condition === "not_contain" }),
39
- onClick: s[2] || (s[2] = (u) => i("not_contain"))
40
- }, $((n.columnFilterLang && n.columnFilterLang.not_contain) ?? "Not contain"), 3),
39
+ onClick: i[2] || (i[2] = (u) => s("not_contain"))
40
+ }, M((n.columnFilterLang && n.columnFilterLang.not_contain) ?? "Not contain"), 3),
41
41
  m("button", {
42
42
  type: "button",
43
43
  class: y({ active: n.column.condition === "equal" }),
44
- onClick: s[3] || (s[3] = (u) => i("equal"))
45
- }, $((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
44
+ onClick: i[3] || (i[3] = (u) => s("equal"))
45
+ }, M((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
46
46
  m("button", {
47
47
  type: "button",
48
48
  class: y({ active: n.column.condition === "not_equal" }),
49
- onClick: s[4] || (s[4] = (u) => i("not_equal"))
50
- }, $((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
49
+ onClick: i[4] || (i[4] = (u) => s("not_equal"))
50
+ }, M((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
51
51
  m("button", {
52
52
  type: "button",
53
53
  class: y({ active: n.column.condition === "start_with" }),
54
- onClick: s[5] || (s[5] = (u) => i("start_with"))
55
- }, $((n.columnFilterLang && n.columnFilterLang.start_with) ?? "Starts with"), 3),
54
+ onClick: i[5] || (i[5] = (u) => s("start_with"))
55
+ }, M((n.columnFilterLang && n.columnFilterLang.start_with) ?? "Starts with"), 3),
56
56
  m("button", {
57
57
  type: "button",
58
58
  class: y({ active: n.column.condition === "end_with" }),
59
- onClick: s[6] || (s[6] = (u) => i("end_with"))
60
- }, $((n.columnFilterLang && n.columnFilterLang.end_with) ?? "Ends with"), 3)
59
+ onClick: i[6] || (i[6] = (u) => s("end_with"))
60
+ }, M((n.columnFilterLang && n.columnFilterLang.end_with) ?? "Ends with"), 3)
61
61
  ], 64)) : n.column.type === "number" ? (d(), v(T, { key: 1 }, [
62
62
  m("button", {
63
63
  type: "button",
64
64
  class: y({ active: n.column.condition === "equal" }),
65
- onClick: s[7] || (s[7] = (u) => i("equal"))
66
- }, $((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
65
+ onClick: i[7] || (i[7] = (u) => s("equal"))
66
+ }, M((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
67
67
  m("button", {
68
68
  type: "button",
69
69
  class: y({ active: n.column.condition === "not_equal" }),
70
- onClick: s[8] || (s[8] = (u) => i("not_equal"))
71
- }, $((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
70
+ onClick: i[8] || (i[8] = (u) => s("not_equal"))
71
+ }, M((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
72
72
  m("button", {
73
73
  type: "button",
74
74
  class: y({ active: n.column.condition === "greater_than" }),
75
- onClick: s[9] || (s[9] = (u) => i("greater_than"))
76
- }, $((n.columnFilterLang && n.columnFilterLang.greater_than) ?? "Greater than"), 3),
75
+ onClick: i[9] || (i[9] = (u) => s("greater_than"))
76
+ }, M((n.columnFilterLang && n.columnFilterLang.greater_than) ?? "Greater than"), 3),
77
77
  m("button", {
78
78
  type: "button",
79
79
  class: y({ active: n.column.condition === "greater_than_equal" }),
80
- onClick: s[10] || (s[10] = (u) => i("greater_than_equal"))
81
- }, $((n.columnFilterLang && n.columnFilterLang.greater_than_equal) ?? "Greater than or equal"), 3),
80
+ onClick: i[10] || (i[10] = (u) => s("greater_than_equal"))
81
+ }, M((n.columnFilterLang && n.columnFilterLang.greater_than_equal) ?? "Greater than or equal"), 3),
82
82
  m("button", {
83
83
  type: "button",
84
84
  class: y({ active: n.column.condition === "less_than" }),
85
- onClick: s[11] || (s[11] = (u) => i("less_than"))
86
- }, $((n.columnFilterLang && n.columnFilterLang.less_than) ?? "Less than"), 3),
85
+ onClick: i[11] || (i[11] = (u) => s("less_than"))
86
+ }, M((n.columnFilterLang && n.columnFilterLang.less_than) ?? "Less than"), 3),
87
87
  m("button", {
88
88
  type: "button",
89
89
  class: y({ active: n.column.condition === "less_than_equal" }),
90
- onClick: s[12] || (s[12] = (u) => i("less_than_equal"))
91
- }, $((n.columnFilterLang && n.columnFilterLang.less_than_equal) ?? "Less than or equal"), 3)
90
+ onClick: i[12] || (i[12] = (u) => s("less_than_equal"))
91
+ }, M((n.columnFilterLang && n.columnFilterLang.less_than_equal) ?? "Less than or equal"), 3)
92
92
  ], 64)) : n.column.type === "date" ? (d(), v(T, { key: 2 }, [
93
93
  m("button", {
94
94
  type: "button",
95
95
  class: y({ active: n.column.condition === "equal" }),
96
- onClick: s[13] || (s[13] = (u) => i("equal"))
97
- }, $((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
96
+ onClick: i[13] || (i[13] = (u) => s("equal"))
97
+ }, M((n.columnFilterLang && n.columnFilterLang.equal) ?? "Equal"), 3),
98
98
  m("button", {
99
99
  type: "button",
100
100
  class: y({ active: n.column.condition === "not_equal" }),
101
- onClick: s[14] || (s[14] = (u) => i("not_equal"))
102
- }, $((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
101
+ onClick: i[14] || (i[14] = (u) => s("not_equal"))
102
+ }, M((n.columnFilterLang && n.columnFilterLang.not_equal) ?? "Not equal"), 3),
103
103
  m("button", {
104
104
  type: "button",
105
105
  class: y({ active: n.column.condition === "greater_than" }),
106
- onClick: s[15] || (s[15] = (u) => i("greater_than"))
107
- }, $((n.columnFilterLang && n.columnFilterLang.greater_than) ?? "Greater than"), 3),
106
+ onClick: i[15] || (i[15] = (u) => s("greater_than"))
107
+ }, M((n.columnFilterLang && n.columnFilterLang.greater_than) ?? "Greater than"), 3),
108
108
  m("button", {
109
109
  type: "button",
110
110
  class: y({ active: n.column.condition === "less_than" }),
111
- onClick: s[16] || (s[16] = (u) => i("less_than"))
112
- }, $((n.columnFilterLang && n.columnFilterLang.less_than) ?? "Less than"), 3)
111
+ onClick: i[16] || (i[16] = (u) => s("less_than"))
112
+ }, M((n.columnFilterLang && n.columnFilterLang.less_than) ?? "Less than"), 3)
113
113
  ], 64)) : S("", !0),
114
114
  m("button", {
115
115
  type: "button",
116
116
  class: y({ active: n.column.condition === "is_null" }),
117
- onClick: s[17] || (s[17] = (u) => i("is_null"))
118
- }, $((n.columnFilterLang && n.columnFilterLang.is_null) ?? "Is null"), 3),
117
+ onClick: i[17] || (i[17] = (u) => s("is_null"))
118
+ }, M((n.columnFilterLang && n.columnFilterLang.is_null) ?? "Is null"), 3),
119
119
  m("button", {
120
120
  type: "button",
121
121
  class: y({ active: n.column.condition === "is_not_null" }),
122
- onClick: s[18] || (s[18] = (u) => i("is_not_null"))
123
- }, $((n.columnFilterLang && n.columnFilterLang.is_not_null) ?? "Not null"), 3)
122
+ onClick: i[18] || (i[18] = (u) => s("is_not_null"))
123
+ }, M((n.columnFilterLang && n.columnFilterLang.is_not_null) ?? "Not null"), 3)
124
124
  ])
125
125
  ]));
126
126
  }
127
- }), de = (e, o) => {
127
+ }), we = (e, o) => {
128
128
  const n = e.__vccOpts || e;
129
129
  for (const [l, t] of o)
130
130
  n[l] = t;
131
131
  return n;
132
- }, rn = {}, an = {
132
+ }, an = {}, un = {
133
133
  version: "1.1",
134
134
  viewBox: "0 0 17 12",
135
135
  xmlns: "http://www.w3.org/2000/svg"
136
- }, un = /* @__PURE__ */ m("g", {
136
+ }, cn = /* @__PURE__ */ m("g", {
137
137
  fill: "none",
138
138
  "fill-rule": "evenodd"
139
139
  }, [
@@ -144,13 +144,13 @@ const on = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
144
144
  }, [
145
145
  /* @__PURE__ */ m("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" })
146
146
  ])
147
- ], -1), cn = [
148
- un
147
+ ], -1), fn = [
148
+ cn
149
149
  ];
150
- function fn(e, o) {
151
- return d(), v("svg", an, cn);
150
+ function dn(e, o) {
151
+ return d(), v("svg", un, fn);
152
152
  }
153
- const Ct = /* @__PURE__ */ de(rn, [["render", fn]]), dn = {}, hn = {
153
+ const _t = /* @__PURE__ */ we(an, [["render", dn]]), hn = {}, pn = {
154
154
  viewBox: "0 0 24 24",
155
155
  width: "24",
156
156
  height: "24",
@@ -160,18 +160,18 @@ const Ct = /* @__PURE__ */ de(rn, [["render", fn]]), dn = {}, hn = {
160
160
  "stroke-linecap": "round",
161
161
  "stroke-linejoin": "round",
162
162
  class: "css-i6dzq1"
163
- }, pn = /* @__PURE__ */ m("line", {
163
+ }, gn = /* @__PURE__ */ m("line", {
164
164
  x1: "5",
165
165
  y1: "12",
166
166
  x2: "19",
167
167
  y2: "12"
168
- }, null, -1), gn = [
169
- pn
168
+ }, null, -1), vn = [
169
+ gn
170
170
  ];
171
- function vn(e, o) {
172
- return d(), v("svg", hn, gn);
171
+ function mn(e, o) {
172
+ return d(), v("svg", pn, vn);
173
173
  }
174
- const mn = /* @__PURE__ */ de(dn, [["render", vn]]), bn = {}, yn = {
174
+ const bn = /* @__PURE__ */ we(hn, [["render", mn]]), yn = {}, wn = {
175
175
  viewBox: "0 0 24 24",
176
176
  width: "24",
177
177
  height: "24",
@@ -181,13 +181,13 @@ const mn = /* @__PURE__ */ de(dn, [["render", vn]]), bn = {}, yn = {
181
181
  "stroke-linecap": "round",
182
182
  "stroke-linejoin": "round",
183
183
  class: "css-i6dzq1"
184
- }, wn = /* @__PURE__ */ m("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), kn = [
185
- wn
184
+ }, kn = /* @__PURE__ */ m("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), Cn = [
185
+ kn
186
186
  ];
187
- function Cn(e, o) {
188
- return d(), v("svg", yn, kn);
187
+ function _n(e, o) {
188
+ return d(), v("svg", wn, Cn);
189
189
  }
190
- const _n = /* @__PURE__ */ de(bn, [["render", Cn]]), ae = /^[a-z0-9]+(-[a-z0-9]+)*$/, ke = (e, o, n, l = "") => {
190
+ const xn = /* @__PURE__ */ we(yn, [["render", _n]]), ae = /^[a-z0-9]+(-[a-z0-9]+)*$/, ke = (e, o, n, l = "") => {
191
191
  const t = e.split(":");
192
192
  if (e.slice(0, 1) === "@") {
193
193
  if (t.length < 2 || t.length > 3)
@@ -197,107 +197,107 @@ const _n = /* @__PURE__ */ de(bn, [["render", Cn]]), ae = /^[a-z0-9]+(-[a-z0-9]+
197
197
  if (t.length > 3 || !t.length)
198
198
  return null;
199
199
  if (t.length > 1) {
200
- const s = t.pop(), u = t.pop(), p = {
200
+ const i = t.pop(), u = t.pop(), p = {
201
201
  // Allow provider without '@': "provider:prefix:name"
202
202
  provider: t.length > 0 ? t[0] : l,
203
203
  prefix: u,
204
- name: s
204
+ name: i
205
205
  };
206
- return o && !me(p) ? null : p;
206
+ return o && !ve(p) ? null : p;
207
207
  }
208
- const i = t[0], a = i.split("-");
208
+ const s = t[0], a = s.split("-");
209
209
  if (a.length > 1) {
210
- const s = {
210
+ const i = {
211
211
  provider: l,
212
212
  prefix: a.shift(),
213
213
  name: a.join("-")
214
214
  };
215
- return o && !me(s) ? null : s;
215
+ return o && !ve(i) ? null : i;
216
216
  }
217
217
  if (n && l === "") {
218
- const s = {
218
+ const i = {
219
219
  provider: l,
220
220
  prefix: "",
221
- name: i
221
+ name: s
222
222
  };
223
- return o && !me(s, n) ? null : s;
223
+ return o && !ve(i, n) ? null : i;
224
224
  }
225
225
  return null;
226
- }, me = (e, o) => e ? !!((e.provider === "" || e.provider.match(ae)) && (o && e.prefix === "" || e.prefix.match(ae)) && e.name.match(ae)) : !1, _t = Object.freeze(
226
+ }, ve = (e, o) => e ? !!((e.provider === "" || e.provider.match(ae)) && (o && e.prefix === "" || e.prefix.match(ae)) && e.name.match(ae)) : !1, xt = Object.freeze(
227
227
  {
228
228
  left: 0,
229
229
  top: 0,
230
230
  width: 16,
231
231
  height: 16
232
232
  }
233
- ), we = Object.freeze({
233
+ ), ye = Object.freeze({
234
234
  rotate: 0,
235
235
  vFlip: !1,
236
236
  hFlip: !1
237
237
  }), Ce = Object.freeze({
238
- ..._t,
239
- ...we
240
- }), $e = Object.freeze({
238
+ ...xt,
239
+ ...ye
240
+ }), Me = Object.freeze({
241
241
  ...Ce,
242
242
  body: "",
243
243
  hidden: !1
244
244
  });
245
- function xn(e, o) {
245
+ function Sn(e, o) {
246
246
  const n = {};
247
247
  !e.hFlip != !o.hFlip && (n.hFlip = !0), !e.vFlip != !o.vFlip && (n.vFlip = !0);
248
248
  const l = ((e.rotate || 0) + (o.rotate || 0)) % 4;
249
249
  return l && (n.rotate = l), n;
250
250
  }
251
- function lt(e, o) {
252
- const n = xn(e, o);
253
- for (const l in $e)
254
- l in we ? l in e && !(l in n) && (n[l] = we[l]) : l in o ? n[l] = o[l] : l in e && (n[l] = e[l]);
251
+ function st(e, o) {
252
+ const n = Sn(e, o);
253
+ for (const l in Me)
254
+ l in ye ? l in e && !(l in n) && (n[l] = ye[l]) : l in o ? n[l] = o[l] : l in e && (n[l] = e[l]);
255
255
  return n;
256
256
  }
257
- function Sn(e, o) {
257
+ function Fn(e, o) {
258
258
  const n = e.icons, l = e.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
259
- function i(a) {
259
+ function s(a) {
260
260
  if (n[a])
261
261
  return t[a] = [];
262
262
  if (!(a in t)) {
263
263
  t[a] = null;
264
- const s = l[a] && l[a].parent, u = s && i(s);
265
- u && (t[a] = [s].concat(u));
264
+ const i = l[a] && l[a].parent, u = i && s(i);
265
+ u && (t[a] = [i].concat(u));
266
266
  }
267
267
  return t[a];
268
268
  }
269
- return (o || Object.keys(n).concat(Object.keys(l))).forEach(i), t;
269
+ return (o || Object.keys(n).concat(Object.keys(l))).forEach(s), t;
270
270
  }
271
- function Fn(e, o, n) {
271
+ function Ln(e, o, n) {
272
272
  const l = e.icons, t = e.aliases || /* @__PURE__ */ Object.create(null);
273
- let i = {};
274
- function a(s) {
275
- i = lt(
276
- l[s] || t[s],
277
- i
273
+ let s = {};
274
+ function a(i) {
275
+ s = st(
276
+ l[i] || t[i],
277
+ s
278
278
  );
279
279
  }
280
- return a(o), n.forEach(a), lt(e, i);
280
+ return a(o), n.forEach(a), st(e, s);
281
281
  }
282
- function xt(e, o) {
282
+ function St(e, o) {
283
283
  const n = [];
284
284
  if (typeof e != "object" || typeof e.icons != "object")
285
285
  return n;
286
286
  e.not_found instanceof Array && e.not_found.forEach((t) => {
287
287
  o(t, null), n.push(t);
288
288
  });
289
- const l = Sn(e);
289
+ const l = Fn(e);
290
290
  for (const t in l) {
291
- const i = l[t];
292
- i && (o(t, Fn(e, t, i)), n.push(t));
291
+ const s = l[t];
292
+ s && (o(t, Ln(e, t, s)), n.push(t));
293
293
  }
294
294
  return n;
295
295
  }
296
- const Ln = {
296
+ const In = {
297
297
  provider: "",
298
298
  aliases: {},
299
299
  not_found: {},
300
- ..._t
300
+ ...xt
301
301
  };
302
302
  function Fe(e, o) {
303
303
  for (const n in o)
@@ -305,34 +305,34 @@ function Fe(e, o) {
305
305
  return !1;
306
306
  return !0;
307
307
  }
308
- function St(e) {
308
+ function Ft(e) {
309
309
  if (typeof e != "object" || e === null)
310
310
  return null;
311
311
  const o = e;
312
- if (typeof o.prefix != "string" || !e.icons || typeof e.icons != "object" || !Fe(e, Ln))
312
+ if (typeof o.prefix != "string" || !e.icons || typeof e.icons != "object" || !Fe(e, In))
313
313
  return null;
314
314
  const n = o.icons;
315
315
  for (const t in n) {
316
- const i = n[t];
317
- if (!t.match(ae) || typeof i.body != "string" || !Fe(
318
- i,
319
- $e
316
+ const s = n[t];
317
+ if (!t.match(ae) || typeof s.body != "string" || !Fe(
318
+ s,
319
+ Me
320
320
  ))
321
321
  return null;
322
322
  }
323
323
  const l = o.aliases || /* @__PURE__ */ Object.create(null);
324
324
  for (const t in l) {
325
- const i = l[t], a = i.parent;
325
+ const s = l[t], a = s.parent;
326
326
  if (!t.match(ae) || typeof a != "string" || !n[a] && !l[a] || !Fe(
327
- i,
328
- $e
327
+ s,
328
+ Me
329
329
  ))
330
330
  return null;
331
331
  }
332
332
  return o;
333
333
  }
334
334
  const it = /* @__PURE__ */ Object.create(null);
335
- function In(e, o) {
335
+ function Mn(e, o) {
336
336
  return {
337
337
  provider: e,
338
338
  prefix: o,
@@ -342,10 +342,10 @@ function In(e, o) {
342
342
  }
343
343
  function te(e, o) {
344
344
  const n = it[e] || (it[e] = /* @__PURE__ */ Object.create(null));
345
- return n[o] || (n[o] = In(e, o));
345
+ return n[o] || (n[o] = Mn(e, o));
346
346
  }
347
- function Oe(e, o) {
348
- return St(o) ? xt(o, (n, l) => {
347
+ function ze(e, o) {
348
+ return Ft(o) ? St(o, (n, l) => {
349
349
  l ? e.icons[n] = l : e.missing.add(n);
350
350
  }) : [];
351
351
  }
@@ -358,81 +358,81 @@ function $n(e, o, n) {
358
358
  return !1;
359
359
  }
360
360
  let ue = !1;
361
- function Ft(e) {
361
+ function Lt(e) {
362
362
  return typeof e == "boolean" && (ue = e), ue;
363
363
  }
364
- function Mn(e) {
364
+ function An(e) {
365
365
  const o = typeof e == "string" ? ke(e, !0, ue) : e;
366
366
  if (o) {
367
367
  const n = te(o.provider, o.prefix), l = o.name;
368
368
  return n.icons[l] || (n.missing.has(l) ? null : void 0);
369
369
  }
370
370
  }
371
- function An(e, o) {
371
+ function qn(e, o) {
372
372
  const n = ke(e, !0, ue);
373
373
  if (!n)
374
374
  return !1;
375
375
  const l = te(n.provider, n.prefix);
376
376
  return $n(l, n.name, o);
377
377
  }
378
- function qn(e, o) {
378
+ function En(e, o) {
379
379
  if (typeof e != "object")
380
380
  return !1;
381
381
  if (typeof o != "string" && (o = e.provider || ""), ue && !o && !e.prefix) {
382
382
  let t = !1;
383
- return St(e) && (e.prefix = "", xt(e, (i, a) => {
384
- a && An(i, a) && (t = !0);
383
+ return Ft(e) && (e.prefix = "", St(e, (s, a) => {
384
+ a && qn(s, a) && (t = !0);
385
385
  })), t;
386
386
  }
387
387
  const n = e.prefix;
388
- if (!me({
388
+ if (!ve({
389
389
  provider: o,
390
390
  prefix: n,
391
391
  name: "a"
392
392
  }))
393
393
  return !1;
394
394
  const l = te(o, n);
395
- return !!Oe(l, e);
395
+ return !!ze(l, e);
396
396
  }
397
- const Lt = Object.freeze({
397
+ const It = Object.freeze({
398
398
  width: null,
399
399
  height: null
400
- }), It = Object.freeze({
400
+ }), Mt = Object.freeze({
401
401
  // Dimensions
402
- ...Lt,
402
+ ...It,
403
403
  // Transformations
404
- ...we
405
- }), En = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Tn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
406
- function st(e, o, n) {
404
+ ...ye
405
+ }), Tn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Pn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
406
+ function rt(e, o, n) {
407
407
  if (o === 1)
408
408
  return e;
409
409
  if (n = n || 100, typeof e == "number")
410
410
  return Math.ceil(e * o * n) / n;
411
411
  if (typeof e != "string")
412
412
  return e;
413
- const l = e.split(En);
413
+ const l = e.split(Tn);
414
414
  if (l === null || !l.length)
415
415
  return e;
416
416
  const t = [];
417
- let i = l.shift(), a = Tn.test(i);
417
+ let s = l.shift(), a = Pn.test(s);
418
418
  for (; ; ) {
419
419
  if (a) {
420
- const s = parseFloat(i);
421
- isNaN(s) ? t.push(i) : t.push(Math.ceil(s * o * n) / n);
420
+ const i = parseFloat(s);
421
+ isNaN(i) ? t.push(s) : t.push(Math.ceil(i * o * n) / n);
422
422
  } else
423
- t.push(i);
424
- if (i = l.shift(), i === void 0)
423
+ t.push(s);
424
+ if (s = l.shift(), s === void 0)
425
425
  return t.join("");
426
426
  a = !a;
427
427
  }
428
428
  }
429
- const Pn = (e) => e === "unset" || e === "undefined" || e === "none";
429
+ const zn = (e) => e === "unset" || e === "undefined" || e === "none";
430
430
  function On(e, o) {
431
431
  const n = {
432
432
  ...Ce,
433
433
  ...e
434
434
  }, l = {
435
- ...It,
435
+ ...Mt,
436
436
  ...o
437
437
  }, t = {
438
438
  left: n.left,
@@ -440,20 +440,20 @@ function On(e, o) {
440
440
  width: n.width,
441
441
  height: n.height
442
442
  };
443
- let i = n.body;
443
+ let s = n.body;
444
444
  [n, l].forEach((I) => {
445
445
  const x = [], w = I.hFlip, D = I.vFlip;
446
- let N = I.rotate;
447
- w ? D ? N += 2 : (x.push(
446
+ let R = I.rotate;
447
+ w ? D ? R += 2 : (x.push(
448
448
  "translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
449
449
  ), x.push("scale(-1 1)"), t.top = t.left = 0) : D && (x.push(
450
450
  "translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
451
451
  ), x.push("scale(1 -1)"), t.top = t.left = 0);
452
- let O;
453
- switch (N < 0 && (N -= Math.floor(N / 4) * 4), N = N % 4, N) {
452
+ let z;
453
+ switch (R < 0 && (R -= Math.floor(R / 4) * 4), R = R % 4, R) {
454
454
  case 1:
455
- O = t.height / 2 + t.top, x.unshift(
456
- "rotate(90 " + O.toString() + " " + O.toString() + ")"
455
+ z = t.height / 2 + t.top, x.unshift(
456
+ "rotate(90 " + z.toString() + " " + z.toString() + ")"
457
457
  );
458
458
  break;
459
459
  case 2:
@@ -462,52 +462,52 @@ function On(e, o) {
462
462
  );
463
463
  break;
464
464
  case 3:
465
- O = t.width / 2 + t.left, x.unshift(
466
- "rotate(-90 " + O.toString() + " " + O.toString() + ")"
465
+ z = t.width / 2 + t.left, x.unshift(
466
+ "rotate(-90 " + z.toString() + " " + z.toString() + ")"
467
467
  );
468
468
  break;
469
469
  }
470
- N % 2 === 1 && (t.left !== t.top && (O = t.left, t.left = t.top, t.top = O), t.width !== t.height && (O = t.width, t.width = t.height, t.height = O)), x.length && (i = '<g transform="' + x.join(" ") + '">' + i + "</g>");
470
+ R % 2 === 1 && (t.left !== t.top && (z = t.left, t.left = t.top, t.top = z), t.width !== t.height && (z = t.width, t.width = t.height, t.height = z)), x.length && (s = '<g transform="' + x.join(" ") + '">' + s + "</g>");
471
471
  });
472
- const a = l.width, s = l.height, u = t.width, p = t.height;
472
+ const a = l.width, i = l.height, u = t.width, p = t.height;
473
473
  let g, k;
474
- a === null ? (k = s === null ? "1em" : s === "auto" ? p : s, g = st(k, u / p)) : (g = a === "auto" ? u : a, k = s === null ? st(g, p / u) : s === "auto" ? p : s);
474
+ a === null ? (k = i === null ? "1em" : i === "auto" ? p : i, g = rt(k, u / p)) : (g = a === "auto" ? u : a, k = i === null ? rt(g, p / u) : i === "auto" ? p : i);
475
475
  const A = {}, F = (I, x) => {
476
- Pn(x) || (A[I] = x.toString());
476
+ zn(x) || (A[I] = x.toString());
477
477
  };
478
478
  return F("width", g), F("height", k), A.viewBox = t.left.toString() + " " + t.top.toString() + " " + u.toString() + " " + p.toString(), {
479
479
  attributes: A,
480
- body: i
480
+ body: s
481
481
  };
482
482
  }
483
- const zn = /\sid="(\S+)"/g, Bn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
483
+ const Bn = /\sid="(\S+)"/g, Nn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
484
484
  let Rn = 0;
485
- function Nn(e, o = Bn) {
485
+ function Dn(e, o = Nn) {
486
486
  const n = [];
487
487
  let l;
488
- for (; l = zn.exec(e); )
488
+ for (; l = Bn.exec(e); )
489
489
  n.push(l[1]);
490
490
  if (!n.length)
491
491
  return e;
492
492
  const t = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
493
- return n.forEach((i) => {
494
- const a = typeof o == "function" ? o(i) : o + (Rn++).toString(), s = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
493
+ return n.forEach((s) => {
494
+ const a = typeof o == "function" ? o(s) : o + (Rn++).toString(), i = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
495
495
  e = e.replace(
496
496
  // Allowed characters before id: [#;"]
497
497
  // Allowed characters after id: [)"], .[a-z]
498
- new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
498
+ new RegExp('([#;"])(' + i + ')([")]|\\.[a-z])', "g"),
499
499
  "$1" + a + t + "$3"
500
500
  );
501
501
  }), e = e.replace(new RegExp(t, "g"), ""), e;
502
502
  }
503
- const Me = /* @__PURE__ */ Object.create(null);
504
- function Dn(e, o) {
505
- Me[e] = o;
503
+ const $e = /* @__PURE__ */ Object.create(null);
504
+ function Hn(e, o) {
505
+ $e[e] = o;
506
506
  }
507
507
  function Ae(e) {
508
- return Me[e] || Me[""];
508
+ return $e[e] || $e[""];
509
509
  }
510
- function ze(e) {
510
+ function Oe(e) {
511
511
  let o;
512
512
  if (typeof e.resources == "string")
513
513
  o = [e.resources];
@@ -535,20 +535,20 @@ function ze(e) {
535
535
  const Be = /* @__PURE__ */ Object.create(null), re = [
536
536
  "https://api.simplesvg.com",
537
537
  "https://api.unisvg.com"
538
- ], be = [];
538
+ ], me = [];
539
539
  for (; re.length > 0; )
540
- re.length === 1 || Math.random() > 0.5 ? be.push(re.shift()) : be.push(re.pop());
541
- Be[""] = ze({
542
- resources: ["https://api.iconify.design"].concat(be)
540
+ re.length === 1 || Math.random() > 0.5 ? me.push(re.shift()) : me.push(re.pop());
541
+ Be[""] = Oe({
542
+ resources: ["https://api.iconify.design"].concat(me)
543
543
  });
544
- function Hn(e, o) {
545
- const n = ze(o);
544
+ function Vn(e, o) {
545
+ const n = Oe(o);
546
546
  return n === null ? !1 : (Be[e] = n, !0);
547
547
  }
548
- function Re(e) {
548
+ function Ne(e) {
549
549
  return Be[e];
550
550
  }
551
- const Vn = () => {
551
+ const jn = () => {
552
552
  let e;
553
553
  try {
554
554
  if (e = fetch, typeof e == "function")
@@ -556,9 +556,9 @@ const Vn = () => {
556
556
  } catch {
557
557
  }
558
558
  };
559
- let rt = Vn();
560
- function jn(e, o) {
561
- const n = Re(e);
559
+ let at = jn();
560
+ function Un(e, o) {
561
+ const n = Ne(e);
562
562
  if (!n)
563
563
  return 0;
564
564
  let l;
@@ -569,56 +569,56 @@ function jn(e, o) {
569
569
  n.resources.forEach((a) => {
570
570
  t = Math.max(t, a.length);
571
571
  });
572
- const i = o + ".json?icons=";
573
- l = n.maxURL - t - n.path.length - i.length;
572
+ const s = o + ".json?icons=";
573
+ l = n.maxURL - t - n.path.length - s.length;
574
574
  }
575
575
  return l;
576
576
  }
577
- function Un(e) {
577
+ function Qn(e) {
578
578
  return e === 404;
579
579
  }
580
- const Qn = (e, o, n) => {
581
- const l = [], t = jn(e, o), i = "icons";
580
+ const Kn = (e, o, n) => {
581
+ const l = [], t = Un(e, o), s = "icons";
582
582
  let a = {
583
- type: i,
583
+ type: s,
584
584
  provider: e,
585
585
  prefix: o,
586
586
  icons: []
587
- }, s = 0;
587
+ }, i = 0;
588
588
  return n.forEach((u, p) => {
589
- s += u.length + 1, s >= t && p > 0 && (l.push(a), a = {
590
- type: i,
589
+ i += u.length + 1, i >= t && p > 0 && (l.push(a), a = {
590
+ type: s,
591
591
  provider: e,
592
592
  prefix: o,
593
593
  icons: []
594
- }, s = u.length), a.icons.push(u);
594
+ }, i = u.length), a.icons.push(u);
595
595
  }), l.push(a), l;
596
596
  };
597
- function Kn(e) {
597
+ function Gn(e) {
598
598
  if (typeof e == "string") {
599
- const o = Re(e);
599
+ const o = Ne(e);
600
600
  if (o)
601
601
  return o.path;
602
602
  }
603
603
  return "/";
604
604
  }
605
- const Gn = (e, o, n) => {
606
- if (!rt) {
605
+ const Jn = (e, o, n) => {
606
+ if (!at) {
607
607
  n("abort", 424);
608
608
  return;
609
609
  }
610
- let l = Kn(o.provider);
610
+ let l = Gn(o.provider);
611
611
  switch (o.type) {
612
612
  case "icons": {
613
- const i = o.prefix, s = o.icons.join(","), u = new URLSearchParams({
614
- icons: s
613
+ const s = o.prefix, i = o.icons.join(","), u = new URLSearchParams({
614
+ icons: i
615
615
  });
616
- l += i + ".json?" + u.toString();
616
+ l += s + ".json?" + u.toString();
617
617
  break;
618
618
  }
619
619
  case "custom": {
620
- const i = o.uri;
621
- l += i.slice(0, 1) === "/" ? i.slice(1) : i;
620
+ const s = o.uri;
621
+ l += s.slice(0, 1) === "/" ? s.slice(1) : s;
622
622
  break;
623
623
  }
624
624
  default:
@@ -626,39 +626,39 @@ const Gn = (e, o, n) => {
626
626
  return;
627
627
  }
628
628
  let t = 503;
629
- rt(e + l).then((i) => {
630
- const a = i.status;
629
+ at(e + l).then((s) => {
630
+ const a = s.status;
631
631
  if (a !== 200) {
632
632
  setTimeout(() => {
633
- n(Un(a) ? "abort" : "next", a);
633
+ n(Qn(a) ? "abort" : "next", a);
634
634
  });
635
635
  return;
636
636
  }
637
- return t = 501, i.json();
638
- }).then((i) => {
639
- if (typeof i != "object" || i === null) {
637
+ return t = 501, s.json();
638
+ }).then((s) => {
639
+ if (typeof s != "object" || s === null) {
640
640
  setTimeout(() => {
641
- i === 404 ? n("abort", i) : n("next", t);
641
+ s === 404 ? n("abort", s) : n("next", t);
642
642
  });
643
643
  return;
644
644
  }
645
645
  setTimeout(() => {
646
- n("success", i);
646
+ n("success", s);
647
647
  });
648
648
  }).catch(() => {
649
649
  n("next", t);
650
650
  });
651
- }, Jn = {
652
- prepare: Qn,
653
- send: Gn
651
+ }, Wn = {
652
+ prepare: Kn,
653
+ send: Jn
654
654
  };
655
- function Wn(e) {
655
+ function Yn(e) {
656
656
  const o = {
657
657
  loaded: [],
658
658
  missing: [],
659
659
  pending: []
660
660
  }, n = /* @__PURE__ */ Object.create(null);
661
- e.sort((t, i) => t.provider !== i.provider ? t.provider.localeCompare(i.provider) : t.prefix !== i.prefix ? t.prefix.localeCompare(i.prefix) : t.name.localeCompare(i.name));
661
+ e.sort((t, s) => t.provider !== s.provider ? t.provider.localeCompare(s.provider) : t.prefix !== s.prefix ? t.prefix.localeCompare(s.prefix) : t.name.localeCompare(s.name));
662
662
  let l = {
663
663
  provider: "",
664
664
  prefix: "",
@@ -668,13 +668,13 @@ function Wn(e) {
668
668
  if (l.name === t.name && l.prefix === t.prefix && l.provider === t.provider)
669
669
  return;
670
670
  l = t;
671
- const i = t.provider, a = t.prefix, s = t.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), p = u[a] || (u[a] = te(i, a));
671
+ const s = t.provider, a = t.prefix, i = t.name, u = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), p = u[a] || (u[a] = te(s, a));
672
672
  let g;
673
- s in p.icons ? g = o.loaded : a === "" || p.missing.has(s) ? g = o.missing : g = o.pending;
673
+ i in p.icons ? g = o.loaded : a === "" || p.missing.has(i) ? g = o.missing : g = o.pending;
674
674
  const k = {
675
- provider: i,
675
+ provider: s,
676
676
  prefix: a,
677
- name: s
677
+ name: i
678
678
  };
679
679
  g.push(k);
680
680
  }), o;
@@ -685,7 +685,7 @@ function $t(e, o) {
685
685
  l && (n.loaderCallbacks = l.filter((t) => t.id !== o));
686
686
  });
687
687
  }
688
- function Yn(e) {
688
+ function Xn(e) {
689
689
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
690
690
  e.pendingCallbacksFlag = !1;
691
691
  const o = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -693,8 +693,8 @@ function Yn(e) {
693
693
  return;
694
694
  let n = !1;
695
695
  const l = e.provider, t = e.prefix;
696
- o.forEach((i) => {
697
- const a = i.icons, s = a.pending.length;
696
+ o.forEach((s) => {
697
+ const a = s.icons, i = a.pending.length;
698
698
  a.pending = a.pending.filter((u) => {
699
699
  if (u.prefix !== t)
700
700
  return !0;
@@ -714,38 +714,38 @@ function Yn(e) {
714
714
  else
715
715
  return n = !0, !0;
716
716
  return !1;
717
- }), a.pending.length !== s && (n || $t([e], i.id), i.callback(
717
+ }), a.pending.length !== i && (n || $t([e], s.id), s.callback(
718
718
  a.loaded.slice(0),
719
719
  a.missing.slice(0),
720
720
  a.pending.slice(0),
721
- i.abort
721
+ s.abort
722
722
  ));
723
723
  });
724
724
  }));
725
725
  }
726
- let Xn = 0;
727
- function Zn(e, o, n) {
728
- const l = Xn++, t = $t.bind(null, n, l);
726
+ let Zn = 0;
727
+ function eo(e, o, n) {
728
+ const l = Zn++, t = $t.bind(null, n, l);
729
729
  if (!o.pending.length)
730
730
  return t;
731
- const i = {
731
+ const s = {
732
732
  id: l,
733
733
  icons: o,
734
734
  callback: e,
735
735
  abort: t
736
736
  };
737
737
  return n.forEach((a) => {
738
- (a.loaderCallbacks || (a.loaderCallbacks = [])).push(i);
738
+ (a.loaderCallbacks || (a.loaderCallbacks = [])).push(s);
739
739
  }), t;
740
740
  }
741
- function eo(e, o = !0, n = !1) {
741
+ function to(e, o = !0, n = !1) {
742
742
  const l = [];
743
743
  return e.forEach((t) => {
744
- const i = typeof t == "string" ? ke(t, o, n) : t;
745
- i && l.push(i);
744
+ const s = typeof t == "string" ? ke(t, o, n) : t;
745
+ s && l.push(s);
746
746
  }), l;
747
747
  }
748
- var to = {
748
+ var no = {
749
749
  resources: [],
750
750
  index: 0,
751
751
  timeout: 2e3,
@@ -753,8 +753,8 @@ var to = {
753
753
  random: !1,
754
754
  dataAfterTimeout: !1
755
755
  };
756
- function no(e, o, n, l) {
757
- const t = e.resources.length, i = e.random ? Math.floor(Math.random() * t) : e.index;
756
+ function oo(e, o, n, l) {
757
+ const t = e.resources.length, s = e.random ? Math.floor(Math.random() * t) : e.index;
758
758
  let a;
759
759
  if (e.random) {
760
760
  let L = e.resources.slice(0);
@@ -764,8 +764,8 @@ function no(e, o, n, l) {
764
764
  }
765
765
  a = a.concat(L);
766
766
  } else
767
- a = e.resources.slice(i).concat(e.resources.slice(0, i));
768
- const s = Date.now();
767
+ a = e.resources.slice(s).concat(e.resources.slice(0, s));
768
+ const i = Date.now();
769
769
  let u = "pending", p = 0, g, k = null, A = [], F = [];
770
770
  typeof l == "function" && F.push(l);
771
771
  function I() {
@@ -781,7 +781,7 @@ function no(e, o, n, l) {
781
781
  }
782
782
  function D() {
783
783
  return {
784
- startTime: s,
784
+ startTime: i,
785
785
  payload: o,
786
786
  status: u,
787
787
  queriesSent: p,
@@ -790,19 +790,19 @@ function no(e, o, n, l) {
790
790
  abort: x
791
791
  };
792
792
  }
793
- function N() {
793
+ function R() {
794
794
  u = "failed", F.forEach((L) => {
795
795
  L(void 0, g);
796
796
  });
797
797
  }
798
- function O() {
798
+ function z() {
799
799
  A.forEach((L) => {
800
800
  L.status === "pending" && (L.status = "aborted");
801
801
  }), A = [];
802
802
  }
803
- function he(L, E, Y) {
803
+ function de(L, E, Y) {
804
804
  const q = E !== "success";
805
- switch (A = A.filter((R) => R !== L), u) {
805
+ switch (A = A.filter((N) => N !== L), u) {
806
806
  case "pending":
807
807
  break;
808
808
  case "failed":
@@ -813,19 +813,19 @@ function no(e, o, n, l) {
813
813
  return;
814
814
  }
815
815
  if (E === "abort") {
816
- g = Y, N();
816
+ g = Y, R();
817
817
  return;
818
818
  }
819
819
  if (q) {
820
- g = Y, A.length || (a.length ? V() : N());
820
+ g = Y, A.length || (a.length ? V() : R());
821
821
  return;
822
822
  }
823
- if (I(), O(), !e.random) {
824
- const R = e.resources.indexOf(L.resource);
825
- R !== -1 && R !== e.index && (e.index = R);
823
+ if (I(), z(), !e.random) {
824
+ const N = e.resources.indexOf(L.resource);
825
+ N !== -1 && N !== e.index && (e.index = N);
826
826
  }
827
- u = "completed", F.forEach((R) => {
828
- R(Y);
827
+ u = "completed", F.forEach((N) => {
828
+ N(Y);
829
829
  });
830
830
  }
831
831
  function V() {
@@ -836,37 +836,37 @@ function no(e, o, n, l) {
836
836
  if (L === void 0) {
837
837
  if (A.length) {
838
838
  k = setTimeout(() => {
839
- I(), u === "pending" && (O(), N());
839
+ I(), u === "pending" && (z(), R());
840
840
  }, e.timeout);
841
841
  return;
842
842
  }
843
- N();
843
+ R();
844
844
  return;
845
845
  }
846
846
  const E = {
847
847
  status: "pending",
848
848
  resource: L,
849
849
  callback: (Y, q) => {
850
- he(E, Y, q);
850
+ de(E, Y, q);
851
851
  }
852
852
  };
853
853
  A.push(E), p++, k = setTimeout(V, e.rotate), n(L, o, E.callback);
854
854
  }
855
855
  return setTimeout(V), D;
856
856
  }
857
- function Mt(e) {
857
+ function At(e) {
858
858
  const o = {
859
- ...to,
859
+ ...no,
860
860
  ...e
861
861
  };
862
862
  let n = [];
863
863
  function l() {
864
- n = n.filter((s) => s().status === "pending");
864
+ n = n.filter((i) => i().status === "pending");
865
865
  }
866
- function t(s, u, p) {
867
- const g = no(
866
+ function t(i, u, p) {
867
+ const g = oo(
868
868
  o,
869
- s,
869
+ i,
870
870
  u,
871
871
  (k, A) => {
872
872
  l(), p && p(k, A);
@@ -874,28 +874,28 @@ function Mt(e) {
874
874
  );
875
875
  return n.push(g), g;
876
876
  }
877
- function i(s) {
878
- return n.find((u) => s(u)) || null;
877
+ function s(i) {
878
+ return n.find((u) => i(u)) || null;
879
879
  }
880
880
  return {
881
881
  query: t,
882
- find: i,
883
- setIndex: (s) => {
884
- o.index = s;
882
+ find: s,
883
+ setIndex: (i) => {
884
+ o.index = i;
885
885
  },
886
886
  getIndex: () => o.index,
887
887
  cleanup: l
888
888
  };
889
889
  }
890
- function at() {
890
+ function ut() {
891
891
  }
892
892
  const Le = /* @__PURE__ */ Object.create(null);
893
- function oo(e) {
893
+ function lo(e) {
894
894
  if (!Le[e]) {
895
- const o = Re(e);
895
+ const o = Ne(e);
896
896
  if (!o)
897
897
  return;
898
- const n = Mt(o), l = {
898
+ const n = At(o), l = {
899
899
  config: o,
900
900
  redundancy: n
901
901
  };
@@ -903,119 +903,119 @@ function oo(e) {
903
903
  }
904
904
  return Le[e];
905
905
  }
906
- function lo(e, o, n) {
906
+ function so(e, o, n) {
907
907
  let l, t;
908
908
  if (typeof e == "string") {
909
- const i = Ae(e);
910
- if (!i)
911
- return n(void 0, 424), at;
912
- t = i.send;
913
- const a = oo(e);
909
+ const s = Ae(e);
910
+ if (!s)
911
+ return n(void 0, 424), ut;
912
+ t = s.send;
913
+ const a = lo(e);
914
914
  a && (l = a.redundancy);
915
915
  } else {
916
- const i = ze(e);
917
- if (i) {
918
- l = Mt(i);
919
- const a = e.resources ? e.resources[0] : "", s = Ae(a);
920
- s && (t = s.send);
916
+ const s = Oe(e);
917
+ if (s) {
918
+ l = At(s);
919
+ const a = e.resources ? e.resources[0] : "", i = Ae(a);
920
+ i && (t = i.send);
921
921
  }
922
922
  }
923
- return !l || !t ? (n(void 0, 424), at) : l.query(o, t, n)().abort;
923
+ return !l || !t ? (n(void 0, 424), ut) : l.query(o, t, n)().abort;
924
924
  }
925
- const ut = "iconify2", ce = "iconify", At = ce + "-count", ct = ce + "-version", qt = 36e5, io = 168;
925
+ const ct = "iconify2", ce = "iconify", qt = ce + "-count", ft = ce + "-version", Et = 36e5, io = 168;
926
926
  function qe(e, o) {
927
927
  try {
928
928
  return e.getItem(o);
929
929
  } catch {
930
930
  }
931
931
  }
932
- function Ne(e, o, n) {
932
+ function Re(e, o, n) {
933
933
  try {
934
934
  return e.setItem(o, n), !0;
935
935
  } catch {
936
936
  }
937
937
  }
938
- function ft(e, o) {
938
+ function dt(e, o) {
939
939
  try {
940
940
  e.removeItem(o);
941
941
  } catch {
942
942
  }
943
943
  }
944
944
  function Ee(e, o) {
945
- return Ne(e, At, o.toString());
945
+ return Re(e, qt, o.toString());
946
946
  }
947
947
  function Te(e) {
948
- return parseInt(qe(e, At)) || 0;
948
+ return parseInt(qe(e, qt)) || 0;
949
949
  }
950
950
  const _e = {
951
951
  local: !0,
952
952
  session: !0
953
- }, Et = {
953
+ }, Tt = {
954
954
  local: /* @__PURE__ */ new Set(),
955
955
  session: /* @__PURE__ */ new Set()
956
956
  };
957
957
  let De = !1;
958
- function so(e) {
958
+ function ro(e) {
959
959
  De = e;
960
960
  }
961
- let ve = typeof window > "u" ? {} : window;
962
- function Tt(e) {
961
+ let ge = typeof window > "u" ? {} : window;
962
+ function Pt(e) {
963
963
  const o = e + "Storage";
964
964
  try {
965
- if (ve && ve[o] && typeof ve[o].length == "number")
966
- return ve[o];
965
+ if (ge && ge[o] && typeof ge[o].length == "number")
966
+ return ge[o];
967
967
  } catch {
968
968
  }
969
969
  _e[e] = !1;
970
970
  }
971
- function Pt(e, o) {
972
- const n = Tt(e);
971
+ function zt(e, o) {
972
+ const n = Pt(e);
973
973
  if (!n)
974
974
  return;
975
- const l = qe(n, ct);
976
- if (l !== ut) {
975
+ const l = qe(n, ft);
976
+ if (l !== ct) {
977
977
  if (l) {
978
- const s = Te(n);
979
- for (let u = 0; u < s; u++)
980
- ft(n, ce + u.toString());
978
+ const i = Te(n);
979
+ for (let u = 0; u < i; u++)
980
+ dt(n, ce + u.toString());
981
981
  }
982
- Ne(n, ct, ut), Ee(n, 0);
982
+ Re(n, ft, ct), Ee(n, 0);
983
983
  return;
984
984
  }
985
- const t = Math.floor(Date.now() / qt) - io, i = (s) => {
986
- const u = ce + s.toString(), p = qe(n, u);
985
+ const t = Math.floor(Date.now() / Et) - io, s = (i) => {
986
+ const u = ce + i.toString(), p = qe(n, u);
987
987
  if (typeof p == "string") {
988
988
  try {
989
989
  const g = JSON.parse(p);
990
990
  if (typeof g == "object" && typeof g.cached == "number" && g.cached > t && typeof g.provider == "string" && typeof g.data == "object" && typeof g.data.prefix == "string" && // Valid item: run callback
991
- o(g, s))
991
+ o(g, i))
992
992
  return !0;
993
993
  } catch {
994
994
  }
995
- ft(n, u);
995
+ dt(n, u);
996
996
  }
997
997
  };
998
998
  let a = Te(n);
999
- for (let s = a - 1; s >= 0; s--)
1000
- i(s) || (s === a - 1 ? (a--, Ee(n, a)) : Et[e].add(s));
999
+ for (let i = a - 1; i >= 0; i--)
1000
+ s(i) || (i === a - 1 ? (a--, Ee(n, a)) : Tt[e].add(i));
1001
1001
  }
1002
1002
  function Ot() {
1003
1003
  if (!De) {
1004
- so(!0);
1004
+ ro(!0);
1005
1005
  for (const e in _e)
1006
- Pt(e, (o) => {
1007
- const n = o.data, l = o.provider, t = n.prefix, i = te(
1006
+ zt(e, (o) => {
1007
+ const n = o.data, l = o.provider, t = n.prefix, s = te(
1008
1008
  l,
1009
1009
  t
1010
1010
  );
1011
- if (!Oe(i, n).length)
1011
+ if (!ze(s, n).length)
1012
1012
  return !1;
1013
1013
  const a = n.lastModified || -1;
1014
- return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, a) : a, !0;
1014
+ return s.lastModifiedCached = s.lastModifiedCached ? Math.min(s.lastModifiedCached, a) : a, !0;
1015
1015
  });
1016
1016
  }
1017
1017
  }
1018
- function ro(e, o) {
1018
+ function ao(e, o) {
1019
1019
  const n = e.lastModifiedCached;
1020
1020
  if (
1021
1021
  // Matches or newer
@@ -1024,61 +1024,61 @@ function ro(e, o) {
1024
1024
  return n === o;
1025
1025
  if (e.lastModifiedCached = o, n)
1026
1026
  for (const l in _e)
1027
- Pt(l, (t) => {
1028
- const i = t.data;
1029
- return t.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === o;
1027
+ zt(l, (t) => {
1028
+ const s = t.data;
1029
+ return t.provider !== e.provider || s.prefix !== e.prefix || s.lastModified === o;
1030
1030
  });
1031
1031
  return !0;
1032
1032
  }
1033
- function ao(e, o) {
1033
+ function uo(e, o) {
1034
1034
  De || Ot();
1035
1035
  function n(l) {
1036
1036
  let t;
1037
- if (!_e[l] || !(t = Tt(l)))
1037
+ if (!_e[l] || !(t = Pt(l)))
1038
1038
  return;
1039
- const i = Et[l];
1039
+ const s = Tt[l];
1040
1040
  let a;
1041
- if (i.size)
1042
- i.delete(a = Array.from(i).shift());
1041
+ if (s.size)
1042
+ s.delete(a = Array.from(s).shift());
1043
1043
  else if (a = Te(t), !Ee(t, a + 1))
1044
1044
  return;
1045
- const s = {
1046
- cached: Math.floor(Date.now() / qt),
1045
+ const i = {
1046
+ cached: Math.floor(Date.now() / Et),
1047
1047
  provider: e.provider,
1048
1048
  data: o
1049
1049
  };
1050
- return Ne(
1050
+ return Re(
1051
1051
  t,
1052
1052
  ce + a.toString(),
1053
- JSON.stringify(s)
1053
+ JSON.stringify(i)
1054
1054
  );
1055
1055
  }
1056
- o.lastModified && !ro(e, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
1056
+ o.lastModified && !ao(e, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
1057
1057
  }
1058
- function dt() {
1058
+ function ht() {
1059
1059
  }
1060
- function uo(e) {
1060
+ function co(e) {
1061
1061
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1062
- e.iconsLoaderFlag = !1, Yn(e);
1062
+ e.iconsLoaderFlag = !1, Xn(e);
1063
1063
  }));
1064
1064
  }
1065
- function co(e, o) {
1065
+ function fo(e, o) {
1066
1066
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(o).sort() : e.iconsToLoad = o, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1067
1067
  e.iconsQueueFlag = !1;
1068
1068
  const { provider: n, prefix: l } = e, t = e.iconsToLoad;
1069
1069
  delete e.iconsToLoad;
1070
- let i;
1071
- if (!t || !(i = Ae(n)))
1070
+ let s;
1071
+ if (!t || !(s = Ae(n)))
1072
1072
  return;
1073
- i.prepare(n, l, t).forEach((s) => {
1074
- lo(n, s, (u) => {
1073
+ s.prepare(n, l, t).forEach((i) => {
1074
+ so(n, i, (u) => {
1075
1075
  if (typeof u != "object")
1076
- s.icons.forEach((p) => {
1076
+ i.icons.forEach((p) => {
1077
1077
  e.missing.add(p);
1078
1078
  });
1079
1079
  else
1080
1080
  try {
1081
- const p = Oe(
1081
+ const p = ze(
1082
1082
  e,
1083
1083
  u
1084
1084
  );
@@ -1087,17 +1087,17 @@ function co(e, o) {
1087
1087
  const g = e.pendingIcons;
1088
1088
  g && p.forEach((k) => {
1089
1089
  g.delete(k);
1090
- }), ao(e, u);
1090
+ }), uo(e, u);
1091
1091
  } catch (p) {
1092
1092
  console.error(p);
1093
1093
  }
1094
- uo(e);
1094
+ co(e);
1095
1095
  });
1096
1096
  });
1097
1097
  }));
1098
1098
  }
1099
- const fo = (e, o) => {
1100
- const n = eo(e, !0, Ft()), l = Wn(n);
1099
+ const ho = (e, o) => {
1100
+ const n = to(e, !0, Lt()), l = Yn(n);
1101
1101
  if (!l.pending.length) {
1102
1102
  let u = !0;
1103
1103
  return o && setTimeout(() => {
@@ -1105,42 +1105,42 @@ const fo = (e, o) => {
1105
1105
  l.loaded,
1106
1106
  l.missing,
1107
1107
  l.pending,
1108
- dt
1108
+ ht
1109
1109
  );
1110
1110
  }), () => {
1111
1111
  u = !1;
1112
1112
  };
1113
1113
  }
1114
- const t = /* @__PURE__ */ Object.create(null), i = [];
1115
- let a, s;
1114
+ const t = /* @__PURE__ */ Object.create(null), s = [];
1115
+ let a, i;
1116
1116
  return l.pending.forEach((u) => {
1117
1117
  const { provider: p, prefix: g } = u;
1118
- if (g === s && p === a)
1118
+ if (g === i && p === a)
1119
1119
  return;
1120
- a = p, s = g, i.push(te(p, g));
1120
+ a = p, i = g, s.push(te(p, g));
1121
1121
  const k = t[p] || (t[p] = /* @__PURE__ */ Object.create(null));
1122
1122
  k[g] || (k[g] = []);
1123
1123
  }), l.pending.forEach((u) => {
1124
1124
  const { provider: p, prefix: g, name: k } = u, A = te(p, g), F = A.pendingIcons || (A.pendingIcons = /* @__PURE__ */ new Set());
1125
1125
  F.has(k) || (F.add(k), t[p][g].push(k));
1126
- }), i.forEach((u) => {
1126
+ }), s.forEach((u) => {
1127
1127
  const { provider: p, prefix: g } = u;
1128
- t[p][g].length && co(u, t[p][g]);
1129
- }), o ? Zn(o, l, i) : dt;
1128
+ t[p][g].length && fo(u, t[p][g]);
1129
+ }), o ? eo(o, l, s) : ht;
1130
1130
  };
1131
- function ho(e, o) {
1131
+ function po(e, o) {
1132
1132
  const n = {
1133
1133
  ...e
1134
1134
  };
1135
1135
  for (const l in o) {
1136
- const t = o[l], i = typeof t;
1137
- l in Lt ? (t === null || t && (i === "string" || i === "number")) && (n[l] = t) : i === typeof n[l] && (n[l] = l === "rotate" ? t % 4 : t);
1136
+ const t = o[l], s = typeof t;
1137
+ l in It ? (t === null || t && (s === "string" || s === "number")) && (n[l] = t) : s === typeof n[l] && (n[l] = l === "rotate" ? t % 4 : t);
1138
1138
  }
1139
1139
  return n;
1140
1140
  }
1141
- const po = /[\s,]+/;
1142
- function go(e, o) {
1143
- o.split(po).forEach((n) => {
1141
+ const go = /[\s,]+/;
1142
+ function vo(e, o) {
1143
+ o.split(go).forEach((n) => {
1144
1144
  switch (n.trim()) {
1145
1145
  case "horizontal":
1146
1146
  e.hFlip = !0;
@@ -1151,7 +1151,7 @@ function go(e, o) {
1151
1151
  }
1152
1152
  });
1153
1153
  }
1154
- function vo(e, o = 0) {
1154
+ function mo(e, o = 0) {
1155
1155
  const n = e.replace(/^-?[0-9.]*/, "");
1156
1156
  function l(t) {
1157
1157
  for (; t < 0; )
@@ -1171,65 +1171,65 @@ function vo(e, o = 0) {
1171
1171
  t = 90;
1172
1172
  }
1173
1173
  if (t) {
1174
- let i = parseFloat(e.slice(0, e.length - n.length));
1175
- return isNaN(i) ? 0 : (i = i / t, i % 1 === 0 ? l(i) : 0);
1174
+ let s = parseFloat(e.slice(0, e.length - n.length));
1175
+ return isNaN(s) ? 0 : (s = s / t, s % 1 === 0 ? l(s) : 0);
1176
1176
  }
1177
1177
  }
1178
1178
  return o;
1179
1179
  }
1180
- function mo(e, o) {
1180
+ function bo(e, o) {
1181
1181
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1182
1182
  for (const l in o)
1183
1183
  n += " " + l + '="' + o[l] + '"';
1184
1184
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1185
1185
  }
1186
- function bo(e) {
1187
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1188
- }
1189
1186
  function yo(e) {
1190
- return "data:image/svg+xml," + bo(e);
1187
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1191
1188
  }
1192
1189
  function wo(e) {
1193
- return 'url("' + yo(e) + '")';
1190
+ return "data:image/svg+xml," + yo(e);
1194
1191
  }
1195
- const ht = {
1196
- ...It,
1192
+ function ko(e) {
1193
+ return 'url("' + wo(e) + '")';
1194
+ }
1195
+ const pt = {
1196
+ ...Mt,
1197
1197
  inline: !1
1198
- }, ko = {
1198
+ }, Co = {
1199
1199
  xmlns: "http://www.w3.org/2000/svg",
1200
1200
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1201
1201
  "aria-hidden": !0,
1202
1202
  role: "img"
1203
- }, Co = {
1203
+ }, _o = {
1204
1204
  display: "inline-block"
1205
1205
  }, Pe = {
1206
1206
  backgroundColor: "currentColor"
1207
- }, zt = {
1207
+ }, Bt = {
1208
1208
  backgroundColor: "transparent"
1209
- }, pt = {
1209
+ }, gt = {
1210
1210
  Image: "var(--svg)",
1211
1211
  Repeat: "no-repeat",
1212
1212
  Size: "100% 100%"
1213
- }, gt = {
1213
+ }, vt = {
1214
1214
  webkitMask: Pe,
1215
1215
  mask: Pe,
1216
- background: zt
1216
+ background: Bt
1217
1217
  };
1218
- for (const e in gt) {
1219
- const o = gt[e];
1220
- for (const n in pt)
1221
- o[e + n] = pt[n];
1218
+ for (const e in vt) {
1219
+ const o = vt[e];
1220
+ for (const n in gt)
1221
+ o[e + n] = gt[n];
1222
1222
  }
1223
- const ye = {};
1223
+ const be = {};
1224
1224
  ["horizontal", "vertical"].forEach((e) => {
1225
1225
  const o = e.slice(0, 1) + "Flip";
1226
- ye[e + "-flip"] = o, ye[e.slice(0, 1) + "-flip"] = o, ye[e + "Flip"] = o;
1226
+ be[e + "-flip"] = o, be[e.slice(0, 1) + "-flip"] = o, be[e + "Flip"] = o;
1227
1227
  });
1228
- function vt(e) {
1228
+ function mt(e) {
1229
1229
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1230
1230
  }
1231
- const mt = (e, o) => {
1232
- const n = ho(ht, o), l = { ...ko }, t = o.mode || "svg", i = {}, a = o.style, s = typeof a == "object" && !(a instanceof Array) ? a : {};
1231
+ const bt = (e, o) => {
1232
+ const n = po(pt, o), l = { ...Co }, t = o.mode || "svg", s = {}, a = o.style, i = typeof a == "object" && !(a instanceof Array) ? a : {};
1233
1233
  for (let x in o) {
1234
1234
  const w = o[x];
1235
1235
  if (w !== void 0)
@@ -1245,50 +1245,50 @@ const mt = (e, o) => {
1245
1245
  n[x] = w === !0 || w === "true" || w === 1;
1246
1246
  break;
1247
1247
  case "flip":
1248
- typeof w == "string" && go(n, w);
1248
+ typeof w == "string" && vo(n, w);
1249
1249
  break;
1250
1250
  case "color":
1251
- i.color = w;
1251
+ s.color = w;
1252
1252
  break;
1253
1253
  case "rotate":
1254
- typeof w == "string" ? n[x] = vo(w) : typeof w == "number" && (n[x] = w);
1254
+ typeof w == "string" ? n[x] = mo(w) : typeof w == "number" && (n[x] = w);
1255
1255
  break;
1256
1256
  case "ariaHidden":
1257
1257
  case "aria-hidden":
1258
1258
  w !== !0 && w !== "true" && delete l["aria-hidden"];
1259
1259
  break;
1260
1260
  default: {
1261
- const D = ye[x];
1262
- D ? (w === !0 || w === "true" || w === 1) && (n[D] = !0) : ht[x] === void 0 && (l[x] = w);
1261
+ const D = be[x];
1262
+ D ? (w === !0 || w === "true" || w === 1) && (n[D] = !0) : pt[x] === void 0 && (l[x] = w);
1263
1263
  }
1264
1264
  }
1265
1265
  }
1266
1266
  const u = On(e, n), p = u.attributes;
1267
- if (n.inline && (i.verticalAlign = "-0.125em"), t === "svg") {
1267
+ if (n.inline && (s.verticalAlign = "-0.125em"), t === "svg") {
1268
1268
  l.style = {
1269
- ...i,
1270
- ...s
1269
+ ...s,
1270
+ ...i
1271
1271
  }, Object.assign(l, p);
1272
1272
  let x = 0, w = o.id;
1273
- return typeof w == "string" && (w = w.replace(/-/g, "_")), l.innerHTML = Nn(u.body, w ? () => w + "ID" + x++ : "iconifyVue"), nt("svg", l);
1273
+ return typeof w == "string" && (w = w.replace(/-/g, "_")), l.innerHTML = Dn(u.body, w ? () => w + "ID" + x++ : "iconifyVue"), ot("svg", l);
1274
1274
  }
1275
- const { body: g, width: k, height: A } = e, F = t === "mask" || (t === "bg" ? !1 : g.indexOf("currentColor") !== -1), I = mo(g, {
1275
+ const { body: g, width: k, height: A } = e, F = t === "mask" || (t === "bg" ? !1 : g.indexOf("currentColor") !== -1), I = bo(g, {
1276
1276
  ...p,
1277
1277
  width: k + "",
1278
1278
  height: A + ""
1279
1279
  });
1280
1280
  return l.style = {
1281
- ...i,
1282
- "--svg": wo(I),
1283
- width: vt(p.width),
1284
- height: vt(p.height),
1285
- ...Co,
1286
- ...F ? Pe : zt,
1287
- ...s
1288
- }, nt("span", l);
1281
+ ...s,
1282
+ "--svg": ko(I),
1283
+ width: mt(p.width),
1284
+ height: mt(p.height),
1285
+ ..._o,
1286
+ ...F ? Pe : Bt,
1287
+ ...i
1288
+ }, ot("span", l);
1289
1289
  };
1290
- Ft(!0);
1291
- Dn("", Jn);
1290
+ Lt(!0);
1291
+ Hn("", Wn);
1292
1292
  if (typeof document < "u" && typeof window < "u") {
1293
1293
  Ot();
1294
1294
  const e = window;
@@ -1299,7 +1299,7 @@ if (typeof document < "u" && typeof window < "u") {
1299
1299
  // Check if item is an object and not null/array
1300
1300
  (typeof l != "object" || l === null || l instanceof Array || // Check for 'icons' and 'prefix'
1301
1301
  typeof l.icons != "object" || typeof l.prefix != "string" || // Add icon set
1302
- !qn(l)) && console.error(n);
1302
+ !En(l)) && console.error(n);
1303
1303
  } catch {
1304
1304
  console.error(n);
1305
1305
  }
@@ -1314,14 +1314,14 @@ if (typeof document < "u" && typeof window < "u") {
1314
1314
  const t = o[n];
1315
1315
  if (typeof t != "object" || !t || t.resources === void 0)
1316
1316
  continue;
1317
- Hn(n, t) || console.error(l);
1317
+ Vn(n, t) || console.error(l);
1318
1318
  } catch {
1319
1319
  console.error(l);
1320
1320
  }
1321
1321
  }
1322
1322
  }
1323
1323
  }
1324
- const _o = {
1324
+ const xo = {
1325
1325
  ...Ce,
1326
1326
  body: ""
1327
1327
  }, Z = fe({
@@ -1355,11 +1355,11 @@ const _o = {
1355
1355
  let n;
1356
1356
  if (typeof e != "string" || (n = ke(e, !1, !0)) === null)
1357
1357
  return this.abortLoading(), null;
1358
- const l = Mn(n);
1358
+ const l = An(n);
1359
1359
  if (!l)
1360
1360
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", l !== null && (this._loadingIcon = {
1361
1361
  name: e,
1362
- abort: fo([n], () => {
1362
+ abort: ho([n], () => {
1363
1363
  this.counter++;
1364
1364
  })
1365
1365
  })), null;
@@ -1373,77 +1373,77 @@ const _o = {
1373
1373
  this.counter;
1374
1374
  const e = this.$attrs, o = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
1375
1375
  if (!o)
1376
- return mt(_o, e);
1376
+ return bt(xo, e);
1377
1377
  let n = e;
1378
1378
  return o.classes && (n = {
1379
1379
  ...e,
1380
1380
  class: (typeof e.class == "string" ? e.class + " " : "") + o.classes.join(" ")
1381
- }), mt({
1381
+ }), bt({
1382
1382
  ...Ce,
1383
1383
  ...o.data
1384
1384
  }, n);
1385
1385
  }
1386
- }), xo = {
1386
+ }), So = {
1387
1387
  name: "buttonExpand"
1388
- }, So = /* @__PURE__ */ fe({
1389
- ...xo,
1388
+ }, Fo = /* @__PURE__ */ fe({
1389
+ ...So,
1390
1390
  props: {
1391
1391
  item: { default: [] },
1392
1392
  expandedrows: { default: () => [] },
1393
1393
  expandall: { type: Boolean, default: !1 }
1394
1394
  },
1395
1395
  setup(e) {
1396
- const o = e, n = Xt(o, "expandedrows"), l = z(!1);
1396
+ const o = e, n = Zt(o, "expandedrows"), l = O(!1);
1397
1397
  function t(a) {
1398
1398
  if (console.log(n.value), o.expandall)
1399
- l.value = !l.value, n.value.forEach((s) => {
1400
- s.isExpanded = l.value;
1399
+ l.value = !l.value, n.value.forEach((i) => {
1400
+ i.isExpanded = l.value;
1401
1401
  });
1402
1402
  else {
1403
- const s = n.value.find((u) => u.id == a);
1404
- s ? s.isExpanded = !s.isExpanded : n.value.push({ id: a, isExpanded: !0 });
1403
+ const i = n.value.find((u) => u.id == a);
1404
+ i ? i.isExpanded = !i.isExpanded : n.value.push({ id: a, isExpanded: !0 });
1405
1405
  }
1406
1406
  }
1407
- const i = z(-1);
1408
- return W(
1407
+ const s = O(-1);
1408
+ return J(
1409
1409
  () => n.value,
1410
- (a, s) => {
1410
+ (a, i) => {
1411
1411
  var u;
1412
- new Set(n.value.map((p) => p.isExpanded)).size > 1 ? (i.value = -1, l.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (i.value = 0, l.value = !0) : (i.value = 1, l.value = !1);
1412
+ new Set(n.value.map((p) => p.isExpanded)).size > 1 ? (s.value = -1, l.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (s.value = 0, l.value = !0) : (s.value = 1, l.value = !1);
1413
1413
  },
1414
1414
  { deep: !0 }
1415
- ), (a, s) => {
1415
+ ), (a, i) => {
1416
1416
  var u, p;
1417
1417
  return d(), v("button", {
1418
1418
  class: "expandbtn",
1419
- onClick: s[0] || (s[0] = (g) => t(a.item.id))
1419
+ onClick: i[0] || (i[0] = (g) => t(a.item.id))
1420
1420
  }, [
1421
1421
  (((u = n.value.find((g) => g.id == a.item.id)) == null ? void 0 : u.isExpanded) == null ? l.value : (p = n.value.find((g) => g.id == a.item.id)) != null && p.isExpanded) ? (d(), v(T, { key: 0 }, [
1422
1422
  o.expandall ? (d(), v(T, { key: 0 }, [
1423
- i.value ? (d(), G(H(Z), {
1423
+ s.value ? (d(), K(H(Z), {
1424
1424
  key: 0,
1425
1425
  icon: "fluent:chevron-down-up-16-filled"
1426
- })) : (d(), G(H(Z), {
1426
+ })) : (d(), K(H(Z), {
1427
1427
  key: 1,
1428
1428
  icon: "mdi:chevron-down"
1429
1429
  }))
1430
- ], 64)) : (d(), G(H(Z), {
1430
+ ], 64)) : (d(), K(H(Z), {
1431
1431
  key: 1,
1432
1432
  icon: "mdi:chevron-down"
1433
1433
  }))
1434
1434
  ], 64)) : (d(), v(T, { key: 1 }, [
1435
1435
  o.expandall ? (d(), v(T, { key: 0 }, [
1436
- i.value == -1 ? (d(), G(H(Z), {
1436
+ s.value == -1 ? (d(), K(H(Z), {
1437
1437
  key: 0,
1438
1438
  icon: "ion:chevron-expand"
1439
- })) : i.value == 0 ? (d(), G(H(Z), {
1439
+ })) : s.value == 0 ? (d(), K(H(Z), {
1440
1440
  key: 1,
1441
1441
  icon: "mdi:chevron-down"
1442
- })) : (d(), G(H(Z), {
1442
+ })) : (d(), K(H(Z), {
1443
1443
  key: 2,
1444
1444
  icon: "mdi:chevron-right"
1445
1445
  }))
1446
- ], 64)) : (d(), G(H(Z), {
1446
+ ], 64)) : (d(), K(H(Z), {
1447
1447
  key: 1,
1448
1448
  icon: "mdi:chevron-right"
1449
1449
  }))
@@ -1451,32 +1451,32 @@ const _o = {
1451
1451
  ]);
1452
1452
  };
1453
1453
  }
1454
- }), Bt = /* @__PURE__ */ de(So, [["__scopeId", "data-v-9a30837e"]]), Fo = { key: "hdrrow" }, Lo = { class: "bh-checkbox" }, Io = {
1454
+ }), Nt = /* @__PURE__ */ we(Fo, [["__scopeId", "data-v-9a30837e"]]), Lo = { key: "hdrrow" }, Io = { class: "bh-checkbox" }, Mo = {
1455
1455
  key: 1,
1456
1456
  class: "bh-w-px"
1457
- }, $o = ["onClick"], Mo = {
1457
+ }, $o = ["onClick"], Ao = {
1458
1458
  width: "16",
1459
1459
  height: "16",
1460
1460
  viewBox: "0 0 14 14",
1461
1461
  fill: "none"
1462
- }, Ao = {
1462
+ }, qo = {
1463
1463
  key: 0,
1464
1464
  class: "bh-filter bh-relative"
1465
- }, qo = ["onUpdate:modelValue"], Eo = ["onUpdate:modelValue"], To = ["onUpdate:modelValue"], Po = ["onUpdate:modelValue"], Oo = /* @__PURE__ */ m("option", { value: void 0 }, "All", -1), zo = /* @__PURE__ */ m("option", { value: !0 }, "True", -1), Bo = /* @__PURE__ */ m("option", { value: !1 }, "False", -1), Ro = [
1465
+ }, Eo = ["onUpdate:modelValue"], To = ["onUpdate:modelValue"], Po = ["onUpdate:modelValue"], zo = ["onUpdate:modelValue"], Oo = /* @__PURE__ */ m("option", { value: void 0 }, "All", -1), Bo = /* @__PURE__ */ m("option", { value: !0 }, "True", -1), No = /* @__PURE__ */ m("option", { value: !1 }, "False", -1), Ro = [
1466
1466
  Oo,
1467
- zo,
1468
- Bo
1469
- ], No = ["onClick"], Do = {
1467
+ Bo,
1468
+ No
1469
+ ], Do = ["onClick"], Ho = {
1470
1470
  name: "columnHeader"
1471
- }, bt = /* @__PURE__ */ fe({
1472
- ...Do,
1471
+ }, yt = /* @__PURE__ */ fe({
1472
+ ...Ho,
1473
1473
  props: ["all", "expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "isFooter", "checkAll", "columnFilterLang"],
1474
1474
  emits: ["selectAll", "sortChange", "filterChange", "toggleFilterMenu"],
1475
1475
  setup(e, { emit: o }) {
1476
- const n = z(null), l = e, t = o;
1477
- return W(() => l.checkAll, () => {
1476
+ const n = O(null), l = e, t = o;
1477
+ return J(() => l.checkAll, () => {
1478
1478
  n.value && (n.value.indeterminate = l.checkAll !== 0 ? !l.checkAll : !1, n.value.checked = l.checkAll);
1479
- }), (a, s) => (d(), v("tr", Fo, [
1479
+ }), (a, i) => (d(), v("tr", Lo, [
1480
1480
  l.all.hasCheckbox ? (d(), v("th", {
1481
1481
  key: "chkall",
1482
1482
  class: y(["bh-w-px", {
@@ -1485,27 +1485,27 @@ const _o = {
1485
1485
  "bh-left-0": l.all.stickyFirstColumn
1486
1486
  }])
1487
1487
  }, [
1488
- m("div", Lo, [
1488
+ m("div", Io, [
1489
1489
  m("input", {
1490
1490
  ref_key: "selectedAll",
1491
1491
  ref: n,
1492
1492
  type: "checkbox",
1493
- onClick: s[0] || (s[0] = le((u) => t("selectAll", u.target.checked), ["stop"]))
1493
+ onClick: i[0] || (i[0] = le((u) => t("selectAll", u.target.checked), ["stop"]))
1494
1494
  }, null, 512),
1495
1495
  m("div", null, [
1496
- Q(Ct, { class: "check" }),
1497
- Q(mn, { class: "intermediate" })
1496
+ W(_t, { class: "check" }),
1497
+ W(bn, { class: "intermediate" })
1498
1498
  ])
1499
1499
  ])
1500
1500
  ], 2)) : S("", !0),
1501
- l.all.hasSubtable ? (d(), v("th", Io, [
1502
- l.all.expandall ? (d(), G(Bt, {
1501
+ l.all.hasSubtable ? (d(), v("th", Mo, [
1502
+ l.all.expandall ? (d(), K(Nt, {
1503
1503
  key: 0,
1504
1504
  expandedrows: l.expandedrows,
1505
1505
  expandall: l.all.expandall
1506
1506
  }, null, 8, ["expandedrows", "expandall"])) : S("", !0)
1507
1507
  ])) : S("", !0),
1508
- (d(!0), v(T, null, J(l.all.columns, (u, p) => (d(), v(T, null, [
1508
+ (d(!0), v(T, null, G(l.all.columns, (u, p) => (d(), v(T, null, [
1509
1509
  u.hide ? S("", !0) : (d(), v("th", {
1510
1510
  key: u.field,
1511
1511
  class: y(["bh-select-none bh-z-[1]", [
@@ -1513,7 +1513,7 @@ const _o = {
1513
1513
  p === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
1514
1514
  l.all.hasCheckbox && p === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
1515
1515
  ]]),
1516
- style: wt({
1516
+ style: kt({
1517
1517
  width: u.width,
1518
1518
  "min-width": u.minWidth,
1519
1519
  "max-width": u.maxWidth
@@ -1523,12 +1523,12 @@ const _o = {
1523
1523
  class: y(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
1524
1524
  onClick: (g) => l.all.sortable && u.sort && t("sortChange", u.field)
1525
1525
  }, [
1526
- Ie($(u.title) + " ", 1),
1526
+ Ie(M(u.title) + " ", 1),
1527
1527
  l.all.sortable && u.sort ? (d(), v("span", {
1528
1528
  key: 0,
1529
1529
  class: y(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
1530
1530
  }, [
1531
- (d(), v("svg", Mo, [
1531
+ (d(), v("svg", Ao, [
1532
1532
  m("polygon", {
1533
1533
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
1534
1534
  fill: "currentColor",
@@ -1543,14 +1543,14 @@ const _o = {
1543
1543
  ], 2)) : S("", !0)
1544
1544
  ], 10, $o),
1545
1545
  l.all.columnFilter && !l.isFooter ? (d(), v(T, { key: 0 }, [
1546
- u.filter ? (d(), v("div", Ao, [
1546
+ u.filter ? (d(), v("div", qo, [
1547
1547
  u.type === "string" ? ee((d(), v("input", {
1548
1548
  key: 0,
1549
1549
  "onUpdate:modelValue": (g) => u.value = g,
1550
1550
  type: "text",
1551
1551
  class: "bh-form-control",
1552
- onKeyup: s[1] || (s[1] = (g) => t("filterChange"))
1553
- }, null, 40, qo)), [
1552
+ onKeyup: i[1] || (i[1] = (g) => t("filterChange"))
1553
+ }, null, 40, Eo)), [
1554
1554
  [
1555
1555
  Se,
1556
1556
  u.value,
@@ -1563,8 +1563,8 @@ const _o = {
1563
1563
  "onUpdate:modelValue": (g) => u.value = g,
1564
1564
  type: "number",
1565
1565
  class: "bh-form-control",
1566
- onKeyup: s[2] || (s[2] = (g) => t("filterChange"))
1567
- }, null, 40, Eo)), [
1566
+ onKeyup: i[2] || (i[2] = (g) => t("filterChange"))
1567
+ }, null, 40, To)), [
1568
1568
  [
1569
1569
  Se,
1570
1570
  u.value,
@@ -1579,34 +1579,34 @@ const _o = {
1579
1579
  "onUpdate:modelValue": (g) => u.value = g,
1580
1580
  type: "date",
1581
1581
  class: "bh-form-control",
1582
- onChange: s[3] || (s[3] = (g) => t("filterChange"))
1583
- }, null, 40, To)), [
1582
+ onChange: i[3] || (i[3] = (g) => t("filterChange"))
1583
+ }, null, 40, Po)), [
1584
1584
  [Se, u.value]
1585
1585
  ]) : u.type === "bool" ? ee((d(), v("select", {
1586
1586
  key: 3,
1587
1587
  "onUpdate:modelValue": (g) => u.value = g,
1588
1588
  class: "bh-form-control",
1589
- onChange: s[4] || (s[4] = (g) => t("filterChange")),
1590
- onClick: s[5] || (s[5] = //@ts-ignore
1589
+ onChange: i[4] || (i[4] = (g) => t("filterChange")),
1590
+ onClick: i[5] || (i[5] = //@ts-ignore
1591
1591
  (...g) => l.isOpenFilter && l.isOpenFilter(...g))
1592
- }, Ro, 40, Po)), [
1593
- [kt, u.value]
1592
+ }, Ro, 40, zo)), [
1593
+ [Ct, u.value]
1594
1594
  ]) : S("", !0),
1595
1595
  u.type !== "bool" ? (d(), v("button", {
1596
1596
  key: 4,
1597
1597
  type: "button",
1598
1598
  onClick: le((g) => t("toggleFilterMenu", u), ["stop"])
1599
1599
  }, [
1600
- Q(_n, { class: "bh-w-4" })
1601
- ], 8, No)) : S("", !0),
1602
- ee(Q(sn, {
1600
+ W(xn, { class: "bh-w-4" })
1601
+ ], 8, Do)) : S("", !0),
1602
+ ee(W(rn, {
1603
1603
  column: u,
1604
1604
  type: u.type,
1605
1605
  columnFilterLang: l.columnFilterLang,
1606
- onClose: s[6] || (s[6] = (g) => t("toggleFilterMenu", null)),
1607
- onFilterChange: s[7] || (s[7] = (g) => t("filterChange"))
1606
+ onClose: i[6] || (i[6] = (g) => t("toggleFilterMenu", null)),
1607
+ onFilterChange: i[7] || (i[7] = (g) => t("filterChange"))
1608
1608
  }, null, 8, ["column", "type", "columnFilterLang"]), [
1609
- [Zt, l.isOpenFilter === u.field]
1609
+ [en, l.isOpenFilter === u.field]
1610
1610
  ])
1611
1611
  ])) : S("", !0)
1612
1612
  ], 64)) : S("", !0)
@@ -1614,78 +1614,69 @@ const _o = {
1614
1614
  ], 64))), 256))
1615
1615
  ]));
1616
1616
  }
1617
- }), Ho = {}, Vo = {
1618
- width: "84",
1619
- height: "84",
1620
- viewBox: "0 0 24 24",
1621
- class: "bh-loader bh-text-primary"
1622
- }, jo = /* @__PURE__ */ en('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), Uo = [
1623
- jo
1624
- ];
1625
- function Qo(e, o) {
1626
- return d(), v("svg", Vo, Uo);
1627
- }
1628
- const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Jo = ["onClick"], Wo = { class: "bh-checkbox" }, Yo = ["value"], Xo = ["innerHTML"], Zo = ["onClick"], el = ["colspan"], tl = { key: 0 }, nl = ["colspan"], ol = ["colspan"], ll = /* @__PURE__ */ m("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), il = [
1629
- ll
1630
- ], sl = ["colspan"], rl = {
1617
+ }), Vo = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, jo = ["onClick"], Uo = { class: "bh-checkbox" }, Qo = ["value"], Ko = ["innerHTML"], Go = ["onClick"], Jo = ["colspan"], Wo = { key: 0 }, Yo = ["colspan"], Xo = ["colspan"], Zo = /* @__PURE__ */ m("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), el = [
1618
+ Zo
1619
+ ], tl = ["colspan"], nl = {
1631
1620
  key: 0,
1632
- class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center"
1633
- }, al = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, ul = { class: "bh-pagination-info bh-flex bh-items-center" }, cl = { class: "bh-mr-2" }, fl = ["value"], dl = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, hl = ["innerHTML"], pl = {
1621
+ class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading"
1622
+ }, ol = /* @__PURE__ */ on('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="62" stroke-dashoffset="62" d="M22 4V3C22 2.45 21.55 2 21 2H7C6.45 2 6 2.45 6 3V17C6 17.55 6.45 18 7 18H21C21.55 18 22 17.55 22 17z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="62;124"></animate></path><g stroke-dasharray="10" stroke-dashoffset="10"><path d="M10 6h8"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.7s" dur="0.2s" values="10;0"></animate></path><path d="M10 10h8"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.9s" dur="0.2s" values="10;0"></animate></path></g><path stroke-dasharray="7" stroke-dashoffset="7" d="M10 14h5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="1.1s" dur="0.2s" values="7;0"></animate></path><path stroke-dasharray="34" stroke-dashoffset="34" d="M2 6V21C2 21.55 2.45 22 3 22H18"><animate fill="freeze" attributeName="stroke-dashoffset" begin="1.4s" dur="0.4s" values="34;68"></animate></path></g>', 1), ll = [
1623
+ ol
1624
+ ], sl = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, il = { class: "bh-pagination-info bh-flex bh-items-center" }, rl = { class: "bh-mr-2" }, al = ["value"], ul = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, cl = ["innerHTML"], fl = {
1634
1625
  key: 1,
1635
1626
  "aria-hidden": "true",
1636
1627
  width: "14",
1637
1628
  height: "14",
1638
1629
  viewBox: "0 0 16 16"
1639
- }, gl = /* @__PURE__ */ m("g", {
1630
+ }, dl = /* @__PURE__ */ m("g", {
1640
1631
  fill: "currentColor",
1641
1632
  "fill-rule": "evenodd"
1642
1633
  }, [
1643
1634
  /* @__PURE__ */ m("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" }),
1644
1635
  /* @__PURE__ */ m("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" })
1645
- ], -1), vl = [
1646
- gl
1647
- ], ml = ["innerHTML"], bl = {
1636
+ ], -1), hl = [
1637
+ dl
1638
+ ], pl = ["innerHTML"], gl = {
1648
1639
  key: 1,
1649
1640
  "aria-hidden": "true",
1650
1641
  width: "14",
1651
1642
  height: "14",
1652
1643
  viewBox: "0 0 16 16"
1653
- }, yl = /* @__PURE__ */ m("path", {
1644
+ }, vl = /* @__PURE__ */ m("path", {
1654
1645
  fill: "currentColor",
1655
1646
  "fill-rule": "evenodd",
1656
1647
  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"
1657
- }, null, -1), wl = [
1658
- yl
1659
- ], kl = ["onClick"], Cl = ["innerHTML"], _l = {
1648
+ }, null, -1), ml = [
1649
+ vl
1650
+ ], bl = ["onClick"], yl = ["innerHTML"], wl = {
1660
1651
  key: 1,
1661
1652
  "aria-hidden": "true",
1662
1653
  width: "14",
1663
1654
  height: "14",
1664
1655
  viewBox: "0 0 16 16"
1665
- }, xl = /* @__PURE__ */ m("path", {
1656
+ }, kl = /* @__PURE__ */ m("path", {
1666
1657
  fill: "currentColor",
1667
1658
  "fill-rule": "evenodd",
1668
1659
  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"
1669
- }, null, -1), Sl = [
1670
- xl
1671
- ], Fl = ["innerHTML"], Ll = {
1660
+ }, null, -1), Cl = [
1661
+ kl
1662
+ ], _l = ["innerHTML"], xl = {
1672
1663
  key: 1,
1673
1664
  "aria-hidden": "true",
1674
1665
  width: "14",
1675
1666
  height: "14",
1676
1667
  viewBox: "0 0 16 16"
1677
- }, Il = /* @__PURE__ */ m("g", {
1668
+ }, Sl = /* @__PURE__ */ m("g", {
1678
1669
  fill: "currentColor",
1679
1670
  "fill-rule": "evenodd"
1680
1671
  }, [
1681
1672
  /* @__PURE__ */ m("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" }),
1682
1673
  /* @__PURE__ */ m("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" })
1683
- ], -1), $l = [
1684
- Il
1685
- ], Ml = {
1674
+ ], -1), Fl = [
1675
+ Sl
1676
+ ], Ll = {
1686
1677
  name: "Vue3Datatable"
1687
- }, Pl = /* @__PURE__ */ fe({
1688
- ...Ml,
1678
+ }, ql = /* @__PURE__ */ fe({
1679
+ ...Ll,
1689
1680
  props: {
1690
1681
  loading: { type: Boolean, default: !1 },
1691
1682
  isServerMode: { type: Boolean, default: !1 },
@@ -1729,31 +1720,31 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1729
1720
  },
1730
1721
  emits: ["change", "sortChange", "searchChange", "pageChange", "pageSizeChange", "rowSelect", "filterChange", "rowClick", "rowDBClick"],
1731
1722
  setup(e, { expose: o, emit: n }) {
1732
- var Xe, Ze;
1723
+ var Ze, et;
1733
1724
  const l = tn(), t = e;
1734
1725
  for (const r of t.columns || []) {
1735
- const f = ((Xe = r.type) == null ? void 0 : Xe.toLowerCase()) || "string";
1726
+ const f = ((Ze = r.type) == null ? void 0 : Ze.toLowerCase()) || "string";
1736
1727
  r.type = f, r.isUnique = r.isUnique !== void 0 ? r.isUnique : !1, r.hide = r.hide !== void 0 ? r.hide : !1, r.filter = r.filter !== void 0 ? r.filter : !0, r.search = r.search !== void 0 ? r.search : !0, r.sort = r.sort !== void 0 ? r.sort : !0, r.html = r.html !== void 0 ? r.html : !1, r.condition = !f || f === "string" ? "contain" : "equal";
1737
1728
  }
1738
- const i = z([]), a = z(t.page), s = z(t.pagination ? t.pageSize : (Ze = t.rows) == null ? void 0 : Ze.length), u = t.pageSize, p = z(t.sortColumn), g = t.sortColumn, k = z(t.sortDirection), A = t.sortDirection, F = z(t.totalRows), I = z([]), x = z(null), w = z(t.loading), D = z(t.search), N = JSON.parse(JSON.stringify(t.columns)), O = z(null), he = z(null);
1739
- let V = z(0);
1740
- const L = z(230);
1741
- yt(() => {
1742
- K();
1729
+ const s = O([]), a = O(t.page), i = O(t.pagination ? t.pageSize : (et = t.rows) == null ? void 0 : et.length), u = t.pageSize, p = O(t.sortColumn), g = t.sortColumn, k = O(t.sortDirection), A = t.sortDirection, F = O(t.totalRows), I = O([]), x = O(null), w = O(t.loading), D = O(t.search), R = JSON.parse(JSON.stringify(t.columns)), z = O(null), de = O(null);
1730
+ let V = O(0);
1731
+ const L = O(230);
1732
+ wt(() => {
1733
+ Q();
1743
1734
  });
1744
1735
  const E = n;
1745
1736
  o({
1746
1737
  reset() {
1747
- Ut();
1738
+ Qt();
1748
1739
  },
1749
1740
  getSelectedRows() {
1750
- return Qt();
1741
+ return Kt();
1751
1742
  },
1752
1743
  getColumnFilters() {
1753
- return Kt();
1744
+ return Gt();
1754
1745
  },
1755
1746
  clearSelectedRows() {
1756
- return Gt();
1747
+ return Jt();
1757
1748
  },
1758
1749
  selectRow(r) {
1759
1750
  We(r);
@@ -1762,51 +1753,51 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1762
1753
  Ye(r);
1763
1754
  },
1764
1755
  isRowSelected(r) {
1765
- return ge(r);
1756
+ return pe(r);
1766
1757
  },
1767
1758
  getFilteredRows() {
1768
1759
  return je();
1769
1760
  }
1770
1761
  });
1771
- const Y = (r, ...f) => r.replace(/{(\d+)}/g, (h, _) => typeof f[_] < "u" ? f[_] : h), q = se(() => {
1762
+ const Y = (r, ...f) => r.replace(/{(\d+)}/g, (h, _) => typeof f[_] < "u" ? f[_] : h), q = ie(() => {
1772
1763
  const r = t.columns.find((f) => f.isUnique);
1773
1764
  return (r == null ? void 0 : r.field) || null;
1774
- }), R = se(() => {
1775
- const r = s.value < 1 ? 1 : Math.ceil(F.value / s.value);
1765
+ }), N = ie(() => {
1766
+ const r = i.value < 1 ? 1 : Math.ceil(F.value / i.value);
1776
1767
  return Math.max(r || 0, 1);
1777
- }), He = se(() => (a.value - 1) * s.value + 1), Ve = se(() => {
1778
- const r = a.value * s.value;
1768
+ }), He = ie(() => (a.value - 1) * i.value + 1), Ve = ie(() => {
1769
+ const r = a.value * i.value;
1779
1770
  return F.value >= r ? r : F.value;
1780
- }), Rt = se(() => {
1771
+ }), Rt = ie(() => {
1781
1772
  let r, f;
1782
- return typeof t.showNumbersCount < "u" && t.showNumbersCount < R.value ? (r = Math.max(a.value - Math.floor(t.showNumbersCount / 2), 1), f = r + t.showNumbersCount - 1, f > R.value && (f = R.value, r = f - t.showNumbersCount + 1)) : (r = 1, f = R.value), Array.from(Array(f + 1 - r).keys()).map((B) => r + B);
1773
+ return typeof t.showNumbersCount < "u" && t.showNumbersCount < N.value ? (r = Math.max(a.value - Math.floor(t.showNumbersCount / 2), 1), f = r + t.showNumbersCount - 1, f > N.value && (f = N.value, r = f - t.showNumbersCount + 1)) : (r = 1, f = N.value), Array.from(Array(f + 1 - r).keys()).map((B) => r + B);
1783
1774
  }), je = () => {
1784
1775
  var B, P, U;
1785
1776
  let r = t.rows || [];
1786
1777
  if (!t.isServerMode) {
1787
1778
  if ((B = t.columns) == null || B.forEach((c) => {
1788
1779
  c.filter && (c.value !== void 0 && c.value !== null && c.value !== "" || c.condition === "is_null" || c.condition == "is_not_null") && (c.type === "string" ? (c.value && !c.condition && (c.condition = "contain"), c.condition === "contain" ? r = r.filter((b) => {
1789
- var M;
1790
- return (M = C(b, c.field)) == null ? void 0 : M.toString().toLowerCase().includes(c.value.toLowerCase());
1780
+ var $;
1781
+ return ($ = C(b, c.field)) == null ? void 0 : $.toString().toLowerCase().includes(c.value.toLowerCase());
1791
1782
  }) : c.condition === "not_contain" ? r = r.filter((b) => {
1792
- var M;
1793
- return !((M = C(b, c.field)) != null && M.toString().toLowerCase().includes(c.value.toLowerCase()));
1783
+ var $;
1784
+ return !(($ = C(b, c.field)) != null && $.toString().toLowerCase().includes(c.value.toLowerCase()));
1794
1785
  }) : c.condition === "equal" ? r = r.filter((b) => {
1795
- var M;
1796
- return ((M = C(b, c.field)) == null ? void 0 : M.toString().toLowerCase()) === c.value.toLowerCase();
1786
+ var $;
1787
+ return (($ = C(b, c.field)) == null ? void 0 : $.toString().toLowerCase()) === c.value.toLowerCase();
1797
1788
  }) : c.condition === "not_equal" ? r = r.filter((b) => {
1798
- var M;
1799
- return ((M = C(b, c.field)) == null ? void 0 : M.toString().toLowerCase()) !== c.value.toLowerCase();
1789
+ var $;
1790
+ return (($ = C(b, c.field)) == null ? void 0 : $.toString().toLowerCase()) !== c.value.toLowerCase();
1800
1791
  }) : c.condition == "start_with" ? r = r.filter((b) => {
1801
- var M;
1802
- return ((M = C(b, c.field)) == null ? void 0 : M.toString().toLowerCase().indexOf(c.value.toLowerCase())) === 0;
1792
+ var $;
1793
+ return (($ = C(b, c.field)) == null ? void 0 : $.toString().toLowerCase().indexOf(c.value.toLowerCase())) === 0;
1803
1794
  }) : c.condition == "end_with" && (r = r.filter((b) => {
1804
- var M;
1805
- return ((M = C(b, c.field)) == null ? void 0 : M.toString().toLowerCase().substr(c.value.length * -1)) === c.value.toLowerCase();
1806
- }))) : c.type === "number" ? (c.value && !c.condition && (c.condition = "equal"), c.condition === "equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) === parseFloat(c.value)) : c.condition === "not_equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) !== parseFloat(c.value)) : c.condition === "greater_than" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) > parseFloat(c.value)) : c.condition === "greater_than_equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) >= parseFloat(c.value)) : c.condition === "less_than" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) < parseFloat(c.value)) : c.condition === "less_than_equal" && (r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) <= parseFloat(c.value)))) : c.type === "date" ? (c.value && !c.condition && (c.condition = "equal"), c.condition === "equal" ? r = r.filter((b) => C(b, c.field) && pe(C(b, c.field)) === c.value) : c.condition === "not_equal" ? r = r.filter((b) => C(b, c.field) && pe(C(b, c.field)) !== c.value) : c.condition === "greater_than" ? r = r.filter((b) => C(b, c.field) && pe(C(b, c.field)) > c.value) : c.condition === "less_than" && (r = r.filter((b) => C(b, c.field) && pe(C(b, c.field)) < c.value))) : c.type === "bool" && (r = r.filter((b) => C(b, c.field) === c.value)), c.condition === "is_null" ? (r = r.filter((b) => C(b, c.field) == null || C(b, c.field) == ""), c.value = "") : c.condition === "is_not_null" && (c.value = "", r = r.filter((b) => C(b, c.field))));
1795
+ var $;
1796
+ return (($ = C(b, c.field)) == null ? void 0 : $.toString().toLowerCase().substr(c.value.length * -1)) === c.value.toLowerCase();
1797
+ }))) : c.type === "number" ? (c.value && !c.condition && (c.condition = "equal"), c.condition === "equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) === parseFloat(c.value)) : c.condition === "not_equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) !== parseFloat(c.value)) : c.condition === "greater_than" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) > parseFloat(c.value)) : c.condition === "greater_than_equal" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) >= parseFloat(c.value)) : c.condition === "less_than" ? r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) < parseFloat(c.value)) : c.condition === "less_than_equal" && (r = r.filter((b) => C(b, c.field) && parseFloat(C(b, c.field)) <= parseFloat(c.value)))) : c.type === "date" ? (c.value && !c.condition && (c.condition = "equal"), c.condition === "equal" ? r = r.filter((b) => C(b, c.field) && he(C(b, c.field)) === c.value) : c.condition === "not_equal" ? r = r.filter((b) => C(b, c.field) && he(C(b, c.field)) !== c.value) : c.condition === "greater_than" ? r = r.filter((b) => C(b, c.field) && he(C(b, c.field)) > c.value) : c.condition === "less_than" && (r = r.filter((b) => C(b, c.field) && he(C(b, c.field)) < c.value))) : c.type === "bool" && (r = r.filter((b) => C(b, c.field) === c.value)), c.condition === "is_null" ? (r = r.filter((b) => C(b, c.field) == null || C(b, c.field) == ""), c.value = "") : c.condition === "is_not_null" && (c.value = "", r = r.filter((b) => C(b, c.field))));
1807
1798
  }), D.value && (r != null && r.length)) {
1808
1799
  let c = [];
1809
- const b = (t.columns || []).filter((M) => M.search && !M.hide).map((M) => M.field);
1800
+ const b = (t.columns || []).filter(($) => $.search && !$.hide).map(($) => $.field);
1810
1801
  for (var f = 0; f < (r == null ? void 0 : r.length); f++)
1811
1802
  for (var h = 0; h < b.length; h++)
1812
1803
  if ((P = C(r[f], b[h])) != null && P.toString().toLowerCase().includes(D.value.toLowerCase())) {
@@ -1819,71 +1810,71 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1819
1810
  numeric: ((U = t.columns.find((c) => c.field == p.value)) == null ? void 0 : U.type) === "number",
1820
1811
  sensitivity: "base"
1821
1812
  });
1822
- const Jt = k.value === "desc" ? -1 : 1;
1813
+ const Wt = k.value === "desc" ? -1 : 1;
1823
1814
  r.sort((c, b) => {
1824
- var et, tt;
1825
- const M = (et = p.value) == null ? void 0 : et.split(".").reduce((X, xe) => X == null ? void 0 : X[xe], c), Wt = (tt = p.value) == null ? void 0 : tt.split(".").reduce((X, xe) => X == null ? void 0 : X[xe], b);
1826
- return _.compare(M, Wt) * Jt;
1815
+ var tt, nt;
1816
+ const $ = (tt = p.value) == null ? void 0 : tt.split(".").reduce((X, xe) => X == null ? void 0 : X[xe], c), Yt = (nt = p.value) == null ? void 0 : nt.split(".").reduce((X, xe) => X == null ? void 0 : X[xe], b);
1817
+ return _.compare($, Yt) * Wt;
1827
1818
  });
1828
1819
  }
1829
1820
  return r;
1830
- }, ie = z([]), K = () => {
1821
+ }, se = O([]), Q = () => {
1831
1822
  let r = [], f = je();
1832
1823
  t.isServerMode ? (F.value = t.totalRows || 0, r = f) : (F.value = (f == null ? void 0 : f.length) || 0, r = f.slice(He.value - 1, Ve.value)), t.hasSubtable && r.forEach(function(h) {
1833
- h.isExpanded != null && (ie.value.find((B) => B.id == h.id) || ie.value.push({ id: h.id, isExpanded: h.isExpanded }));
1834
- }), i.value = r || [];
1824
+ h.isExpanded != null && (se.value.find((B) => B.id == h.id) || se.value.push({ id: h.id, isExpanded: h.isExpanded }));
1825
+ }), s.value = r || [];
1835
1826
  };
1836
- W(
1827
+ J(
1837
1828
  () => t.loading,
1838
1829
  () => {
1839
1830
  w.value = t.loading;
1840
1831
  }
1841
1832
  );
1842
1833
  const Ue = (r) => {
1843
- r ? O.value === r.field ? O.value = null : O.value = r.field : O.value = null;
1844
- }, Nt = () => {
1834
+ r ? z.value === r.field ? z.value = null : z.value = r.field : z.value = null;
1835
+ }, Dt = () => {
1845
1836
  if (a.value == 1)
1846
1837
  return !1;
1847
1838
  a.value--;
1848
- }, Dt = (r) => {
1839
+ }, Ht = (r) => {
1849
1840
  a.value = r;
1850
- }, Ht = () => {
1851
- if (a.value >= R.value)
1841
+ }, Vt = () => {
1842
+ if (a.value >= N.value)
1852
1843
  return !1;
1853
1844
  a.value++;
1854
1845
  };
1855
- W(() => a.value, () => {
1856
- j(!1), t.isServerMode ? ne("page") : (K(), E("pageChange", a.value));
1857
- }), W(() => t.rows, () => {
1858
- t.isServerMode || (a.value = 1), j(!1), K();
1859
- }), W(() => s.value, () => {
1860
- j(!1), t.isServerMode ? a.value === 1 ? ne("pagesize", !0) : a.value = 1 : (a.value = 1, K(), E("pageSizeChange", s.value));
1846
+ J(() => a.value, () => {
1847
+ j(!1), t.isServerMode ? ne("page") : (Q(), E("pageChange", a.value));
1848
+ }), J(() => t.rows, () => {
1849
+ t.isServerMode || (a.value = 1), j(!1), Q();
1850
+ }), J(() => i.value, () => {
1851
+ j(!1), t.isServerMode ? a.value === 1 ? ne("pagesize", !0) : a.value = 1 : (a.value = 1, Q(), E("pageSizeChange", i.value));
1861
1852
  });
1862
1853
  const Qe = (r) => {
1863
1854
  let f = "asc";
1864
1855
  r == p.value && k.value === "asc" && (f = "desc");
1865
- let h = (a.value - 1) * s.value, _ = s.value;
1866
- p.value = r, k.value = f, j(!1), K(), t.isServerMode ? ne("sort") : E("sortChange", { offset: h, limit: _, field: r, direction: f });
1856
+ let h = (a.value - 1) * i.value, _ = i.value;
1857
+ p.value = r, k.value = f, j(!1), Q(), t.isServerMode ? ne("sort") : E("sortChange", { offset: h, limit: _, field: r, direction: f });
1867
1858
  }, Ke = (r) => {
1868
- x.value = r.length && i.value.length && r.length === i.value.length;
1869
- const f = i.value.filter((h, _) => I.value.includes(q.value ? h[q.value] : _));
1859
+ x.value = r.length && s.value.length && r.length === s.value.length;
1860
+ const f = s.value.filter((h, _) => I.value.includes(q.value ? h[q.value] : _));
1870
1861
  E("rowSelect", f);
1871
1862
  };
1872
- W(() => I.value, Ke);
1863
+ J(() => I.value, Ke);
1873
1864
  const j = (r) => {
1874
- r ? I.value = i.value.map((f, h) => q.value ? f[q.value] : h) : I.value = [];
1865
+ r ? I.value = s.value.map((f, h) => q.value ? f[q.value] : h) : I.value = [];
1875
1866
  }, Ge = () => {
1876
- j(!1), t.isServerMode ? a.value === 1 ? ne("filter", !0) : a.value = 1 : (a.value = 1, K(), E("filterChange", t.columns));
1877
- }, Vt = () => {
1878
- j(!1), t.isServerMode ? a.value === 1 ? ne("search", !0) : a.value = 1 : (a.value = 1, K(), E("searchChange", D.value));
1867
+ j(!1), t.isServerMode ? a.value === 1 ? ne("filter", !0) : a.value = 1 : (a.value = 1, Q(), E("filterChange", t.columns));
1868
+ }, jt = () => {
1869
+ j(!1), t.isServerMode ? a.value === 1 ? ne("search", !0) : a.value = 1 : (a.value = 1, Q(), E("searchChange", D.value));
1879
1870
  };
1880
- W(
1871
+ J(
1881
1872
  () => t.search,
1882
1873
  () => {
1883
- D.value = t.search, Vt();
1874
+ D.value = t.search, jt();
1884
1875
  }
1885
1876
  );
1886
- const C = (r, f) => f == null ? void 0 : f.split(".").reduce((h, _) => h == null ? void 0 : h[_], r), pe = (r) => {
1877
+ const C = (r, f) => f == null ? void 0 : f.split(".").reduce((h, _) => h == null ? void 0 : h[_], r), he = (r) => {
1887
1878
  try {
1888
1879
  if (!r)
1889
1880
  return "";
@@ -1893,16 +1884,16 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1893
1884
  }
1894
1885
  return "";
1895
1886
  }, Je = (r, f) => {
1896
- V.value++, V.value === 1 ? he.value = setTimeout(() => {
1897
- V.value = 0, t.selectRowOnClick && (ge(f) ? Ye(f) : We(f), Ke(I.value)), E("rowClick", r);
1898
- }, L.value) : V.value === 2 && (clearTimeout(he.value), V.value = 0, E("rowDBClick", r));
1887
+ V.value++, V.value === 1 ? de.value = setTimeout(() => {
1888
+ V.value = 0, t.selectRowOnClick && (pe(f) ? Ye(f) : We(f), Ke(I.value)), E("rowClick", r);
1889
+ }, L.value) : V.value === 2 && (clearTimeout(de.value), V.value = 0, E("rowDBClick", r));
1899
1890
  }, ne = (r, f = !1) => {
1900
1891
  if (t.isServerMode) {
1901
- jt();
1892
+ Ut();
1902
1893
  const h = {
1903
1894
  current_page: f ? 1 : a.value,
1904
- pagesize: s.value,
1905
- offset: (a.value - 1) * s.value,
1895
+ pagesize: i.value,
1896
+ offset: (a.value - 1) * i.value,
1906
1897
  sort_column: p.value,
1907
1898
  sort_direction: k.value,
1908
1899
  search: D.value,
@@ -1911,37 +1902,41 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1911
1902
  };
1912
1903
  E("change", h);
1913
1904
  }
1914
- }, jt = () => {
1905
+ }, Ut = () => {
1915
1906
  for (let r = 0; r < t.columns.length; r++) {
1916
1907
  let f = t.columns[r];
1917
1908
  f.filter && (f.value !== void 0 && f.value !== null && f.value !== "" || f.condition === "is_null" || f.condition === "is_not_null") && (f.type === "string" && f.value && !f.condition && (f.condition = "contain"), f.type === "number" && f.value && !f.condition && (f.condition = "equal"), f.type === "date" && f.value && !f.condition && (f.condition = "equal"));
1918
1909
  }
1919
- }, Ut = () => {
1910
+ }, Qt = () => {
1920
1911
  j(!1);
1921
1912
  for (let r = 0; r < t.columns.length; r++)
1922
- t.columns[r] = N[r];
1923
- D.value = "", s.value = u, p.value = g, k.value = A, t.isServerMode ? a.value === 1 ? ne("reset", !0) : a.value = 1 : (a.value = 1, K());
1924
- }, Qt = () => i.value.filter((f, h) => I.value.includes(q.value ? f[q.value] : h)), Kt = () => t.columns, Gt = () => {
1913
+ t.columns[r] = R[r];
1914
+ D.value = "", i.value = u, p.value = g, k.value = A, t.isServerMode ? a.value === 1 ? ne("reset", !0) : a.value = 1 : (a.value = 1, Q());
1915
+ }, Kt = () => s.value.filter((f, h) => I.value.includes(q.value ? f[q.value] : h)), Gt = () => t.columns, Jt = () => {
1925
1916
  I.value = [];
1926
1917
  }, We = (r) => {
1927
- if (!ge(r)) {
1928
- const f = i.value.find((h, _) => _ === r);
1918
+ if (!pe(r)) {
1919
+ const f = s.value.find((h, _) => _ === r);
1929
1920
  I.value.push(q.value ? f[q.value] : r);
1930
1921
  }
1931
1922
  }, Ye = (r) => {
1932
- if (ge(r)) {
1933
- const f = i.value.find((h, _) => _ === r);
1923
+ if (pe(r)) {
1924
+ const f = s.value.find((h, _) => _ === r);
1934
1925
  I.value = I.value.filter((h) => h !== (q.value ? f[q.value] : r));
1935
1926
  }
1936
- }, ge = (r) => {
1937
- const f = i.value.find((h, _) => _ === r);
1927
+ }, pe = (r) => {
1928
+ const f = s.value.find((h, _) => _ === r);
1938
1929
  return f ? I.value.includes(q.value ? f[q.value] : r) : !1;
1939
1930
  };
1940
1931
  let oe = 0;
1941
- return t.hasCheckbox && oe++, t.hasSubtable && oe++, console.log(t.footerRows), (r, f) => (d(), v("div", Go, [
1932
+ t.hasCheckbox && oe++, t.hasSubtable && oe++;
1933
+ const Xe = O(0);
1934
+ return setInterval(function() {
1935
+ Xe.value++;
1936
+ }, 2200), (r, f) => (d(), v("div", Vo, [
1942
1937
  m("div", {
1943
1938
  class: y(["bh-table-responsive", { "bh-min-h-[100px]": w.value }]),
1944
- style: wt({ height: t.stickyHeader && t.height })
1939
+ style: kt({ height: t.stickyHeader && t.height })
1945
1940
  }, [
1946
1941
  m("table", {
1947
1942
  class: y([t.skin])
@@ -1949,12 +1944,12 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1949
1944
  m("thead", {
1950
1945
  class: y({ "bh-sticky bh-top-0 bh-z-10": t.stickyHeader })
1951
1946
  }, [
1952
- Q(bt, {
1947
+ W(yt, {
1953
1948
  all: t,
1954
- expandedrows: ie.value,
1949
+ expandedrows: se.value,
1955
1950
  currentSortColumn: p.value,
1956
1951
  currentSortDirection: k.value,
1957
- isOpenFilter: O.value,
1952
+ isOpenFilter: z.value,
1958
1953
  checkAll: x.value,
1959
1954
  columnFilterLang: t.columnFilterLang,
1960
1955
  onSelectAll: j,
@@ -1964,7 +1959,7 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1964
1959
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
1965
1960
  ], 2),
1966
1961
  m("tbody", null, [
1967
- (d(!0), v(T, null, J(i.value, (h, _) => {
1962
+ (d(!0), v(T, null, G(s.value, (h, _) => {
1968
1963
  var B;
1969
1964
  return d(), v(T, {
1970
1965
  key: h[q.value] ? h[q.value] : _
@@ -1980,18 +1975,18 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
1980
1975
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
1981
1976
  })
1982
1977
  }, [
1983
- m("div", Wo, [
1978
+ m("div", Uo, [
1984
1979
  ee(m("input", {
1985
1980
  "onUpdate:modelValue": f[0] || (f[0] = (P) => I.value = P),
1986
1981
  type: "checkbox",
1987
1982
  value: h[q.value] ? h[q.value] : _,
1988
1983
  onClick: f[1] || (f[1] = le(() => {
1989
1984
  }, ["stop"]))
1990
- }, null, 8, Yo), [
1985
+ }, null, 8, Qo), [
1991
1986
  [nn, I.value]
1992
1987
  ]),
1993
1988
  m("div", null, [
1994
- Q(Ct, { class: "check" })
1989
+ W(_t, { class: "check" })
1995
1990
  ])
1996
1991
  ])
1997
1992
  ], 2)) : S("", !0),
@@ -2001,12 +1996,12 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2001
1996
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2002
1997
  })
2003
1998
  }, [
2004
- Q(Bt, {
1999
+ W(Nt, {
2005
2000
  item: h,
2006
- expandedrows: ie.value
2001
+ expandedrows: se.value
2007
2002
  }, null, 8, ["item", "expandedrows"])
2008
2003
  ], 2)) : S("", !0),
2009
- (d(!0), v(T, null, J(t.columns, (P, U) => (d(), v(T, null, [
2004
+ (d(!0), v(T, null, G(t.columns, (P, U) => (d(), v(T, null, [
2010
2005
  P.hide ? S("", !0) : (d(), v("td", {
2011
2006
  key: P.field,
2012
2007
  class: y([
@@ -2016,19 +2011,19 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2016
2011
  P.cellClass ? P.cellClass : ""
2017
2012
  ])
2018
2013
  }, [
2019
- H(l)[P.field] ? ot(r.$slots, P.field, {
2014
+ H(l)[P.field] ? lt(r.$slots, P.field, {
2020
2015
  key: 0,
2021
2016
  value: h
2022
2017
  }) : P.cellRenderer ? (d(), v("div", {
2023
2018
  key: 1,
2024
2019
  innerHTML: P.cellRenderer(h)
2025
- }, null, 8, Xo)) : (d(), v(T, { key: 2 }, [
2026
- Ie($(C(h, P.field)), 1)
2020
+ }, null, 8, Ko)) : (d(), v(T, { key: 2 }, [
2021
+ Ie(M(C(h, P.field)), 1)
2027
2022
  ], 64))
2028
2023
  ], 2))
2029
2024
  ], 64))), 256))
2030
- ], 10, Jo)) : S("", !0),
2031
- (B = ie.value.find((P) => P.id == h.id)) != null && B.isExpanded && t.hasSubtable ? (d(), v("tr", {
2025
+ ], 10, jo)) : S("", !0),
2026
+ (B = se.value.find((P) => P.id == h.id)) != null && B.isExpanded && t.hasSubtable ? (d(), v("tr", {
2032
2027
  key: 1,
2033
2028
  class: y([typeof t.rowClass == "function" ? r.rowClass(h) : t.rowClass, t.selectRowOnClick ? "bh-cursor-pointer" : ""]),
2034
2029
  onClick: le((P) => Je(h, _), ["prevent"])
@@ -2036,30 +2031,30 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2036
2031
  m("td", {
2037
2032
  colspan: t.columns.length + H(oe)
2038
2033
  }, [
2039
- ot(r.$slots, "tsub", { value: i.value })
2040
- ], 8, el)
2041
- ], 10, Zo)) : S("", !0)
2034
+ lt(r.$slots, "tsub", { value: s.value })
2035
+ ], 8, Jo)
2036
+ ], 10, Go)) : S("", !0)
2042
2037
  ], 64);
2043
2038
  }), 128)),
2044
- !F.value && !w.value ? (d(), v("tr", tl, [
2039
+ !F.value && !w.value ? (d(), v("tr", Wo, [
2045
2040
  m("td", {
2046
2041
  colspan: t.columns.length + H(oe)
2047
- }, $(t.noDataContent), 9, nl)
2042
+ }, M(t.noDataContent), 9, Yo)
2048
2043
  ])) : S("", !0),
2049
- !F.value && w.value ? (d(!0), v(T, { key: 1 }, J(t.pageSize, (h) => (d(), v("tr", {
2044
+ !F.value && w.value ? (d(!0), v(T, { key: 1 }, G(t.pageSize, (h) => (d(), v("tr", {
2050
2045
  key: h,
2051
2046
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
2052
2047
  }, [
2053
2048
  m("td", {
2054
2049
  colspan: t.columns.length + H(oe),
2055
2050
  class: "!bh-p-0 !bh-border-transparent"
2056
- }, il, 8, ol)
2051
+ }, el, 8, Xo)
2057
2052
  ]))), 128)) : S("", !0),
2058
- F.value ? (d(!0), v(T, { key: 2 }, J(t.footerRows, (h, _) => (d(), v("tr", {
2053
+ F.value ? (d(!0), v(T, { key: 2 }, G(t.footerRows, (h, _) => (d(), v("tr", {
2059
2054
  key: h[q.value] ? h[q.value] : _
2060
2055
  }, [
2061
- m("td", { colspan: H(oe) }, null, 8, sl),
2062
- (d(!0), v(T, null, J(t.columns, (B, P) => (d(), v(T, null, [
2056
+ m("td", { colspan: H(oe) }, null, 8, tl),
2057
+ (d(!0), v(T, null, G(t.columns, (B, P) => (d(), v(T, null, [
2063
2058
  B.hide ? S("", !0) : (d(), v("td", {
2064
2059
  key: B.field,
2065
2060
  class: y([
@@ -2070,7 +2065,7 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2070
2065
  ])
2071
2066
  }, [
2072
2067
  h.cells.find((U) => U.field == B.field) ? (d(), v(T, { key: 0 }, [
2073
- Ie($(h.cells.find((U) => U.field == B.field).text), 1)
2068
+ Ie(M(h.cells.find((U) => U.field == B.field).text), 1)
2074
2069
  ], 64)) : S("", !0)
2075
2070
  ], 2))
2076
2071
  ], 64))), 256))
@@ -2080,11 +2075,11 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2080
2075
  key: 0,
2081
2076
  class: y({ "bh-sticky bh-bottom-0": t.stickyHeader })
2082
2077
  }, [
2083
- Q(bt, {
2078
+ W(yt, {
2084
2079
  all: t,
2085
2080
  currentSortColumn: p.value,
2086
2081
  currentSortDirection: k.value,
2087
- isOpenFilter: O.value,
2082
+ isOpenFilter: z.value,
2088
2083
  isFooter: !0,
2089
2084
  checkAll: x.value,
2090
2085
  onSelectAll: j,
@@ -2094,31 +2089,37 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2094
2089
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
2095
2090
  ], 2)) : S("", !0)
2096
2091
  ], 2),
2097
- F.value && w.value ? (d(), v("div", rl, [
2098
- Q(Ko)
2092
+ F.value && w.value ? (d(), v("div", nl, [
2093
+ (d(), v("svg", {
2094
+ key: Xe.value,
2095
+ xmlns: "http://www.w3.org/2000/svg",
2096
+ width: "32",
2097
+ height: "32",
2098
+ viewBox: "0 0 24 24"
2099
+ }, ll))
2099
2100
  ])) : S("", !0)
2100
2101
  ], 6),
2101
2102
  t.pagination && F.value ? (d(), v("div", {
2102
2103
  key: 0,
2103
2104
  class: y(["bh-pagination bh-py-5", { "bh-pointer-events-none": w.value }])
2104
2105
  }, [
2105
- m("div", al, [
2106
- m("div", ul, [
2107
- m("span", cl, $(Y(t.paginationInfo, F.value ? He.value : 0, Ve.value, F.value)), 1),
2106
+ m("div", sl, [
2107
+ m("div", il, [
2108
+ m("span", rl, M(Y(t.paginationInfo, F.value ? He.value : 0, Ve.value, F.value)), 1),
2108
2109
  t.showPageSize ? ee((d(), v("select", {
2109
2110
  key: 0,
2110
- "onUpdate:modelValue": f[2] || (f[2] = (h) => s.value = h),
2111
+ "onUpdate:modelValue": f[2] || (f[2] = (h) => i.value = h),
2111
2112
  class: "bh-pagesize"
2112
2113
  }, [
2113
- (d(!0), v(T, null, J(t.pageSizeOptions, (h) => (d(), v("option", {
2114
+ (d(!0), v(T, null, G(t.pageSizeOptions, (h) => (d(), v("option", {
2114
2115
  value: h,
2115
2116
  key: h
2116
- }, $(h), 9, fl))), 128))
2117
+ }, M(h), 9, al))), 128))
2117
2118
  ], 512)), [
2118
- [kt, s.value]
2119
+ [Ct, i.value]
2119
2120
  ]) : S("", !0)
2120
2121
  ]),
2121
- m("div", dl, [
2122
+ m("div", ul, [
2122
2123
  t.showFirstPage ? (d(), v("button", {
2123
2124
  key: 0,
2124
2125
  type: "button",
@@ -2128,47 +2129,47 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2128
2129
  t.firstArrow ? (d(), v("span", {
2129
2130
  key: 0,
2130
2131
  innerHTML: t.firstArrow
2131
- }, null, 8, hl)) : (d(), v("svg", pl, vl))
2132
+ }, null, 8, cl)) : (d(), v("svg", fl, hl))
2132
2133
  ], 2)) : S("", !0),
2133
2134
  m("button", {
2134
2135
  type: "button",
2135
2136
  class: y(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
2136
- onClick: Nt
2137
+ onClick: Dt
2137
2138
  }, [
2138
2139
  t.previousArrow ? (d(), v("span", {
2139
2140
  key: 0,
2140
2141
  innerHTML: t.previousArrow
2141
- }, null, 8, ml)) : (d(), v("svg", bl, wl))
2142
+ }, null, 8, pl)) : (d(), v("svg", gl, ml))
2142
2143
  ], 2),
2143
- t.showNumbers ? (d(!0), v(T, { key: 1 }, J(Rt.value, (h) => (d(), v("button", {
2144
+ t.showNumbers ? (d(!0), v(T, { key: 1 }, G(Rt.value, (h) => (d(), v("button", {
2144
2145
  key: h,
2145
2146
  type: "button",
2146
2147
  class: y(["bh-page-item", {
2147
2148
  disabled: a.value === h,
2148
2149
  "bh-active": h === a.value
2149
2150
  }]),
2150
- onClick: (_) => Dt(h)
2151
- }, $(h), 11, kl))), 128)) : S("", !0),
2151
+ onClick: (_) => Ht(h)
2152
+ }, M(h), 11, bl))), 128)) : S("", !0),
2152
2153
  m("button", {
2153
2154
  type: "button",
2154
- class: y(["bh-page-item next-page", { disabled: a.value >= R.value }]),
2155
- onClick: Ht
2155
+ class: y(["bh-page-item next-page", { disabled: a.value >= N.value }]),
2156
+ onClick: Vt
2156
2157
  }, [
2157
2158
  t.nextArrow ? (d(), v("span", {
2158
2159
  key: 0,
2159
2160
  innerHTML: t.nextArrow
2160
- }, null, 8, Cl)) : (d(), v("svg", _l, Sl))
2161
+ }, null, 8, yl)) : (d(), v("svg", wl, Cl))
2161
2162
  ], 2),
2162
2163
  t.showLastPage ? (d(), v("button", {
2163
2164
  key: 2,
2164
2165
  type: "button",
2165
- class: y(["bh-page-item last-page", { disabled: a.value >= R.value }]),
2166
- onClick: f[4] || (f[4] = (h) => a.value = R.value)
2166
+ class: y(["bh-page-item last-page", { disabled: a.value >= N.value }]),
2167
+ onClick: f[4] || (f[4] = (h) => a.value = N.value)
2167
2168
  }, [
2168
2169
  t.lastArrow ? (d(), v("span", {
2169
2170
  key: 0,
2170
2171
  innerHTML: t.lastArrow
2171
- }, null, 8, Fl)) : (d(), v("svg", Ll, $l))
2172
+ }, null, 8, _l)) : (d(), v("svg", xl, Fl))
2172
2173
  ], 2)) : S("", !0)
2173
2174
  ])
2174
2175
  ])
@@ -2177,5 +2178,5 @@ const Ko = /* @__PURE__ */ de(Ho, [["render", Qo]]), Go = { class: "bh-datatable
2177
2178
  }
2178
2179
  });
2179
2180
  export {
2180
- Pl as default
2181
+ ql as default
2181
2182
  };