@sito/dashboard 0.0.46 → 0.0.48

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