@sito/dashboard 0.0.54 → 0.0.55

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