@sito/dashboard 0.0.48 → 0.0.50

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.
package/dist/dashboard.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./main.css";
2
- import { jsx as c, jsxs as y, Fragment as te } from "react/jsx-runtime";
3
- import { forwardRef as ce, useState as M, useRef as V, useEffect as ne, useCallback as z, createContext as $e, useContext as Se, useMemo as F, useReducer as lt } from "react";
4
- function ut(e) {
2
+ import { jsx as c, jsxs as x, Fragment as ne } from "react/jsx-runtime";
3
+ import { forwardRef as ce, useState as I, useRef as V, useEffect as J, useCallback as z, createContext as $e, useContext as Se, useMemo as L, useReducer as ut } from "react";
4
+ function dt(e) {
5
5
  const { className: t = "" } = e;
6
6
  return /* @__PURE__ */ c(
7
7
  "svg",
@@ -14,7 +14,7 @@ function ut(e) {
14
14
  }
15
15
  );
16
16
  }
17
- function dt(e) {
17
+ function ft(e) {
18
18
  const { className: t = "" } = e;
19
19
  return /* @__PURE__ */ c(
20
20
  "svg",
@@ -27,7 +27,7 @@ function dt(e) {
27
27
  }
28
28
  );
29
29
  }
30
- function ft(e) {
30
+ function ht(e) {
31
31
  const { className: t = "" } = e;
32
32
  return /* @__PURE__ */ c(
33
33
  "svg",
@@ -40,7 +40,7 @@ function ft(e) {
40
40
  }
41
41
  );
42
42
  }
43
- function ht(e) {
43
+ function pt(e) {
44
44
  const { className: t = "" } = e;
45
45
  return /* @__PURE__ */ c(
46
46
  "svg",
@@ -53,7 +53,7 @@ function ht(e) {
53
53
  }
54
54
  );
55
55
  }
56
- const pt = (e) => {
56
+ const mt = (e) => {
57
57
  const { className: t = "" } = e;
58
58
  return /* @__PURE__ */ c("svg", { className: t, viewBox: "0 0 16 16", children: /* @__PURE__ */ c("path", { d: "M9 15H7a1 1 0 010-2h2a1 1 0 010 2zM11 11H5a1 1 0 010-2h6a1 1 0 010 2zM13 7H3a1 1 0 010-2h10a1 1 0 010 2zM15 3H1a1 1 0 010-2h14a1 1 0 010 2z" }) });
59
59
  };
@@ -70,7 +70,7 @@ function ke(e) {
70
70
  }
71
71
  );
72
72
  }
73
- function mt(e) {
73
+ function bt(e) {
74
74
  const { className: t = "" } = e;
75
75
  return /* @__PURE__ */ c(
76
76
  "svg",
@@ -84,7 +84,7 @@ function mt(e) {
84
84
  );
85
85
  }
86
86
  var ie = /* @__PURE__ */ ((e) => (e.error = "error", e.good = "good", e.default = "default", e))(ie || {});
87
- const qe = (e) => {
87
+ const Ke = (e) => {
88
88
  switch (e) {
89
89
  case "error":
90
90
  return "input-error";
@@ -93,7 +93,7 @@ const qe = (e) => {
93
93
  default:
94
94
  return "input-normal";
95
95
  }
96
- }, Ke = (e) => {
96
+ }, Ye = (e) => {
97
97
  switch (e) {
98
98
  case "error":
99
99
  return "input-label-error";
@@ -102,7 +102,7 @@ const qe = (e) => {
102
102
  default:
103
103
  return "input-label-normal";
104
104
  }
105
- }, Ye = (e) => {
105
+ }, Ze = (e) => {
106
106
  switch (e) {
107
107
  case "error":
108
108
  return "input-helper-text-error";
@@ -121,43 +121,43 @@ const Ee = ce(function(e, t) {
121
121
  inputClassName: l = "",
122
122
  labelClassName: o = "",
123
123
  helperText: i = "",
124
- helperTextClassName: f = "",
124
+ helperTextClassName: d = "",
125
125
  placeholder: u = "",
126
- label: d = "",
127
- name: b = "",
126
+ label: f = "",
127
+ name: m = "",
128
128
  id: v = "",
129
- state: g = ie.default,
130
- children: p,
129
+ state: C = ie.default,
130
+ children: b,
131
131
  ...h
132
132
  } = e;
133
- return /* @__PURE__ */ y("div", { className: `select-input-container ${s}`, children: [
133
+ return /* @__PURE__ */ x("div", { className: `select-input-container ${s}`, children: [
134
134
  /* @__PURE__ */ c(
135
135
  "select",
136
136
  {
137
137
  ...h,
138
138
  id: v,
139
139
  ref: t,
140
- name: b,
140
+ name: m,
141
141
  value: r,
142
142
  onChange: n,
143
- className: `select-input ${qe(g)} peer ${l}`,
144
- children: a == null ? void 0 : a.map((m) => /* @__PURE__ */ c("option", { value: m.id, children: m.value ?? m.name ?? m.id }, m.id))
143
+ className: `select-input ${Ke(C)} peer ${l}`,
144
+ children: a == null ? void 0 : a.map((p) => /* @__PURE__ */ c("option", { value: p.id, children: p.value ?? p.name ?? p.id }, p.id))
145
145
  }
146
146
  ),
147
147
  /* @__PURE__ */ c(
148
148
  "label",
149
149
  {
150
- htmlFor: b,
151
- className: `select-input-label ${Ke(g)} ${o}`,
152
- children: d
150
+ htmlFor: m,
151
+ className: `select-input-label ${Ye(C)} ${o}`,
152
+ children: f
153
153
  }
154
154
  ),
155
- p,
155
+ b,
156
156
  (u || i) && /* @__PURE__ */ c(
157
157
  "p",
158
158
  {
159
- className: `select-input-helper-text ${Ye(g)} ${f}`,
160
- children: g !== "error" && g !== "good" ? u : i
159
+ className: `select-input-helper-text ${Ze(C)} ${d}`,
160
+ children: C !== "error" && C !== "good" ? u : i
161
161
  }
162
162
  )
163
163
  ] });
@@ -171,28 +171,28 @@ const he = ce(function(e, t) {
171
171
  inputClassName: l = "",
172
172
  labelClassName: o = "",
173
173
  helperText: i = "",
174
- helperTextClassName: f = "",
174
+ helperTextClassName: d = "",
175
175
  value: u = "",
176
- ...d
176
+ ...f
177
177
  } = e;
178
- return /* @__PURE__ */ y("div", { className: `text-input-container ${s}`, children: [
178
+ return /* @__PURE__ */ x("div", { className: `text-input-container ${s}`, children: [
179
179
  /* @__PURE__ */ c(
180
180
  "input",
181
181
  {
182
182
  ref: t,
183
183
  value: u,
184
- className: `text-input ${qe(n)} peer ${l} ${u ? "has-value" : ""} ${d.placeholder ? "has-placeholder" : ""}`,
185
- ...d
184
+ className: `text-input ${Ke(n)} peer ${l} ${u ? "has-value" : ""} ${f.placeholder ? "has-placeholder" : ""}`,
185
+ ...f
186
186
  }
187
187
  ),
188
- !!a && /* @__PURE__ */ y(
188
+ !!a && /* @__PURE__ */ x(
189
189
  "label",
190
190
  {
191
- htmlFor: d.name,
192
- className: `text-input-label ${Ke(n)} ${o}`,
191
+ htmlFor: f.name,
192
+ className: `text-input-label ${Ye(n)} ${o}`,
193
193
  children: [
194
194
  a,
195
- d.required ? " *" : ""
195
+ f.required ? " *" : ""
196
196
  ]
197
197
  }
198
198
  ),
@@ -200,13 +200,13 @@ const he = ce(function(e, t) {
200
200
  !!i && /* @__PURE__ */ c(
201
201
  "p",
202
202
  {
203
- className: `text-input-helper-text ${Ye(n)} ${f}`,
203
+ className: `text-input-helper-text ${Ze(n)} ${d}`,
204
204
  children: i
205
205
  }
206
206
  )
207
207
  ] });
208
208
  });
209
- const bt = ce(function(e, t) {
209
+ const gt = ce(function(e, t) {
210
210
  const {
211
211
  checked: r,
212
212
  onChange: n,
@@ -215,14 +215,14 @@ const bt = ce(function(e, t) {
215
215
  id: l = "",
216
216
  type: o = "text",
217
217
  label: i = "",
218
- containerClassName: f = "",
218
+ containerClassName: d = "",
219
219
  inputClassName: u = "",
220
- labelClassName: d = "",
221
- helperText: b = "",
220
+ labelClassName: f = "",
221
+ helperText: m = "",
222
222
  helperTextClassName: v = "",
223
- ...g
223
+ ...C
224
224
  } = e;
225
- return /* @__PURE__ */ y("label", { className: `input-check-container ${f}`, children: [
225
+ return /* @__PURE__ */ x("label", { className: `input-check-container ${d}`, children: [
226
226
  /* @__PURE__ */ c(
227
227
  "input",
228
228
  {
@@ -233,40 +233,40 @@ const bt = ce(function(e, t) {
233
233
  checked: r,
234
234
  onChange: n,
235
235
  className: `input-check ${u}`,
236
- ...g
236
+ ...C
237
237
  }
238
238
  ),
239
- /* @__PURE__ */ c("span", { className: `input-check-label ${d}`, children: i })
239
+ /* @__PURE__ */ c("span", { className: `input-check-label ${f}`, children: i })
240
240
  ] });
241
241
  });
242
- var gt = !1;
243
- function vt(e) {
242
+ var vt = !1;
243
+ function Ct(e) {
244
244
  if (e.sheet)
245
245
  return e.sheet;
246
246
  for (var t = 0; t < document.styleSheets.length; t++)
247
247
  if (document.styleSheets[t].ownerNode === e)
248
248
  return document.styleSheets[t];
249
249
  }
250
- function Ct(e) {
250
+ function wt(e) {
251
251
  var t = document.createElement("style");
252
252
  return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
253
253
  }
254
- var wt = /* @__PURE__ */ function() {
254
+ var Nt = /* @__PURE__ */ function() {
255
255
  function e(r) {
256
256
  var n = this;
257
257
  this._insertTag = function(a) {
258
258
  var s;
259
259
  n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, s), n.tags.push(a);
260
- }, this.isSpeedy = r.speedy === void 0 ? !gt : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
260
+ }, this.isSpeedy = r.speedy === void 0 ? !vt : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
261
261
  }
262
262
  var t = e.prototype;
263
263
  return t.hydrate = function(n) {
264
264
  n.forEach(this._insertTag);
265
265
  }, t.insert = function(n) {
266
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ct(this));
266
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(wt(this));
267
267
  var a = this.tags[this.tags.length - 1];
268
268
  if (this.isSpeedy) {
269
- var s = vt(a);
269
+ var s = Ct(a);
270
270
  try {
271
271
  s.insertRule(n, s.cssRules.length);
272
272
  } catch {
@@ -280,29 +280,29 @@ var wt = /* @__PURE__ */ function() {
280
280
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
281
281
  }), this.tags = [], this.ctr = 0;
282
282
  }, e;
283
- }(), O = "-ms-", pe = "-moz-", x = "-webkit-", Ze = "comm", Ae = "rule", Pe = "decl", Nt = "@import", Je = "@keyframes", yt = "@layer", xt = Math.abs, me = String.fromCharCode, $t = Object.assign;
284
- function St(e, t) {
285
- return T(e, 0) ^ 45 ? (((t << 2 ^ T(e, 0)) << 2 ^ T(e, 1)) << 2 ^ T(e, 2)) << 2 ^ T(e, 3) : 0;
283
+ }(), F = "-ms-", pe = "-moz-", $ = "-webkit-", Je = "comm", Ae = "rule", Pe = "decl", yt = "@import", Qe = "@keyframes", xt = "@layer", $t = Math.abs, me = String.fromCharCode, St = Object.assign;
284
+ function kt(e, t) {
285
+ return P(e, 0) ^ 45 ? (((t << 2 ^ P(e, 0)) << 2 ^ P(e, 1)) << 2 ^ P(e, 2)) << 2 ^ P(e, 3) : 0;
286
286
  }
287
- function Qe(e) {
287
+ function Xe(e) {
288
288
  return e.trim();
289
289
  }
290
- function kt(e, t) {
290
+ function Et(e, t) {
291
291
  return (e = t.exec(e)) ? e[0] : e;
292
292
  }
293
- function $(e, t, r) {
293
+ function S(e, t, r) {
294
294
  return e.replace(t, r);
295
295
  }
296
296
  function Ne(e, t) {
297
297
  return e.indexOf(t);
298
298
  }
299
- function T(e, t) {
299
+ function P(e, t) {
300
300
  return e.charCodeAt(t) | 0;
301
301
  }
302
302
  function re(e, t, r) {
303
303
  return e.slice(t, r);
304
304
  }
305
- function W(e) {
305
+ function j(e) {
306
306
  return e.length;
307
307
  }
308
308
  function Te(e) {
@@ -311,33 +311,33 @@ function Te(e) {
311
311
  function le(e, t) {
312
312
  return t.push(e), e;
313
313
  }
314
- function Et(e, t) {
314
+ function At(e, t) {
315
315
  return e.map(t).join("");
316
316
  }
317
- var be = 1, J = 1, Xe = 0, L = 0, A = 0, Q = "";
317
+ var be = 1, Q = 1, et = 0, R = 0, A = 0, X = "";
318
318
  function ge(e, t, r, n, a, s, l) {
319
- return { value: e, root: t, parent: r, type: n, props: a, children: s, line: be, column: J, length: l, return: "" };
319
+ return { value: e, root: t, parent: r, type: n, props: a, children: s, line: be, column: Q, length: l, return: "" };
320
320
  }
321
- function ee(e, t) {
322
- return $t(ge("", null, null, "", null, null, 0), e, { length: -e.length }, t);
321
+ function te(e, t) {
322
+ return St(ge("", null, null, "", null, null, 0), e, { length: -e.length }, t);
323
323
  }
324
- function At() {
324
+ function Pt() {
325
325
  return A;
326
326
  }
327
- function Pt() {
328
- return A = L > 0 ? T(Q, --L) : 0, J--, A === 10 && (J = 1, be--), A;
327
+ function Tt() {
328
+ return A = R > 0 ? P(X, --R) : 0, Q--, A === 10 && (Q = 1, be--), A;
329
329
  }
330
330
  function D() {
331
- return A = L < Xe ? T(Q, L++) : 0, J++, A === 10 && (J = 1, be++), A;
331
+ return A = R < et ? P(X, R++) : 0, Q++, A === 10 && (Q = 1, be++), A;
332
332
  }
333
333
  function _() {
334
- return T(Q, L);
334
+ return P(X, R);
335
335
  }
336
336
  function ue() {
337
- return L;
337
+ return R;
338
338
  }
339
339
  function oe(e, t) {
340
- return re(Q, e, t);
340
+ return re(X, e, t);
341
341
  }
342
342
  function ae(e) {
343
343
  switch (e) {
@@ -371,21 +371,21 @@ function ae(e) {
371
371
  }
372
372
  return 0;
373
373
  }
374
- function et(e) {
375
- return be = J = 1, Xe = W(Q = e), L = 0, [];
376
- }
377
374
  function tt(e) {
378
- return Q = "", e;
375
+ return be = Q = 1, et = j(X = e), R = 0, [];
376
+ }
377
+ function nt(e) {
378
+ return X = "", e;
379
379
  }
380
380
  function de(e) {
381
- return Qe(oe(L - 1, ye(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
381
+ return Xe(oe(R - 1, ye(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
382
382
  }
383
- function Tt(e) {
383
+ function Ot(e) {
384
384
  for (; (A = _()) && A < 33; )
385
385
  D();
386
386
  return ae(e) > 2 || ae(A) > 3 ? "" : " ";
387
387
  }
388
- function Ot(e, t) {
388
+ function Ft(e, t) {
389
389
  for (; --t && D() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
390
390
  ;
391
391
  return oe(e, ue() + (t < 6 && _() == 32 && D() == 32));
@@ -394,7 +394,7 @@ function ye(e) {
394
394
  for (; D(); )
395
395
  switch (A) {
396
396
  case e:
397
- return L;
397
+ return R;
398
398
  case 34:
399
399
  case 39:
400
400
  e !== 34 && e !== 39 && ye(A);
@@ -406,119 +406,119 @@ function ye(e) {
406
406
  D();
407
407
  break;
408
408
  }
409
- return L;
409
+ return R;
410
410
  }
411
- function Ft(e, t) {
411
+ function Lt(e, t) {
412
412
  for (; D() && e + A !== 47 + 10; )
413
413
  if (e + A === 42 + 42 && _() === 47)
414
414
  break;
415
- return "/*" + oe(t, L - 1) + "*" + me(e === 47 ? e : D());
415
+ return "/*" + oe(t, R - 1) + "*" + me(e === 47 ? e : D());
416
416
  }
417
- function Lt(e) {
417
+ function Rt(e) {
418
418
  for (; !ae(_()); )
419
419
  D();
420
- return oe(e, L);
420
+ return oe(e, R);
421
421
  }
422
- function Rt(e) {
423
- return tt(fe("", null, null, null, [""], e = et(e), 0, [0], e));
422
+ function zt(e) {
423
+ return nt(fe("", null, null, null, [""], e = tt(e), 0, [0], e));
424
424
  }
425
425
  function fe(e, t, r, n, a, s, l, o, i) {
426
- for (var f = 0, u = 0, d = l, b = 0, v = 0, g = 0, p = 1, h = 1, m = 1, N = 0, k = "", E = a, S = s, P = n, w = k; h; )
427
- switch (g = N, N = D()) {
426
+ for (var d = 0, u = 0, f = l, m = 0, v = 0, C = 0, b = 1, h = 1, p = 1, y = 0, w = "", k = a, E = s, T = n, N = w; h; )
427
+ switch (C = y, y = D()) {
428
428
  case 40:
429
- if (g != 108 && T(w, d - 1) == 58) {
430
- Ne(w += $(de(N), "&", "&\f"), "&\f") != -1 && (m = -1);
429
+ if (C != 108 && P(N, f - 1) == 58) {
430
+ Ne(N += S(de(y), "&", "&\f"), "&\f") != -1 && (p = -1);
431
431
  break;
432
432
  }
433
433
  case 34:
434
434
  case 39:
435
435
  case 91:
436
- w += de(N);
436
+ N += de(y);
437
437
  break;
438
438
  case 9:
439
439
  case 10:
440
440
  case 13:
441
441
  case 32:
442
- w += Tt(g);
442
+ N += Ot(C);
443
443
  break;
444
444
  case 92:
445
- w += Ot(ue() - 1, 7);
445
+ N += Ft(ue() - 1, 7);
446
446
  continue;
447
447
  case 47:
448
448
  switch (_()) {
449
449
  case 42:
450
450
  case 47:
451
- le(zt(Ft(D(), ue()), t, r), i);
451
+ le(Dt(Lt(D(), ue()), t, r), i);
452
452
  break;
453
453
  default:
454
- w += "/";
454
+ N += "/";
455
455
  }
456
456
  break;
457
- case 123 * p:
458
- o[f++] = W(w) * m;
459
- case 125 * p:
457
+ case 123 * b:
458
+ o[d++] = j(N) * p;
459
+ case 125 * b:
460
460
  case 59:
461
461
  case 0:
462
- switch (N) {
462
+ switch (y) {
463
463
  case 0:
464
464
  case 125:
465
465
  h = 0;
466
466
  case 59 + u:
467
- m == -1 && (w = $(w, /\f/g, "")), v > 0 && W(w) - d && le(v > 32 ? Ie(w + ";", n, r, d - 1) : Ie($(w, " ", "") + ";", n, r, d - 2), i);
467
+ p == -1 && (N = S(N, /\f/g, "")), v > 0 && j(N) - f && le(v > 32 ? Ie(N + ";", n, r, f - 1) : Ie(S(N, " ", "") + ";", n, r, f - 2), i);
468
468
  break;
469
469
  case 59:
470
- w += ";";
470
+ N += ";";
471
471
  default:
472
- if (le(P = Me(w, t, r, f, u, a, o, k, E = [], S = [], d), s), N === 123)
472
+ if (le(T = Me(N, t, r, d, u, a, o, w, k = [], E = [], f), s), y === 123)
473
473
  if (u === 0)
474
- fe(w, t, P, P, E, s, d, o, S);
474
+ fe(N, t, T, T, k, s, f, o, E);
475
475
  else
476
- switch (b === 99 && T(w, 3) === 110 ? 100 : b) {
476
+ switch (m === 99 && P(N, 3) === 110 ? 100 : m) {
477
477
  case 100:
478
478
  case 108:
479
479
  case 109:
480
480
  case 115:
481
- fe(e, P, P, n && le(Me(e, P, P, 0, 0, a, o, k, a, E = [], d), S), a, S, d, o, n ? E : S);
481
+ fe(e, T, T, n && le(Me(e, T, T, 0, 0, a, o, w, a, k = [], f), E), a, E, f, o, n ? k : E);
482
482
  break;
483
483
  default:
484
- fe(w, P, P, P, [""], S, 0, o, S);
484
+ fe(N, T, T, T, [""], E, 0, o, E);
485
485
  }
486
486
  }
487
- f = u = v = 0, p = m = 1, k = w = "", d = l;
487
+ d = u = v = 0, b = p = 1, w = N = "", f = l;
488
488
  break;
489
489
  case 58:
490
- d = 1 + W(w), v = g;
490
+ f = 1 + j(N), v = C;
491
491
  default:
492
- if (p < 1) {
493
- if (N == 123)
494
- --p;
495
- else if (N == 125 && p++ == 0 && Pt() == 125)
492
+ if (b < 1) {
493
+ if (y == 123)
494
+ --b;
495
+ else if (y == 125 && b++ == 0 && Tt() == 125)
496
496
  continue;
497
497
  }
498
- switch (w += me(N), N * p) {
498
+ switch (N += me(y), y * b) {
499
499
  case 38:
500
- m = u > 0 ? 1 : (w += "\f", -1);
500
+ p = u > 0 ? 1 : (N += "\f", -1);
501
501
  break;
502
502
  case 44:
503
- o[f++] = (W(w) - 1) * m, m = 1;
503
+ o[d++] = (j(N) - 1) * p, p = 1;
504
504
  break;
505
505
  case 64:
506
- _() === 45 && (w += de(D())), b = _(), u = d = W(k = w += Lt(ue())), N++;
506
+ _() === 45 && (N += de(D())), m = _(), u = f = j(w = N += Rt(ue())), y++;
507
507
  break;
508
508
  case 45:
509
- g === 45 && W(w) == 2 && (p = 0);
509
+ C === 45 && j(N) == 2 && (b = 0);
510
510
  }
511
511
  }
512
512
  return s;
513
513
  }
514
- function Me(e, t, r, n, a, s, l, o, i, f, u) {
515
- for (var d = a - 1, b = a === 0 ? s : [""], v = Te(b), g = 0, p = 0, h = 0; g < n; ++g)
516
- for (var m = 0, N = re(e, d + 1, d = xt(p = l[g])), k = e; m < v; ++m)
517
- (k = Qe(p > 0 ? b[m] + " " + N : $(N, /&\f/g, b[m]))) && (i[h++] = k);
518
- return ge(e, t, r, a === 0 ? Ae : o, i, f, u);
514
+ function Me(e, t, r, n, a, s, l, o, i, d, u) {
515
+ for (var f = a - 1, m = a === 0 ? s : [""], v = Te(m), C = 0, b = 0, h = 0; C < n; ++C)
516
+ for (var p = 0, y = re(e, f + 1, f = $t(b = l[C])), w = e; p < v; ++p)
517
+ (w = Xe(b > 0 ? m[p] + " " + y : S(y, /&\f/g, m[p]))) && (i[h++] = w);
518
+ return ge(e, t, r, a === 0 ? Ae : o, i, d, u);
519
519
  }
520
- function zt(e, t, r) {
521
- return ge(e, t, r, Ze, me(At()), re(e, 2, -2), 0);
520
+ function Dt(e, t, r) {
521
+ return ge(e, t, r, Je, me(Pt()), re(e, 2, -2), 0);
522
522
  }
523
523
  function Ie(e, t, r, n) {
524
524
  return ge(e, t, r, Pe, re(e, 0, n), re(e, n + 1, -1), n);
@@ -528,24 +528,24 @@ function Z(e, t) {
528
528
  r += t(e[a], a, e, t) || "";
529
529
  return r;
530
530
  }
531
- function Dt(e, t, r, n) {
531
+ function Mt(e, t, r, n) {
532
532
  switch (e.type) {
533
- case yt:
533
+ case xt:
534
534
  if (e.children.length)
535
535
  break;
536
- case Nt:
536
+ case yt:
537
537
  case Pe:
538
538
  return e.return = e.return || e.value;
539
- case Ze:
540
- return "";
541
539
  case Je:
540
+ return "";
541
+ case Qe:
542
542
  return e.return = e.value + "{" + Z(e.children, n) + "}";
543
543
  case Ae:
544
544
  e.value = e.props.join(",");
545
545
  }
546
- return W(r = Z(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
546
+ return j(r = Z(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
547
547
  }
548
- function Mt(e) {
548
+ function It(e) {
549
549
  var t = Te(e);
550
550
  return function(r, n, a, s) {
551
551
  for (var l = "", o = 0; o < t; o++)
@@ -553,12 +553,12 @@ function Mt(e) {
553
553
  return l;
554
554
  };
555
555
  }
556
- function It(e) {
556
+ function Wt(e) {
557
557
  return function(t) {
558
558
  t.root || (t = t.return) && e(t);
559
559
  };
560
560
  }
561
- function Wt(e) {
561
+ function jt(e) {
562
562
  var t = /* @__PURE__ */ Object.create(null);
563
563
  return function(r) {
564
564
  return t[r] === void 0 && (t[r] = e(r)), t[r];
@@ -567,13 +567,13 @@ function Wt(e) {
567
567
  var Bt = function(t, r, n) {
568
568
  for (var a = 0, s = 0; a = s, s = _(), a === 38 && s === 12 && (r[n] = 1), !ae(s); )
569
569
  D();
570
- return oe(t, L);
570
+ return oe(t, R);
571
571
  }, _t = function(t, r) {
572
572
  var n = -1, a = 44;
573
573
  do
574
574
  switch (ae(a)) {
575
575
  case 0:
576
- a === 38 && _() === 12 && (r[n] = 1), t[n] += Bt(L - 1, r, n);
576
+ a === 38 && _() === 12 && (r[n] = 1), t[n] += Bt(R - 1, r, n);
577
577
  break;
578
578
  case 2:
579
579
  t[n] += de(a);
@@ -588,9 +588,9 @@ var Bt = function(t, r, n) {
588
588
  }
589
589
  while (a = D());
590
590
  return t;
591
- }, jt = function(t, r) {
592
- return tt(_t(et(t), r));
593
- }, We = /* @__PURE__ */ new WeakMap(), Gt = function(t) {
591
+ }, Gt = function(t, r) {
592
+ return nt(_t(tt(t), r));
593
+ }, We = /* @__PURE__ */ new WeakMap(), Ut = function(t) {
594
594
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
595
595
  // negative .length indicates that this rule has been already prefixed
596
596
  t.length < 1)) {
@@ -599,9 +599,9 @@ var Bt = function(t, r, n) {
599
599
  return;
600
600
  if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !We.get(n)) && !a) {
601
601
  We.set(t, !0);
602
- for (var s = [], l = jt(r, s), o = n.props, i = 0, f = 0; i < l.length; i++)
603
- for (var u = 0; u < o.length; u++, f++)
604
- t.props[f] = s[i] ? l[i].replace(/&\f/g, o[u]) : o[u] + " " + l[i];
602
+ for (var s = [], l = Gt(r, s), o = n.props, i = 0, d = 0; i < l.length; i++)
603
+ for (var u = 0; u < o.length; u++, d++)
604
+ t.props[d] = s[i] ? l[i].replace(/&\f/g, o[u]) : o[u] + " " + l[i];
605
605
  }
606
606
  }
607
607
  }, Ht = function(t) {
@@ -612,10 +612,10 @@ var Bt = function(t, r, n) {
612
612
  r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
613
613
  }
614
614
  };
615
- function nt(e, t) {
616
- switch (St(e, t)) {
615
+ function rt(e, t) {
616
+ switch (kt(e, t)) {
617
617
  case 5103:
618
- return x + "print-" + e + e;
618
+ return $ + "print-" + e + e;
619
619
  case 5737:
620
620
  case 4201:
621
621
  case 3177:
@@ -641,44 +641,44 @@ function nt(e, t) {
641
641
  case 5365:
642
642
  case 5621:
643
643
  case 3829:
644
- return x + e + e;
644
+ return $ + e + e;
645
645
  case 5349:
646
646
  case 4246:
647
647
  case 4810:
648
648
  case 6968:
649
649
  case 2756:
650
- return x + e + pe + e + O + e + e;
650
+ return $ + e + pe + e + F + e + e;
651
651
  case 6828:
652
652
  case 4268:
653
- return x + e + O + e + e;
653
+ return $ + e + F + e + e;
654
654
  case 6165:
655
- return x + e + O + "flex-" + e + e;
655
+ return $ + e + F + "flex-" + e + e;
656
656
  case 5187:
657
- return x + e + $(e, /(\w+).+(:[^]+)/, x + "box-$1$2" + O + "flex-$1$2") + e;
657
+ return $ + e + S(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + F + "flex-$1$2") + e;
658
658
  case 5443:
659
- return x + e + O + "flex-item-" + $(e, /flex-|-self/, "") + e;
659
+ return $ + e + F + "flex-item-" + S(e, /flex-|-self/, "") + e;
660
660
  case 4675:
661
- return x + e + O + "flex-line-pack" + $(e, /align-content|flex-|-self/, "") + e;
661
+ return $ + e + F + "flex-line-pack" + S(e, /align-content|flex-|-self/, "") + e;
662
662
  case 5548:
663
- return x + e + O + $(e, "shrink", "negative") + e;
663
+ return $ + e + F + S(e, "shrink", "negative") + e;
664
664
  case 5292:
665
- return x + e + O + $(e, "basis", "preferred-size") + e;
665
+ return $ + e + F + S(e, "basis", "preferred-size") + e;
666
666
  case 6060:
667
- return x + "box-" + $(e, "-grow", "") + x + e + O + $(e, "grow", "positive") + e;
667
+ return $ + "box-" + S(e, "-grow", "") + $ + e + F + S(e, "grow", "positive") + e;
668
668
  case 4554:
669
- return x + $(e, /([^-])(transform)/g, "$1" + x + "$2") + e;
669
+ return $ + S(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
670
670
  case 6187:
671
- return $($($(e, /(zoom-|grab)/, x + "$1"), /(image-set)/, x + "$1"), e, "") + e;
671
+ return S(S(S(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
672
672
  case 5495:
673
673
  case 3959:
674
- return $(e, /(image-set\([^]*)/, x + "$1$`$1");
674
+ return S(e, /(image-set\([^]*)/, $ + "$1$`$1");
675
675
  case 4968:
676
- return $($(e, /(.+:)(flex-)?(.*)/, x + "box-pack:$3" + O + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + x + e + e;
676
+ return S(S(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e;
677
677
  case 4095:
678
678
  case 3583:
679
679
  case 4068:
680
680
  case 2532:
681
- return $(e, /(.+)-inline(.+)/, x + "$1$2") + e;
681
+ return S(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
682
682
  case 8116:
683
683
  case 7059:
684
684
  case 5753:
@@ -691,106 +691,106 @@ function nt(e, t) {
691
691
  case 5789:
692
692
  case 5021:
693
693
  case 4765:
694
- if (W(e) - 1 - t > 6)
695
- switch (T(e, t + 1)) {
694
+ if (j(e) - 1 - t > 6)
695
+ switch (P(e, t + 1)) {
696
696
  case 109:
697
- if (T(e, t + 4) !== 45)
697
+ if (P(e, t + 4) !== 45)
698
698
  break;
699
699
  case 102:
700
- return $(e, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + pe + (T(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
700
+ return S(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + pe + (P(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
701
701
  case 115:
702
- return ~Ne(e, "stretch") ? nt($(e, "stretch", "fill-available"), t) + e : e;
702
+ return ~Ne(e, "stretch") ? rt(S(e, "stretch", "fill-available"), t) + e : e;
703
703
  }
704
704
  break;
705
705
  case 4949:
706
- if (T(e, t + 1) !== 115)
706
+ if (P(e, t + 1) !== 115)
707
707
  break;
708
708
  case 6444:
709
- switch (T(e, W(e) - 3 - (~Ne(e, "!important") && 10))) {
709
+ switch (P(e, j(e) - 3 - (~Ne(e, "!important") && 10))) {
710
710
  case 107:
711
- return $(e, ":", ":" + x) + e;
711
+ return S(e, ":", ":" + $) + e;
712
712
  case 101:
713
- return $(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + x + (T(e, 14) === 45 ? "inline-" : "") + "box$3$1" + x + "$2$3$1" + O + "$2box$3") + e;
713
+ return S(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + $ + (P(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + F + "$2box$3") + e;
714
714
  }
715
715
  break;
716
716
  case 5936:
717
- switch (T(e, t + 11)) {
717
+ switch (P(e, t + 11)) {
718
718
  case 114:
719
- return x + e + O + $(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
719
+ return $ + e + F + S(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
720
720
  case 108:
721
- return x + e + O + $(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
721
+ return $ + e + F + S(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
722
722
  case 45:
723
- return x + e + O + $(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
723
+ return $ + e + F + S(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
724
724
  }
725
- return x + e + O + e + e;
725
+ return $ + e + F + e + e;
726
726
  }
727
727
  return e;
728
728
  }
729
- var Ut = function(t, r, n, a) {
729
+ var Vt = function(t, r, n, a) {
730
730
  if (t.length > -1 && !t.return)
731
731
  switch (t.type) {
732
732
  case Pe:
733
- t.return = nt(t.value, t.length);
733
+ t.return = rt(t.value, t.length);
734
734
  break;
735
- case Je:
736
- return Z([ee(t, {
737
- value: $(t.value, "@", "@" + x)
735
+ case Qe:
736
+ return Z([te(t, {
737
+ value: S(t.value, "@", "@" + $)
738
738
  })], a);
739
739
  case Ae:
740
740
  if (t.length)
741
- return Et(t.props, function(s) {
742
- switch (kt(s, /(::plac\w+|:read-\w+)/)) {
741
+ return At(t.props, function(s) {
742
+ switch (Et(s, /(::plac\w+|:read-\w+)/)) {
743
743
  case ":read-only":
744
744
  case ":read-write":
745
- return Z([ee(t, {
746
- props: [$(s, /:(read-\w+)/, ":" + pe + "$1")]
745
+ return Z([te(t, {
746
+ props: [S(s, /:(read-\w+)/, ":" + pe + "$1")]
747
747
  })], a);
748
748
  case "::placeholder":
749
- return Z([ee(t, {
750
- props: [$(s, /:(plac\w+)/, ":" + x + "input-$1")]
751
- }), ee(t, {
752
- props: [$(s, /:(plac\w+)/, ":" + pe + "$1")]
753
- }), ee(t, {
754
- props: [$(s, /:(plac\w+)/, O + "input-$1")]
749
+ return Z([te(t, {
750
+ props: [S(s, /:(plac\w+)/, ":" + $ + "input-$1")]
751
+ }), te(t, {
752
+ props: [S(s, /:(plac\w+)/, ":" + pe + "$1")]
753
+ }), te(t, {
754
+ props: [S(s, /:(plac\w+)/, F + "input-$1")]
755
755
  })], a);
756
756
  }
757
757
  return "";
758
758
  });
759
759
  }
760
- }, Vt = [Ut], qt = function(t) {
760
+ }, qt = [Vt], Kt = function(t) {
761
761
  var r = t.key;
762
762
  if (r === "css") {
763
763
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
764
- Array.prototype.forEach.call(n, function(p) {
765
- var h = p.getAttribute("data-emotion");
766
- h.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
764
+ Array.prototype.forEach.call(n, function(b) {
765
+ var h = b.getAttribute("data-emotion");
766
+ h.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
767
767
  });
768
768
  }
769
- var a = t.stylisPlugins || Vt, s = {}, l, o = [];
769
+ var a = t.stylisPlugins || qt, s = {}, l, o = [];
770
770
  l = t.container || document.head, Array.prototype.forEach.call(
771
771
  // this means we will ignore elements which don't have a space in them which
772
772
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
773
773
  document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
774
- function(p) {
775
- for (var h = p.getAttribute("data-emotion").split(" "), m = 1; m < h.length; m++)
776
- s[h[m]] = !0;
777
- o.push(p);
774
+ function(b) {
775
+ for (var h = b.getAttribute("data-emotion").split(" "), p = 1; p < h.length; p++)
776
+ s[h[p]] = !0;
777
+ o.push(b);
778
778
  }
779
779
  );
780
- var i, f = [Gt, Ht];
780
+ var i, d = [Ut, Ht];
781
781
  {
782
- var u, d = [Dt, It(function(p) {
783
- u.insert(p);
784
- })], b = Mt(f.concat(a, d)), v = function(h) {
785
- return Z(Rt(h), b);
782
+ var u, f = [Mt, Wt(function(b) {
783
+ u.insert(b);
784
+ })], m = It(d.concat(a, f)), v = function(h) {
785
+ return Z(zt(h), m);
786
786
  };
787
- i = function(h, m, N, k) {
788
- u = N, v(h ? h + "{" + m.styles + "}" : m.styles), k && (g.inserted[m.name] = !0);
787
+ i = function(h, p, y, w) {
788
+ u = y, v(h ? h + "{" + p.styles + "}" : p.styles), w && (C.inserted[p.name] = !0);
789
789
  };
790
790
  }
791
- var g = {
791
+ var C = {
792
792
  key: r,
793
- sheet: new wt({
793
+ sheet: new Nt({
794
794
  key: r,
795
795
  container: l,
796
796
  nonce: t.nonce,
@@ -803,9 +803,9 @@ var Ut = function(t, r, n, a) {
803
803
  registered: {},
804
804
  insert: i
805
805
  };
806
- return g.sheet.hydrate(o), g;
806
+ return C.sheet.hydrate(o), C;
807
807
  };
808
- function Kt(e) {
808
+ function Yt(e) {
809
809
  for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
810
810
  r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
811
811
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -824,7 +824,7 @@ function Kt(e) {
824
824
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
825
825
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
826
826
  }
827
- var Yt = {
827
+ var Zt = {
828
828
  animationIterationCount: 1,
829
829
  aspectRatio: 1,
830
830
  borderImageOutset: 1,
@@ -873,18 +873,18 @@ var Yt = {
873
873
  strokeMiterlimit: 1,
874
874
  strokeOpacity: 1,
875
875
  strokeWidth: 1
876
- }, Zt = !1, Jt = /[A-Z]|^ms/g, Qt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, rt = function(t) {
876
+ }, Jt = !1, Qt = /[A-Z]|^ms/g, Xt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, at = function(t) {
877
877
  return t.charCodeAt(1) === 45;
878
- }, Be = function(t) {
878
+ }, je = function(t) {
879
879
  return t != null && typeof t != "boolean";
880
- }, Ce = /* @__PURE__ */ Wt(function(e) {
881
- return rt(e) ? e : e.replace(Jt, "-$&").toLowerCase();
882
- }), _e = function(t, r) {
880
+ }, Ce = /* @__PURE__ */ jt(function(e) {
881
+ return at(e) ? e : e.replace(Qt, "-$&").toLowerCase();
882
+ }), Be = function(t, r) {
883
883
  switch (t) {
884
884
  case "animation":
885
885
  case "animationName":
886
886
  if (typeof r == "string")
887
- return r.replace(Qt, function(n, a, s) {
887
+ return r.replace(Xt, function(n, a, s) {
888
888
  return B = {
889
889
  name: a,
890
890
  styles: s,
@@ -892,8 +892,8 @@ var Yt = {
892
892
  }, a;
893
893
  });
894
894
  }
895
- return Yt[t] !== 1 && !rt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
896
- }, Xt = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
895
+ return Zt[t] !== 1 && !at(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
896
+ }, en = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
897
897
  function se(e, t, r) {
898
898
  if (r == null)
899
899
  return "";
@@ -924,12 +924,12 @@ function se(e, t, r) {
924
924
  var o = s.styles + ";";
925
925
  return o;
926
926
  }
927
- return en(e, t, r);
927
+ return tn(e, t, r);
928
928
  }
929
929
  case "function": {
930
930
  if (e !== void 0) {
931
- var i = B, f = r(e);
932
- return B = i, se(e, t, f);
931
+ var i = B, d = r(e);
932
+ return B = i, se(e, t, d);
933
933
  }
934
934
  break;
935
935
  }
@@ -937,10 +937,10 @@ function se(e, t, r) {
937
937
  var u = r;
938
938
  if (t == null)
939
939
  return u;
940
- var d = t[u];
941
- return d !== void 0 ? d : u;
940
+ var f = t[u];
941
+ return f !== void 0 ? f : u;
942
942
  }
943
- function en(e, t, r) {
943
+ function tn(e, t, r) {
944
944
  var n = "";
945
945
  if (Array.isArray(r))
946
946
  for (var a = 0; a < r.length; a++)
@@ -950,30 +950,30 @@ function en(e, t, r) {
950
950
  var l = r[s];
951
951
  if (typeof l != "object") {
952
952
  var o = l;
953
- t != null && t[o] !== void 0 ? n += s + "{" + t[o] + "}" : Be(o) && (n += Ce(s) + ":" + _e(s, o) + ";");
953
+ t != null && t[o] !== void 0 ? n += s + "{" + t[o] + "}" : je(o) && (n += Ce(s) + ":" + Be(s, o) + ";");
954
954
  } else {
955
- if (s === "NO_COMPONENT_SELECTOR" && Zt)
956
- throw new Error(Xt);
955
+ if (s === "NO_COMPONENT_SELECTOR" && Jt)
956
+ throw new Error(en);
957
957
  if (Array.isArray(l) && typeof l[0] == "string" && (t == null || t[l[0]] === void 0))
958
958
  for (var i = 0; i < l.length; i++)
959
- Be(l[i]) && (n += Ce(s) + ":" + _e(s, l[i]) + ";");
959
+ je(l[i]) && (n += Ce(s) + ":" + Be(s, l[i]) + ";");
960
960
  else {
961
- var f = se(e, t, l);
961
+ var d = se(e, t, l);
962
962
  switch (s) {
963
963
  case "animation":
964
964
  case "animationName": {
965
- n += Ce(s) + ":" + f + ";";
965
+ n += Ce(s) + ":" + d + ";";
966
966
  break;
967
967
  }
968
968
  default:
969
- n += s + "{" + f + "}";
969
+ n += s + "{" + d + "}";
970
970
  }
971
971
  }
972
972
  }
973
973
  }
974
974
  return n;
975
975
  }
976
- var je = /label:\s*([^\s;{]+)\s*(;|$)/g, B;
976
+ var _e = /label:\s*([^\s;{]+)\s*(;|$)/g, B;
977
977
  function we(e, t, r) {
978
978
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
979
979
  return e[0];
@@ -991,24 +991,24 @@ function we(e, t, r) {
991
991
  var i = s;
992
992
  a += i[o];
993
993
  }
994
- je.lastIndex = 0;
995
- for (var f = "", u; (u = je.exec(a)) !== null; )
996
- f += "-" + u[1];
997
- var d = Kt(a) + f;
994
+ _e.lastIndex = 0;
995
+ for (var d = "", u; (u = _e.exec(a)) !== null; )
996
+ d += "-" + u[1];
997
+ var f = Yt(a) + d;
998
998
  return {
999
- name: d,
999
+ name: f,
1000
1000
  styles: a,
1001
1001
  next: B
1002
1002
  };
1003
1003
  }
1004
- var tn = !0;
1005
- function at(e, t, r) {
1004
+ var nn = !0;
1005
+ function st(e, t, r) {
1006
1006
  var n = "";
1007
1007
  return r.split(" ").forEach(function(a) {
1008
1008
  e[a] !== void 0 ? t.push(e[a] + ";") : a && (n += a + " ");
1009
1009
  }), n;
1010
1010
  }
1011
- var nn = function(t, r, n) {
1011
+ var rn = function(t, r, n) {
1012
1012
  var a = t.key + "-" + r.name;
1013
1013
  // we only need to add the styles to the registered cache if the
1014
1014
  // class name could be used further down
@@ -1019,9 +1019,9 @@ var nn = function(t, r, n) {
1019
1019
  // in node since emotion-server relies on whether a style is in
1020
1020
  // the registered cache to know whether a style is global or not
1021
1021
  // also, note that this check will be dead code eliminated in the browser
1022
- tn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
1023
- }, rn = function(t, r, n) {
1024
- nn(t, r, n);
1022
+ nn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
1023
+ }, an = function(t, r, n) {
1024
+ rn(t, r, n);
1025
1025
  var a = t.key + "-" + r.name;
1026
1026
  if (t.inserted[r.name] === void 0) {
1027
1027
  var s = r;
@@ -1034,37 +1034,37 @@ function Ge(e, t) {
1034
1034
  if (e.inserted[t.name] === void 0)
1035
1035
  return e.insert("", t, e.sheet, !0);
1036
1036
  }
1037
- function He(e, t, r) {
1038
- var n = [], a = at(e, n, r);
1037
+ function Ue(e, t, r) {
1038
+ var n = [], a = st(e, n, r);
1039
1039
  return n.length < 2 ? r : a + t(n);
1040
1040
  }
1041
- var an = function(t) {
1042
- var r = qt(t);
1041
+ var sn = function(t) {
1042
+ var r = Kt(t);
1043
1043
  r.sheet.speedy = function(o) {
1044
1044
  this.isSpeedy = o;
1045
1045
  }, r.compat = !0;
1046
1046
  var n = function() {
1047
- for (var i = arguments.length, f = new Array(i), u = 0; u < i; u++)
1048
- f[u] = arguments[u];
1049
- var d = we(f, r.registered, void 0);
1050
- return rn(r, d, !1), r.key + "-" + d.name;
1047
+ for (var i = arguments.length, d = new Array(i), u = 0; u < i; u++)
1048
+ d[u] = arguments[u];
1049
+ var f = we(d, r.registered, void 0);
1050
+ return an(r, f, !1), r.key + "-" + f.name;
1051
1051
  }, a = function() {
1052
- for (var i = arguments.length, f = new Array(i), u = 0; u < i; u++)
1053
- f[u] = arguments[u];
1054
- var d = we(f, r.registered), b = "animation-" + d.name;
1052
+ for (var i = arguments.length, d = new Array(i), u = 0; u < i; u++)
1053
+ d[u] = arguments[u];
1054
+ var f = we(d, r.registered), m = "animation-" + f.name;
1055
1055
  return Ge(r, {
1056
- name: d.name,
1057
- styles: "@keyframes " + b + "{" + d.styles + "}"
1058
- }), b;
1056
+ name: f.name,
1057
+ styles: "@keyframes " + m + "{" + f.styles + "}"
1058
+ }), m;
1059
1059
  }, s = function() {
1060
- for (var i = arguments.length, f = new Array(i), u = 0; u < i; u++)
1061
- f[u] = arguments[u];
1062
- var d = we(f, r.registered);
1063
- Ge(r, d);
1060
+ for (var i = arguments.length, d = new Array(i), u = 0; u < i; u++)
1061
+ d[u] = arguments[u];
1062
+ var f = we(d, r.registered);
1063
+ Ge(r, f);
1064
1064
  }, l = function() {
1065
- for (var i = arguments.length, f = new Array(i), u = 0; u < i; u++)
1066
- f[u] = arguments[u];
1067
- return He(r.registered, n, sn(f));
1065
+ for (var i = arguments.length, d = new Array(i), u = 0; u < i; u++)
1066
+ d[u] = arguments[u];
1067
+ return Ue(r.registered, n, cn(d));
1068
1068
  };
1069
1069
  return {
1070
1070
  css: n,
@@ -1072,8 +1072,8 @@ var an = function(t) {
1072
1072
  injectGlobal: s,
1073
1073
  keyframes: a,
1074
1074
  hydrate: function(i) {
1075
- i.forEach(function(f) {
1076
- r.inserted[f] = !0;
1075
+ i.forEach(function(d) {
1076
+ r.inserted[d] = !0;
1077
1077
  });
1078
1078
  },
1079
1079
  flush: function() {
@@ -1081,10 +1081,10 @@ var an = function(t) {
1081
1081
  },
1082
1082
  sheet: r.sheet,
1083
1083
  cache: r,
1084
- getRegisteredStyles: at.bind(null, r.registered),
1085
- merge: He.bind(null, r.registered, n)
1084
+ getRegisteredStyles: st.bind(null, r.registered),
1085
+ merge: Ue.bind(null, r.registered, n)
1086
1086
  };
1087
- }, sn = function e(t) {
1087
+ }, cn = function e(t) {
1088
1088
  for (var r = "", n = 0; n < t.length; n++) {
1089
1089
  var a = t[n];
1090
1090
  if (a != null) {
@@ -1109,10 +1109,10 @@ var an = function(t) {
1109
1109
  }
1110
1110
  }
1111
1111
  return r;
1112
- }, cn = an({
1112
+ }, on = sn({
1113
1113
  key: "css"
1114
- }), on = cn.css;
1115
- const ln = ce(function(e, t) {
1114
+ }), ln = on.css;
1115
+ const un = ce(function(e, t) {
1116
1116
  var Le, Re, ze;
1117
1117
  const {
1118
1118
  state: r,
@@ -1122,89 +1122,96 @@ const ln = ce(function(e, t) {
1122
1122
  name: l = "",
1123
1123
  id: o = "",
1124
1124
  label: i = "",
1125
- containerClassName: f = "",
1125
+ containerClassName: d = "",
1126
1126
  inputContainerClassName: u = "",
1127
- helperText: d = "",
1128
- placeholder: b = "",
1127
+ helperText: f = "",
1128
+ placeholder: m = "",
1129
1129
  multiple: v = !1,
1130
- ...g
1131
- } = e, [p, h] = M(""), [m, N] = M(!1), k = s.filter((C) => {
1132
- const R = String(C.value ?? C.name).toLowerCase().includes(p == null ? void 0 : p.toLowerCase());
1133
- return n && n.length ? n != null && n.some ? !(n != null && n.some((K) => K.id === C.id)) : (n == null ? void 0 : n.id) !== C.id : R;
1134
- }), E = V(null), S = V(null), [P, w] = M(!1), Oe = V(null);
1135
- ne(() => {
1136
- const C = (I) => {
1137
- E.current && !E.current.contains(I.target) && N(!1);
1138
- }, R = (I) => {
1139
- I.key === "Escape" && N(!1);
1130
+ ...C
1131
+ } = e, [b, h] = I(
1132
+ v ? "" : (n == null ? void 0 : n.value) ?? (n == null ? void 0 : n.name) ?? ""
1133
+ ), [p, y] = I(!1), w = s.filter((g) => {
1134
+ const O = String(g.value ?? g.name).toLowerCase().includes(b == null ? void 0 : b.toLowerCase());
1135
+ return n && n.length ? n != null && n.some ? !(n != null && n.some((K) => K.id === g.id)) : (n == null ? void 0 : n.id) !== g.id : O;
1136
+ }), k = V(null), E = V(null), [T, N] = I(!1), Oe = V(null);
1137
+ J(() => {
1138
+ const g = (W) => {
1139
+ k.current && !k.current.contains(W.target) && y(!1);
1140
+ }, O = (W) => {
1141
+ W.key === "Escape" && y(!1);
1140
1142
  };
1141
- return document.addEventListener("mousedown", C), document.addEventListener("keydown", R), () => {
1142
- document.removeEventListener("mousedown", C), document.removeEventListener("keydown", R);
1143
+ return document.addEventListener("mousedown", g), document.addEventListener("keydown", O), () => {
1144
+ document.removeEventListener("mousedown", g), document.removeEventListener("keydown", O);
1143
1145
  };
1144
1146
  }, []);
1145
- const ot = (C) => {
1146
- h(C.target.value);
1147
+ const lt = (g) => {
1148
+ h(g.target.value);
1147
1149
  }, Fe = z(
1148
- (C) => {
1149
- h(""), C ? v ? Array.isArray(n) && n.length ? a([...n, C]) : a([C]) : a(C) : a(null), N(!1);
1150
+ (g) => {
1151
+ g ? v ? (h(""), Array.isArray(n) && n.length ? a([...n, g]) : a([g])) : (h(g.name ?? g.value), a(g)) : a(null), y(!1);
1150
1152
  },
1151
1153
  [v, a, n]
1152
1154
  ), ve = z(
1153
- (C) => {
1154
- if (C != null) {
1155
- const R = n.filter((I, K) => K !== C);
1156
- R.length ? a(R) : a(null);
1157
- } else
1155
+ (g) => {
1156
+ if (g != null)
1157
+ if (g !== -1) {
1158
+ const O = n.filter((W, K) => K !== g);
1159
+ O.length ? a(O) : a(null);
1160
+ } else {
1161
+ const [O] = n;
1162
+ console.log(O), a([O]);
1163
+ }
1164
+ else
1158
1165
  a(null);
1159
1166
  },
1160
1167
  [a, n]
1161
1168
  );
1162
- return ne(() => {
1163
- var I, K, De;
1164
- const C = ((I = Oe.current) == null ? void 0 : I.offsetWidth) ?? 0, R = ((De = (K = t ?? S) == null ? void 0 : K.current) == null ? void 0 : De.offsetWidth) ?? 0;
1165
- C > R * 0.4 ? w(!0) : w(!1);
1166
- }, [n]), /* @__PURE__ */ y(
1169
+ return J(() => {
1170
+ var W, K, De;
1171
+ const g = ((W = Oe.current) == null ? void 0 : W.offsetWidth) ?? 0, O = ((De = (K = t ?? E) == null ? void 0 : K.current) == null ? void 0 : De.offsetWidth) ?? 0;
1172
+ g > O * 0.4 ? N(!0) : N(!1);
1173
+ }, [n]), /* @__PURE__ */ x(
1167
1174
  "div",
1168
1175
  {
1169
- className: `autocomplete-input-container ${f}`,
1170
- ref: E,
1176
+ className: `autocomplete-input-container ${d}`,
1177
+ ref: k,
1171
1178
  children: [
1172
- /* @__PURE__ */ y("div", { className: "autocomplete-value-input-container", children: [
1179
+ /* @__PURE__ */ x("div", { className: "autocomplete-value-input-container", children: [
1173
1180
  /* @__PURE__ */ c(
1174
1181
  he,
1175
1182
  {
1176
1183
  state: r,
1177
1184
  name: l,
1178
1185
  id: o,
1179
- value: !v && n ? n.value ?? n.name : p,
1180
- onChange: ot,
1181
- placeholder: b,
1182
- helperText: d,
1183
- onFocus: () => N(!0),
1186
+ value: v ? (n == null ? void 0 : n.value) ?? (n == null ? void 0 : n.name) ?? "" : b,
1187
+ onChange: lt,
1188
+ placeholder: m,
1189
+ helperText: f,
1190
+ onFocus: () => y(!0),
1184
1191
  label: i,
1185
1192
  containerClassName: `autocomplete-text-input ${u}`,
1186
- ref: t ?? S,
1187
- ...g,
1193
+ ref: t ?? E,
1194
+ ...C,
1188
1195
  children: ((n == null ? void 0 : n.value) || (n == null ? void 0 : n.name)) && !v && /* @__PURE__ */ c(
1189
1196
  "button",
1190
1197
  {
1191
1198
  type: "button",
1192
1199
  className: "autocomplete-delete-button",
1193
- onClick: (C) => {
1194
- Fe(), C.stopPropagation();
1200
+ onClick: (g) => {
1201
+ console.log("hola?"), Fe(), g.stopPropagation();
1195
1202
  },
1196
1203
  children: /* @__PURE__ */ c(ke, {})
1197
1204
  }
1198
1205
  )
1199
1206
  }
1200
1207
  ),
1201
- v && Array.isArray(n) && n.length ? /* @__PURE__ */ c("ul", { ref: Oe, className: "autocomplete-value-container", children: P ? /* @__PURE__ */ y(te, { children: [
1208
+ v && Array.isArray(n) && n.length ? /* @__PURE__ */ c("ul", { ref: Oe, className: "autocomplete-value-container", children: T ? /* @__PURE__ */ x(ne, { children: [
1202
1209
  /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
1203
1210
  q,
1204
1211
  {
1205
1212
  label: ((Le = n[0]) == null ? void 0 : Le.value) ?? ((Re = n[0]) == null ? void 0 : Re.name),
1206
- onDelete: (C) => {
1207
- ve(0), C.stopPropagation();
1213
+ onDelete: (g) => {
1214
+ ve(0), g.stopPropagation();
1208
1215
  }
1209
1216
  }
1210
1217
  ) }),
@@ -1212,35 +1219,35 @@ const ln = ce(function(e, t) {
1212
1219
  q,
1213
1220
  {
1214
1221
  label: `+${n.length - 1}`,
1215
- onDelete: (C) => {
1216
- ve(), C.stopPropagation();
1222
+ onDelete: (g) => {
1223
+ ve(-1), g.stopPropagation();
1217
1224
  }
1218
1225
  }
1219
1226
  ) })
1220
- ] }) : n.map((C, R) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
1227
+ ] }) : n.map((g, O) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
1221
1228
  q,
1222
1229
  {
1223
- label: String(C.value ?? C.name),
1224
- onDelete: (I) => {
1225
- ve(R), I.stopPropagation();
1230
+ label: String(g.value ?? g.name),
1231
+ onDelete: (W) => {
1232
+ ve(O), W.stopPropagation();
1226
1233
  }
1227
1234
  }
1228
- ) }, C.id ?? C.value ?? C.name)) }) : null
1235
+ ) }, g.id ?? g.value ?? g.name)) }) : null
1229
1236
  ] }),
1230
- m && /* @__PURE__ */ c(
1237
+ p && /* @__PURE__ */ c(
1231
1238
  "ul",
1232
1239
  {
1233
- className: `autocomplete-suggestions-container ${on({ width: (ze = E.current) == null ? void 0 : ze.offsetWidth })}`,
1234
- children: k.map((C) => /* @__PURE__ */ c(
1240
+ className: `autocomplete-suggestions-container ${ln({ width: (ze = k.current) == null ? void 0 : ze.offsetWidth })}`,
1241
+ children: w.map((g) => /* @__PURE__ */ c(
1235
1242
  "li",
1236
1243
  {
1237
1244
  className: "autocomplete-suggestion-item",
1238
- onClick: (R) => {
1239
- Fe(C), R.stopPropagation();
1245
+ onClick: (O) => {
1246
+ Fe(g), O.stopPropagation();
1240
1247
  },
1241
- children: C.value ?? C.name
1248
+ children: g.value ?? g.name
1242
1249
  },
1243
- C.id ?? C.value ?? C.name
1250
+ g.id ?? g.value ?? g.name
1244
1251
  ))
1245
1252
  }
1246
1253
  )
@@ -1248,7 +1255,7 @@ const ln = ce(function(e, t) {
1248
1255
  }
1249
1256
  );
1250
1257
  });
1251
- function Ue(e, t = 25) {
1258
+ function He(e, t = 25) {
1252
1259
  if (e.length <= t)
1253
1260
  return e;
1254
1261
  const r = e.lastIndexOf(".");
@@ -1258,7 +1265,7 @@ function Ue(e, t = 25) {
1258
1265
  return n.slice(0, s) + "..." + a;
1259
1266
  }
1260
1267
  const In = ce(function(e, t) {
1261
- var N, k;
1268
+ var p, y;
1262
1269
  const {
1263
1270
  children: r,
1264
1271
  state: n = ie.default,
@@ -1267,51 +1274,52 @@ const In = ce(function(e, t) {
1267
1274
  inputClassName: l = "",
1268
1275
  labelClassName: o = "",
1269
1276
  helperText: i = "",
1270
- helperTextClassName: f = "",
1277
+ helperTextClassName: d = "",
1271
1278
  iconClassName: u = "",
1272
- value: d = "",
1273
- multiple: b = !1,
1274
- ...v
1275
- } = e, [g, p] = M([]), h = (E) => {
1276
- if (E.target.files) {
1277
- const S = Array.from(E.target.files);
1278
- p((P) => [...P, ...S]);
1279
+ multiple: f = !1,
1280
+ ...m
1281
+ } = e, [v, C] = I([]), b = (w) => {
1282
+ if (w.target.files) {
1283
+ const k = Array.from(w.target.files);
1284
+ C((E) => [...E, ...k]);
1279
1285
  }
1280
- v.onChange && v.onChange(E);
1281
- }, m = (E) => {
1282
- p((S) => S.filter((P, w) => w !== E));
1286
+ m.onChange && m.onChange(w);
1287
+ }, h = (w) => {
1288
+ C((k) => k.filter((E, T) => T !== w));
1283
1289
  };
1284
- return /* @__PURE__ */ y("div", { className: `file-input-container ${s}`, children: [
1285
- g.length === 0 && /* @__PURE__ */ y("label", { htmlFor: v.name, className: `${o}`, children: [
1290
+ return /* @__PURE__ */ x("div", { className: `file-input-container ${s}`, children: [
1291
+ v.length === 0 && /* @__PURE__ */ x("label", { htmlFor: m.name, className: `${o}`, children: [
1286
1292
  a,
1287
1293
  /* @__PURE__ */ c(
1288
1294
  "input",
1289
1295
  {
1290
1296
  type: "file",
1291
1297
  ref: t,
1292
- value: d,
1293
- multiple: b,
1294
- onChange: h,
1298
+ multiple: f,
1299
+ onClick: (w) => {
1300
+ w.currentTarget.value = "";
1301
+ },
1302
+ onChange: b,
1295
1303
  className: `file-input ${l}`,
1296
- ...v
1304
+ ...m
1297
1305
  }
1298
1306
  ),
1299
- v.required ? " *" : ""
1307
+ m.required ? " *" : ""
1300
1308
  ] }),
1301
- g.length > 1 && /* @__PURE__ */ c("ul", { className: "file-preview-list", children: g.map((E, S) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(xe, { content: E.name, children: /* @__PURE__ */ c(
1309
+ v.length > 1 && /* @__PURE__ */ c("ul", { className: "file-preview-list", children: v.map((w, k) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(xe, { content: w.name, children: /* @__PURE__ */ c(
1302
1310
  q,
1303
1311
  {
1304
- label: Ue(E.name, 25),
1305
- onDelete: () => m(S)
1312
+ label: He(w.name, 25),
1313
+ onDelete: () => h(k)
1306
1314
  }
1307
- ) }) }, S)) }),
1308
- g.length === 1 && /* @__PURE__ */ y("div", { className: "file-preview", children: [
1309
- /* @__PURE__ */ c(mt, { className: "file-icon" }),
1310
- /* @__PURE__ */ c(xe, { content: ((N = g[0]) == null ? void 0 : N.name) ?? "", className: "!cursor-default", children: /* @__PURE__ */ c("span", { children: Ue(((k = g[0]) == null ? void 0 : k.name) ?? "", 25) }) }),
1315
+ ) }) }, k)) }),
1316
+ v.length === 1 && /* @__PURE__ */ x("div", { className: "file-preview", children: [
1317
+ /* @__PURE__ */ c(bt, { className: "file-icon" }),
1318
+ /* @__PURE__ */ c(xe, { content: ((p = v[0]) == null ? void 0 : p.name) ?? "", className: "!cursor-default", children: /* @__PURE__ */ c("span", { children: He(((y = v[0]) == null ? void 0 : y.name) ?? "", 25) }) }),
1311
1319
  /* @__PURE__ */ c(
1312
1320
  "button",
1313
1321
  {
1314
- onClick: () => p([]),
1322
+ onClick: () => C([]),
1315
1323
  className: "chip-delete-button",
1316
1324
  type: "button",
1317
1325
  children: /* @__PURE__ */ c(ke, {})
@@ -1319,10 +1327,10 @@ const In = ce(function(e, t) {
1319
1327
  )
1320
1328
  ] }),
1321
1329
  r,
1322
- !!i && /* @__PURE__ */ c("p", { className: `file-input-helper-text ${f}`, children: i })
1330
+ !!i && /* @__PURE__ */ c("p", { className: `file-input-helper-text ${d}`, children: i })
1323
1331
  ] });
1324
1332
  });
1325
- function un(e) {
1333
+ function dn(e) {
1326
1334
  const {
1327
1335
  color: t = "stroke-blue-800",
1328
1336
  className: r = "",
@@ -1343,72 +1351,74 @@ function un(e) {
1343
1351
  }
1344
1352
  ) }) }) }) });
1345
1353
  }
1346
- const st = $e({});
1354
+ const ct = $e(
1355
+ {}
1356
+ );
1347
1357
  function Wn(e) {
1348
- const { children: t, t: r } = e;
1349
- return /* @__PURE__ */ c(st.Provider, { value: { t: r }, children: t });
1358
+ const { children: t, t: r, language: n } = e;
1359
+ return /* @__PURE__ */ c(ct.Provider, { value: { t: r, language: n }, children: t });
1350
1360
  }
1351
1361
  const G = () => {
1352
- const e = Se(st);
1362
+ const e = Se(ct);
1353
1363
  if (e === void 0)
1354
1364
  throw new Error("translationContext must be used within a Provider");
1355
1365
  return e;
1356
1366
  };
1357
- var U = /* @__PURE__ */ ((e) => (e[e.text = 0] = "text", e[e.number = 1] = "number", e[e.select = 2] = "select", e[e.autocomplete = 3] = "autocomplete", e[e.date = 4] = "date", e[e.check = 5] = "check", e))(U || {}), Y = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(Y || {});
1358
- const dn = [20, 50, 100], ct = $e({}), Bn = (e) => {
1359
- const { children: t } = e, [r, n] = M(0), [a, s] = M(20), [l, o] = M(0), [i, f] = M("id"), [u, d] = M(Y.DESC), [b, v] = M({}), g = z(
1360
- (k, E) => {
1361
- let S = u;
1362
- if (i === k)
1367
+ var H = /* @__PURE__ */ ((e) => (e[e.text = 0] = "text", e[e.number = 1] = "number", e[e.select = 2] = "select", e[e.autocomplete = 3] = "autocomplete", e[e.date = 4] = "date", e[e.check = 5] = "check", e))(H || {}), Y = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(Y || {});
1368
+ const fn = [20, 50, 100], it = $e({}), jn = (e) => {
1369
+ const { children: t } = e, [r, n] = I(0), [a, s] = I(20), [l, o] = I(0), [i, d] = I("id"), [u, f] = I(Y.DESC), [m, v] = I({}), C = z(
1370
+ (w, k) => {
1371
+ let E = u;
1372
+ if (i === w)
1363
1373
  switch (u) {
1364
1374
  case Y.ASC:
1365
- S = Y.DESC;
1375
+ E = Y.DESC;
1366
1376
  break;
1367
1377
  default:
1368
- S = Y.ASC;
1378
+ E = Y.ASC;
1369
1379
  break;
1370
1380
  }
1371
- f(k), d(S), E && E(k, S);
1381
+ d(w), f(E), k && k(w, E);
1372
1382
  },
1373
1383
  [i, u]
1374
- ), p = z((k) => {
1375
- const E = Object.entries(k).reduce(
1376
- (S, [P, w]) => (w && typeof w.value < "u" && (S[P] = w.value), S),
1384
+ ), b = z((w) => {
1385
+ const k = Object.entries(w).reduce(
1386
+ (E, [T, N]) => (N && typeof N.value < "u" && N.value !== null && (E[T] = N.value), E),
1377
1387
  {}
1378
1388
  );
1379
- v(E);
1389
+ v(k);
1380
1390
  }, []), h = z(
1381
- (k) => {
1382
- k ? (delete b[k.toLowerCase()], v({ ...b })) : v({});
1391
+ (w) => {
1392
+ console.log(w, m), w ? (delete m[w.toLowerCase()], v({ ...m })) : v({});
1383
1393
  },
1384
- [b]
1385
- ), m = F(() => Object.keys(b).length, [b]), N = {
1386
- onSort: g,
1394
+ [m]
1395
+ ), p = L(() => Object.keys(m).length, [m]), y = {
1396
+ onSort: C,
1387
1397
  total: r,
1388
1398
  setTotal: n,
1389
1399
  sortingBy: i,
1390
- setSortingBy: f,
1400
+ setSortingBy: d,
1391
1401
  sortingOrder: u,
1392
- setSortingOrder: d,
1402
+ setSortingOrder: f,
1393
1403
  pageSize: a,
1394
- pageSizes: dn,
1404
+ pageSizes: fn,
1395
1405
  setPageSize: s,
1396
1406
  currentPage: l,
1397
1407
  setCurrentPage: o,
1398
- filters: b,
1399
- onFilterApply: p,
1408
+ filters: m,
1409
+ onFilterApply: b,
1400
1410
  clearFilters: h,
1401
- countOfFilters: m
1411
+ countOfFilters: p
1402
1412
  };
1403
- return /* @__PURE__ */ c(ct.Provider, { value: N, children: t });
1404
- }, H = () => {
1405
- const e = Se(ct);
1413
+ return /* @__PURE__ */ c(it.Provider, { value: y, children: t });
1414
+ }, U = () => {
1415
+ const e = Se(it);
1406
1416
  if (e === void 0)
1407
1417
  throw new Error("tableOptionsContext must be used within a Provider");
1408
1418
  return e;
1409
1419
  };
1410
- var j = /* @__PURE__ */ ((e) => (e[e.update = 0] = "update", e[e.reset = 1] = "reset", e))(j || {});
1411
- const fn = (e) => {
1420
+ var M = /* @__PURE__ */ ((e) => (e[e.update = 0] = "update", e[e.reset = 1] = "reset", e))(M || {});
1421
+ const Ve = (e) => {
1412
1422
  if (e) {
1413
1423
  const t = {}, r = Object.keys(e);
1414
1424
  return r == null || r.forEach((n) => {
@@ -1420,9 +1430,9 @@ const fn = (e) => {
1420
1430
  function hn(e, t) {
1421
1431
  const { type: r } = t;
1422
1432
  switch (r) {
1423
- case j.reset:
1433
+ case M.reset:
1424
1434
  return {};
1425
- case j.update: {
1435
+ case M.update: {
1426
1436
  const { toUpdate: n } = t;
1427
1437
  return { ...e, ...n };
1428
1438
  }
@@ -1430,41 +1440,50 @@ function hn(e, t) {
1430
1440
  return e;
1431
1441
  }
1432
1442
  }
1433
- const it = $e({}), pn = (e) => {
1434
- const { children: t } = e, { filters: r } = H(), [n, a] = lt(
1443
+ const ot = $e({}), pn = (e) => {
1444
+ const { children: t } = e, { filters: r } = U(), [n, a] = ut(
1435
1445
  hn,
1436
- fn(r)
1437
- ), s = {
1446
+ Ve(r)
1447
+ );
1448
+ J(() => {
1449
+ a({ type: M.reset });
1450
+ const l = Ve(r);
1451
+ Object.keys(l).length && a({
1452
+ type: M.update,
1453
+ toUpdate: l
1454
+ });
1455
+ }, [r]);
1456
+ const s = {
1438
1457
  currentFilters: n,
1439
1458
  setCurrentFilters: a
1440
1459
  };
1441
- return /* @__PURE__ */ c(it.Provider, { value: s, children: t });
1442
- }, X = () => {
1443
- const e = Se(it);
1460
+ return /* @__PURE__ */ c(ot.Provider, { value: s, children: t });
1461
+ }, ee = () => {
1462
+ const e = Se(ot);
1444
1463
  if (e === void 0)
1445
1464
  throw new Error("tableOptionsContext must be used within a Provider");
1446
1465
  return e;
1447
1466
  };
1448
1467
  function mn(e) {
1449
- const { t } = G(), { entity: r = "", columns: n = [], hasAction: a = !0, onSortCallback: s } = e, { onSort: l, sortingOrder: o, sortingBy: i } = H(), f = F(() => {
1468
+ const { t } = G(), { entity: r = "", columns: n = [], hasAction: a = !0, onSortCallback: s } = e, { onSort: l, sortingOrder: o, sortingBy: i } = U(), d = L(() => {
1450
1469
  var u;
1451
- return (u = n.sort((d, b) => (b.pos ?? 0) - (d.pos ?? 0)).filter((d) => d.display !== "none")) == null ? void 0 : u.map((d) => ({
1452
- id: d.key,
1453
- label: d.label,
1454
- className: d.className ?? "",
1455
- sortable: d.sortable ?? !0,
1456
- sortOptions: d.sortOptions
1470
+ return (u = n.sort((f, m) => (m.pos ?? 0) - (f.pos ?? 0)).filter((f) => f.display !== "none")) == null ? void 0 : u.map((f) => ({
1471
+ id: f.key,
1472
+ label: f.label,
1473
+ className: f.className ?? "",
1474
+ sortable: f.sortable ?? !0,
1475
+ sortOptions: f.sortOptions
1457
1476
  }));
1458
1477
  }, [n, r, t]);
1459
- return /* @__PURE__ */ c("thead", { className: "table-headers-row", children: /* @__PURE__ */ y("tr", { children: [
1460
- f.map((u) => {
1461
- var d, b, v, g, p, h, m, N;
1478
+ return /* @__PURE__ */ c("thead", { className: "table-headers-row", children: /* @__PURE__ */ x("tr", { children: [
1479
+ d.map((u) => {
1480
+ var f, m, v, C, b, h, p, y;
1462
1481
  return /* @__PURE__ */ c(
1463
1482
  "th",
1464
1483
  {
1465
1484
  scope: "col",
1466
1485
  className: `table-headers-column ${u.className}`,
1467
- children: /* @__PURE__ */ y(
1486
+ children: /* @__PURE__ */ x(
1468
1487
  "button",
1469
1488
  {
1470
1489
  disabled: !u.sortable,
@@ -1472,15 +1491,15 @@ function mn(e) {
1472
1491
  className: "table-headers-cell",
1473
1492
  children: [
1474
1493
  /* @__PURE__ */ c("span", { className: "table-headers-label", children: u.label }),
1475
- u.sortable && i === u.id && /* @__PURE__ */ c("span", { children: o === Y.ASC ? ((b = (d = u.sortOptions) == null ? void 0 : d.icons) == null ? void 0 : b.asc) ?? /* @__PURE__ */ c(
1476
- dt,
1494
+ u.sortable && i === u.id && /* @__PURE__ */ c("span", { children: o === Y.ASC ? ((m = (f = u.sortOptions) == null ? void 0 : f.icons) == null ? void 0 : m.asc) ?? /* @__PURE__ */ c(
1495
+ ft,
1477
1496
  {
1478
- className: ((g = (v = u.sortOptions) == null ? void 0 : v.icons) == null ? void 0 : g.className) ?? "table-headers-sort-indicator"
1497
+ className: ((C = (v = u.sortOptions) == null ? void 0 : v.icons) == null ? void 0 : C.className) ?? "table-headers-sort-indicator"
1479
1498
  }
1480
- ) : ((h = (p = u.sortOptions) == null ? void 0 : p.icons) == null ? void 0 : h.desc) ?? /* @__PURE__ */ c(
1481
- ut,
1499
+ ) : ((h = (b = u.sortOptions) == null ? void 0 : b.icons) == null ? void 0 : h.desc) ?? /* @__PURE__ */ c(
1500
+ dt,
1482
1501
  {
1483
- className: ((N = (m = u.sortOptions) == null ? void 0 : m.icons) == null ? void 0 : N.className) ?? "table-headers-sort-indicator"
1502
+ className: ((y = (p = u.sortOptions) == null ? void 0 : p.icons) == null ? void 0 : y.className) ?? "table-headers-sort-indicator"
1484
1503
  }
1485
1504
  ) })
1486
1505
  ]
@@ -1498,8 +1517,8 @@ function bn() {
1498
1517
  return /* @__PURE__ */ c("div", { className: "table-empty", children: /* @__PURE__ */ c("p", { children: e("_accessibility:components.table.empty") }) });
1499
1518
  }
1500
1519
  const gn = () => {
1501
- const { t: e } = G(), { total: t, pageSize: r, currentPage: n, setCurrentPage: a } = H();
1502
- return /* @__PURE__ */ y("div", { className: "table-navigation-pages", children: [
1520
+ const { t: e } = G(), { total: t, pageSize: r, currentPage: n, setCurrentPage: a } = U();
1521
+ return /* @__PURE__ */ x("div", { className: "table-navigation-pages", children: [
1503
1522
  /* @__PURE__ */ c(
1504
1523
  "button",
1505
1524
  {
@@ -1508,7 +1527,7 @@ const gn = () => {
1508
1527
  "aria-label": e("_accessibility:buttons.previous"),
1509
1528
  name: e("_accessibility:buttons.previous"),
1510
1529
  onClick: () => a(n - 1),
1511
- children: /* @__PURE__ */ c(ht, { className: "w-2.5" })
1530
+ children: /* @__PURE__ */ c(pt, { className: "w-2.5" })
1512
1531
  }
1513
1532
  ),
1514
1533
  /* @__PURE__ */ c(
@@ -1519,14 +1538,14 @@ const gn = () => {
1519
1538
  name: e("_accessibility:buttons.next"),
1520
1539
  "aria-label": e("_accessibility:buttons.next"),
1521
1540
  onClick: () => a(n + 1),
1522
- children: /* @__PURE__ */ c(ft, { className: "w-2.5" })
1541
+ children: /* @__PURE__ */ c(ht, { className: "w-2.5" })
1523
1542
  }
1524
1543
  )
1525
1544
  ] });
1526
1545
  }, vn = () => {
1527
- const { t: e } = G(), { total: t, pageSize: r, pageSizes: n, currentPage: a } = H(), s = (a + 1) * r > t ? t : (a + 1) * r;
1528
- return /* @__PURE__ */ y("div", { className: "table-navigation-sizes", children: [
1529
- n[0] < t && /* @__PURE__ */ c(te, { children: /* @__PURE__ */ y("p", { children: [
1546
+ const { t: e } = G(), { total: t, pageSize: r, pageSizes: n, currentPage: a } = U(), s = (a + 1) * r > t ? t : (a + 1) * r;
1547
+ return /* @__PURE__ */ x("div", { className: "table-navigation-sizes", children: [
1548
+ n[0] < t && /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ x("p", { children: [
1530
1549
  a * r + 1,
1531
1550
  " - ",
1532
1551
  s,
@@ -1537,11 +1556,11 @@ const gn = () => {
1537
1556
  ] });
1538
1557
  };
1539
1558
  function Cn() {
1540
- const { t: e } = G(), { pageSizes: t, pageSize: r, setPageSize: n } = H(), a = F(
1559
+ const { t: e } = G(), { pageSizes: t, pageSize: r, setPageSize: n } = U(), a = L(
1541
1560
  () => t == null ? void 0 : t.map((s) => ({ id: s, value: s })),
1542
1561
  [t]
1543
1562
  );
1544
- return /* @__PURE__ */ y("div", { className: "page-size", children: [
1563
+ return /* @__PURE__ */ x("div", { className: "page-size", children: [
1545
1564
  /* @__PURE__ */ c("p", { children: e("_accessibility:components.table.pageSizes") }),
1546
1565
  /* @__PURE__ */ c(
1547
1566
  Ee,
@@ -1557,14 +1576,14 @@ function Cn() {
1557
1576
  ] });
1558
1577
  }
1559
1578
  function wn() {
1560
- const { t: e } = G(), { total: t, pageSize: r, currentPage: n, setCurrentPage: a } = H(), s = F(() => {
1579
+ const { t: e } = G(), { total: t, pageSize: r, currentPage: n, setCurrentPage: a } = U(), s = L(() => {
1561
1580
  const l = Math.ceil(t / r);
1562
1581
  return Array.from({ length: l }, (o, i) => ({
1563
1582
  id: i,
1564
1583
  value: i + 1
1565
1584
  }));
1566
1585
  }, [t, r]);
1567
- return /* @__PURE__ */ y("div", { className: "jump-to-page", children: [
1586
+ return /* @__PURE__ */ x("div", { className: "jump-to-page", children: [
1568
1587
  /* @__PURE__ */ c("p", { children: e("_accessibility:components.table.jumpToPage") }),
1569
1588
  /* @__PURE__ */ c(
1570
1589
  Ee,
@@ -1580,7 +1599,7 @@ function wn() {
1580
1599
  ] });
1581
1600
  }
1582
1601
  function Nn() {
1583
- return /* @__PURE__ */ y("div", { className: "table-footer", children: [
1602
+ return /* @__PURE__ */ x("div", { className: "table-footer", children: [
1584
1603
  /* @__PURE__ */ c(wn, {}),
1585
1604
  /* @__PURE__ */ c(Cn, {}),
1586
1605
  /* @__PURE__ */ c(vn, {}),
@@ -1588,12 +1607,12 @@ function Nn() {
1588
1607
  ] });
1589
1608
  }
1590
1609
  const yn = (e) => {
1591
- const { items: t, label: r, onClearFilter: n } = e;
1610
+ const { items: t, label: r, id: n, onClearFilter: a } = e;
1592
1611
  return /* @__PURE__ */ c(
1593
1612
  q,
1594
1613
  {
1595
- label: `${r}: ${t.map((a) => a.value ?? a.name).join(", ")}`,
1596
- onDelete: () => n(r)
1614
+ label: `${r}: ${t.map((s) => s.value ?? s.name).join(", ")}`,
1615
+ onDelete: () => a(n)
1597
1616
  }
1598
1617
  );
1599
1618
  }, xn = (e) => {
@@ -1607,17 +1626,18 @@ const yn = (e) => {
1607
1626
  );
1608
1627
  };
1609
1628
  const $n = (e) => {
1610
- const { filtersDefinition: t } = e, r = F(() => {
1629
+ const { filtersDefinition: t } = e, r = L(() => {
1611
1630
  const o = {};
1612
1631
  return t.forEach((i) => {
1613
1632
  o[i.propertyName] = i.label ?? i.propertyName;
1614
1633
  }), o;
1615
- }, [t]), { filters: n, clearFilters: a } = H(), s = F(() => Object.keys(n), [n]), l = z(
1634
+ }, [t]), { filters: n, clearFilters: a } = U(), s = L(() => Object.keys(n), [n]), l = z(
1616
1635
  (o) => {
1617
- var i, f;
1618
- return n[o].end || n[o].start ? /* @__PURE__ */ c(
1636
+ var i, d, u, f;
1637
+ return (i = n[o]) != null && i.end || (d = n[o]) != null && d.start ? /* @__PURE__ */ c(
1619
1638
  xn,
1620
1639
  {
1640
+ id: o,
1621
1641
  label: r[o],
1622
1642
  start: n[o].start,
1623
1643
  end: n[o].end,
@@ -1626,6 +1646,7 @@ const $n = (e) => {
1626
1646
  ) : Array.isArray(n[o]) ? /* @__PURE__ */ c(
1627
1647
  yn,
1628
1648
  {
1649
+ id: o,
1629
1650
  label: r[o],
1630
1651
  items: n[o],
1631
1652
  onClearFilter: a
@@ -1633,7 +1654,7 @@ const $n = (e) => {
1633
1654
  ) : /* @__PURE__ */ c(
1634
1655
  q,
1635
1656
  {
1636
- label: `${r[o]}: ${((i = n[o]) == null ? void 0 : i.value) ?? ((f = n[o]) == null ? void 0 : f.name) ?? n[o]}`,
1657
+ label: `${r[o]}: ${((u = n[o]) == null ? void 0 : u.value) ?? ((f = n[o]) == null ? void 0 : f.name) ?? n[o]}`,
1637
1658
  onDelete: () => a(o)
1638
1659
  }
1639
1660
  );
@@ -1643,13 +1664,13 @@ const $n = (e) => {
1643
1664
  return /* @__PURE__ */ c("ul", { className: "active-filters-main", children: s == null ? void 0 : s.map((o) => /* @__PURE__ */ c("li", { children: l(o) }, o)) });
1644
1665
  };
1645
1666
  function Sn(e) {
1646
- const { propertyName: t, options: r, label: n, placeholder: a } = e, { currentFilters: s, setCurrentFilters: l } = X(), o = F(() => {
1647
- var f;
1648
- return ((f = s[t]) == null ? void 0 : f.value) ?? r[0];
1649
- }, [s]), i = z((f) => {
1667
+ const { propertyName: t, options: r, label: n, placeholder: a } = e, { currentFilters: s, setCurrentFilters: l } = ee(), o = L(() => {
1668
+ var d;
1669
+ return ((d = s[t]) == null ? void 0 : d.value) ?? r[0];
1670
+ }, [s]), i = z((d) => {
1650
1671
  l({
1651
- type: j.update,
1652
- toUpdate: { [t]: { value: f.target.value } }
1672
+ type: M.update,
1673
+ toUpdate: { [t]: { value: d.target.value } }
1653
1674
  });
1654
1675
  }, []);
1655
1676
  return /* @__PURE__ */ c(
@@ -1666,12 +1687,12 @@ function Sn(e) {
1666
1687
  );
1667
1688
  }
1668
1689
  const kn = (e) => {
1669
- const { propertyName: t, label: r, placeholder: n } = e, { currentFilters: a, setCurrentFilters: s } = X(), l = F(() => {
1690
+ const { propertyName: t, label: r, placeholder: n } = e, { currentFilters: a, setCurrentFilters: s } = ee(), l = L(() => {
1670
1691
  var i;
1671
1692
  return ((i = a[t]) == null ? void 0 : i.value) ?? "";
1672
1693
  }, [a]), o = z((i) => {
1673
1694
  s({
1674
- type: j.update,
1695
+ type: M.update,
1675
1696
  toUpdate: { [t]: { value: i.target.value } }
1676
1697
  });
1677
1698
  }, []);
@@ -1687,22 +1708,22 @@ const kn = (e) => {
1687
1708
  }
1688
1709
  );
1689
1710
  }, En = (e) => {
1690
- const { propertyName: t, label: r } = e, { currentFilters: n, setCurrentFilters: a } = X(), s = F(() => {
1711
+ const { propertyName: t, label: r } = e, { currentFilters: n, setCurrentFilters: a } = ee(), s = L(() => {
1691
1712
  var o;
1692
1713
  return ((o = n[t]) == null ? void 0 : o.value) ?? "";
1693
1714
  }, [n]), l = z((o) => {
1694
1715
  a({
1695
- type: j.update,
1716
+ type: M.update,
1696
1717
  toUpdate: { [t]: { value: o.target.checked } }
1697
1718
  });
1698
1719
  }, []);
1699
- return /* @__PURE__ */ c(bt, { label: r, checked: s ?? !1, onChange: l });
1720
+ return /* @__PURE__ */ c(gt, { label: r, checked: s ?? !1, onChange: l });
1700
1721
  };
1701
1722
  function An(e) {
1702
- const { propertyName: t, label: r, placeholder: n, options: a, multiple: s = !0 } = e, { currentFilters: l, setCurrentFilters: o } = X(), i = F(() => l[t] ?? a[0], [l]), f = z(
1723
+ const { propertyName: t, label: r, placeholder: n, options: a, multiple: s = !0 } = e, { currentFilters: l, setCurrentFilters: o } = ee(), i = L(() => l[t] ?? a[0], [l]), d = z(
1703
1724
  (u) => {
1704
1725
  o({
1705
- type: j.update,
1726
+ type: M.update,
1706
1727
  toUpdate: {
1707
1728
  [t]: {
1708
1729
  value: u
@@ -1713,7 +1734,7 @@ function An(e) {
1713
1734
  [s]
1714
1735
  );
1715
1736
  return /* @__PURE__ */ c(
1716
- ln,
1737
+ un,
1717
1738
  {
1718
1739
  value: i == null ? void 0 : i.value,
1719
1740
  label: r,
@@ -1721,48 +1742,48 @@ function An(e) {
1721
1742
  multiple: s,
1722
1743
  helperTextClassName: "hidden",
1723
1744
  containerClassName: "options-widget-container",
1724
- onChange: f,
1745
+ onChange: d,
1725
1746
  placeholder: n
1726
1747
  }
1727
1748
  );
1728
1749
  }
1729
- const Ve = (e) => {
1730
- var d, b, v, g;
1731
- const { propertyName: t, label: r, inputType: n } = e, { t: a } = G(), { currentFilters: s, setCurrentFilters: l } = X(), o = V(null), i = V(null), f = z((p) => {
1750
+ const qe = (e) => {
1751
+ var f, m, v, C;
1752
+ const { propertyName: t, label: r, inputType: n } = e, { t: a } = G(), { currentFilters: s, setCurrentFilters: l } = ee(), o = V(null), i = V(null), d = z((b) => {
1732
1753
  var h;
1733
1754
  l({
1734
- type: j.update,
1755
+ type: M.update,
1735
1756
  toUpdate: {
1736
1757
  [t]: {
1737
- value: { end: ((h = i == null ? void 0 : i.current) == null ? void 0 : h.value) ?? null, start: p.target.value }
1758
+ value: { end: ((h = i == null ? void 0 : i.current) == null ? void 0 : h.value) ?? null, start: b.target.value }
1738
1759
  }
1739
1760
  }
1740
1761
  });
1741
- }, []), u = z((p) => {
1762
+ }, []), u = z((b) => {
1742
1763
  var h;
1743
1764
  l({
1744
- type: j.update,
1765
+ type: M.update,
1745
1766
  toUpdate: {
1746
1767
  [t]: {
1747
1768
  value: {
1748
1769
  start: ((h = o == null ? void 0 : o.current) == null ? void 0 : h.value) ?? null,
1749
- end: p.target.value
1770
+ end: b.target.value
1750
1771
  }
1751
1772
  }
1752
1773
  }
1753
1774
  });
1754
1775
  }, []);
1755
- return /* @__PURE__ */ y("div", { className: "range-widget-container", children: [
1776
+ return /* @__PURE__ */ x("div", { className: "range-widget-container", children: [
1756
1777
  /* @__PURE__ */ c("p", { className: "text-input-label input-widget-label input-label-normal", children: r }),
1757
- /* @__PURE__ */ y("div", { className: "range-widget-row", children: [
1778
+ /* @__PURE__ */ x("div", { className: "range-widget-row", children: [
1758
1779
  /* @__PURE__ */ c(
1759
1780
  he,
1760
1781
  {
1761
- value: ((b = (d = s[t]) == null ? void 0 : d.value) == null ? void 0 : b.start) ?? "",
1782
+ value: ((m = (f = s[t]) == null ? void 0 : f.value) == null ? void 0 : m.start) ?? "",
1762
1783
  placeholder: a("_accessibility:components.table.filters.range.start"),
1763
1784
  type: n,
1764
1785
  ref: o,
1765
- onChange: f,
1786
+ onChange: d,
1766
1787
  containerClassName: "input-widget-container",
1767
1788
  helperTextClassName: ""
1768
1789
  }
@@ -1770,7 +1791,7 @@ const Ve = (e) => {
1770
1791
  /* @__PURE__ */ c(
1771
1792
  he,
1772
1793
  {
1773
- value: ((g = (v = s[t]) == null ? void 0 : v.value) == null ? void 0 : g.end) ?? "",
1794
+ value: ((C = (v = s[t]) == null ? void 0 : v.value) == null ? void 0 : C.end) ?? "",
1774
1795
  placeholder: a("_accessibility:components.table.filters.range.end"),
1775
1796
  type: n,
1776
1797
  ref: i,
@@ -1783,59 +1804,59 @@ const Ve = (e) => {
1783
1804
  ] });
1784
1805
  }, Pn = (e) => {
1785
1806
  switch (e.type) {
1786
- case U.text:
1807
+ case H.text:
1787
1808
  return /* @__PURE__ */ c(kn, { ...e });
1788
- case U.number:
1809
+ case H.number:
1789
1810
  return /* @__PURE__ */ c(
1790
- Ve,
1811
+ qe,
1791
1812
  {
1792
1813
  ...e,
1793
1814
  inputType: "number"
1794
1815
  }
1795
1816
  );
1796
- case U.date:
1817
+ case H.date:
1797
1818
  return /* @__PURE__ */ c(
1798
- Ve,
1819
+ qe,
1799
1820
  {
1800
1821
  ...e,
1801
1822
  inputType: "date"
1802
1823
  }
1803
1824
  );
1804
- case U.select:
1825
+ case H.select:
1805
1826
  return /* @__PURE__ */ c(Sn, { ...e });
1806
- case U.autocomplete:
1827
+ case H.autocomplete:
1807
1828
  return /* @__PURE__ */ c(An, { ...e });
1808
- case U.check:
1829
+ case H.check:
1809
1830
  return /* @__PURE__ */ c(En, { ...e });
1810
1831
  }
1811
- return /* @__PURE__ */ c(te, {});
1832
+ return /* @__PURE__ */ c(ne, {});
1812
1833
  };
1813
1834
  const Tn = (e) => {
1814
- const { filters: t = [], options: r, show: n, handleShow: a } = e, { onFilterApply: s, filters: l } = H(), { currentFilters: o, setCurrentFilters: i } = X(), { t: f } = G(), u = V(null);
1815
- return ne(() => {
1816
- const d = ({ target: b }) => {
1817
- var v;
1818
- u.current && (!n || (v = u.current) != null && v.contains(b) || a(!1));
1835
+ const { filters: t = [], show: r, handleShow: n } = e, { onFilterApply: a } = U(), { currentFilters: s, setCurrentFilters: l } = ee(), { t: o } = G(), i = V(null);
1836
+ return J(() => {
1837
+ const d = ({ target: u }) => {
1838
+ var f;
1839
+ i.current && (!r || (f = i.current) != null && f.contains(u) || n(!1));
1819
1840
  };
1820
1841
  return document.addEventListener("click", d), () => document.removeEventListener("click", d);
1821
- }), ne(() => {
1822
- const d = (b) => {
1823
- !n || b.code !== "Escape" || a(!1);
1842
+ }), J(() => {
1843
+ const d = (u) => {
1844
+ !r || u.code !== "Escape" || n(!1);
1824
1845
  };
1825
1846
  return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
1826
- }), /* @__PURE__ */ c("div", { className: `filter-dropdown-backdrop ${n ? "opened" : "closed"}`, children: /* @__PURE__ */ y("div", { className: "filter-popup", children: [
1827
- /* @__PURE__ */ c("div", { className: "filter-title", children: f("_accessibility:buttons.filters") }),
1847
+ }), /* @__PURE__ */ c("div", { className: `filter-dropdown-backdrop ${r ? "opened" : "closed"}`, children: /* @__PURE__ */ x("div", { className: "filter-popup", children: [
1848
+ /* @__PURE__ */ c("div", { className: "filter-title", children: o("_accessibility:buttons.filters") }),
1828
1849
  /* @__PURE__ */ c("ul", { className: "filter-container", children: t.map((d) => /* @__PURE__ */ c("li", { className: "filter-container-item", children: Pn(d) }, d.propertyName)) }),
1829
- /* @__PURE__ */ c("div", { className: "filter-footer", children: /* @__PURE__ */ y("ul", { className: "filter-buttons-row", children: [
1850
+ /* @__PURE__ */ c("div", { className: "filter-footer", children: /* @__PURE__ */ x("ul", { className: "filter-buttons-row", children: [
1830
1851
  /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
1831
1852
  "button",
1832
1853
  {
1833
- onClick: () => i({
1834
- type: j.reset,
1854
+ onClick: () => l({
1855
+ type: M.reset,
1835
1856
  filters: t
1836
1857
  }),
1837
1858
  className: "filter-dropdown-button small filter-dropdown-cancel",
1838
- children: f("_accessibility:buttons.clear")
1859
+ children: o("_accessibility:buttons.clear")
1839
1860
  }
1840
1861
  ) }),
1841
1862
  /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
@@ -1843,57 +1864,57 @@ const Tn = (e) => {
1843
1864
  {
1844
1865
  className: "filter-dropdown-button small filter-dropdown-submit",
1845
1866
  onClick: () => {
1846
- a(!1), s(o);
1867
+ n(!1), a(s);
1847
1868
  },
1848
- onBlur: () => a(!1),
1849
- children: f("_accessibility:buttons.applyFilters")
1869
+ onBlur: () => n(!1),
1870
+ children: o("_accessibility:buttons.applyFilters")
1850
1871
  }
1851
1872
  ) })
1852
1873
  ] }) })
1853
1874
  ] }) });
1854
1875
  }, On = (e) => {
1855
- var v, g, p;
1856
- const { columns: t, title: r, isLoading: n, toolbar: a, filterOptions: s } = e, { countOfFilters: l } = H(), { t: o } = G(), i = F(() => t ? t.sort((h, m) => (m.pos ?? 0) - (h.pos ?? 0)).filter((h) => !!h.filterOptions).map((h) => {
1857
- var m;
1876
+ var v, C, b;
1877
+ const { columns: t, title: r, isLoading: n, toolbar: a, filterOptions: s } = e, { countOfFilters: l } = U(), { t: o } = G(), i = L(() => t ? t.sort((h, p) => (p.pos ?? 0) - (h.pos ?? 0)).filter((h) => !!h.filterOptions).map((h) => {
1878
+ var p;
1858
1879
  return {
1859
1880
  ...h.filterOptions,
1860
- label: ((m = h.filterOptions) == null ? void 0 : m.label) ?? h.label,
1881
+ label: ((p = h.filterOptions) == null ? void 0 : p.label) ?? h.label,
1861
1882
  propertyName: h.key
1862
1883
  };
1863
- }) : [], [t]), [f, u] = M(!1), d = z(
1884
+ }) : [], [t]), [d, u] = I(!1), f = z(
1864
1885
  (h) => {
1865
- var m, N;
1866
- ((N = (m = s == null ? void 0 : s.dropdown) == null ? void 0 : m.setOpened) == null ? void 0 : N.call(m, h ?? !1)) ?? u(h ?? !1);
1886
+ var p, y;
1887
+ ((y = (p = s == null ? void 0 : s.dropdown) == null ? void 0 : p.setOpened) == null ? void 0 : y.call(p, h ?? !1)) ?? u(h ?? !1);
1867
1888
  },
1868
- [s, f]
1869
- ), b = F(
1889
+ [s, d]
1890
+ ), m = L(
1870
1891
  () => {
1871
1892
  var h;
1872
- return ((h = s == null ? void 0 : s.dropdown) == null ? void 0 : h.opened) ?? f;
1893
+ return ((h = s == null ? void 0 : s.dropdown) == null ? void 0 : h.opened) ?? d;
1873
1894
  },
1874
- [s, f]
1895
+ [s, d]
1875
1896
  );
1876
- return /* @__PURE__ */ y(
1897
+ return /* @__PURE__ */ x(
1877
1898
  "div",
1878
1899
  {
1879
1900
  className: `table-header ${r && (a || !((v = s == null ? void 0 : s.button) != null && v.hide)) ? "two" : "one"}`,
1880
1901
  children: [
1881
- /* @__PURE__ */ y("div", { children: [
1902
+ /* @__PURE__ */ x("div", { children: [
1882
1903
  r && /* @__PURE__ */ c("h1", { className: "table-header-title", children: r }),
1883
- n ? null : /* @__PURE__ */ y("div", { className: "table-header-right", children: [
1904
+ n ? null : /* @__PURE__ */ x("div", { className: "table-header-right", children: [
1884
1905
  a,
1885
- ((g = s == null ? void 0 : s.button) == null ? void 0 : g.hide) !== !0 && /* @__PURE__ */ y(
1906
+ ((C = s == null ? void 0 : s.button) == null ? void 0 : C.hide) !== !0 && /* @__PURE__ */ x(
1886
1907
  "button",
1887
1908
  {
1888
1909
  className: "filter-dropdown-button normal filter-dropdown-trigger",
1889
1910
  "aria-haspopup": "true",
1890
1911
  onClick: () => {
1891
1912
  var h;
1892
- return d(
1893
- ((h = s == null ? void 0 : s.dropdown) == null ? void 0 : h.opened) ?? !f
1913
+ return f(
1914
+ ((h = s == null ? void 0 : s.dropdown) == null ? void 0 : h.opened) ?? !d
1894
1915
  );
1895
1916
  },
1896
- "aria-expanded": b,
1917
+ "aria-expanded": m,
1897
1918
  children: [
1898
1919
  /* @__PURE__ */ c(
1899
1920
  Rn,
@@ -1904,7 +1925,7 @@ const Tn = (e) => {
1904
1925
  ),
1905
1926
  /* @__PURE__ */ c("span", { className: "sr-only", children: o("_accessibility:buttons.filters") }),
1906
1927
  /* @__PURE__ */ c("wbr", {}),
1907
- ((p = s == null ? void 0 : s.button) == null ? void 0 : p.icon) ?? /* @__PURE__ */ c(pt, { className: "filter-dropdown-trigger-icon" })
1928
+ ((b = s == null ? void 0 : s.button) == null ? void 0 : b.icon) ?? /* @__PURE__ */ c(mt, { className: "filter-dropdown-trigger-icon" })
1908
1929
  ]
1909
1930
  }
1910
1931
  )
@@ -1915,8 +1936,8 @@ const Tn = (e) => {
1915
1936
  Tn,
1916
1937
  {
1917
1938
  filters: i,
1918
- show: b,
1919
- handleShow: d,
1939
+ show: m,
1940
+ handleShow: f,
1920
1941
  options: s
1921
1942
  }
1922
1943
  )
@@ -1924,21 +1945,21 @@ const Tn = (e) => {
1924
1945
  }
1925
1946
  );
1926
1947
  }, Fn = (e) => e, Ln = (e) => {
1927
- const { columns: t, softDeleteProperty: r = "deleted", data: n, actions: a } = e, s = F(
1948
+ const { columns: t, softDeleteProperty: r = "deleted", data: n, actions: a } = e, s = L(
1928
1949
  () => t.sort((l, o) => (o.pos ?? 0) - (l.pos ?? 0)).filter((l) => l.display !== "none"),
1929
1950
  [t]
1930
1951
  );
1931
1952
  return n == null ? void 0 : n.map((l) => {
1932
1953
  var o;
1933
- return /* @__PURE__ */ y(
1954
+ return /* @__PURE__ */ x(
1934
1955
  "tr",
1935
1956
  {
1936
1957
  className: `table-row ${l[r] ? "deleted-class" : ""}`,
1937
1958
  children: [
1938
- s == null ? void 0 : s.map((i, f) => /* @__PURE__ */ c(
1959
+ s == null ? void 0 : s.map((i, d) => /* @__PURE__ */ c(
1939
1960
  "td",
1940
1961
  {
1941
- className: `table-row-cell ${f === 0 ? "basic" : ""} ${i.className ?? ""}`,
1962
+ className: `table-row-cell ${d === 0 ? "basic" : ""} ${i.className ?? ""}`,
1942
1963
  children: i.renderBody ? i.renderBody(l[i.key], l) : Fn(l[i.key])
1943
1964
  },
1944
1965
  i.key
@@ -1950,7 +1971,7 @@ const Tn = (e) => {
1950
1971
  );
1951
1972
  });
1952
1973
  };
1953
- function _n(e) {
1974
+ function Bn(e) {
1954
1975
  const {
1955
1976
  data: t,
1956
1977
  onSort: r,
@@ -1960,13 +1981,13 @@ function _n(e) {
1960
1981
  columns: l = [],
1961
1982
  contentClassName: o = "",
1962
1983
  className: i = "",
1963
- softDeleteProperty: f = "deleted",
1984
+ softDeleteProperty: d = "deleted",
1964
1985
  ...u
1965
- } = e, d = F(() => !(t != null && t.length), [t]);
1966
- return /* @__PURE__ */ c(pn, { children: /* @__PURE__ */ y("div", { className: `${i} table-main`, children: [
1986
+ } = e, f = L(() => !(t != null && t.length), [t]);
1987
+ return /* @__PURE__ */ c(pn, { children: /* @__PURE__ */ x("div", { className: `${i} table-main`, children: [
1967
1988
  /* @__PURE__ */ c(On, { columns: l, isLoading: a, ...u }),
1968
- a ? /* @__PURE__ */ c(un, { className: "table-loading" }) : /* @__PURE__ */ c(te, { children: d ? /* @__PURE__ */ c(bn, {}) : /* @__PURE__ */ y(te, { children: [
1969
- /* @__PURE__ */ c("div", { className: `${o} table-body`, children: /* @__PURE__ */ y("table", { className: "table-content", children: [
1989
+ a ? /* @__PURE__ */ c(dn, { className: "table-loading" }) : /* @__PURE__ */ c(ne, { children: f ? /* @__PURE__ */ c(bn, {}) : /* @__PURE__ */ x(ne, { children: [
1990
+ /* @__PURE__ */ c("div", { className: `${o} table-body`, children: /* @__PURE__ */ x("table", { className: "table-content", children: [
1970
1991
  /* @__PURE__ */ c(
1971
1992
  mn,
1972
1993
  {
@@ -1982,7 +2003,7 @@ function _n(e) {
1982
2003
  data: t,
1983
2004
  actions: s,
1984
2005
  columns: l,
1985
- softDeleteProperty: f
2006
+ softDeleteProperty: d
1986
2007
  }
1987
2008
  ) })
1988
2009
  ] }) }),
@@ -1992,21 +2013,21 @@ function _n(e) {
1992
2013
  }
1993
2014
  function xe(e) {
1994
2015
  const { content: t, children: r, className: n = "" } = e;
1995
- return /* @__PURE__ */ y("div", { className: `tooltip-container ${n}`, children: [
2016
+ return /* @__PURE__ */ x("div", { className: `tooltip-container ${n}`, children: [
1996
2017
  r,
1997
2018
  /* @__PURE__ */ c("div", { className: "tooltip-text", children: t })
1998
2019
  ] });
1999
2020
  }
2000
2021
  function q(e) {
2001
2022
  const { label: t, onDelete: r, className: n = "", spanClassName: a = "" } = e;
2002
- return /* @__PURE__ */ y("div", { className: `chip-main ${n}`, children: [
2023
+ return /* @__PURE__ */ x("div", { className: `chip-main ${n}`, children: [
2003
2024
  /* @__PURE__ */ c("span", { className: a, children: t }),
2004
2025
  r ? /* @__PURE__ */ c("button", { type: "button", className: "chip-delete-button", onClick: r, children: /* @__PURE__ */ c(ke, {}) }) : null
2005
2026
  ] });
2006
2027
  }
2007
2028
  const Rn = (e) => {
2008
2029
  const { count: t, className: r = "" } = e, n = V(null);
2009
- return ne(() => {
2030
+ return J(() => {
2010
2031
  var a, s;
2011
2032
  (a = n.current) != null && a.parentNode && (((s = n.current) == null ? void 0 : s.parentNode).style.position = "relative");
2012
2033
  }, [n]), /* @__PURE__ */ c("span", { ref: n, className: `${r} badge-main`, children: t });
@@ -2014,27 +2035,27 @@ const Rn = (e) => {
2014
2035
  export {
2015
2036
  $n as ActiveFilters,
2016
2037
  yn as ArrayChip,
2017
- ln as AutocompleteInput,
2038
+ un as AutocompleteInput,
2018
2039
  Rn as Badge,
2019
- bt as CheckInput,
2020
- ut as ChevronDown,
2021
- ht as ChevronLeft,
2022
- ft as ChevronRight,
2023
- dt as ChevronUp,
2040
+ gt as CheckInput,
2041
+ dt as ChevronDown,
2042
+ pt as ChevronLeft,
2043
+ ht as ChevronRight,
2044
+ ft as ChevronUp,
2024
2045
  q as Chip,
2025
2046
  ke as Close,
2026
2047
  mn as Columns,
2027
2048
  vn as CountOfTotal,
2028
2049
  bn as Empty,
2029
- mt as File,
2050
+ bt as File,
2030
2051
  In as FileInput,
2031
2052
  Tn as FilterDropdown,
2032
- U as FilterTypes,
2033
- pt as Filters,
2034
- j as FiltersActions,
2053
+ H as FilterTypes,
2054
+ mt as Filters,
2055
+ M as FiltersActions,
2035
2056
  pn as FiltersProvider,
2036
2057
  Nn as Footer,
2037
- un as Loading,
2058
+ dn as Loading,
2038
2059
  gn as Navigation,
2039
2060
  Cn as PageSize,
2040
2061
  xn as RangeChip,
@@ -2042,19 +2063,19 @@ export {
2042
2063
  Ee as SelectInput,
2043
2064
  Y as SortOrder,
2044
2065
  ie as State,
2045
- _n as Table,
2066
+ Bn as Table,
2046
2067
  On as TableHeader,
2047
- Bn as TableOptionsProvider,
2068
+ jn as TableOptionsProvider,
2048
2069
  he as TextInput,
2049
2070
  xe as Tooltip,
2050
2071
  Wn as TranslationProvider,
2051
2072
  hn as filtersReducer,
2052
- Ye as helperTextStateClassName,
2053
- fn as initializer,
2054
- qe as inputStateClassName,
2055
- Ke as labelStateClassName,
2073
+ Ze as helperTextStateClassName,
2074
+ Ve as initializer,
2075
+ Ke as inputStateClassName,
2076
+ Ye as labelStateClassName,
2056
2077
  Pn as renderFilterComponent,
2057
- X as useFilters,
2058
- H as useTableOptions,
2078
+ ee as useFilters,
2079
+ U as useTableOptions,
2059
2080
  G as useTranslation
2060
2081
  };