affiliate-front-shared 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import * as H from "react";
6
6
  import qt, { createContext as Jt, useContext as ct, useEffect as Y, useState as j, useRef as Xe, useMemo as we } from "react";
7
7
  import { Menu as Qt, DatePicker as Xt, Table as dt, Dropdown as $e, Select as pt, Input as et, Modal as er, Button as Oe, notification as kt, Form as Ce, Checkbox as Er, Skeleton as Ir, Pagination as Tr, Breadcrumb as zr, Spin as tr, Empty as rr, Tabs as Mr } from "antd";
8
8
  import m, { keyframes as Pr } from "styled-components";
9
- import { useNavigate as Ee, useLocation as Fe, useSearchParams as Hr, UNSAFE_NavigationContext as Rr } from "react-router";
9
+ import { useNavigate as Ee, useLocation as Ve, useSearchParams as Hr, UNSAFE_NavigationContext as Rr } from "react-router";
10
10
  import { create as nr, useStore as Nr } from "zustand";
11
11
  import { useTranslation as Fr, initReactI18next as Vr } from "react-i18next";
12
12
  import * as Ar from "echarts";
@@ -22,7 +22,7 @@ function oo({
22
22
  }) {
23
23
  return /* @__PURE__ */ l(ir.Provider, { value: n, children: e });
24
24
  }
25
- function Ve() {
25
+ function Ie() {
26
26
  return ct(ir);
27
27
  }
28
28
  let he = (n) => n;
@@ -154,8 +154,8 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
154
154
  var p;
155
155
  try {
156
156
  s(!0), r(null);
157
- const h = await n();
158
- r(h), (p = h == null ? void 0 : h.data) != null && p.items && a(h.data.items);
157
+ const g = await n();
158
+ r(g), (p = g == null ? void 0 : g.data) != null && p.items && a(g.data.items);
159
159
  } catch {
160
160
  c("Failed to fetch data");
161
161
  } finally {
@@ -171,7 +171,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
171
171
  fetchData: u,
172
172
  listItems: i
173
173
  };
174
- }, Ie = nr((n, e) => ({
174
+ }, Te = nr((n, e) => ({
175
175
  user: localStorage.getItem("userData") ? JSON.parse(localStorage.getItem("userData")) : null,
176
176
  prefersDark: !1,
177
177
  storedThemeMode: null,
@@ -204,7 +204,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
204
204
  const r = e().user;
205
205
  return r != null && r.permissions ? !!r.permissions[t] : !1;
206
206
  }
207
- })), Pe = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.createElement("path", { d: "M13.4715 5.13812L12.5286 4.19531L7.00005 9.72391L4.13812 6.86198L3.19531 7.80479L7.00005 11.6095L13.4715 5.13812Z", fill: "currentColor" })), Jr = m(Pe)`
207
+ })), He = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.createElement("path", { d: "M13.4715 5.13812L12.5286 4.19531L7.00005 9.72391L4.13812 6.86198L3.19531 7.80479L7.00005 11.6095L13.4715 5.13812Z", fill: "currentColor" })), Jr = m(He)`
208
208
  display: flex;
209
209
  justify-content: center;
210
210
  color: var(--color-text-primary, #131412) !important;
@@ -272,7 +272,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
272
272
  position: absolute !important;
273
273
  z-index: 10000;
274
274
  `, tn = ({ closeProfileDropdown: n }) => {
275
- const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ve(), { storedThemeMode: i, logout: a, setThemeMode: o, user: s } = Ie(), { i18n: d } = Fr();
275
+ const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ie(), { storedThemeMode: i, logout: a, setThemeMode: o, user: s } = Te(), { i18n: d } = Fr();
276
276
  function c() {
277
277
  a(), e("/authorization/login");
278
278
  }
@@ -282,13 +282,13 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
282
282
  const p = (C, I) => /* @__PURE__ */ y(Qr, { children: [
283
283
  /* @__PURE__ */ l(Xr, { children: C }),
284
284
  I && /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(Jr, {}) })
285
- ] }), { response: h } = ar(t ?? (() => Promise.resolve({ data: [] })), []);
285
+ ] }), { response: g } = ar(t ?? (() => Promise.resolve({ data: [] })), []);
286
286
  async function f(C) {
287
287
  if (!r) return;
288
288
  const A = (await r(C)).data.value;
289
289
  localStorage.setItem("useToken", A.token), localStorage.setItem("userData", JSON.stringify(A));
290
290
  }
291
- const g = () => {
291
+ const h = () => {
292
292
  (s == null ? void 0 : s.type) === "Manager" ? e(`/affiliate-manager/profile/${s.id}`) : e(`/affiliate-users/profile/${s == null ? void 0 : s.affiliateUserId}`);
293
293
  };
294
294
  return /* @__PURE__ */ l(en, { children: /* @__PURE__ */ y(
@@ -298,7 +298,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
298
298
  getPopupContainer: (C) => C.parentElement || document.body,
299
299
  onClick: () => n(!1),
300
300
  children: [
301
- /* @__PURE__ */ l(Q.Item, { onClick: g, children: "Profile" }, "10-1"),
301
+ /* @__PURE__ */ l(Q.Item, { onClick: h, children: "Profile" }, "10-1"),
302
302
  /* @__PURE__ */ y(Q.Item, { children: [
303
303
  " ",
304
304
  "Notifications"
@@ -321,7 +321,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
321
321
  ) }, "30-3")
322
322
  ] }, "30"),
323
323
  /* @__PURE__ */ l(Q.Divider, {}),
324
- /* @__PURE__ */ l(Q.SubMenu, { title: "ConnectedAccounts", children: ((h == null ? void 0 : h.data) || []).map((C) => /* @__PURE__ */ l(Q.Item, { onClick: () => f(C.id), children: p(C.name) }, C.id)) }, "40"),
324
+ /* @__PURE__ */ l(Q.SubMenu, { title: "ConnectedAccounts", children: ((g == null ? void 0 : g.data) || []).map((C) => /* @__PURE__ */ l(Q.Item, { onClick: () => f(C.id), children: p(C.name) }, C.id)) }, "40"),
325
325
  /* @__PURE__ */ l(Q.Divider, {}),
326
326
  /* @__PURE__ */ l(Q.Item, { onClick: c, children: "LogOut" }, "100")
327
327
  ]
@@ -329,7 +329,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
329
329
  "10"
330
330
  ) });
331
331
  }, or = ({ items: n, topLogoPrimaryUrl: e, shortName: t }) => {
332
- const r = Fe(), [i, a] = j(!1), o = Xe(null), s = () => a((d) => !d);
332
+ const r = Ve(), [i, a] = j(!1), o = Xe(null), s = () => a((d) => !d);
333
333
  return Y(() => {
334
334
  function d(c) {
335
335
  o.current && !o.current.contains(c.target) && a(!1);
@@ -663,8 +663,8 @@ const $t = (n) => {
663
663
  const t = /* @__PURE__ */ new Set(), r = (c, u) => {
664
664
  const p = typeof c == "function" ? c(e) : c;
665
665
  if (!Object.is(p, e)) {
666
- const h = e;
667
- e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((f) => f(e, h));
666
+ const g = e;
667
+ e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((f) => f(e, g));
668
668
  }
669
669
  }, i = () => e, s = { setState: r, getState: i, getInitialState: () => d, subscribe: (c) => (t.add(c), () => t.delete(c)) }, d = e = n(r, i, s);
670
670
  return s;
@@ -766,7 +766,7 @@ const $t = (n) => {
766
766
  if (!e) throw new Error("GridViewStoreProvider is missing");
767
767
  return Nr(e, n);
768
768
  }, $n = () => {
769
- const n = $((u) => u.hydrateFromStorage), e = $((u) => u.isHydrated), t = $((u) => u.filters), r = $((u) => u.filterItems), i = $((u) => u.sortItems), a = $((u) => u.hideItems), o = $((u) => u.groupByArr), s = $((u) => u.activeTableView), d = $((u) => u.selectedConfig), c = Fe();
769
+ const n = $((u) => u.hydrateFromStorage), e = $((u) => u.isHydrated), t = $((u) => u.filters), r = $((u) => u.filterItems), i = $((u) => u.sortItems), a = $((u) => u.hideItems), o = $((u) => u.groupByArr), s = $((u) => u.activeTableView), d = $((u) => u.selectedConfig), c = Ve();
770
770
  Y(() => (n(`grid-filters:${c.pathname}`), sessionStorage.clear()), []), Y(() => {
771
771
  e && sessionStorage.setItem(
772
772
  `grid-filters:${c.pathname}`,
@@ -1219,16 +1219,16 @@ const ft = m.div`
1219
1219
  ), u = t.filter(
1220
1220
  (f) => f.title.toLowerCase().includes(o.toLowerCase()) && f.sortable !== !1
1221
1221
  );
1222
- function p(f, g) {
1222
+ function p(f, h) {
1223
1223
  i([
1224
1224
  {
1225
1225
  title: f.title,
1226
1226
  dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
1227
- direction: g
1227
+ direction: h
1228
1228
  }
1229
1229
  ]);
1230
1230
  }
1231
- function h() {
1231
+ function g() {
1232
1232
  i([]);
1233
1233
  }
1234
1234
  return /* @__PURE__ */ l(
@@ -1241,18 +1241,18 @@ const ft = m.div`
1241
1241
  type: "text",
1242
1242
  placeholder: "Search...",
1243
1243
  value: o,
1244
- onChange: (g) => s(g.target.value)
1244
+ onChange: (h) => s(h.target.value)
1245
1245
  }
1246
1246
  ),
1247
- /* @__PURE__ */ l("div", { children: u.map((g, C) => /* @__PURE__ */ y(
1247
+ /* @__PURE__ */ l("div", { children: u.map((h, C) => /* @__PURE__ */ y(
1248
1248
  "button",
1249
1249
  {
1250
1250
  onClick: () => {
1251
- g.title == (a == null ? void 0 : a.title) ? h() : p(g, d);
1251
+ h.title == (a == null ? void 0 : a.title) ? g() : p(h, d);
1252
1252
  },
1253
1253
  children: [
1254
- g.title,
1255
- g.title == (a == null ? void 0 : a.title) && /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(Pe, {}) })
1254
+ h.title,
1255
+ h.title == (a == null ? void 0 : a.title) && /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(He, {}) })
1256
1256
  ]
1257
1257
  },
1258
1258
  C
@@ -1267,7 +1267,7 @@ const ft = m.div`
1267
1267
  children: [
1268
1268
  /* @__PURE__ */ l(ht, {}),
1269
1269
  "Ascending",
1270
- d === re.ASC && /* @__PURE__ */ l(Pe, {})
1270
+ d === re.ASC && /* @__PURE__ */ l(He, {})
1271
1271
  ]
1272
1272
  }
1273
1273
  ),
@@ -1280,7 +1280,7 @@ const ft = m.div`
1280
1280
  children: [
1281
1281
  /* @__PURE__ */ l(gt, {}),
1282
1282
  "Descending",
1283
- d === re.DESC && /* @__PURE__ */ l(Pe, {})
1283
+ d === re.DESC && /* @__PURE__ */ l(He, {})
1284
1284
  ]
1285
1285
  }
1286
1286
  )
@@ -1291,12 +1291,12 @@ const ft = m.div`
1291
1291
  }
1292
1292
  );
1293
1293
  }, mt = ({ placement: n, children: e, onSelect: t, CustomFilters: r }) => {
1294
- const [i, a] = j(!1), [o, s] = j(""), d = $((h) => h.columns), c = $((h) => h.filterItems), u = $((h) => h.setFilterItems);
1295
- function p(h) {
1296
- t ? t(h) : u([
1294
+ const [i, a] = j(!1), [o, s] = j(""), d = $((g) => g.columns), c = $((g) => g.filterItems), u = $((g) => g.setFilterItems);
1295
+ function p(g) {
1296
+ t ? t(g) : u([
1297
1297
  ...c,
1298
1298
  {
1299
- ...h,
1299
+ ...g,
1300
1300
  selectType: ke.VALUE
1301
1301
  }
1302
1302
  ]), a(!1);
@@ -1314,10 +1314,10 @@ const ft = m.div`
1314
1314
  type: "text",
1315
1315
  placeholder: oe("Search") + "...",
1316
1316
  value: o,
1317
- onChange: (h) => s(h.target.value)
1317
+ onChange: (g) => s(g.target.value)
1318
1318
  }
1319
1319
  ),
1320
- /* @__PURE__ */ l("div", { children: d.filter((h) => h.filterable !== !1).filter((h) => !c.some((f) => f.title == h.title)).filter((h) => h.filterable !== !1).filter((h) => h.title.toLowerCase().includes(o)).map((h, f) => /* @__PURE__ */ l("button", { onClick: () => p(h), children: h.title }, f)) }),
1320
+ /* @__PURE__ */ l("div", { children: d.filter((g) => g.filterable !== !1).filter((g) => !c.some((f) => f.title == g.title)).filter((g) => g.filterable !== !1).filter((g) => g.title.toLowerCase().includes(o)).map((g, f) => /* @__PURE__ */ l("button", { onClick: () => p(g), children: g.title }, f)) }),
1321
1321
  r && /* @__PURE__ */ l(
1322
1322
  r,
1323
1323
  {
@@ -1437,7 +1437,7 @@ const ft = m.div`
1437
1437
  "/tags": 13
1438
1438
  /* Tag */
1439
1439
  }, hr = () => {
1440
- const { pathname: n } = Fe(), e = Object.keys(It).find(
1440
+ const { pathname: n } = Ve(), e = Object.keys(It).find(
1441
1441
  (t) => n === t || n.startsWith(t + "/")
1442
1442
  );
1443
1443
  return e ? It[e] : void 0;
@@ -1456,7 +1456,7 @@ const Wn = ({
1456
1456
  GridPageTopLeftComponent: s,
1457
1457
  noNeedSidebarResponsiveButton: d
1458
1458
  }) => {
1459
- const c = Ee(), u = $((v) => v.filters), p = $((v) => v.hasCreateBtn), h = $((v) => v.setFilters), f = $((v) => v.setFilterItems), g = $((v) => v.setSortItems), [C, I] = j(() => {
1459
+ const c = Ee(), u = $((v) => v.filters), p = $((v) => v.hasCreateBtn), g = $((v) => v.setFilters), f = $((v) => v.setFilterItems), h = $((v) => v.setSortItems), [C, I] = j(() => {
1460
1460
  var v, x;
1461
1461
  try {
1462
1462
  const E = sessionStorage.getItem(`grid-filters:${window.location.pathname}`);
@@ -1464,7 +1464,7 @@ const Wn = ({
1464
1464
  } catch {
1465
1465
  return !1;
1466
1466
  }
1467
- }), [A, S] = j(!1), { open: D } = ye(), [T, V] = j(!1), { getMyFilters: B } = Ve(), _ = hr(), [K, z] = j([]), O = $((v) => v.selectedConfig), w = $((v) => v.setSelectedConfig), N = $((v) => v.configsVersion);
1467
+ }), [A, S] = j(!1), { open: D } = ye(), [T, V] = j(!1), { getMyFilters: B } = Ie(), _ = hr(), [K, z] = j([]), O = $((v) => v.selectedConfig), w = $((v) => v.setSelectedConfig), N = $((v) => v.configsVersion);
1468
1468
  Y(() => {
1469
1469
  _ == null || !B || B(String(_)).then((v) => z(v.data ?? []));
1470
1470
  }, [_, N, B]);
@@ -1472,10 +1472,10 @@ const Wn = ({
1472
1472
  const x = K.find((F) => F.id === v);
1473
1473
  if (!x) return;
1474
1474
  const { filterItems: E, sortItems: M } = JSON.parse(x.value);
1475
- f(E, !0), g(M), w({ id: x.id, name: x.name });
1475
+ f(E, !0), h(M), w({ id: x.id, name: x.name });
1476
1476
  }
1477
1477
  const L = ur((v) => {
1478
- h({
1478
+ g({
1479
1479
  ...u,
1480
1480
  QuickSearch: v.target.value
1481
1481
  });
@@ -2377,7 +2377,7 @@ const ri = ({
2377
2377
  !0
2378
2378
  );
2379
2379
  };
2380
- function h(w) {
2380
+ function g(w) {
2381
2381
  r(
2382
2382
  t.map(
2383
2383
  (N) => N.title == n.title ? { ...w, selectType: ke.VALUE } : N
@@ -2391,7 +2391,7 @@ const ri = ({
2391
2391
  !0
2392
2392
  );
2393
2393
  }, 500);
2394
- function g(w) {
2394
+ function h(w) {
2395
2395
  r(
2396
2396
  t.map(
2397
2397
  (N) => N.title == n.title ? { ...N, selectType: ke.NONE } : N
@@ -2495,7 +2495,7 @@ const ri = ({
2495
2495
  }
2496
2496
  );
2497
2497
  return /* @__PURE__ */ y(ot, { children: [
2498
- /* @__PURE__ */ l(mt, { placement: "bottomLeft", onSelect: h, children: /* @__PURE__ */ y("span", { children: [
2498
+ /* @__PURE__ */ l(mt, { placement: "bottomLeft", onSelect: g, children: /* @__PURE__ */ y("span", { children: [
2499
2499
  /* @__PURE__ */ l(pr, {}),
2500
2500
  n.title
2501
2501
  ] }) }),
@@ -2505,7 +2505,7 @@ const ri = ({
2505
2505
  overlayClassName: "debug-dropdwon",
2506
2506
  placement: "bottomLeft",
2507
2507
  open: i,
2508
- onOpenChange: g,
2508
+ onOpenChange: h,
2509
2509
  popupRender: () => A,
2510
2510
  trigger: ["click"],
2511
2511
  getPopupContainer: (w) => {
@@ -2518,17 +2518,17 @@ const ri = ({
2518
2518
  /* @__PURE__ */ l("span", { onClick: C, children: /* @__PURE__ */ l(yt, {}) })
2519
2519
  ] });
2520
2520
  }, si = () => {
2521
- const n = $((f) => f.filterItems), e = $((f) => f.sortItems), t = $((f) => f.setSelectedConfig), r = $((f) => f.resetStore), i = $((f) => f.selectedConfig), a = $((f) => f.bumpConfigsVersion), { open: o, store: s, close: d } = ye(), c = hr();
2522
- async function u() {
2521
+ const n = $((h) => h.filterItems), e = $((h) => h.sortItems), t = $((h) => h.setSelectedConfig), r = $((h) => h.resetStore), i = $((h) => h.selectedConfig), { deleteMyFilter: a } = Ie(), o = $((h) => h.bumpConfigsVersion), { open: s, store: d, close: c } = ye(), u = hr();
2522
+ async function p() {
2523
2523
  try {
2524
- if (!i) return;
2525
- t(null), a();
2526
- } catch (f) {
2527
- console.log(f, "Error happened deleting configuration");
2524
+ if (!i || !a) return;
2525
+ await a(i.id), t(null), o();
2526
+ } catch (h) {
2527
+ console.log(h, "Error happened deleting configuration");
2528
2528
  }
2529
2529
  }
2530
- function p() {
2531
- s({
2530
+ function g() {
2531
+ d({
2532
2532
  component: ii,
2533
2533
  title: i ? "UpdateConfiguration" : "NameYourConfiguration",
2534
2534
  footerOptions: {
@@ -2536,7 +2536,7 @@ const ri = ({
2536
2536
  Ke,
2537
2537
  {
2538
2538
  onClick: () => {
2539
- u(), d(), r();
2539
+ p(), c(), r();
2540
2540
  },
2541
2541
  children: /* @__PURE__ */ y("span", { className: "arrow-styled", children: [
2542
2542
  "Delete",
@@ -2546,18 +2546,18 @@ const ri = ({
2546
2546
  ),
2547
2547
  cancelText: "Cancel"
2548
2548
  }
2549
- }), o();
2549
+ }), s();
2550
2550
  }
2551
- function h() {
2552
- const f = JSON.stringify({ filterItems: n, sortItems: e });
2553
- s({
2551
+ function f() {
2552
+ const h = JSON.stringify({ filterItems: n, sortItems: e });
2553
+ d({
2554
2554
  component: ri,
2555
2555
  componentProps: {
2556
- type: c,
2557
- value: f,
2556
+ type: u,
2557
+ value: h,
2558
2558
  selectedConfig: i,
2559
- onSuccess: (g) => {
2560
- i && t({ ...i, name: g }), a();
2559
+ onSuccess: (C) => {
2560
+ i && t({ ...i, name: C }), o();
2561
2561
  }
2562
2562
  },
2563
2563
  title: i ? "UpdateConfiguration" : "NameYourConfiguration",
@@ -2568,21 +2568,21 @@ const ri = ({
2568
2568
  ] }) }),
2569
2569
  cancelText: "Cancel"
2570
2570
  }
2571
- }), o();
2571
+ }), s();
2572
2572
  }
2573
2573
  return /* @__PURE__ */ y(Mn, { children: [
2574
2574
  e.length > 0 && /* @__PURE__ */ l(fr, { placement: "bottomLeft", children: /* @__PURE__ */ l(ot, { className: "sort", children: /* @__PURE__ */ y("span", { children: [
2575
2575
  e[0].title,
2576
2576
  e[0].direction == re.ASC ? /* @__PURE__ */ l(ht, {}) : /* @__PURE__ */ l(gt, {})
2577
2577
  ] }) }) }),
2578
- n.map((f) => /* @__PURE__ */ l(oi, { item: f }, f.title)),
2578
+ n.map((h) => /* @__PURE__ */ l(oi, { item: h }, h.title)),
2579
2579
  /* @__PURE__ */ l(mt, { placement: "bottomLeft", children: /* @__PURE__ */ l(ot, { className: "add-filter", children: /* @__PURE__ */ y("span", { children: [
2580
2580
  /* @__PURE__ */ l(Yn, {}),
2581
2581
  "AddFilter"
2582
2582
  ] }) }) }),
2583
2583
  /* @__PURE__ */ y(Pn, { children: [
2584
- /* @__PURE__ */ l("button", { onClick: h, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2585
- i && /* @__PURE__ */ l("button", { onClick: p, children: "DeleteConfiguration" }),
2584
+ /* @__PURE__ */ l("button", { onClick: f, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2585
+ i && /* @__PURE__ */ l("button", { onClick: g, children: "DeleteConfiguration" }),
2586
2586
  /* @__PURE__ */ y("button", { onClick: r, children: [
2587
2587
  /* @__PURE__ */ l(gr, {}),
2588
2588
  "ResetConditions"
@@ -3076,7 +3076,7 @@ function vi({
3076
3076
  children: [
3077
3077
  o.label,
3078
3078
  " ",
3079
- o.value == n.pageSize && /* @__PURE__ */ l(Pe, {})
3079
+ o.value == n.pageSize && /* @__PURE__ */ l(He, {})
3080
3080
  ]
3081
3081
  },
3082
3082
  o.value
@@ -3098,32 +3098,32 @@ function vi({
3098
3098
  const bi = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.6094 3.33333L5.1263 11.8158C5.12139 11.8211 5.11638 11.8263 5.11133 11.8314L3.33333 13.6094L2.39062 12.6667L3.66211 11.3939C2.75363 10.5112 1.95159 9.31206 1.41341 8.31706L1.24219 8L1.41341 7.68294C2.08047 6.44895 3.05011 5.21371 4.17253 4.2793C5.28611 3.35227 6.61809 2.66667 8 2.66667C9.16616 2.66667 10.294 3.10021 11.291 3.76562L12.6667 2.39062L13.6094 3.33333ZM8 4C7.05196 4 6.01458 4.48114 5.02604 5.30404C4.14063 6.04112 3.34853 7.00907 2.76562 8C3.26512 8.86691 3.9209 9.79039 4.60482 10.4512L5.63021 9.42643C4.98911 8.36284 5.12669 6.96121 6.04427 6.04362C6.96186 5.12604 8.36349 4.98846 9.42708 5.62956L10.3255 4.73047C9.55755 4.26174 8.76273 4 8 4ZM8.42513 6.63151C7.93343 6.47928 7.37623 6.59708 6.98698 6.98633C6.59773 7.37558 6.47993 7.93278 6.63216 8.42448L8.42513 6.63151Z", fill: "currentColor", fillOpacity: 0.75 }), /* @__PURE__ */ H.createElement("path", { d: "M13.2266 5.51432L13.4199 5.75651C13.8705 6.35556 14.306 7.16405 14.5866 7.68294L14.7578 8L14.5866 8.31706C13.9196 9.55061 12.9498 10.7856 11.8275 11.7201C10.714 12.6471 9.38194 13.3333 8 13.3333C7.42626 13.3333 6.86164 13.2272 6.32031 13.0423L6.08984 12.9583L5.5332 12.7422L6.5638 11.7116L6.57161 11.7148L6.75195 11.7806C7.17263 11.9243 7.59142 12 8 12C8.94792 12 9.98545 11.5189 10.974 10.696C11.8609 9.95749 12.6538 8.98668 13.237 7.99414C12.9701 7.50763 12.6616 6.96796 12.3665 6.57357L12.2122 6.38021L12.0664 6.20898L13.0124 5.26302L13.2266 5.51432Z", fill: "currentColor", fillOpacity: 0.75 }));
3099
3099
  function xi({ col: n }) {
3100
3100
  const [e, t] = j(!1), r = $((f) => f.filterItems), i = $((f) => f.hideItems), a = $((f) => f.setFilterItems), o = $((f) => f.setSortItems), s = $((f) => f.setHideItems);
3101
- function d(f, g) {
3101
+ function d(f, h) {
3102
3102
  o([
3103
3103
  {
3104
3104
  title: f.title,
3105
3105
  dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
3106
- direction: g
3106
+ direction: h
3107
3107
  }
3108
3108
  ]);
3109
3109
  }
3110
3110
  function c(f) {
3111
- const g = r.filter((C) => f.title != C.title);
3111
+ const h = r.filter((C) => f.title != C.title);
3112
3112
  a([
3113
- ...g,
3113
+ ...h,
3114
3114
  {
3115
3115
  ...f,
3116
3116
  selectType: ke.VALUE
3117
3117
  }
3118
3118
  ]);
3119
3119
  }
3120
- function u(f, g) {
3120
+ function u(f, h) {
3121
3121
  s({
3122
3122
  ...i,
3123
3123
  [f.dataIndex]: !0
3124
3124
  });
3125
3125
  }
3126
- const p = () => t(!1), h = [
3126
+ const p = () => t(!1), g = [
3127
3127
  { icon: /* @__PURE__ */ l(We, {}), text: U("Filter"), action: () => c(n) },
3128
3128
  {
3129
3129
  icon: /* @__PURE__ */ l(ht, {}),
@@ -3145,7 +3145,7 @@ function xi({ col: n }) {
3145
3145
  $e,
3146
3146
  {
3147
3147
  placement: "bottomLeft",
3148
- popupRender: () => /* @__PURE__ */ l(ci, { children: h.map(({ icon: f, text: g, action: C }) => /* @__PURE__ */ y(
3148
+ popupRender: () => /* @__PURE__ */ l(ci, { children: g.map(({ icon: f, text: h, action: C }) => /* @__PURE__ */ y(
3149
3149
  "button",
3150
3150
  {
3151
3151
  onClick: () => {
@@ -3153,10 +3153,10 @@ function xi({ col: n }) {
3153
3153
  },
3154
3154
  children: [
3155
3155
  f,
3156
- g
3156
+ h
3157
3157
  ]
3158
3158
  },
3159
- g
3159
+ h
3160
3160
  )) }),
3161
3161
  trigger: ["click"],
3162
3162
  open: e,
@@ -3262,9 +3262,9 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
3262
3262
  noPagination: d,
3263
3263
  noDataProps: c
3264
3264
  }) => {
3265
- const u = $((D) => D.filters), p = $((D) => D.groupByArr), h = $((D) => D.setFilters), f = we(() => p.length > 0 ? e.filter(
3265
+ const u = $((D) => D.filters), p = $((D) => D.groupByArr), g = $((D) => D.setFilters), f = we(() => p.length > 0 ? e.filter(
3266
3266
  (D) => !p.some((T) => T.dataIndex == D.dataIndex)
3267
- ) : e, [e, p]), { isTableGroupped: g, isTableSubGroupped: C } = we(
3267
+ ) : e, [e, p]), { isTableGroupped: h, isTableSubGroupped: C } = we(
3268
3268
  () => ({
3269
3269
  isTableGroupped: !!p[0],
3270
3270
  isTableSubGroupped: !!p[1]
@@ -3284,14 +3284,14 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
3284
3284
  return r;
3285
3285
  }, [r, p]);
3286
3286
  function A(D) {
3287
- h({
3287
+ g({
3288
3288
  ...u,
3289
3289
  PageSize: D,
3290
3290
  Page: 1
3291
3291
  });
3292
3292
  }
3293
3293
  function S(D) {
3294
- h({
3294
+ g({
3295
3295
  ...u,
3296
3296
  Page: D
3297
3297
  });
@@ -3308,7 +3308,7 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
3308
3308
  rowLength: a.pageSize,
3309
3309
  columnLength: f.length
3310
3310
  }
3311
- ) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: f.length, children: /* @__PURE__ */ l(Di, { ...c }) }) }) : /* @__PURE__ */ l(ae, { children: g ? /* @__PURE__ */ l(
3311
+ ) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: f.length, children: /* @__PURE__ */ l(Di, { ...c }) }) }) : /* @__PURE__ */ l(ae, { children: h ? /* @__PURE__ */ l(
3312
3312
  yi,
3313
3313
  {
3314
3314
  dataSource: I,
@@ -4107,13 +4107,13 @@ const Cr = ({
4107
4107
  }) => {
4108
4108
  const [o, s] = j(), [d, c] = j([]);
4109
4109
  async function u() {
4110
- var p, h, f;
4110
+ var p, g, f;
4111
4111
  try {
4112
- const g = await e({ confirmationToken: n, code: o, id: i });
4113
- (p = g == null ? void 0 : g.data) != null && p.success && (r(!1), a((C) => !C));
4114
- } catch (g) {
4115
- const C = De((f = (h = g == null ? void 0 : g.response) == null ? void 0 : h.data) == null ? void 0 : f.errors);
4116
- c(C), console.log(g);
4112
+ const h = await e({ confirmationToken: n, code: o, id: i });
4113
+ (p = h == null ? void 0 : h.data) != null && p.success && (r(!1), a((C) => !C));
4114
+ } catch (h) {
4115
+ const C = De((f = (g = h == null ? void 0 : h.response) == null ? void 0 : g.data) == null ? void 0 : f.errors);
4116
+ c(C), console.log(h);
4117
4117
  }
4118
4118
  }
4119
4119
  return /* @__PURE__ */ y("div", { children: [
@@ -4202,7 +4202,7 @@ const Ui = {
4202
4202
  isBlocked: a,
4203
4203
  onBlockStateClose: o
4204
4204
  }) => {
4205
- const { confirmContactInfo: s, confirmContactInfoBackup: d } = Ve(), { setUser: c } = Ie(), [u, p] = j(""), [h, f] = j([]), [g, C] = j(!1);
4205
+ const { confirmContactInfo: s, confirmContactInfoBackup: d } = Ie(), { setUser: c } = Te(), [u, p] = j(""), [g, f] = j([]), [h, C] = j(!1);
4206
4206
  function I(T) {
4207
4207
  p(T);
4208
4208
  }
@@ -4249,7 +4249,7 @@ const Ui = {
4249
4249
  U("TryAgain"),
4250
4250
  /* @__PURE__ */ l(Le, {})
4251
4251
  ] })
4252
- ] }) }) : /* @__PURE__ */ l(Pt, { isOpen: n, onClose: D, children: g ? /* @__PURE__ */ l(
4252
+ ] }) }) : /* @__PURE__ */ l(Pt, { isOpen: n, onClose: D, children: h ? /* @__PURE__ */ l(
4253
4253
  Cr,
4254
4254
  {
4255
4255
  setBackupActivated: C,
@@ -4265,7 +4265,7 @@ const Ui = {
4265
4265
  /* @__PURE__ */ y(
4266
4266
  Ii,
4267
4267
  {
4268
- className: h.length > 0 ? "verification-error" : "",
4268
+ className: g.length > 0 ? "verification-error" : "",
4269
4269
  children: [
4270
4270
  /* @__PURE__ */ l(et.OTP, { value: u, onChange: I }),
4271
4271
  /* @__PURE__ */ y(Ti, { children: [
@@ -4273,7 +4273,7 @@ const Ui = {
4273
4273
  " ",
4274
4274
  /* @__PURE__ */ l(br, { onClick: () => C(!0), children: ee("EnterBackupCode") })
4275
4275
  ] }),
4276
- h.map((T) => /* @__PURE__ */ y("span", { children: [
4276
+ g.map((T) => /* @__PURE__ */ y("span", { children: [
4277
4277
  /* @__PURE__ */ l(Ct, {}),
4278
4278
  T.errors[0]
4279
4279
  ] }, T.name))
@@ -4294,15 +4294,15 @@ const Ui = {
4294
4294
  ] })
4295
4295
  ] }) });
4296
4296
  }, Wi = () => {
4297
- const { enableContactInfo: n, disableContactInfo: e } = Ve(), { setUser: t } = Ie(), [r, i] = j(!1), [a, o] = j(null), [s, d] = j(!1), c = async () => {
4298
- var h, f, g, C, I, A, S;
4297
+ const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Te(), [r, i] = j(!1), [a, o] = j(null), [s, d] = j(!1), c = async () => {
4298
+ var g, f, h, C, I, A, S;
4299
4299
  if (n)
4300
4300
  try {
4301
4301
  d(!1);
4302
4302
  const D = await n();
4303
4303
  o({
4304
- token: (f = (h = D.data) == null ? void 0 : h.value) == null ? void 0 : f.token,
4305
- id: (C = (g = D.data) == null ? void 0 : g.value) == null ? void 0 : C.id,
4304
+ token: (f = (g = D.data) == null ? void 0 : g.value) == null ? void 0 : f.token,
4305
+ id: (C = (h = D.data) == null ? void 0 : h.value) == null ? void 0 : C.id,
4306
4306
  mfaType: (A = (I = D.data) == null ? void 0 : I.value) == null ? void 0 : A.mfaType
4307
4307
  }), i(!0);
4308
4308
  } catch (D) {
@@ -4312,8 +4312,8 @@ const Ui = {
4312
4312
  };
4313
4313
  async function u() {
4314
4314
  if (!e) return;
4315
- const h = await e();
4316
- t(h.data.value);
4315
+ const g = await e();
4316
+ t(g.data.value);
4317
4317
  }
4318
4318
  const p = () => {
4319
4319
  d(!1), i(!1);
@@ -4338,12 +4338,12 @@ const Ui = {
4338
4338
  };
4339
4339
  }, Yi = ({ close: n }) => {
4340
4340
  var A;
4341
- const { user: e } = Ie(), t = $((S) => S.columns), r = $((S) => S.groupByArr), i = $((S) => S.hideItems), a = $((S) => S.activeTableView), o = $((S) => S.setActiveTableView), s = $((S) => S.setGroupByArr), d = $((S) => S.setHideItems), c = $((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: h } = Wi();
4341
+ const { user: e } = Te(), t = $((S) => S.columns), r = $((S) => S.groupByArr), i = $((S) => S.hideItems), a = $((S) => S.activeTableView), o = $((S) => S.setActiveTableView), s = $((S) => S.setGroupByArr), d = $((S) => S.setHideItems), c = $((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: g } = Wi();
4342
4342
  function f(S) {
4343
4343
  const D = t.find((T) => T.dataIndex == S.value);
4344
4344
  s([D]);
4345
4345
  }
4346
- function g(S, D) {
4346
+ function h(S, D) {
4347
4347
  d({
4348
4348
  ...i,
4349
4349
  [S.dataIndex]: !!D
@@ -4413,7 +4413,7 @@ const Ui = {
4413
4413
  "li",
4414
4414
  {
4415
4415
  className: i[S.dataIndex] === !0 ? "hide" : "",
4416
- onClick: () => g(S, i[S.dataIndex] !== !0),
4416
+ onClick: () => h(S, i[S.dataIndex] !== !0),
4417
4417
  children: S.title
4418
4418
  },
4419
4419
  S.dataIndex
@@ -4437,7 +4437,7 @@ const Ui = {
4437
4437
  /* @__PURE__ */ l(gr, {})
4438
4438
  ] })
4439
4439
  ] }),
4440
- /* @__PURE__ */ l(_i, { ...h })
4440
+ /* @__PURE__ */ l(_i, { ...g })
4441
4441
  ] });
4442
4442
  }, Ki = ({
4443
4443
  columns: n,
@@ -4452,9 +4452,9 @@ const Ui = {
4452
4452
  pagination: c,
4453
4453
  CustomFilters: u,
4454
4454
  initialFilterValues: p,
4455
- tableAdditionalFields: h,
4455
+ tableAdditionalFields: g,
4456
4456
  createIsModal: f,
4457
- editButton: g,
4457
+ editButton: h,
4458
4458
  noPagination: C,
4459
4459
  noDataProps: I,
4460
4460
  exportButton: A,
@@ -4467,7 +4467,7 @@ const Ui = {
4467
4467
  }
4468
4468
  }) => {
4469
4469
  var J, ce, se;
4470
- const { user: K } = Ie(), z = $((Z) => Z.filters), O = $((Z) => Z.filterItems), w = $((Z) => Z.sortItems), N = $((Z) => Z.hideItems), P = $((Z) => Z.activeTableView), L = $((Z) => Z.setColumns), k = $((Z) => Z.setHasCreateBtn), b = $((Z) => Z.setHasSelect), v = $((Z) => Z.setCheckedValue), { response: x, loading: E } = ar(
4470
+ const { user: K } = Te(), z = $((Z) => Z.filters), O = $((Z) => Z.filterItems), w = $((Z) => Z.sortItems), N = $((Z) => Z.hideItems), P = $((Z) => Z.activeTableView), L = $((Z) => Z.setColumns), k = $((Z) => Z.setHasCreateBtn), b = $((Z) => Z.setHasSelect), v = $((Z) => Z.setCheckedValue), { response: x, loading: E } = ar(
4471
4471
  () => e({ ...z, ...p }),
4472
4472
  [z, K, t]
4473
4473
  );
@@ -4492,7 +4492,7 @@ const Ui = {
4492
4492
  exportButton: A,
4493
4493
  setisSettingPopupVisible: F,
4494
4494
  CustomFilters: u,
4495
- tableAdditionalFields: h,
4495
+ tableAdditionalFields: g,
4496
4496
  createIsModal: f,
4497
4497
  GridPageTopLeftComponent: i
4498
4498
  }
@@ -4524,7 +4524,7 @@ const Ui = {
4524
4524
  $i,
4525
4525
  {
4526
4526
  noPagination: C,
4527
- editButton: g,
4527
+ editButton: h,
4528
4528
  createIsModal: f,
4529
4529
  rowKey: d || "id",
4530
4530
  columns: [
@@ -4550,7 +4550,7 @@ const Ui = {
4550
4550
  M && /* @__PURE__ */ l(Yi, { close: () => F(!1) })
4551
4551
  ] });
4552
4552
  }, fo = (n) => /* @__PURE__ */ l(Dn, { children: /* @__PURE__ */ l(Ki, { ...n }) }), ho = () => {
4553
- const n = ye((C) => C.isOpen), e = ye((C) => C.options), t = ye((C) => C.close), r = Fe();
4553
+ const n = ye((C) => C.isOpen), e = ye((C) => C.options), t = ye((C) => C.close), r = Ve();
4554
4554
  if (Y(() => {
4555
4555
  n && t();
4556
4556
  }, [r.pathname]), !e || !n) return null;
@@ -4563,10 +4563,10 @@ const Ui = {
4563
4563
  hideFooter: c,
4564
4564
  showCloseButton: u,
4565
4565
  onOk: p,
4566
- onCancel: h
4566
+ onCancel: g
4567
4567
  } = e, f = () => {
4568
- h == null || h();
4569
- }, g = () => {
4568
+ g == null || g();
4569
+ }, h = () => {
4570
4570
  p == null || p();
4571
4571
  };
4572
4572
  return /* @__PURE__ */ y(
@@ -4585,11 +4585,11 @@ const Ui = {
4585
4585
  /* @__PURE__ */ l(
4586
4586
  Xn,
4587
4587
  {
4588
- onClick: g,
4588
+ onClick: h,
4589
4589
  role: "button",
4590
4590
  tabIndex: 0,
4591
4591
  onKeyDown: (C) => {
4592
- (C.key === "Enter" || C.key === " ") && g();
4592
+ (C.key === "Enter" || C.key === " ") && h();
4593
4593
  },
4594
4594
  children: d == null ? void 0 : d.okText
4595
4595
  }
@@ -4714,7 +4714,7 @@ const Xi = {
4714
4714
  setVisible: a,
4715
4715
  visible: o
4716
4716
  }) => {
4717
- const { confirmTwoFactor: s, resendOTP: d, confirmTwoFactorBackupCode: c } = Ve(), [u, p] = j(""), [h, f] = j(!0), [g, C] = j(60), { close: I } = ye(), [A, S] = j([]), [D, T] = j(!1);
4717
+ const { confirmTwoFactor: s, resendOTP: d, confirmTwoFactorBackupCode: c } = Ie(), [u, p] = j(""), [g, f] = j(!0), [h, C] = j(60), { close: I } = ye(), [A, S] = j([]), [D, T] = j(!1);
4718
4718
  async function V() {
4719
4719
  var O, w, N;
4720
4720
  const z = s;
@@ -4744,12 +4744,12 @@ const Xi = {
4744
4744
  p(z);
4745
4745
  }
4746
4746
  return Y(() => {
4747
- if (!h) return;
4747
+ if (!g) return;
4748
4748
  const z = setInterval(() => {
4749
4749
  C((O) => O <= 1 ? (clearInterval(z), f(!1), 0) : O - 1);
4750
4750
  }, 1e3);
4751
4751
  return () => clearInterval(z);
4752
- }, [h]), /* @__PURE__ */ l(vt, { open: o, onCancel: _, footer: [null], children: n ? /* @__PURE__ */ l(ae, { children: D ? /* @__PURE__ */ l(ae, { children: /* @__PURE__ */ l(
4752
+ }, [g]), /* @__PURE__ */ l(vt, { open: o, onCancel: _, footer: [null], children: n ? /* @__PURE__ */ l(ae, { children: D ? /* @__PURE__ */ l(ae, { children: /* @__PURE__ */ l(
4753
4753
  Cr,
4754
4754
  {
4755
4755
  setBackupActivated: T,
@@ -4786,9 +4786,9 @@ const Xi = {
4786
4786
  t !== st.TOTP && /* @__PURE__ */ l(
4787
4787
  xt,
4788
4788
  {
4789
- disabled: h,
4789
+ disabled: g,
4790
4790
  onClick: B,
4791
- children: h ? `${ee("ResendAvailable")} ${g} ${U("Second")}` : `${ee("Resend")}`
4791
+ children: g ? `${ee("ResendAvailable")} ${h} ${U("Second")}` : `${ee("Resend")}`
4792
4792
  }
4793
4793
  ),
4794
4794
  /* @__PURE__ */ y(
@@ -5097,12 +5097,12 @@ const ta = m(tr)`
5097
5097
  loading: d,
5098
5098
  pagination: c
5099
5099
  }) => {
5100
- const [u, p] = j([]), h = t || r;
5100
+ const [u, p] = j([]), g = t || r;
5101
5101
  Y(() => {
5102
- o && o.length > 0 && p((g) => [...o, ...g]);
5102
+ o && o.length > 0 && p((h) => [...o, ...h]);
5103
5103
  }, [o]);
5104
- function f(g) {
5105
- p(g), s && s([]);
5104
+ function f(h) {
5105
+ p(h), s && s([]);
5106
5106
  }
5107
5107
  return /* @__PURE__ */ l(
5108
5108
  ca,
@@ -5114,12 +5114,12 @@ const ta = m(tr)`
5114
5114
  emptyText: /* @__PURE__ */ l(rr, { description: _r("NoData") })
5115
5115
  },
5116
5116
  loading: d,
5117
- columns: h,
5117
+ columns: g,
5118
5118
  expandedRowKeys: u,
5119
5119
  onExpandedRowsChange: f,
5120
5120
  expandable: {
5121
- expandedRowRender: (g) => /* @__PURE__ */ l(e, { ...a, record: g }),
5122
- expandIcon: ({ expanded: g }) => /* @__PURE__ */ l(ae, { children: g ? /* @__PURE__ */ l("span", { className: "arrow-svg", children: /* @__PURE__ */ l(da, {}) }) : /* @__PURE__ */ l("span", { className: "arrow-svg", children: /* @__PURE__ */ l(ut, {}) }) }),
5121
+ expandedRowRender: (h) => /* @__PURE__ */ l(e, { ...a, record: h }),
5122
+ expandIcon: ({ expanded: h }) => /* @__PURE__ */ l(ae, { children: h ? /* @__PURE__ */ l("span", { className: "arrow-svg", children: /* @__PURE__ */ l(da, {}) }) : /* @__PURE__ */ l("span", { className: "arrow-svg", children: /* @__PURE__ */ l(ut, {}) }) }),
5123
5123
  expandRowByClick: !0
5124
5124
  },
5125
5125
  dataSource: i
@@ -5237,7 +5237,7 @@ const ua = m.div`
5237
5237
  left: 20px;
5238
5238
  top: 10px;
5239
5239
  z-index: 1000;
5240
- `, R = (n) => typeof n == "string", ze = () => {
5240
+ `, R = (n) => typeof n == "string", Me = () => {
5241
5241
  let n, e;
5242
5242
  const t = new Promise((r, i) => {
5243
5243
  n = r, e = i;
@@ -5247,7 +5247,7 @@ const ua = m.div`
5247
5247
  n.forEach((r) => {
5248
5248
  e[r] && (t[r] = e[r]);
5249
5249
  });
5250
- }, ga = /###/g, Ft = (n) => n && n.includes("###") ? n.replace(ga, ".") : n, Vt = (n) => !n || R(n), He = (n, e, t) => {
5250
+ }, ga = /###/g, Ft = (n) => n && n.includes("###") ? n.replace(ga, ".") : n, Vt = (n) => !n || R(n), Re = (n, e, t) => {
5251
5251
  const r = R(e) ? e.split(".") : e;
5252
5252
  let i = 0;
5253
5253
  for (; i < r.length - 1; ) {
@@ -5263,26 +5263,26 @@ const ua = m.div`
5263
5263
  const {
5264
5264
  obj: r,
5265
5265
  k: i
5266
- } = He(n, e, Object);
5266
+ } = Re(n, e, Object);
5267
5267
  if (r !== void 0 || e.length === 1) {
5268
5268
  r[i] = t;
5269
5269
  return;
5270
5270
  }
5271
- let a = e[e.length - 1], o = e.slice(0, e.length - 1), s = He(n, o, Object);
5271
+ let a = e[e.length - 1], o = e.slice(0, e.length - 1), s = Re(n, o, Object);
5272
5272
  for (; s.obj === void 0 && o.length; )
5273
- a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = He(n, o, Object), s != null && s.obj && typeof s.obj[`${s.k}.${a}`] < "u" && (s.obj = void 0);
5273
+ a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Re(n, o, Object), s != null && s.obj && typeof s.obj[`${s.k}.${a}`] < "u" && (s.obj = void 0);
5274
5274
  s.obj[`${s.k}.${a}`] = t;
5275
5275
  }, ma = (n, e, t, r) => {
5276
5276
  const {
5277
5277
  obj: i,
5278
5278
  k: a
5279
- } = He(n, e, Object);
5279
+ } = Re(n, e, Object);
5280
5280
  i[a] = i[a] || [], i[a].push(t);
5281
5281
  }, qe = (n, e) => {
5282
5282
  const {
5283
5283
  obj: t,
5284
5284
  k: r
5285
- } = He(n, e);
5285
+ } = Re(n, e);
5286
5286
  if (t && Object.prototype.hasOwnProperty.call(t, r))
5287
5287
  return t[r];
5288
5288
  }, ya = (n, e, t) => {
@@ -5343,7 +5343,7 @@ const wa = [" ", ",", "?", "!", ";"], Ca = new xa(20), ka = (n, e, t) => {
5343
5343
  i = o;
5344
5344
  }
5345
5345
  return i;
5346
- }, Ne = (n) => n == null ? void 0 : n.replace(/_/g, "-"), Sa = {
5346
+ }, Fe = (n) => n == null ? void 0 : n.replace(/_/g, "-"), Sa = {
5347
5347
  type: "logger",
5348
5348
  log(n) {
5349
5349
  this.output("log", n);
@@ -5591,9 +5591,9 @@ class Qe extends tt {
5591
5591
  } = this.extractFromKey(e[e.length - 1], i), c = d[d.length - 1];
5592
5592
  let u = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
5593
5593
  u === void 0 && (u = ":");
5594
- const p = i.lng || this.language, h = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
5594
+ const p = i.lng || this.language, g = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
5595
5595
  if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
5596
- return h ? a ? {
5596
+ return g ? a ? {
5597
5597
  res: `${c}${u}${s}`,
5598
5598
  usedKey: s,
5599
5599
  exactUsedKey: s,
@@ -5609,12 +5609,12 @@ class Qe extends tt {
5609
5609
  usedParams: this.getUsedParamsDetails(i)
5610
5610
  } : s;
5611
5611
  const f = this.resolve(e, i);
5612
- let g = f == null ? void 0 : f.res;
5612
+ let h = f == null ? void 0 : f.res;
5613
5613
  const C = (f == null ? void 0 : f.usedKey) || s, I = (f == null ? void 0 : f.exactUsedKey) || s, A = ["[object Number]", "[object Function]", "[object RegExp]"], S = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, T = i.count !== void 0 && !R(i.count), V = Qe.hasDefaultValue(i), B = T ? this.pluralResolver.getSuffix(p, i.count, i) : "", _ = i.ordinal && T ? this.pluralResolver.getSuffix(p, i.count, {
5614
5614
  ordinal: !1
5615
5615
  }) : "", K = T && !i.ordinal && i.count === 0, z = K && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${B}`] || i[`defaultValue${_}`] || i.defaultValue;
5616
- let O = g;
5617
- D && !g && V && (O = z);
5616
+ let O = h;
5617
+ D && !h && V && (O = z);
5618
5618
  const w = nt(O), N = Object.prototype.toString.apply(O);
5619
5619
  if (D && O && w && !A.includes(N) && !(R(S) && Array.isArray(O))) {
5620
5620
  if (!i.returnObjects && !this.options.returnObjects) {
@@ -5630,7 +5630,7 @@ class Qe extends tt {
5630
5630
  for (const b in O)
5631
5631
  if (Object.prototype.hasOwnProperty.call(O, b)) {
5632
5632
  const v = `${k}${o}${b}`;
5633
- V && !g ? L[b] = this.translate(v, {
5633
+ V && !h ? L[b] = this.translate(v, {
5634
5634
  ...i,
5635
5635
  defaultValue: nt(z) ? z[b] : void 0,
5636
5636
  joinArrays: !1,
@@ -5641,16 +5641,16 @@ class Qe extends tt {
5641
5641
  ns: d
5642
5642
  }), L[b] === v && (L[b] = O[b]);
5643
5643
  }
5644
- g = L;
5644
+ h = L;
5645
5645
  }
5646
- } else if (D && R(S) && Array.isArray(g))
5647
- g = g.join(S), g && (g = this.extendTranslation(g, e, i, r));
5646
+ } else if (D && R(S) && Array.isArray(h))
5647
+ h = h.join(S), h && (h = this.extendTranslation(h, e, i, r));
5648
5648
  else {
5649
5649
  let P = !1, L = !1;
5650
- !this.isValidLookup(g) && V && (P = !0, g = z), this.isValidLookup(g) || (L = !0, g = s);
5651
- const b = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : g, v = V && z !== g && this.options.updateMissing;
5650
+ !this.isValidLookup(h) && V && (P = !0, h = z), this.isValidLookup(h) || (L = !0, h = s);
5651
+ const b = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : h, v = V && z !== h && this.options.updateMissing;
5652
5652
  if (L || P || v) {
5653
- if (this.logger.log(v ? "updateKey" : "missingKey", p, c, s, v ? z : g), o) {
5653
+ if (this.logger.log(v ? "updateKey" : "missingKey", p, c, s, v ? z : h), o) {
5654
5654
  const F = this.resolve(s, {
5655
5655
  ...i,
5656
5656
  keySeparator: !1
@@ -5665,8 +5665,8 @@ class Qe extends tt {
5665
5665
  else this.options.saveMissingTo === "all" ? x = this.languageUtils.toResolveHierarchy(i.lng || this.language) : x.push(i.lng || this.language);
5666
5666
  const M = (F, G, W) => {
5667
5667
  var J;
5668
- const q = V && W !== g ? W : b;
5669
- this.options.missingKeyHandler ? this.options.missingKeyHandler(F, c, G, q, v, i) : (J = this.backendConnector) != null && J.saveMissing && this.backendConnector.saveMissing(F, c, G, q, v, i), this.emit("missingKey", F, c, G, g);
5668
+ const q = V && W !== h ? W : b;
5669
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(F, c, G, q, v, i) : (J = this.backendConnector) != null && J.saveMissing && this.backendConnector.saveMissing(F, c, G, q, v, i), this.emit("missingKey", F, c, G, h);
5670
5670
  };
5671
5671
  this.options.saveMissing && (this.options.saveMissingPlurals && T ? x.forEach((F) => {
5672
5672
  const G = this.pluralResolver.getSuffixes(F, i);
@@ -5675,9 +5675,9 @@ class Qe extends tt {
5675
5675
  });
5676
5676
  }) : M(x, s, z));
5677
5677
  }
5678
- g = this.extendTranslation(g, e, i, f, r), L && g === s && this.options.appendNamespaceToMissingKey && (g = `${c}${u}${s}`), (L || P) && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${s}` : s, P ? g : void 0, i));
5678
+ h = this.extendTranslation(h, e, i, f, r), L && h === s && this.options.appendNamespaceToMissingKey && (h = `${c}${u}${s}`), (L || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${s}` : s, P ? h : void 0, i));
5679
5679
  }
5680
- return a ? (f.res = g, f.usedParams = this.getUsedParamsDetails(i), f) : g;
5680
+ return a ? (f.res = h, f.usedParams = this.getUsedParamsDetails(i), f) : h;
5681
5681
  }
5682
5682
  extendTranslation(e, t, r, i, a) {
5683
5683
  var d, c;
@@ -5702,13 +5702,13 @@ class Qe extends tt {
5702
5702
  const f = e.match(this.interpolator.nestingRegexp);
5703
5703
  p = f && f.length;
5704
5704
  }
5705
- let h = r.replace && !R(r.replace) ? r.replace : r;
5706
- if (this.options.interpolation.defaultVariables && (h = {
5705
+ let g = r.replace && !R(r.replace) ? r.replace : r;
5706
+ if (this.options.interpolation.defaultVariables && (g = {
5707
5707
  ...this.options.interpolation.defaultVariables,
5708
- ...h
5709
- }), e = this.interpolator.interpolate(e, h, r.lng || this.language || i.usedLng, r), u) {
5710
- const f = e.match(this.interpolator.nestingRegexp), g = f && f.length;
5711
- p < g && (r.nest = !1);
5708
+ ...g
5709
+ }), e = this.interpolator.interpolate(e, g, r.lng || this.language || i.usedLng, r), u) {
5710
+ const f = e.match(this.interpolator.nestingRegexp), h = f && f.length;
5711
+ p < h && (r.nest = !1);
5712
5712
  }
5713
5713
  !r.lng && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (a == null ? void 0 : a[0]) === f[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), r)), r.interpolation && this.interpolator.reset();
5714
5714
  }
@@ -5732,7 +5732,7 @@ class Qe extends tt {
5732
5732
  i = u;
5733
5733
  let p = c.namespaces;
5734
5734
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
5735
- const h = t.count !== void 0 && !R(t.count), f = h && !t.ordinal && t.count === 0, g = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", C = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
5735
+ const g = t.count !== void 0 && !R(t.count), f = g && !t.ordinal && t.count === 0, h = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", C = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
5736
5736
  p.forEach((I) => {
5737
5737
  var A, S;
5738
5738
  this.isValidLookup(r) || (s = I, !this.checkedLoadedFor[`${C[0]}-${I}`] && ((A = this.utils) != null && A.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(s)) && (this.checkedLoadedFor[`${C[0]}-${I}`] = !0, this.logger.warn(`key "${i}" for languages "${C.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach((D) => {
@@ -5744,11 +5744,11 @@ class Qe extends tt {
5744
5744
  this.i18nFormat.addLookupKeys(T, u, D, I, t);
5745
5745
  else {
5746
5746
  let _;
5747
- h && (_ = this.pluralResolver.getSuffix(D, t.count, t));
5747
+ g && (_ = this.pluralResolver.getSuffix(D, t.count, t));
5748
5748
  const K = `${this.options.pluralSeparator}zero`, z = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
5749
- if (h && (t.ordinal && _.startsWith(z) && T.push(u + _.replace(z, this.options.pluralSeparator)), T.push(u + _), f && T.push(u + K)), g) {
5749
+ if (g && (t.ordinal && _.startsWith(z) && T.push(u + _.replace(z, this.options.pluralSeparator)), T.push(u + _), f && T.push(u + K)), h) {
5750
5750
  const O = `${u}${this.options.contextSeparator || "_"}${t.context}`;
5751
- T.push(O), h && (t.ordinal && _.startsWith(z) && T.push(O + _.replace(z, this.options.pluralSeparator)), T.push(O + _), f && T.push(O + K));
5751
+ T.push(O), g && (t.ordinal && _.startsWith(z) && T.push(O + _.replace(z, this.options.pluralSeparator)), T.push(O + _), f && T.push(O + K));
5752
5752
  }
5753
5753
  }
5754
5754
  let V;
@@ -5799,12 +5799,12 @@ class Bt {
5799
5799
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = le.create("languageUtils");
5800
5800
  }
5801
5801
  getScriptPartFromCode(e) {
5802
- if (e = Ne(e), !e || !e.includes("-")) return null;
5802
+ if (e = Fe(e), !e || !e.includes("-")) return null;
5803
5803
  const t = e.split("-");
5804
5804
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
5805
5805
  }
5806
5806
  getLanguagePartFromCode(e) {
5807
- if (e = Ne(e), !e || !e.includes("-")) return e;
5807
+ if (e = Fe(e), !e || !e.includes("-")) return e;
5808
5808
  const t = e.split("-");
5809
5809
  return this.formatLanguageCode(t[0]);
5810
5810
  }
@@ -5875,7 +5875,7 @@ class Da {
5875
5875
  this.pluralRulesCache = {};
5876
5876
  }
5877
5877
  getRule(e, t = {}) {
5878
- const r = Ne(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
5878
+ const r = Fe(e === "dev" ? "en" : e), i = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
5879
5879
  cleanedCode: r,
5880
5880
  type: i
5881
5881
  });
@@ -5935,15 +5935,15 @@ class Wt {
5935
5935
  formatSeparator: c,
5936
5936
  unescapeSuffix: u,
5937
5937
  unescapePrefix: p,
5938
- nestingPrefix: h,
5938
+ nestingPrefix: g,
5939
5939
  nestingPrefixEscaped: f,
5940
- nestingSuffix: g,
5940
+ nestingSuffix: h,
5941
5941
  nestingSuffixEscaped: C,
5942
5942
  nestingOptionsSeparator: I,
5943
5943
  maxReplaces: A,
5944
5944
  alwaysFormat: S
5945
5945
  } = e.interpolation;
5946
- this.escape = t !== void 0 ? t : ba, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = a ? be(a) : o || "{{", this.suffix = s ? be(s) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = h ? be(h) : f || be("$t("), this.nestingSuffix = g ? be(g) : C || be(")"), this.nestingOptionsSeparator = I || ",", this.maxReplaces = A || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
5946
+ this.escape = t !== void 0 ? t : ba, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = a ? be(a) : o || "{{", this.suffix = s ? be(s) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = g ? be(g) : f || be("$t("), this.nestingSuffix = h ? be(h) : C || be(")"), this.nestingOptionsSeparator = I || ",", this.maxReplaces = A || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
5947
5947
  }
5948
5948
  reset() {
5949
5949
  this.options && this.init(this.options);
@@ -5955,16 +5955,16 @@ class Wt {
5955
5955
  interpolate(e, t, r, i) {
5956
5956
  var f;
5957
5957
  let a, o, s;
5958
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
5959
- if (!g.includes(this.formatSeparator)) {
5960
- const S = _t(t, d, g, this.options.keySeparator, this.options.ignoreJSONStructure);
5958
+ const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (h) => {
5959
+ if (!h.includes(this.formatSeparator)) {
5960
+ const S = _t(t, d, h, this.options.keySeparator, this.options.ignoreJSONStructure);
5961
5961
  return this.alwaysFormat ? this.format(S, void 0, r, {
5962
5962
  ...i,
5963
5963
  ...t,
5964
- interpolationkey: g
5964
+ interpolationkey: h
5965
5965
  }) : S;
5966
5966
  }
5967
- const C = g.split(this.formatSeparator), I = C.shift().trim(), A = C.join(this.formatSeparator).trim();
5967
+ const C = h.split(this.formatSeparator), I = C.shift().trim(), A = C.join(this.formatSeparator).trim();
5968
5968
  return this.format(_t(t, d, I, this.options.keySeparator, this.options.ignoreJSONStructure), A, r, {
5969
5969
  ...i,
5970
5970
  ...t,
@@ -5975,12 +5975,12 @@ class Wt {
5975
5975
  const u = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((f = i == null ? void 0 : i.interpolation) == null ? void 0 : f.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
5976
5976
  return [{
5977
5977
  regex: this.regexpUnescape,
5978
- safeValue: (g) => it(g)
5978
+ safeValue: (h) => it(h)
5979
5979
  }, {
5980
5980
  regex: this.regexp,
5981
- safeValue: (g) => this.escapeValue ? it(this.escape(g)) : it(g)
5982
- }].forEach((g) => {
5983
- for (s = 0; a = g.regex.exec(e); ) {
5981
+ safeValue: (h) => this.escapeValue ? it(this.escape(h)) : it(h)
5982
+ }].forEach((h) => {
5983
+ for (s = 0; a = h.regex.exec(e); ) {
5984
5984
  const C = a[1].trim();
5985
5985
  if (o = c(C), o === void 0)
5986
5986
  if (typeof u == "function") {
@@ -5994,8 +5994,8 @@ class Wt {
5994
5994
  } else
5995
5995
  this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`), o = "";
5996
5996
  else !R(o) && !this.useRawValueToEscape && (o = Nt(o));
5997
- const I = g.safeValue(o);
5998
- if (e = e.replace(a[0], I), p ? (g.regex.lastIndex += o.length, g.regex.lastIndex -= a[0].length) : g.regex.lastIndex = 0, s++, s >= this.maxReplaces)
5997
+ const I = h.safeValue(o);
5998
+ if (e = e.replace(a[0], I), p ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, s++, s >= this.maxReplaces)
5999
5999
  break;
6000
6000
  }
6001
6001
  }), e;
@@ -6006,17 +6006,17 @@ class Wt {
6006
6006
  const u = this.nestingOptionsSeparator;
6007
6007
  if (!d.includes(u)) return d;
6008
6008
  const p = d.split(new RegExp(`${be(u)}[ ]*{`));
6009
- let h = `{${p[1]}`;
6010
- d = p[0], h = this.interpolate(h, o);
6011
- const f = h.match(/'/g), g = h.match(/"/g);
6012
- (((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (h = h.replace(/'/g, '"'));
6009
+ let g = `{${p[1]}`;
6010
+ d = p[0], g = this.interpolate(g, o);
6011
+ const f = g.match(/'/g), h = g.match(/"/g);
6012
+ (((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !h || ((h == null ? void 0 : h.length) ?? 0) % 2 !== 0) && (g = g.replace(/'/g, '"'));
6013
6013
  try {
6014
- o = JSON.parse(h), c && (o = {
6014
+ o = JSON.parse(g), c && (o = {
6015
6015
  ...c,
6016
6016
  ...o
6017
6017
  });
6018
6018
  } catch (C) {
6019
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, C), `${d}${u}${h}`;
6019
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, C), `${d}${u}${g}`;
6020
6020
  }
6021
6021
  return o.defaultValue && o.defaultValue.includes(this.prefix) && delete o.defaultValue, d;
6022
6022
  };
@@ -6063,9 +6063,9 @@ const $a = (n) => {
6063
6063
  });
6064
6064
  const o = r + JSON.stringify(a);
6065
6065
  let s = e[o];
6066
- return s || (s = n(Ne(r), i), e[o] = s), s(t);
6066
+ return s || (s = n(Fe(r), i), e[o] = s), s(t);
6067
6067
  };
6068
- }, Oa = (n) => (e, t, r) => n(Ne(t), r)(e);
6068
+ }, Oa = (n) => (e, t, r) => n(Fe(t), r)(e);
6069
6069
  class Ea {
6070
6070
  constructor(e = {}) {
6071
6071
  this.logger = le.create("formatter"), this.options = e, this.init(e);
@@ -6129,10 +6129,10 @@ class Ea {
6129
6129
  formatOptions: u
6130
6130
  } = $a(d);
6131
6131
  if (this.formats[c]) {
6132
- let h = s;
6132
+ let g = s;
6133
6133
  try {
6134
- const f = ((p = i == null ? void 0 : i.formatParams) == null ? void 0 : p[i.interpolationkey]) || {}, g = f.locale || f.lng || i.locale || i.lng || r;
6135
- h = this.formats[c](s, g, {
6134
+ const f = ((p = i == null ? void 0 : i.formatParams) == null ? void 0 : p[i.interpolationkey]) || {}, h = f.locale || f.lng || i.locale || i.lng || r;
6135
+ g = this.formats[c](s, h, {
6136
6136
  ...u,
6137
6137
  ...i,
6138
6138
  ...f
@@ -6140,7 +6140,7 @@ class Ea {
6140
6140
  } catch (f) {
6141
6141
  this.logger.warn(f);
6142
6142
  }
6143
- return h;
6143
+ return g;
6144
6144
  } else
6145
6145
  this.logger.warn(`there was no format function for ${c}`);
6146
6146
  return s;
@@ -6160,8 +6160,8 @@ class Ta extends tt {
6160
6160
  return e.forEach((c) => {
6161
6161
  let u = !0;
6162
6162
  t.forEach((p) => {
6163
- const h = `${c}|${p}`;
6164
- !r.reload && this.store.hasResourceBundle(c, p) ? this.state[h] = 2 : this.state[h] < 0 || (this.state[h] === 1 ? o[h] === void 0 && (o[h] = !0) : (this.state[h] = 1, u = !1, o[h] === void 0 && (o[h] = !0), a[h] === void 0 && (a[h] = !0), d[p] === void 0 && (d[p] = !0)));
6163
+ const g = `${c}|${p}`;
6164
+ !r.reload && this.store.hasResourceBundle(c, p) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? o[g] === void 0 && (o[g] = !0) : (this.state[g] = 1, u = !1, o[g] === void 0 && (o[g] = !0), a[g] === void 0 && (a[g] = !0), d[p] === void 0 && (d[p] = !0)));
6165
6165
  }), u || (s[c] = !0);
6166
6166
  }), (Object.keys(a).length || Object.keys(o).length) && this.queue.push({
6167
6167
  pending: o,
@@ -6257,26 +6257,26 @@ class Ta extends tt {
6257
6257
  }
6258
6258
  saveMissing(e, t, r, i, a, o = {}, s = () => {
6259
6259
  }) {
6260
- var d, c, u, p, h;
6260
+ var d, c, u, p, g;
6261
6261
  if ((c = (d = this.services) == null ? void 0 : d.utils) != null && c.hasLoadedNamespace && !((p = (u = this.services) == null ? void 0 : u.utils) != null && p.hasLoadedNamespace(t))) {
6262
6262
  this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
6263
6263
  return;
6264
6264
  }
6265
6265
  if (!(r == null || r === "")) {
6266
- if ((h = this.backend) != null && h.create) {
6266
+ if ((g = this.backend) != null && g.create) {
6267
6267
  const f = {
6268
6268
  ...o,
6269
6269
  isUpdate: a
6270
- }, g = this.backend.create.bind(this.backend);
6271
- if (g.length < 6)
6270
+ }, h = this.backend.create.bind(this.backend);
6271
+ if (h.length < 6)
6272
6272
  try {
6273
6273
  let C;
6274
- g.length === 5 ? C = g(e, t, r, i, f) : C = g(e, t, r, i), C && typeof C.then == "function" ? C.then((I) => s(null, I)).catch(s) : s(null, C);
6274
+ h.length === 5 ? C = h(e, t, r, i, f) : C = h(e, t, r, i), C && typeof C.then == "function" ? C.then((I) => s(null, I)).catch(s) : s(null, C);
6275
6275
  } catch (C) {
6276
6276
  s(C);
6277
6277
  }
6278
6278
  else
6279
- g(e, t, r, i, s, f);
6279
+ h(e, t, r, i, s, f);
6280
6280
  }
6281
6281
  !e || !e[0] || this.store.addResource(e[0], t, r, i);
6282
6282
  }
@@ -6343,7 +6343,7 @@ const at = () => ({
6343
6343
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
6344
6344
  });
6345
6345
  };
6346
- class Re extends tt {
6346
+ class Ne extends tt {
6347
6347
  constructor(e = {}, t) {
6348
6348
  if (super(), this.options = Kt(e), this.services = {}, this.logger = le, this.modules = {
6349
6349
  external: []
@@ -6378,12 +6378,12 @@ class Re extends tt {
6378
6378
  prepend: this.options.pluralSeparator
6379
6379
  }), c && (p.formatter = i(c), p.formatter.init && p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new Wt(this.options), p.utils = {
6380
6380
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
6381
- }, p.backendConnector = new Ta(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (h, ...f) => {
6382
- this.emit(h, ...f);
6383
- }), this.modules.languageDetector && (p.languageDetector = i(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = i(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", (h, ...f) => {
6384
- this.emit(h, ...f);
6385
- }), this.modules.external.forEach((h) => {
6386
- h.init && h.init(this);
6381
+ }, p.backendConnector = new Ta(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (g, ...f) => {
6382
+ this.emit(g, ...f);
6383
+ }), this.modules.languageDetector && (p.languageDetector = i(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = i(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", (g, ...f) => {
6384
+ this.emit(g, ...f);
6385
+ }), this.modules.external.forEach((g) => {
6386
+ g.init && g.init(this);
6387
6387
  });
6388
6388
  }
6389
6389
  if (this.format = this.options.interpolation.format, t || (t = Ue), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -6395,7 +6395,7 @@ class Re extends tt {
6395
6395
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
6396
6396
  this[c] = (...u) => (this.store[c](...u), this);
6397
6397
  });
6398
- const s = ze(), d = () => {
6398
+ const s = Me(), d = () => {
6399
6399
  const c = (u, p) => {
6400
6400
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), s.resolve(p), t(u, p);
6401
6401
  };
@@ -6423,7 +6423,7 @@ class Re extends tt {
6423
6423
  r(null);
6424
6424
  }
6425
6425
  reloadResources(e, t, r) {
6426
- const i = ze();
6426
+ const i = Me();
6427
6427
  return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ue), this.services.backendConnector.reload(e, t, (a) => {
6428
6428
  i.resolve(), r(a);
6429
6429
  }), i;
@@ -6447,7 +6447,7 @@ class Re extends tt {
6447
6447
  }
6448
6448
  changeLanguage(e, t) {
6449
6449
  this.isLanguageChangingTo = e;
6450
- const r = ze();
6450
+ const r = Me();
6451
6451
  this.emit("languageChanging", e);
6452
6452
  const i = (s) => {
6453
6453
  this.language = s, this.languages = this.services.languageUtils.toResolveHierarchy(s), this.resolvedLanguage = void 0, this.setResolvedLanguage(s);
@@ -6457,8 +6457,8 @@ class Re extends tt {
6457
6457
  var u, p;
6458
6458
  !e && !s && this.services.languageDetector && (s = []);
6459
6459
  const d = R(s) ? s : s && s[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(R(s) ? [s] : s);
6460
- c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), (p = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || p.call(u, c)), this.loadResources(c, (h) => {
6461
- a(h, c);
6460
+ c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), (p = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || p.call(u, c)), this.loadResources(c, (g) => {
6461
+ a(g, c);
6462
6462
  });
6463
6463
  };
6464
6464
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), r;
@@ -6476,7 +6476,7 @@ class Re extends tt {
6476
6476
  typeof d.keyPrefix == "function" && (d.keyPrefix = Se(d.keyPrefix, c));
6477
6477
  const u = this.options.keySeparator || ".";
6478
6478
  let p;
6479
- return d.keyPrefix && Array.isArray(a) ? p = a.map((h) => (typeof h == "function" && (h = Se(h, c)), `${d.keyPrefix}${u}${h}`)) : (typeof a == "function" && (a = Se(a, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${a}` : a), this.t(p, d);
6479
+ return d.keyPrefix && Array.isArray(a) ? p = a.map((g) => (typeof g == "function" && (g = Se(g, c)), `${d.keyPrefix}${u}${g}`)) : (typeof a == "function" && (a = Se(a, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${a}` : a), this.t(p, d);
6480
6480
  };
6481
6481
  return R(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = r, i;
6482
6482
  }
@@ -6509,7 +6509,7 @@ class Re extends tt {
6509
6509
  return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!i || o(a, e)));
6510
6510
  }
6511
6511
  loadNamespaces(e, t) {
6512
- const r = ze();
6512
+ const r = Me();
6513
6513
  return this.options.ns ? (R(e) && (e = [e]), e.forEach((i) => {
6514
6514
  this.options.ns.includes(i) || this.options.ns.push(i);
6515
6515
  }), this.loadResources((i) => {
@@ -6517,7 +6517,7 @@ class Re extends tt {
6517
6517
  }), r) : (t && t(), Promise.resolve());
6518
6518
  }
6519
6519
  loadLanguages(e, t) {
6520
- const r = ze();
6520
+ const r = Me();
6521
6521
  R(e) && (e = [e]);
6522
6522
  const i = this.options.preload || [], a = e.filter((o) => !i.includes(o) && this.services.languageUtils.isSupportedCode(o));
6523
6523
  return a.length ? (this.options.preload = i.concat(a), this.loadResources((o) => {
@@ -6539,8 +6539,8 @@ class Re extends tt {
6539
6539
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(r.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
6540
6540
  }
6541
6541
  static createInstance(e = {}, t) {
6542
- const r = new Re(e, t);
6543
- return r.createInstance = Re.createInstance, r;
6542
+ const r = new Ne(e, t);
6543
+ return r.createInstance = Ne.createInstance, r;
6544
6544
  }
6545
6545
  cloneInstance(e = {}, t = Ue) {
6546
6546
  const r = e.forkResourceStore;
@@ -6549,7 +6549,7 @@ class Re extends tt {
6549
6549
  ...this.options,
6550
6550
  ...e,
6551
6551
  isClone: !0
6552
- }, a = new Re(i);
6552
+ }, a = new Ne(i);
6553
6553
  if ((e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((s) => {
6554
6554
  a[s] = this[s];
6555
6555
  }), a.services = {
@@ -6591,7 +6591,7 @@ class Re extends tt {
6591
6591
  };
6592
6592
  }
6593
6593
  }
6594
- const X = Re.createInstance();
6594
+ const X = Ne.createInstance();
6595
6595
  X.createInstance;
6596
6596
  X.dir;
6597
6597
  X.init;
@@ -6629,7 +6629,7 @@ function Ha() {
6629
6629
  (function(t, r) {
6630
6630
  n.exports = r();
6631
6631
  })(Pa, (function() {
6632
- var t = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", d = "hour", c = "day", u = "week", p = "month", h = "quarter", f = "year", g = "date", C = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
6632
+ var t = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", s = "minute", d = "hour", c = "day", u = "week", p = "month", g = "quarter", f = "year", h = "date", C = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
6633
6633
  var k = ["th", "st", "nd", "rd"], b = L % 100;
6634
6634
  return "[" + L + (k[(b - 20) % 10] || k[b] || k[0]) + "]";
6635
6635
  } }, D = function(L, k, b) {
@@ -6645,7 +6645,7 @@ function Ha() {
6645
6645
  }, a: function(L) {
6646
6646
  return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
6647
6647
  }, p: function(L) {
6648
- return { M: p, y: f, w: u, d: c, D: g, h: d, m: s, s: o, ms: a, Q: h }[L] || String(L || "").toLowerCase().replace(/s$/, "");
6648
+ return { M: p, y: f, w: u, d: c, D: h, h: d, m: s, s: o, ms: a, Q: g }[L] || String(L || "").toLowerCase().replace(/s$/, "");
6649
6649
  }, u: function(L) {
6650
6650
  return L === void 0;
6651
6651
  } }, V = "en", B = {};
@@ -6729,7 +6729,7 @@ function Ha() {
6729
6729
  var se = this.$locale().weekStart || 0, Z = (W < se ? W + 7 : W) - se;
6730
6730
  return F(E ? J - Z : J + (6 - Z), q);
6731
6731
  case c:
6732
- case g:
6732
+ case h:
6733
6733
  return G(ce + "Hours", 0);
6734
6734
  case d:
6735
6735
  return G(ce + "Minutes", 1);
@@ -6743,10 +6743,10 @@ function Ha() {
6743
6743
  }, k.endOf = function(b) {
6744
6744
  return this.startOf(b, !1);
6745
6745
  }, k.$set = function(b, v) {
6746
- var x, E = w.p(b), M = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = M + "Date", x[g] = M + "Date", x[p] = M + "Month", x[f] = M + "FullYear", x[d] = M + "Hours", x[s] = M + "Minutes", x[o] = M + "Seconds", x[a] = M + "Milliseconds", x)[E], G = E === c ? this.$D + (v - this.$W) : v;
6746
+ var x, E = w.p(b), M = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = M + "Date", x[h] = M + "Date", x[p] = M + "Month", x[f] = M + "FullYear", x[d] = M + "Hours", x[s] = M + "Minutes", x[o] = M + "Seconds", x[a] = M + "Milliseconds", x)[E], G = E === c ? this.$D + (v - this.$W) : v;
6747
6747
  if (E === p || E === f) {
6748
- var W = this.clone().set(g, 1);
6749
- W.$d[F](G), W.init(), this.$d = W.set(g, Math.min(this.$D, W.daysInMonth())).$d;
6748
+ var W = this.clone().set(h, 1);
6749
+ W.$d[F](G), W.init(), this.$d = W.set(h, Math.min(this.$D, W.daysInMonth())).$d;
6750
6750
  } else F && this.$d[F](G);
6751
6751
  return this.init(), this;
6752
6752
  }, k.set = function(b, v) {
@@ -6771,17 +6771,17 @@ function Ha() {
6771
6771
  }, k.format = function(b) {
6772
6772
  var v = this, x = this.$locale();
6773
6773
  if (!this.isValid()) return x.invalidDate || C;
6774
- var E = b || "YYYY-MM-DDTHH:mm:ssZ", M = w.z(this), F = this.$H, G = this.$m, W = this.$M, q = x.weekdays, J = x.months, ce = x.meridiem, se = function(te, ge, Te, je) {
6775
- return te && (te[ge] || te(v, E)) || Te[ge].slice(0, je);
6774
+ var E = b || "YYYY-MM-DDTHH:mm:ssZ", M = w.z(this), F = this.$H, G = this.$m, W = this.$M, q = x.weekdays, J = x.months, ce = x.meridiem, se = function(te, ge, ze, je) {
6775
+ return te && (te[ge] || te(v, E)) || ze[ge].slice(0, je);
6776
6776
  }, Z = function(te) {
6777
6777
  return w.s(F % 12 || 12, te, "0");
6778
- }, de = ce || function(te, ge, Te) {
6778
+ }, de = ce || function(te, ge, ze) {
6779
6779
  var je = te < 12 ? "AM" : "PM";
6780
- return Te ? je.toLowerCase() : je;
6780
+ return ze ? je.toLowerCase() : je;
6781
6781
  };
6782
6782
  return E.replace(A, (function(te, ge) {
6783
- return ge || (function(Te) {
6784
- switch (Te) {
6783
+ return ge || (function(ze) {
6784
+ switch (ze) {
6785
6785
  case "YY":
6786
6786
  return String(v.$y).slice(-2);
6787
6787
  case "YYYY":
@@ -6847,7 +6847,7 @@ function Ha() {
6847
6847
  case p:
6848
6848
  E = J();
6849
6849
  break;
6850
- case h:
6850
+ case g:
6851
6851
  E = J() / 3;
6852
6852
  break;
6853
6853
  case u:
@@ -6889,7 +6889,7 @@ function Ha() {
6889
6889
  return this.$d.toUTCString();
6890
6890
  }, L;
6891
6891
  })(), P = N.prototype;
6892
- return O.prototype = P, [["$ms", a], ["$s", o], ["$m", s], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", g]].forEach((function(L) {
6892
+ return O.prototype = P, [["$ms", a], ["$s", o], ["$m", s], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", h]].forEach((function(L) {
6893
6893
  P[L[1]] = function(k) {
6894
6894
  return this.$g(k, L[0], L[1]);
6895
6895
  };
@@ -7140,7 +7140,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
7140
7140
  getItemById: a,
7141
7141
  onSetFormValues: o
7142
7142
  }) => {
7143
- const s = Ee(), [d] = Ce.useForm(), [c, u] = j(n == "new"), [p, h] = j(null), f = async (C) => {
7143
+ const s = Ee(), [d] = Ce.useForm(), [c, u] = j(n == "new"), [p, g] = j(null), f = async (C) => {
7144
7144
  const I = window.location.pathname, A = I.substring(0, I.lastIndexOf("/"));
7145
7145
  try {
7146
7146
  if (p) {
@@ -7156,16 +7156,16 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
7156
7156
  d.setFields(T);
7157
7157
  }
7158
7158
  }
7159
- }, g = async (C) => {
7159
+ }, h = async (C) => {
7160
7160
  try {
7161
7161
  const I = await a(C), A = o ? o(I.data) : I.data;
7162
- h(A), d.setFieldsValue(A);
7162
+ g(A), d.setFieldsValue(A);
7163
7163
  } catch (I) {
7164
7164
  console.log(I, "Error in Form Controller.");
7165
7165
  }
7166
7166
  };
7167
7167
  return Y(() => {
7168
- u(n == "new"), n != "new" ? g(Number(n)) : d.resetFields();
7168
+ u(n == "new"), n != "new" ? h(Number(n)) : d.resetFields();
7169
7169
  }, [n, e]), {
7170
7170
  form: d,
7171
7171
  item: p,
@@ -7180,15 +7180,15 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
7180
7180
  return n ? p = await t({ ...u }) : p = await r(u), p;
7181
7181
  } catch (p) {
7182
7182
  if (p.status === 400) {
7183
- const h = p.response.data, f = De(h.errors);
7183
+ const g = p.response.data, f = De(g.errors);
7184
7184
  a.setFields(f);
7185
7185
  }
7186
7186
  throw p;
7187
7187
  }
7188
7188
  }, c = async (u) => {
7189
7189
  try {
7190
- const h = (await i(u)).data;
7191
- s(h), a.setFieldsValue(h);
7190
+ const g = (await i(u)).data;
7191
+ s(g), a.setFieldsValue(g);
7192
7192
  } catch (p) {
7193
7193
  console.log(p, "Error in Form Controller.");
7194
7194
  }
@@ -7208,7 +7208,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
7208
7208
  handleSave: d
7209
7209
  };
7210
7210
  }, $o = () => {
7211
- const n = Ee(), { setUser: e } = Ie(), [t, r] = j({
7211
+ const n = Ee(), { setUser: e } = Te(), [t, r] = j({
7212
7212
  visible: !1,
7213
7213
  token: ""
7214
7214
  }), i = (o) => {
@@ -7236,7 +7236,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
7236
7236
  };
7237
7237
  };
7238
7238
  function Oo(n) {
7239
- const { navigator: e } = ct(Rr), t = Fe();
7239
+ const { navigator: e } = ct(Rr), t = Ve();
7240
7240
  Y(() => {
7241
7241
  if (!n) return;
7242
7242
  const r = e.push, i = e.replace, a = (o) => (...s) => {
@@ -7283,26 +7283,26 @@ function Eo(n) {
7283
7283
  }, []);
7284
7284
  }
7285
7285
  const Io = (n, e, t) => {
7286
- const r = n.filter((p) => e[p.id]), i = Object.keys(r[0]), a = r.map((p) => i.map((h) => {
7287
- const f = p[h];
7286
+ const r = n.filter((p) => e[p.id]), i = Object.keys(r[0]), a = r.map((p) => i.map((g) => {
7287
+ const f = p[g];
7288
7288
  return f == null ? "" : typeof f == "object" ? Object.values(f).find((C) => typeof C != "object") ?? "" : f;
7289
7289
  })), o = [i, ...a].map(
7290
- (p) => p.map((h) => `"${(h || "").toString().replace(/"/g, '""')}"`).join(",")
7290
+ (p) => p.map((g) => `"${(g || "").toString().replace(/"/g, '""')}"`).join(",")
7291
7291
  ).join(`\r
7292
7292
  `), s = "\uFEFF", d = new Blob([s + o], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
7293
7293
  c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
7294
7294
  }, To = (n, e, t) => {
7295
7295
  const i = n.filter((p) => e[p.id]).map((p) => {
7296
- const h = {};
7297
- return Object.entries(p).forEach(([f, g]) => {
7298
- if (g == null)
7299
- h[f] = "";
7300
- else if (typeof g == "object") {
7301
- const C = Object.values(g).find((I) => typeof I != "object");
7302
- h[f] = C ?? "";
7296
+ const g = {};
7297
+ return Object.entries(p).forEach(([f, h]) => {
7298
+ if (h == null)
7299
+ g[f] = "";
7300
+ else if (typeof h == "object") {
7301
+ const C = Object.values(h).find((I) => typeof I != "object");
7302
+ g[f] = C ?? "";
7303
7303
  } else
7304
- h[f] = g;
7305
- }), h;
7304
+ g[f] = h;
7305
+ }), g;
7306
7306
  }), a = Ge.utils.json_to_sheet(i), o = Ge.utils.book_new();
7307
7307
  Ge.utils.book_append_sheet(o, a, "Data");
7308
7308
  const s = Ge.write(o, { bookType: "xlsx", type: "array" }), d = new Blob([s], { type: "application/octet-stream" }), c = URL.createObjectURL(d), u = document.createElement("a");
@@ -7322,17 +7322,17 @@ function zo(n, e) {
7322
7322
  function Mo(n, e = "en-US") {
7323
7323
  return n < 1 ? 0 : n ? n.toLocaleString(e) : "";
7324
7324
  }
7325
- const Po = (n, e) => Array.isArray(n) ? n.filter((t) => t.type ? (Array.isArray(t.type) ? t.type : [t.type]).some((i) => e.includes(i)) : !1) : [], Me = (n) => n.replace(/^[A-Z]+/, (e) => e.length === n.length ? e.toLowerCase() : e.length > 1 ? e.slice(0, -1).toLowerCase() + e.slice(-1) : e.toLowerCase()), Ua = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\[(\d+)\]\.(\w+)$/, _a = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)$/, Wa = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\.(\w+)$/, Ya = /^Commissions\[(\d+)\]$/;
7325
+ const Po = (n, e) => Array.isArray(n) ? n.filter((t) => t.type ? (Array.isArray(t.type) ? t.type : [t.type]).some((i) => e.includes(i)) : !1) : [], Pe = (n) => n.replace(/^[A-Z]+/, (e) => e.length === n.length ? e.toLowerCase() : e.length > 1 ? e.slice(0, -1).toLowerCase() + e.slice(-1) : e.toLowerCase()), Ua = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\[(\d+)\]\.(\w+)$/, _a = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)$/, Wa = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\.(\w+)$/, Ya = /^Commissions\[(\d+)\]$/;
7326
7326
  function Ho(n) {
7327
7327
  const { errors: e } = n.response.data, t = Object.keys(e)[0], r = e[t][0], i = t.match(Ua);
7328
7328
  if (i) {
7329
7329
  const [, s, d, c, u, p] = i;
7330
7330
  return {
7331
7331
  brandIndex: Number(s),
7332
- generalType: Me(d),
7333
- specificType: Me(c),
7332
+ generalType: Pe(d),
7333
+ specificType: Pe(c),
7334
7334
  itemIndex: Number(u),
7335
- field: Me(p),
7335
+ field: Pe(p),
7336
7336
  message: r
7337
7337
  };
7338
7338
  }
@@ -7341,8 +7341,8 @@ function Ho(n) {
7341
7341
  const [, s, d, c] = a;
7342
7342
  return {
7343
7343
  brandIndex: Number(s),
7344
- generalType: Me(d),
7345
- specificType: Me(c),
7344
+ generalType: Pe(d),
7345
+ specificType: Pe(c),
7346
7346
  message: r
7347
7347
  };
7348
7348
  }
@@ -7516,8 +7516,8 @@ export {
7516
7516
  ye as useModalStore,
7517
7517
  Oo as useNavigationGuard,
7518
7518
  Do as useNewDesignFormController,
7519
- Ve as usePackageServices,
7519
+ Ie as usePackageServices,
7520
7520
  $o as useTwoFactor,
7521
- Ie as useUserStore
7521
+ Te as useUserStore
7522
7522
  };
7523
7523
  //# sourceMappingURL=index.mjs.map