@sito/dashboard-app 0.0.30 → 0.0.31

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.
@@ -21,14 +21,14 @@ function Bt(e) {
21
21
  children: r,
22
22
  hidden: c = !1,
23
23
  disabled: a = !1,
24
- showText: d = !1,
24
+ showText: u = !1,
25
25
  showTooltips: m = !0
26
26
  } = e;
27
27
  return c ? null : /* @__PURE__ */ A(
28
28
  "button",
29
29
  {
30
30
  id: t,
31
- className: `action ${d ? "text-action" : "icon-action"}`,
31
+ className: `action ${u ? "text-action" : "icon-action"}`,
32
32
  disabled: a,
33
33
  onClick: () => i(),
34
34
  "aria-disabled": a,
@@ -37,7 +37,7 @@ function Bt(e) {
37
37
  children: [
38
38
  s,
39
39
  " ",
40
- d && n,
40
+ u && n,
41
41
  r
42
42
  ]
43
43
  }
@@ -63,8 +63,8 @@ function jt(e) {
63
63
  const zs = (e) => {
64
64
  const { children: t, open: s, onClose: n } = e, i = Be(null), r = E(
65
65
  (a) => {
66
- const d = i.current;
67
- !s || !d || d.contains(a.target) || n();
66
+ const u = i.current;
67
+ !s || !u || u.contains(a.target) || n();
68
68
  },
69
69
  [s, n]
70
70
  ), c = E(
@@ -102,14 +102,14 @@ const zs = (e) => {
102
102
  variant: r = "text",
103
103
  color: c = "default",
104
104
  iconClassName: a = "",
105
- ...d
105
+ ...u
106
106
  } = e;
107
107
  return /* @__PURE__ */ A(
108
108
  "button",
109
109
  {
110
110
  type: n,
111
111
  className: `icon-button ${i} ${r} ${c}`,
112
- ...d,
112
+ ...u,
113
113
  children: [
114
114
  /* @__PURE__ */ h(ce, { icon: s, className: `!w-auto ${a}` }),
115
115
  t
@@ -131,44 +131,44 @@ var tt, xt;
131
131
  function Gs() {
132
132
  if (xt) return tt;
133
133
  xt = 1;
134
- const e = (a, d = "local", m = void 0) => {
135
- if (d === "local") {
134
+ const e = (a, u = "local", m = void 0) => {
135
+ if (u === "local") {
136
136
  if (localStorage.getItem(a) !== void 0 && localStorage.getItem(a) !== "undefined" && localStorage.getItem(a) !== null)
137
137
  return m === void 0 || m !== void 0 && localStorage.getItem(a) === m;
138
- } else if (d === "session" && sessionStorage.getItem(a) !== void 0 && sessionStorage.getItem(a) !== "undefined" && sessionStorage.getItem(a) !== null)
138
+ } else if (u === "session" && sessionStorage.getItem(a) !== void 0 && sessionStorage.getItem(a) !== "undefined" && sessionStorage.getItem(a) !== null)
139
139
  return m === void 0 || m !== void 0 && sessionStorage.getItem(a) === m;
140
140
  return !1;
141
141
  }, t = (a) => {
142
- const d = {};
142
+ const u = {};
143
143
  return a.substring(1).split("&").forEach((b) => {
144
144
  const [g, f] = b.split("=");
145
- d[g] = f;
146
- }), d;
145
+ u[g] = f;
146
+ }), u;
147
147
  }, s = (a = "") => {
148
148
  if (r(a) && a.length) return r(a);
149
149
  {
150
- let d = navigator.language || navigator.userLanguage;
151
- if (d.indexOf("en") < 0 && d.indexOf("es") < 0 && (d = "en-US"), d = d.split("-")[0], d)
152
- return a.length && i(a, 730, d), d;
150
+ let u = navigator.language || navigator.userLanguage;
151
+ if (u.indexOf("en") < 0 && u.indexOf("es") < 0 && (u = "en-US"), u = u.split("-")[0], u)
152
+ return a.length && i(a, 730, u), u;
153
153
  }
154
154
  return "en";
155
- }, n = (a = 0, d = 0, m = window, b = "smooth") => m.scroll({
155
+ }, n = (a = 0, u = 0, m = window, b = "smooth") => m.scroll({
156
156
  top: a,
157
- left: d,
157
+ left: u,
158
158
  behavior: b
159
- }), i = (a, d, m, b = "/", g = "Lax") => {
159
+ }), i = (a, u, m, b = "/", g = "Lax") => {
160
160
  var f = /* @__PURE__ */ new Date();
161
- f.setTime(f.getTime() + d * 24 * 60 * 60 * 1e3);
161
+ f.setTime(f.getTime() + u * 24 * 60 * 60 * 1e3);
162
162
  const v = "; expires=" + f.toUTCString();
163
163
  document.cookie = `${a}=${m || ""}${v};path=${b};SameSite=${g}`;
164
164
  }, r = (a) => {
165
- const d = `${a}=`, b = decodeURIComponent(document.cookie).split(";");
165
+ const u = `${a}=`, b = decodeURIComponent(document.cookie).split(";");
166
166
  for (let g = 0; g < b.length; g += 1) {
167
167
  let f = b[g];
168
168
  for (; f.charAt(0) === " "; )
169
169
  f = f.substring(1);
170
- if (f.indexOf(d) === 0)
171
- return f.substring(d.length, f.length);
170
+ if (f.indexOf(u) === 0)
171
+ return f.substring(u.length, f.length);
172
172
  }
173
173
  return "";
174
174
  };
@@ -187,8 +187,8 @@ function Yr() {
187
187
  const { t: e, language: t } = T();
188
188
  return { timeAge: E(
189
189
  (n) => {
190
- const r = /* @__PURE__ */ new Date() - n, c = Math.floor(r / (1e3 * 60)), a = Math.floor(c / 60), d = t === "es", m = e("_accessibility:labels.ago"), b = e("_accessibility:labels.minute"), g = e("_accessibility:labels.minutes"), f = e("_accessibility:labels.hour"), v = e("_accessibility:labels.hours"), C = e("_accessibility:labels.yesterday"), y = e("_accessibility:labels.justNow");
191
- return r < 1e3 * 60 ? y : c < 60 ? `${d ? m : ""} ${c} ${c === 1 ? b : g} ${d ? "" : m}` : a < 24 ? `${d ? m : ""} ${a} ${a === 1 ? f : v} ${d ? "" : m}` : a < 48 ? C : n.toLocaleDateString(navigator.language || "es-ES", {
190
+ const r = /* @__PURE__ */ new Date() - n, c = Math.floor(r / (1e3 * 60)), a = Math.floor(c / 60), u = t === "es", m = e("_accessibility:labels.ago"), b = e("_accessibility:labels.minute"), g = e("_accessibility:labels.minutes"), f = e("_accessibility:labels.hour"), v = e("_accessibility:labels.hours"), C = e("_accessibility:labels.yesterday"), y = e("_accessibility:labels.justNow");
191
+ return r < 1e3 * 60 ? y : c < 60 ? `${u ? m : ""} ${c} ${c === 1 ? b : g} ${u ? "" : m}` : a < 24 ? `${u ? m : ""} ${a} ${a === 1 ? f : v} ${u ? "" : m}` : a < 48 ? C : n.toLocaleDateString(navigator.language || "es-ES", {
192
192
  day: "2-digit",
193
193
  month: "2-digit",
194
194
  year: "numeric"
@@ -216,13 +216,13 @@ async function Ee(e, t = "GET", s, n) {
216
216
  a = null;
217
217
  }
218
218
  if (!r.ok) {
219
- const d = typeof a == "object" && a !== null ? a.message ?? a.error ?? c : c || r.statusText;
219
+ const u = typeof a == "object" && a !== null ? a.message ?? a.error ?? c : c || r.statusText;
220
220
  return {
221
221
  data: null,
222
222
  status: r.status,
223
223
  error: {
224
224
  status: r.status,
225
- message: d || "Unknown error occurred"
225
+ message: u || "Unknown error occurred"
226
226
  }
227
227
  };
228
228
  }
@@ -299,7 +299,7 @@ class Kt {
299
299
  return { Authorization: `Bearer ${s}` };
300
300
  }
301
301
  async doQuery(t, s = ne.GET, n, i) {
302
- const r = this.secured ? this.defaultTokenAcquirer() : {}, { data: c, status: a, error: d } = await Ee(
302
+ const r = this.secured ? this.defaultTokenAcquirer() : {}, { data: c, status: a, error: u } = await Ee(
303
303
  `${this.baseUrl}${t}`,
304
304
  s,
305
305
  n,
@@ -308,8 +308,8 @@ class Kt {
308
308
  ...i ?? {}
309
309
  }
310
310
  );
311
- if (d || a < 200 || a >= 300)
312
- throw d ?? {
311
+ if (u || a < 200 || a >= 300)
312
+ throw u ?? {
313
313
  status: a,
314
314
  message: String(a)
315
315
  };
@@ -632,13 +632,13 @@ function rn(e) {
632
632
  }), c = (m) => n({ type: "set", items: m }), a = (m) => n({
633
633
  type: "set",
634
634
  items: [{ ...m, type: K.success }]
635
- }), d = (m) => n({ type: "remove", index: m });
635
+ }), u = (m) => n({ type: "remove", index: m });
636
636
  return /* @__PURE__ */ h(
637
637
  Wt.Provider,
638
638
  {
639
639
  value: {
640
640
  notification: s,
641
- removeNotification: d,
641
+ removeNotification: u,
642
642
  showErrorNotification: i,
643
643
  showNotification: r,
644
644
  showSuccessNotification: a,
@@ -674,7 +674,7 @@ const Se = () => {
674
674
  throw new Error("managerContext must be used within a Provider");
675
675
  return e.client;
676
676
  }, Gt = Pe({}), an = (e) => {
677
- const { children: t, guestMode: s = "guest_mode", user: n = "user" } = e, i = er(), [r, c] = B({}), a = E(() => !!Qt(s, "boolean") && r.token === void 0, [r.token]), d = E((v) => {
677
+ const { children: t, guestMode: s = "guest_mode", user: n = "user" } = e, i = er(), [r, c] = B({}), a = E(() => !!Qt(s, "boolean") && r.token === void 0, [r.token]), u = E((v) => {
678
678
  _t(s, v);
679
679
  }, []), m = E((v) => {
680
680
  v && (c(v), Ct(s), _t(n, v.token));
@@ -698,7 +698,7 @@ const Se = () => {
698
698
  logoutUser: b,
699
699
  logUserFromLocal: g,
700
700
  isInGuestMode: a,
701
- setGuestMode: d
701
+ setGuestMode: u
702
702
  };
703
703
  return /* @__PURE__ */ h(Gt.Provider, { value: f, children: t });
704
704
  }, Jt = () => {
@@ -724,21 +724,21 @@ const Se = () => {
724
724
  return e;
725
725
  }, Xt = Pe({}), cn = (e) => {
726
726
  const { children: t } = e, [s, n] = B({}), i = E(
727
- (d, m) => n((b) => ({
727
+ (u, m) => n((b) => ({
728
728
  ...b,
729
- [d]: [...b[d] ?? [], m]
729
+ [u]: [...b[u] ?? [], m]
730
730
  })),
731
731
  []
732
732
  ), r = E(
733
- (d, m) => n((b) => ({
733
+ (u, m) => n((b) => ({
734
734
  ...b,
735
- [d]: (b[d] ?? []).filter((g, f) => f !== m)
735
+ [u]: (b[u] ?? []).filter((g, f) => f !== m)
736
736
  })),
737
737
  []
738
- ), c = E((d) => {
739
- n(d ? (m) => ({
738
+ ), c = E((u) => {
739
+ n(u ? (m) => ({
740
740
  ...m,
741
- [d]: []
741
+ [u]: []
742
742
  }) : {});
743
743
  }, []), a = Ne(
744
744
  () => ({
@@ -753,7 +753,7 @@ const Se = () => {
753
753
  }, tr = () => Ie(
754
754
  Xt
755
755
  ), Zt = (e) => {
756
- const { showSuccessNotification: t } = Se(), { mutationFn: s, onError: n, onSuccess: i, onSuccessMessage: r } = e, [c, a] = B([]), { open: d, handleClose: m, handleOpen: b } = cs(), g = () => {
756
+ const { showSuccessNotification: t } = Se(), { mutationFn: s, onError: n, onSuccess: i, onSuccessMessage: r } = e, [c, a] = B([]), { open: u, handleClose: m, handleOpen: b } = cs(), g = () => {
757
757
  m(), a([]);
758
758
  }, f = async (C) => {
759
759
  a(C), b();
@@ -770,7 +770,7 @@ const Se = () => {
770
770
  }), g();
771
771
  }
772
772
  });
773
- return { open: d, onClick: f, close: g, dialogFn: v, isLoading: v.isPending };
773
+ return { open: u, onClick: f, close: g, dialogFn: v, isLoading: v.isPending };
774
774
  };
775
775
  var Me = (e) => e.type === "checkbox", ke = (e) => e instanceof Date, se = (e) => e == null;
776
776
  const es = (e) => typeof e == "object";
@@ -803,14 +803,14 @@ var Ge = (e) => /^\w*$/.test(e), z = (e) => e === void 0, it = (e) => Array.isAr
803
803
  const i = Ge(t) ? [t] : at(t), r = i.length, c = r - 1;
804
804
  for (; ++n < r; ) {
805
805
  const a = i[n];
806
- let d = s;
806
+ let u = s;
807
807
  if (n !== c) {
808
808
  const m = e[a];
809
- d = Q(m) || Array.isArray(m) ? m : isNaN(+i[n + 1]) ? {} : [];
809
+ u = Q(m) || Array.isArray(m) ? m : isNaN(+i[n + 1]) ? {} : [];
810
810
  }
811
811
  if (a === "__proto__" || a === "constructor" || a === "prototype")
812
812
  return;
813
- e[a] = d, e = e[a];
813
+ e[a] = u, e = e[a];
814
814
  }
815
815
  };
816
816
  const Nt = {
@@ -1054,7 +1054,7 @@ var Ae = (e) => Q(e) && !Ke(e) ? e : {
1054
1054
  value: e,
1055
1055
  message: ""
1056
1056
  }, It = async (e, t, s, n, i, r) => {
1057
- const { ref: c, refs: a, required: d, maxLength: m, minLength: b, min: g, max: f, pattern: v, validate: C, name: y, valueAsNumber: L, mount: G } = e._f, N = _(s, y);
1057
+ const { ref: c, refs: a, required: u, maxLength: m, minLength: b, min: g, max: f, pattern: v, validate: C, name: y, valueAsNumber: L, mount: G } = e._f, N = _(s, y);
1058
1058
  if (!G || t.has(y))
1059
1059
  return {};
1060
1060
  const j = a ? a[0] : c, V = (S) => {
@@ -1068,8 +1068,8 @@ var Ae = (e) => Q(e) && !Ke(e) ? e : {
1068
1068
  ...U(S ? Y : ee, I)
1069
1069
  };
1070
1070
  };
1071
- if (r ? !Array.isArray(N) || !N.length : d && (!le && (H || se(N)) || he(N) && !N || P && !ns(a).isValid || J && !as(a).isValid)) {
1072
- const { value: S, message: $ } = qe(d) ? { value: !!d, message: d } : Ae(d);
1071
+ if (r ? !Array.isArray(N) || !N.length : u && (!le && (H || se(N)) || he(N) && !N || P && !ns(a).isValid || J && !as(a).isValid)) {
1072
+ const { value: S, message: $ } = qe(u) ? { value: !!u, message: u } : Ae(u);
1073
1073
  if (S && (F[y] = {
1074
1074
  type: ge.required,
1075
1075
  message: $,
@@ -1168,7 +1168,7 @@ function Cr(e = {}) {
1168
1168
  unMount: /* @__PURE__ */ new Set(),
1169
1169
  array: /* @__PURE__ */ new Set(),
1170
1170
  watch: /* @__PURE__ */ new Set()
1171
- }, d, m = 0;
1171
+ }, u, m = 0;
1172
1172
  const b = {
1173
1173
  isDirty: !1,
1174
1174
  dirtyFields: !1,
@@ -1194,24 +1194,24 @@ function Cr(e = {}) {
1194
1194
  });
1195
1195
  }
1196
1196
  }, L = (o, l) => {
1197
- !t.disabled && (b.isValidating || b.validatingFields || g.isValidating || g.validatingFields) && ((o || Array.from(a.mount)).forEach((u) => {
1198
- u && (l ? R(s.validatingFields, u, l) : W(s.validatingFields, u));
1197
+ !t.disabled && (b.isValidating || b.validatingFields || g.isValidating || g.validatingFields) && ((o || Array.from(a.mount)).forEach((d) => {
1198
+ d && (l ? R(s.validatingFields, d, l) : W(s.validatingFields, d));
1199
1199
  }), f.state.next({
1200
1200
  validatingFields: s.validatingFields,
1201
1201
  isValidating: !re(s.validatingFields)
1202
1202
  }));
1203
- }, G = (o, l = [], u, x, w = !0, p = !0) => {
1204
- if (x && u && !t.disabled) {
1203
+ }, G = (o, l = [], d, x, w = !0, p = !0) => {
1204
+ if (x && d && !t.disabled) {
1205
1205
  if (c.action = !0, p && Array.isArray(_(n, o))) {
1206
- const k = u(_(n, o), x.argA, x.argB);
1206
+ const k = d(_(n, o), x.argA, x.argB);
1207
1207
  w && R(n, o, k);
1208
1208
  }
1209
1209
  if (p && Array.isArray(_(s.errors, o))) {
1210
- const k = u(_(s.errors, o), x.argA, x.argB);
1210
+ const k = d(_(s.errors, o), x.argA, x.argB);
1211
1211
  w && R(s.errors, o, k), vr(s.errors, o);
1212
1212
  }
1213
1213
  if ((b.touchedFields || g.touchedFields) && p && Array.isArray(_(s.touchedFields, o))) {
1214
- const k = u(_(s.touchedFields, o), x.argA, x.argB);
1214
+ const k = d(_(s.touchedFields, o), x.argA, x.argB);
1215
1215
  w && R(s.touchedFields, o, k);
1216
1216
  }
1217
1217
  (b.dirtyFields || g.dirtyFields) && (s.dirtyFields = $e(i, r)), f.state.next({
@@ -1232,33 +1232,33 @@ function Cr(e = {}) {
1232
1232
  errors: s.errors,
1233
1233
  isValid: !1
1234
1234
  });
1235
- }, V = (o, l, u, x) => {
1235
+ }, V = (o, l, d, x) => {
1236
1236
  const w = _(n, o);
1237
1237
  if (w) {
1238
- const p = _(r, o, z(u) ? _(i, o) : u);
1238
+ const p = _(r, o, z(d) ? _(i, o) : d);
1239
1239
  z(p) || x && x.defaultChecked || l ? R(r, o, l ? p : Ft(w._f)) : q(o, p), c.mount && y();
1240
1240
  }
1241
- }, F = (o, l, u, x, w) => {
1241
+ }, F = (o, l, d, x, w) => {
1242
1242
  let p = !1, k = !1;
1243
1243
  const D = {
1244
1244
  name: o
1245
1245
  };
1246
1246
  if (!t.disabled) {
1247
- if (!u || x) {
1247
+ if (!d || x) {
1248
1248
  (b.isDirty || g.isDirty) && (k = s.isDirty, s.isDirty = D.isDirty = M(), p = k !== D.isDirty);
1249
1249
  const O = ve(_(i, o), l);
1250
1250
  k = !!_(s.dirtyFields, o), O ? W(s.dirtyFields, o) : R(s.dirtyFields, o, !0), D.dirtyFields = s.dirtyFields, p = p || (b.dirtyFields || g.dirtyFields) && k !== !O;
1251
1251
  }
1252
- if (u) {
1252
+ if (d) {
1253
1253
  const O = _(s.touchedFields, o);
1254
- O || (R(s.touchedFields, o, u), D.touchedFields = s.touchedFields, p = p || (b.touchedFields || g.touchedFields) && O !== u);
1254
+ O || (R(s.touchedFields, o, d), D.touchedFields = s.touchedFields, p = p || (b.touchedFields || g.touchedFields) && O !== d);
1255
1255
  }
1256
1256
  p && w && f.state.next(D);
1257
1257
  }
1258
1258
  return p ? D : {};
1259
- }, J = (o, l, u, x) => {
1259
+ }, J = (o, l, d, x) => {
1260
1260
  const w = _(s.errors, o), p = (b.isValid || g.isValid) && he(l) && s.isValid !== l;
1261
- if (t.delayError && u ? (d = C(() => N(o, u)), d(t.delayError)) : (clearTimeout(m), d = null, u ? R(s.errors, o, u) : W(s.errors, o)), (u ? !ve(w, u) : w) || !re(x) || p) {
1261
+ if (t.delayError && d ? (u = C(() => N(o, d)), u(t.delayError)) : (clearTimeout(m), u = null, d ? R(s.errors, o, d) : W(s.errors, o)), (d ? !ve(w, d) : w) || !re(x) || p) {
1262
1262
  const k = {
1263
1263
  ...x,
1264
1264
  ...p && he(l) ? { isValid: l } : {},
@@ -1277,14 +1277,14 @@ function Cr(e = {}) {
1277
1277
  }, le = async (o) => {
1278
1278
  const { errors: l } = await P(o);
1279
1279
  if (o)
1280
- for (const u of o) {
1281
- const x = _(l, u);
1282
- x ? R(s.errors, u, x) : W(s.errors, u);
1280
+ for (const d of o) {
1281
+ const x = _(l, d);
1282
+ x ? R(s.errors, d, x) : W(s.errors, d);
1283
1283
  }
1284
1284
  else
1285
1285
  s.errors = l;
1286
1286
  return l;
1287
- }, H = async (o, l, u = {
1287
+ }, H = async (o, l, d = {
1288
1288
  valid: !0
1289
1289
  }) => {
1290
1290
  for (const x in o) {
@@ -1295,23 +1295,23 @@ function Cr(e = {}) {
1295
1295
  const D = a.array.has(p.name), O = w._f && yr(w._f);
1296
1296
  O && b.validatingFields && L([x], !0);
1297
1297
  const oe = await It(w, a.disabled, r, v, t.shouldUseNativeValidation && !l, D);
1298
- if (O && b.validatingFields && L([x]), oe[p.name] && (u.valid = !1, l))
1298
+ if (O && b.validatingFields && L([x]), oe[p.name] && (d.valid = !1, l))
1299
1299
  break;
1300
1300
  !l && (_(oe, p.name) ? D ? xr(s.errors, oe, p.name) : R(s.errors, p.name, oe[p.name]) : W(s.errors, p.name));
1301
1301
  }
1302
- !re(k) && await H(k, l, u);
1302
+ !re(k) && await H(k, l, d);
1303
1303
  }
1304
1304
  }
1305
- return u.valid;
1305
+ return d.valid;
1306
1306
  }, U = () => {
1307
1307
  for (const o of a.unMount) {
1308
1308
  const l = _(n, o);
1309
- l && (l._f.refs ? l._f.refs.every((u) => !st(u)) : !st(l._f.ref)) && Je(o);
1309
+ l && (l._f.refs ? l._f.refs.every((d) => !st(d)) : !st(l._f.ref)) && Je(o);
1310
1310
  }
1311
1311
  a.unMount = /* @__PURE__ */ new Set();
1312
- }, M = (o, l) => !t.disabled && (o && l && R(r, o, l), !ve(ue(), i)), S = (o, l, u) => lr(o, a, {
1312
+ }, M = (o, l) => !t.disabled && (o && l && R(r, o, l), !ve(ue(), i)), S = (o, l, d) => lr(o, a, {
1313
1313
  ...c.mount ? r : z(l) ? i : ye(o) ? { [o]: l } : l
1314
- }, u, l), $ = (o) => it(_(c.mount ? r : i, o, t.shouldUnregister ? _(i, o, []) : [])), q = (o, l, u = {}) => {
1314
+ }, d, l), $ = (o) => it(_(c.mount ? r : i, o, t.shouldUnregister ? _(i, o, []) : [])), q = (o, l, d = {}) => {
1315
1315
  const x = _(n, o);
1316
1316
  let w = l;
1317
1317
  if (x) {
@@ -1323,78 +1323,78 @@ function Cr(e = {}) {
1323
1323
  values: X(r)
1324
1324
  })));
1325
1325
  }
1326
- (u.shouldDirty || u.shouldTouch) && F(o, w, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && ie(o);
1327
- }, Y = (o, l, u) => {
1326
+ (d.shouldDirty || d.shouldTouch) && F(o, w, d.shouldTouch, d.shouldDirty, !0), d.shouldValidate && ie(o);
1327
+ }, Y = (o, l, d) => {
1328
1328
  for (const x in l) {
1329
1329
  if (!l.hasOwnProperty(x))
1330
1330
  return;
1331
1331
  const w = l[x], p = o + "." + x, k = _(n, p);
1332
- (a.array.has(o) || Q(w) || k && !k._f) && !ke(w) ? Y(p, w, u) : q(p, w, u);
1332
+ (a.array.has(o) || Q(w) || k && !k._f) && !ke(w) ? Y(p, w, d) : q(p, w, d);
1333
1333
  }
1334
- }, ee = (o, l, u = {}) => {
1334
+ }, ee = (o, l, d = {}) => {
1335
1335
  const x = _(n, o), w = a.array.has(o), p = X(l);
1336
1336
  R(r, o, p), w ? (f.array.next({
1337
1337
  name: o,
1338
1338
  values: X(r)
1339
- }), (b.isDirty || b.dirtyFields || g.isDirty || g.dirtyFields) && u.shouldDirty && f.state.next({
1339
+ }), (b.isDirty || b.dirtyFields || g.isDirty || g.dirtyFields) && d.shouldDirty && f.state.next({
1340
1340
  name: o,
1341
1341
  dirtyFields: $e(i, r),
1342
1342
  isDirty: M(o, p)
1343
- })) : x && !x._f && !se(p) ? Y(o, p, u) : q(o, p, u), Dt(o, a) && f.state.next({ ...s, name: o }), f.state.next({
1343
+ })) : x && !x._f && !se(p) ? Y(o, p, d) : q(o, p, d), Dt(o, a) && f.state.next({ ...s, name: o }), f.state.next({
1344
1344
  name: c.mount ? o : void 0,
1345
1345
  values: X(r)
1346
1346
  });
1347
1347
  }, I = async (o) => {
1348
1348
  c.mount = !0;
1349
1349
  const l = o.target;
1350
- let u = l.name, x = !0;
1351
- const w = _(n, u), p = (O) => {
1352
- x = Number.isNaN(O) || ke(O) && isNaN(O.getTime()) || ve(O, _(r, u, O));
1350
+ let d = l.name, x = !0;
1351
+ const w = _(n, d), p = (O) => {
1352
+ x = Number.isNaN(O) || ke(O) && isNaN(O.getTime()) || ve(O, _(r, d, O));
1353
1353
  }, k = Lt(t.mode), D = Lt(t.reValidateMode);
1354
1354
  if (w) {
1355
1355
  let O, oe;
1356
- const Re = l.type ? Ft(w._f) : sr(o), we = o.type === Nt.BLUR || o.type === Nt.FOCUS_OUT, ys = !gr(w._f) && !t.resolver && !_(s.errors, u) && !w._f.deps || wr(we, _(s.touchedFields, u), s.isSubmitted, D, k), Ze = Dt(u, a, we);
1357
- R(r, u, Re), we ? (w._f.onBlur && w._f.onBlur(o), d && d(0)) : w._f.onChange && w._f.onChange(o);
1358
- const et = F(u, Re, we), gs = !re(et) || Ze;
1356
+ const Re = l.type ? Ft(w._f) : sr(o), we = o.type === Nt.BLUR || o.type === Nt.FOCUS_OUT, ys = !gr(w._f) && !t.resolver && !_(s.errors, d) && !w._f.deps || wr(we, _(s.touchedFields, d), s.isSubmitted, D, k), Ze = Dt(d, a, we);
1357
+ R(r, d, Re), we ? (w._f.onBlur && w._f.onBlur(o), u && u(0)) : w._f.onChange && w._f.onChange(o);
1358
+ const et = F(d, Re, we), gs = !re(et) || Ze;
1359
1359
  if (!we && f.state.next({
1360
- name: u,
1360
+ name: d,
1361
1361
  type: o.type,
1362
1362
  values: X(r)
1363
1363
  }), ys)
1364
- return (b.isValid || g.isValid) && (t.mode === "onBlur" ? we && y() : we || y()), gs && f.state.next({ name: u, ...Ze ? {} : et });
1364
+ return (b.isValid || g.isValid) && (t.mode === "onBlur" ? we && y() : we || y()), gs && f.state.next({ name: d, ...Ze ? {} : et });
1365
1365
  if (!we && Ze && f.state.next({ ...s }), t.resolver) {
1366
- const { errors: pt } = await P([u]);
1366
+ const { errors: pt } = await P([d]);
1367
1367
  if (p(Re), x) {
1368
- const bs = Vt(s.errors, n, u), wt = Vt(pt, n, bs.name || u);
1369
- O = wt.error, u = wt.name, oe = re(pt);
1368
+ const bs = Vt(s.errors, n, d), wt = Vt(pt, n, bs.name || d);
1369
+ O = wt.error, d = wt.name, oe = re(pt);
1370
1370
  }
1371
1371
  } else
1372
- L([u], !0), O = (await It(w, a.disabled, r, v, t.shouldUseNativeValidation))[u], L([u]), p(Re), x && (O ? oe = !1 : (b.isValid || g.isValid) && (oe = await H(n, !0)));
1373
- x && (w._f.deps && ie(w._f.deps), J(u, oe, O, et));
1372
+ L([d], !0), O = (await It(w, a.disabled, r, v, t.shouldUseNativeValidation))[d], L([d]), p(Re), x && (O ? oe = !1 : (b.isValid || g.isValid) && (oe = await H(n, !0)));
1373
+ x && (w._f.deps && ie(w._f.deps), J(d, oe, O, et));
1374
1374
  }
1375
1375
  }, te = (o, l) => {
1376
1376
  if (_(s.errors, l) && o.focus)
1377
1377
  return o.focus(), 1;
1378
1378
  }, ie = async (o, l = {}) => {
1379
- let u, x;
1379
+ let d, x;
1380
1380
  const w = Le(o);
1381
1381
  if (t.resolver) {
1382
1382
  const p = await le(z(o) ? o : w);
1383
- u = re(p), x = o ? !w.some((k) => _(p, k)) : u;
1383
+ d = re(p), x = o ? !w.some((k) => _(p, k)) : d;
1384
1384
  } else o ? (x = (await Promise.all(w.map(async (p) => {
1385
1385
  const k = _(n, p);
1386
1386
  return await H(k && k._f ? { [p]: k } : k);
1387
- }))).every(Boolean), !(!x && !s.isValid) && y()) : x = u = await H(n);
1387
+ }))).every(Boolean), !(!x && !s.isValid) && y()) : x = d = await H(n);
1388
1388
  return f.state.next({
1389
- ...!ye(o) || (b.isValid || g.isValid) && u !== s.isValid ? {} : { name: o },
1390
- ...t.resolver || !o ? { isValid: u } : {},
1389
+ ...!ye(o) || (b.isValid || g.isValid) && d !== s.isValid ? {} : { name: o },
1390
+ ...t.resolver || !o ? { isValid: d } : {},
1391
1391
  errors: s.errors
1392
1392
  }), l.shouldFocus && !x && Te(n, te, o ? w : a.mount), x;
1393
1393
  }, ue = (o) => {
1394
1394
  const l = {
1395
1395
  ...c.mount ? r : i
1396
1396
  };
1397
- return z(o) ? l : ye(o) ? _(l, o) : o.map((u) => _(l, u));
1397
+ return z(o) ? l : ye(o) ? _(l, o) : o.map((d) => _(l, d));
1398
1398
  }, Ue = (o, l) => ({
1399
1399
  invalid: !!_((l || s).errors, o),
1400
1400
  isDirty: !!_((l || s).dirtyFields, o),
@@ -1405,7 +1405,7 @@ function Cr(e = {}) {
1405
1405
  o && Le(o).forEach((l) => W(s.errors, l)), f.state.next({
1406
1406
  errors: o ? s.errors : {}
1407
1407
  });
1408
- }, dt = (o, l, u) => {
1408
+ }, dt = (o, l, d) => {
1409
1409
  const x = (_(n, o, { _f: {} })._f || {}).ref, w = _(s.errors, o) || {}, { ref: p, message: k, type: D, ...O } = w;
1410
1410
  R(s.errors, o, {
1411
1411
  ...O,
@@ -1415,9 +1415,9 @@ function Cr(e = {}) {
1415
1415
  name: o,
1416
1416
  errors: s.errors,
1417
1417
  isValid: !1
1418
- }), u && u.shouldFocus && x && x.focus && x.focus();
1418
+ }), d && d.shouldFocus && x && x.focus && x.focus();
1419
1419
  }, ls = (o, l) => fe(o) ? f.state.subscribe({
1420
- next: (u) => "values" in u && o(S(void 0, l), u)
1420
+ next: (d) => "values" in d && o(S(void 0, l), d)
1421
1421
  }) : S(o, l, !0), ft = (o) => f.state.subscribe({
1422
1422
  next: (l) => {
1423
1423
  pr(o.name, l.name, o.exact) && br(l, o.formState || b, hs, o.reRenderRoot) && o.callback({
@@ -1434,8 +1434,8 @@ function Cr(e = {}) {
1434
1434
  ...o,
1435
1435
  formState: g
1436
1436
  })), Je = (o, l = {}) => {
1437
- for (const u of o ? Le(o) : a.mount)
1438
- a.mount.delete(u), a.array.delete(u), l.keepValue || (W(n, u), W(r, u)), !l.keepError && W(s.errors, u), !l.keepDirty && W(s.dirtyFields, u), !l.keepTouched && W(s.touchedFields, u), !l.keepIsValidating && W(s.validatingFields, u), !t.shouldUnregister && !l.keepDefaultValue && W(i, u);
1437
+ for (const d of o ? Le(o) : a.mount)
1438
+ a.mount.delete(d), a.array.delete(d), l.keepValue || (W(n, d), W(r, d)), !l.keepError && W(s.errors, d), !l.keepDirty && W(s.dirtyFields, d), !l.keepTouched && W(s.touchedFields, d), !l.keepIsValidating && W(s.validatingFields, d), !t.shouldUnregister && !l.keepDefaultValue && W(i, d);
1439
1439
  f.state.next({
1440
1440
  values: X(r)
1441
1441
  }), f.state.next({
@@ -1445,17 +1445,17 @@ function Cr(e = {}) {
1445
1445
  }, mt = ({ disabled: o, name: l }) => {
1446
1446
  (he(o) && c.mount || o || a.disabled.has(l)) && (o ? a.disabled.add(l) : a.disabled.delete(l));
1447
1447
  }, Ye = (o, l = {}) => {
1448
- let u = _(n, o);
1448
+ let d = _(n, o);
1449
1449
  const x = he(l.disabled) || he(t.disabled);
1450
1450
  return R(n, o, {
1451
- ...u || {},
1451
+ ...d || {},
1452
1452
  _f: {
1453
- ...u && u._f ? u._f : { ref: { name: o } },
1453
+ ...d && d._f ? d._f : { ref: { name: o } },
1454
1454
  name: o,
1455
1455
  mount: !0,
1456
1456
  ...l
1457
1457
  }
1458
- }), a.mount.add(o), u ? mt({
1458
+ }), a.mount.add(o), d ? mt({
1459
1459
  disabled: he(l.disabled) ? l.disabled : t.disabled,
1460
1460
  name: o
1461
1461
  }) : V(o, !0, l.value), {
@@ -1473,13 +1473,13 @@ function Cr(e = {}) {
1473
1473
  onBlur: I,
1474
1474
  ref: (w) => {
1475
1475
  if (w) {
1476
- Ye(o, l), u = _(n, o);
1477
- const p = z(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, k = dr(p), D = u._f.refs || [];
1478
- if (k ? D.find((O) => O === p) : p === u._f.ref)
1476
+ Ye(o, l), d = _(n, o);
1477
+ const p = z(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, k = dr(p), D = d._f.refs || [];
1478
+ if (k ? D.find((O) => O === p) : p === d._f.ref)
1479
1479
  return;
1480
1480
  R(n, o, {
1481
1481
  _f: {
1482
- ...u._f,
1482
+ ...d._f,
1483
1483
  ...k ? {
1484
1484
  refs: [
1485
1485
  ...D.filter(st),
@@ -1491,19 +1491,19 @@ function Cr(e = {}) {
1491
1491
  }
1492
1492
  }), V(o, !1, void 0, p);
1493
1493
  } else
1494
- u = _(n, o, {}), u._f && (u._f.mount = !1), (t.shouldUnregister || l.shouldUnregister) && !(nr(a.array, o) && c.action) && a.unMount.add(o);
1494
+ d = _(n, o, {}), d._f && (d._f.mount = !1), (t.shouldUnregister || l.shouldUnregister) && !(nr(a.array, o) && c.action) && a.unMount.add(o);
1495
1495
  }
1496
1496
  };
1497
1497
  }, Xe = () => t.shouldFocusError && Te(n, te, a.mount), ds = (o) => {
1498
- he(o) && (f.state.next({ disabled: o }), Te(n, (l, u) => {
1499
- const x = _(n, u);
1498
+ he(o) && (f.state.next({ disabled: o }), Te(n, (l, d) => {
1499
+ const x = _(n, d);
1500
1500
  x && (l.disabled = x._f.disabled || o, Array.isArray(x._f.refs) && x._f.refs.forEach((w) => {
1501
1501
  w.disabled = x._f.disabled || o;
1502
1502
  }));
1503
1503
  }, 0, !1));
1504
- }, ht = (o, l) => async (u) => {
1504
+ }, ht = (o, l) => async (d) => {
1505
1505
  let x;
1506
- u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1506
+ d && (d.preventDefault && d.preventDefault(), d.persist && d.persist());
1507
1507
  let w = X(r);
1508
1508
  if (f.state.next({
1509
1509
  isSubmitting: !0
@@ -1520,12 +1520,12 @@ function Cr(e = {}) {
1520
1520
  errors: {}
1521
1521
  });
1522
1522
  try {
1523
- await o(w, u);
1523
+ await o(w, d);
1524
1524
  } catch (p) {
1525
1525
  x = p;
1526
1526
  }
1527
1527
  } else
1528
- l && await l({ ...s.errors }, u), Xe(), setTimeout(Xe);
1528
+ l && await l({ ...s.errors }, d), Xe(), setTimeout(Xe);
1529
1529
  if (f.state.next({
1530
1530
  isSubmitted: !0,
1531
1531
  isSubmitting: !1,
@@ -1537,8 +1537,8 @@ function Cr(e = {}) {
1537
1537
  }, fs = (o, l = {}) => {
1538
1538
  _(n, o) && (z(l.defaultValue) ? ee(o, X(_(i, o))) : (ee(o, l.defaultValue), R(i, o, X(l.defaultValue))), l.keepTouched || W(s.touchedFields, o), l.keepDirty || (W(s.dirtyFields, o), s.isDirty = l.defaultValue ? M(o, X(_(i, o))) : M()), l.keepError || (W(s.errors, o), b.isValid && y()), f.state.next({ ...s }));
1539
1539
  }, yt = (o, l = {}) => {
1540
- const u = o ? X(o) : i, x = X(u), w = re(o), p = w ? i : x;
1541
- if (l.keepDefaultValues || (i = u), !l.keepValues) {
1540
+ const d = o ? X(o) : i, x = X(d), w = re(o), p = w ? i : x;
1541
+ if (l.keepDefaultValues || (i = d), !l.keepValues) {
1542
1542
  if (l.keepDirtyValues) {
1543
1543
  const k = /* @__PURE__ */ new Set([
1544
1544
  ...a.mount,
@@ -1592,7 +1592,7 @@ function Cr(e = {}) {
1592
1592
  isSubmitting: !1
1593
1593
  });
1594
1594
  }, gt = (o, l) => yt(fe(o) ? o(r) : o, l), ms = (o, l = {}) => {
1595
- const u = _(n, o), x = u && u._f;
1595
+ const d = _(n, o), x = d && d._f;
1596
1596
  if (x) {
1597
1597
  const w = x.refs ? x.refs[0] : x.ref;
1598
1598
  w.focus && (w.focus(), l.shouldSelect && fe(w.select) && w.select());
@@ -1755,7 +1755,7 @@ const ln = (e) => {
1755
1755
  mutationFn: r,
1756
1756
  formToDto: c,
1757
1757
  onError: a,
1758
- onSuccess: d,
1758
+ onSuccess: u,
1759
1759
  queryKey: m,
1760
1760
  onSuccessMessage: b
1761
1761
  } = e, { control: g, handleSubmit: f, reset: v, setError: C, getValues: y, setValue: L } = os({
@@ -1801,7 +1801,7 @@ const ln = (e) => {
1801
1801
  }
1802
1802
  },
1803
1803
  onSuccess: async (V) => {
1804
- pe && await pe.invalidateQueries({ queryKey: m }), d && d(V), b && n({
1804
+ pe && await pe.invalidateQueries({ queryKey: m }), u && u(V), b && n({
1805
1805
  message: b
1806
1806
  });
1807
1807
  }
@@ -1832,7 +1832,7 @@ const ln = (e) => {
1832
1832
  icon: /* @__PURE__ */ h(ce, { className: "text-red-500", icon: $s }),
1833
1833
  tooltip: t("_pages:common.actions.delete.text"),
1834
1834
  onClick: () => s([c == null ? void 0 : c.id]),
1835
- onMultipleClick: (a) => s(a.map((d) => d.id)),
1835
+ onMultipleClick: (a) => s(a.map((u) => u.id)),
1836
1836
  multiple: !0
1837
1837
  }),
1838
1838
  [i, n, s, t]
@@ -1925,7 +1925,7 @@ const Sr = (e) => {
1925
1925
  )
1926
1926
  };
1927
1927
  }, dn = (e) => {
1928
- const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = T(), { open: c, onClick: a, close: d, dialogFn: m, isLoading: b } = Zt({
1928
+ const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = T(), { open: c, onClick: a, close: u, dialogFn: m, isLoading: b } = Zt({
1929
1929
  onSuccessMessage: r("_pages:common.actions.delete.successMessage"),
1930
1930
  onError: (f) => {
1931
1931
  const v = f;
@@ -1959,7 +1959,7 @@ const Sr = (e) => {
1959
1959
  open: c,
1960
1960
  isLoading: b,
1961
1961
  handleSubmit: () => m.mutate(),
1962
- handleClose: d,
1962
+ handleClose: u,
1963
1963
  action: g
1964
1964
  };
1965
1965
  }, cs = () => {
@@ -1974,7 +1974,7 @@ const Sr = (e) => {
1974
1974
  defaultValues: r,
1975
1975
  getFunction: c,
1976
1976
  mutationFn: a,
1977
- formToDto: d,
1977
+ formToDto: u,
1978
1978
  dtoToForm: m,
1979
1979
  onError: b,
1980
1980
  onSuccess: g,
@@ -2049,7 +2049,7 @@ const Sr = (e) => {
2049
2049
  setValue: H,
2050
2050
  handleSubmit: F,
2051
2051
  onSubmit: (I) => ee.mutate(
2052
- d ? d(I) : I
2052
+ u ? u(I) : I
2053
2053
  ),
2054
2054
  reset: J,
2055
2055
  setError: P,
@@ -2059,7 +2059,7 @@ const Sr = (e) => {
2059
2059
  isLoading: M || ee.isPending
2060
2060
  };
2061
2061
  }, mn = (e) => {
2062
- const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = T(), { open: c, onClick: a, close: d, dialogFn: m, isLoading: b } = Zt({
2062
+ const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = T(), { open: c, onClick: a, close: u, dialogFn: m, isLoading: b } = Zt({
2063
2063
  onSuccessMessage: r("_pages:common.actions.restore.successMessage"),
2064
2064
  onError: (f) => {
2065
2065
  const v = f;
@@ -2093,12 +2093,12 @@ const Sr = (e) => {
2093
2093
  open: c,
2094
2094
  isLoading: b,
2095
2095
  handleSubmit: () => m.mutate(),
2096
- handleClose: d,
2096
+ handleClose: u,
2097
2097
  action: g
2098
2098
  };
2099
2099
  };
2100
2100
  function hn(e) {
2101
- const { t } = T(), { queryKey: s, mutationFn: n, entity: i, fileProcessor: r, onError: c } = e, [a, d] = B(!1), [m, b] = B(null), [g, f] = B(!1), v = Oe({
2101
+ const { t } = T(), { queryKey: s, mutationFn: n, entity: i, fileProcessor: r, onError: c } = e, [a, u] = B(!1), [m, b] = B(null), [g, f] = B(!1), v = Oe({
2102
2102
  mutationFn: n,
2103
2103
  onError: (y) => {
2104
2104
  console.error(y), c == null || c(y);
@@ -2107,7 +2107,7 @@ function hn(e) {
2107
2107
  pe && await pe.invalidateQueries({ queryKey: s });
2108
2108
  }
2109
2109
  }), { action: C } = Ar({
2110
- onClick: () => d(!0)
2110
+ onClick: () => u(!0)
2111
2111
  });
2112
2112
  return {
2113
2113
  handleSubmit: async () => {
@@ -2116,7 +2116,7 @@ function hn(e) {
2116
2116
  await v.mutateAsync({
2117
2117
  items: m,
2118
2118
  override: g
2119
- }), d(!1), b(null), f(!1);
2119
+ }), u(!1), b(null), f(!1);
2120
2120
  } catch (y) {
2121
2121
  console.error(y);
2122
2122
  }
@@ -2130,7 +2130,7 @@ function hn(e) {
2130
2130
  entity: t(`_pages:${i}.title`)
2131
2131
  }),
2132
2132
  handleClose: () => {
2133
- d(!1), b(null);
2133
+ u(!1), b(null);
2134
2134
  },
2135
2135
  action: C
2136
2136
  };
@@ -2142,7 +2142,7 @@ const yn = (e) => {
2142
2142
  onError: r,
2143
2143
  onSuccess: c,
2144
2144
  onSuccessMessage: a = s("_pages:common.actions.export.successMessage")
2145
- } = e, d = Oe({
2145
+ } = e, u = Oe({
2146
2146
  mutationFn: () => i(),
2147
2147
  onError: (g) => {
2148
2148
  console.error(g), r && r(g);
@@ -2154,10 +2154,10 @@ const yn = (e) => {
2154
2154
  });
2155
2155
  }
2156
2156
  }), m = E(() => {
2157
- d.mutate();
2158
- }, [d]), { action: b } = Sr({
2157
+ u.mutate();
2158
+ }, [u]), { action: b } = Sr({
2159
2159
  onClick: m,
2160
- isLoading: d.isPending
2160
+ isLoading: u.isPending
2161
2161
  });
2162
2162
  return {
2163
2163
  action: b
@@ -2214,7 +2214,7 @@ const gn = () => {
2214
2214
  name: r = "",
2215
2215
  id: c = "",
2216
2216
  label: a = "",
2217
- disabled: d = !1,
2217
+ disabled: u = !1,
2218
2218
  required: m = !1,
2219
2219
  containerClassName: b = "",
2220
2220
  inputClassName: g = "",
@@ -2234,7 +2234,7 @@ const gn = () => {
2234
2234
  required: m,
2235
2235
  value: s,
2236
2236
  onChange: n,
2237
- disabled: d,
2237
+ disabled: u,
2238
2238
  ...y
2239
2239
  }
2240
2240
  ),
@@ -2317,7 +2317,7 @@ const gn = () => {
2317
2317
  open: r = !1,
2318
2318
  containerClassName: c = "",
2319
2319
  className: a = "",
2320
- animationClass: d = "appear"
2320
+ animationClass: u = "appear"
2321
2321
  } = e, [m, b] = B(window.innerWidth), g = E(
2322
2322
  (y) => {
2323
2323
  y.key === "Escape" && r && i();
@@ -2354,11 +2354,11 @@ const gn = () => {
2354
2354
  "aria-label": t("_accessibility:ariaLabels.closeDialog"),
2355
2355
  "aria-disabled": !r,
2356
2356
  onClick: C,
2357
- className: `dialog-backdrop animated ${r ? `opened ${d}` : "closed"} ${v} h-screen ${r ? "bg-base/20 backdrop-blur-xl" : "pointer-events-none"} ${c}`,
2357
+ className: `dialog-backdrop animated ${r ? `opened ${u}` : "closed"} ${v} h-screen ${r ? "bg-base/20 backdrop-blur-xl" : "pointer-events-none"} ${c}`,
2358
2358
  children: /* @__PURE__ */ A(
2359
2359
  "div",
2360
2360
  {
2361
- className: `dialog elevated animated ${r ? `opened ${d}` : "closed"} ${a}`,
2361
+ className: `dialog elevated animated ${r ? `opened ${u}` : "closed"} ${a}`,
2362
2362
  children: [
2363
2363
  /* @__PURE__ */ A("div", { className: "dialog-header", children: [
2364
2364
  /* @__PURE__ */ h("h3", { className: "text-text text-xl", children: s }),
@@ -2392,7 +2392,7 @@ const gn = () => {
2392
2392
  isLoading: r = !1,
2393
2393
  disabled: c = !1,
2394
2394
  primaryType: a = "submit",
2395
- containerClassName: d = "",
2395
+ containerClassName: u = "",
2396
2396
  primaryClassName: m = "",
2397
2397
  alignEnd: b = !1,
2398
2398
  primaryName: g,
@@ -2403,7 +2403,7 @@ const gn = () => {
2403
2403
  return /* @__PURE__ */ A(
2404
2404
  "div",
2405
2405
  {
2406
- className: `flex gap-2 mt-2 ${b ? "justify-end" : ""} ${d}`,
2406
+ className: `flex gap-2 mt-2 ${b ? "justify-end" : ""} ${u}`,
2407
2407
  children: [
2408
2408
  /* @__PURE__ */ A(
2409
2409
  xe,
@@ -2445,9 +2445,9 @@ const gn = () => {
2445
2445
  handleClose: r,
2446
2446
  isLoading: c = !1,
2447
2447
  buttonEnd: a = !0,
2448
- ...d
2448
+ ...u
2449
2449
  } = e;
2450
- return /* @__PURE__ */ h(lt, { ...d, handleClose: r, children: /* @__PURE__ */ A("form", { onSubmit: n(i), children: [
2450
+ return /* @__PURE__ */ h(lt, { ...u, handleClose: r, children: /* @__PURE__ */ A("form", { onSubmit: n(i), children: [
2451
2451
  /* @__PURE__ */ h("div", { className: "form-container", children: s }),
2452
2452
  /* @__PURE__ */ h(
2453
2453
  ut,
@@ -2528,7 +2528,7 @@ function Tr(e) {
2528
2528
  ] });
2529
2529
  }
2530
2530
  const _n = (e) => {
2531
- const { t } = T(), [s, n] = B(null), [i, r] = B(null), [c, a] = B(null), [d, m] = B(!1), [b, g] = B(!1), {
2531
+ const { t } = T(), [s, n] = B(null), [i, r] = B(null), [c, a] = B(null), [u, m] = B(!1), [b, g] = B(!1), {
2532
2532
  children: f,
2533
2533
  handleSubmit: v,
2534
2534
  handleClose: C,
@@ -2603,7 +2603,7 @@ const _n = (e) => {
2603
2603
  }) })
2604
2604
  ] }),
2605
2605
  /* @__PURE__ */ h(Fr, { message: c ?? void 0 }),
2606
- d && /* @__PURE__ */ h(Lr, {}),
2606
+ u && /* @__PURE__ */ h(Lr, {}),
2607
2607
  !!i && i.length > 0 && /* @__PURE__ */ h(Tr, { items: i }),
2608
2608
  f,
2609
2609
  /* @__PURE__ */ h(
@@ -2627,7 +2627,7 @@ const _n = (e) => {
2627
2627
  ] });
2628
2628
  };
2629
2629
  function Cn(e) {
2630
- const { t } = T(), { open: s, onClose: n, menuMap: i, logo: r } = e, { account: c } = Jt(), { dynamicItems: a } = tr(), { linkComponent: d } = ze(), m = d, b = Ne(() => i.filter((y) => {
2630
+ const { t } = T(), { open: s, onClose: n, menuMap: i, logo: r } = e, { account: c } = Jt(), { dynamicItems: a } = tr(), { linkComponent: u } = ze(), m = u, b = Ne(() => i.filter((y) => {
2631
2631
  const L = y.auth, G = !!(c != null && c.email);
2632
2632
  return L == null || L && G || !L && !G;
2633
2633
  }), [c == null ? void 0 : c.email, i]), g = E(
@@ -2737,7 +2737,7 @@ const Dr = (e) => {
2737
2737
  actions: r,
2738
2738
  queryKey: c,
2739
2739
  isLoading: a = !1,
2740
- isAnimated: d = !0,
2740
+ isAnimated: u = !0,
2741
2741
  showBackButton: m = !1
2742
2742
  } = e, { t: b } = T(), { countOfFilters: g } = Ss(), f = Ne(() => {
2743
2743
  const v = Array.isArray(r) ? [...r] : [];
@@ -2784,7 +2784,7 @@ const Dr = (e) => {
2784
2784
  title: t
2785
2785
  }
2786
2786
  ),
2787
- /* @__PURE__ */ h("div", { className: `page-main-content ${d ? "appear" : ""}`, children: a ? /* @__PURE__ */ h(Ve, { className: "page-loading" }) : s }),
2787
+ /* @__PURE__ */ h("div", { className: `page-main-content ${u ? "appear" : ""}`, children: a ? /* @__PURE__ */ h(Ve, { className: "page-loading" }) : s }),
2788
2788
  n && /* @__PURE__ */ h(
2789
2789
  be,
2790
2790
  {
@@ -2801,13 +2801,15 @@ const Dr = (e) => {
2801
2801
  ] });
2802
2802
  }, Sn = (e) => {
2803
2803
  const { t } = T(), {
2804
- loading: s = !1,
2805
- emptyComponent: n = null,
2806
- emptyMessage: i = t("_accessibility:messages.empty"),
2807
- renderComponent: r,
2808
- data: c = []
2804
+ className: s = "",
2805
+ itemClassName: n = "",
2806
+ loading: i = !1,
2807
+ emptyComponent: r = null,
2808
+ emptyMessage: c = t("_accessibility:messages.empty"),
2809
+ renderComponent: a,
2810
+ data: u = []
2809
2811
  } = e;
2810
- return /* @__PURE__ */ h(De, { children: c != null && c.length ? /* @__PURE__ */ h("ul", { className: "pretty-grid-main", children: c == null ? void 0 : c.map((a) => /* @__PURE__ */ h("li", { className: "pretty-grid-item", children: r(a) }, a.id)) }) : /* @__PURE__ */ h(De, { children: n || /* @__PURE__ */ h(Mr, { message: i }) }) });
2812
+ return /* @__PURE__ */ h(De, { children: u != null && u.length ? /* @__PURE__ */ h("ul", { className: `pretty-grid-main ${s}`, children: u == null ? void 0 : u.map((m) => /* @__PURE__ */ h("li", { className: `pretty-grid-item ${n}`, children: a(m) }, m.id)) }) : /* @__PURE__ */ h(De, { children: r || /* @__PURE__ */ h(Mr, { message: c }) }) });
2811
2813
  }, Vr = () => {
2812
2814
  const [e, t] = B(kt());
2813
2815
  return Z(() => {
@@ -2818,8 +2820,8 @@ const Dr = (e) => {
2818
2820
  }, []), /* @__PURE__ */ h("p", { className: "capitalize max-xs:hidden", children: e });
2819
2821
  };
2820
2822
  function An(e) {
2821
- const { t } = T(), { openDrawer: s } = e, { searchComponent: n } = ze(), [i, r] = B(!1), c = E((d) => {
2822
- (Zs() ? d.metaKey : d.ctrlKey) && d.shiftKey && d.key.toLowerCase() === "f" && (r(!0), d.preventDefault());
2823
+ const { t } = T(), { openDrawer: s } = e, { searchComponent: n } = ze(), [i, r] = B(!1), c = E((u) => {
2824
+ (Zs() ? u.metaKey : u.ctrlKey) && u.shiftKey && u.key.toLowerCase() === "f" && (r(!0), u.preventDefault());
2823
2825
  }, []);
2824
2826
  Z(() => (window.addEventListener("keydown", c), () => {
2825
2827
  window.removeEventListener("keydown", c);
@@ -2890,7 +2892,7 @@ function En() {
2890
2892
  default:
2891
2893
  return "!text-info";
2892
2894
  }
2893
- }, []), d = E((g) => {
2895
+ }, []), u = E((g) => {
2894
2896
  switch (g) {
2895
2897
  case K.success:
2896
2898
  return "bg-bg-success";
@@ -2932,7 +2934,7 @@ function En() {
2932
2934
  children: t != null && t.length ? t == null ? void 0 : t.map(({ id: g, type: f, message: v }, C) => /* @__PURE__ */ A(
2933
2935
  "div",
2934
2936
  {
2935
- className: `notification ${n.has(C) ? "closing" : ""} ${d(
2937
+ className: `notification ${n.has(C) ? "closing" : ""} ${u(
2936
2938
  f ?? K.error
2937
2939
  )}`,
2938
2940
  onClick: (y) => y.stopPropagation(),
@@ -2996,13 +2998,13 @@ const Pr = (e) => {
2996
2998
  }
2997
2999
  );
2998
3000
  }, Ir = (e) => {
2999
- var d;
3001
+ var u;
3000
3002
  const {
3001
3003
  tabs: t = [],
3002
3004
  defaultTab: s,
3003
3005
  className: n = "",
3004
3006
  tabsContainerClassName: i = ""
3005
- } = e, [r, c] = B((d = t[0]) == null ? void 0 : d.id), a = Ne(() => t.find((m) => m.id === r), [t, r]);
3007
+ } = e, [r, c] = B((u = t[0]) == null ? void 0 : u.id), a = Ne(() => t.find((m) => m.id === r), [t, r]);
3006
3008
  return Z(() => {
3007
3009
  s && c(s);
3008
3010
  }, [s]), /* @__PURE__ */ A("div", { className: `tabs-layout-main ${n}`, children: [