@sito/dashboard-app 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var bs = Object.defineProperty;
2
- var ps = (e, t, s) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var me = (e, t, s) => ps(e, typeof t != "symbol" ? t + "" : t, s);
1
+ var ps = Object.defineProperty;
2
+ var ws = (e, t, s) => t in e ? ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var me = (e, t, s) => ws(e, typeof t != "symbol" ? t + "" : t, s);
4
4
  import "./main.css";
5
- import { useTranslation as L, State as ws, inputStateClassName as vs, labelStateClassName as xs, helperTextStateClassName as _s, Loading as De, TextInput as Cs, FileInput as ks, useTableOptions as Ss, Badge as Ns } from "@sito/dashboard";
5
+ import { useTranslation as T, State as vs, inputStateClassName as xs, labelStateClassName as _s, helperTextStateClassName as Cs, Loading as Ve, TextInput as ks, FileInput as Ns, useTableOptions as Ss, Badge as As } from "@sito/dashboard";
6
6
  export * from "@sito/dashboard";
7
- import { jsxs as A, jsx as h, Fragment as Te } from "react/jsx-runtime";
8
- import ie, { useRef as Re, useCallback as F, useEffect as X, useReducer as As, createContext as He, useContext as Ke, useState as H, forwardRef as It, useMemo as Ve } from "react";
9
- import { faTrash as Es, faRotateLeft as Mt, faPencil as $s, faCircleNotch as Ut, faCloudArrowDown as Fs, faCloudUpload as Ls, faArrowUp as Ts, faEllipsisV as Ds, faEyeSlash as Vs, faEye as Ps, faClose as Rt, faArrowLeft as Os, faAdd as vt, faFilter as Is, faBars as Ms, faSearch as Us, faCircleCheck as Rs, faWarning as qs } from "@fortawesome/free-solid-svg-icons";
7
+ import { jsxs as A, jsx as h, Fragment as De } from "react/jsx-runtime";
8
+ import ae, { useRef as Be, useCallback as E, useEffect as Z, useReducer as Es, createContext as Pe, useContext as Ie, useState as B, useMemo as Ne, forwardRef as Ot } from "react";
9
+ import { faTrash as $s, faRotateLeft as Mt, faPencil as Fs, faCircleNotch as Ut, faCloudArrowDown as Ls, faCloudUpload as Ts, faArrowUp as Ds, faEllipsisV as Vs, faEyeSlash as Ps, faEye as Is, faClose as Rt, faArrowLeft as Os, faAdd as vt, faFilter as Ms, faBars as Us, faSearch as Rs, faCircleCheck as qs, faWarning as Bs } from "@fortawesome/free-solid-svg-icons";
10
10
  import { FontAwesomeIcon as ce } from "@fortawesome/react-fontawesome";
11
11
  import { createPortal as qt } from "react-dom";
12
- import { css as Bs } from "@emotion/css";
13
- import { QueryClient as js, QueryClientProvider as Hs, useMutation as Pe, useQuery as Ks } from "@tanstack/react-query";
14
- import { faSadTear as Qs } from "@fortawesome/free-regular-svg-icons";
12
+ import { css as js } from "@emotion/css";
13
+ import { QueryClient as Hs, QueryClientProvider as Ks, useMutation as Oe, useQuery as Qs } from "@tanstack/react-query";
14
+ import { faSadTear as Ws } from "@fortawesome/free-regular-svg-icons";
15
15
  function Bt(e) {
16
16
  const {
17
17
  id: t,
@@ -20,24 +20,24 @@ function Bt(e) {
20
20
  onClick: i,
21
21
  children: r,
22
22
  hidden: c = !1,
23
- disabled: o = !1,
24
- showText: f = !1,
25
- showTooltips: y = !0
23
+ disabled: a = !1,
24
+ showText: d = !1,
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 ${f ? "text-action" : "icon-action"}`,
32
- disabled: o,
31
+ className: `action ${d ? "text-action" : "icon-action"}`,
32
+ disabled: a,
33
33
  onClick: () => i(),
34
- "aria-disabled": o,
34
+ "aria-disabled": a,
35
35
  "data-tooltip-id": "tooltip",
36
- "data-tooltip-content": y ? n : "",
36
+ "data-tooltip-content": m ? n : "",
37
37
  children: [
38
38
  s,
39
39
  " ",
40
- f && n,
40
+ d && n,
41
41
  r
42
42
  ]
43
43
  }
@@ -60,24 +60,24 @@ function jt(e) {
60
60
  }
61
61
  ) }, r.id)) });
62
62
  }
63
- const Ws = (e) => {
64
- const { children: t, open: s, onClose: n } = e, i = Re(null), r = F(
65
- (o) => {
66
- const f = i.current;
67
- !s || !f || f.contains(o.target) || n();
63
+ const zs = (e) => {
64
+ const { children: t, open: s, onClose: n } = e, i = Be(null), r = E(
65
+ (a) => {
66
+ const d = i.current;
67
+ !s || !d || d.contains(a.target) || n();
68
68
  },
69
69
  [s, n]
70
- ), c = F(
71
- (o) => {
72
- s && o.key === "Escape" && n();
70
+ ), c = E(
71
+ (a) => {
72
+ s && a.key === "Escape" && n();
73
73
  },
74
74
  [s, n]
75
75
  );
76
- return X(() => {
76
+ return Z(() => {
77
77
  if (s)
78
78
  return setTimeout(() => {
79
- var o;
80
- return (o = i.current) == null ? void 0 : o.focus();
79
+ var a;
80
+ return (a = i.current) == null ? void 0 : a.focus();
81
81
  }, 0), document.addEventListener("mousedown", r), document.addEventListener("keydown", c), () => {
82
82
  document.removeEventListener("mousedown", r), document.removeEventListener("keydown", c);
83
83
  };
@@ -89,7 +89,7 @@ const Ws = (e) => {
89
89
  "aria-hidden": !s,
90
90
  tabIndex: -1,
91
91
  className: `dropdown-main ${s ? "opened" : "closed"}`,
92
- onClick: (o) => o.stopPropagation(),
92
+ onClick: (a) => a.stopPropagation(),
93
93
  children: t
94
94
  }
95
95
  );
@@ -101,17 +101,17 @@ const Ws = (e) => {
101
101
  className: i = "",
102
102
  variant: r = "text",
103
103
  color: c = "default",
104
- iconClassName: o = "",
105
- ...f
104
+ iconClassName: a = "",
105
+ ...d
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
- ...f,
112
+ ...d,
113
113
  children: [
114
- /* @__PURE__ */ h(ce, { icon: s, className: `!w-auto ${o}` }),
114
+ /* @__PURE__ */ h(ce, { icon: s, className: `!w-auto ${a}` }),
115
115
  t
116
116
  ]
117
117
  }
@@ -128,67 +128,67 @@ const Ws = (e) => {
128
128
  return /* @__PURE__ */ h("button", { type: s, className: `button ${n} ${i} ${r}`, ...c, children: t });
129
129
  };
130
130
  var tt, xt;
131
- function zs() {
131
+ function Gs() {
132
132
  if (xt) return tt;
133
133
  xt = 1;
134
- const e = (o, f = "local", y = void 0) => {
135
- if (f === "local") {
136
- if (localStorage.getItem(o) !== void 0 && localStorage.getItem(o) !== "undefined" && localStorage.getItem(o) !== null)
137
- return y === void 0 || y !== void 0 && localStorage.getItem(o) === y;
138
- } else if (f === "session" && sessionStorage.getItem(o) !== void 0 && sessionStorage.getItem(o) !== "undefined" && sessionStorage.getItem(o) !== null)
139
- return y === void 0 || y !== void 0 && sessionStorage.getItem(o) === y;
134
+ const e = (a, d = "local", m = void 0) => {
135
+ if (d === "local") {
136
+ if (localStorage.getItem(a) !== void 0 && localStorage.getItem(a) !== "undefined" && localStorage.getItem(a) !== null)
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)
139
+ return m === void 0 || m !== void 0 && sessionStorage.getItem(a) === m;
140
140
  return !1;
141
- }, t = (o) => {
142
- const f = {};
143
- return o.substring(1).split("&").forEach((b) => {
144
- const [m, d] = b.split("=");
145
- f[m] = d;
146
- }), f;
147
- }, s = (o = "") => {
148
- if (r(o) && o.length) return r(o);
141
+ }, t = (a) => {
142
+ const d = {};
143
+ return a.substring(1).split("&").forEach((b) => {
144
+ const [g, f] = b.split("=");
145
+ d[g] = f;
146
+ }), d;
147
+ }, s = (a = "") => {
148
+ if (r(a) && a.length) return r(a);
149
149
  {
150
- let f = navigator.language || navigator.userLanguage;
151
- if (f.indexOf("en") < 0 && f.indexOf("es") < 0 && (f = "en-US"), f = f.split("-")[0], f)
152
- return o.length && i(o, 730, f), f;
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;
153
153
  }
154
154
  return "en";
155
- }, n = (o = 0, f = 0, y = window, b = "smooth") => y.scroll({
156
- top: o,
157
- left: f,
155
+ }, n = (a = 0, d = 0, m = window, b = "smooth") => m.scroll({
156
+ top: a,
157
+ left: d,
158
158
  behavior: b
159
- }), i = (o, f, y, b = "/", m = "Lax") => {
160
- var d = /* @__PURE__ */ new Date();
161
- d.setTime(d.getTime() + f * 24 * 60 * 60 * 1e3);
162
- const w = "; expires=" + d.toUTCString();
163
- document.cookie = `${o}=${y || ""}${w};path=${b};SameSite=${m}`;
164
- }, r = (o) => {
165
- const f = `${o}=`, b = decodeURIComponent(document.cookie).split(";");
166
- for (let m = 0; m < b.length; m += 1) {
167
- let d = b[m];
168
- for (; d.charAt(0) === " "; )
169
- d = d.substring(1);
170
- if (d.indexOf(f) === 0)
171
- return d.substring(f.length, d.length);
159
+ }), i = (a, d, m, b = "/", g = "Lax") => {
160
+ var f = /* @__PURE__ */ new Date();
161
+ f.setTime(f.getTime() + d * 24 * 60 * 60 * 1e3);
162
+ const v = "; expires=" + f.toUTCString();
163
+ document.cookie = `${a}=${m || ""}${v};path=${b};SameSite=${g}`;
164
+ }, r = (a) => {
165
+ const d = `${a}=`, b = decodeURIComponent(document.cookie).split(";");
166
+ for (let g = 0; g < b.length; g += 1) {
167
+ let f = b[g];
168
+ for (; f.charAt(0) === " "; )
169
+ f = f.substring(1);
170
+ if (f.indexOf(d) === 0)
171
+ return f.substring(d.length, f.length);
172
172
  }
173
173
  return "";
174
174
  };
175
175
  return tt = {
176
176
  getCookie: r,
177
177
  createCookie: i,
178
- deleteCookie: (o) => document.cookie = `${o}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,
178
+ deleteCookie: (a) => document.cookie = `${a}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,
179
179
  getUserLanguage: s,
180
180
  scrollTo: n,
181
181
  parseQueries: t,
182
182
  validation: e
183
183
  }, tt;
184
184
  }
185
- var Gs = zs();
186
- function Gr() {
187
- const { t: e, language: t } = L();
188
- return { timeAge: F(
185
+ var Js = Gs();
186
+ function Yr() {
187
+ const { t: e, language: t } = T();
188
+ return { timeAge: E(
189
189
  (n) => {
190
- const r = /* @__PURE__ */ new Date() - n, c = Math.floor(r / (1e3 * 60)), o = Math.floor(c / 60), f = t === "es", y = e("_accessibility:labels.ago"), b = e("_accessibility:labels.minute"), m = e("_accessibility:labels.minutes"), d = e("_accessibility:labels.hour"), w = e("_accessibility:labels.hours"), C = e("_accessibility:labels.yesterday"), v = e("_accessibility:labels.justNow");
191
- return r < 1e3 * 60 ? v : c < 60 ? `${f ? y : ""} ${c} ${c === 1 ? b : m} ${f ? "" : y}` : o < 24 ? `${f ? y : ""} ${o} ${o === 1 ? d : w} ${f ? "" : y}` : o < 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), 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", {
192
192
  day: "2-digit",
193
193
  month: "2-digit",
194
194
  year: "numeric"
@@ -197,8 +197,8 @@ function Gr() {
197
197
  [e, t]
198
198
  ) };
199
199
  }
200
- var j = /* @__PURE__ */ ((e) => (e[e.success = 0] = "success", e[e.error = 1] = "error", e[e.warning = 2] = "warning", e[e.info = 3] = "info", e))(j || {}), re = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e))(re || {});
201
- async function Ae(e, t = "GET", s, n) {
200
+ var K = /* @__PURE__ */ ((e) => (e[e.success = 0] = "success", e[e.error = 1] = "error", e[e.warning = 2] = "warning", e[e.info = 3] = "info", e))(K || {}), ne = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e))(ne || {});
201
+ async function Ee(e, t = "GET", s, n) {
202
202
  const i = {
203
203
  ...s ? { "Content-Type": "application/json" } : {},
204
204
  ...n
@@ -209,25 +209,25 @@ async function Ae(e, t = "GET", s, n) {
209
209
  headers: i,
210
210
  ...s ? { body: JSON.stringify(s) } : {}
211
211
  }), c = await r.text();
212
- let o = null;
212
+ let a = null;
213
213
  try {
214
- o = c ? JSON.parse(c) : null;
214
+ a = c ? JSON.parse(c) : null;
215
215
  } catch {
216
- o = null;
216
+ a = null;
217
217
  }
218
218
  if (!r.ok) {
219
- const f = typeof o == "object" && o !== null ? o.message ?? o.error ?? c : c || r.statusText;
219
+ const d = 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: f || "Unknown error occurred"
225
+ message: d || "Unknown error occurred"
226
226
  }
227
227
  };
228
228
  }
229
229
  return {
230
- data: r.status !== 204 && o !== null ? o : null,
230
+ data: r.status !== 204 && a !== null ? a : null,
231
231
  status: r.status,
232
232
  error: null
233
233
  };
@@ -242,7 +242,7 @@ async function Ae(e, t = "GET", s, n) {
242
242
  };
243
243
  }
244
244
  }
245
- function Js(e, t) {
245
+ function Ys(e, t) {
246
246
  if (t) {
247
247
  const s = Object.entries(t).filter(([, n]) => n != null).map(
248
248
  ([n, i]) => `${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`
@@ -254,12 +254,12 @@ function Js(e, t) {
254
254
  const Ht = (e, t, s) => {
255
255
  const n = [];
256
256
  if (t) {
257
- const { sortingBy: i, sortingOrder: r, currentPage: c, pageSize: o } = t;
257
+ const { sortingBy: i, sortingOrder: r, currentPage: c, pageSize: a } = t;
258
258
  n.push(
259
259
  `sort=${String(i)}`,
260
260
  `order=${r}`,
261
261
  `page=${c}`,
262
- `pageSize=${o}`
262
+ `pageSize=${a}`
263
263
  );
264
264
  }
265
265
  if (s) {
@@ -267,10 +267,10 @@ const Ht = (e, t, s) => {
267
267
  ([, r]) => r != null && r !== ""
268
268
  ).flatMap(([r, c]) => {
269
269
  if (Array.isArray(c))
270
- return c.map((o) => `${r}==${encodeURIComponent((o == null ? void 0 : o.id) ?? o)}`);
270
+ return c.map((a) => `${r}==${encodeURIComponent((a == null ? void 0 : a.id) ?? a)}`);
271
271
  if (typeof c == "object" && c !== null && "start" in c && "end" in c) {
272
- const o = [];
273
- return c.start != null && c.start !== "" && o.push(`${r}>=${encodeURIComponent(c.start)}`), c.end != null && c.end !== "" && o.push(`${r}<=${encodeURIComponent(c.end)}`), o;
272
+ const a = [];
273
+ return c.start != null && c.start !== "" && a.push(`${r}>=${encodeURIComponent(c.start)}`), c.end != null && c.end !== "" && a.push(`${r}<=${encodeURIComponent(c.end)}`), a;
274
274
  }
275
275
  return typeof c == "object" && c !== null ? `${r}==${encodeURIComponent(c.id ?? "")}` : `${r}==${encodeURIComponent(c)}`;
276
276
  });
@@ -298,8 +298,8 @@ class Kt {
298
298
  if (s && s.length)
299
299
  return { Authorization: `Bearer ${s}` };
300
300
  }
301
- async doQuery(t, s = re.GET, n, i) {
302
- const r = this.secured ? this.defaultTokenAcquirer() : {}, { data: c, status: o, error: f } = await Ae(
301
+ async doQuery(t, s = ne.GET, n, i) {
302
+ const r = this.secured ? this.defaultTokenAcquirer() : {}, { data: c, status: a, error: d } = await Ee(
303
303
  `${this.baseUrl}${t}`,
304
304
  s,
305
305
  n,
@@ -308,10 +308,10 @@ class Kt {
308
308
  ...i ?? {}
309
309
  }
310
310
  );
311
- if (f || o < 200 || o >= 300)
312
- throw f ?? {
313
- status: o,
314
- message: String(o)
311
+ if (d || a < 200 || a >= 300)
312
+ throw d ?? {
313
+ status: a,
314
+ message: String(a)
315
315
  };
316
316
  return c;
317
317
  }
@@ -322,13 +322,13 @@ class Kt {
322
322
  * @returns Result list
323
323
  */
324
324
  async get(t, s, n) {
325
- const i = Ht(t, s, n), r = this.secured ? this.defaultTokenAcquirer() : void 0, { data: c, error: o } = await Ae(
325
+ const i = Ht(t, s, n), r = this.secured ? this.defaultTokenAcquirer() : void 0, { data: c, error: a } = await Ee(
326
326
  `${this.baseUrl}${i}`,
327
- re.GET,
327
+ ne.GET,
328
328
  null,
329
329
  r
330
330
  );
331
- if (o) throw o;
331
+ if (a) throw a;
332
332
  return c;
333
333
  }
334
334
  /**
@@ -338,9 +338,9 @@ class Kt {
338
338
  * @returns updated entity
339
339
  */
340
340
  async patch(t, s) {
341
- const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ae(
341
+ const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ee(
342
342
  `${this.baseUrl}${t}`,
343
- re.PATCH,
343
+ ne.PATCH,
344
344
  s,
345
345
  n
346
346
  );
@@ -357,9 +357,9 @@ class Kt {
357
357
  * @returns delete result
358
358
  */
359
359
  async delete(t, s) {
360
- const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ae(
360
+ const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ee(
361
361
  `${this.baseUrl}${t}`,
362
- re.DELETE,
362
+ ne.DELETE,
363
363
  s,
364
364
  n
365
365
  );
@@ -377,9 +377,9 @@ class Kt {
377
377
  * @returns inserted item
378
378
  */
379
379
  async post(t, s) {
380
- const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ae(
380
+ const n = this.secured ? this.defaultTokenAcquirer() : void 0, { error: i, data: r, status: c } = await Ee(
381
381
  `${this.baseUrl}${t}`,
382
- re.POST,
382
+ ne.POST,
383
383
  s,
384
384
  n
385
385
  );
@@ -391,7 +391,7 @@ class Kt {
391
391
  return r;
392
392
  }
393
393
  }
394
- class Ys {
394
+ class Xs {
395
395
  constructor(t, s = "user") {
396
396
  me(this, "api");
397
397
  this.api = new Kt(t, s, !1);
@@ -400,30 +400,30 @@ class Ys {
400
400
  const s = "auth/sign-in", n = t;
401
401
  return await this.api.doQuery(
402
402
  s,
403
- re.POST,
403
+ ne.POST,
404
404
  n
405
405
  );
406
406
  }
407
407
  async logout() {
408
- return await this.api.doQuery("auth/sign-out", re.POST);
408
+ return await this.api.doQuery("auth/sign-out", ne.POST);
409
409
  }
410
410
  async register(t) {
411
411
  return await this.api.doQuery(
412
412
  "auth/sign-up",
413
- re.POST,
413
+ ne.POST,
414
414
  t
415
415
  );
416
416
  }
417
417
  async getSession() {
418
- return await this.api.doQuery("auth/session", re.GET, null, {
418
+ return await this.api.doQuery("auth/session", ne.GET, null, {
419
419
  ...this.api.defaultTokenAcquirer()
420
420
  });
421
421
  }
422
422
  }
423
- class Jr {
423
+ class Xr {
424
424
  constructor(t, s) {
425
425
  me(this, "auth");
426
- this.auth = new Ys(t, s);
426
+ this.auth = new Xs(t, s);
427
427
  }
428
428
  /**
429
429
  * @returns auth
@@ -432,7 +432,7 @@ class Jr {
432
432
  return this.auth;
433
433
  }
434
434
  }
435
- class Yr {
435
+ class Zr {
436
436
  /**
437
437
  *
438
438
  * @param table
@@ -460,7 +460,7 @@ class Yr {
460
460
  async insertMany(t) {
461
461
  return await this.api.doQuery(
462
462
  `${this.table}/batch`,
463
- re.POST,
463
+ ne.POST,
464
464
  t
465
465
  );
466
466
  }
@@ -495,7 +495,7 @@ class Yr {
495
495
  void 0,
496
496
  t
497
497
  );
498
- return await this.api.doQuery(s, re.GET, void 0);
498
+ return await this.api.doQuery(s, ne.GET, void 0);
499
499
  }
500
500
  /**
501
501
  *
@@ -505,7 +505,7 @@ class Yr {
505
505
  async import(t) {
506
506
  return await this.api.doQuery(
507
507
  `${this.table}/import`,
508
- re.POST,
508
+ ne.POST,
509
509
  t
510
510
  );
511
511
  }
@@ -516,8 +516,8 @@ class Yr {
516
516
  */
517
517
  async commonGet(t) {
518
518
  return await this.api.doQuery(
519
- Js(`${this.table}/common`, t),
520
- re.GET
519
+ Ys(`${this.table}/common`, t),
520
+ ne.GET
521
521
  );
522
522
  }
523
523
  /**
@@ -535,7 +535,7 @@ class Yr {
535
535
  return await this.api.patch(`${this.table}/restore`, t);
536
536
  }
537
537
  }
538
- function Xr(e) {
538
+ function en(e) {
539
539
  return Object.keys(e).filter((t) => isNaN(Number(t))).map((t) => ({
540
540
  key: t,
541
541
  value: e[t]
@@ -581,11 +581,11 @@ function kt(e) {
581
581
  s
582
582
  );
583
583
  }
584
- function Zr(e) {
584
+ function tn(e) {
585
585
  const t = e ? new Date(e) : /* @__PURE__ */ new Date(), s = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), r = String(t.getHours()).padStart(2, "0"), c = String(t.getMinutes()).padStart(2, "0");
586
586
  return `${s}-${n}-${i}T${r}:${c}`;
587
587
  }
588
- const Xs = () => {
588
+ const Zs = () => {
589
589
  var s;
590
590
  const e = navigator, t = ((s = e == null ? void 0 : e.userAgentData) == null ? void 0 : s.platform) || (e == null ? void 0 : e.platform) || "";
591
591
  return /Mac|iPhone|iPod|iPad/i.test(t);
@@ -602,46 +602,46 @@ function We(e) {
602
602
  const t = e;
603
603
  return typeof (t == null ? void 0 : t.status) == "number" && typeof (t == null ? void 0 : t.message) == "string";
604
604
  }
605
- function en(e, t) {
605
+ function sn(e, t) {
606
606
  return e != null && e.errors ? e.errors.map(([s, n]) => t(s, n)) : [];
607
607
  }
608
- const Wt = He({});
609
- function tn(e) {
610
- const { children: t } = e, [s, n] = As(
611
- (y, b) => {
612
- const { type: m, items: d, index: w } = b;
613
- switch (m) {
608
+ const Wt = Pe({});
609
+ function rn(e) {
610
+ const { children: t } = e, [s, n] = Es(
611
+ (m, b) => {
612
+ const { type: g, items: f, index: v } = b;
613
+ switch (g) {
614
614
  case "set":
615
- return (d == null ? void 0 : d.map((C, v) => ({
615
+ return (f == null ? void 0 : f.map((C, y) => ({
616
616
  ...C,
617
- id: v
617
+ id: y
618
618
  }))) ?? [];
619
619
  case "remove":
620
- return w !== void 0 ? y.filter((C, v) => v !== w) : [];
620
+ return v !== void 0 ? m.filter((C, y) => y !== v) : [];
621
621
  }
622
- return y;
622
+ return m;
623
623
  },
624
624
  [],
625
625
  () => []
626
- ), i = (y) => n({
626
+ ), i = (m) => n({
627
627
  type: "set",
628
- items: [{ ...y, type: j.error }]
629
- }), r = (y) => n({
628
+ items: [{ ...m, type: K.error }]
629
+ }), r = (m) => n({
630
630
  type: "set",
631
- items: [{ ...y }]
632
- }), c = (y) => n({ type: "set", items: y }), o = (y) => n({
631
+ items: [{ ...m }]
632
+ }), c = (m) => n({ type: "set", items: m }), a = (m) => n({
633
633
  type: "set",
634
- items: [{ ...y, type: j.success }]
635
- }), f = (y) => n({ type: "remove", index: y });
634
+ items: [{ ...m, type: K.success }]
635
+ }), d = (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: f,
641
+ removeNotification: d,
642
642
  showErrorNotification: i,
643
643
  showNotification: r,
644
- showSuccessNotification: o,
644
+ showSuccessNotification: a,
645
645
  showStackNotifications: c
646
646
  },
647
647
  children: t
@@ -649,11 +649,11 @@ function tn(e) {
649
649
  );
650
650
  }
651
651
  const Se = () => {
652
- const e = Ke(Wt);
652
+ const e = Ie(Wt);
653
653
  if (e === void 0)
654
654
  throw new Error("NotificationContext must be used within a Provider");
655
655
  return e;
656
- }, pe = new js({
656
+ }, pe = new Hs({
657
657
  defaultOptions: {
658
658
  queries: {
659
659
  refetchInterval: !1,
@@ -665,48 +665,48 @@ const Se = () => {
665
665
  // default: true
666
666
  }
667
667
  }
668
- }), zt = He({}), sn = (e) => {
668
+ }), zt = Pe({}), nn = (e) => {
669
669
  const { children: t, manager: s } = e;
670
- return /* @__PURE__ */ h(zt.Provider, { value: { client: s }, children: /* @__PURE__ */ h(Hs, { client: pe, children: t }) });
671
- }, Zs = () => {
672
- const e = Ke(zt);
670
+ return /* @__PURE__ */ h(zt.Provider, { value: { client: s }, children: /* @__PURE__ */ h(Ks, { client: pe, children: t }) });
671
+ }, er = () => {
672
+ const e = Ie(zt);
673
673
  if (e === void 0)
674
674
  throw new Error("managerContext must be used within a Provider");
675
675
  return e.client;
676
- }, Gt = He({}), rn = (e) => {
677
- const { children: t, guestMode: s = "guest_mode", user: n = "user" } = e, i = Zs(), [r, c] = H({}), o = F(() => !!Qt(s, "boolean") && r.token === void 0, [r.token]), f = F((w) => {
678
- _t(s, w);
679
- }, []), y = F((w) => {
680
- w && (c(w), Ct(s), _t(n, w.token));
681
- }, []), b = F(async () => {
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) => {
678
+ _t(s, v);
679
+ }, []), m = E((v) => {
680
+ v && (c(v), Ct(s), _t(n, v.token));
681
+ }, []), b = E(async () => {
682
682
  try {
683
683
  await i.Auth.logout();
684
- } catch (w) {
685
- console.error(w);
684
+ } catch (v) {
685
+ console.error(v);
686
686
  }
687
687
  c({}), Ct(n);
688
- }, [i.Auth]), m = F(async () => {
688
+ }, [i.Auth]), g = E(async () => {
689
689
  try {
690
- const w = await i.Auth.getSession();
691
- y(w);
692
- } catch (w) {
693
- console.error(w), b();
690
+ const v = await i.Auth.getSession();
691
+ m(v);
692
+ } catch (v) {
693
+ console.error(v), b();
694
694
  }
695
- }, [y, b, i.Auth]), d = {
695
+ }, [m, b, i.Auth]), f = {
696
696
  account: r,
697
- logUser: y,
697
+ logUser: m,
698
698
  logoutUser: b,
699
- logUserFromLocal: m,
700
- isInGuestMode: o,
701
- setGuestMode: f
699
+ logUserFromLocal: g,
700
+ isInGuestMode: a,
701
+ setGuestMode: d
702
702
  };
703
- return /* @__PURE__ */ h(Gt.Provider, { value: d, children: t });
703
+ return /* @__PURE__ */ h(Gt.Provider, { value: f, children: t });
704
704
  }, Jt = () => {
705
- const e = Ke(Gt);
705
+ const e = Ie(Gt);
706
706
  if (e === void 0)
707
707
  throw new Error("authContext must be used within a Provider");
708
708
  return e;
709
- }, Yt = He({}), nn = (e) => {
709
+ }, Yt = Pe({}), on = (e) => {
710
710
  const { children: t, location: s, navigate: n, linkComponent: i, searchComponent: r } = e;
711
711
  return /* @__PURE__ */ h(
712
712
  Yt.Provider,
@@ -716,74 +716,104 @@ const Se = () => {
716
716
  }
717
717
  );
718
718
  }, ze = () => {
719
- const e = Ke(Yt);
719
+ const e = Ie(Yt);
720
720
  if (e === void 0 || Object.keys(e).length === 0)
721
721
  throw new Error(
722
722
  "Config provider has not been set. This step is required and cannot be skipped."
723
723
  );
724
724
  return e;
725
- }, Xt = (e) => {
726
- const { showSuccessNotification: t } = Se(), { mutationFn: s, onError: n, onSuccess: i, onSuccessMessage: r } = e, [c, o] = H([]), { open: f, handleClose: y, handleOpen: b } = as(), m = () => {
727
- y(), o([]);
728
- }, d = async (C) => {
729
- o(C), b();
730
- }, w = Pe({
725
+ }, Xt = Pe({}), cn = (e) => {
726
+ const { children: t } = e, [s, n] = B({}), i = E(
727
+ (d, m) => n((b) => ({
728
+ ...b,
729
+ [d]: [...b[d] ?? [], m]
730
+ })),
731
+ []
732
+ ), r = E(
733
+ (d, m) => n((b) => ({
734
+ ...b,
735
+ [d]: (b[d] ?? []).filter((g, f) => f !== m)
736
+ })),
737
+ []
738
+ ), c = E((d) => {
739
+ n(d ? (m) => ({
740
+ ...m,
741
+ [d]: []
742
+ }) : {});
743
+ }, []), a = Ne(
744
+ () => ({
745
+ dynamicItems: s,
746
+ addChildItem: i,
747
+ removeChildItem: r,
748
+ clearDynamicItems: c
749
+ }),
750
+ [s, c, r, i]
751
+ );
752
+ return /* @__PURE__ */ h(Xt.Provider, { value: a, children: t });
753
+ }, tr = () => Ie(
754
+ Xt
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 = () => {
757
+ m(), a([]);
758
+ }, f = async (C) => {
759
+ a(C), b();
760
+ }, v = Oe({
731
761
  mutationFn: () => s(
732
762
  Array.isArray(c) ? c : [c]
733
763
  ),
734
764
  onError: (C) => {
735
- console.error(C), n && n(C), m();
765
+ console.error(C), n && n(C), g();
736
766
  },
737
767
  onSuccess: async (C) => {
738
768
  i && i(C), t({
739
769
  message: r
740
- }), m();
770
+ }), g();
741
771
  }
742
772
  });
743
- return { open: f, onClick: d, close: m, dialogFn: w, isLoading: w.isPending };
773
+ return { open: d, onClick: f, close: g, dialogFn: v, isLoading: v.isPending };
744
774
  };
745
- var Oe = (e) => e.type === "checkbox", ke = (e) => e instanceof Date, te = (e) => e == null;
746
- const Zt = (e) => typeof e == "object";
747
- var K = (e) => !te(e) && !Array.isArray(e) && Zt(e) && !ke(e), er = (e) => K(e) && e.target ? Oe(e.target) ? e.target.checked : e.target.value : e, tr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, sr = (e, t) => e.has(tr(t)), rr = (e) => {
775
+ var Me = (e) => e.type === "checkbox", ke = (e) => e instanceof Date, se = (e) => e == null;
776
+ const es = (e) => typeof e == "object";
777
+ var Q = (e) => !se(e) && !Array.isArray(e) && es(e) && !ke(e), sr = (e) => Q(e) && e.target ? Me(e.target) ? e.target.checked : e.target.value : e, rr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, nr = (e, t) => e.has(rr(t)), ir = (e) => {
748
778
  const t = e.constructor && e.constructor.prototype;
749
- return K(t) && t.hasOwnProperty("isPrototypeOf");
779
+ return Q(t) && t.hasOwnProperty("isPrototypeOf");
750
780
  }, nt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
751
- function Y(e) {
781
+ function X(e) {
752
782
  let t;
753
783
  const s = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
754
784
  if (e instanceof Date)
755
785
  t = new Date(e);
756
- else if (!(nt && (e instanceof Blob || n)) && (s || K(e)))
757
- if (t = s ? [] : {}, !s && !rr(e))
786
+ else if (!(nt && (e instanceof Blob || n)) && (s || Q(e)))
787
+ if (t = s ? [] : {}, !s && !ir(e))
758
788
  t = e;
759
789
  else
760
790
  for (const i in e)
761
- e.hasOwnProperty(i) && (t[i] = Y(e[i]));
791
+ e.hasOwnProperty(i) && (t[i] = X(e[i]));
762
792
  else
763
793
  return e;
764
794
  return t;
765
795
  }
766
- var Ge = (e) => /^\w*$/.test(e), W = (e) => e === void 0, it = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ot = (e) => it(e.replace(/["|']|\]/g, "").split(/\.|\[/)), _ = (e, t, s) => {
767
- if (!t || !K(e))
796
+ var Ge = (e) => /^\w*$/.test(e), z = (e) => e === void 0, it = (e) => Array.isArray(e) ? e.filter(Boolean) : [], at = (e) => it(e.replace(/["|']|\]/g, "").split(/\.|\[/)), _ = (e, t, s) => {
797
+ if (!t || !Q(e))
768
798
  return s;
769
- const n = (Ge(t) ? [t] : ot(t)).reduce((i, r) => te(i) ? i : i[r], e);
770
- return W(n) || n === e ? W(e[t]) ? s : e[t] : n;
771
- }, he = (e) => typeof e == "boolean", U = (e, t, s) => {
799
+ const n = (Ge(t) ? [t] : at(t)).reduce((i, r) => se(i) ? i : i[r], e);
800
+ return z(n) || n === e ? z(e[t]) ? s : e[t] : n;
801
+ }, he = (e) => typeof e == "boolean", R = (e, t, s) => {
772
802
  let n = -1;
773
- const i = Ge(t) ? [t] : ot(t), r = i.length, c = r - 1;
803
+ const i = Ge(t) ? [t] : at(t), r = i.length, c = r - 1;
774
804
  for (; ++n < r; ) {
775
- const o = i[n];
776
- let f = s;
805
+ const a = i[n];
806
+ let d = s;
777
807
  if (n !== c) {
778
- const y = e[o];
779
- f = K(y) || Array.isArray(y) ? y : isNaN(+i[n + 1]) ? {} : [];
808
+ const m = e[a];
809
+ d = Q(m) || Array.isArray(m) ? m : isNaN(+i[n + 1]) ? {} : [];
780
810
  }
781
- if (o === "__proto__" || o === "constructor" || o === "prototype")
811
+ if (a === "__proto__" || a === "constructor" || a === "prototype")
782
812
  return;
783
- e[o] = f, e = e[o];
813
+ e[a] = d, e = e[a];
784
814
  }
785
815
  };
786
- const St = {
816
+ const Nt = {
787
817
  BLUR: "blur",
788
818
  FOCUS_OUT: "focusout"
789
819
  }, de = {
@@ -800,9 +830,9 @@ const St = {
800
830
  pattern: "pattern",
801
831
  required: "required",
802
832
  validate: "validate"
803
- }, nr = ie.createContext(null);
804
- nr.displayName = "HookFormContext";
805
- var ir = (e, t, s, n = !0) => {
833
+ }, ar = ae.createContext(null);
834
+ ar.displayName = "HookFormContext";
835
+ var or = (e, t, s, n = !0) => {
806
836
  const i = {
807
837
  defaultValues: t._defaultValues
808
838
  };
@@ -815,8 +845,8 @@ var ir = (e, t, s, n = !0) => {
815
845
  });
816
846
  return i;
817
847
  };
818
- const or = typeof window < "u" ? ie.useLayoutEffect : ie.useEffect;
819
- var ye = (e) => typeof e == "string", ar = (e, t, s, n, i) => ye(e) ? (n && t.watch.add(e), _(s, e, i)) : Array.isArray(e) ? e.map((r) => (n && t.watch.add(r), _(s, r))) : (n && (t.watchAll = !0), s), rt = (e) => te(e) || !Zt(e);
848
+ const cr = typeof window < "u" ? ae.useLayoutEffect : ae.useEffect;
849
+ var ye = (e) => typeof e == "string", lr = (e, t, s, n, i) => ye(e) ? (n && t.watch.add(e), _(s, e, i)) : Array.isArray(e) ? e.map((r) => (n && t.watch.add(r), _(s, r))) : (n && (t.watchAll = !0), s), rt = (e) => se(e) || !es(e);
820
850
  function ve(e, t, s = /* @__PURE__ */ new WeakSet()) {
821
851
  if (rt(e) || rt(t))
822
852
  return e === t;
@@ -833,20 +863,20 @@ function ve(e, t, s = /* @__PURE__ */ new WeakSet()) {
833
863
  if (!i.includes(r))
834
864
  return !1;
835
865
  if (r !== "ref") {
836
- const o = t[r];
837
- if (ke(c) && ke(o) || K(c) && K(o) || Array.isArray(c) && Array.isArray(o) ? !ve(c, o, s) : c !== o)
866
+ const a = t[r];
867
+ if (ke(c) && ke(a) || Q(c) && Q(a) || Array.isArray(c) && Array.isArray(a) ? !ve(c, a, s) : c !== a)
838
868
  return !1;
839
869
  }
840
870
  }
841
871
  return !0;
842
872
  }
843
- var cr = (e, t, s, n, i) => t ? {
873
+ var ur = (e, t, s, n, i) => t ? {
844
874
  ...s[e],
845
875
  types: {
846
876
  ...s[e] && s[e].types ? s[e].types : {},
847
877
  [n]: i || !0
848
878
  }
849
- } : {}, Fe = (e) => Array.isArray(e) ? e : [e], Nt = () => {
879
+ } : {}, Le = (e) => Array.isArray(e) ? e : [e], St = () => {
850
880
  let e = [];
851
881
  return {
852
882
  get observers() {
@@ -865,55 +895,55 @@ var cr = (e, t, s, n, i) => t ? {
865
895
  e = [];
866
896
  }
867
897
  };
868
- }, se = (e) => K(e) && !Object.keys(e).length, at = (e) => e.type === "file", fe = (e) => typeof e == "function", qe = (e) => {
898
+ }, re = (e) => Q(e) && !Object.keys(e).length, ot = (e) => e.type === "file", fe = (e) => typeof e == "function", je = (e) => {
869
899
  if (!nt)
870
900
  return !1;
871
901
  const t = e ? e.ownerDocument : 0;
872
902
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
873
- }, es = (e) => e.type === "select-multiple", ct = (e) => e.type === "radio", lr = (e) => ct(e) || Oe(e), st = (e) => qe(e) && e.isConnected;
874
- function ur(e, t) {
903
+ }, ts = (e) => e.type === "select-multiple", ct = (e) => e.type === "radio", dr = (e) => ct(e) || Me(e), st = (e) => je(e) && e.isConnected;
904
+ function fr(e, t) {
875
905
  const s = t.slice(0, -1).length;
876
906
  let n = 0;
877
907
  for (; n < s; )
878
- e = W(e) ? n++ : e[t[n++]];
908
+ e = z(e) ? n++ : e[t[n++]];
879
909
  return e;
880
910
  }
881
- function dr(e) {
911
+ function mr(e) {
882
912
  for (const t in e)
883
- if (e.hasOwnProperty(t) && !W(e[t]))
913
+ if (e.hasOwnProperty(t) && !z(e[t]))
884
914
  return !1;
885
915
  return !0;
886
916
  }
887
- function Q(e, t) {
888
- const s = Array.isArray(t) ? t : Ge(t) ? [t] : ot(t), n = s.length === 1 ? e : ur(e, s), i = s.length - 1, r = s[i];
889
- return n && delete n[r], i !== 0 && (K(n) && se(n) || Array.isArray(n) && dr(n)) && Q(e, s.slice(0, -1)), e;
917
+ function W(e, t) {
918
+ const s = Array.isArray(t) ? t : Ge(t) ? [t] : at(t), n = s.length === 1 ? e : fr(e, s), i = s.length - 1, r = s[i];
919
+ return n && delete n[r], i !== 0 && (Q(n) && re(n) || Array.isArray(n) && mr(n)) && W(e, s.slice(0, -1)), e;
890
920
  }
891
- var ts = (e) => {
921
+ var ss = (e) => {
892
922
  for (const t in e)
893
923
  if (fe(e[t]))
894
924
  return !0;
895
925
  return !1;
896
926
  };
897
- function Be(e, t = {}) {
927
+ function He(e, t = {}) {
898
928
  const s = Array.isArray(e);
899
- if (K(e) || s)
929
+ if (Q(e) || s)
900
930
  for (const n in e)
901
- Array.isArray(e[n]) || K(e[n]) && !ts(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, Be(e[n], t[n])) : te(e[n]) || (t[n] = !0);
931
+ Array.isArray(e[n]) || Q(e[n]) && !ss(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, He(e[n], t[n])) : se(e[n]) || (t[n] = !0);
902
932
  return t;
903
933
  }
904
- function ss(e, t, s) {
934
+ function rs(e, t, s) {
905
935
  const n = Array.isArray(e);
906
- if (K(e) || n)
936
+ if (Q(e) || n)
907
937
  for (const i in e)
908
- Array.isArray(e[i]) || K(e[i]) && !ts(e[i]) ? W(t) || rt(s[i]) ? s[i] = Array.isArray(e[i]) ? Be(e[i], []) : { ...Be(e[i]) } : ss(e[i], te(t) ? {} : t[i], s[i]) : s[i] = !ve(e[i], t[i]);
938
+ Array.isArray(e[i]) || Q(e[i]) && !ss(e[i]) ? z(t) || rt(s[i]) ? s[i] = Array.isArray(e[i]) ? He(e[i], []) : { ...He(e[i]) } : rs(e[i], se(t) ? {} : t[i], s[i]) : s[i] = !ve(e[i], t[i]);
909
939
  return s;
910
940
  }
911
- var Ee = (e, t) => ss(e, t, Be(t));
941
+ var $e = (e, t) => rs(e, t, He(t));
912
942
  const At = {
913
943
  value: !1,
914
944
  isValid: !1
915
945
  }, Et = { value: !0, isValid: !0 };
916
- var rs = (e) => {
946
+ var ns = (e) => {
917
947
  if (Array.isArray(e)) {
918
948
  if (e.length > 1) {
919
949
  const t = e.filter((s) => s && s.checked && !s.disabled).map((s) => s.value);
@@ -921,28 +951,28 @@ var rs = (e) => {
921
951
  }
922
952
  return e[0].checked && !e[0].disabled ? (
923
953
  // @ts-expect-error expected to work in the browser
924
- e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ? Et : { value: e[0].value, isValid: !0 } : Et
954
+ e[0].attributes && !z(e[0].attributes.value) ? z(e[0].value) || e[0].value === "" ? Et : { value: e[0].value, isValid: !0 } : Et
925
955
  ) : At;
926
956
  }
927
957
  return At;
928
- }, ns = (e, { valueAsNumber: t, valueAsDate: s, setValueAs: n }) => W(e) ? e : t ? e === "" ? NaN : e && +e : s && ye(e) ? new Date(e) : n ? n(e) : e;
958
+ }, is = (e, { valueAsNumber: t, valueAsDate: s, setValueAs: n }) => z(e) ? e : t ? e === "" ? NaN : e && +e : s && ye(e) ? new Date(e) : n ? n(e) : e;
929
959
  const $t = {
930
960
  isValid: !1,
931
961
  value: null
932
962
  };
933
- var is = (e) => Array.isArray(e) ? e.reduce((t, s) => s && s.checked && !s.disabled ? {
963
+ var as = (e) => Array.isArray(e) ? e.reduce((t, s) => s && s.checked && !s.disabled ? {
934
964
  isValid: !0,
935
965
  value: s.value
936
966
  } : t, $t) : $t;
937
967
  function Ft(e) {
938
968
  const t = e.ref;
939
- return at(t) ? t.files : ct(t) ? is(e.refs).value : es(t) ? [...t.selectedOptions].map(({ value: s }) => s) : Oe(t) ? rs(e.refs).value : ns(W(t.value) ? e.ref.value : t.value, e);
969
+ return ot(t) ? t.files : ct(t) ? as(e.refs).value : ts(t) ? [...t.selectedOptions].map(({ value: s }) => s) : Me(t) ? ns(e.refs).value : is(z(t.value) ? e.ref.value : t.value, e);
940
970
  }
941
- var fr = (e, t, s, n) => {
971
+ var hr = (e, t, s, n) => {
942
972
  const i = {};
943
973
  for (const r of e) {
944
974
  const c = _(t, r);
945
- c && U(i, r, c._f);
975
+ c && R(i, r, c._f);
946
976
  }
947
977
  return {
948
978
  criteriaMode: s,
@@ -950,7 +980,7 @@ var fr = (e, t, s, n) => {
950
980
  fields: i,
951
981
  shouldUseNativeValidation: n
952
982
  };
953
- }, je = (e) => e instanceof RegExp, $e = (e) => W(e) ? e : je(e) ? e.source : K(e) ? je(e.value) ? e.value.source : e.value : e, Lt = (e) => ({
983
+ }, Ke = (e) => e instanceof RegExp, Fe = (e) => z(e) ? e : Ke(e) ? e.source : Q(e) ? Ke(e.value) ? e.value.source : e.value : e, Lt = (e) => ({
954
984
  isOnSubmit: !e || e === de.onSubmit,
955
985
  isOnBlur: e === de.onBlur,
956
986
  isOnChange: e === de.onChange,
@@ -958,20 +988,20 @@ var fr = (e, t, s, n) => {
958
988
  isOnTouch: e === de.onTouched
959
989
  });
960
990
  const Tt = "AsyncFunction";
961
- var mr = (e) => !!e && !!e.validate && !!(fe(e.validate) && e.validate.constructor.name === Tt || K(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Tt)), hr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Dt = (e, t, s) => !s && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
962
- const Le = (e, t, s, n) => {
991
+ var yr = (e) => !!e && !!e.validate && !!(fe(e.validate) && e.validate.constructor.name === Tt || Q(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Tt)), gr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Dt = (e, t, s) => !s && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
992
+ const Te = (e, t, s, n) => {
963
993
  for (const i of s || Object.keys(e)) {
964
994
  const r = _(e, i);
965
995
  if (r) {
966
- const { _f: c, ...o } = r;
996
+ const { _f: c, ...a } = r;
967
997
  if (c) {
968
998
  if (c.refs && c.refs[0] && t(c.refs[0], i) && !n)
969
999
  return !0;
970
1000
  if (c.ref && t(c.ref, c.name) && !n)
971
1001
  return !0;
972
- if (Le(o, t))
1002
+ if (Te(a, t))
973
1003
  break;
974
- } else if (K(o) && Le(o, t))
1004
+ } else if (Q(a) && Te(a, t))
975
1005
  break;
976
1006
  }
977
1007
  }
@@ -985,18 +1015,18 @@ function Vt(e, t, s) {
985
1015
  };
986
1016
  const i = s.split(".");
987
1017
  for (; i.length; ) {
988
- const r = i.join("."), c = _(t, r), o = _(e, r);
1018
+ const r = i.join("."), c = _(t, r), a = _(e, r);
989
1019
  if (c && !Array.isArray(c) && s !== r)
990
1020
  return { name: s };
991
- if (o && o.type)
1021
+ if (a && a.type)
992
1022
  return {
993
1023
  name: r,
994
- error: o
1024
+ error: a
995
1025
  };
996
- if (o && o.root && o.root.type)
1026
+ if (a && a.root && a.root.type)
997
1027
  return {
998
1028
  name: `${r}.root`,
999
- error: o.root
1029
+ error: a.root
1000
1030
  };
1001
1031
  i.pop();
1002
1032
  }
@@ -1004,114 +1034,114 @@ function Vt(e, t, s) {
1004
1034
  name: s
1005
1035
  };
1006
1036
  }
1007
- var yr = (e, t, s, n) => {
1037
+ var br = (e, t, s, n) => {
1008
1038
  s(e);
1009
1039
  const { name: i, ...r } = e;
1010
- return se(r) || Object.keys(r).length >= Object.keys(t).length || Object.keys(r).find((c) => t[c] === (!n || de.all));
1011
- }, gr = (e, t, s) => !e || !t || e === t || Fe(e).some((n) => n && (s ? n === t : n.startsWith(t) || t.startsWith(n))), br = (e, t, s, n, i) => i.isOnAll ? !1 : !s && i.isOnTouch ? !(t || e) : (s ? n.isOnBlur : i.isOnBlur) ? !e : (s ? n.isOnChange : i.isOnChange) ? e : !0, pr = (e, t) => !it(_(e, t)).length && Q(e, t), wr = (e, t, s) => {
1012
- const n = Fe(_(e, s));
1013
- return U(n, "root", t[s]), U(e, s, n), e;
1014
- }, Ue = (e) => ye(e);
1040
+ return re(r) || Object.keys(r).length >= Object.keys(t).length || Object.keys(r).find((c) => t[c] === (!n || de.all));
1041
+ }, pr = (e, t, s) => !e || !t || e === t || Le(e).some((n) => n && (s ? n === t : n.startsWith(t) || t.startsWith(n))), wr = (e, t, s, n, i) => i.isOnAll ? !1 : !s && i.isOnTouch ? !(t || e) : (s ? n.isOnBlur : i.isOnBlur) ? !e : (s ? n.isOnChange : i.isOnChange) ? e : !0, vr = (e, t) => !it(_(e, t)).length && W(e, t), xr = (e, t, s) => {
1042
+ const n = Le(_(e, s));
1043
+ return R(n, "root", t[s]), R(e, s, n), e;
1044
+ }, qe = (e) => ye(e);
1015
1045
  function Pt(e, t, s = "validate") {
1016
- if (Ue(e) || Array.isArray(e) && e.every(Ue) || he(e) && !e)
1046
+ if (qe(e) || Array.isArray(e) && e.every(qe) || he(e) && !e)
1017
1047
  return {
1018
1048
  type: s,
1019
- message: Ue(e) ? e : "",
1049
+ message: qe(e) ? e : "",
1020
1050
  ref: t
1021
1051
  };
1022
1052
  }
1023
- var Ne = (e) => K(e) && !je(e) ? e : {
1053
+ var Ae = (e) => Q(e) && !Ke(e) ? e : {
1024
1054
  value: e,
1025
1055
  message: ""
1026
- }, Ot = async (e, t, s, n, i, r) => {
1027
- const { ref: c, refs: o, required: f, maxLength: y, minLength: b, min: m, max: d, pattern: w, validate: C, name: v, valueAsNumber: q, mount: oe } = e._f, S = _(s, v);
1028
- if (!oe || t.has(v))
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);
1058
+ if (!G || t.has(y))
1029
1059
  return {};
1030
- const z = o ? o[0] : c, D = (N) => {
1031
- i && z.reportValidity && (z.setCustomValidity(he(N) ? "" : N || ""), z.reportValidity());
1032
- }, $ = {}, G = ct(c), V = Oe(c), le = G || V, B = (q || at(c)) && W(c.value) && W(S) || qe(c) && c.value === "" || S === "" || Array.isArray(S) && !S.length, M = cr.bind(null, v, n, $), I = (N, E, R, J = ge.maxLength, Z = ge.minLength) => {
1033
- const P = N ? E : R;
1034
- $[v] = {
1035
- type: N ? J : Z,
1036
- message: P,
1060
+ const j = a ? a[0] : c, V = (S) => {
1061
+ i && j.reportValidity && (j.setCustomValidity(he(S) ? "" : S || ""), j.reportValidity());
1062
+ }, F = {}, J = ct(c), P = Me(c), le = J || P, H = (L || ot(c)) && z(c.value) && z(N) || je(c) && c.value === "" || N === "" || Array.isArray(N) && !N.length, U = ur.bind(null, y, n, F), M = (S, $, q, Y = ge.maxLength, ee = ge.minLength) => {
1063
+ const I = S ? $ : q;
1064
+ F[y] = {
1065
+ type: S ? Y : ee,
1066
+ message: I,
1037
1067
  ref: c,
1038
- ...M(N ? J : Z, P)
1068
+ ...U(S ? Y : ee, I)
1039
1069
  };
1040
1070
  };
1041
- if (r ? !Array.isArray(S) || !S.length : f && (!le && (B || te(S)) || he(S) && !S || V && !rs(o).isValid || G && !is(o).isValid)) {
1042
- const { value: N, message: E } = Ue(f) ? { value: !!f, message: f } : Ne(f);
1043
- if (N && ($[v] = {
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);
1073
+ if (S && (F[y] = {
1044
1074
  type: ge.required,
1045
- message: E,
1046
- ref: z,
1047
- ...M(ge.required, E)
1075
+ message: $,
1076
+ ref: j,
1077
+ ...U(ge.required, $)
1048
1078
  }, !n))
1049
- return D(E), $;
1079
+ return V($), F;
1050
1080
  }
1051
- if (!B && (!te(m) || !te(d))) {
1052
- let N, E;
1053
- const R = Ne(d), J = Ne(m);
1054
- if (!te(S) && !isNaN(S)) {
1055
- const Z = c.valueAsNumber || S && +S;
1056
- te(R.value) || (N = Z > R.value), te(J.value) || (E = Z < J.value);
1081
+ if (!H && (!se(g) || !se(f))) {
1082
+ let S, $;
1083
+ const q = Ae(f), Y = Ae(g);
1084
+ if (!se(N) && !isNaN(N)) {
1085
+ const ee = c.valueAsNumber || N && +N;
1086
+ se(q.value) || (S = ee > q.value), se(Y.value) || ($ = ee < Y.value);
1057
1087
  } else {
1058
- const Z = c.valueAsDate || new Date(S), P = (ue) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ue), ee = c.type == "time", ne = c.type == "week";
1059
- ye(R.value) && S && (N = ee ? P(S) > P(R.value) : ne ? S > R.value : Z > new Date(R.value)), ye(J.value) && S && (E = ee ? P(S) < P(J.value) : ne ? S < J.value : Z < new Date(J.value));
1088
+ const ee = c.valueAsDate || new Date(N), I = (ue) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ue), te = c.type == "time", ie = c.type == "week";
1089
+ ye(q.value) && N && (S = te ? I(N) > I(q.value) : ie ? N > q.value : ee > new Date(q.value)), ye(Y.value) && N && ($ = te ? I(N) < I(Y.value) : ie ? N < Y.value : ee < new Date(Y.value));
1060
1090
  }
1061
- if ((N || E) && (I(!!N, R.message, J.message, ge.max, ge.min), !n))
1062
- return D($[v].message), $;
1091
+ if ((S || $) && (M(!!S, q.message, Y.message, ge.max, ge.min), !n))
1092
+ return V(F[y].message), F;
1063
1093
  }
1064
- if ((y || b) && !B && (ye(S) || r && Array.isArray(S))) {
1065
- const N = Ne(y), E = Ne(b), R = !te(N.value) && S.length > +N.value, J = !te(E.value) && S.length < +E.value;
1066
- if ((R || J) && (I(R, N.message, E.message), !n))
1067
- return D($[v].message), $;
1094
+ if ((m || b) && !H && (ye(N) || r && Array.isArray(N))) {
1095
+ const S = Ae(m), $ = Ae(b), q = !se(S.value) && N.length > +S.value, Y = !se($.value) && N.length < +$.value;
1096
+ if ((q || Y) && (M(q, S.message, $.message), !n))
1097
+ return V(F[y].message), F;
1068
1098
  }
1069
- if (w && !B && ye(S)) {
1070
- const { value: N, message: E } = Ne(w);
1071
- if (je(N) && !S.match(N) && ($[v] = {
1099
+ if (v && !H && ye(N)) {
1100
+ const { value: S, message: $ } = Ae(v);
1101
+ if (Ke(S) && !N.match(S) && (F[y] = {
1072
1102
  type: ge.pattern,
1073
- message: E,
1103
+ message: $,
1074
1104
  ref: c,
1075
- ...M(ge.pattern, E)
1105
+ ...U(ge.pattern, $)
1076
1106
  }, !n))
1077
- return D(E), $;
1107
+ return V($), F;
1078
1108
  }
1079
1109
  if (C) {
1080
1110
  if (fe(C)) {
1081
- const N = await C(S, s), E = Pt(N, z);
1082
- if (E && ($[v] = {
1083
- ...E,
1084
- ...M(ge.validate, E.message)
1111
+ const S = await C(N, s), $ = Pt(S, j);
1112
+ if ($ && (F[y] = {
1113
+ ...$,
1114
+ ...U(ge.validate, $.message)
1085
1115
  }, !n))
1086
- return D(E.message), $;
1087
- } else if (K(C)) {
1088
- let N = {};
1089
- for (const E in C) {
1090
- if (!se(N) && !n)
1116
+ return V($.message), F;
1117
+ } else if (Q(C)) {
1118
+ let S = {};
1119
+ for (const $ in C) {
1120
+ if (!re(S) && !n)
1091
1121
  break;
1092
- const R = Pt(await C[E](S, s), z, E);
1093
- R && (N = {
1094
- ...R,
1095
- ...M(E, R.message)
1096
- }, D(R.message), n && ($[v] = N));
1122
+ const q = Pt(await C[$](N, s), j, $);
1123
+ q && (S = {
1124
+ ...q,
1125
+ ...U($, q.message)
1126
+ }, V(q.message), n && (F[y] = S));
1097
1127
  }
1098
- if (!se(N) && ($[v] = {
1099
- ref: z,
1100
- ...N
1128
+ if (!re(S) && (F[y] = {
1129
+ ref: j,
1130
+ ...S
1101
1131
  }, !n))
1102
- return $;
1132
+ return F;
1103
1133
  }
1104
1134
  }
1105
- return D(!0), $;
1135
+ return V(!0), F;
1106
1136
  };
1107
- const vr = {
1137
+ const _r = {
1108
1138
  mode: de.onSubmit,
1109
1139
  reValidateMode: de.onChange,
1110
1140
  shouldFocusError: !0
1111
1141
  };
1112
- function xr(e = {}) {
1142
+ function Cr(e = {}) {
1113
1143
  let t = {
1114
- ...vr,
1144
+ ..._r,
1115
1145
  ...e
1116
1146
  }, s = {
1117
1147
  submitCount: 0,
@@ -1128,17 +1158,17 @@ function xr(e = {}) {
1128
1158
  validatingFields: {},
1129
1159
  errors: t.errors || {},
1130
1160
  disabled: t.disabled || !1
1131
- }, n = {}, i = K(t.defaultValues) || K(t.values) ? Y(t.defaultValues || t.values) || {} : {}, r = t.shouldUnregister ? {} : Y(i), c = {
1161
+ }, n = {}, i = Q(t.defaultValues) || Q(t.values) ? X(t.defaultValues || t.values) || {} : {}, r = t.shouldUnregister ? {} : X(i), c = {
1132
1162
  action: !1,
1133
1163
  mount: !1,
1134
1164
  watch: !1
1135
- }, o = {
1165
+ }, a = {
1136
1166
  mount: /* @__PURE__ */ new Set(),
1137
1167
  disabled: /* @__PURE__ */ new Set(),
1138
1168
  unMount: /* @__PURE__ */ new Set(),
1139
1169
  array: /* @__PURE__ */ new Set(),
1140
1170
  watch: /* @__PURE__ */ new Set()
1141
- }, f, y = 0;
1171
+ }, d, m = 0;
1142
1172
  const b = {
1143
1173
  isDirty: !1,
1144
1174
  dirtyFields: !1,
@@ -1148,456 +1178,456 @@ function xr(e = {}) {
1148
1178
  isValid: !1,
1149
1179
  errors: !1
1150
1180
  };
1151
- let m = {
1181
+ let g = {
1152
1182
  ...b
1153
1183
  };
1154
- const d = {
1155
- array: Nt(),
1156
- state: Nt()
1157
- }, w = t.criteriaMode === de.all, C = (a) => (l) => {
1158
- clearTimeout(y), y = setTimeout(a, l);
1159
- }, v = async (a) => {
1160
- if (!t.disabled && (b.isValid || m.isValid || a)) {
1161
- const l = t.resolver ? se((await V()).errors) : await B(n, !0);
1162
- l !== s.isValid && d.state.next({
1184
+ const f = {
1185
+ array: St(),
1186
+ state: St()
1187
+ }, v = t.criteriaMode === de.all, C = (o) => (l) => {
1188
+ clearTimeout(m), m = setTimeout(o, l);
1189
+ }, y = async (o) => {
1190
+ if (!t.disabled && (b.isValid || g.isValid || o)) {
1191
+ const l = t.resolver ? re((await P()).errors) : await H(n, !0);
1192
+ l !== s.isValid && f.state.next({
1163
1193
  isValid: l
1164
1194
  });
1165
1195
  }
1166
- }, q = (a, l) => {
1167
- !t.disabled && (b.isValidating || b.validatingFields || m.isValidating || m.validatingFields) && ((a || Array.from(o.mount)).forEach((u) => {
1168
- u && (l ? U(s.validatingFields, u, l) : Q(s.validatingFields, u));
1169
- }), d.state.next({
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));
1199
+ }), f.state.next({
1170
1200
  validatingFields: s.validatingFields,
1171
- isValidating: !se(s.validatingFields)
1201
+ isValidating: !re(s.validatingFields)
1172
1202
  }));
1173
- }, oe = (a, l = [], u, x, p = !0, g = !0) => {
1203
+ }, G = (o, l = [], u, x, w = !0, p = !0) => {
1174
1204
  if (x && u && !t.disabled) {
1175
- if (c.action = !0, g && Array.isArray(_(n, a))) {
1176
- const k = u(_(n, a), x.argA, x.argB);
1177
- p && U(n, a, k);
1205
+ if (c.action = !0, p && Array.isArray(_(n, o))) {
1206
+ const k = u(_(n, o), x.argA, x.argB);
1207
+ w && R(n, o, k);
1178
1208
  }
1179
- if (g && Array.isArray(_(s.errors, a))) {
1180
- const k = u(_(s.errors, a), x.argA, x.argB);
1181
- p && U(s.errors, a, k), pr(s.errors, a);
1209
+ if (p && Array.isArray(_(s.errors, o))) {
1210
+ const k = u(_(s.errors, o), x.argA, x.argB);
1211
+ w && R(s.errors, o, k), vr(s.errors, o);
1182
1212
  }
1183
- if ((b.touchedFields || m.touchedFields) && g && Array.isArray(_(s.touchedFields, a))) {
1184
- const k = u(_(s.touchedFields, a), x.argA, x.argB);
1185
- p && U(s.touchedFields, a, k);
1213
+ if ((b.touchedFields || g.touchedFields) && p && Array.isArray(_(s.touchedFields, o))) {
1214
+ const k = u(_(s.touchedFields, o), x.argA, x.argB);
1215
+ w && R(s.touchedFields, o, k);
1186
1216
  }
1187
- (b.dirtyFields || m.dirtyFields) && (s.dirtyFields = Ee(i, r)), d.state.next({
1188
- name: a,
1189
- isDirty: I(a, l),
1217
+ (b.dirtyFields || g.dirtyFields) && (s.dirtyFields = $e(i, r)), f.state.next({
1218
+ name: o,
1219
+ isDirty: M(o, l),
1190
1220
  dirtyFields: s.dirtyFields,
1191
1221
  errors: s.errors,
1192
1222
  isValid: s.isValid
1193
1223
  });
1194
1224
  } else
1195
- U(r, a, l);
1196
- }, S = (a, l) => {
1197
- U(s.errors, a, l), d.state.next({
1225
+ R(r, o, l);
1226
+ }, N = (o, l) => {
1227
+ R(s.errors, o, l), f.state.next({
1198
1228
  errors: s.errors
1199
1229
  });
1200
- }, z = (a) => {
1201
- s.errors = a, d.state.next({
1230
+ }, j = (o) => {
1231
+ s.errors = o, f.state.next({
1202
1232
  errors: s.errors,
1203
1233
  isValid: !1
1204
1234
  });
1205
- }, D = (a, l, u, x) => {
1206
- const p = _(n, a);
1207
- if (p) {
1208
- const g = _(r, a, W(u) ? _(i, a) : u);
1209
- W(g) || x && x.defaultChecked || l ? U(r, a, l ? g : Ft(p._f)) : R(a, g), c.mount && v();
1235
+ }, V = (o, l, u, x) => {
1236
+ const w = _(n, o);
1237
+ if (w) {
1238
+ const p = _(r, o, z(u) ? _(i, o) : u);
1239
+ z(p) || x && x.defaultChecked || l ? R(r, o, l ? p : Ft(w._f)) : q(o, p), c.mount && y();
1210
1240
  }
1211
- }, $ = (a, l, u, x, p) => {
1212
- let g = !1, k = !1;
1213
- const T = {
1214
- name: a
1241
+ }, F = (o, l, u, x, w) => {
1242
+ let p = !1, k = !1;
1243
+ const D = {
1244
+ name: o
1215
1245
  };
1216
1246
  if (!t.disabled) {
1217
1247
  if (!u || x) {
1218
- (b.isDirty || m.isDirty) && (k = s.isDirty, s.isDirty = T.isDirty = I(), g = k !== T.isDirty);
1219
- const O = ve(_(i, a), l);
1220
- k = !!_(s.dirtyFields, a), O ? Q(s.dirtyFields, a) : U(s.dirtyFields, a, !0), T.dirtyFields = s.dirtyFields, g = g || (b.dirtyFields || m.dirtyFields) && k !== !O;
1248
+ (b.isDirty || g.isDirty) && (k = s.isDirty, s.isDirty = D.isDirty = M(), p = k !== D.isDirty);
1249
+ const O = ve(_(i, o), l);
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;
1221
1251
  }
1222
1252
  if (u) {
1223
- const O = _(s.touchedFields, a);
1224
- O || (U(s.touchedFields, a, u), T.touchedFields = s.touchedFields, g = g || (b.touchedFields || m.touchedFields) && O !== u);
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);
1225
1255
  }
1226
- g && p && d.state.next(T);
1256
+ p && w && f.state.next(D);
1227
1257
  }
1228
- return g ? T : {};
1229
- }, G = (a, l, u, x) => {
1230
- const p = _(s.errors, a), g = (b.isValid || m.isValid) && he(l) && s.isValid !== l;
1231
- if (t.delayError && u ? (f = C(() => S(a, u)), f(t.delayError)) : (clearTimeout(y), f = null, u ? U(s.errors, a, u) : Q(s.errors, a)), (u ? !ve(p, u) : p) || !se(x) || g) {
1258
+ return p ? D : {};
1259
+ }, J = (o, l, u, x) => {
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) {
1232
1262
  const k = {
1233
1263
  ...x,
1234
- ...g && he(l) ? { isValid: l } : {},
1264
+ ...p && he(l) ? { isValid: l } : {},
1235
1265
  errors: s.errors,
1236
- name: a
1266
+ name: o
1237
1267
  };
1238
1268
  s = {
1239
1269
  ...s,
1240
1270
  ...k
1241
- }, d.state.next(k);
1271
+ }, f.state.next(k);
1242
1272
  }
1243
- }, V = async (a) => {
1244
- q(a, !0);
1245
- const l = await t.resolver(r, t.context, fr(a || o.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
1246
- return q(a), l;
1247
- }, le = async (a) => {
1248
- const { errors: l } = await V(a);
1249
- if (a)
1250
- for (const u of a) {
1273
+ }, P = async (o) => {
1274
+ L(o, !0);
1275
+ const l = await t.resolver(r, t.context, hr(o || a.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
1276
+ return L(o), l;
1277
+ }, le = async (o) => {
1278
+ const { errors: l } = await P(o);
1279
+ if (o)
1280
+ for (const u of o) {
1251
1281
  const x = _(l, u);
1252
- x ? U(s.errors, u, x) : Q(s.errors, u);
1282
+ x ? R(s.errors, u, x) : W(s.errors, u);
1253
1283
  }
1254
1284
  else
1255
1285
  s.errors = l;
1256
1286
  return l;
1257
- }, B = async (a, l, u = {
1287
+ }, H = async (o, l, u = {
1258
1288
  valid: !0
1259
1289
  }) => {
1260
- for (const x in a) {
1261
- const p = a[x];
1262
- if (p) {
1263
- const { _f: g, ...k } = p;
1264
- if (g) {
1265
- const T = o.array.has(g.name), O = p._f && mr(p._f);
1266
- O && b.validatingFields && q([x], !0);
1267
- const ae = await Ot(p, o.disabled, r, w, t.shouldUseNativeValidation && !l, T);
1268
- if (O && b.validatingFields && q([x]), ae[g.name] && (u.valid = !1, l))
1290
+ for (const x in o) {
1291
+ const w = o[x];
1292
+ if (w) {
1293
+ const { _f: p, ...k } = w;
1294
+ if (p) {
1295
+ const D = a.array.has(p.name), O = w._f && yr(w._f);
1296
+ O && b.validatingFields && L([x], !0);
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))
1269
1299
  break;
1270
- !l && (_(ae, g.name) ? T ? wr(s.errors, ae, g.name) : U(s.errors, g.name, ae[g.name]) : Q(s.errors, g.name));
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));
1271
1301
  }
1272
- !se(k) && await B(k, l, u);
1302
+ !re(k) && await H(k, l, u);
1273
1303
  }
1274
1304
  }
1275
1305
  return u.valid;
1276
- }, M = () => {
1277
- for (const a of o.unMount) {
1278
- const l = _(n, a);
1279
- l && (l._f.refs ? l._f.refs.every((u) => !st(u)) : !st(l._f.ref)) && Je(a);
1306
+ }, U = () => {
1307
+ for (const o of a.unMount) {
1308
+ const l = _(n, o);
1309
+ l && (l._f.refs ? l._f.refs.every((u) => !st(u)) : !st(l._f.ref)) && Je(o);
1280
1310
  }
1281
- o.unMount = /* @__PURE__ */ new Set();
1282
- }, I = (a, l) => !t.disabled && (a && l && U(r, a, l), !ve(ue(), i)), N = (a, l, u) => ar(a, o, {
1283
- ...c.mount ? r : W(l) ? i : ye(a) ? { [a]: l } : l
1284
- }, u, l), E = (a) => it(_(c.mount ? r : i, a, t.shouldUnregister ? _(i, a, []) : [])), R = (a, l, u = {}) => {
1285
- const x = _(n, a);
1286
- let p = l;
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, {
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 = {}) => {
1315
+ const x = _(n, o);
1316
+ let w = l;
1287
1317
  if (x) {
1288
- const g = x._f;
1289
- g && (!g.disabled && U(r, a, ns(l, g)), p = qe(g.ref) && te(l) ? "" : l, es(g.ref) ? [...g.ref.options].forEach((k) => k.selected = p.includes(k.value)) : g.refs ? Oe(g.ref) ? g.refs.forEach((k) => {
1290
- (!k.defaultChecked || !k.disabled) && (Array.isArray(p) ? k.checked = !!p.find((T) => T === k.value) : k.checked = p === k.value || !!p);
1291
- }) : g.refs.forEach((k) => k.checked = k.value === p) : at(g.ref) ? g.ref.value = "" : (g.ref.value = p, g.ref.type || d.state.next({
1292
- name: a,
1293
- values: Y(r)
1318
+ const p = x._f;
1319
+ p && (!p.disabled && R(r, o, is(l, p)), w = je(p.ref) && se(l) ? "" : l, ts(p.ref) ? [...p.ref.options].forEach((k) => k.selected = w.includes(k.value)) : p.refs ? Me(p.ref) ? p.refs.forEach((k) => {
1320
+ (!k.defaultChecked || !k.disabled) && (Array.isArray(w) ? k.checked = !!w.find((D) => D === k.value) : k.checked = w === k.value || !!w);
1321
+ }) : p.refs.forEach((k) => k.checked = k.value === w) : ot(p.ref) ? p.ref.value = "" : (p.ref.value = w, p.ref.type || f.state.next({
1322
+ name: o,
1323
+ values: X(r)
1294
1324
  })));
1295
1325
  }
1296
- (u.shouldDirty || u.shouldTouch) && $(a, p, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && ne(a);
1297
- }, J = (a, l, u) => {
1326
+ (u.shouldDirty || u.shouldTouch) && F(o, w, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && ie(o);
1327
+ }, Y = (o, l, u) => {
1298
1328
  for (const x in l) {
1299
1329
  if (!l.hasOwnProperty(x))
1300
1330
  return;
1301
- const p = l[x], g = a + "." + x, k = _(n, g);
1302
- (o.array.has(a) || K(p) || k && !k._f) && !ke(p) ? J(g, p, u) : R(g, p, u);
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);
1303
1333
  }
1304
- }, Z = (a, l, u = {}) => {
1305
- const x = _(n, a), p = o.array.has(a), g = Y(l);
1306
- U(r, a, g), p ? (d.array.next({
1307
- name: a,
1308
- values: Y(r)
1309
- }), (b.isDirty || b.dirtyFields || m.isDirty || m.dirtyFields) && u.shouldDirty && d.state.next({
1310
- name: a,
1311
- dirtyFields: Ee(i, r),
1312
- isDirty: I(a, g)
1313
- })) : x && !x._f && !te(g) ? J(a, g, u) : R(a, g, u), Dt(a, o) && d.state.next({ ...s, name: a }), d.state.next({
1314
- name: c.mount ? a : void 0,
1315
- values: Y(r)
1334
+ }, ee = (o, l, u = {}) => {
1335
+ const x = _(n, o), w = a.array.has(o), p = X(l);
1336
+ R(r, o, p), w ? (f.array.next({
1337
+ name: o,
1338
+ values: X(r)
1339
+ }), (b.isDirty || b.dirtyFields || g.isDirty || g.dirtyFields) && u.shouldDirty && f.state.next({
1340
+ name: o,
1341
+ dirtyFields: $e(i, r),
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({
1344
+ name: c.mount ? o : void 0,
1345
+ values: X(r)
1316
1346
  });
1317
- }, P = async (a) => {
1347
+ }, I = async (o) => {
1318
1348
  c.mount = !0;
1319
- const l = a.target;
1349
+ const l = o.target;
1320
1350
  let u = l.name, x = !0;
1321
- const p = _(n, u), g = (O) => {
1351
+ const w = _(n, u), p = (O) => {
1322
1352
  x = Number.isNaN(O) || ke(O) && isNaN(O.getTime()) || ve(O, _(r, u, O));
1323
- }, k = Lt(t.mode), T = Lt(t.reValidateMode);
1324
- if (p) {
1325
- let O, ae;
1326
- const Me = l.type ? Ft(p._f) : er(a), we = a.type === St.BLUR || a.type === St.FOCUS_OUT, hs = !hr(p._f) && !t.resolver && !_(s.errors, u) && !p._f.deps || br(we, _(s.touchedFields, u), s.isSubmitted, T, k), Ze = Dt(u, o, we);
1327
- U(r, u, Me), we ? (p._f.onBlur && p._f.onBlur(a), f && f(0)) : p._f.onChange && p._f.onChange(a);
1328
- const et = $(u, Me, we), ys = !se(et) || Ze;
1329
- if (!we && d.state.next({
1353
+ }, k = Lt(t.mode), D = Lt(t.reValidateMode);
1354
+ if (w) {
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;
1359
+ if (!we && f.state.next({
1330
1360
  name: u,
1331
- type: a.type,
1332
- values: Y(r)
1333
- }), hs)
1334
- return (b.isValid || m.isValid) && (t.mode === "onBlur" ? we && v() : we || v()), ys && d.state.next({ name: u, ...Ze ? {} : et });
1335
- if (!we && Ze && d.state.next({ ...s }), t.resolver) {
1336
- const { errors: pt } = await V([u]);
1337
- if (g(Me), x) {
1338
- const gs = Vt(s.errors, n, u), wt = Vt(pt, n, gs.name || u);
1339
- O = wt.error, u = wt.name, ae = se(pt);
1361
+ type: o.type,
1362
+ values: X(r)
1363
+ }), ys)
1364
+ return (b.isValid || g.isValid) && (t.mode === "onBlur" ? we && y() : we || y()), gs && f.state.next({ name: u, ...Ze ? {} : et });
1365
+ if (!we && Ze && f.state.next({ ...s }), t.resolver) {
1366
+ const { errors: pt } = await P([u]);
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);
1340
1370
  }
1341
1371
  } else
1342
- q([u], !0), O = (await Ot(p, o.disabled, r, w, t.shouldUseNativeValidation))[u], q([u]), g(Me), x && (O ? ae = !1 : (b.isValid || m.isValid) && (ae = await B(n, !0)));
1343
- x && (p._f.deps && ne(p._f.deps), G(u, ae, O, et));
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));
1344
1374
  }
1345
- }, ee = (a, l) => {
1346
- if (_(s.errors, l) && a.focus)
1347
- return a.focus(), 1;
1348
- }, ne = async (a, l = {}) => {
1375
+ }, te = (o, l) => {
1376
+ if (_(s.errors, l) && o.focus)
1377
+ return o.focus(), 1;
1378
+ }, ie = async (o, l = {}) => {
1349
1379
  let u, x;
1350
- const p = Fe(a);
1380
+ const w = Le(o);
1351
1381
  if (t.resolver) {
1352
- const g = await le(W(a) ? a : p);
1353
- u = se(g), x = a ? !p.some((k) => _(g, k)) : u;
1354
- } else a ? (x = (await Promise.all(p.map(async (g) => {
1355
- const k = _(n, g);
1356
- return await B(k && k._f ? { [g]: k } : k);
1357
- }))).every(Boolean), !(!x && !s.isValid) && v()) : x = u = await B(n);
1358
- return d.state.next({
1359
- ...!ye(a) || (b.isValid || m.isValid) && u !== s.isValid ? {} : { name: a },
1360
- ...t.resolver || !a ? { isValid: u } : {},
1382
+ const p = await le(z(o) ? o : w);
1383
+ u = re(p), x = o ? !w.some((k) => _(p, k)) : u;
1384
+ } else o ? (x = (await Promise.all(w.map(async (p) => {
1385
+ const k = _(n, p);
1386
+ return await H(k && k._f ? { [p]: k } : k);
1387
+ }))).every(Boolean), !(!x && !s.isValid) && y()) : x = u = await H(n);
1388
+ return f.state.next({
1389
+ ...!ye(o) || (b.isValid || g.isValid) && u !== s.isValid ? {} : { name: o },
1390
+ ...t.resolver || !o ? { isValid: u } : {},
1361
1391
  errors: s.errors
1362
- }), l.shouldFocus && !x && Le(n, ee, a ? p : o.mount), x;
1363
- }, ue = (a) => {
1392
+ }), l.shouldFocus && !x && Te(n, te, o ? w : a.mount), x;
1393
+ }, ue = (o) => {
1364
1394
  const l = {
1365
1395
  ...c.mount ? r : i
1366
1396
  };
1367
- return W(a) ? l : ye(a) ? _(l, a) : a.map((u) => _(l, u));
1368
- }, Ie = (a, l) => ({
1369
- invalid: !!_((l || s).errors, a),
1370
- isDirty: !!_((l || s).dirtyFields, a),
1371
- error: _((l || s).errors, a),
1372
- isValidating: !!_(s.validatingFields, a),
1373
- isTouched: !!_((l || s).touchedFields, a)
1374
- }), Ce = (a) => {
1375
- a && Fe(a).forEach((l) => Q(s.errors, l)), d.state.next({
1376
- errors: a ? s.errors : {}
1397
+ return z(o) ? l : ye(o) ? _(l, o) : o.map((u) => _(l, u));
1398
+ }, Ue = (o, l) => ({
1399
+ invalid: !!_((l || s).errors, o),
1400
+ isDirty: !!_((l || s).dirtyFields, o),
1401
+ error: _((l || s).errors, o),
1402
+ isValidating: !!_(s.validatingFields, o),
1403
+ isTouched: !!_((l || s).touchedFields, o)
1404
+ }), Ce = (o) => {
1405
+ o && Le(o).forEach((l) => W(s.errors, l)), f.state.next({
1406
+ errors: o ? s.errors : {}
1377
1407
  });
1378
- }, dt = (a, l, u) => {
1379
- const x = (_(n, a, { _f: {} })._f || {}).ref, p = _(s.errors, a) || {}, { ref: g, message: k, type: T, ...O } = p;
1380
- U(s.errors, a, {
1408
+ }, dt = (o, l, u) => {
1409
+ const x = (_(n, o, { _f: {} })._f || {}).ref, w = _(s.errors, o) || {}, { ref: p, message: k, type: D, ...O } = w;
1410
+ R(s.errors, o, {
1381
1411
  ...O,
1382
1412
  ...l,
1383
1413
  ref: x
1384
- }), d.state.next({
1385
- name: a,
1414
+ }), f.state.next({
1415
+ name: o,
1386
1416
  errors: s.errors,
1387
1417
  isValid: !1
1388
1418
  }), u && u.shouldFocus && x && x.focus && x.focus();
1389
- }, cs = (a, l) => fe(a) ? d.state.subscribe({
1390
- next: (u) => "values" in u && a(N(void 0, l), u)
1391
- }) : N(a, l, !0), ft = (a) => d.state.subscribe({
1419
+ }, ls = (o, l) => fe(o) ? f.state.subscribe({
1420
+ next: (u) => "values" in u && o(S(void 0, l), u)
1421
+ }) : S(o, l, !0), ft = (o) => f.state.subscribe({
1392
1422
  next: (l) => {
1393
- gr(a.name, l.name, a.exact) && yr(l, a.formState || b, ms, a.reRenderRoot) && a.callback({
1423
+ pr(o.name, l.name, o.exact) && br(l, o.formState || b, hs, o.reRenderRoot) && o.callback({
1394
1424
  values: { ...r },
1395
1425
  ...s,
1396
1426
  ...l,
1397
1427
  defaultValues: i
1398
1428
  });
1399
1429
  }
1400
- }).unsubscribe, ls = (a) => (c.mount = !0, m = {
1401
- ...m,
1402
- ...a.formState
1430
+ }).unsubscribe, us = (o) => (c.mount = !0, g = {
1431
+ ...g,
1432
+ ...o.formState
1403
1433
  }, ft({
1404
- ...a,
1405
- formState: m
1406
- })), Je = (a, l = {}) => {
1407
- for (const u of a ? Fe(a) : o.mount)
1408
- o.mount.delete(u), o.array.delete(u), l.keepValue || (Q(n, u), Q(r, u)), !l.keepError && Q(s.errors, u), !l.keepDirty && Q(s.dirtyFields, u), !l.keepTouched && Q(s.touchedFields, u), !l.keepIsValidating && Q(s.validatingFields, u), !t.shouldUnregister && !l.keepDefaultValue && Q(i, u);
1409
- d.state.next({
1410
- values: Y(r)
1411
- }), d.state.next({
1434
+ ...o,
1435
+ formState: g
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);
1439
+ f.state.next({
1440
+ values: X(r)
1441
+ }), f.state.next({
1412
1442
  ...s,
1413
- ...l.keepDirty ? { isDirty: I() } : {}
1414
- }), !l.keepIsValid && v();
1415
- }, mt = ({ disabled: a, name: l }) => {
1416
- (he(a) && c.mount || a || o.disabled.has(l)) && (a ? o.disabled.add(l) : o.disabled.delete(l));
1417
- }, Ye = (a, l = {}) => {
1418
- let u = _(n, a);
1443
+ ...l.keepDirty ? { isDirty: M() } : {}
1444
+ }), !l.keepIsValid && y();
1445
+ }, mt = ({ disabled: o, name: l }) => {
1446
+ (he(o) && c.mount || o || a.disabled.has(l)) && (o ? a.disabled.add(l) : a.disabled.delete(l));
1447
+ }, Ye = (o, l = {}) => {
1448
+ let u = _(n, o);
1419
1449
  const x = he(l.disabled) || he(t.disabled);
1420
- return U(n, a, {
1450
+ return R(n, o, {
1421
1451
  ...u || {},
1422
1452
  _f: {
1423
- ...u && u._f ? u._f : { ref: { name: a } },
1424
- name: a,
1453
+ ...u && u._f ? u._f : { ref: { name: o } },
1454
+ name: o,
1425
1455
  mount: !0,
1426
1456
  ...l
1427
1457
  }
1428
- }), o.mount.add(a), u ? mt({
1458
+ }), a.mount.add(o), u ? mt({
1429
1459
  disabled: he(l.disabled) ? l.disabled : t.disabled,
1430
- name: a
1431
- }) : D(a, !0, l.value), {
1460
+ name: o
1461
+ }) : V(o, !0, l.value), {
1432
1462
  ...x ? { disabled: l.disabled || t.disabled } : {},
1433
1463
  ...t.progressive ? {
1434
1464
  required: !!l.required,
1435
- min: $e(l.min),
1436
- max: $e(l.max),
1437
- minLength: $e(l.minLength),
1438
- maxLength: $e(l.maxLength),
1439
- pattern: $e(l.pattern)
1465
+ min: Fe(l.min),
1466
+ max: Fe(l.max),
1467
+ minLength: Fe(l.minLength),
1468
+ maxLength: Fe(l.maxLength),
1469
+ pattern: Fe(l.pattern)
1440
1470
  } : {},
1441
- name: a,
1442
- onChange: P,
1443
- onBlur: P,
1444
- ref: (p) => {
1445
- if (p) {
1446
- Ye(a, l), u = _(n, a);
1447
- const g = W(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, k = lr(g), T = u._f.refs || [];
1448
- if (k ? T.find((O) => O === g) : g === u._f.ref)
1471
+ name: o,
1472
+ onChange: I,
1473
+ onBlur: I,
1474
+ ref: (w) => {
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)
1449
1479
  return;
1450
- U(n, a, {
1480
+ R(n, o, {
1451
1481
  _f: {
1452
1482
  ...u._f,
1453
1483
  ...k ? {
1454
1484
  refs: [
1455
- ...T.filter(st),
1456
- g,
1457
- ...Array.isArray(_(i, a)) ? [{}] : []
1485
+ ...D.filter(st),
1486
+ p,
1487
+ ...Array.isArray(_(i, o)) ? [{}] : []
1458
1488
  ],
1459
- ref: { type: g.type, name: a }
1460
- } : { ref: g }
1489
+ ref: { type: p.type, name: o }
1490
+ } : { ref: p }
1461
1491
  }
1462
- }), D(a, !1, void 0, g);
1492
+ }), V(o, !1, void 0, p);
1463
1493
  } else
1464
- u = _(n, a, {}), u._f && (u._f.mount = !1), (t.shouldUnregister || l.shouldUnregister) && !(sr(o.array, a) && c.action) && o.unMount.add(a);
1494
+ u = _(n, o, {}), u._f && (u._f.mount = !1), (t.shouldUnregister || l.shouldUnregister) && !(nr(a.array, o) && c.action) && a.unMount.add(o);
1465
1495
  }
1466
1496
  };
1467
- }, Xe = () => t.shouldFocusError && Le(n, ee, o.mount), us = (a) => {
1468
- he(a) && (d.state.next({ disabled: a }), Le(n, (l, u) => {
1497
+ }, Xe = () => t.shouldFocusError && Te(n, te, a.mount), ds = (o) => {
1498
+ he(o) && (f.state.next({ disabled: o }), Te(n, (l, u) => {
1469
1499
  const x = _(n, u);
1470
- x && (l.disabled = x._f.disabled || a, Array.isArray(x._f.refs) && x._f.refs.forEach((p) => {
1471
- p.disabled = x._f.disabled || a;
1500
+ x && (l.disabled = x._f.disabled || o, Array.isArray(x._f.refs) && x._f.refs.forEach((w) => {
1501
+ w.disabled = x._f.disabled || o;
1472
1502
  }));
1473
1503
  }, 0, !1));
1474
- }, ht = (a, l) => async (u) => {
1504
+ }, ht = (o, l) => async (u) => {
1475
1505
  let x;
1476
1506
  u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1477
- let p = Y(r);
1478
- if (d.state.next({
1507
+ let w = X(r);
1508
+ if (f.state.next({
1479
1509
  isSubmitting: !0
1480
1510
  }), t.resolver) {
1481
- const { errors: g, values: k } = await V();
1482
- s.errors = g, p = Y(k);
1511
+ const { errors: p, values: k } = await P();
1512
+ s.errors = p, w = X(k);
1483
1513
  } else
1484
- await B(n);
1485
- if (o.disabled.size)
1486
- for (const g of o.disabled)
1487
- Q(p, g);
1488
- if (Q(s.errors, "root"), se(s.errors)) {
1489
- d.state.next({
1514
+ await H(n);
1515
+ if (a.disabled.size)
1516
+ for (const p of a.disabled)
1517
+ W(w, p);
1518
+ if (W(s.errors, "root"), re(s.errors)) {
1519
+ f.state.next({
1490
1520
  errors: {}
1491
1521
  });
1492
1522
  try {
1493
- await a(p, u);
1494
- } catch (g) {
1495
- x = g;
1523
+ await o(w, u);
1524
+ } catch (p) {
1525
+ x = p;
1496
1526
  }
1497
1527
  } else
1498
1528
  l && await l({ ...s.errors }, u), Xe(), setTimeout(Xe);
1499
- if (d.state.next({
1529
+ if (f.state.next({
1500
1530
  isSubmitted: !0,
1501
1531
  isSubmitting: !1,
1502
- isSubmitSuccessful: se(s.errors) && !x,
1532
+ isSubmitSuccessful: re(s.errors) && !x,
1503
1533
  submitCount: s.submitCount + 1,
1504
1534
  errors: s.errors
1505
1535
  }), x)
1506
1536
  throw x;
1507
- }, ds = (a, l = {}) => {
1508
- _(n, a) && (W(l.defaultValue) ? Z(a, Y(_(i, a))) : (Z(a, l.defaultValue), U(i, a, Y(l.defaultValue))), l.keepTouched || Q(s.touchedFields, a), l.keepDirty || (Q(s.dirtyFields, a), s.isDirty = l.defaultValue ? I(a, Y(_(i, a))) : I()), l.keepError || (Q(s.errors, a), b.isValid && v()), d.state.next({ ...s }));
1509
- }, yt = (a, l = {}) => {
1510
- const u = a ? Y(a) : i, x = Y(u), p = se(a), g = p ? i : x;
1537
+ }, fs = (o, l = {}) => {
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
+ }, yt = (o, l = {}) => {
1540
+ const u = o ? X(o) : i, x = X(u), w = re(o), p = w ? i : x;
1511
1541
  if (l.keepDefaultValues || (i = u), !l.keepValues) {
1512
1542
  if (l.keepDirtyValues) {
1513
1543
  const k = /* @__PURE__ */ new Set([
1514
- ...o.mount,
1515
- ...Object.keys(Ee(i, r))
1544
+ ...a.mount,
1545
+ ...Object.keys($e(i, r))
1516
1546
  ]);
1517
- for (const T of Array.from(k))
1518
- _(s.dirtyFields, T) ? U(g, T, _(r, T)) : Z(T, _(g, T));
1547
+ for (const D of Array.from(k))
1548
+ _(s.dirtyFields, D) ? R(p, D, _(r, D)) : ee(D, _(p, D));
1519
1549
  } else {
1520
- if (nt && W(a))
1521
- for (const k of o.mount) {
1522
- const T = _(n, k);
1523
- if (T && T._f) {
1524
- const O = Array.isArray(T._f.refs) ? T._f.refs[0] : T._f.ref;
1525
- if (qe(O)) {
1526
- const ae = O.closest("form");
1527
- if (ae) {
1528
- ae.reset();
1550
+ if (nt && z(o))
1551
+ for (const k of a.mount) {
1552
+ const D = _(n, k);
1553
+ if (D && D._f) {
1554
+ const O = Array.isArray(D._f.refs) ? D._f.refs[0] : D._f.ref;
1555
+ if (je(O)) {
1556
+ const oe = O.closest("form");
1557
+ if (oe) {
1558
+ oe.reset();
1529
1559
  break;
1530
1560
  }
1531
1561
  }
1532
1562
  }
1533
1563
  }
1534
1564
  if (l.keepFieldsRef)
1535
- for (const k of o.mount)
1536
- Z(k, _(g, k));
1565
+ for (const k of a.mount)
1566
+ ee(k, _(p, k));
1537
1567
  else
1538
1568
  n = {};
1539
1569
  }
1540
- r = t.shouldUnregister ? l.keepDefaultValues ? Y(i) : {} : Y(g), d.array.next({
1541
- values: { ...g }
1542
- }), d.state.next({
1543
- values: { ...g }
1570
+ r = t.shouldUnregister ? l.keepDefaultValues ? X(i) : {} : X(p), f.array.next({
1571
+ values: { ...p }
1572
+ }), f.state.next({
1573
+ values: { ...p }
1544
1574
  });
1545
1575
  }
1546
- o = {
1547
- mount: l.keepDirtyValues ? o.mount : /* @__PURE__ */ new Set(),
1576
+ a = {
1577
+ mount: l.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
1548
1578
  unMount: /* @__PURE__ */ new Set(),
1549
1579
  array: /* @__PURE__ */ new Set(),
1550
1580
  disabled: /* @__PURE__ */ new Set(),
1551
1581
  watch: /* @__PURE__ */ new Set(),
1552
1582
  watchAll: !1,
1553
1583
  focus: ""
1554
- }, c.mount = !b.isValid || !!l.keepIsValid || !!l.keepDirtyValues, c.watch = !!t.shouldUnregister, d.state.next({
1584
+ }, c.mount = !b.isValid || !!l.keepIsValid || !!l.keepDirtyValues, c.watch = !!t.shouldUnregister, f.state.next({
1555
1585
  submitCount: l.keepSubmitCount ? s.submitCount : 0,
1556
- isDirty: p ? !1 : l.keepDirty ? s.isDirty : !!(l.keepDefaultValues && !ve(a, i)),
1586
+ isDirty: w ? !1 : l.keepDirty ? s.isDirty : !!(l.keepDefaultValues && !ve(o, i)),
1557
1587
  isSubmitted: l.keepIsSubmitted ? s.isSubmitted : !1,
1558
- dirtyFields: p ? {} : l.keepDirtyValues ? l.keepDefaultValues && r ? Ee(i, r) : s.dirtyFields : l.keepDefaultValues && a ? Ee(i, a) : l.keepDirty ? s.dirtyFields : {},
1588
+ dirtyFields: w ? {} : l.keepDirtyValues ? l.keepDefaultValues && r ? $e(i, r) : s.dirtyFields : l.keepDefaultValues && o ? $e(i, o) : l.keepDirty ? s.dirtyFields : {},
1559
1589
  touchedFields: l.keepTouched ? s.touchedFields : {},
1560
1590
  errors: l.keepErrors ? s.errors : {},
1561
1591
  isSubmitSuccessful: l.keepIsSubmitSuccessful ? s.isSubmitSuccessful : !1,
1562
1592
  isSubmitting: !1
1563
1593
  });
1564
- }, gt = (a, l) => yt(fe(a) ? a(r) : a, l), fs = (a, l = {}) => {
1565
- const u = _(n, a), x = u && u._f;
1594
+ }, gt = (o, l) => yt(fe(o) ? o(r) : o, l), ms = (o, l = {}) => {
1595
+ const u = _(n, o), x = u && u._f;
1566
1596
  if (x) {
1567
- const p = x.refs ? x.refs[0] : x.ref;
1568
- p.focus && (p.focus(), l.shouldSelect && fe(p.select) && p.select());
1597
+ const w = x.refs ? x.refs[0] : x.ref;
1598
+ w.focus && (w.focus(), l.shouldSelect && fe(w.select) && w.select());
1569
1599
  }
1570
- }, ms = (a) => {
1600
+ }, hs = (o) => {
1571
1601
  s = {
1572
1602
  ...s,
1573
- ...a
1603
+ ...o
1574
1604
  };
1575
1605
  }, bt = {
1576
1606
  control: {
1577
1607
  register: Ye,
1578
1608
  unregister: Je,
1579
- getFieldState: Ie,
1609
+ getFieldState: Ue,
1580
1610
  handleSubmit: ht,
1581
1611
  setError: dt,
1582
1612
  _subscribe: ft,
1583
- _runSchema: V,
1613
+ _runSchema: P,
1584
1614
  _focusError: Xe,
1585
- _getWatch: N,
1586
- _getDirty: I,
1587
- _setValid: v,
1588
- _setFieldArray: oe,
1615
+ _getWatch: S,
1616
+ _getDirty: M,
1617
+ _setValid: y,
1618
+ _setFieldArray: G,
1589
1619
  _setDisabledField: mt,
1590
- _setErrors: z,
1591
- _getFieldArray: E,
1620
+ _setErrors: j,
1621
+ _getFieldArray: $,
1592
1622
  _reset: yt,
1593
- _resetDefaultValues: () => fe(t.defaultValues) && t.defaultValues().then((a) => {
1594
- gt(a, t.resetOptions), d.state.next({
1623
+ _resetDefaultValues: () => fe(t.defaultValues) && t.defaultValues().then((o) => {
1624
+ gt(o, t.resetOptions), f.state.next({
1595
1625
  isLoading: !1
1596
1626
  });
1597
1627
  }),
1598
- _removeUnmounted: M,
1599
- _disableForm: us,
1600
- _subjects: d,
1628
+ _removeUnmounted: U,
1629
+ _disableForm: ds,
1630
+ _subjects: f,
1601
1631
  _proxyFormState: b,
1602
1632
  get _fields() {
1603
1633
  return n;
@@ -1608,17 +1638,17 @@ function xr(e = {}) {
1608
1638
  get _state() {
1609
1639
  return c;
1610
1640
  },
1611
- set _state(a) {
1612
- c = a;
1641
+ set _state(o) {
1642
+ c = o;
1613
1643
  },
1614
1644
  get _defaultValues() {
1615
1645
  return i;
1616
1646
  },
1617
1647
  get _names() {
1618
- return o;
1648
+ return a;
1619
1649
  },
1620
- set _names(a) {
1621
- o = a;
1650
+ set _names(o) {
1651
+ a = o;
1622
1652
  },
1623
1653
  get _formState() {
1624
1654
  return s;
@@ -1626,27 +1656,27 @@ function xr(e = {}) {
1626
1656
  get _options() {
1627
1657
  return t;
1628
1658
  },
1629
- set _options(a) {
1659
+ set _options(o) {
1630
1660
  t = {
1631
1661
  ...t,
1632
- ...a
1662
+ ...o
1633
1663
  };
1634
1664
  }
1635
1665
  },
1636
- subscribe: ls,
1637
- trigger: ne,
1666
+ subscribe: us,
1667
+ trigger: ie,
1638
1668
  register: Ye,
1639
1669
  handleSubmit: ht,
1640
- watch: cs,
1641
- setValue: Z,
1670
+ watch: ls,
1671
+ setValue: ee,
1642
1672
  getValues: ue,
1643
1673
  reset: gt,
1644
- resetField: ds,
1674
+ resetField: fs,
1645
1675
  clearErrors: Ce,
1646
1676
  unregister: Je,
1647
1677
  setError: dt,
1648
- setFocus: fs,
1649
- getFieldState: Ie
1678
+ setFocus: ms,
1679
+ getFieldState: Ue
1650
1680
  };
1651
1681
  return {
1652
1682
  ...bt,
@@ -1654,7 +1684,7 @@ function xr(e = {}) {
1654
1684
  };
1655
1685
  }
1656
1686
  function os(e = {}) {
1657
- const t = ie.useRef(void 0), s = ie.useRef(void 0), [n, i] = ie.useState({
1687
+ const t = ae.useRef(void 0), s = ae.useRef(void 0), [n, i] = ae.useState({
1658
1688
  isDirty: !1,
1659
1689
  isValidating: !1,
1660
1690
  isLoading: fe(e.defaultValues),
@@ -1678,140 +1708,140 @@ function os(e = {}) {
1678
1708
  formState: n
1679
1709
  }, e.defaultValues && !fe(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1680
1710
  else {
1681
- const { formControl: c, ...o } = xr(e);
1711
+ const { formControl: c, ...a } = Cr(e);
1682
1712
  t.current = {
1683
- ...o,
1713
+ ...a,
1684
1714
  formState: n
1685
1715
  };
1686
1716
  }
1687
1717
  const r = t.current.control;
1688
- return r._options = e, or(() => {
1718
+ return r._options = e, cr(() => {
1689
1719
  const c = r._subscribe({
1690
1720
  formState: r._proxyFormState,
1691
1721
  callback: () => i({ ...r._formState }),
1692
1722
  reRenderRoot: !0
1693
1723
  });
1694
- return i((o) => ({
1695
- ...o,
1724
+ return i((a) => ({
1725
+ ...a,
1696
1726
  isReady: !0
1697
1727
  })), r._formState.isReady = !0, c;
1698
- }, [r]), ie.useEffect(() => r._disableForm(e.disabled), [r, e.disabled]), ie.useEffect(() => {
1728
+ }, [r]), ae.useEffect(() => r._disableForm(e.disabled), [r, e.disabled]), ae.useEffect(() => {
1699
1729
  e.mode && (r._options.mode = e.mode), e.reValidateMode && (r._options.reValidateMode = e.reValidateMode);
1700
- }, [r, e.mode, e.reValidateMode]), ie.useEffect(() => {
1730
+ }, [r, e.mode, e.reValidateMode]), ae.useEffect(() => {
1701
1731
  e.errors && (r._setErrors(e.errors), r._focusError());
1702
- }, [r, e.errors]), ie.useEffect(() => {
1732
+ }, [r, e.errors]), ae.useEffect(() => {
1703
1733
  e.shouldUnregister && r._subjects.state.next({
1704
1734
  values: r._getWatch()
1705
1735
  });
1706
- }, [r, e.shouldUnregister]), ie.useEffect(() => {
1736
+ }, [r, e.shouldUnregister]), ae.useEffect(() => {
1707
1737
  if (r._proxyFormState.isDirty) {
1708
1738
  const c = r._getDirty();
1709
1739
  c !== n.isDirty && r._subjects.state.next({
1710
1740
  isDirty: c
1711
1741
  });
1712
1742
  }
1713
- }, [r, n.isDirty]), ie.useEffect(() => {
1743
+ }, [r, n.isDirty]), ae.useEffect(() => {
1714
1744
  e.values && !ve(e.values, s.current) ? (r._reset(e.values, {
1715
1745
  keepFieldsRef: !0,
1716
1746
  ...r._options.resetOptions
1717
1747
  }), s.current = e.values, i((c) => ({ ...c }))) : r._resetDefaultValues();
1718
- }, [r, e.values]), ie.useEffect(() => {
1748
+ }, [r, e.values]), ae.useEffect(() => {
1719
1749
  r._state.mount || (r._setValid(), r._state.mount = !0), r._state.watch && (r._state.watch = !1, r._subjects.state.next({ ...r._formState })), r._removeUnmounted();
1720
- }), t.current.formState = ir(n, r), t.current;
1750
+ }), t.current.formState = or(n, r), t.current;
1721
1751
  }
1722
- const on = (e) => {
1723
- const { t } = L(), { showStackNotifications: s, showSuccessNotification: n } = Se(), {
1752
+ const ln = (e) => {
1753
+ const { t } = T(), { showStackNotifications: s, showSuccessNotification: n } = Se(), {
1724
1754
  defaultValues: i,
1725
1755
  mutationFn: r,
1726
1756
  formToDto: c,
1727
- onError: o,
1728
- onSuccess: f,
1729
- queryKey: y,
1757
+ onError: a,
1758
+ onSuccess: d,
1759
+ queryKey: m,
1730
1760
  onSuccessMessage: b
1731
- } = e, { control: m, handleSubmit: d, reset: w, setError: C, getValues: v, setValue: q } = os({
1761
+ } = e, { control: g, handleSubmit: f, reset: v, setError: C, getValues: y, setValue: L } = os({
1732
1762
  defaultValues: i
1733
- }), oe = F(
1734
- (D) => {
1735
- const $ = D == null ? void 0 : D.errors, G = [];
1736
- return $ && $.forEach(([V, le]) => {
1737
- const B = document.querySelector(`[name="${V}"]`);
1738
- (B instanceof HTMLInputElement || B instanceof HTMLTextAreaElement || B instanceof HTMLSelectElement) && (B.focus(), B.classList.add("error"), G.push(t(`_entities:${y}.${V}.${le}`)));
1739
- }), G;
1763
+ }), G = E(
1764
+ (V) => {
1765
+ const F = V == null ? void 0 : V.errors, J = [];
1766
+ return F && F.forEach(([P, le]) => {
1767
+ const H = document.querySelector(`[name="${P}"]`);
1768
+ (H instanceof HTMLInputElement || H instanceof HTMLTextAreaElement || H instanceof HTMLSelectElement) && (H.focus(), H.classList.add("error"), J.push(t(`_entities:${m}.${P}.${le}`)));
1769
+ }), J;
1740
1770
  },
1741
- [t, y]
1742
- ), S = F(() => {
1743
- document.querySelectorAll("input, textarea, select").forEach(($) => {
1744
- $.classList.remove("error");
1771
+ [t, m]
1772
+ ), N = E(() => {
1773
+ document.querySelectorAll("input, textarea, select").forEach((F) => {
1774
+ F.classList.remove("error");
1745
1775
  });
1746
- }, []), z = Pe(
1776
+ }, []), j = Oe(
1747
1777
  {
1748
1778
  mutationFn: r,
1749
- onError: (D) => {
1750
- console.error(D);
1751
- const $ = D;
1752
- if (o) o(D);
1753
- else if (Qe($)) {
1754
- const G = oe($);
1779
+ onError: (V) => {
1780
+ console.error(V);
1781
+ const F = V;
1782
+ if (a) a(V);
1783
+ else if (Qe(F)) {
1784
+ const J = G(F);
1755
1785
  s(
1756
- G.map(
1757
- (V) => ({
1758
- message: V,
1759
- type: j.error
1786
+ J.map(
1787
+ (P) => ({
1788
+ message: P,
1789
+ type: K.error
1760
1790
  })
1761
1791
  )
1762
1792
  );
1763
- } else if (We($)) {
1764
- const G = $.message || t("_accessibility:errors.500"), V = t(`_accessibility:errors.${$.status}`);
1793
+ } else if (We(F)) {
1794
+ const J = F.message || t("_accessibility:errors.500"), P = t(`_accessibility:errors.${F.status}`);
1765
1795
  s([
1766
1796
  {
1767
- message: V || G,
1768
- type: j.error
1797
+ message: P || J,
1798
+ type: K.error
1769
1799
  }
1770
1800
  ]);
1771
1801
  }
1772
1802
  },
1773
- onSuccess: async (D) => {
1774
- pe && await pe.invalidateQueries({ queryKey: y }), f && f(D), b && n({
1803
+ onSuccess: async (V) => {
1804
+ pe && await pe.invalidateQueries({ queryKey: m }), d && d(V), b && n({
1775
1805
  message: b
1776
1806
  });
1777
1807
  }
1778
1808
  }
1779
1809
  );
1780
1810
  return {
1781
- control: m,
1782
- getValues: v,
1783
- setValue: q,
1784
- handleSubmit: d,
1785
- onSubmit: (D) => z.mutate(
1786
- c ? c(D) : D
1811
+ control: g,
1812
+ getValues: y,
1813
+ setValue: L,
1814
+ handleSubmit: f,
1815
+ onSubmit: (V) => j.mutate(
1816
+ c ? c(V) : V
1787
1817
  ),
1788
- reset: w,
1818
+ reset: v,
1789
1819
  setError: C,
1790
- parseFormError: oe,
1791
- releaseFormError: S,
1792
- isLoading: z.isPending
1820
+ parseFormError: G,
1821
+ releaseFormError: N,
1822
+ isLoading: j.isPending
1793
1823
  };
1794
- }, _r = (e) => {
1795
- const { t } = L(), { onClick: s, hidden: n = !1, disabled: i = !1 } = e;
1824
+ }, kr = (e) => {
1825
+ const { t } = T(), { onClick: s, hidden: n = !1, disabled: i = !1 } = e;
1796
1826
  return {
1797
- action: F(
1827
+ action: E(
1798
1828
  (c) => ({
1799
1829
  id: _e.Delete,
1800
1830
  hidden: !!c.deletedAt || n,
1801
1831
  disabled: !!c.deletedAt || i,
1802
- icon: /* @__PURE__ */ h(ce, { className: "text-red-500", icon: Es }),
1832
+ icon: /* @__PURE__ */ h(ce, { className: "text-red-500", icon: $s }),
1803
1833
  tooltip: t("_pages:common.actions.delete.text"),
1804
1834
  onClick: () => s([c == null ? void 0 : c.id]),
1805
- onMultipleClick: (o) => s(o.map((f) => f.id)),
1835
+ onMultipleClick: (a) => s(a.map((d) => d.id)),
1806
1836
  multiple: !0
1807
1837
  }),
1808
1838
  [i, n, s, t]
1809
1839
  )
1810
1840
  };
1811
- }, Cr = (e) => {
1812
- const { t } = L(), { onClick: s, hidden: n = !1 } = e;
1841
+ }, Nr = (e) => {
1842
+ const { t } = T(), { onClick: s, hidden: n = !1 } = e;
1813
1843
  return {
1814
- action: F(
1844
+ action: E(
1815
1845
  (r) => ({
1816
1846
  id: _e.Restore,
1817
1847
  hidden: !r.deletedAt || n,
@@ -1819,21 +1849,21 @@ const on = (e) => {
1819
1849
  icon: /* @__PURE__ */ h(ce, { className: "text-red-500", icon: Mt }),
1820
1850
  tooltip: t("_pages:common.actions.restore.text"),
1821
1851
  onClick: () => s([r == null ? void 0 : r.id]),
1822
- onMultipleClick: (c) => s(c.map((o) => o.id)),
1852
+ onMultipleClick: (c) => s(c.map((a) => a.id)),
1823
1853
  multiple: !0
1824
1854
  }),
1825
1855
  [n, s, t]
1826
1856
  )
1827
1857
  };
1828
- }, an = (e) => {
1829
- const { t } = L(), { onClick: s, hidden: n = !1 } = e;
1858
+ }, un = (e) => {
1859
+ const { t } = T(), { onClick: s, hidden: n = !1 } = e;
1830
1860
  return {
1831
- action: F(
1861
+ action: E(
1832
1862
  (r) => ({
1833
1863
  id: _e.Edit,
1834
1864
  hidden: !!r.deletedAt || n,
1835
1865
  disabled: !!r.deletedAt,
1836
- icon: /* @__PURE__ */ h(ce, { className: "primary", icon: $s }),
1866
+ icon: /* @__PURE__ */ h(ce, { className: "primary", icon: Fs }),
1837
1867
  tooltip: t("_pages:common.actions.edit.text"),
1838
1868
  onClick: () => s(r == null ? void 0 : r.id)
1839
1869
  }),
@@ -1842,15 +1872,15 @@ const on = (e) => {
1842
1872
  };
1843
1873
  };
1844
1874
  var _e = /* @__PURE__ */ ((e) => (e.Add = "add", e.Edit = "edit", e.Delete = "delete", e.Restore = "restore", e.Refresh = "refresh", e.Export = "export", e.Import = "import", e))(_e || {});
1845
- const kr = (e) => {
1846
- const { t } = L(), {
1875
+ const Sr = (e) => {
1876
+ const { t } = T(), {
1847
1877
  onClick: s,
1848
1878
  hidden: n = !1,
1849
1879
  disabled: i = !1,
1850
1880
  isLoading: r = !1
1851
1881
  } = e;
1852
1882
  return {
1853
- action: F(
1883
+ action: E(
1854
1884
  () => ({
1855
1885
  id: _e.Export,
1856
1886
  hidden: n,
@@ -1859,7 +1889,7 @@ const kr = (e) => {
1859
1889
  ce,
1860
1890
  {
1861
1891
  className: `${r ? "rotate" : ""}`,
1862
- icon: r ? Ut : Fs
1892
+ icon: r ? Ut : Ls
1863
1893
  }
1864
1894
  ),
1865
1895
  tooltip: t("_pages:common.actions.export.text"),
@@ -1868,15 +1898,15 @@ const kr = (e) => {
1868
1898
  [i, n, r, s, t]
1869
1899
  )
1870
1900
  };
1871
- }, Sr = (e) => {
1872
- const { t } = L(), {
1901
+ }, Ar = (e) => {
1902
+ const { t } = T(), {
1873
1903
  onClick: s,
1874
1904
  hidden: n = !1,
1875
1905
  disabled: i = !1,
1876
1906
  isLoading: r = !1
1877
1907
  } = e;
1878
1908
  return {
1879
- action: F(
1909
+ action: E(
1880
1910
  () => ({
1881
1911
  id: _e.Import,
1882
1912
  hidden: n,
@@ -1885,7 +1915,7 @@ const kr = (e) => {
1885
1915
  ce,
1886
1916
  {
1887
1917
  className: `${r ? "rotate" : ""}`,
1888
- icon: r ? Ut : Ls
1918
+ icon: r ? Ut : Ts
1889
1919
  }
1890
1920
  ),
1891
1921
  tooltip: t("_pages:common.actions.import.text"),
@@ -1894,279 +1924,279 @@ const kr = (e) => {
1894
1924
  [i, n, r, s, t]
1895
1925
  )
1896
1926
  };
1897
- }, cn = (e) => {
1898
- const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = L(), { open: c, onClick: o, close: f, dialogFn: y, isLoading: b } = Xt({
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({
1899
1929
  onSuccessMessage: r("_pages:common.actions.delete.successMessage"),
1900
- onError: (d) => {
1901
- const w = d;
1902
- if (Qe(w))
1930
+ onError: (f) => {
1931
+ const v = f;
1932
+ if (Qe(v))
1903
1933
  i(
1904
- w.errors.map(
1905
- ([C, v]) => ({
1906
- message: r(`_pages:${C}.errors.${v}`),
1907
- type: j.error
1934
+ v.errors.map(
1935
+ ([C, y]) => ({
1936
+ message: r(`_pages:${C}.errors.${y}`),
1937
+ type: K.error
1908
1938
  })
1909
1939
  )
1910
1940
  );
1911
- else if (We(w)) {
1912
- const C = w.message || r("_accessibility:errors.500"), v = r(`_accessibility:errors.${w.status}`);
1941
+ else if (We(v)) {
1942
+ const C = v.message || r("_accessibility:errors.500"), y = r(`_accessibility:errors.${v.status}`);
1913
1943
  i([
1914
1944
  {
1915
- message: v || C,
1916
- type: j.error
1945
+ message: y || C,
1946
+ type: K.error
1917
1947
  }
1918
1948
  ]);
1919
1949
  }
1920
1950
  },
1921
- onSuccess: async (d) => {
1922
- await pe.invalidateQueries({ queryKey: t }), s && s(d);
1951
+ onSuccess: async (f) => {
1952
+ await pe.invalidateQueries({ queryKey: t }), s && s(f);
1923
1953
  },
1924
1954
  ...n
1925
- }), { action: m } = _r({ onClick: o });
1955
+ }), { action: g } = kr({ onClick: a });
1926
1956
  return {
1927
- onClick: o,
1957
+ onClick: a,
1928
1958
  title: r("_pages:common.actions.delete.dialog.title"),
1929
1959
  open: c,
1930
1960
  isLoading: b,
1931
- handleSubmit: () => y.mutate(),
1932
- handleClose: f,
1933
- action: m
1961
+ handleSubmit: () => m.mutate(),
1962
+ handleClose: d,
1963
+ action: g
1934
1964
  };
1935
- }, as = () => {
1936
- const [e, t] = H(!1);
1965
+ }, cs = () => {
1966
+ const [e, t] = B(!1);
1937
1967
  return { open: e, setOpen: t, handleClose: () => t(!1), handleOpen: () => t(!0) };
1938
- }, ln = (e) => {
1939
- const { t } = L(), {
1968
+ }, fn = (e) => {
1969
+ const { t } = T(), {
1940
1970
  showErrorNotification: s,
1941
1971
  showStackNotifications: n,
1942
1972
  showSuccessNotification: i
1943
1973
  } = Se(), {
1944
1974
  defaultValues: r,
1945
1975
  getFunction: c,
1946
- mutationFn: o,
1947
- formToDto: f,
1948
- dtoToForm: y,
1976
+ mutationFn: a,
1977
+ formToDto: d,
1978
+ dtoToForm: m,
1949
1979
  onError: b,
1950
- onSuccess: m,
1951
- queryKey: d,
1952
- onSuccessMessage: w,
1980
+ onSuccess: g,
1981
+ queryKey: f,
1982
+ onSuccessMessage: v,
1953
1983
  title: C
1954
- } = e, [v, q] = H(0), { open: oe, handleClose: S, handleOpen: z } = as(), { control: D, handleSubmit: $, reset: G, setError: V, getValues: le, setValue: B } = os({
1984
+ } = e, [y, L] = B(0), { open: G, handleClose: N, handleOpen: j } = cs(), { control: V, handleSubmit: F, reset: J, setError: P, getValues: le, setValue: H } = os({
1955
1985
  defaultValues: r
1956
- }), { data: M, isLoading: I } = Ks({
1957
- queryFn: () => c == null ? void 0 : c(v),
1958
- queryKey: [...d, v],
1959
- enabled: !!c && !!d && !!v
1986
+ }), { data: U, isLoading: M } = Qs({
1987
+ queryFn: () => c == null ? void 0 : c(y),
1988
+ queryKey: [...f, y],
1989
+ enabled: !!c && !!f && !!y
1960
1990
  });
1961
- X(() => {
1962
- M && y && G({ ...y(M) });
1963
- }, [M]);
1964
- const N = F(
1965
- (P) => {
1966
- const ee = P == null ? void 0 : P.errors, ne = [];
1967
- return ee && ee.forEach(([ue, Ie]) => {
1991
+ Z(() => {
1992
+ U && m && J({ ...m(U) });
1993
+ }, [U]);
1994
+ const S = E(
1995
+ (I) => {
1996
+ const te = I == null ? void 0 : I.errors, ie = [];
1997
+ return te && te.forEach(([ue, Ue]) => {
1968
1998
  const Ce = document.querySelector(`[name="${ue}"]`);
1969
- (Ce instanceof HTMLInputElement || Ce instanceof HTMLTextAreaElement || Ce instanceof HTMLSelectElement) && (Ce.focus(), Ce.classList.add("error"), ne.push(t(`_entities:${d}.${ue}.${Ie}`)));
1970
- }), ne;
1999
+ (Ce instanceof HTMLInputElement || Ce instanceof HTMLTextAreaElement || Ce instanceof HTMLSelectElement) && (Ce.focus(), Ce.classList.add("error"), ie.push(t(`_entities:${f}.${ue}.${Ue}`)));
2000
+ }), ie;
1971
2001
  },
1972
- [t, d]
1973
- ), E = F(() => {
1974
- document.querySelectorAll("input, textarea, select").forEach((ee) => {
1975
- ee.classList.remove("error");
2002
+ [t, f]
2003
+ ), $ = E(() => {
2004
+ document.querySelectorAll("input, textarea, select").forEach((te) => {
2005
+ te.classList.remove("error");
1976
2006
  });
1977
- }, []), R = F(
1978
- (P) => {
1979
- q(P ?? 0), z();
2007
+ }, []), q = E(
2008
+ (I) => {
2009
+ L(I ?? 0), j();
1980
2010
  },
1981
- [z]
1982
- ), J = F(() => {
1983
- E(), S(), G();
1984
- }, [G, E, S]), Z = Pe({
1985
- mutationFn: o,
1986
- onError: (P) => {
1987
- if (console.error(P), b) b(P);
2011
+ [j]
2012
+ ), Y = E(() => {
2013
+ $(), N(), J();
2014
+ }, [J, $, N]), ee = Oe({
2015
+ mutationFn: a,
2016
+ onError: (I) => {
2017
+ if (console.error(I), b) b(I);
1988
2018
  else {
1989
- const ee = P;
1990
- if (Qe(ee)) {
1991
- const ne = N(ee);
2019
+ const te = I;
2020
+ if (Qe(te)) {
2021
+ const ie = S(te);
1992
2022
  n(
1993
- ne.map(
2023
+ ie.map(
1994
2024
  (ue) => ({
1995
2025
  message: ue,
1996
- type: j.error
2026
+ type: K.error
1997
2027
  })
1998
2028
  )
1999
2029
  );
2000
- } else if (We(ee)) {
2001
- const ne = ee.message || t("_accessibility:errors.500"), ue = t(`_accessibility:errors.${ee.status}`);
2002
- s({ message: ue || ne });
2030
+ } else if (We(te)) {
2031
+ const ie = te.message || t("_accessibility:errors.500"), ue = t(`_accessibility:errors.${te.status}`);
2032
+ s({ message: ue || ie });
2003
2033
  } else
2004
2034
  s({ message: t("_accessibility:errors.500") });
2005
2035
  }
2006
2036
  },
2007
- onSuccess: async (P) => {
2008
- await pe.invalidateQueries({ queryKey: d }), m && m(P), i({
2009
- message: w
2010
- }), J();
2037
+ onSuccess: async (I) => {
2038
+ await pe.invalidateQueries({ queryKey: f }), g && g(I), i({
2039
+ message: v
2040
+ }), Y();
2011
2041
  }
2012
2042
  });
2013
2043
  return {
2014
- open: oe,
2015
- openDialog: R,
2016
- handleClose: J,
2017
- control: D,
2044
+ open: G,
2045
+ openDialog: q,
2046
+ handleClose: Y,
2047
+ control: V,
2018
2048
  getValues: le,
2019
- setValue: B,
2020
- handleSubmit: $,
2021
- onSubmit: (P) => Z.mutate(
2022
- f ? f(P) : P
2049
+ setValue: H,
2050
+ handleSubmit: F,
2051
+ onSubmit: (I) => ee.mutate(
2052
+ d ? d(I) : I
2023
2053
  ),
2024
- reset: G,
2025
- setError: V,
2026
- parseFormError: N,
2027
- releaseFormError: E,
2054
+ reset: J,
2055
+ setError: P,
2056
+ parseFormError: S,
2057
+ releaseFormError: $,
2028
2058
  title: C,
2029
- isLoading: I || Z.isPending
2059
+ isLoading: M || ee.isPending
2030
2060
  };
2031
- }, un = (e) => {
2032
- const { queryKey: t, onSuccess: s, ...n } = e, { showStackNotifications: i } = Se(), { t: r } = L(), { open: c, onClick: o, close: f, dialogFn: y, isLoading: b } = Xt({
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({
2033
2063
  onSuccessMessage: r("_pages:common.actions.restore.successMessage"),
2034
- onError: (d) => {
2035
- const w = d;
2036
- if (Qe(w))
2064
+ onError: (f) => {
2065
+ const v = f;
2066
+ if (Qe(v))
2037
2067
  i(
2038
- w.errors.map(
2039
- ([C, v]) => ({
2040
- message: r(`_pages:${C}.errors.${v}`),
2041
- type: j.error
2068
+ v.errors.map(
2069
+ ([C, y]) => ({
2070
+ message: r(`_pages:${C}.errors.${y}`),
2071
+ type: K.error
2042
2072
  })
2043
2073
  )
2044
2074
  );
2045
- else if (We(w)) {
2046
- const C = w.message || r("_accessibility:errors.500"), v = r(`_accessibility:errors.${w.status}`);
2075
+ else if (We(v)) {
2076
+ const C = v.message || r("_accessibility:errors.500"), y = r(`_accessibility:errors.${v.status}`);
2047
2077
  i([
2048
2078
  {
2049
- message: v || C,
2050
- type: j.error
2079
+ message: y || C,
2080
+ type: K.error
2051
2081
  }
2052
2082
  ]);
2053
2083
  }
2054
2084
  },
2055
- onSuccess: async (d) => {
2056
- await pe.invalidateQueries({ queryKey: t }), s && s(d);
2085
+ onSuccess: async (f) => {
2086
+ await pe.invalidateQueries({ queryKey: t }), s && s(f);
2057
2087
  },
2058
2088
  ...n
2059
- }), { action: m } = Cr({ onClick: o });
2089
+ }), { action: g } = Nr({ onClick: a });
2060
2090
  return {
2061
- onClick: o,
2091
+ onClick: a,
2062
2092
  title: r("_pages:common.actions.restore.dialog.title"),
2063
2093
  open: c,
2064
2094
  isLoading: b,
2065
- handleSubmit: () => y.mutate(),
2066
- handleClose: f,
2067
- action: m
2095
+ handleSubmit: () => m.mutate(),
2096
+ handleClose: d,
2097
+ action: g
2068
2098
  };
2069
2099
  };
2070
- function dn(e) {
2071
- const { t } = L(), { queryKey: s, mutationFn: n, entity: i, fileProcessor: r, onError: c } = e, [o, f] = H(!1), [y, b] = H(null), [m, d] = H(!1), w = Pe({
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({
2072
2102
  mutationFn: n,
2073
- onError: (v) => {
2074
- console.error(v), c == null || c(v);
2103
+ onError: (y) => {
2104
+ console.error(y), c == null || c(y);
2075
2105
  },
2076
2106
  onSuccess: async () => {
2077
2107
  pe && await pe.invalidateQueries({ queryKey: s });
2078
2108
  }
2079
- }), { action: C } = Sr({
2080
- onClick: () => f(!0)
2109
+ }), { action: C } = Ar({
2110
+ onClick: () => d(!0)
2081
2111
  });
2082
2112
  return {
2083
2113
  handleSubmit: async () => {
2084
- if (!(!y || y.length === 0))
2114
+ if (!(!m || m.length === 0))
2085
2115
  try {
2086
- await w.mutateAsync({
2087
- items: y,
2088
- override: m
2089
- }), f(!1), b(null), d(!1);
2090
- } catch (v) {
2091
- console.error(v);
2116
+ await v.mutateAsync({
2117
+ items: m,
2118
+ override: g
2119
+ }), d(!1), b(null), f(!1);
2120
+ } catch (y) {
2121
+ console.error(y);
2092
2122
  }
2093
2123
  },
2094
- isLoading: w.isPending,
2124
+ isLoading: v.isPending,
2095
2125
  fileProcessor: r,
2096
- onFileProcessed: (v) => b(v),
2097
- onOverrideChange: (v) => d(v),
2098
- open: o,
2126
+ onFileProcessed: (y) => b(y),
2127
+ onOverrideChange: (y) => f(y),
2128
+ open: a,
2099
2129
  title: t("_pages:common.actions.import.dialog.title", {
2100
2130
  entity: t(`_pages:${i}.title`)
2101
2131
  }),
2102
2132
  handleClose: () => {
2103
- f(!1), b(null);
2133
+ d(!1), b(null);
2104
2134
  },
2105
2135
  action: C
2106
2136
  };
2107
2137
  }
2108
- const fn = (e) => {
2109
- const { showSuccessNotification: t } = Se(), { t: s } = L(), {
2138
+ const yn = (e) => {
2139
+ const { showSuccessNotification: t } = Se(), { t: s } = T(), {
2110
2140
  entity: n,
2111
2141
  mutationFn: i,
2112
2142
  onError: r,
2113
2143
  onSuccess: c,
2114
- onSuccessMessage: o = s("_pages:common.actions.export.successMessage")
2115
- } = e, f = Pe({
2144
+ onSuccessMessage: a = s("_pages:common.actions.export.successMessage")
2145
+ } = e, d = Oe({
2116
2146
  mutationFn: () => i(),
2117
- onError: (m) => {
2118
- console.error(m), r && r(m);
2147
+ onError: (g) => {
2148
+ console.error(g), r && r(g);
2119
2149
  },
2120
- onSuccess: async (m) => {
2121
- const d = JSON.stringify(m, null, 2), w = new Blob([d], { type: "application/json" }), C = URL.createObjectURL(w), v = document.createElement("a");
2122
- v.href = C, v.download = `${n}.json`, v.click(), URL.revokeObjectURL(C), c && c(m), t({
2123
- message: o
2150
+ onSuccess: async (g) => {
2151
+ const f = JSON.stringify(g, null, 2), v = new Blob([f], { type: "application/json" }), C = URL.createObjectURL(v), y = document.createElement("a");
2152
+ y.href = C, y.download = `${n}.json`, y.click(), URL.revokeObjectURL(C), c && c(g), t({
2153
+ message: a
2124
2154
  });
2125
2155
  }
2126
- }), y = F(() => {
2127
- f.mutate();
2128
- }, [f]), { action: b } = kr({
2129
- onClick: y,
2130
- isLoading: f.isPending
2156
+ }), m = E(() => {
2157
+ d.mutate();
2158
+ }, [d]), { action: b } = Sr({
2159
+ onClick: m,
2160
+ isLoading: d.isPending
2131
2161
  });
2132
2162
  return {
2133
2163
  action: b
2134
2164
  };
2135
2165
  };
2136
- function Nr(e) {
2137
- const [t, s] = H(!1), n = F(() => {
2166
+ function Er(e) {
2167
+ const [t, s] = B(!1), n = E(() => {
2138
2168
  const i = window.scrollY > e;
2139
2169
  s(i);
2140
2170
  }, [e]);
2141
- return X(() => (window.addEventListener("scroll", n), () => {
2171
+ return Z(() => (window.addEventListener("scroll", n), () => {
2142
2172
  window.removeEventListener("scroll", n);
2143
2173
  }), [n]), t;
2144
2174
  }
2145
- const mn = () => {
2146
- const { t: e } = L(), t = Nr(200);
2175
+ const gn = () => {
2176
+ const { t: e } = T(), t = Er(200);
2147
2177
  return /* @__PURE__ */ h(
2148
2178
  be,
2149
2179
  {
2150
- icon: Ts,
2151
- onClick: () => Gs.scrollTo(0, 0),
2180
+ icon: Ds,
2181
+ onClick: () => Js.scrollTo(0, 0),
2152
2182
  "data-tooltip-id": "tooltip",
2153
2183
  "data-tooltip-content": e("_accessibility:buttons.toTop"),
2154
2184
  className: `submit primary to-top ${t ? "show" : "hide"}`
2155
2185
  }
2156
2186
  );
2157
- }, Ar = (e) => {
2158
- const { actions: t = [], className: s = "" } = e, { t: n } = L(), [i, r] = H(!1);
2187
+ }, $r = (e) => {
2188
+ const { actions: t = [], className: s = "" } = e, { t: n } = T(), [i, r] = B(!1);
2159
2189
  return /* @__PURE__ */ A("div", { className: `actions-dropdown ${s}`, children: [
2160
2190
  /* @__PURE__ */ h(
2161
2191
  be,
2162
2192
  {
2163
- icon: Ds,
2193
+ icon: Vs,
2164
2194
  onClick: () => r(!0),
2165
2195
  "data-tooltip-id": "tooltip",
2166
2196
  "data-tooltip-content": n("_accessibility:buttons.openActions")
2167
2197
  }
2168
2198
  ),
2169
- /* @__PURE__ */ h(Ws, { open: i, onClose: () => r(!1), children: /* @__PURE__ */ h(
2199
+ /* @__PURE__ */ h(zs, { open: i, onClose: () => r(!1), children: /* @__PURE__ */ h(
2170
2200
  jt,
2171
2201
  {
2172
2202
  showActionTexts: !0,
@@ -2176,22 +2206,22 @@ const mn = () => {
2176
2206
  }
2177
2207
  ) })
2178
2208
  ] });
2179
- }, hn = It(function(e, t) {
2209
+ }, bn = Ot(function(e, t) {
2180
2210
  const {
2181
2211
  value: s,
2182
2212
  onChange: n,
2183
- state: i = ws.default,
2213
+ state: i = vs.default,
2184
2214
  name: r = "",
2185
2215
  id: c = "",
2186
- label: o = "",
2187
- disabled: f = !1,
2188
- required: y = !1,
2216
+ label: a = "",
2217
+ disabled: d = !1,
2218
+ required: m = !1,
2189
2219
  containerClassName: b = "",
2190
- inputClassName: m = "",
2191
- labelClassName: d = "",
2192
- helperText: w = "",
2220
+ inputClassName: g = "",
2221
+ labelClassName: f = "",
2222
+ helperText: v = "",
2193
2223
  helperTextClassName: C = "",
2194
- ...v
2224
+ ...y
2195
2225
  } = e;
2196
2226
  return /* @__PURE__ */ A("div", { className: `relative z-0 w-full mb-5 group ${b}`, children: [
2197
2227
  /* @__PURE__ */ h(
@@ -2200,41 +2230,41 @@ const mn = () => {
2200
2230
  ref: t,
2201
2231
  name: r,
2202
2232
  id: c,
2203
- className: `text-input text-area ${vs(i)} ${m} peer`,
2204
- required: y,
2233
+ className: `text-input text-area ${xs(i)} ${g} peer`,
2234
+ required: m,
2205
2235
  value: s,
2206
2236
  onChange: n,
2207
- disabled: f,
2208
- ...v
2237
+ disabled: d,
2238
+ ...y
2209
2239
  }
2210
2240
  ),
2211
2241
  /* @__PURE__ */ A(
2212
2242
  "label",
2213
2243
  {
2214
2244
  htmlFor: r,
2215
- className: `text-input-label ${xs(i)} ${d}`,
2245
+ className: `text-input-label ${_s(i)} ${f}`,
2216
2246
  children: [
2217
- o,
2218
- y ? " *" : ""
2247
+ a,
2248
+ m ? " *" : ""
2219
2249
  ]
2220
2250
  }
2221
2251
  ),
2222
- !!w && /* @__PURE__ */ h(
2252
+ !!v && /* @__PURE__ */ h(
2223
2253
  "p",
2224
2254
  {
2225
- className: `text-input-helper-text ${_s(i)} ${C}`,
2226
- children: w
2255
+ className: `text-input-helper-text ${Cs(i)} ${C}`,
2256
+ children: v
2227
2257
  }
2228
2258
  )
2229
2259
  ] });
2230
- }), yn = (e) => {
2231
- const { t } = L(), {
2260
+ }), pn = (e) => {
2261
+ const { t } = T(), {
2232
2262
  children: s,
2233
2263
  handleSubmit: n,
2234
2264
  onSubmit: i,
2235
2265
  isLoading: r = !1,
2236
2266
  buttonEnd: c = !0,
2237
- reset: o
2267
+ reset: a
2238
2268
  } = e;
2239
2269
  return /* @__PURE__ */ A("form", { className: "form-container", onSubmit: n(i), children: [
2240
2270
  s,
@@ -2249,7 +2279,7 @@ const mn = () => {
2249
2279
  name: t("_accessibility:buttons.submit"),
2250
2280
  "aria-label": t("_accessibility:ariaLabels.submit"),
2251
2281
  children: [
2252
- r ? /* @__PURE__ */ h(De, { color: "stroke-base", loaderClass: "!w-6 mt-1", strokeWidth: "6" }) : null,
2282
+ r ? /* @__PURE__ */ h(Ve, { color: "stroke-base", loaderClass: "!w-6 mt-1", strokeWidth: "6" }) : null,
2253
2283
  t("_accessibility:buttons.submit")
2254
2284
  ]
2255
2285
  }
@@ -2259,7 +2289,7 @@ const mn = () => {
2259
2289
  {
2260
2290
  type: "button",
2261
2291
  variant: "outlined",
2262
- onClick: () => o == null ? void 0 : o(),
2292
+ onClick: () => a == null ? void 0 : a(),
2263
2293
  name: t("_accessibility:buttons.cancel"),
2264
2294
  "aria-label": t("_accessibility:ariaLabels.cancel"),
2265
2295
  children: t("_accessibility:buttons.cancel")
@@ -2267,55 +2297,55 @@ const mn = () => {
2267
2297
  )
2268
2298
  ] })
2269
2299
  ] });
2270
- }, gn = It(function(e, t) {
2271
- const [s, n] = H(!1);
2272
- return /* @__PURE__ */ h(Cs, { ...e, type: s ? "text" : "password", ref: t, children: /* @__PURE__ */ h(
2300
+ }, wn = Ot(function(e, t) {
2301
+ const [s, n] = B(!1);
2302
+ return /* @__PURE__ */ h(ks, { ...e, type: s ? "text" : "password", ref: t, children: /* @__PURE__ */ h(
2273
2303
  be,
2274
2304
  {
2275
2305
  type: "button",
2276
2306
  tabIndex: -1,
2277
2307
  className: "absolute right-2 password-icon",
2278
2308
  onClick: () => n(!s),
2279
- icon: s ? Vs : Ps
2309
+ icon: s ? Ps : Is
2280
2310
  }
2281
2311
  ) });
2282
2312
  }), lt = (e) => {
2283
- const { t } = L(), {
2313
+ const { t } = T(), {
2284
2314
  title: s,
2285
2315
  children: n,
2286
2316
  handleClose: i,
2287
2317
  open: r = !1,
2288
2318
  containerClassName: c = "",
2289
- className: o = "",
2290
- animationClass: f = "appear"
2291
- } = e, [y, b] = H(window.innerWidth), m = F(
2292
- (v) => {
2293
- v.key === "Escape" && r && i();
2319
+ className: a = "",
2320
+ animationClass: d = "appear"
2321
+ } = e, [m, b] = B(window.innerWidth), g = E(
2322
+ (y) => {
2323
+ y.key === "Escape" && r && i();
2294
2324
  },
2295
2325
  [r, i]
2296
2326
  );
2297
- X(() => (window.addEventListener("keydown", m), () => {
2298
- window.removeEventListener("keydown", m);
2299
- }), [m]);
2300
- const d = F(() => {
2327
+ Z(() => (window.addEventListener("keydown", g), () => {
2328
+ window.removeEventListener("keydown", g);
2329
+ }), [g]);
2330
+ const f = E(() => {
2301
2331
  b(window.innerWidth);
2302
2332
  }, []);
2303
- X(() => (window.addEventListener("resize", d), () => {
2304
- window.removeEventListener("resize", d);
2305
- }), [d]);
2306
- const w = Ve(() => Bs({ width: `${y}px` }), [y]), C = F(
2307
- (v) => {
2308
- var q;
2309
- ((q = v == null ? void 0 : v.currentTarget) == null ? void 0 : q.getAttribute("name")) === t("_accessibility:buttons.closeDialog") && i();
2333
+ Z(() => (window.addEventListener("resize", f), () => {
2334
+ window.removeEventListener("resize", f);
2335
+ }), [f]);
2336
+ const v = Ne(() => js({ width: `${m}px` }), [m]), C = E(
2337
+ (y) => {
2338
+ var L;
2339
+ ((L = y == null ? void 0 : y.currentTarget) == null ? void 0 : L.getAttribute("name")) === t("_accessibility:buttons.closeDialog") && i();
2310
2340
  },
2311
2341
  [t, i]
2312
2342
  );
2313
- return X(() => {
2314
- const v = (q) => {
2315
- q ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
2343
+ return Z(() => {
2344
+ const y = (L) => {
2345
+ L ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
2316
2346
  };
2317
- return v(r), () => {
2318
- v(r);
2347
+ return y(r), () => {
2348
+ y(r);
2319
2349
  };
2320
2350
  }, [r]), qt(
2321
2351
  /* @__PURE__ */ h(
@@ -2324,11 +2354,11 @@ const mn = () => {
2324
2354
  "aria-label": t("_accessibility:ariaLabels.closeDialog"),
2325
2355
  "aria-disabled": !r,
2326
2356
  onClick: C,
2327
- className: `dialog-backdrop animated ${r ? `opened ${f}` : "closed"} ${w} h-screen ${r ? "bg-base/20 backdrop-blur-xl" : "pointer-events-none"} ${c}`,
2357
+ className: `dialog-backdrop animated ${r ? `opened ${d}` : "closed"} ${v} h-screen ${r ? "bg-base/20 backdrop-blur-xl" : "pointer-events-none"} ${c}`,
2328
2358
  children: /* @__PURE__ */ A(
2329
2359
  "div",
2330
2360
  {
2331
- className: `dialog elevated animated ${r ? `opened ${f}` : "closed"} ${o}`,
2361
+ className: `dialog elevated animated ${r ? `opened ${d}` : "closed"} ${a}`,
2332
2362
  children: [
2333
2363
  /* @__PURE__ */ A("div", { className: "dialog-header", children: [
2334
2364
  /* @__PURE__ */ h("h3", { className: "text-text text-xl", children: s }),
@@ -2361,33 +2391,33 @@ const mn = () => {
2361
2391
  onCancel: i,
2362
2392
  isLoading: r = !1,
2363
2393
  disabled: c = !1,
2364
- primaryType: o = "submit",
2365
- containerClassName: f = "",
2366
- primaryClassName: y = "",
2394
+ primaryType: a = "submit",
2395
+ containerClassName: d = "",
2396
+ primaryClassName: m = "",
2367
2397
  alignEnd: b = !1,
2368
- primaryName: m,
2369
- primaryAriaLabel: d,
2370
- cancelName: w,
2398
+ primaryName: g,
2399
+ primaryAriaLabel: f,
2400
+ cancelName: v,
2371
2401
  cancelAriaLabel: C
2372
2402
  } = e;
2373
2403
  return /* @__PURE__ */ A(
2374
2404
  "div",
2375
2405
  {
2376
- className: `flex gap-2 mt-2 ${b ? "justify-end" : ""} ${f}`,
2406
+ className: `flex gap-2 mt-2 ${b ? "justify-end" : ""} ${d}`,
2377
2407
  children: [
2378
2408
  /* @__PURE__ */ A(
2379
2409
  xe,
2380
2410
  {
2381
- type: o,
2411
+ type: a,
2382
2412
  color: "primary",
2383
2413
  variant: "submit",
2384
- className: y,
2414
+ className: m,
2385
2415
  disabled: c,
2386
- onClick: o === "button" ? n : void 0,
2387
- name: m,
2388
- "aria-label": d,
2416
+ onClick: a === "button" ? n : void 0,
2417
+ name: g,
2418
+ "aria-label": f,
2389
2419
  children: [
2390
- r ? /* @__PURE__ */ h(De, { color: "stroke-base", loaderClass: "!w-6 mt-1", strokeWidth: "6" }) : null,
2420
+ r ? /* @__PURE__ */ h(Ve, { color: "stroke-base", loaderClass: "!w-6 mt-1", strokeWidth: "6" }) : null,
2391
2421
  t
2392
2422
  ]
2393
2423
  }
@@ -2399,7 +2429,7 @@ const mn = () => {
2399
2429
  variant: "outlined",
2400
2430
  disabled: c,
2401
2431
  onClick: i,
2402
- name: w,
2432
+ name: v,
2403
2433
  "aria-label": C,
2404
2434
  children: s
2405
2435
  }
@@ -2407,17 +2437,17 @@ const mn = () => {
2407
2437
  ]
2408
2438
  }
2409
2439
  );
2410
- }, bn = (e) => {
2411
- const { t } = L(), {
2440
+ }, vn = (e) => {
2441
+ const { t } = T(), {
2412
2442
  children: s,
2413
2443
  handleSubmit: n,
2414
2444
  onSubmit: i,
2415
2445
  handleClose: r,
2416
2446
  isLoading: c = !1,
2417
- buttonEnd: o = !0,
2418
- ...f
2447
+ buttonEnd: a = !0,
2448
+ ...d
2419
2449
  } = e;
2420
- return /* @__PURE__ */ h(lt, { ...f, handleClose: r, children: /* @__PURE__ */ A("form", { onSubmit: n(i), children: [
2450
+ return /* @__PURE__ */ h(lt, { ...d, handleClose: r, children: /* @__PURE__ */ A("form", { onSubmit: n(i), children: [
2421
2451
  /* @__PURE__ */ h("div", { className: "form-container", children: s }),
2422
2452
  /* @__PURE__ */ h(
2423
2453
  ut,
@@ -2429,7 +2459,7 @@ const mn = () => {
2429
2459
  isLoading: c,
2430
2460
  disabled: c,
2431
2461
  primaryClassName: "!px-6",
2432
- alignEnd: o,
2462
+ alignEnd: a,
2433
2463
  primaryName: t("_accessibility:buttons.submit"),
2434
2464
  primaryAriaLabel: t("_accessibility:ariaLabels.submit"),
2435
2465
  cancelName: t("_accessibility:buttons.cancel"),
@@ -2437,8 +2467,8 @@ const mn = () => {
2437
2467
  }
2438
2468
  )
2439
2469
  ] }) });
2440
- }, pn = (e) => {
2441
- const { t } = L(), {
2470
+ }, xn = (e) => {
2471
+ const { t } = T(), {
2442
2472
  children: s,
2443
2473
  handleSubmit: n,
2444
2474
  handleClose: i,
@@ -2466,18 +2496,18 @@ const mn = () => {
2466
2496
  )
2467
2497
  ] });
2468
2498
  };
2469
- function Er(e) {
2470
- const { message: t, className: s = "" } = e, { t: n } = L();
2499
+ function Fr(e) {
2500
+ const { message: t, className: s = "" } = e, { t: n } = T();
2471
2501
  return t ? /* @__PURE__ */ h("p", { className: `text-red-600 text-sm mt-2 ${s}`, children: t || n("_messages:errors.parseFile", { defaultValue: "Failed to process file" }) }) : null;
2472
2502
  }
2473
- function $r(e) {
2474
- const { message: t, className: s = "" } = e, { t: n } = L();
2503
+ function Lr(e) {
2504
+ const { message: t, className: s = "" } = e, { t: n } = T();
2475
2505
  return /* @__PURE__ */ A(
2476
2506
  "div",
2477
2507
  {
2478
2508
  className: `my-4 mx-auto flex items-center gap-3 text-sm text-gray-600 ${s}`,
2479
2509
  children: [
2480
- /* @__PURE__ */ h(De, { loaderClass: "w-5 h-5", className: "!w-auto" }),
2510
+ /* @__PURE__ */ h(Ve, { loaderClass: "w-5 h-5", className: "!w-auto" }),
2481
2511
  /* @__PURE__ */ h("span", { children: t ?? n("_messages:loading.processingFile", {
2482
2512
  defaultValue: "Processing file..."
2483
2513
  }) })
@@ -2485,8 +2515,8 @@ function $r(e) {
2485
2515
  }
2486
2516
  );
2487
2517
  }
2488
- function Fr(e) {
2489
- const { items: t, max: s = 5, className: n = "" } = e, { t: i } = L();
2518
+ function Tr(e) {
2519
+ const { items: t, max: s = 5, className: n = "" } = e, { t: i } = T();
2490
2520
  if (!t || t.length === 0) return null;
2491
2521
  const r = t.slice(0, s);
2492
2522
  return /* @__PURE__ */ A("div", { className: `mt-4 ${n}`, children: [
@@ -2497,64 +2527,64 @@ function Fr(e) {
2497
2527
  /* @__PURE__ */ h("pre", { className: "mt-2 max-h-56 overflow-auto rounded bg-gray-100 p-3 text-xs", children: JSON.stringify(r, null, 2) })
2498
2528
  ] });
2499
2529
  }
2500
- const wn = (e) => {
2501
- const { t } = L(), [s, n] = H(null), [i, r] = H(null), [c, o] = H(null), [f, y] = H(!1), [b, m] = H(!1), {
2502
- children: d,
2503
- handleSubmit: w,
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), {
2532
+ children: f,
2533
+ handleSubmit: v,
2504
2534
  handleClose: C,
2505
- isLoading: v = !1,
2506
- fileProcessor: q,
2507
- onFileProcessed: oe,
2508
- onOverrideChange: S,
2509
- open: z,
2510
- ...D
2511
- } = e, [$, G] = H(0), V = Re(oe), le = Re(q);
2512
- X(() => {
2513
- V.current = oe;
2514
- }, [oe]), X(() => {
2515
- le.current = q;
2516
- }, [q]), X(() => {
2517
- z || (n(null), r(null), o(null), y(!1), m(!1), G((M) => M + 1));
2518
- }, [z]);
2519
- const B = F(async () => {
2520
- var M;
2535
+ isLoading: y = !1,
2536
+ fileProcessor: L,
2537
+ onFileProcessed: G,
2538
+ onOverrideChange: N,
2539
+ open: j,
2540
+ ...V
2541
+ } = e, [F, J] = B(0), P = Be(G), le = Be(L);
2542
+ Z(() => {
2543
+ P.current = G;
2544
+ }, [G]), Z(() => {
2545
+ le.current = L;
2546
+ }, [L]), Z(() => {
2547
+ j || (n(null), r(null), a(null), m(!1), g(!1), J((U) => U + 1));
2548
+ }, [j]);
2549
+ const H = E(async () => {
2550
+ var U;
2521
2551
  if (le.current && s) {
2522
- y(!0);
2552
+ m(!0);
2523
2553
  try {
2524
- const I = await le.current(s, {
2554
+ const M = await le.current(s, {
2525
2555
  override: b
2526
2556
  });
2527
- r(I ?? []), o(null), (M = V.current) == null || M.call(V, I ?? []);
2528
- } catch (I) {
2529
- console.error(I), r(null);
2530
- const N = I instanceof Error ? I.message : "Failed to parse file";
2531
- o(N);
2557
+ r(M ?? []), a(null), (U = P.current) == null || U.call(P, M ?? []);
2558
+ } catch (M) {
2559
+ console.error(M), r(null);
2560
+ const S = M instanceof Error ? M.message : "Failed to parse file";
2561
+ a(S);
2532
2562
  }
2533
- y(!1);
2563
+ m(!1);
2534
2564
  }
2535
2565
  }, [s, b]);
2536
- return X(() => {
2537
- B();
2538
- }, [B]), /* @__PURE__ */ A(lt, { ...D, open: z, handleClose: C, children: [
2566
+ return Z(() => {
2567
+ H();
2568
+ }, [H]), /* @__PURE__ */ A(lt, { ...V, open: j, handleClose: C, children: [
2539
2569
  /* @__PURE__ */ h(
2540
- ks,
2570
+ Ns,
2541
2571
  {
2542
2572
  onClear: () => {
2543
- var M;
2544
- n(null), r(null), o(null), y(!1), (M = V.current) == null || M.call(V, []);
2573
+ var U;
2574
+ n(null), r(null), a(null), m(!1), (U = P.current) == null || U.call(P, []);
2545
2575
  },
2546
- onChange: (M) => {
2547
- var N, E;
2548
- const I = (N = M.target.files) == null ? void 0 : N[0];
2549
- if (!I) {
2550
- n(null), r(null), o(null), y(!1), (E = V.current) == null || E.call(V, []);
2576
+ onChange: (U) => {
2577
+ var S, $;
2578
+ const M = (S = U.target.files) == null ? void 0 : S[0];
2579
+ if (!M) {
2580
+ n(null), r(null), a(null), m(!1), ($ = P.current) == null || $.call(P, []);
2551
2581
  return;
2552
2582
  }
2553
- n(I);
2583
+ n(M);
2554
2584
  },
2555
2585
  label: t("_accessibility:labels.file")
2556
2586
  },
2557
- $
2587
+ F
2558
2588
  ),
2559
2589
  /* @__PURE__ */ A("label", { className: "mt-3 flex items-center gap-2 text-sm", children: [
2560
2590
  /* @__PURE__ */ h(
@@ -2562,9 +2592,9 @@ const wn = (e) => {
2562
2592
  {
2563
2593
  type: "checkbox",
2564
2594
  checked: b,
2565
- onChange: (M) => {
2566
- const I = M.target.checked;
2567
- m(I), S == null || S(I);
2595
+ onChange: (U) => {
2596
+ const M = U.target.checked;
2597
+ g(M), N == null || N(M);
2568
2598
  }
2569
2599
  }
2570
2600
  ),
@@ -2572,20 +2602,20 @@ const wn = (e) => {
2572
2602
  defaultValue: "Override existing items"
2573
2603
  }) })
2574
2604
  ] }),
2575
- /* @__PURE__ */ h(Er, { message: c ?? void 0 }),
2576
- f && /* @__PURE__ */ h($r, {}),
2577
- !!i && i.length > 0 && /* @__PURE__ */ h(Fr, { items: i }),
2578
- d,
2605
+ /* @__PURE__ */ h(Fr, { message: c ?? void 0 }),
2606
+ d && /* @__PURE__ */ h(Lr, {}),
2607
+ !!i && i.length > 0 && /* @__PURE__ */ h(Tr, { items: i }),
2608
+ f,
2579
2609
  /* @__PURE__ */ h(
2580
2610
  ut,
2581
2611
  {
2582
2612
  primaryText: t("_accessibility:buttons.ok"),
2583
2613
  cancelText: t("_accessibility:buttons.cancel"),
2584
2614
  onPrimaryClick: () => {
2585
- (!q || !!i && i.length > 0) && w();
2615
+ (!L || !!i && i.length > 0) && v();
2586
2616
  },
2587
2617
  onCancel: C,
2588
- isLoading: v,
2618
+ isLoading: y,
2589
2619
  primaryType: "button",
2590
2620
  containerClassName: "mt-5",
2591
2621
  primaryName: t("_accessibility:buttons.ok"),
@@ -2596,71 +2626,91 @@ const wn = (e) => {
2596
2626
  )
2597
2627
  ] });
2598
2628
  };
2599
- function vn(e) {
2600
- const { t } = L(), { open: s, onClose: n, menuMap: i, logo: r } = e, { account: c } = Jt(), { linkComponent: o } = ze(), f = o, y = Ve(() => i.filter((m) => {
2601
- const d = m.auth, w = !!(c != null && c.email);
2602
- return d == null || d && w || !d && !w;
2603
- }), [c]), b = F(
2604
- (m) => {
2605
- m.key === "Escape" && s && n();
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) => {
2631
+ const L = y.auth, G = !!(c != null && c.email);
2632
+ return L == null || L && G || !L && !G;
2633
+ }), [c == null ? void 0 : c.email, i]), g = E(
2634
+ (y) => {
2635
+ y.key === "Escape" && s && n();
2606
2636
  },
2607
2637
  [n, s]
2608
2638
  );
2609
- return X(() => (document.addEventListener("keydown", b), () => {
2610
- document.removeEventListener("keydown", b);
2611
- }), [b]), /* @__PURE__ */ h(
2639
+ Z(() => (document.addEventListener("keydown", g), () => {
2640
+ document.removeEventListener("keydown", g);
2641
+ }), [g]);
2642
+ const f = E(
2643
+ (y, L) => L ? y === `${location.pathname}${location.search}` : y === location.pathname,
2644
+ []
2645
+ ), v = E(
2646
+ (y) => /* @__PURE__ */ h(
2647
+ "li",
2648
+ {
2649
+ className: `drawer-list-item-child ${f(y.path, !0) ? "active" : ""} animated`,
2650
+ children: y.path ? /* @__PURE__ */ h(
2651
+ m,
2652
+ {
2653
+ "aria-disabled": !s,
2654
+ to: y.path ?? "/",
2655
+ "aria-label": t(`_accessibility:ariaLabels.${y.path}`),
2656
+ className: "drawer-link",
2657
+ children: y.label
2658
+ }
2659
+ ) : y.label
2660
+ },
2661
+ y.id
2662
+ ),
2663
+ [m, s, t, f]
2664
+ ), C = Ne(() => b.map((y, L) => {
2665
+ const G = y.page ?? String(L), N = `drawer-list-item ${f(y.path) ? "active" : ""} animated`;
2666
+ if (y.type === "divider")
2667
+ return /* @__PURE__ */ h("li", { className: N, children: /* @__PURE__ */ h("hr", { className: "drawer-divider" }) }, G);
2668
+ const j = y.children ?? (y.page && a ? a[y.page] : null);
2669
+ return /* @__PURE__ */ A("li", { className: N, children: [
2670
+ /* @__PURE__ */ A(
2671
+ m,
2672
+ {
2673
+ "aria-disabled": !s,
2674
+ to: y.path ?? "/",
2675
+ "aria-label": t(`_accessibility:ariaLabels.${y.path}`),
2676
+ className: "drawer-link",
2677
+ children: [
2678
+ y.icon,
2679
+ t(`_pages:${y.page}.title`)
2680
+ ]
2681
+ }
2682
+ ),
2683
+ j && /* @__PURE__ */ h("ul", { className: "drawer-children-list", children: j.map(v) })
2684
+ ] }, G);
2685
+ }), [m, a, f, s, b, v, t]);
2686
+ return /* @__PURE__ */ h(
2612
2687
  "div",
2613
2688
  {
2614
2689
  "aria-label": t("_accessibility:ariaLabels.closeMenu"),
2615
2690
  "aria-disabled": !s,
2616
2691
  className: `${s ? "opened" : "closed"} drawer-backdrop`,
2617
2692
  onClick: () => n(),
2618
- children: /* @__PURE__ */ A(
2619
- "aside",
2620
- {
2621
- className: `${s ? "opened" : "closed"} drawer animated`,
2622
- children: [
2623
- /* @__PURE__ */ A("div", { className: "drawer-header-container", children: [
2624
- r,
2625
- /* @__PURE__ */ h("h2", { className: "drawer-header poppins", children: t("_pages:home.appName") })
2626
- ] }),
2627
- /* @__PURE__ */ h("ul", { className: "flex flex-col", children: y.map((m, d) => /* @__PURE__ */ h(
2628
- "li",
2629
- {
2630
- className: `drawer-list-item ${m.path === location.pathname ? "active" : ""} animated`,
2631
- children: m.type !== "divider" && f ? /* @__PURE__ */ A(
2632
- f,
2633
- {
2634
- "aria-disabled": !s,
2635
- to: m.path ?? `/${m.path}`,
2636
- "aria-label": t(`_accessibility:ariaLabels.${m.path}`),
2637
- className: "drawer-link",
2638
- children: [
2639
- m.icon,
2640
- t(`_pages:${m.page}.title`)
2641
- ]
2642
- }
2643
- ) : /* @__PURE__ */ h("hr", { className: "drawer-divider" })
2644
- },
2645
- `${m.page ?? d}`
2646
- )) })
2647
- ]
2648
- }
2649
- )
2693
+ children: /* @__PURE__ */ A("aside", { className: `${s ? "opened" : "closed"} drawer animated`, children: [
2694
+ /* @__PURE__ */ A("div", { className: "drawer-header-container", children: [
2695
+ r,
2696
+ /* @__PURE__ */ h("h2", { className: "drawer-header poppins", children: t("_pages:home.appName") })
2697
+ ] }),
2698
+ /* @__PURE__ */ h("ul", { className: "flex flex-col", children: C })
2699
+ ] })
2650
2700
  }
2651
2701
  );
2652
2702
  }
2653
- function xn(e) {
2654
- const { error: t } = e, { t: s } = L();
2703
+ function kn(e) {
2704
+ const { error: t } = e, { t: s } = T();
2655
2705
  return /* @__PURE__ */ A("div", { className: "flex flex-col items-center justify-center pt-10 gap-5", children: [
2656
- /* @__PURE__ */ h(ce, { icon: Qs, className: "text-red-300 text-4xl" }),
2706
+ /* @__PURE__ */ h(ce, { icon: Ws, className: "text-red-300 text-4xl" }),
2657
2707
  /* @__PURE__ */ h("p", { className: "text-text text-center", children: (t == null ? void 0 : t.message) ?? s("_accessibility:errors.unknownError") })
2658
2708
  ] });
2659
2709
  }
2660
- const Lr = (e) => {
2661
- const { showBackButton: t, title: s, actions: n } = e, { t: i } = L(), { navigate: r } = ze();
2710
+ const Dr = (e) => {
2711
+ const { showBackButton: t, title: s, actions: n } = e, { t: i } = T(), { navigate: r } = ze();
2662
2712
  return /* @__PURE__ */ A("div", { className: "page-header", children: [
2663
- /* @__PURE__ */ A("div", { className: "flex gap-2 items-center justify-start", children: [
2713
+ /* @__PURE__ */ A("div", { className: "page-header-left", children: [
2664
2714
  t && /* @__PURE__ */ h(
2665
2715
  be,
2666
2716
  {
@@ -2671,14 +2721,14 @@ const Lr = (e) => {
2671
2721
  "data-tooltip-content": i("_accessibility:buttons.back")
2672
2722
  }
2673
2723
  ),
2674
- /* @__PURE__ */ h("h2", { className: "text-3xl font-bold", children: s })
2724
+ /* @__PURE__ */ h("h2", { className: "page-header-title", children: s })
2675
2725
  ] }),
2676
2726
  /* @__PURE__ */ A("div", { children: [
2677
2727
  /* @__PURE__ */ h(jt, { className: "max-xs:!hidden", actions: n ?? [] }),
2678
- /* @__PURE__ */ h(Ar, { className: "min-xs:hidden", actions: n ?? [] })
2728
+ /* @__PURE__ */ h($r, { className: "min-xs:hidden", actions: n ?? [] })
2679
2729
  ] })
2680
2730
  ] });
2681
- }, _n = (e) => {
2731
+ }, Nn = (e) => {
2682
2732
  const {
2683
2733
  title: t,
2684
2734
  children: s,
@@ -2686,11 +2736,11 @@ const Lr = (e) => {
2686
2736
  filterOptions: i,
2687
2737
  actions: r,
2688
2738
  queryKey: c,
2689
- isLoading: o = !1,
2690
- isAnimated: f = !0,
2691
- showBackButton: y = !1
2692
- } = e, { t: b } = L(), { countOfFilters: m } = Ss(), d = Ve(() => {
2693
- const w = Array.isArray(r) ? [...r] : [];
2739
+ isLoading: a = !1,
2740
+ isAnimated: d = !0,
2741
+ showBackButton: m = !1
2742
+ } = e, { t: b } = T(), { countOfFilters: g } = Ss(), f = Ne(() => {
2743
+ const v = Array.isArray(r) ? [...r] : [];
2694
2744
  if (c) {
2695
2745
  const C = {
2696
2746
  id: _e.Refresh,
@@ -2698,7 +2748,7 @@ const Lr = (e) => {
2698
2748
  icon: /* @__PURE__ */ h(ce, { icon: Mt }),
2699
2749
  tooltip: b("_pages:common.actions.refresh.text")
2700
2750
  };
2701
- w.unshift(C);
2751
+ v.unshift(C);
2702
2752
  }
2703
2753
  if (n) {
2704
2754
  const C = {
@@ -2706,86 +2756,78 @@ const Lr = (e) => {
2706
2756
  id: _e.Add,
2707
2757
  icon: /* @__PURE__ */ h(ce, { icon: vt })
2708
2758
  };
2709
- w.unshift(C);
2759
+ v.unshift(C);
2710
2760
  }
2711
2761
  if (i) {
2712
2762
  const C = {
2713
2763
  ...i,
2714
2764
  id: "filter",
2715
- icon: /* @__PURE__ */ h(ce, { icon: Is }),
2765
+ icon: /* @__PURE__ */ h(ce, { icon: Ms }),
2716
2766
  children: /* @__PURE__ */ h(
2717
- Ns,
2767
+ As,
2718
2768
  {
2719
- className: `${m > 0 ? "show" : "hide"} `,
2720
- count: m
2769
+ className: `${g > 0 ? "show" : "hide"} `,
2770
+ count: g
2721
2771
  }
2722
2772
  )
2723
2773
  };
2724
- w.push(C);
2774
+ v.push(C);
2725
2775
  }
2726
- return w;
2727
- }, [r, n, m, i, c, b]);
2728
- return /* @__PURE__ */ A("main", { className: "", children: [
2729
- /* @__PURE__ */ A("div", { className: "flex flex-col", children: [
2730
- /* @__PURE__ */ h(
2731
- Lr,
2732
- {
2733
- showBackButton: y,
2734
- actions: d,
2735
- title: t
2736
- }
2737
- ),
2738
- /* @__PURE__ */ h(
2739
- "div",
2740
- {
2741
- className: `px-5 py-3 h-useConfigfull ${f ? "appear" : ""}`,
2742
- children: o ? /* @__PURE__ */ h(De, { className: "flex justify-center items-center h-50" }) : s
2743
- }
2744
- )
2745
- ] }),
2776
+ return v;
2777
+ }, [r, n, g, i, c, b]);
2778
+ return /* @__PURE__ */ A("main", { className: "page-main", children: [
2746
2779
  /* @__PURE__ */ h(
2780
+ Dr,
2781
+ {
2782
+ showBackButton: m,
2783
+ actions: f,
2784
+ title: t
2785
+ }
2786
+ ),
2787
+ /* @__PURE__ */ h("div", { className: `page-main-content ${d ? "appear" : ""}`, children: a ? /* @__PURE__ */ h(Ve, { className: "page-loading" }) : s }),
2788
+ n && /* @__PURE__ */ h(
2747
2789
  be,
2748
2790
  {
2749
- icon: vt,
2750
- color: "primary",
2751
- variant: "submit",
2791
+ icon: n.icon ?? vt,
2792
+ color: n.color ?? "primary",
2793
+ variant: n.variant ?? "submit",
2752
2794
  onClick: () => {
2753
- var w;
2754
- return (w = n == null ? void 0 : n.onClick) == null ? void 0 : w.call(n);
2795
+ var v;
2796
+ return (v = n.onClick) == null ? void 0 : v.call(n);
2755
2797
  },
2756
- className: "button fab min-xs:!hidden"
2798
+ className: `button fab min-xs:!hidden ${n.className ?? ""}`
2757
2799
  }
2758
2800
  )
2759
2801
  ] });
2760
- }, Cn = (e) => {
2761
- const { t } = L(), {
2802
+ }, Sn = (e) => {
2803
+ const { t } = T(), {
2762
2804
  loading: s = !1,
2763
2805
  emptyComponent: n = null,
2764
2806
  emptyMessage: i = t("_accessibility:messages.empty"),
2765
2807
  renderComponent: r,
2766
2808
  data: c = []
2767
2809
  } = e;
2768
- return /* @__PURE__ */ h(Te, { children: c != null && c.length ? /* @__PURE__ */ h("ul", { className: "pretty-grid-main", children: c == null ? void 0 : c.map((o) => /* @__PURE__ */ h("li", { className: "pretty-grid-item", children: r(o) }, o.id)) }) : /* @__PURE__ */ h(Te, { children: n || /* @__PURE__ */ h(Or, { message: i }) }) });
2769
- }, Tr = () => {
2770
- const [e, t] = H(kt());
2771
- return X(() => {
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 }) }) });
2811
+ }, Vr = () => {
2812
+ const [e, t] = B(kt());
2813
+ return Z(() => {
2772
2814
  const s = setInterval(() => {
2773
2815
  t(kt());
2774
2816
  }, 1e3);
2775
2817
  return () => clearInterval(s);
2776
2818
  }, []), /* @__PURE__ */ h("p", { className: "capitalize max-xs:hidden", children: e });
2777
2819
  };
2778
- function kn(e) {
2779
- const { t } = L(), { openDrawer: s } = e, { searchComponent: n } = ze(), [i, r] = H(!1), c = F((f) => {
2780
- (Xs() ? f.metaKey : f.ctrlKey) && f.shiftKey && f.key.toLowerCase() === "f" && (r(!0), f.preventDefault());
2820
+ 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());
2781
2823
  }, []);
2782
- X(() => (window.addEventListener("keydown", c), () => {
2824
+ Z(() => (window.addEventListener("keydown", c), () => {
2783
2825
  window.removeEventListener("keydown", c);
2784
2826
  }), [c]);
2785
- const o = n;
2786
- return /* @__PURE__ */ A(Te, { children: [
2787
- location.pathname !== "/" && !!o && /* @__PURE__ */ h(
2788
- o,
2827
+ const a = n;
2828
+ return /* @__PURE__ */ A(De, { children: [
2829
+ location.pathname !== "/" && !!a && /* @__PURE__ */ h(
2830
+ a,
2789
2831
  {
2790
2832
  open: i,
2791
2833
  onClose: () => r(!1)
@@ -2797,7 +2839,7 @@ function kn(e) {
2797
2839
  be,
2798
2840
  {
2799
2841
  type: "button",
2800
- icon: Ms,
2842
+ icon: Us,
2801
2843
  onClick: s,
2802
2844
  name: t("_accessibility:buttons.openMenu"),
2803
2845
  "aria-label": t("_accessibility:ariaLabels.openMenu"),
@@ -2810,106 +2852,106 @@ function kn(e) {
2810
2852
  /* @__PURE__ */ h(
2811
2853
  be,
2812
2854
  {
2813
- icon: Us,
2855
+ icon: Rs,
2814
2856
  className: "min-xs:!hidden",
2815
2857
  onClick: () => r(!0)
2816
2858
  }
2817
2859
  ),
2818
- /* @__PURE__ */ h(Tr, {})
2860
+ /* @__PURE__ */ h(Vr, {})
2819
2861
  ] })
2820
2862
  ] })
2821
2863
  ] });
2822
2864
  }
2823
- function Sn() {
2824
- const { t: e } = L(), { notification: t, removeNotification: s } = Se(), [n, i] = H(/* @__PURE__ */ new Set()), r = F(
2825
- (m) => {
2826
- if (m === void 0) {
2827
- const d = new Set(t.map((w, C) => C));
2828
- i(d), window.setTimeout(() => s(), 300);
2865
+ function En() {
2866
+ const { t: e } = T(), { notification: t, removeNotification: s } = Se(), [n, i] = B(/* @__PURE__ */ new Set()), r = E(
2867
+ (g) => {
2868
+ if (g === void 0) {
2869
+ const f = new Set(t.map((v, C) => C));
2870
+ i(f), window.setTimeout(() => s(), 300);
2829
2871
  } else
2830
- i((d) => new Set(d).add(m)), window.setTimeout(() => s(m), 300);
2872
+ i((f) => new Set(f).add(g)), window.setTimeout(() => s(g), 300);
2831
2873
  },
2832
2874
  [t, s]
2833
- ), c = F((m) => {
2834
- switch (m) {
2835
- case j.error:
2836
- return qs;
2875
+ ), c = E((g) => {
2876
+ switch (g) {
2877
+ case K.error:
2878
+ return Bs;
2837
2879
  default:
2838
- return Rs;
2880
+ return qs;
2839
2881
  }
2840
- }, []), o = F((m) => {
2841
- switch (m) {
2842
- case j.success:
2882
+ }, []), a = E((g) => {
2883
+ switch (g) {
2884
+ case K.success:
2843
2885
  return "!text-success";
2844
- case j.error:
2886
+ case K.error:
2845
2887
  return "!text-error";
2846
- case j.warning:
2888
+ case K.warning:
2847
2889
  return "!text-warning";
2848
2890
  default:
2849
2891
  return "!text-info";
2850
2892
  }
2851
- }, []), f = F((m) => {
2852
- switch (m) {
2853
- case j.success:
2893
+ }, []), d = E((g) => {
2894
+ switch (g) {
2895
+ case K.success:
2854
2896
  return "bg-bg-success";
2855
- case j.error:
2897
+ case K.error:
2856
2898
  return "bg-bg-error";
2857
- case j.warning:
2899
+ case K.warning:
2858
2900
  return "bg-bg-warning";
2859
2901
  default:
2860
2902
  return "bg-bg-info";
2861
2903
  }
2862
- }, []), y = Re();
2863
- X(() => {
2864
- y.current = () => r();
2865
- }, [r]), X(() => {
2904
+ }, []), m = Be();
2905
+ Z(() => {
2906
+ m.current = () => r();
2907
+ }, [r]), Z(() => {
2866
2908
  if (!(t != null && t.length)) return;
2867
- const m = (d) => {
2868
- var w;
2869
- return (w = y.current) == null ? void 0 : w.call(y, d);
2909
+ const g = (f) => {
2910
+ var v;
2911
+ return (v = m.current) == null ? void 0 : v.call(m, f);
2870
2912
  };
2871
- return window.addEventListener("click", m), () => {
2872
- window.removeEventListener("click", m);
2913
+ return window.addEventListener("click", g), () => {
2914
+ window.removeEventListener("click", g);
2873
2915
  };
2874
2916
  }, [t == null ? void 0 : t.length]);
2875
- const b = F(
2876
- (m) => {
2877
- m.key === "Escape" && t.length && r();
2917
+ const b = E(
2918
+ (g) => {
2919
+ g.key === "Escape" && t.length && r();
2878
2920
  },
2879
2921
  [t, r]
2880
2922
  );
2881
- return X(() => (window.addEventListener("keydown", b), () => {
2923
+ return Z(() => (window.addEventListener("keydown", b), () => {
2882
2924
  window.removeEventListener("keydown", b);
2883
- }), [b]), X(() => {
2925
+ }), [b]), Z(() => {
2884
2926
  i(/* @__PURE__ */ new Set());
2885
2927
  }, [t]), qt(
2886
2928
  /* @__PURE__ */ h(
2887
2929
  "div",
2888
2930
  {
2889
2931
  className: `notification-portal ${t != null && t.length ? "w-screen h-screen" : ""}`,
2890
- children: t != null && t.length ? t == null ? void 0 : t.map(({ id: m, type: d, message: w }, C) => /* @__PURE__ */ A(
2932
+ children: t != null && t.length ? t == null ? void 0 : t.map(({ id: g, type: f, message: v }, C) => /* @__PURE__ */ A(
2891
2933
  "div",
2892
2934
  {
2893
- className: `notification ${n.has(C) ? "closing" : ""} ${f(
2894
- d ?? j.error
2935
+ className: `notification ${n.has(C) ? "closing" : ""} ${d(
2936
+ f ?? K.error
2895
2937
  )}`,
2896
- onClick: (v) => v.stopPropagation(),
2938
+ onClick: (y) => y.stopPropagation(),
2897
2939
  children: [
2898
2940
  /* @__PURE__ */ A("div", { className: "flex gap-3 items-center", children: [
2899
2941
  /* @__PURE__ */ h(
2900
2942
  ce,
2901
2943
  {
2902
- icon: c(d ?? j.error),
2903
- className: `${o(d ?? j.error)}`
2944
+ icon: c(f ?? K.error),
2945
+ className: `${a(f ?? K.error)}`
2904
2946
  }
2905
2947
  ),
2906
2948
  /* @__PURE__ */ h(
2907
2949
  "p",
2908
2950
  {
2909
- className: `whitespace-nowrap ${o(
2910
- d ?? j.error
2951
+ className: `whitespace-nowrap ${a(
2952
+ f ?? K.error
2911
2953
  )}`,
2912
- children: w
2954
+ children: v
2913
2955
  }
2914
2956
  )
2915
2957
  ] }),
@@ -2920,11 +2962,11 @@ function Sn() {
2920
2962
  icon: Rt,
2921
2963
  color: "error",
2922
2964
  className: "group",
2923
- onClick: (v) => {
2924
- v.stopPropagation(), r(C);
2965
+ onClick: (y) => {
2966
+ y.stopPropagation(), r(C);
2925
2967
  },
2926
- iconClassName: `${o(
2927
- d ?? j.error
2968
+ iconClassName: `${a(
2969
+ f ?? K.error
2928
2970
  )} group-hover:!text-red-400 cursor-pointer`,
2929
2971
  name: e("_accessibility:buttons.closeNotification"),
2930
2972
  "aria-label": e("_accessibility:ariaLabels.closeNotification")
@@ -2932,17 +2974,17 @@ function Sn() {
2932
2974
  )
2933
2975
  ]
2934
2976
  },
2935
- m
2977
+ g
2936
2978
  )) : null
2937
2979
  }
2938
2980
  ),
2939
2981
  document.body
2940
2982
  );
2941
2983
  }
2942
- function Nn() {
2943
- return /* @__PURE__ */ h("div", { className: "w-screen h-screen flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ h(De, { className: "blur-appear" }) });
2984
+ function $n() {
2985
+ return /* @__PURE__ */ h("div", { className: "w-screen h-screen flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ h(Ve, { className: "blur-appear" }) });
2944
2986
  }
2945
- const Dr = (e) => {
2987
+ const Pr = (e) => {
2946
2988
  const { id: t, active: s, onClick: n, children: i, to: r } = e, { linkComponent: c } = ze();
2947
2989
  return /* @__PURE__ */ h(
2948
2990
  c,
@@ -2953,49 +2995,49 @@ const Dr = (e) => {
2953
2995
  children: i
2954
2996
  }
2955
2997
  );
2956
- }, Vr = (e) => {
2957
- var f;
2998
+ }, Ir = (e) => {
2999
+ var d;
2958
3000
  const {
2959
3001
  tabs: t = [],
2960
3002
  defaultTab: s,
2961
3003
  className: n = "",
2962
3004
  tabsContainerClassName: i = ""
2963
- } = e, [r, c] = H((f = t[0]) == null ? void 0 : f.id), o = Ve(() => t.find((y) => y.id === r), [t, r]);
2964
- return X(() => {
3005
+ } = e, [r, c] = B((d = t[0]) == null ? void 0 : d.id), a = Ne(() => t.find((m) => m.id === r), [t, r]);
3006
+ return Z(() => {
2965
3007
  s && c(s);
2966
3008
  }, [s]), /* @__PURE__ */ A("div", { className: `tabs-layout-main ${n}`, children: [
2967
3009
  /* @__PURE__ */ h(
2968
3010
  "ul",
2969
3011
  {
2970
3012
  className: `horizontal tabs tabs-container ${i}`,
2971
- children: t.map(({ id: y, to: b, label: m }) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
2972
- Dr,
3013
+ children: t.map(({ id: m, to: b, label: g }) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
3014
+ Pr,
2973
3015
  {
2974
- onClick: () => c(y),
2975
- id: y,
3016
+ onClick: () => c(m),
3017
+ id: m,
2976
3018
  to: b ?? "",
2977
3019
  siblings: t.length > 1,
2978
- active: r === y,
2979
- children: m
3020
+ active: r === m,
3021
+ children: g
2980
3022
  }
2981
- ) }, y))
3023
+ ) }, m))
2982
3024
  }
2983
3025
  ),
2984
- o == null ? void 0 : o.content
3026
+ a == null ? void 0 : a.content
2985
3027
  ] });
2986
- }, Pr = (e) => {
3028
+ }, Or = (e) => {
2987
3029
  const {
2988
3030
  translation: t,
2989
3031
  onClickNext: s,
2990
3032
  image: n = "",
2991
3033
  alt: i = "",
2992
3034
  final: r = !1
2993
- } = e, { setGuestMode: c } = Jt(), { t: o } = L();
3035
+ } = e, { setGuestMode: c } = Jt(), { t: a } = T();
2994
3036
  return /* @__PURE__ */ A("div", { className: "big-appear w-md flex flex-col gap-20", children: [
2995
3037
  /* @__PURE__ */ h("img", { src: n, alt: i }),
2996
- /* @__PURE__ */ h("h2", { className: "text-5xl text-center leading-16", children: o(`_pages:onboarding.${t}.title`) }),
2997
- /* @__PURE__ */ h("p", { className: "text-center !text-lg", children: o(`_pages:onboarding.${t}.body`) }),
2998
- /* @__PURE__ */ h("div", { className: "flex gap-5 items-center justify-center", children: r ? /* @__PURE__ */ A(Te, { children: [
3038
+ /* @__PURE__ */ h("h2", { className: "text-5xl text-center leading-16", children: a(`_pages:onboarding.${t}.title`) }),
3039
+ /* @__PURE__ */ h("p", { className: "text-center !text-lg", children: a(`_pages:onboarding.${t}.body`) }),
3040
+ /* @__PURE__ */ h("div", { className: "flex gap-5 items-center justify-center", children: r ? /* @__PURE__ */ A(De, { children: [
2999
3041
  /* @__PURE__ */ h(
3000
3042
  xe,
3001
3043
  {
@@ -3005,8 +3047,8 @@ const Dr = (e) => {
3005
3047
  onClick: () => {
3006
3048
  c(!0), window.location.href = "/";
3007
3049
  },
3008
- "aria-label": o("_accessibility:ariaLabels.start"),
3009
- children: o("_accessibility:buttons.startAsGuest")
3050
+ "aria-label": a("_accessibility:ariaLabels.start"),
3051
+ children: a("_accessibility:buttons.startAsGuest")
3010
3052
  }
3011
3053
  ),
3012
3054
  /* @__PURE__ */ h(
@@ -3015,12 +3057,12 @@ const Dr = (e) => {
3015
3057
  color: "primary",
3016
3058
  variant: "submit",
3017
3059
  className: "!px-8",
3018
- "aria-label": o("_accessibility:ariaLabels.start"),
3060
+ "aria-label": a("_accessibility:ariaLabels.start"),
3019
3061
  onClick: () => window.location.href = "/auth/sign-in",
3020
- children: o("_accessibility:buttons.signIn")
3062
+ children: a("_accessibility:buttons.signIn")
3021
3063
  }
3022
3064
  )
3023
- ] }) : /* @__PURE__ */ A(Te, { children: [
3065
+ ] }) : /* @__PURE__ */ A(De, { children: [
3024
3066
  /* @__PURE__ */ h(
3025
3067
  xe,
3026
3068
  {
@@ -3028,8 +3070,8 @@ const Dr = (e) => {
3028
3070
  className: "!px-8",
3029
3071
  variant: "outlined",
3030
3072
  onClick: () => window.location.href = "/auth/sign-in",
3031
- "aria-label": o("_accessibility:ariaLabels.skip"),
3032
- children: o("_accessibility:buttons.skip")
3073
+ "aria-label": a("_accessibility:ariaLabels.skip"),
3074
+ children: a("_accessibility:buttons.skip")
3033
3075
  }
3034
3076
  ),
3035
3077
  /* @__PURE__ */ h(
@@ -3039,18 +3081,18 @@ const Dr = (e) => {
3039
3081
  className: "!px-8",
3040
3082
  variant: "outlined",
3041
3083
  onClick: () => s(),
3042
- "aria-label": o("_accessibility:ariaLabels.next"),
3043
- children: o("_accessibility:buttons.next")
3084
+ "aria-label": a("_accessibility:ariaLabels.next"),
3085
+ children: a("_accessibility:buttons.next")
3044
3086
  }
3045
3087
  )
3046
3088
  ] }) })
3047
3089
  ] });
3048
- }, An = (e) => {
3049
- const { steps: t } = e, [s, n] = H(1), i = Ve(() => t.map((r, c) => ({
3090
+ }, Fn = (e) => {
3091
+ const { steps: t } = e, [s, n] = B(1), i = Ne(() => t.map((r, c) => ({
3050
3092
  id: c + 1,
3051
3093
  label: "",
3052
3094
  content: /* @__PURE__ */ h(
3053
- Pr,
3095
+ Or,
3054
3096
  {
3055
3097
  translation: r,
3056
3098
  final: c === t.length - 1,
@@ -3058,8 +3100,8 @@ const Dr = (e) => {
3058
3100
  }
3059
3101
  )
3060
3102
  })), [s]);
3061
- return /* @__PURE__ */ h("div", { className: "onboarding-main", children: /* @__PURE__ */ h(Vr, { defaultTab: s, tabs: i }) });
3062
- }, Or = (e) => {
3103
+ return /* @__PURE__ */ h("div", { className: "onboarding-main", children: /* @__PURE__ */ h(Ir, { defaultTab: s, tabs: i }) });
3104
+ }, Mr = (e) => {
3063
3105
  const {
3064
3106
  message: t,
3065
3107
  messageProps: s = { className: "text-gray-400 text-balance text-center" },
@@ -3076,72 +3118,75 @@ export {
3076
3118
  Kt as APIClient,
3077
3119
  Bt as Action,
3078
3120
  jt as Actions,
3079
- Ar as ActionsDropdown,
3080
- Ys as AuthClient,
3081
- rn as AuthProvider,
3082
- Yr as BaseClient,
3121
+ $r as ActionsDropdown,
3122
+ Xs as AuthClient,
3123
+ an as AuthProvider,
3124
+ Zr as BaseClient,
3083
3125
  xe as Button,
3084
- nn as ConfigProvider,
3085
- pn as ConfirmationDialog,
3126
+ on as ConfigProvider,
3127
+ xn as ConfirmationDialog,
3086
3128
  lt as Dialog,
3087
3129
  ut as DialogActions,
3088
- vn as Drawer,
3089
- Ws as Dropdown,
3090
- Or as Empty,
3091
- xn as Error,
3092
- yn as FormContainer,
3093
- bn as FormDialog,
3130
+ Cn as Drawer,
3131
+ Xt as DrawerMenuContext,
3132
+ cn as DrawerMenuProvider,
3133
+ zs as Dropdown,
3134
+ Mr as Empty,
3135
+ kn as Error,
3136
+ pn as FormContainer,
3137
+ vn as FormDialog,
3094
3138
  _e as GlobalActions,
3095
- Jr as IManager,
3139
+ Xr as IManager,
3096
3140
  be as IconButton,
3097
- wn as ImportDialog,
3098
- sn as ManagerProvider,
3099
- re as Methods,
3100
- kn as Navbar,
3101
- Sn as Notification,
3102
- j as NotificationEnumType,
3103
- tn as NotificationProvider,
3104
- An as Onboarding,
3105
- _n as Page,
3106
- hn as ParagraphInput,
3107
- gn as PasswordInput,
3108
- Cn as PrettyGrid,
3109
- Nn as SplashScreen,
3110
- Pr as Step,
3111
- Dr as Tab,
3112
- Vr as TabsLayout,
3113
- mn as ToTop,
3114
- Js as buildQueryUrl,
3115
- Xr as enumToKeyValueArray,
3116
- Zr as formatForDatetimeLocal,
3141
+ _n as ImportDialog,
3142
+ nn as ManagerProvider,
3143
+ ne as Methods,
3144
+ An as Navbar,
3145
+ En as Notification,
3146
+ K as NotificationEnumType,
3147
+ rn as NotificationProvider,
3148
+ Fn as Onboarding,
3149
+ Nn as Page,
3150
+ bn as ParagraphInput,
3151
+ wn as PasswordInput,
3152
+ Sn as PrettyGrid,
3153
+ $n as SplashScreen,
3154
+ Or as Step,
3155
+ Pr as Tab,
3156
+ Ir as TabsLayout,
3157
+ gn as ToTop,
3158
+ Ys as buildQueryUrl,
3159
+ en as enumToKeyValueArray,
3160
+ tn as formatForDatetimeLocal,
3117
3161
  Qt as fromLocal,
3118
3162
  kt as getFormattedDateTime,
3119
3163
  We as isHttpError,
3120
- Xs as isMac,
3164
+ Zs as isMac,
3121
3165
  Qe as isValidationError,
3122
- Ae as makeRequest,
3123
- en as mapValidationErrors,
3166
+ Ee as makeRequest,
3167
+ sn as mapValidationErrors,
3124
3168
  Ht as parseQueries,
3125
3169
  pe as queryClient,
3126
3170
  Ct as removeFromLocal,
3127
3171
  _t as toLocal,
3128
3172
  Jt as useAuth,
3129
3173
  ze as useConfig,
3130
- Xt as useConfirmationForm,
3131
- _r as useDeleteAction,
3132
- cn as useDeleteDialog,
3133
- as as useDialog,
3134
- an as useEditAction,
3135
- kr as useExportAction,
3136
- fn as useExportActionMutate,
3137
- ln as useFormDialog,
3138
- Sr as useImportAction,
3139
- dn as useImportDialog,
3140
- Zs as useManager,
3174
+ Zt as useConfirmationForm,
3175
+ kr as useDeleteAction,
3176
+ dn as useDeleteDialog,
3177
+ cs as useDialog,
3178
+ tr as useDrawerMenu,
3179
+ un as useEditAction,
3180
+ Sr as useExportAction,
3181
+ yn as useExportActionMutate,
3182
+ fn as useFormDialog,
3183
+ Ar as useImportAction,
3184
+ hn as useImportDialog,
3185
+ er as useManager,
3141
3186
  Se as useNotification,
3142
- on as usePostForm,
3143
- Cr as useRestoreAction,
3144
- un as useRestoreDialog,
3145
- Nr as useScrollTrigger,
3146
- Gr as useTimeAge
3187
+ ln as usePostForm,
3188
+ Nr as useRestoreAction,
3189
+ mn as useRestoreDialog,
3190
+ Er as useScrollTrigger,
3191
+ Yr as useTimeAge
3147
3192
  };